@@ -455,73 +455,73 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
455
455
description: Cow :: Borrowed ( "Creates a new Artboard which can be used as a working surface." ) ,
456
456
properties: None ,
457
457
} ,
458
- DocumentNodeDefinition {
459
- identifier: "Load Image" ,
460
- category: "Web Request" ,
461
- node_template: NodeTemplate {
462
- document_node: DocumentNode {
463
- implementation: DocumentNodeImplementation :: Network ( NodeNetwork {
464
- exports: vec![ NodeInput :: node( NodeId ( 1 ) , 0 ) ] ,
465
- nodes: [
466
- DocumentNode {
467
- inputs: vec![ NodeInput :: value( TaggedValue :: None , false ) , NodeInput :: scope( "editor-api" ) , NodeInput :: network( concrete!( String ) , 1 ) ] ,
468
- manual_composition: Some ( concrete!( Context ) ) ,
469
- implementation: DocumentNodeImplementation :: ProtoNode ( wasm_application_io:: load_resource:: IDENTIFIER ) ,
470
- ..Default :: default ( )
471
- } ,
472
- DocumentNode {
473
- inputs: vec![ NodeInput :: node( NodeId ( 0 ) , 0 ) ] ,
474
- manual_composition: Some ( concrete!( Context ) ) ,
475
- implementation: DocumentNodeImplementation :: ProtoNode ( wasm_application_io:: decode_image:: IDENTIFIER ) ,
476
- ..Default :: default ( )
477
- } ,
478
- ]
479
- . into_iter( )
480
- . enumerate( )
481
- . map( |( id, node) | ( NodeId ( id as u64 ) , node) )
482
- . collect( ) ,
483
- ..Default :: default ( )
484
- } ) ,
485
- inputs: vec![ NodeInput :: value( TaggedValue :: None , false ) , NodeInput :: value( TaggedValue :: String ( "graphite:null" . to_string( ) ) , false ) ] ,
486
- ..Default :: default ( )
487
- } ,
488
- persistent_node_metadata: DocumentNodePersistentMetadata {
489
- input_metadata: vec![ ( "Empty" , "TODO" ) . into( ) , ( "URL" , "TODO" ) . into( ) ] ,
490
- output_names: vec![ "Image" . to_string( ) ] ,
491
- network_metadata: Some ( NodeNetworkMetadata {
492
- persistent_metadata: NodeNetworkPersistentMetadata {
493
- node_metadata: [
494
- DocumentNodeMetadata {
495
- persistent_metadata: DocumentNodePersistentMetadata {
496
- display_name: "Load Resource" . to_string( ) ,
497
- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( 0 , 0 ) ) ,
498
- ..Default :: default ( )
499
- } ,
500
- ..Default :: default ( )
501
- } ,
502
- DocumentNodeMetadata {
503
- persistent_metadata: DocumentNodePersistentMetadata {
504
- display_name: "Decode Image" . to_string( ) ,
505
- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( 7 , 0 ) ) ,
506
- ..Default :: default ( )
507
- } ,
508
- ..Default :: default ( )
509
- } ,
510
- ]
511
- . into_iter( )
512
- . enumerate( )
513
- . map( |( id, node) | ( NodeId ( id as u64 ) , node) )
514
- . collect( ) ,
515
- ..Default :: default ( )
516
- } ,
517
- ..Default :: default ( )
518
- } ) ,
519
- ..Default :: default ( )
520
- } ,
521
- } ,
522
- description: Cow :: Borrowed ( "Loads an image from a given URL" ) ,
523
- properties: None ,
524
- } ,
458
+ // DocumentNodeDefinition {
459
+ // identifier: "Load Image",
460
+ // category: "Web Request",
461
+ // node_template: NodeTemplate {
462
+ // document_node: DocumentNode {
463
+ // implementation: DocumentNodeImplementation::Network(NodeNetwork {
464
+ // exports: vec![NodeInput::node(NodeId(1), 0)],
465
+ // nodes: [
466
+ // DocumentNode {
467
+ // inputs: vec![NodeInput::value(TaggedValue::None, false), NodeInput::scope("editor-api"), NodeInput::network(concrete!(String), 1)],
468
+ // manual_composition: Some(concrete!(Context)),
469
+ // implementation: DocumentNodeImplementation::ProtoNode(wasm_application_io::load_resource::IDENTIFIER),
470
+ // ..Default::default()
471
+ // },
472
+ // DocumentNode {
473
+ // inputs: vec![NodeInput::node(NodeId(0), 0)],
474
+ // manual_composition: Some(concrete!(Context)),
475
+ // implementation: DocumentNodeImplementation::ProtoNode(wasm_application_io::decode_image::IDENTIFIER),
476
+ // ..Default::default()
477
+ // },
478
+ // ]
479
+ // .into_iter()
480
+ // .enumerate()
481
+ // .map(|(id, node)| (NodeId(id as u64), node))
482
+ // .collect(),
483
+ // ..Default::default()
484
+ // }),
485
+ // inputs: vec![NodeInput::value(TaggedValue::None, false), NodeInput::value(TaggedValue::String("graphite:null".to_string()), false)],
486
+ // ..Default::default()
487
+ // },
488
+ // persistent_node_metadata: DocumentNodePersistentMetadata {
489
+ // input_metadata: vec![("Empty", "TODO").into(), ("URL", "TODO").into()],
490
+ // output_names: vec!["Image".to_string()],
491
+ // network_metadata: Some(NodeNetworkMetadata {
492
+ // persistent_metadata: NodeNetworkPersistentMetadata {
493
+ // node_metadata: [
494
+ // DocumentNodeMetadata {
495
+ // persistent_metadata: DocumentNodePersistentMetadata {
496
+ // display_name: "Load Resource".to_string(),
497
+ // node_type_metadata: NodeTypePersistentMetadata::node(IVec2::new(0, 0)),
498
+ // ..Default::default()
499
+ // },
500
+ // ..Default::default()
501
+ // },
502
+ // DocumentNodeMetadata {
503
+ // persistent_metadata: DocumentNodePersistentMetadata {
504
+ // display_name: "Decode Image".to_string(),
505
+ // node_type_metadata: NodeTypePersistentMetadata::node(IVec2::new(7, 0)),
506
+ // ..Default::default()
507
+ // },
508
+ // ..Default::default()
509
+ // },
510
+ // ]
511
+ // .into_iter()
512
+ // .enumerate()
513
+ // .map(|(id, node)| (NodeId(id as u64), node))
514
+ // .collect(),
515
+ // ..Default::default()
516
+ // },
517
+ // ..Default::default()
518
+ // }),
519
+ // ..Default::default()
520
+ // },
521
+ // },
522
+ // description: Cow::Borrowed("Loads an image from a given URL"),
523
+ // properties: None,
524
+ // },
525
525
#[ cfg( feature = "gpu" ) ]
526
526
DocumentNodeDefinition {
527
527
identifier: "Create Canvas" ,
0 commit comments