nodi-modular 0.0.21 → 0.0.23

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
  */
@@ -467,11 +467,6 @@ export type AccessTypes = "Item" | "List" | "Tree";
467
467
 
468
468
  export type GraphMappingTypes = "None" | "Bezier" | "Linear" | "Sine";
469
469
 
470
- export interface Domain {
471
- min: number;
472
- max: number;
473
- }
474
-
475
470
 
476
471
  export type PolylineCurve2D = {
477
472
  points: Point2[];
@@ -513,24 +508,6 @@ export interface MeshInterop {
513
508
  transform?: Transform3<number>;
514
509
  }
515
510
 
516
- /**
517
- * A surface defined by a plane and two domains in x and y directions
518
- */
519
- export interface PlaneSurface {
520
- /**
521
- * The base plane of the surface
522
- */
523
- plane: Plane;
524
- /**
525
- * The domain in x direction
526
- */
527
- x: Domain;
528
- /**
529
- * The domain in y direction
530
- */
531
- y: Domain;
532
- }
533
-
534
511
  /**
535
512
  * A ellipse curve in 3D space
536
513
  */
@@ -585,70 +562,6 @@ export interface ArcCurve {
585
562
  radius: number;
586
563
  }
587
564
 
588
- /**
589
- * Plane representation with origin, normal, x axis, and y axis
590
- */
591
- export interface Plane {
592
- /**
593
- * Origin coordinate of the plane
594
- */
595
- origin: Point3<number>;
596
- /**
597
- * Normal vector of the plane
598
- */
599
- normal: Vector3<number>;
600
- /**
601
- * X axis of the plane
602
- */
603
- xAxis: Vector3<number>;
604
- /**
605
- * Y axis of the plane
606
- */
607
- yAxis: Vector3<number>;
608
- }
609
-
610
- /**
611
- * An oriented box in 3D space
612
- */
613
- export interface OrientedBox {
614
- /**
615
- * The plane that the box is aligned to
616
- */
617
- plane: Plane;
618
- /**
619
- * The bounding box in the local coordinate system
620
- */
621
- bounds: BoundingBox3D;
622
- }
623
-
624
- /**
625
- * A collection of geometry objects
626
- */
627
- export type Group = GeometryTransform[];
628
-
629
- /**
630
- * A face of a mesh with three vertices
631
- */
632
- export interface MeshTriangleFace {
633
- a: number;
634
- b: number;
635
- c: number;
636
- }
637
-
638
- /**
639
- * A circular surface
640
- */
641
- export interface CircularSurface {
642
- /**
643
- * The base plane of the circle
644
- */
645
- plane: Plane;
646
- /**
647
- * The radius of the circle
648
- */
649
- radius: number;
650
- }
651
-
652
565
  /**
653
566
  * A surface defined by three points
654
567
  */
@@ -659,25 +572,6 @@ export type TriangleSurface = Triangle3D;
659
572
  */
660
573
  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 };
661
574
 
662
- /**
663
- * Interop struct for point cloud data
664
- */
665
- export interface PointCloudInterop {
666
- /**
667
- * Vertices of the point cloud
668
- */
669
- vertices: [number, number, number][];
670
- /**
671
- * Transform matrix of the point cloud
672
- */
673
- transform: Transform3<number>;
674
- }
675
-
676
- /**
677
- * Proxy for various surface types
678
- */
679
- export type SurfaceProxy = { variant: "Circular"; data: CircularSurface } | { variant: "Triangle"; data: TriangleSurface } | { variant: "Plane"; data: PlaneSurface } | { variant: "NURBS"; data: NurbsSurface } | { variant: "Trimmed"; data: TrimmedSurface };
680
-
681
575
 
