nodi-modular 0.0.31 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export function do_nothing_just_tell_wasm_bindgen_to_generate_types(): void;
4
- export type NodeOutput = (Map<string, Item[]> | undefined)[];
5
-
6
4
  export interface GeometryTransformInterop {
7
5
  geometry: GeometryProxy;
8
6
  transform: TransformInterop;
9
7
  }
10
8
 
9
+ export type NodeOutput = (Map<string, Item[]> | undefined)[];
10
+
11
11
  /**
12
12
  * Evaluation item interoperability type.
13
13
  */
@@ -20,6 +20,27 @@ export interface GeometrySpreadsheet {
20
20
  meshes: MeshInterop[];
21
21
  }
22
22
 
23
+ export type NodeSectionInterop = { type: "section"; content: NodeFolderInterop } | { type: "item"; content: NodeItemInterop };
24
+
25
+ export interface NodeItemInterop {
26
+ key: string;
27
+ name: string;
28
+ }
29
+
30
+ export type NodeFolderInterop = IndexMap<string, NodeSectionInterop>;
31
+
32
+ export interface NodeMapInterop {
33
+ folder: NodeFolderInterop;
34
+ }
35
+
36
+ export interface IOInterop {
37
+ id: string;
38
+ name: string;
39
+ accessType: AccessTypes;
40
+ hint: TypeHint | undefined;
41
+ connections: string[];
42
+ }
43
+
23
44
  /**
24
45
  * Interop struct for evaluation results
25
46
  */
@@ -34,95 +55,37 @@ export interface EvaluationInterop {
34
55
  geometryIdentifiers: GeometryIdentifier[];
35
56
  }
36
57
 
