@@ -366,7 +366,7 @@ where
366366 result_table
367367}
368368
369- #[ node_macro:: node( category( "Vector " ) , path( graphene_core:: vector) ) ]
369+ #[ node_macro:: node( category( "Instancing " ) , path( graphene_core:: vector) ) ]
370370async fn mirror < I : ' n + Send + Clone > (
371371 _: impl Ctx ,
372372 #[ implementations( GraphicGroupTable , VectorDataTable , RasterDataTable <CPU >) ] instance : Instances < I > ,
@@ -424,7 +424,7 @@ where
424424 result_table
425425}
426426
427- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
427+ #[ node_macro:: node( category( "Vector: Modifier " ) , path( graphene_core:: vector) ) ]
428428async fn round_corners (
429429 _: impl Ctx ,
430430 source : VectorDataTable ,
@@ -549,7 +549,7 @@ async fn round_corners(
549549 result_table
550550}
551551
552- #[ node_macro:: node( name( "Merge by Distance" ) , category( "Vector" ) , path( graphene_core:: vector) ) ]
552+ #[ node_macro:: node( name( "Merge by Distance" ) , category( "Vector: Modifier " ) , path( graphene_core:: vector) ) ]
553553pub fn merge_by_distance (
554554 _: impl Ctx ,
555555 vector_data : VectorDataTable ,
@@ -694,7 +694,7 @@ pub fn merge_by_distance(
694694 result_table
695695}
696696
697- #[ node_macro:: node( category( "Debug " ) , path( graphene_core:: vector) ) ]
697+ #[ node_macro:: node( category( "Vector: Modifier " ) , path( graphene_core:: vector) ) ]
698698async fn box_warp ( _: impl Ctx , vector_data : VectorDataTable , #[ expose] rectangle : VectorDataTable ) -> VectorDataTable {
699699 let Some ( ( target, target_transform) ) = rectangle. get ( 0 ) . map ( |rect| ( rect. instance , rect. transform ) ) else {
700700 return vector_data;
@@ -783,7 +783,7 @@ fn bilinear_interpolate(t: DVec2, quad: &[DVec2; 4]) -> DVec2 {
783783}
784784
785785/// Automatically constructs tangents (Bézier handles) for anchor points in a vector path.
786- #[ node_macro:: node( category( "Vector" ) , name( "Auto-Tangents" ) , path( graphene_core:: vector) ) ]
786+ #[ node_macro:: node( category( "Vector: Modifier " ) , name( "Auto-Tangents" ) , path( graphene_core:: vector) ) ]
787787async fn auto_tangents (
788788 _: impl Ctx ,
789789 source : VectorDataTable ,
@@ -1018,7 +1018,7 @@ async fn auto_tangents(
10181018// result_table
10191019// }
10201020
1021- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1021+ #[ node_macro:: node( category( "Vector: Modifier " ) , path( graphene_core:: vector) ) ]
10221022async fn bounding_box ( _: impl Ctx , vector_data : VectorDataTable ) -> VectorDataTable {
10231023 let mut result_table = VectorDataTable :: default ( ) ;
10241024
@@ -1045,7 +1045,7 @@ async fn bounding_box(_: impl Ctx, vector_data: VectorDataTable) -> VectorDataTa
10451045 result_table
10461046}
10471047
1048- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1048+ #[ node_macro:: node( category( "Vector: Measure " ) , path( graphene_core:: vector) ) ]
10491049async fn dimensions ( _: impl Ctx , vector_data : VectorDataTable ) -> DVec2 {
10501050 vector_data
10511051 . instance_ref_iter ( )
@@ -1102,7 +1102,7 @@ async fn points_to_polyline(_: impl Ctx, mut points: VectorDataTable, #[default(
11021102 points
11031103}
11041104
1105- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) , properties( "offset_path_properties" ) ) ]
1105+ #[ node_macro:: node( category( "Vector: Modifier " ) , path( graphene_core:: vector) , properties( "offset_path_properties" ) ) ]
11061106async fn offset_path ( _: impl Ctx , vector_data : VectorDataTable , distance : f64 , join : StrokeJoin , #[ default( 4. ) ] miter_limit : f64 ) -> VectorDataTable {
11071107 let mut result_table = VectorDataTable :: default ( ) ;
11081108
@@ -1146,7 +1146,7 @@ async fn offset_path(_: impl Ctx, vector_data: VectorDataTable, distance: f64, j
11461146 result_table
11471147}
11481148
1149- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1149+ #[ node_macro:: node( category( "Vector: Modifier " ) , path( graphene_core:: vector) ) ]
11501150async fn solidify_stroke ( _: impl Ctx , vector_data : VectorDataTable ) -> VectorDataTable {
11511151 let mut result_table = VectorDataTable :: default ( ) ;
11521152
@@ -1314,7 +1314,7 @@ async fn sample_points(_: impl Ctx, vector_data: VectorDataTable, spacing: f64,
13141314 result_table
13151315}
13161316
1317- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1317+ #[ node_macro:: node( category( "Vector: Modifier " ) , path( graphene_core:: vector) ) ]
13181318async fn split_path ( _: impl Ctx , mut vector_data : VectorDataTable , t_value : f64 , parameterized_distance : bool , reverse : bool ) -> VectorDataTable {
13191319 let euclidian = !parameterized_distance;
13201320
@@ -1355,7 +1355,7 @@ async fn split_path(_: impl Ctx, mut vector_data: VectorDataTable, t_value: f64,
13551355
13561356/// Determines the position of a point on the path, given by its progress from 0 to 1 along the path.
13571357/// If multiple subpaths make up the path, the whole number part of the progress value selects the subpath and the decimal part determines the position along it.
1358- #[ node_macro:: node( name( "Position on Path" ) , category( "Vector" ) , path( graphene_core:: vector) ) ]
1358+ #[ node_macro:: node( name( "Position on Path" ) , category( "Vector: Measure " ) , path( graphene_core:: vector) ) ]
13591359async fn position_on_path (
13601360 _: impl Ctx ,
13611361 /// The path to traverse.
@@ -1391,7 +1391,7 @@ async fn position_on_path(
13911391
13921392/// Determines the angle of the tangent at a point on the path, given by its progress from 0 to 1 along the path.
13931393/// If multiple subpaths make up the path, the whole number part of the progress value selects the subpath and the decimal part determines the position along it.
1394- #[ node_macro:: node( name( "Tangent on Path" ) , category( "Vector" ) , path( graphene_core:: vector) ) ]
1394+ #[ node_macro:: node( name( "Tangent on Path" ) , category( "Vector: Measure " ) , path( graphene_core:: vector) ) ]
13951395async fn tangent_on_path (
13961396 _: impl Ctx ,
13971397 /// The path to traverse.
@@ -1509,7 +1509,7 @@ async fn subpath_segment_lengths(_: impl Ctx, vector_data: VectorDataTable) -> V
15091509 . collect ( )
15101510}
15111511
1512- #[ node_macro:: node( name( "Spline" ) , category( "Vector" ) , path( graphene_core:: vector) ) ]
1512+ #[ node_macro:: node( name( "Spline" ) , category( "Vector: Modifier " ) , path( graphene_core:: vector) ) ]
15131513async fn spline ( _: impl Ctx , vector_data : VectorDataTable ) -> VectorDataTable {
15141514 let mut result_table = VectorDataTable :: default ( ) ;
15151515
@@ -1555,7 +1555,7 @@ async fn spline(_: impl Ctx, vector_data: VectorDataTable) -> VectorDataTable {
15551555 result_table
15561556}
15571557
1558- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1558+ #[ node_macro:: node( category( "Vector: Modifier " ) , path( graphene_core:: vector) ) ]
15591559async fn jitter_points ( _: impl Ctx , vector_data : VectorDataTable , #[ default( 5. ) ] amount : f64 , seed : SeedValue ) -> VectorDataTable {
15601560 let mut result_table = VectorDataTable :: default ( ) ;
15611561
@@ -1608,7 +1608,7 @@ async fn jitter_points(_: impl Ctx, vector_data: VectorDataTable, #[default(5.)]
16081608 result_table
16091609}
16101610
1611- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1611+ #[ node_macro:: node( category( "Vector: Modifier " ) , path( graphene_core:: vector) ) ]
16121612async fn morph ( _: impl Ctx , source : VectorDataTable , #[ expose] target : VectorDataTable , #[ default( 0.5 ) ] time : Fraction ) -> VectorDataTable {
16131613 /// Subdivides the last segment of the bezpath to until it appends 'count' number of segments.
16141614 fn make_new_segments ( bezpath : & mut BezPath , count : usize ) {
@@ -1878,7 +1878,7 @@ fn bevel_algorithm(mut vector_data: VectorData, vector_data_transform: DAffine2,
18781878 vector_data
18791879}
18801880
1881- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1881+ #[ node_macro:: node( category( "Vector: Modifier " ) , path( graphene_core:: vector) ) ]
18821882fn bevel ( _: impl Ctx , source : VectorDataTable , #[ default( 10. ) ] distance : Length ) -> VectorDataTable {
18831883 let mut result_table = VectorDataTable :: default ( ) ;
18841884
@@ -1892,7 +1892,7 @@ fn bevel(_: impl Ctx, source: VectorDataTable, #[default(10.)] distance: Length)
18921892 result_table
18931893}
18941894
1895- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1895+ #[ node_macro:: node( category( "Vector: Modifier " ) , path( graphene_core:: vector) ) ]
18961896fn close_path ( _: impl Ctx , source : VectorDataTable ) -> VectorDataTable {
18971897 let mut result_table = VectorDataTable :: default ( ) ;
18981898
@@ -1904,17 +1904,17 @@ fn close_path(_: impl Ctx, source: VectorDataTable) -> VectorDataTable {
19041904 result_table
19051905}
19061906
1907- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1907+ #[ node_macro:: node( category( "Vector: Measure " ) , path( graphene_core:: vector) ) ]
19081908fn point_inside ( _: impl Ctx , source : VectorDataTable , point : DVec2 ) -> bool {
19091909 source. instance_iter ( ) . any ( |instance| instance. instance . check_point_inside_shape ( instance. transform , point) )
19101910}
19111911
1912- #[ node_macro:: node( category( "Vector " ) , path( graphene_core:: vector) ) ]
1912+ #[ node_macro:: node( category( "General " ) , path( graphene_core:: vector) ) ]
19131913async fn count_elements < I > ( _: impl Ctx , #[ implementations( GraphicGroupTable , VectorDataTable , RasterDataTable <CPU >, RasterDataTable <GPU >) ] source : Instances < I > ) -> u64 {
19141914 source. instance_iter ( ) . count ( ) as u64
19151915}
19161916
1917- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1917+ #[ node_macro:: node( category( "Vector: Measure " ) , path( graphene_core:: vector) ) ]
19181918async fn path_length ( _: impl Ctx , source : VectorDataTable ) -> f64 {
19191919 source
19201920 . instance_iter ( )
@@ -1932,7 +1932,7 @@ async fn path_length(_: impl Ctx, source: VectorDataTable) -> f64 {
19321932 . sum ( )
19331933}
19341934
1935- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1935+ #[ node_macro:: node( category( "Vector: Measure " ) , path( graphene_core:: vector) ) ]
19361936async fn area ( ctx : impl Ctx + CloneVarArgs + ExtractAll , vector_data : impl Node < Context < ' static > , Output = VectorDataTable > ) -> f64 {
19371937 let new_ctx = OwnedContextImpl :: from ( ctx) . with_footprint ( Footprint :: default ( ) ) . into_context ( ) ;
19381938 let vector_data = vector_data. eval ( new_ctx) . await ;
@@ -1946,7 +1946,7 @@ async fn area(ctx: impl Ctx + CloneVarArgs + ExtractAll, vector_data: impl Node<
19461946 . sum ( )
19471947}
19481948
1949- #[ node_macro:: node( category( "Vector" ) , path( graphene_core:: vector) ) ]
1949+ #[ node_macro:: node( category( "Vector: Measure " ) , path( graphene_core:: vector) ) ]
19501950async fn centroid ( ctx : impl Ctx + CloneVarArgs + ExtractAll , vector_data : impl Node < Context < ' static > , Output = VectorDataTable > , centroid_type : CentroidType ) -> DVec2 {
19511951 let new_ctx = OwnedContextImpl :: from ( ctx) . with_footprint ( Footprint :: default ( ) ) . into_context ( ) ;
19521952 let vector_data = vector_data. eval ( new_ctx) . await ;
0 commit comments