@@ -676,115 +676,11 @@ fn node_registry() -> HashMap<ProtoNodeIdentifier, HashMap<NodeIOTypes, NodeCons
676
676
async_node!( graphene_std:: wasm_application_io:: RenderNode <_, _, _>, input: WasmEditorApi , output: RenderOutput , fn_params: [ Footprint => Option <Color >, ( ) => Arc <WasmSurfaceHandle >] ) ,
677
677
async_node!( graphene_std:: wasm_application_io:: RenderNode <_, _, _>, input: WasmEditorApi , output: RenderOutput , fn_params: [ ( ) => Vec <Color >, ( ) => Arc <WasmSurfaceHandle >] ) ,
678
678
async_node!( graphene_std:: wasm_application_io:: RenderNode <_, _, _>, input: WasmEditorApi , output: RenderOutput , fn_params: [ Footprint => Vec <Color >, ( ) => Arc <WasmSurfaceHandle >] ) ,
679
- //register_node!(graphene_core::transform::TranformNode<_, _, _, _, _, _>, input: , output: RenderOutput, fn_params: [Footprint => GraphicGroup, () => Arc<WasmSurfaceHandle>]),
680
- vec![
681
- (
682
- ProtoNodeIdentifier :: new( "graphene_core::transform::TransformNode<_, _, _, _, _, _>" ) ,
683
- |mut args| {
684
- Box :: pin( async move {
685
- args. reverse( ) ;
686
- let node = <graphene_core:: transform:: TransformNode <_, _, _, _, _, _>>:: new(
687
- DowncastBothNode :: <Footprint , VectorData >:: new( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
688
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
689
- graphene_std:: any:: input_node:: <f32 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
690
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
691
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
692
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
693
- ) ;
694
- let any: DynAnyNode <Footprint , _, _> = graphene_std:: any:: DynAnyNode :: new( node) ;
695
- Box :: new( any) as TypeErasedBox
696
- } )
697
- } ,
698
- {
699
- let params = vec![ fn_type!( Footprint , VectorData ) , fn_type!( DVec2 ) , fn_type!( f32 ) , fn_type!( DVec2 ) , fn_type!( DVec2 ) , fn_type!( DVec2 ) ] ;
700
- NodeIOTypes :: new( concrete!( Footprint ) , concrete!( VectorData ) , params)
701
- } ,
702
- ) ,
703
- (
704
- ProtoNodeIdentifier :: new( "graphene_core::transform::TransformNode<_, _, _, _, _, _>" ) ,
705
- |mut args| {
706
- Box :: pin( async move {
707
- args. reverse( ) ;
708
- let node = <graphene_core:: transform:: TransformNode <_, _, _, _, _, _>>:: new(
709
- DowncastBothNode :: <Footprint , WasmSurfaceHandleFrame >:: new( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
710
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
711
- graphene_std:: any:: input_node:: <f32 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
712
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
713
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
714
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
715
- ) ;
716
- let any: DynAnyNode <Footprint , _, _> = graphene_std:: any:: DynAnyNode :: new( node) ;
717
- Box :: new( any) as TypeErasedBox
718
- } )
719
- } ,
720
- {
721
- let params = vec![
722
- fn_type!( Footprint , WasmSurfaceHandleFrame ) ,
723
- fn_type!( DVec2 ) ,
724
- fn_type!( f32 ) ,
725
- fn_type!( DVec2 ) ,
726
- fn_type!( DVec2 ) ,
727
- fn_type!( DVec2 ) ,
728
- ] ;
729
- NodeIOTypes :: new( concrete!( Footprint ) , concrete!( WasmSurfaceHandleFrame ) , params)
730
- } ,
731
- ) ,
732
- (
733
- ProtoNodeIdentifier :: new( "graphene_core::transform::TransformNode<_, _, _, _, _, _>" ) ,
734
- |mut args| {
735
- Box :: pin( async move {
736
- args. reverse( ) ;
737
- let node = <graphene_core:: transform:: TransformNode <_, _, _, _, _, _>>:: new(
738
- DowncastBothNode :: <Footprint , ImageFrame <Color >>:: new( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
739
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
740
- graphene_std:: any:: input_node:: <f32 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
741
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
742
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
743
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( "Not enough arguments provided to construct node" ) ) ,
744
- ) ;
745
- let any: DynAnyNode <Footprint , _, _> = graphene_std:: any:: DynAnyNode :: new( node) ;
746
- Box :: new( any) as TypeErasedBox
747
- } )
748
- } ,
749
- {
750
- let params = vec![
751
- fn_type!( Footprint , ImageFrame <Color >) ,
752
- fn_type!( DVec2 ) ,
753
- fn_type!( f32 ) ,
754
- fn_type!( DVec2 ) ,
755
- fn_type!( DVec2 ) ,
756
- fn_type!( DVec2 ) ,
757
- ] ;
758
- NodeIOTypes :: new( concrete!( Footprint ) , concrete!( ImageFrame <Color >) , params)
759
- } ,
760
- ) ,
761
- (
762
- ProtoNodeIdentifier :: new( "graphene_core::transform::TransformNode<_, _, _, _, _, _>" ) ,
763
- |mut args| {
764
- Box :: pin( async move {
765
- const EXPECT_MESSAGE : & str = "Not enough arguments provided to construct node" ;
766
-
767
- args. reverse( ) ;
768
-
769
- let node = <graphene_core:: transform:: TransformNode <_, _, _, _, _, _>>:: new(
770
- DowncastBothNode :: <Footprint , GraphicGroup >:: new( args. pop( ) . expect( EXPECT_MESSAGE ) ) ,
771
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( EXPECT_MESSAGE ) ) ,
772
- graphene_std:: any:: input_node:: <f32 >( args. pop( ) . expect( EXPECT_MESSAGE ) ) ,
773
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( EXPECT_MESSAGE ) ) ,
774
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( EXPECT_MESSAGE ) ) ,
775
- graphene_std:: any:: input_node:: <DVec2 >( args. pop( ) . expect( EXPECT_MESSAGE ) ) ,
776
- ) ;
777
-
778
- let any: DynAnyNode <Footprint , _, _> = graphene_std:: any:: DynAnyNode :: new( node) ;
779
- Box :: new( any) as TypeErasedBox
780
- } )
781
- } ,
782
- {
783
- let params = vec![ fn_type!( Footprint , GraphicGroup ) , fn_type!( DVec2 ) , fn_type!( f32 ) , fn_type!( DVec2 ) , fn_type!( DVec2 ) , fn_type!( DVec2 ) ] ;
784
- NodeIOTypes :: new( concrete!( Footprint ) , concrete!( GraphicGroup ) , params)
785
- } ,
786
- ) ,
787
- ] ,
679
+ async_node!( graphene_core:: transform:: TransformNode <_, _, _, _, _, _>, input: Footprint , output: VectorData , fn_params: [ Footprint => VectorData , ( ) => DVec2 , ( ) => f32 , ( ) => DVec2 , ( ) => DVec2 , ( ) => DVec2 ] ) ,
680
+ async_node!( graphene_core:: transform:: TransformNode <_, _, _, _, _, _>, input: Footprint , output: WasmSurfaceHandleFrame , fn_params: [ Footprint => WasmSurfaceHandleFrame , ( ) => DVec2 , ( ) => f32 , ( ) => DVec2 , ( ) => DVec2 , ( ) => DVec2 ] ) ,
681
+ async_node!( graphene_core:: transform:: TransformNode <_, _, _, _, _, _>, input: Footprint , output: WasmSurfaceHandleFrame , fn_params: [ Footprint => WasmSurfaceHandleFrame , ( ) => DVec2 , ( ) => f32 , ( ) => DVec2 , ( ) => DVec2 , ( ) => DVec2 ] ) ,
682
+ async_node!( graphene_core:: transform:: TransformNode <_, _, _, _, _, _>, input: Footprint , output: ImageFrame <Color >, fn_params: [ Footprint => ImageFrame <Color >, ( ) => DVec2 , ( ) => f32 , ( ) => DVec2 , ( ) => DVec2 , ( ) => DVec2 ] ) ,
683
+ async_node!( graphene_core:: transform:: TransformNode <_, _, _, _, _, _>, input: Footprint , output: GraphicGroup , fn_params: [ Footprint => GraphicGroup , ( ) => DVec2 , ( ) => f32 , ( ) => DVec2 , ( ) => DVec2 , ( ) => DVec2 ] ) ,
788
684
register_node!( graphene_core:: transform:: SetTransformNode <_>, input: VectorData , params: [ VectorData ] ) ,
789
685
register_node!( graphene_core:: transform:: SetTransformNode <_>, input: ImageFrame <Color >, params: [ ImageFrame <Color >] ) ,
790
686
register_node!( graphene_core:: transform:: SetTransformNode <_>, input: VectorData , params: [ DAffine2 ] ) ,
@@ -836,7 +732,7 @@ fn node_registry() -> HashMap<ProtoNodeIdentifier, HashMap<NodeIOTypes, NodeCons
836
732
) ] ,
837
733
register_node!( graphene_std:: raster:: SampleNode <_>, input: Footprint , params: [ ImageFrame <Color >] ) ,
838
734
register_node!( graphene_std:: raster:: MandelbrotNode , input: Footprint , params: [ ] ) ,
839
- register_node !( graphene_core:: vector:: CopyToPoints <_>, input: VectorData , params : [ VectorData ] ) ,
735
+ async_node !( graphene_core:: vector:: CopyToPoints <_, _ >, input: Footprint , output : VectorData , fn_params : [ Footprint => VectorData , Footprint => VectorData ] ) ,
840
736
register_node!( graphene_core:: vector:: ResamplePoints <_>, input: VectorData , params: [ f64 ] ) ,
841
737
register_node!( graphene_core:: vector:: SplinesFromPointsNode , input: VectorData , params: [ ] ) ,
842
738
register_node!( graphene_core:: vector:: generator_nodes:: CircleGenerator <_>, input: ( ) , params: [ f32 ] ) ,
0 commit comments