@archilogic/floor-plan-sdk 5.1.5 → 5.1.8

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/dist/fpe.d.ts CHANGED
@@ -106,27 +106,16 @@ declare type ClosedCurve = RectangleCurve_2 | PolygonCurve_2 | PolygonWithHolesC
106
106
 
107
107
  declare type ClosedCurveType = RectangleCurveType | PolygonCurveType | PolygonWithHolesCurveType | CircleCurveType | CompositeCurveType;
108
108
 
109
- declare interface CommonParameters$1 {
110
- materials: LayoutRampMaterials;
111
- }
112
-
113
- declare interface CommonParameters$2 {
114
- segmentCount: number;
115
- segmentLength: number;
116
- materials: LayoutRailingMaterials;
109
+ declare interface CommonParameters {
110
+ materials: LayoutBeamMaterials;
117
111
  }
118
112
 
119
- declare interface CommonParameters$3 {
120
- wallCabinet: boolean;
121
- leftHighCabinetCount: number;
122
- rightHighCabinetCount: number;
123
- sinkElementSlot: number;
124
- cooktopElementSlot: number;
125
- ovenElementSlot: number;
126
- materials: LayoutKitchenMaterials;
113
+ declare interface CommonParameters_2 {
114
+ counterHeight: number;
115
+ materials: LayoutCaseworkMaterials;
127
116
  }
128
117
 
129
- declare interface CommonParameters$4 {
118
+ declare interface CommonParameters_3 {
130
119
  /** thickness of the frame in x direction */
131
120
  frameThickness: number;
132
121
  /** depth of the frame in z direction */
@@ -139,16 +128,27 @@ declare interface CommonParameters$4 {
139
128
  materials: LayoutDoorMaterials;
140
129
  }
141
130
 
142
- declare interface CommonParameters$5 {
143
- counterHeight: number;
144
- materials: LayoutCaseworkMaterials;
131
+ declare interface CommonParameters_4 {
132
+ wallCabinet: boolean;
133
+ leftHighCabinetCount: number;
134
+ rightHighCabinetCount: number;
135
+ sinkElementSlot: number;
136
+ cooktopElementSlot: number;
137
+ ovenElementSlot: number;
138
+ materials: LayoutKitchenMaterials;
145
139
  }
146
140
 
147
- declare interface CommonParameters$6 {
148
- materials: LayoutBeamMaterials;
141
+ declare interface CommonParameters_5 {
142
+ segmentCount: number;
143
+ segmentLength: number;
144
+ materials: LayoutRailingMaterials;
149
145
  }
150
146
 
151
- declare interface CommonParameters {
147
+ declare interface CommonParameters_6 {
148
+ materials: LayoutRampMaterials;
149
+ }
150
+
151
+ declare interface CommonParameters_7 {
152
152
  /** thickness of the frame in x direction */
153
153
  frameThickness: number;
154
154
  /** depth of the frame in z direction */
@@ -249,28 +249,28 @@ declare type CustomStairsParametersJson = Partial<CustomStairsParameters>;
249
249
 
250
250
  declare type CustomStairsType = 'custom';
251
251
 
252
- declare interface DimensionParameters$1 {
252
+ declare type DimensionParameters = {
253
253
  /** @minimum 0.01 */
254
254
  length: number;
255
255
  /** @minimum 0.01 */
256
+ width: number;
257
+ /** @minimum 0.01 */
256
258
  height: number;
257
- }
259
+ };
258
260
 
259
- declare interface DimensionParameters$2 {
261
+ declare interface DimensionParameters_2 {
260
262
  /** @minimum 0.01 */
261
263
  length: number;
262
264
  /** @minimum 0.01 */
263
265
  height: number;
264
266
  }
265
267
 
266
- declare type DimensionParameters = {
268
+ declare interface DimensionParameters_3 {
267
269
  /** @minimum 0.01 */
268
270
  length: number;
269
271
  /** @minimum 0.01 */
270
- width: number;
271
- /** @minimum 0.01 */
272
272
  height: number;
273
- };
273
+ }
274
274
 
275
275
  declare type DoorSide = 'side1' | 'side2';
276
276
 
@@ -1207,9 +1207,9 @@ declare interface LayoutBeamMaterials {
1207
1207
  sides: SpaceGraphMaterialJson;
1208
1208
  }
1209
1209
 
1210
- declare type LayoutBeamParameters = DimensionParameters & CommonParameters$6;
1210
+ declare type LayoutBeamParameters = DimensionParameters & CommonParameters;
1211
1211
 
1212
- declare type LayoutBeamParametersJson = DimensionParameters & Partial<CommonParameters$6>;
1212
+ declare type LayoutBeamParametersJson = DimensionParameters & Partial<CommonParameters>;
1213
1213
 
1214
1214
  declare type LayoutBeamType = typeof LayoutBeamTypeValue;
1215
1215
 
@@ -1337,9 +1337,9 @@ declare interface LayoutCaseworkMaterials {
1337
1337
  counter: SpaceGraphMaterialJson;
1338
1338
  }
1339
1339
 
1340
- declare type LayoutCaseworkParameters = DimensionParameters & CommonParameters$5;
1340
+ declare type LayoutCaseworkParameters = DimensionParameters & CommonParameters_2;
1341
1341
 
1342
- declare type LayoutCaseworkParametersJson = DimensionParameters & Partial<CommonParameters$5>;
1342
+ declare type LayoutCaseworkParametersJson = DimensionParameters & Partial<CommonParameters_2>;
1343
1343
 
1344
1344
  declare type LayoutCaseworkType = typeof LayoutCaseworkTypeValue;
1345
1345
 
@@ -1425,9 +1425,9 @@ declare interface LayoutDoorMaterials {
1425
1425
  leaf: SpaceGraphMaterialJson;
1426
1426
  }
1427
1427
 
1428
- declare type LayoutDoorParameters = DimensionParameters$2 & CommonParameters$4;
1428
+ declare type LayoutDoorParameters = DimensionParameters_2 & CommonParameters_3;
1429
1429
 
1430
- declare type LayoutDoorParametersJson = DimensionParameters$2 & Partial<CommonParameters$4>;
1430
+ declare type LayoutDoorParametersJson = DimensionParameters_2 & Partial<CommonParameters_3>;
1431
1431
 
1432
1432
  declare type LayoutDoorType = typeof LayoutDoorTypeValue;
1433
1433
 
@@ -1446,9 +1446,9 @@ declare class LayoutEdgeElementBase extends LayoutElementBase {
1446
1446
  private verifyEdges;
1447
1447
  getEdges(): SpatialGraphEdge[];
1448
1448
  getVertices(): SpatialGraphVertex[];
1449
- getStartVertex(): SpatialGraphVertex;
1450
- getEndVertex(): SpatialGraphVertex;
1451
- getAxisPoints(): [Vector2_2, Vector2_2];
1449
+ getStartVertex(): SpatialGraphVertex | undefined;
1450
+ getEndVertex(): SpatialGraphVertex | undefined;
1451
+ getAxisPoints(): [Vector2_2, Vector2_2] | [];
1452
1452
  getAxisLength(): number;
1453
1453
  getEdgeAtLinearPosition(u: number): SpatialGraphEdge | undefined;
1454
1454
  getEdgesAtLinearSegment(u: number, v: number): SpatialGraphEdge[];
@@ -1620,15 +1620,15 @@ declare interface LayoutKitchenMaterials {
1620
1620
  counter: SpaceGraphMaterialJson;
1621
1621
  }
1622
1622
 
1623
- declare type LayoutKitchenParameters = DimensionParameters & CommonParameters$3;
1623
+ declare type LayoutKitchenParameters = DimensionParameters & CommonParameters_4;
1624
1624
 
1625
- declare type LayoutKitchenParametersJson = DimensionParameters & Partial<CommonParameters$3>;
1625
+ declare type LayoutKitchenParametersJson = DimensionParameters & Partial<CommonParameters_4>;
1626
1626
 
1627
1627
  declare type LayoutKitchenType = typeof LayoutKitchenTypeValue;
1628
1628
 
1629
1629
  declare const LayoutKitchenTypeValue = "element:kitchen";
1630
1630
 
1631
- declare type LayoutNode = SpatialGraphNode | LayoutSpace | LayoutElement | LayoutAnnotation | LayoutView;
1631
+ declare type LayoutNode = SpatialGraphNode_2 | LayoutSpace | LayoutElement | LayoutAnnotation | LayoutView;
1632
1632
 
1633
1633
  declare class LayoutNodeBase extends SpaceGraphNodeWithCustomAttributesBase {
1634
1634
  type: LayoutNodeType;
@@ -1719,9 +1719,9 @@ declare interface LayoutRailingMaterials {
1719
1719
  surface: SpaceGraphMaterialJson;
1720
1720
  }
1721
1721
 
1722
- declare type LayoutRailingParameters = DimensionParameters & CommonParameters$2;
1722
+ declare type LayoutRailingParameters = DimensionParameters & CommonParameters_5;
1723
1723
 
1724
- declare type LayoutRailingParametersJson = DimensionParameters & Partial<CommonParameters$2>;
1724
+ declare type LayoutRailingParametersJson = DimensionParameters & Partial<CommonParameters_5>;
1725
1725
 
1726
1726
  declare type LayoutRailingType = typeof LayoutRailingTypeValue;
1727
1727
 
@@ -1744,9 +1744,9 @@ declare interface LayoutRampMaterials {
1744
1744
  sides: SpaceGraphMaterialJson;
1745
1745
  }
1746
1746
 
1747
- declare type LayoutRampParameters = DimensionParameters & CommonParameters$1;
1747
+ declare type LayoutRampParameters = DimensionParameters & CommonParameters_6;
1748
1748
 
1749
- declare type LayoutRampParametersJson = DimensionParameters & Partial<CommonParameters$1>;
1749
+ declare type LayoutRampParametersJson = DimensionParameters & Partial<CommonParameters_6>;
1750
1750
 
1751
1751
  declare type LayoutRampType = typeof LayoutRampTypeValue;
1752
1752
 
@@ -1855,11 +1855,7 @@ declare class LayoutSpaceDivider extends LayoutEdgeElementBase {
1855
1855
  parameters: LayoutSpaceDividerParameters;
1856
1856
  constructor(id: string, edges: SpatialGraphEdge[]);
1857
1857
  setParameters(parameters: RecursivePartial<LayoutSpaceDividerParameters>): void;
1858
- getBoundingBox(): {
1859
- min: Vector3;
1860
- max: Vector3;
1861
- transform: Transform3d;
1862
- };
1858
+ getBoundingBox(): TransformBoundingBox3d;
1863
1859
  }
1864
1860
 
1865
1861
  declare interface LayoutSpaceDividerJson extends LayoutEdgeElementBaseJson {
@@ -2056,11 +2052,7 @@ declare class LayoutWall extends LayoutEdgeElementBase {
2056
2052
  constructor(id: string, edges: SpatialGraphEdge[]);
2057
2053
  copyForClone(wall: LayoutWall): void;
2058
2054
  setParameters(parameters: RecursivePartial<LayoutWallParameters>): void;
2059
- getBoundingBox(): {
2060
- min: Vector3;
2061
- max: Vector3;
2062
- transform: Transform3d;
2063
- };
2055
+ getBoundingBox(): TransformBoundingBox3d;
2064
2056
  }
2065
2057
 
2066
2058
  declare interface LayoutWallGeometryProfile {
@@ -2121,9 +2113,9 @@ declare interface LayoutWindowMaterials {
2121
2113
  panel: SpaceGraphMaterialJson;
2122
2114
  }
2123
2115
 
2124
- declare type LayoutWindowParameters = DimensionParameters$1 & CommonParameters;
2116
+ declare type LayoutWindowParameters = DimensionParameters_3 & CommonParameters_7;
2125
2117
 
2126
- declare type LayoutWindowParametersJson = DimensionParameters$1 & Partial<CommonParameters>;
2118
+ declare type LayoutWindowParametersJson = DimensionParameters_3 & Partial<CommonParameters_7>;
2127
2119
 
2128
2120
  declare type LayoutWindowType = typeof LayoutWindowTypeValue;
2129
2121
 
@@ -2484,12 +2476,12 @@ declare class SpaceGraph {
2484
2476
  geometries: SpaceGraphGeometryJson[];
2485
2477
  geometriesById: Record<string, SpaceGraphGeometryJson>;
2486
2478
  geometriesByType: NodesByType<{
2487
- readonly 'geometry:plane': typeof PlaneGeometry;
2488
- readonly 'geometry:cuboid': typeof CuboidGeometry;
2489
- readonly 'geometry:sphere': typeof SphereGeometry;
2490
- readonly 'geometry:extrusion': typeof ExtrusionGeometry;
2491
- readonly 'geometry:mesh': typeof MeshGeometry;
2492
- readonly 'geometry:uri': typeof UriGeometry;
2479
+ readonly 'geometry:plane': PlaneGeometry;
2480
+ readonly 'geometry:cuboid': CuboidGeometry;
2481
+ readonly 'geometry:sphere': SphereGeometry;
2482
+ readonly 'geometry:extrusion': ExtrusionGeometry;
2483
+ readonly 'geometry:mesh': MeshGeometry;
2484
+ readonly 'geometry:uri': UriGeometry;
2493
2485
  }>;
2494
2486
  materials: SpaceGraphMaterial[];
2495
2487
  materialsById: Record<string, SpaceGraphMaterial>;
@@ -2516,43 +2508,44 @@ declare class SpaceGraph {
2516
2508
  readonly 'material:basic': typeof SpaceGraphBasicMaterial;
2517
2509
  readonly 'material:color': typeof SpaceGraphColorMaterial;
2518
2510
  readonly 'material:standard': typeof SpaceGraphStandardMaterial;
2519
- readonly 'geometry:plane': typeof PlaneGeometry;
2520
- readonly 'geometry:cuboid': typeof CuboidGeometry;
2521
- readonly 'geometry:sphere': typeof SphereGeometry;
2522
- readonly 'geometry:extrusion': typeof ExtrusionGeometry;
2523
- readonly 'geometry:mesh': typeof MeshGeometry;
2524
- readonly 'geometry:uri': typeof UriGeometry;
2525
- readonly 'spatialGraph:edge': typeof SpatialGraphEdge;
2526
- readonly 'spatialGraph:vertex': typeof SpatialGraphVertex;
2527
- readonly 'layout:space': typeof LayoutSpace;
2528
- readonly 'view:2d': typeof Layout2dView;
2529
- readonly 'view:3d': typeof Layout3dView;
2530
- readonly 'annotation:floorPlanDxf': typeof LayoutFloorPlanDxfAnnotation;
2531
- readonly 'annotation:floorPlanImage': typeof LayoutFloorPlanImageAnnotation;
2532
- readonly 'element:ceiling': typeof LayoutBoundarySlab;
2533
- readonly 'element:floor': typeof LayoutBoundarySlab;
2534
- readonly 'element:boundaryWall': typeof LayoutBoundaryWall;
2535
- readonly 'element:curtainWall': typeof LayoutCurtainWall;
2536
- readonly 'element:spaceDivider': typeof LayoutSpaceDivider;
2537
- readonly 'element:wall': typeof LayoutWall;
2538
- readonly 'element:opening': typeof LayoutOpening;
2539
- readonly 'element:asset': typeof LayoutAsset;
2540
- readonly 'element:beam': typeof LayoutBeam;
2541
- readonly 'element:casework': typeof LayoutCasework;
2542
- readonly 'element:column': typeof LayoutColumn;
2543
- readonly 'element:door': typeof LayoutDoor;
2544
- readonly 'element:generic': typeof LayoutGeneric;
2545
- readonly 'element:kitchen': typeof LayoutKitchen;
2546
- readonly 'element:railing': typeof LayoutRailing;
2547
- readonly 'element:ramp': typeof LayoutRamp;
2548
- readonly 'element:roof': typeof LayoutRoof;
2549
- readonly 'element:slab': typeof LayoutSlab;
2550
- readonly 'element:stairs': typeof LayoutStairs;
2551
- readonly 'element:stairFlight': typeof LayoutStairFlight;
2552
- readonly 'element:window': typeof LayoutWindow;
2511
+ readonly 'geometry:plane': PlaneGeometry;
2512
+ readonly 'geometry:cuboid': CuboidGeometry;
2513
+ readonly 'geometry:sphere': SphereGeometry;
2514
+ readonly 'geometry:extrusion': ExtrusionGeometry;
2515
+ readonly 'geometry:mesh': MeshGeometry;
2516
+ readonly 'geometry:uri': UriGeometry;
2517
+ readonly 'spatialGraph:edge': SpatialGraphEdge;
2518
+ readonly 'spatialGraph:vertex': SpatialGraphVertex;
2519
+ readonly 'layout:space': LayoutSpace;
2520
+ readonly 'view:2d': Layout2dView;
2521
+ readonly 'view:3d': Layout3dView;
2522
+ readonly 'annotation:floorPlanDxf': LayoutFloorPlanDxfAnnotation;
2523
+ readonly 'annotation:floorPlanImage': LayoutFloorPlanImageAnnotation;
2524
+ readonly 'element:ceiling': LayoutBoundarySlab;
2525
+ readonly 'element:floor': LayoutBoundarySlab;
2526
+ readonly 'element:boundaryWall': LayoutBoundaryWall;
2527
+ readonly 'element:curtainWall': LayoutCurtainWall;
2528
+ readonly 'element:spaceDivider': LayoutSpaceDivider;
2529
+ readonly 'element:wall': LayoutWall;
2530
+ readonly 'element:opening': LayoutOpening;
2531
+ readonly 'element:asset': LayoutAsset;
2532
+ readonly 'element:beam': LayoutBeam;
2533
+ readonly 'element:casework': LayoutCasework;
2534
+ readonly 'element:column': LayoutColumn;
2535
+ readonly 'element:door': LayoutDoor;
2536
+ readonly 'element:generic': LayoutGeneric;
2537
+ readonly 'element:kitchen': LayoutKitchen;
2538
+ readonly 'element:railing': LayoutRailing;
2539
+ readonly 'element:ramp': LayoutRamp;
2540
+ readonly 'element:roof': LayoutRoof;
2541
+ readonly 'element:slab': LayoutSlab;
2542
+ readonly 'element:stairs': LayoutStairs;
2543
+ readonly 'element:stairFlight': LayoutStairFlight;
2544
+ readonly 'element:window': LayoutWindow;
2553
2545
  }>;
2546
+ sourceSchemaVersion: string | undefined;
2554
2547
  private emitter;
2555
- constructor();
2548
+ constructor(sourceSchemaVersion?: string);
2556
2549
  getEvents(): Record<string, Function>;
2557
2550
  copyEvents(spaceGraph: SpaceGraph): void;
2558
2551
  deleteNodeAtIndex(nodeIndex: number, nodes: SpaceGraphNode[], nodesById: Record<string, SpaceGraphNode>, nodesByType: NodesByType<Record<string, SpaceGraphNode>>): SpaceGraphNode | undefined;
@@ -2679,7 +2672,7 @@ declare type SpaceGraphCustomAttributeAttributesJson = {
2679
2672
  };
2680
2673
 
2681
2674
  declare interface SpaceGraphCustomAttributeJson extends SpaceGraphNodeBaseJson {
2682
- /** @type string @minLength 3 @maxLength 50 @pattern ^(?![_-])[A-Za-z0-9_-]*$ */
2675
+ /** @type string @minLength 3 @maxLength 70 @pattern ^(?![_-])[A-Za-z0-9_:-]*$ */
2683
2676
  id: string;
2684
2677
  /** @minLength 3 @maxLength 30 @type string */
2685
2678
  name: string;
@@ -2798,40 +2791,40 @@ declare class SpaceGraphLayout extends SpaceGraphSpatialStructureBase {
2798
2791
  spacesById: Record<string, LayoutSpace>;
2799
2792
  elements: LayoutElement[];
2800
2793
  elementsById: Record<string, LayoutElement>;
2801
- elementsByType: NodesByType<{
2794
+ elementsByType: NodesByType< {
2802
2795
  readonly 'element:ceiling': typeof LayoutBoundarySlab;
2803
2796
  readonly 'element:floor': typeof LayoutBoundarySlab;
2804
2797
  readonly 'element:boundaryWall': typeof LayoutBoundaryWall;
2805
- readonly 'element:curtainWall': typeof LayoutCurtainWall;
2806
- readonly 'element:spaceDivider': typeof LayoutSpaceDivider;
2807
- readonly 'element:wall': typeof LayoutWall;
2798
+ readonly 'element:curtainWall': LayoutCurtainWall;
2799
+ readonly 'element:spaceDivider': LayoutSpaceDivider;
2800
+ readonly 'element:wall': LayoutWall;
2808
2801
  readonly 'element:opening': typeof LayoutOpening;
2809
- readonly 'element:asset': typeof LayoutAsset;
2810
- readonly 'element:beam': typeof LayoutBeam;
2811
- readonly 'element:casework': typeof LayoutCasework;
2812
- readonly 'element:column': typeof LayoutColumn;
2813
- readonly 'element:door': typeof LayoutDoor;
2814
- readonly 'element:generic': typeof LayoutGeneric;
2815
- readonly 'element:kitchen': typeof LayoutKitchen;
2816
- readonly 'element:railing': typeof LayoutRailing;
2817
- readonly 'element:ramp': typeof LayoutRamp;
2818
- readonly 'element:roof': typeof LayoutRoof;
2819
- readonly 'element:slab': typeof LayoutSlab;
2820
- readonly 'element:stairs': typeof LayoutStairs;
2821
- readonly 'element:stairFlight': typeof LayoutStairFlight;
2822
- readonly 'element:window': typeof LayoutWindow;
2802
+ readonly 'element:asset': LayoutAsset;
2803
+ readonly 'element:beam': LayoutBeam;
2804
+ readonly 'element:casework': LayoutCasework;
2805
+ readonly 'element:column': LayoutColumn;
2806
+ readonly 'element:door': LayoutDoor;
2807
+ readonly 'element:generic': LayoutGeneric;
2808
+ readonly 'element:kitchen': LayoutKitchen;
2809
+ readonly 'element:railing': LayoutRailing;
2810
+ readonly 'element:ramp': LayoutRamp;
2811
+ readonly 'element:roof': LayoutRoof;
2812
+ readonly 'element:slab': LayoutSlab;
2813
+ readonly 'element:stairs': LayoutStairs;
2814
+ readonly 'element:stairFlight': LayoutStairFlight;
2815
+ readonly 'element:window': LayoutWindow;
2823
2816
  }>;
2824
2817
  annotations: LayoutAnnotation[];
2825
2818
  annotationsById: Record<string, LayoutAnnotation>;
2826
- annotationsByType: NodesByType<{
2827
- readonly 'annotation:floorPlanDxf': typeof LayoutFloorPlanDxfAnnotation;
2828
- readonly 'annotation:floorPlanImage': typeof LayoutFloorPlanImageAnnotation;
2819
+ annotationsByType: NodesByType< {
2820
+ readonly 'annotation:floorPlanDxf': LayoutFloorPlanDxfAnnotation;
2821
+ readonly 'annotation:floorPlanImage': LayoutFloorPlanImageAnnotation;
2829
2822
  }>;
2830
2823
  views: LayoutView[];
2831
2824
  viewsById: Record<string, LayoutView>;
2832
- viewsByType: NodesByType<{
2833
- readonly 'view:2d': typeof Layout2dView;
2834
- readonly 'view:3d': typeof Layout3dView;
2825
+ viewsByType: NodesByType< {
2826
+ readonly 'view:2d': Layout2dView;
2827
+ readonly 'view:3d': Layout3dView;
2835
2828
  }>;
2836
2829
  debugIds: boolean;
2837
2830
  suggestedIds: Record<string, boolean>;
@@ -3070,7 +3063,7 @@ declare type SpatialGraphEdgeType = typeof SpatialGraphEdgeTypeValue;
3070
3063
 
3071
3064
  declare const SpatialGraphEdgeTypeValue = "spatialGraph:edge";
3072
3065
 
3073
- declare type SpatialGraphNode = SpatialGraphVertex | SpatialGraphEdge;
3066
+ declare type SpatialGraphNode_2 = SpatialGraphVertex | SpatialGraphEdge;
3074
3067
 
3075
3068
  declare class SpatialGraphNodeBase extends LayoutNodeBase {
3076
3069
  }