reactive_graph_flow_model/reactive_graph/flow/comment.rs
1//! ---------------------------------------------
2//! This file was generated automatically.
3//! ---------------------------------------------
4#![allow(dead_code, unused)]
5#![cfg_attr(rustfmt, rustfmt_skip)]
6
7/// Namespace `reactive_graph::flow::Comment`
8#[cfg_attr(rustfmt, rustfmt_skip)]
9pub const COMMENT_NAMESPACE: &str = "reactive_graph::flow::Comment";
10
11/// The [type identifier]() of EntityType `Comment`.
12///
13/// ### Namespace
14///
15/// The fully qualified namespace is
16/// `reactive_graph::flow::Comment`
17pub static COMMENT: std::sync::LazyLock<reactive_graph_graph::EntityTypeId> = std::sync::LazyLock::new(||
18std::str::FromStr::from_str(COMMENT_NAMESPACE).unwrap());
19
20/// The properties of EntityType `Comment`.
21#[allow(non_camel_case_types)]
22#[derive(Debug, PartialEq, PartialOrd, Eq, Hash, Clone)]
23pub enum CommentProperties {
24
25 /// ### Property `comment`
26 ///
27 /// Comment
28 ///
29 /// Data Type: `String`
30 ///
31 /// Socket Type: `None`
32 ///
33 /// Mutability: `Mutable`
34 ///
35 COMMENT,
36
37 /// ### Property `f2dh`
38 ///
39 /// The height (y-axis) in a 2D flow
40 ///
41 /// Data Type: `Number`
42 ///
43 /// Socket Type: `None`
44 ///
45 /// Mutability: `Mutable`
46 ///
47 F_2_DH,
48
49 /// ### Property `f2dw`
50 ///
51 /// The width (x-axis) in a 2D flow
52 ///
53 /// Data Type: `Number`
54 ///
55 /// Socket Type: `None`
56 ///
57 /// Mutability: `Mutable`
58 ///
59 F_2_DW,
60
61 /// ### Property `f2dx`
62 ///
63 /// The X position in a 2D flow
64 ///
65 /// Data Type: `Number`
66 ///
67 /// Socket Type: `None`
68 ///
69 /// Mutability: `Mutable`
70 ///
71 F_2_DX,
72
73 /// ### Property `f2dy`
74 ///
75 /// The Y position in a 2D flow
76 ///
77 /// Data Type: `Number`
78 ///
79 /// Socket Type: `None`
80 ///
81 /// Mutability: `Mutable`
82 ///
83 F_2_DY,
84
85 /// ### Property `f3dd`
86 ///
87 /// The depth (z-axis) in a 3D flow
88 ///
89 /// Data Type: `Number`
90 ///
91 /// Socket Type: `None`
92 ///
93 /// Mutability: `Mutable`
94 ///
95 F_3_DD,
96
97 /// ### Property `f3dh`
98 ///
99 /// The height (y-axis) in a 3D flow
100 ///
101 /// Data Type: `Number`
102 ///
103 /// Socket Type: `None`
104 ///
105 /// Mutability: `Mutable`
106 ///
107 F_3_DH,
108
109 /// ### Property `f3dw`
110 ///
111 /// The width (x-axis) in a 3D flow
112 ///
113 /// Data Type: `Number`
114 ///
115 /// Socket Type: `None`
116 ///
117 /// Mutability: `Mutable`
118 ///
119 F_3_DW,
120
121 /// ### Property `f3dx`
122 ///
123 /// The X position in a 3D flow
124 ///
125 /// Data Type: `Number`
126 ///
127 /// Socket Type: `None`
128 ///
129 /// Mutability: `Mutable`
130 ///
131 F_3_DX,
132
133 /// ### Property `f3dy`
134 ///
135 /// The Y position in a 3D flow
136 ///
137 /// Data Type: `Number`
138 ///
139 /// Socket Type: `None`
140 ///
141 /// Mutability: `Mutable`
142 ///
143 F_3_DY,
144
145 /// ### Property `f3dz`
146 ///
147 /// The Z position in a 3D flow
148 ///
149 /// Data Type: `Number`
150 ///
151 /// Socket Type: `None`
152 ///
153 /// Mutability: `Mutable`
154 ///
155 F_3_DZ,
156}
157impl CommentProperties {
158 pub fn len() -> usize {
159 11usize
160 }
161
162 pub fn property_types() -> reactive_graph_graph::PropertyTypes {
163 let property_types = reactive_graph_graph::PropertyTypes::new();
164 property_types.push(CommentProperties::COMMENT);
165 property_types.push(CommentProperties::F_2_DH);
166 property_types.push(CommentProperties::F_2_DW);
167 property_types.push(CommentProperties::F_2_DX);
168 property_types.push(CommentProperties::F_2_DY);
169 property_types.push(CommentProperties::F_3_DD);
170 property_types.push(CommentProperties::F_3_DH);
171 property_types.push(CommentProperties::F_3_DW);
172 property_types.push(CommentProperties::F_3_DX);
173 property_types.push(CommentProperties::F_3_DY);
174 property_types.push(CommentProperties::F_3_DZ);
175 property_types
176 }
177}
178
179impl AsRef<str> for CommentProperties {
180 #[inline]
181 fn as_ref(&self) -> &str {
182 match *self {
183 CommentProperties::COMMENT => "comment",
184 CommentProperties::F_2_DH => "f2dh",
185 CommentProperties::F_2_DW => "f2dw",
186 CommentProperties::F_2_DX => "f2dx",
187 CommentProperties::F_2_DY => "f2dy",
188 CommentProperties::F_3_DD => "f3dd",
189 CommentProperties::F_3_DH => "f3dh",
190 CommentProperties::F_3_DW => "f3dw",
191 CommentProperties::F_3_DX => "f3dx",
192 CommentProperties::F_3_DY => "f3dy",
193 CommentProperties::F_3_DZ => "f3dz",
194 }
195 }
196}
197
198impl From<CommentProperties> for &'static str {
199 #[inline]
200 fn from(properties: CommentProperties) -> &'static str {
201 match properties {
202 CommentProperties::COMMENT => "comment",
203 CommentProperties::F_2_DH => "f2dh",
204 CommentProperties::F_2_DW => "f2dw",
205 CommentProperties::F_2_DX => "f2dx",
206 CommentProperties::F_2_DY => "f2dy",
207 CommentProperties::F_3_DD => "f3dd",
208 CommentProperties::F_3_DH => "f3dh",
209 CommentProperties::F_3_DW => "f3dw",
210 CommentProperties::F_3_DX => "f3dx",
211 CommentProperties::F_3_DY => "f3dy",
212 CommentProperties::F_3_DZ => "f3dz",
213 }
214 }
215}
216
217impl From<CommentProperties> for String {
218 #[inline]
219 fn from(properties: CommentProperties) -> String {
220 match properties {
221 CommentProperties::COMMENT => "comment".to_owned(),
222 CommentProperties::F_2_DH => "f2dh".to_owned(),
223 CommentProperties::F_2_DW => "f2dw".to_owned(),
224 CommentProperties::F_2_DX => "f2dx".to_owned(),
225 CommentProperties::F_2_DY => "f2dy".to_owned(),
226 CommentProperties::F_3_DD => "f3dd".to_owned(),
227 CommentProperties::F_3_DH => "f3dh".to_owned(),
228 CommentProperties::F_3_DW => "f3dw".to_owned(),
229 CommentProperties::F_3_DX => "f3dx".to_owned(),
230 CommentProperties::F_3_DY => "f3dy".to_owned(),
231 CommentProperties::F_3_DZ => "f3dz".to_owned(),
232 }
233 }
234}
235
236impl From<CommentProperties> for reactive_graph_graph::PropertyType {
237 #[inline]
238 fn from(properties: CommentProperties) -> reactive_graph_graph::PropertyType {
239 match properties {
240 CommentProperties::COMMENT => {
241 reactive_graph_graph::PropertyType::new_with_all(
242 "comment",
243 "Comment",
244 reactive_graph_graph::DataType::String,
245 reactive_graph_graph::SocketType::None,
246 reactive_graph_graph::Mutability::Mutable,
247 reactive_graph_graph::Extensions::new(),
248 )
249 }
250 CommentProperties::F_2_DH => {
251 reactive_graph_graph::PropertyType::new_with_all(
252 "f2dh",
253 "The height (y-axis) in a 2D flow",
254 reactive_graph_graph::DataType::Number,
255 reactive_graph_graph::SocketType::None,
256 reactive_graph_graph::Mutability::Mutable,
257 reactive_graph_graph::Extensions::new(),
258 )
259 }
260 CommentProperties::F_2_DW => {
261 reactive_graph_graph::PropertyType::new_with_all(
262 "f2dw",
263 "The width (x-axis) in a 2D flow",
264 reactive_graph_graph::DataType::Number,
265 reactive_graph_graph::SocketType::None,
266 reactive_graph_graph::Mutability::Mutable,
267 reactive_graph_graph::Extensions::new(),
268 )
269 }
270 CommentProperties::F_2_DX => {
271 reactive_graph_graph::PropertyType::new_with_all(
272 "f2dx",
273 "The X position in a 2D flow",
274 reactive_graph_graph::DataType::Number,
275 reactive_graph_graph::SocketType::None,
276 reactive_graph_graph::Mutability::Mutable,
277 reactive_graph_graph::Extensions::new(),
278 )
279 }
280 CommentProperties::F_2_DY => {
281 reactive_graph_graph::PropertyType::new_with_all(
282 "f2dy",
283 "The Y position in a 2D flow",
284 reactive_graph_graph::DataType::Number,
285 reactive_graph_graph::SocketType::None,
286 reactive_graph_graph::Mutability::Mutable,
287 reactive_graph_graph::Extensions::new(),
288 )
289 }
290 CommentProperties::F_3_DD => {
291 reactive_graph_graph::PropertyType::new_with_all(
292 "f3dd",
293 "The depth (z-axis) in a 3D flow",
294 reactive_graph_graph::DataType::Number,
295 reactive_graph_graph::SocketType::None,
296 reactive_graph_graph::Mutability::Mutable,
297 reactive_graph_graph::Extensions::new(),
298 )
299 }
300 CommentProperties::F_3_DH => {
301 reactive_graph_graph::PropertyType::new_with_all(
302 "f3dh",
303 "The height (y-axis) in a 3D flow",
304 reactive_graph_graph::DataType::Number,
305 reactive_graph_graph::SocketType::None,
306 reactive_graph_graph::Mutability::Mutable,
307 reactive_graph_graph::Extensions::new(),
308 )
309 }
310 CommentProperties::F_3_DW => {
311 reactive_graph_graph::PropertyType::new_with_all(
312 "f3dw",
313 "The width (x-axis) in a 3D flow",
314 reactive_graph_graph::DataType::Number,
315 reactive_graph_graph::SocketType::None,
316 reactive_graph_graph::Mutability::Mutable,
317 reactive_graph_graph::Extensions::new(),
318 )
319 }
320 CommentProperties::F_3_DX => {
321 reactive_graph_graph::PropertyType::new_with_all(
322 "f3dx",
323 "The X position in a 3D flow",
324 reactive_graph_graph::DataType::Number,
325 reactive_graph_graph::SocketType::None,
326 reactive_graph_graph::Mutability::Mutable,
327 reactive_graph_graph::Extensions::new(),
328 )
329 }
330 CommentProperties::F_3_DY => {
331 reactive_graph_graph::PropertyType::new_with_all(
332 "f3dy",
333 "The Y position in a 3D flow",
334 reactive_graph_graph::DataType::Number,
335 reactive_graph_graph::SocketType::None,
336 reactive_graph_graph::Mutability::Mutable,
337 reactive_graph_graph::Extensions::new(),
338 )
339 }
340 CommentProperties::F_3_DZ => {
341 reactive_graph_graph::PropertyType::new_with_all(
342 "f3dz",
343 "The Z position in a 3D flow",
344 reactive_graph_graph::DataType::Number,
345 reactive_graph_graph::SocketType::None,
346 reactive_graph_graph::Mutability::Mutable,
347 reactive_graph_graph::Extensions::new(),
348 )
349 }
350 }
351 }
352}
353
354pub struct CommentPropertiesIterator(Option<CommentProperties>);
355
356impl CommentProperties {
357 pub fn into_iter() -> CommentPropertiesIterator {
358 CommentPropertiesIterator(None)
359 }
360}
361
362impl Iterator for CommentPropertiesIterator {
363 type Item = CommentProperties;
364 fn next(&mut self) -> Option<Self::Item> {
365 self.0 = match self.0 {
366 None => Some(CommentProperties::COMMENT),
367 Some(CommentProperties::COMMENT) => Some(CommentProperties::F_2_DH),
368 Some(CommentProperties::F_2_DH) => Some(CommentProperties::F_2_DW),
369 Some(CommentProperties::F_2_DW) => Some(CommentProperties::F_2_DX),
370 Some(CommentProperties::F_2_DX) => Some(CommentProperties::F_2_DY),
371 Some(CommentProperties::F_2_DY) => Some(CommentProperties::F_3_DD),
372 Some(CommentProperties::F_3_DD) => Some(CommentProperties::F_3_DH),
373 Some(CommentProperties::F_3_DH) => Some(CommentProperties::F_3_DW),
374 Some(CommentProperties::F_3_DW) => Some(CommentProperties::F_3_DX),
375 Some(CommentProperties::F_3_DX) => Some(CommentProperties::F_3_DY),
376 Some(CommentProperties::F_3_DY) => Some(CommentProperties::F_3_DZ),
377 Some(CommentProperties::F_3_DZ) => None,
378 };
379 self.0.clone()
380 }
381}
382
383impl IntoIterator for CommentProperties {
384 type Item = CommentProperties;
385 type IntoIter = CommentPropertiesIterator;
386 fn into_iter(self) -> Self::IntoIter {
387 CommentPropertiesIterator(None)
388 }
389}
390
391impl core::fmt::Display for CommentProperties {
392 fn fmt(&self, f: &mut core::fmt::Formatter) -> Result<(), core::fmt::Error> {
393 match *self {
394 CommentProperties::COMMENT => core::fmt::Display::fmt("comment", f),
395 CommentProperties::F_2_DH => core::fmt::Display::fmt("f2dh", f),
396 CommentProperties::F_2_DW => core::fmt::Display::fmt("f2dw", f),
397 CommentProperties::F_2_DX => core::fmt::Display::fmt("f2dx", f),
398 CommentProperties::F_2_DY => core::fmt::Display::fmt("f2dy", f),
399 CommentProperties::F_3_DD => core::fmt::Display::fmt("f3dd", f),
400 CommentProperties::F_3_DH => core::fmt::Display::fmt("f3dh", f),
401 CommentProperties::F_3_DW => core::fmt::Display::fmt("f3dw", f),
402 CommentProperties::F_3_DX => core::fmt::Display::fmt("f3dx", f),
403 CommentProperties::F_3_DY => core::fmt::Display::fmt("f3dy", f),
404 CommentProperties::F_3_DZ => core::fmt::Display::fmt("f3dz", f),
405 }
406 }
407}
408
409/// ## Components
410///
411/// | Component | Description | Properties |
412/// |--------------------------------|--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|
413/// | `reactive_graph::flow::Flow2D` | The position (x,y) of the entity or relation on a two dimensional flow. | <ul compact><li>`f2dh`</li><li>`f2dw`</li><li>`f2dx`</li><li>`f2dy`</li></ul> |
414/// | `reactive_graph::flow::Flow3D` | The position (x,y,z) of the entity or relation on a three dimensional flow (in-game visual scripting). | <ul compact><li>`f3dd`</li><li>`f3dh`</li><li>`f3dw`</li><li>`f3dx`</li><li>`f3dy`</li><li>`f3dz`</li></ul> |
415///
416pub static COMMENT_COMPONENTS: std::sync::LazyLock<
417 reactive_graph_graph::ComponentTypeIds,
418> = std::sync::LazyLock::new(|| {
419 reactive_graph_graph::ComponentTypeIds::new()
420 .component(
421 std::ops::Deref::deref(&crate::reactive_graph::flow::flow_2_d::FLOW_2_D),
422 )
423 .component(
424 std::ops::Deref::deref(&crate::reactive_graph::flow::flow_3_d::FLOW_3_D),
425 )
426});
427
428///
429pub static COMMENT_EXTENSIONS: std::sync::LazyLock<reactive_graph_graph::Extensions> = std::sync::LazyLock::new(||
430{ reactive_graph_graph::Extensions::new() });
431
432pub static COMMENT_TYPE: std::sync::LazyLock<reactive_graph_graph::EntityType> = std::sync::LazyLock::new(||
433{
434 reactive_graph_graph::EntityType::builder()
435 .ty(core::ops::Deref::deref(&COMMENT))
436 .description("A simple comment")
437 .components(COMMENT_COMPONENTS.clone())
438 .properties(CommentProperties::property_types())
439 .extensions(COMMENT_EXTENSIONS.clone())
440 .build()
441});
442
443/// # EntityType `Comment`
444///
445/// ## Fully Qualified Namespace
446///
447/// `reactive_graph::flow::Comment`
448///
449/// ## Description
450///
451/// A simple comment
452///
453/// ## Components
454///
455/// | Component | Description | Properties |
456/// |--------------------------------|--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|
457/// | `reactive_graph::flow::Flow2D` | The position (x,y) of the entity or relation on a two dimensional flow. | <ul compact><li>`f2dh`</li><li>`f2dw`</li><li>`f2dx`</li><li>`f2dy`</li></ul> |
458/// | `reactive_graph::flow::Flow3D` | The position (x,y,z) of the entity or relation on a three dimensional flow (in-game visual scripting). | <ul compact><li>`f3dd`</li><li>`f3dh`</li><li>`f3dw`</li><li>`f3dx`</li><li>`f3dy`</li><li>`f3dz`</li></ul> |
459///
460/// ### Properties
461///
462/// - comment
463///
464/// ### Properties from components
465///
466/// - f2dh
467/// - f2dw
468/// - f2dx
469/// - f2dy
470/// - f3dd
471/// - f3dh
472/// - f3dw
473/// - f3dx
474/// - f3dy
475/// - f3dz
476///
477/// ## JSON Schema
478///
479/// [https://schema.reactive-graph.io/schema/json/dynamic_graph/types/entity/reactive_graph/flow/Comment.schema.json]()
480///
481#[derive(
482 Debug,
483 Clone,
484 PartialEq,
485 Eq,
486 serde::Serialize,
487 serde::Deserialize,
488 typed_builder::TypedBuilder
489)]
490pub struct Comment {
491 #[builder(default, setter(into))]
492 pub id: uuid::Uuid,
493
494 /// ### Property `comment`
495 ///
496 /// Comment
497 ///
498 /// Data Type: `String`
499 ///
500 /// Socket Type: `None`
501 ///
502 /// Mutability: `Mutable`
503 ///
504 #[builder(setter(into))]
505 pub comment: String,
506
507 /// ### Property `f2dh`
508 ///
509 /// The height (y-axis) in a 2D flow
510 ///
511 /// Data Type: `Number`
512 ///
513 /// Socket Type: `None`
514 ///
515 /// Mutability: `Mutable`
516 ///
517 pub f2dh: u64,
518
519 /// ### Property `f2dw`
520 ///
521 /// The width (x-axis) in a 2D flow
522 ///
523 /// Data Type: `Number`
524 ///
525 /// Socket Type: `None`
526 ///
527 /// Mutability: `Mutable`
528 ///
529 pub f2dw: u64,
530
531 /// ### Property `f2dx`
532 ///
533 /// The X position in a 2D flow
534 ///
535 /// Data Type: `Number`
536 ///
537 /// Socket Type: `None`
538 ///
539 /// Mutability: `Mutable`
540 ///
541 pub f2dx: u64,
542
543 /// ### Property `f2dy`
544 ///
545 /// The Y position in a 2D flow
546 ///
547 /// Data Type: `Number`
548 ///
549 /// Socket Type: `None`
550 ///
551 /// Mutability: `Mutable`
552 ///
553 pub f2dy: u64,
554
555 /// ### Property `f3dd`
556 ///
557 /// The depth (z-axis) in a 3D flow
558 ///
559 /// Data Type: `Number`
560 ///
561 /// Socket Type: `None`
562 ///
563 /// Mutability: `Mutable`
564 ///
565 pub f3dd: u64,
566
567 /// ### Property `f3dh`
568 ///
569 /// The height (y-axis) in a 3D flow
570 ///
571 /// Data Type: `Number`
572 ///
573 /// Socket Type: `None`
574 ///
575 /// Mutability: `Mutable`
576 ///
577 pub f3dh: u64,
578
579 /// ### Property `f3dw`
580 ///
581 /// The width (x-axis) in a 3D flow
582 ///
583 /// Data Type: `Number`
584 ///
585 /// Socket Type: `None`
586 ///
587 /// Mutability: `Mutable`
588 ///
589 pub f3dw: u64,
590
591 /// ### Property `f3dx`
592 ///
593 /// The X position in a 3D flow
594 ///
595 /// Data Type: `Number`
596 ///
597 /// Socket Type: `None`
598 ///
599 /// Mutability: `Mutable`
600 ///
601 pub f3dx: u64,
602
603 /// ### Property `f3dy`
604 ///
605 /// The Y position in a 3D flow
606 ///
607 /// Data Type: `Number`
608 ///
609 /// Socket Type: `None`
610 ///
611 /// Mutability: `Mutable`
612 ///
613 pub f3dy: u64,
614
615 /// ### Property `f3dz`
616 ///
617 /// The Z position in a 3D flow
618 ///
619 /// Data Type: `Number`
620 ///
621 /// Socket Type: `None`
622 ///
623 /// Mutability: `Mutable`
624 ///
625 pub f3dz: u64,
626 #[builder(default, setter(into))]
627 pub extensions: reactive_graph_graph::Extensions,
628}
629
630impl Comment {
631 pub fn new(
632 comment: String,
633 f2dh: u64,
634 f2dw: u64,
635 f2dx: u64,
636 f2dy: u64,
637 f3dd: u64,
638 f3dh: u64,
639 f3dw: u64,
640 f3dx: u64,
641 f3dy: u64,
642 f3dz: u64,
643 ) -> Self {
644 Self {
645 id: uuid::Uuid::new_v4(),
646 comment,
647 f2dh,
648 f2dw,
649 f2dx,
650 f2dy,
651 f3dd,
652 f3dh,
653 f3dw,
654 f3dx,
655 f3dy,
656 f3dz,
657 extensions: reactive_graph_graph::Extensions::new(),
658 }
659 }
660 pub fn new_with_id(
661 id: uuid::Uuid,
662 comment: String,
663 f2dh: u64,
664 f2dw: u64,
665 f2dx: u64,
666 f2dy: u64,
667 f3dd: u64,
668 f3dh: u64,
669 f3dw: u64,
670 f3dx: u64,
671 f3dy: u64,
672 f3dz: u64,
673 ) -> Self {
674 Self {
675 id,
676 comment,
677 f2dh,
678 f2dw,
679 f2dx,
680 f2dy,
681 f3dd,
682 f3dh,
683 f3dw,
684 f3dx,
685 f3dy,
686 f3dz,
687 extensions: reactive_graph_graph::Extensions::new(),
688 }
689 }
690 pub fn new_with_extensions(
691 id: uuid::Uuid,
692 comment: String,
693 f2dh: u64,
694 f2dw: u64,
695 f2dx: u64,
696 f2dy: u64,
697 f3dd: u64,
698 f3dh: u64,
699 f3dw: u64,
700 f3dx: u64,
701 f3dy: u64,
702 f3dz: u64,
703 extensions: reactive_graph_graph::Extensions,
704 ) -> Self {
705 Self {
706 id,
707 comment,
708 f2dh,
709 f2dw,
710 f2dx,
711 f2dy,
712 f3dd,
713 f3dh,
714 f3dw,
715 f3dx,
716 f3dy,
717 f3dz,
718 extensions,
719 }
720 }
721
722 pub fn id(&self) -> uuid::Uuid {
723 self.id
724 }
725
726 /// ### Property `comment`
727 ///
728 /// Comment
729 ///
730 /// Data Type: `String`
731 ///
732 /// Socket Type: `None`
733 ///
734 /// Mutability: `Mutable`
735 ///
736 pub fn comment(&self) -> String {
737 self.comment.clone()
738 }
739
740 /// ### Property `comment`
741 ///
742 /// Comment
743 ///
744 /// Data Type: `String`
745 ///
746 /// Socket Type: `None`
747 ///
748 /// Mutability: `Mutable`
749 ///
750 pub fn set_comment(&mut self, comment: String) {
751 self.comment = comment;
752 }
753
754 /// ### Property `f2dh`
755 ///
756 /// The height (y-axis) in a 2D flow
757 ///
758 /// Data Type: `Number`
759 ///
760 /// Socket Type: `None`
761 ///
762 /// Mutability: `Mutable`
763 ///
764 pub fn f2dh(&self) -> u64 {
765 self.f2dh
766 }
767
768 /// ### Property `f2dh`
769 ///
770 /// The height (y-axis) in a 2D flow
771 ///
772 /// Data Type: `Number`
773 ///
774 /// Socket Type: `None`
775 ///
776 /// Mutability: `Mutable`
777 ///
778 pub fn set_f2dh(&mut self, f2dh: u64) {
779 self.f2dh = f2dh;
780 }
781
782 /// ### Property `f2dw`
783 ///
784 /// The width (x-axis) in a 2D flow
785 ///
786 /// Data Type: `Number`
787 ///
788 /// Socket Type: `None`
789 ///
790 /// Mutability: `Mutable`
791 ///
792 pub fn f2dw(&self) -> u64 {
793 self.f2dw
794 }
795
796 /// ### Property `f2dw`
797 ///
798 /// The width (x-axis) in a 2D flow
799 ///
800 /// Data Type: `Number`
801 ///
802 /// Socket Type: `None`
803 ///
804 /// Mutability: `Mutable`
805 ///
806 pub fn set_f2dw(&mut self, f2dw: u64) {
807 self.f2dw = f2dw;
808 }
809
810 /// ### Property `f2dx`
811 ///
812 /// The X position in a 2D flow
813 ///
814 /// Data Type: `Number`
815 ///
816 /// Socket Type: `None`
817 ///
818 /// Mutability: `Mutable`
819 ///
820 pub fn f2dx(&self) -> u64 {
821 self.f2dx
822 }
823
824 /// ### Property `f2dx`
825 ///
826 /// The X position in a 2D flow
827 ///
828 /// Data Type: `Number`
829 ///
830 /// Socket Type: `None`
831 ///
832 /// Mutability: `Mutable`
833 ///
834 pub fn set_f2dx(&mut self, f2dx: u64) {
835 self.f2dx = f2dx;
836 }
837
838 /// ### Property `f2dy`
839 ///
840 /// The Y position in a 2D flow
841 ///
842 /// Data Type: `Number`
843 ///
844 /// Socket Type: `None`
845 ///
846 /// Mutability: `Mutable`
847 ///
848 pub fn f2dy(&self) -> u64 {
849 self.f2dy
850 }
851
852 /// ### Property `f2dy`
853 ///
854 /// The Y position in a 2D flow
855 ///
856 /// Data Type: `Number`
857 ///
858 /// Socket Type: `None`
859 ///
860 /// Mutability: `Mutable`
861 ///
862 pub fn set_f2dy(&mut self, f2dy: u64) {
863 self.f2dy = f2dy;
864 }
865
866 /// ### Property `f3dd`
867 ///
868 /// The depth (z-axis) in a 3D flow
869 ///
870 /// Data Type: `Number`
871 ///
872 /// Socket Type: `None`
873 ///
874 /// Mutability: `Mutable`
875 ///
876 pub fn f3dd(&self) -> u64 {
877 self.f3dd
878 }
879
880 /// ### Property `f3dd`
881 ///
882 /// The depth (z-axis) in a 3D flow
883 ///
884 /// Data Type: `Number`
885 ///
886 /// Socket Type: `None`
887 ///
888 /// Mutability: `Mutable`
889 ///
890 pub fn set_f3dd(&mut self, f3dd: u64) {
891 self.f3dd = f3dd;
892 }
893
894 /// ### Property `f3dh`
895 ///
896 /// The height (y-axis) in a 3D flow
897 ///
898 /// Data Type: `Number`
899 ///
900 /// Socket Type: `None`
901 ///
902 /// Mutability: `Mutable`
903 ///
904 pub fn f3dh(&self) -> u64 {
905 self.f3dh
906 }
907
908 /// ### Property `f3dh`
909 ///
910 /// The height (y-axis) in a 3D flow
911 ///
912 /// Data Type: `Number`
913 ///
914 /// Socket Type: `None`
915 ///
916 /// Mutability: `Mutable`
917 ///
918 pub fn set_f3dh(&mut self, f3dh: u64) {
919 self.f3dh = f3dh;
920 }
921
922 /// ### Property `f3dw`
923 ///
924 /// The width (x-axis) in a 3D flow
925 ///
926 /// Data Type: `Number`
927 ///
928 /// Socket Type: `None`
929 ///
930 /// Mutability: `Mutable`
931 ///
932 pub fn f3dw(&self) -> u64 {
933 self.f3dw
934 }
935
936 /// ### Property `f3dw`
937 ///
938 /// The width (x-axis) in a 3D flow
939 ///
940 /// Data Type: `Number`
941 ///
942 /// Socket Type: `None`
943 ///
944 /// Mutability: `Mutable`
945 ///
946 pub fn set_f3dw(&mut self, f3dw: u64) {
947 self.f3dw = f3dw;
948 }
949
950 /// ### Property `f3dx`
951 ///
952 /// The X position in a 3D flow
953 ///
954 /// Data Type: `Number`
955 ///
956 /// Socket Type: `None`
957 ///
958 /// Mutability: `Mutable`
959 ///
960 pub fn f3dx(&self) -> u64 {
961 self.f3dx
962 }
963
964 /// ### Property `f3dx`
965 ///
966 /// The X position in a 3D flow
967 ///
968 /// Data Type: `Number`
969 ///
970 /// Socket Type: `None`
971 ///
972 /// Mutability: `Mutable`
973 ///
974 pub fn set_f3dx(&mut self, f3dx: u64) {
975 self.f3dx = f3dx;
976 }
977
978 /// ### Property `f3dy`
979 ///
980 /// The Y position in a 3D flow
981 ///
982 /// Data Type: `Number`
983 ///
984 /// Socket Type: `None`
985 ///
986 /// Mutability: `Mutable`
987 ///
988 pub fn f3dy(&self) -> u64 {
989 self.f3dy
990 }
991
992 /// ### Property `f3dy`
993 ///
994 /// The Y position in a 3D flow
995 ///
996 /// Data Type: `Number`
997 ///
998 /// Socket Type: `None`
999 ///
1000 /// Mutability: `Mutable`
1001 ///
1002 pub fn set_f3dy(&mut self, f3dy: u64) {
1003 self.f3dy = f3dy;
1004 }
1005
1006 /// ### Property `f3dz`
1007 ///
1008 /// The Z position in a 3D flow
1009 ///
1010 /// Data Type: `Number`
1011 ///
1012 /// Socket Type: `None`
1013 ///
1014 /// Mutability: `Mutable`
1015 ///
1016 pub fn f3dz(&self) -> u64 {
1017 self.f3dz
1018 }
1019
1020 /// ### Property `f3dz`
1021 ///
1022 /// The Z position in a 3D flow
1023 ///
1024 /// Data Type: `Number`
1025 ///
1026 /// Socket Type: `None`
1027 ///
1028 /// Mutability: `Mutable`
1029 ///
1030 pub fn set_f3dz(&mut self, f3dz: u64) {
1031 self.f3dz = f3dz;
1032 }
1033
1034 pub fn properties(&self) -> reactive_graph_graph::PropertyInstances {
1035 reactive_graph_graph::PropertyInstances::new()
1036 .property(CommentProperties::COMMENT, self.comment.clone())
1037 .property(CommentProperties::F_2_DH, self.f2dh.clone())
1038 .property(CommentProperties::F_2_DW, self.f2dw.clone())
1039 .property(CommentProperties::F_2_DX, self.f2dx.clone())
1040 .property(CommentProperties::F_2_DY, self.f2dy.clone())
1041 .property(CommentProperties::F_3_DD, self.f3dd.clone())
1042 .property(CommentProperties::F_3_DH, self.f3dh.clone())
1043 .property(CommentProperties::F_3_DW, self.f3dw.clone())
1044 .property(CommentProperties::F_3_DX, self.f3dx.clone())
1045 .property(CommentProperties::F_3_DY, self.f3dy.clone())
1046 .property(CommentProperties::F_3_DZ, self.f3dz.clone())
1047 }
1048
1049 pub fn extensions(&self) -> reactive_graph_graph::Extensions {
1050 self.extensions.clone()
1051 }
1052}
1053
1054impl From<Comment> for reactive_graph_graph::EntityInstance {
1055 fn from(comment: Comment) -> Self {
1056 reactive_graph_graph::EntityInstance::builder()
1057 .ty(std::ops::Deref::deref(&COMMENT))
1058 .id(comment.id())
1059 .components(COMMENT_COMPONENTS.clone())
1060 .properties(comment.properties())
1061 .build()
1062 }
1063}
1064
1065impl TryFrom<reactive_graph_graph::EntityInstance> for Comment {
1066 type Error = ();
1067 fn try_from(
1068 entity_instance: reactive_graph_graph::EntityInstance,
1069 ) -> Result<Self, Self::Error> {
1070 Err(())
1071 }
1072}
1073impl crate::reactive_graph::flow::flow_2_d::Flow2D for Comment {
1074
1075 /// ### Property `f2dh`
1076 ///
1077 /// The height (y-axis) in a 2D flow
1078 ///
1079 /// Data Type: `Number`
1080 ///
1081 /// Socket Type: `None`
1082 ///
1083 /// Mutability: `Mutable`
1084 ///
1085 fn f2dh(&self) -> u64 {
1086 self.f2dh
1087 }
1088
1089 /// ### Property `f2dh`
1090 ///
1091 /// The height (y-axis) in a 2D flow
1092 ///
1093 /// Data Type: `Number`
1094 ///
1095 /// Socket Type: `None`
1096 ///
1097 /// Mutability: `Mutable`
1098 ///
1099 fn set_f2dh(&mut self, f2dh: u64) {
1100 self.f2dh = f2dh;
1101 }
1102
1103 /// ### Property `f2dw`
1104 ///
1105 /// The width (x-axis) in a 2D flow
1106 ///
1107 /// Data Type: `Number`
1108 ///
1109 /// Socket Type: `None`
1110 ///
1111 /// Mutability: `Mutable`
1112 ///
1113 fn f2dw(&self) -> u64 {
1114 self.f2dw
1115 }
1116
1117 /// ### Property `f2dw`
1118 ///
1119 /// The width (x-axis) in a 2D flow
1120 ///
1121 /// Data Type: `Number`
1122 ///
1123 /// Socket Type: `None`
1124 ///
1125 /// Mutability: `Mutable`
1126 ///
1127 fn set_f2dw(&mut self, f2dw: u64) {
1128 self.f2dw = f2dw;
1129 }
1130
1131 /// ### Property `f2dx`
1132 ///
1133 /// The X position in a 2D flow
1134 ///
1135 /// Data Type: `Number`
1136 ///
1137 /// Socket Type: `None`
1138 ///
1139 /// Mutability: `Mutable`
1140 ///
1141 fn f2dx(&self) -> u64 {
1142 self.f2dx
1143 }
1144
1145 /// ### Property `f2dx`
1146 ///
1147 /// The X position in a 2D flow
1148 ///
1149 /// Data Type: `Number`
1150 ///
1151 /// Socket Type: `None`
1152 ///
1153 /// Mutability: `Mutable`
1154 ///
1155 fn set_f2dx(&mut self, f2dx: u64) {
1156 self.f2dx = f2dx;
1157 }
1158
1159 /// ### Property `f2dy`
1160 ///
1161 /// The Y position in a 2D flow
1162 ///
1163 /// Data Type: `Number`
1164 ///
1165 /// Socket Type: `None`
1166 ///
1167 /// Mutability: `Mutable`
1168 ///
1169 fn f2dy(&self) -> u64 {
1170 self.f2dy
1171 }
1172
1173 /// ### Property `f2dy`
1174 ///
1175 /// The Y position in a 2D flow
1176 ///
1177 /// Data Type: `Number`
1178 ///
1179 /// Socket Type: `None`
1180 ///
1181 /// Mutability: `Mutable`
1182 ///
1183 fn set_f2dy(&mut self, f2dy: u64) {
1184 self.f2dy = f2dy;
1185 }
1186}
1187impl crate::reactive_graph::flow::flow_3_d::Flow3D for Comment {
1188
1189 /// ### Property `f3dd`
1190 ///
1191 /// The depth (z-axis) in a 3D flow
1192 ///
1193 /// Data Type: `Number`
1194 ///
1195 /// Socket Type: `None`
1196 ///
1197 /// Mutability: `Mutable`
1198 ///
1199 fn f3dd(&self) -> u64 {
1200 self.f3dd
1201 }
1202
1203 /// ### Property `f3dd`
1204 ///
1205 /// The depth (z-axis) in a 3D flow
1206 ///
1207 /// Data Type: `Number`
1208 ///
1209 /// Socket Type: `None`
1210 ///
1211 /// Mutability: `Mutable`
1212 ///
1213 fn set_f3dd(&mut self, f3dd: u64) {
1214 self.f3dd = f3dd;
1215 }
1216
1217 /// ### Property `f3dh`
1218 ///
1219 /// The height (y-axis) in a 3D flow
1220 ///
1221 /// Data Type: `Number`
1222 ///
1223 /// Socket Type: `None`
1224 ///
1225 /// Mutability: `Mutable`
1226 ///
1227 fn f3dh(&self) -> u64 {
1228 self.f3dh
1229 }
1230
1231 /// ### Property `f3dh`
1232 ///
1233 /// The height (y-axis) in a 3D flow
1234 ///
1235 /// Data Type: `Number`
1236 ///
1237 /// Socket Type: `None`
1238 ///
1239 /// Mutability: `Mutable`
1240 ///
1241 fn set_f3dh(&mut self, f3dh: u64) {
1242 self.f3dh = f3dh;
1243 }
1244
1245 /// ### Property `f3dw`
1246 ///
1247 /// The width (x-axis) in a 3D flow
1248 ///
1249 /// Data Type: `Number`
1250 ///
1251 /// Socket Type: `None`
1252 ///
1253 /// Mutability: `Mutable`
1254 ///
1255 fn f3dw(&self) -> u64 {
1256 self.f3dw
1257 }
1258
1259 /// ### Property `f3dw`
1260 ///
1261 /// The width (x-axis) in a 3D flow
1262 ///
1263 /// Data Type: `Number`
1264 ///
1265 /// Socket Type: `None`
1266 ///
1267 /// Mutability: `Mutable`
1268 ///
1269 fn set_f3dw(&mut self, f3dw: u64) {
1270 self.f3dw = f3dw;
1271 }
1272
1273 /// ### Property `f3dx`
1274 ///
1275 /// The X position in a 3D flow
1276 ///
1277 /// Data Type: `Number`
1278 ///
1279 /// Socket Type: `None`
1280 ///
1281 /// Mutability: `Mutable`
1282 ///
1283 fn f3dx(&self) -> u64 {
1284 self.f3dx
1285 }
1286
1287 /// ### Property `f3dx`
1288 ///
1289 /// The X position in a 3D flow
1290 ///
1291 /// Data Type: `Number`
1292 ///
1293 /// Socket Type: `None`
1294 ///
1295 /// Mutability: `Mutable`
1296 ///
1297 fn set_f3dx(&mut self, f3dx: u64) {
1298 self.f3dx = f3dx;
1299 }
1300
1301 /// ### Property `f3dy`
1302 ///
1303 /// The Y position in a 3D flow
1304 ///
1305 /// Data Type: `Number`
1306 ///
1307 /// Socket Type: `None`
1308 ///
1309 /// Mutability: `Mutable`
1310 ///
1311 fn f3dy(&self) -> u64 {
1312 self.f3dy
1313 }
1314
1315 /// ### Property `f3dy`
1316 ///
1317 /// The Y position in a 3D flow
1318 ///
1319 /// Data Type: `Number`
1320 ///
1321 /// Socket Type: `None`
1322 ///
1323 /// Mutability: `Mutable`
1324 ///
1325 fn set_f3dy(&mut self, f3dy: u64) {
1326 self.f3dy = f3dy;
1327 }
1328
1329 /// ### Property `f3dz`
1330 ///
1331 /// The Z position in a 3D flow
1332 ///
1333 /// Data Type: `Number`
1334 ///
1335 /// Socket Type: `None`
1336 ///
1337 /// Mutability: `Mutable`
1338 ///
1339 fn f3dz(&self) -> u64 {
1340 self.f3dz
1341 }
1342
1343 /// ### Property `f3dz`
1344 ///
1345 /// The Z position in a 3D flow
1346 ///
1347 /// Data Type: `Number`
1348 ///
1349 /// Socket Type: `None`
1350 ///
1351 /// Mutability: `Mutable`
1352 ///
1353 fn set_f3dz(&mut self, f3dz: u64) {
1354 self.f3dz = f3dz;
1355 }
1356}