37
- export type GeometryInteropHandleProxy = { variant: "Mesh"; data: MeshInteropHandle } | { variant: "Curve"; data: CurveInteropHandle } | { variant: "Group"; data: GroupInteropHandle };
38
-
39
- export interface EdgeInterop {
40
- source: EdgeUnitInterop<OutputId>;
41
- destination: EdgeUnitInterop<InputId>;
42
- empty: boolean;
43
- }
44
-
45
- export interface EdgeUnitInterop<IO> {
46
- node: NodeId;
47
- io: IO;
48
- }
49
-
50
- export interface GroupInteropHandle {
51
- objects: GeometryInteropHandleProxy[];
58
+ export interface MeshInteropHandle {
59
+ count: number;
60
+ vertices: number;
61
+ normals: number;
62
+ indices: IndicesInteropHandle | undefined;
63
+ transform: TransformInterop | undefined;
52
64
  }
53
65
 
54
- export interface NodeCreationSetting {
55
- id: NodeId;
56
- variant: string;
57
- name?: string;
58
- label?: string;
59
- inputs?: number;
60
- outputs?: number;
61
- properties: NodePropertyInterop[];
62
- enabled?: boolean;
63
- visible?: boolean;
66
+ export interface PointListHandleUnit {
67
+ count: number;
68
+ points: number;
64
69
  }
65
70
 
66
71
  /**
67
- * Options for adaptive tessellation to create geometry interoperability
72
+ * Point display handle for wasm interop
68
73
  */
69
- export interface AdaptiveTessellationOptions {
70
- /**
71
- * Whether to enable adaptive tessellation
72
- */
73
- enabled: boolean;
74
- /**
75
- * Tolerance for the normal vector: if the L2 norm of the normal vectors is below this value, the edge is considered flat
76
- */
77
- normTolerance: number;
78
- /**
79
- * Minimum number of divisions in u direction
80
- */
81
- minDivsU: number;
82
- /**
83
- * Minimum number of divisions in v direction
84
- */
85
- minDivsV: number;
86
- /**
87
- * Minimum depth for division
88
- */
89
- minDepth: number;
90
- /**
91
- * Maximum depth for division
92
- */
93
- maxDepth: number;
94
- }
95
-
96
- export interface NodeConnectionInterop {
97
- outputNodeId: string;
98
- outputIndex: number;
99
- inputNodeId: string;
100
- inputIndex: number;
101
- inputConnectionIndex: number | undefined;
102
- }
103
-
104
- export interface IndicesInteropHandle {
105
- count: number;
106
- indices: number;
74
+ export interface PointListDisplayHandle {
75
+ list: PointListHandleUnit[];
76
+ pointSize: number;
107
77
  }
108
78
 
109
79
  /**
110
- * Curve interop handle for wasm interop
111
- * stride = 3 (x, y, z)
80
+ * Vector display handle for wasm interop
81
+ * stride = 6 (3 for point, 3 for vector)
112
82
  */
113
- export interface CurveInteropHandle {
83
+ export interface VectorDisplayHandle {
114
84
  count: number;
115
85
  vertices: number;
116
- transform: TransformInterop | undefined;
117
86
  }
118
87
 
119
- export interface IOInterop {
120
- id: string;
121
- name: string;
122
- accessType: AccessTypes;
123
- hint: TypeHint | undefined;
124
- connections: string[];
125
- }
88
+ export type DisplayProxyHandle = { variant: "Vector"; data: VectorDisplayHandle } | { variant: "PointList"; data: PointListDisplayHandle };
126
89
 
127
90
  /**
128
91
  * Interop struct for node
@@ -189,49 +152,39 @@ export interface NodeMetaInterop {
189
152
  hasGeometry: boolean;
190
153
  }
191
154
 
192
- export interface MeshInteropHandle {
193
- count: number;
194
- vertices: number;
195
- normals: number;
196
- indices: IndicesInteropHandle | undefined;
197
- transform: TransformInterop | undefined;
198
- }
155
+ export type GeometryInteropHandleProxy = { variant: "Mesh"; data: MeshInteropHandle } | { variant: "Curve"; data: CurveInteropHandle } | { variant: "Group"; data: GroupInteropHandle };
199
156
 
200
- export interface PointListHandleUnit {
201
- count: number;
202
- points: number;
157
+ export interface EdgeInterop {
158
+ source: EdgeUnitInterop<OutputId>;
159
+ destination: EdgeUnitInterop<InputId>;
160
+ empty: boolean;
203
161
  }
204
162
 
205
- /**
206
- * Point display handle for wasm interop
207
- */
208
- export interface PointListDisplayHandle {
209
- list: PointListHandleUnit[];
210
- pointSize: number;
163
+ export interface EdgeUnitInterop<IO> {
164
+ node: NodeId;
165
+ io: IO;
211
166
  }
212
167
 
213
168
  /**
214
- * Vector display handle for wasm interop
215
- * stride = 6 (3 for point, 3 for vector)
169
+ * Geometry identifier
216
170
  */
217
- export interface VectorDisplayHandle {
218
- count: number;
219
- vertices: number;
220
- }
221
-
222
- export type DisplayProxyHandle = { variant: "Vector"; data: VectorDisplayHandle } | { variant: "PointList"; data: PointListDisplayHandle };
223
-
224
- export type NodeSectionInterop = { type: "section"; content: NodeFolderInterop } | { type: "item"; content: NodeItemInterop };
225
-
226
- export interface NodeItemInterop {
227
- key: string;
228
- name: string;
229
- }
230
-
231
- export type NodeFolderInterop = IndexMap<string, NodeSectionInterop>;
232
-
233
- export interface NodeMapInterop {
234
- folder: NodeFolderInterop;
171
+ export interface GeometryIdentifier {
172
+ /**
173
+ * Parent node ID
174
+ */
175
+ graphNodeSet?: GraphNodeSet;
176
+ /**
177
+ * Output ID that the geometry is belonged to
178
+ */
179
+ outputId: OutputId;
180
+ /**
181
+ * Geometry ID
182
+ */
183
+ geometryId: ID<GeometryProxy>;
184
+ /**
185
+ * Transform matrix in interop format
186
+ */
187
+ transform: TransformInterop;
235
188
  }
236
189
 
237
190
 
@@ -266,28 +219,6 @@ export type Transform3<T = number> = FixedLengthArray<T, 16>;
266
219
  export type Matrix4<T = number> = FixedLengthArray<FixedLengthArray<T, 4>, 4>;
267
220
 
268
221
 
269
- /**
270
- * Geometry identifier
271
- */
272
- export interface GeometryIdentifier {
273
- /**
274
- * Parent node ID
275
- */
276
- graphNodeSet?: GraphNodeSet;
277
- /**
278
- * Output ID that the geometry is belonged to
279
- */
280
- outputId: OutputId;
281
- /**
282
- * Geometry ID
283
- */
284
- geometryId: ID<GeometryProxy>;
285
- /**
286
- * Transform matrix in interop format
287
- */
288
- transform: TransformInterop;
289
- }
290
-
291
222
  export type GeometryInteropVec = GeometryInterop[];
292
223
 
293
224
  export type NodeConnectionInteropVec = NodeConnectionInterop[];
@@ -334,6 +265,75 @@ export interface NodePropertyInterop {
334
265
  */
335
266
  export type TransformInterop = number[];
336
267
 
268
+ export interface GroupInteropHandle {
269
+ objects: GeometryInteropHandleProxy[];
270
+ }
271
+
272
+ export interface NodeCreationSetting {
273
+ id: NodeId;
274
+ variant: string;
275
+ name?: string;
276
+ label?: string;
277
+ inputs?: number;
278
+ outputs?: number;
279
+ properties: NodePropertyInterop[];
280
+ enabled?: boolean;
281
+ visible?: boolean;
282
+ }
283
+
284
+ /**
285
+ * Options for adaptive tessellation to create geometry interoperability
286
+ */
287
+ export interface AdaptiveTessellationOptions {
288
+ /**
289
+ * Whether to enable adaptive tessellation
290
+ */
291
+ enabled: boolean;
292
+ /**
293
+ * Tolerance for the normal vector: if the L2 norm of the normal vectors is below this value, the edge is considered flat
294
+ */
295
+ normTolerance: number;
296
+ /**
297
+ * Minimum number of divisions in u direction
298
+ */
299
+ minDivsU: number;
300
+ /**
301
+ * Minimum number of divisions in v direction
302
+ */
303
+ minDivsV: number;
304
+ /**
305
+ * Minimum depth for division
306
+ */
307
+ minDepth: number;
308
+ /**
309
+ * Maximum depth for division
310
+ */
311
+ maxDepth: number;
312
+ }
313
+
314
+ export interface NodeConnectionInterop {
315
+ outputNodeId: string;
316
+ outputIndex: number;
317
+ inputNodeId: string;
318
+ inputIndex: number;
319
+ inputConnectionIndex: number | undefined;
320
+ }
321
+
322
+ export interface IndicesInteropHandle {
323
+ count: number;
324
+ indices: number;
325
+ }
326
+
327
+ /**
328
+ * Curve interop handle for wasm interop
329
+ * stride = 3 (x, y, z)
330
+ */
331
+ export interface CurveInteropHandle {
332
+ count: number;
333
+ vertices: number;
334
+ transform: TransformInterop | undefined;
335
+ }
336
+
337
337
  export interface NodePropertyCategoryValue {
338
338
  candidates: IndexMap<string, number>;
339
339
  selected: number;
@@ -350,8 +350,65 @@ export type NodePropertyValue = { type: "Number"; content: number } | { type: "R
350
350
 
351
351
  export type TypeHint = Internal;
352
352
 
353
+ export interface Prune<T, U> {
354
+ connectedComponents: ConnectedComponents<T, U>[];
355
+ bypass: Connection[] | undefined;
356
+ }
357
+
358
+ export interface ConnectedComponentNode {
359
+ sources: NodeId[];
360
+ destinations: NodeId[];
361
+ }
362
+
363
+ export interface ConnectedComponents<T, U> {
364
+ nodes: IndexMap<NodeId, ConnectedComponentNode<T, U>>;
365
+ }
366
+
367
+ /**
368
+ * A parameter for an input or output of a node.
369
+ */
370
+ export interface IOParameter<T, U> {
371
+ id: T;
372
+ name: string;
373
+ access_type: AccessTypes;
374
+ hint?: TypeHint;
375
+ connections: U[];
376
+ }
377
+
353
378
  export type GraphMappingTypes = "None" | "Bezier" | "Linear" | "Sine";
354
379
 
380
+ export interface Connection {
381
+ source: NodeParameter<OutputId>;
382
+ destination: NodeParameter<InputId>;
383
+ }
384
+
385
+ export interface NodeParameter<T> {
386
+ nodeId: NodeId;
387
+ parameterId: T;
388
+ parameterIndex: number;
389
+ }
390
+
391
+ export interface IOManager<T, U> {
392
+ parameters: IOParameter<T, U>[];
393
+ }
394
+
395
+ export interface Node<T> {
396
+ id: NodeId;
397
+ name: string;
398
+ label: string | undefined;
399
+ input: InputIOManager;
400
+ output: OutputIOManager;
401
+ entity: T;
402
+ enabled: boolean;
403
+ visible: boolean;
404
+ }
405
+
406
+ export type OutputIOManager = IOManager<OutputId, InputId>;
407
+
408
+ export type InputIOManager = IOManager<InputId, OutputId>;
409
+
410
+ export type GraphVariant = "Root" | { SubGraph: SubGraphId };
411
+
355
412
  /**
356
413
  * A sub graph is a graph that is a part of a larger graph
357
414
  */
@@ -370,47 +427,6 @@ export interface SubGraph<T, U> {
370
427
  instances: SubGraphInstanceId[];
371
428
  }
372
429
 
373
- export interface Prune<T, U> {
374
- connectedComponents: ConnectedComponents<T, U>[];
375
- bypass: Connection[] | undefined;
376
- }
377
-
378
- export type GraphVariant = "Root" | { SubGraph: SubGraphId };
379
-
380
- /**
381
- * A parameter for an input or output of a node.
382
- */
383
- export interface IOParameter<T, U> {
384
- id: T;
385
- name: string;
386
- access_type: AccessTypes;
387
- hint?: TypeHint;
388
- connections: U[];
389
- }
390
-
391
- /**
392
- * Graph structure
393
- */
394
- export interface Graph<T, U> {
395
- /**
396
- * Nodes in the graph
397
- */
398
- nodes: IndexMap<NodeId, Node<T, U>>;
399
- /**
400
- * nested graphs
401
- */
402
- sub_graphs?: IndexMap<SubGraphId, SubGraph<T, U>>;
403
- }
404
-
405
- export interface ConnectedComponentNode {
406
- sources: NodeId[];
407
- destinations: NodeId[];
408
- }
409
-
410
- export interface ConnectedComponents<T, U> {
411
- nodes: IndexMap<NodeId, ConnectedComponentNode<T, U>>;
412
- }
413
-
414
430
  export interface SubGraphIdSet {
415
431
  subGraphId: SubGraphId;
416
432
  instanceId: SubGraphInstanceId;
@@ -435,46 +451,27 @@ export interface GraphNodeSet {
435
451
  nodeId: NodeId;
436
452
  }
437
453
 
438
- export type AccessTypes = "Item" | "List" | "Tree";
439
-
440
- export interface IOManager<T, U> {
441
- parameters: IOParameter<T, U>[];
442
- }
443
-
444
- export interface Node<T> {
445
- id: NodeId;
446
- name: string;
447
- label: string | undefined;
448
- input: InputIOManager;
449
- output: OutputIOManager;
450
- entity: T;
451
- enabled: boolean;
452
- visible: boolean;
454
+ /**
455
+ * Graph structure
456
+ */
457
+ export interface Graph<T, U> {
458
+ /**
459
+ * Nodes in the graph
460
+ */
461
+ nodes: IndexMap<NodeId, Node<T, U>>;
462
+ /**
463
+ * nested graphs
464
+ */
465
+ sub_graphs?: IndexMap<SubGraphId, SubGraph<T, U>>;
453
466
  }
454
467
 
455
- export type OutputIOManager = IOManager<OutputId, InputId>;
456
-
457
- export type InputIOManager = IOManager<InputId, OutputId>;
458
-
459
- export interface Connection {
460
- source: NodeParameter<OutputId>;
461
- destination: NodeParameter<InputId>;
462
- }
468
+ export type AccessTypes = "Item" | "List" | "Tree";
463
469
 
464
- export interface NodeParameter<T> {
465
- nodeId: NodeId;
466
- parameterId: T;
467
- parameterIndex: number;
470
+ export interface Domain {
471
+ min: number;
472
+ max: number;
468
473
  }
469
474
 
470
-
471
- export type PolylineCurve2D = {
472
- points: Point2[];
473
- };
474
- export type PolylineCurve3D = {
475
- points: Point3[];
476
- };
477
-
478
475
  /**
479
476
  * An oriented box in 3D space
480
477
  */
@@ -489,11 +486,6 @@ export interface OrientedBox {
489
486
  bounds: BoundingBox3D;
490
487
  }
491
488
 
492
- /**
493
- * A collection of geometry objects
494
- */
495
- export type Group = GeometryTransform[];
496
-
497
489
  /**
498
490
  * A face of a mesh with three vertices
499
491
  */
@@ -503,6 +495,28 @@ export interface MeshTriangleFace {
503
495
  c: number;
504
496
  }
505
497
 
498
+ /**
499
+ * A circular surface
500
+ */
501
+ export interface CircularSurface {
502
+ /**
503
+ * The base plane of the circle
504
+ */
505
+ plane: Plane;
506
+ /**
507
+ * The radius of the circle
508
+ */
509
+ radius: number;
510
+ }
511
+
512
+
513
+ export type PolylineCurve2D = {
514
+ points: Point2[];
515
+ };
516
+ export type PolylineCurve3D = {
517
+ points: Point3[];
518
+ };
519
+
506
520
  /**
507
521
  * An arc curve in 3D space
508
522
  */
@@ -539,6 +553,11 @@ export interface PointCloudInterop {
539
553
  transform: Transform3<number>;
540
554
  }
541
555
 
556
+ /**
557
+ * Interop proxy for various geometry types
558
+ */
559
+ export type GeometryInterop = { variant: "Mesh"; data: MeshInterop } | { variant: "Curve"; data: CurveInterop } | { variant: "Point"; data: PointCloudInterop } | { variant: "Plane"; data: Plane } | { variant: "Group"; data: GeometryInterop[] };
560
+
542
561
  /**
543
562
  * Geometry proxy for various geometry types
544
563
  */
@@ -551,20 +570,6 @@ export type PolyCurve = CompoundCurve<number, U4>;
551
570
  */
552
571
  export type CurveProxy = { variant: "Line"; data: LineCurve3D } | { variant: "Arc"; data: ArcCurve } | { variant: "Circle"; data: CircleCurve } | { variant: "Ellipse"; data: EllipseCurve } | { variant: "Rectangle"; data: RectangleCurve } | { variant: "Polyline"; data: PolylineCurve3D } | { variant: "NURBS"; data: NurbsCurve } | { variant: "Poly"; data: PolyCurve };
553
572
 
554
- /**
555
- * A circle curve in 3D space
556
- */
557
- export interface CircleCurve {
558
- /**
559
- * The base plane of the circle
560
- */
561
- plane: Plane;
562
- /**
563
- * The radius of the circle
564
- */
565
- radius: number;
566
- }
567
-
568
573
 
569
574
  export type NurbsSurface3D<T = number> = {
570
575
  control_points: Point4<T>[][];
@@ -575,52 +580,32 @@ export type NurbsSurface3D<T = number> = {
575
580
  };
576
581
 
577
582
  /**
578
- * A surface defined by three points
583
+ * A NURBS surface container
579
584
  */
580
- export type TriangleSurface = Triangle3D;
585
+ export type NurbsSurface = NurbsSurface3D<number>;
581
586
 
582
587
  /**
583
- * A surface defined by a plane and two domains in x and y directions
588
+ * A ellipse curve in 3D space
584
589
  */
585
- export interface PlaneSurface {
590
+ export interface EllipseCurve {
586
591
  /**
587
- * The base plane of the surface
592
+ * The base plane of the ellipse
588
593
  */
589
594
  plane: Plane;
590
595
  /**
591
- * The domain in x direction
596
+ * The x radius of the ellipse
592
597
  */
593
- x: Domain;
598
+ xRadius: number;
594
599
  /**
595
- * The domain in y direction
600
+ * The y radius of the ellipse
596
601
  */
597
- y: Domain;
602
+ yRadius: number;
598
603
  }
599
604
 
600
605
  /**
601
- * A NURBS surface container
602
- */
603
- export type NurbsSurface = NurbsSurface3D<number>;
604
-
605
- /**
606
- * A circular surface
606
+ * A surface defined by three points
607
607
  */
608
- export interface CircularSurface {
609
- /**
610
- * The base plane of the circle
611
- */
612
- plane: Plane;
613
- /**
614
- * The radius of the circle
615
- */
616
- radius: number;
617
- }
618
-
619
-
620
- export type BoundingBox3D = {
621
- min: Vector3;
622
- max: Vector3;
623
- };
608
+ export type TriangleSurface = Triangle3D;
624
609
 
625
610
 
626
611
  export type Triangle3D = {
@@ -655,6 +640,20 @@ export interface MeshInterop {
655
640
  transform?: Transform3<number>;
656
641
  }
657
642
 
643
+ /**
644
+ * Interop struct for curve data
645
+ */
646
+ export interface CurveInterop {
647
+ /**
648
+ * Vertices of the curve
649
+ */
650
+ vertices: [number, number, number][];
651
+ /**
652
+ * Transform matrix of the curve
653
+ */
654
+ transform: Transform3<number> | undefined;
655
+ }
656
+
658
657
  /**
659
658
  * Mesh representation with vertices, normals, uv, and index
660
659
  */
@@ -678,17 +677,21 @@ export interface Mesh {
678
677
  }
679
678
 
680
679
  /**
681
- * Interop struct for curve data
680
+ * A rectangle curve in 3D space
682
681
  */
683
- export interface CurveInterop {
682
+ export interface RectangleCurve {
684
683
  /**
685
- * Vertices of the curve
684
+ * The base plane of the rectangle
686
685
  */
687
- vertices: [number, number, number][];
686
+ plane: Plane;
688
687
  /**
689
- * Transform matrix of the curve
688
+ * The domain of the rectangle in the plane x axis
690
689
  */
691
- transform: Transform3<number> | undefined;
690
+ x: Domain;
691
+ /**
692
+ * The domain of the rectangle in the plane y axis
693
+ */
694
+ y: Domain;
692
695
  }
693
696
 
694
697
 
@@ -704,16 +707,6 @@ export type NurbsCurve3D<T = number> = {
704
707
  degree: T;
705
708
  };
706
709
 
707
- export interface Domain {
708
- min: number;
709
- max: number;
710
- }
711
-
712
- /**
713
- * Interop proxy for various geometry types
714
- */
715
- export type GeometryInterop = { variant: "Mesh"; data: MeshInterop } | { variant: "Curve"; data: CurveInterop } | { variant: "Point"; data: PointCloudInterop } | { variant: "Plane"; data: Plane } | { variant: "Group"; data: GeometryInterop[] };
716
-
717
710
  /**
718
711
  * Plane representation with origin, normal, x axis, and y axis
719
712
  */
@@ -756,41 +749,48 @@ export interface GeometryTransform {
756
749
  export type SurfaceProxy = { variant: "Circular"; data: CircularSurface } | { variant: "Triangle"; data: TriangleSurface } | { variant: "Plane"; data: PlaneSurface } | { variant: "NURBS"; data: NurbsSurface } | { variant: "Trimmed"; data: TrimmedSurface };
757
750
 
758
751
  /**
759
- * A rectangle curve in 3D space
752
+ * A surface defined by a plane and two domains in x and y directions
760
753
  */
761
- export interface RectangleCurve {
754
+ export interface PlaneSurface {
762
755
  /**
763
- * The base plane of the rectangle
756
+ * The base plane of the surface
764
757
  */
765
758
  plane: Plane;
766
759
  /**
767
- * The domain of the rectangle in the plane x axis
760
+ * The domain in x direction
768
761
  */
769
762
  x: Domain;
770
763
  /**
771
- * The domain of the rectangle in the plane y axis
764
+ * The domain in y direction
772
765
  */
773
766
  y: Domain;
774
767
  }
775
768
 
776
769
  export type NurbsCurve = NurbsCurve3D<number>;
777
770
 
771
+
772
+ export type BoundingBox3D = {
773
+ min: Vector3;
774
+ max: Vector3;
775
+ };
776
+
778
777
  /**
779
- * A ellipse curve in 3D space
778
+ * A collection of geometry objects
780
779
  */
781
- export interface EllipseCurve {
780
+ export type Group = GeometryTransform[];
781
+
782
+ /**
783
+ * A circle curve in 3D space
784
+ */
785
+ export interface CircleCurve {
782
786
  /**
783
- * The base plane of the ellipse
787
+ * The base plane of the circle
784
788
  */
785
789
  plane: Plane;
786
790
  /**
787
- * The x radius of the ellipse
788
- */
789
- xRadius: number;
790
- /**
791
- * The y radius of the ellipse
791
+ * The radius of the circle
792
792
  */
793
- yRadius: number;
793
+ radius: number;
794
794
  }
795
795
 
796
796
  /**
@@ -871,8 +871,8 @@ export interface InitOutput {
871
871
  readonly __externref_table_dealloc: (a: number) => void;
872
872
  readonly __externref_drop_slice: (a: number, b: number) => void;
873
873
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
874
- readonly closure893_externref_shim: (a: number, b: number, c: any) => void;
875
- readonly closure3806_externref_shim: (a: number, b: number, c: any, d: any) => void;
874
+ readonly closure896_externref_shim: (a: number, b: number, c: any) => void;
875
+ readonly closure3794_externref_shim: (a: number, b: number, c: any, d: any) => void;
876
876
  readonly __wbindgen_start: () => void;
877
877
  }
878
878
 
package/index.js CHANGED
@@ -225,11 +225,11 @@ export function do_nothing_just_tell_wasm_bindgen_to_generate_types() {
225
225
  }
226
226
 
227
227
  function __wbg_adapter_52(arg0, arg1, arg2) {
228
- wasm.closure893_externref_shim(arg0, arg1, arg2);
228
+ wasm.closure896_externref_shim(arg0, arg1, arg2);
229
229
  }
230
230
 
231
231
  function __wbg_adapter_129(arg0, arg1, arg2, arg3) {
232
- wasm.closure3806_externref_shim(arg0, arg1, arg2, arg3);
232
+ wasm.closure3794_externref_shim(arg0, arg1, arg2, arg3);
233
233
  }
234
234
 
235
235
  const ModularFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -425,10 +425,10 @@ function __wbg_get_imports() {
425
425
  const ret = Object.entries(arg0);
426
426
  return ret;
427
427
  };
428
- imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
428
+ imports.wbg.__wbg_getRandomValues_38a1ff1ea09f6cc7 = function() { return handleError(function (arg0, arg1) {
429
429
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
430
430
  }, arguments) };
431
- imports.wbg.__wbg_getRandomValues_e14bd3de0db61032 = function() { return handleError(function (arg0, arg1) {
431
+ imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
432
432
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
433
433
  }, arguments) };
434
434
  imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
@@ -643,8 +643,8 @@ function __wbg_get_imports() {
643
643
  const ret = false;
644
644
  return ret;
645
645
  };
646
- imports.wbg.__wbindgen_closure_wrapper4049 = function(arg0, arg1, arg2) {
647
- const ret = makeMutClosure(arg0, arg1, 894, __wbg_adapter_52);
646
+ imports.wbg.__wbindgen_closure_wrapper4036 = function(arg0, arg1, arg2) {
647
+ const ret = makeMutClosure(arg0, arg1, 897, __wbg_adapter_52);
648
648
  return ret;
649
649
  };
650
650
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
package/index_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Masatatsu Nakamura <masatatsu.nakamura@gmail.com"
6
6
  ],
7
7
  "description": "Modular is a module project designed to import node graphs created in Nodi in JSON format, enabling the extraction of geometric data generated based on the node graph structure.",
8
- "version": "0.0.31",
8
+ "version": "0.0.32",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",