682
576
  export type LineCurve3D = {
683
577
  a: Point3;
@@ -747,6 +641,24 @@ export interface Mesh {
747
641
  index: [number, number, number][];
748
642
  }
749
643
 
644
+ /**
645
+ * A surface defined by a plane and two domains in x and y directions
646
+ */
647
+ export interface PlaneSurface {
648
+ /**
649
+ * The base plane of the surface
650
+ */
651
+ plane: Plane;
652
+ /**
653
+ * The domain in x direction
654
+ */
655
+ x: Domain;
656
+ /**
657
+ * The domain in y direction
658
+ */
659
+ y: Domain;
660
+ }
661
+
750
662
  /**
751
663
  * A NURBS surface container
752
664
  */
@@ -793,6 +705,94 @@ export type GeometryProxy = { variant: "Curve"; data: CurveProxy } | { variant:
793
705
 
794
706
  export type PolyCurve = CompoundCurve<number, U4>;
795
707
 
708
+ /**
709
+ * A circular surface
710
+ */
711
+ export interface CircularSurface {
712
+ /**
713
+ * The base plane of the circle
714
+ */
715
+ plane: Plane;
716
+ /**
717
+ * The radius of the circle
718
+ */
719
+ radius: number;
720
+ }
721
+
722
+ export interface Domain {
723
+ min: number;
724
+ max: number;
725
+ }
726
+
727
+ /**
728
+ * Plane representation with origin, normal, x axis, and y axis
729
+ */
730
+ export interface Plane {
731
+ /**
732
+ * Origin coordinate of the plane
733
+ */
734
+ origin: Point3<number>;
735
+ /**
736
+ * Normal vector of the plane
737
+ */
738
+ normal: Vector3<number>;
739
+ /**
740
+ * X axis of the plane
741
+ */
742
+ xAxis: Vector3<number>;
743
+ /**
744
+ * Y axis of the plane
745
+ */
746
+ yAxis: Vector3<number>;
747
+ }
748
+
749
+ /**
750
+ * An oriented box in 3D space
751
+ */
752
+ export interface OrientedBox {
753
+ /**
754
+ * The plane that the box is aligned to
755
+ */
756
+ plane: Plane;
757
+ /**
758
+ * The bounding box in the local coordinate system
759
+ */
760
+ bounds: BoundingBox3D;
761
+ }
762
+
763
+ /**
764
+ * Interop struct for point cloud data
765
+ */
766
+ export interface PointCloudInterop {
767
+ /**
768
+ * Vertices of the point cloud
769
+ */
770
+ vertices: [number, number, number][];
771
+ /**
772
+ * Transform matrix of the point cloud
773
+ */
774
+ transform: Transform3<number>;
775
+ }
776
+
777
+ /**
778
+ * A collection of geometry objects
779
+ */
780
+ export type Group = GeometryTransform[];
781
+
782
+ /**
783
+ * A face of a mesh with three vertices
784
+ */
785
+ export interface MeshTriangleFace {
786
+ a: number;
787
+ b: number;
788
+ c: number;
789
+ }
790
+
791
+ /**
792
+ * Proxy for various surface types
793
+ */
794
+ export type SurfaceProxy = { variant: "Circular"; data: CircularSurface } | { variant: "Triangle"; data: TriangleSurface } | { variant: "Plane"; data: PlaneSurface } | { variant: "NURBS"; data: NurbsSurface } | { variant: "Trimmed"; data: TrimmedSurface };
795
+
796
796
  /**
797
797
  * Modular structure with a graph handle
798
798
  */
@@ -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 closure861_externref_shim: (a: number, b: number, c: any) => void;
875
- readonly closure3520_externref_shim: (a: number, b: number, c: any, d: any) => void;
874
+ readonly closure860_externref_shim: (a: number, b: number, c: any) => void;
875
+ readonly closure3544_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.closure861_externref_shim(arg0, arg1, arg2);
228
+ wasm.closure860_externref_shim(arg0, arg1, arg2);
229
229
  }
230
230
 
231
231
  function __wbg_adapter_129(arg0, arg1, arg2, arg3) {
232
- wasm.closure3520_externref_shim(arg0, arg1, arg2, arg3);
232
+ wasm.closure3544_externref_shim(arg0, arg1, arg2, arg3);
233
233
  }
234
234
 
235
235
  const ModularFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -643,8 +643,8 @@ function __wbg_get_imports() {
643
643
  const ret = false;
644
644
  return ret;
645
645
  };
646
- imports.wbg.__wbindgen_closure_wrapper3621 = function(arg0, arg1, arg2) {
647
- const ret = makeMutClosure(arg0, arg1, 862, __wbg_adapter_52);
646
+ imports.wbg.__wbindgen_closure_wrapper3610 = function(arg0, arg1, arg2) {
647
+ const ret = makeMutClosure(arg0, arg1, 861, __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.21",
8
+ "version": "0.0.23",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",