@archilogic/floor-plan-sdk 5.1.6 → 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 +111 -111
- package/dist/fpe.js +348 -58
- package/dist/fpe.umd.cjs +3 -3
- package/package.json +1 -1
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
|
|
110
|
-
materials:
|
|
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
|
|
120
|
-
|
|
121
|
-
|
|
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
|
|
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
|
|
143
|
-
|
|
144
|
-
|
|
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
|
|
148
|
-
|
|
141
|
+
declare interface CommonParameters_5 {
|
|
142
|
+
segmentCount: number;
|
|
143
|
+
segmentLength: number;
|
|
144
|
+
materials: LayoutRailingMaterials;
|
|
149
145
|
}
|
|
150
146
|
|
|
151
|
-
declare interface
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1210
|
+
declare type LayoutBeamParameters = DimensionParameters & CommonParameters;
|
|
1211
1211
|
|
|
1212
|
-
declare type LayoutBeamParametersJson = DimensionParameters & Partial<CommonParameters
|
|
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 &
|
|
1340
|
+
declare type LayoutCaseworkParameters = DimensionParameters & CommonParameters_2;
|
|
1341
1341
|
|
|
1342
|
-
declare type LayoutCaseworkParametersJson = DimensionParameters & Partial<
|
|
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 =
|
|
1428
|
+
declare type LayoutDoorParameters = DimensionParameters_2 & CommonParameters_3;
|
|
1429
1429
|
|
|
1430
|
-
declare type LayoutDoorParametersJson =
|
|
1430
|
+
declare type LayoutDoorParametersJson = DimensionParameters_2 & Partial<CommonParameters_3>;
|
|
1431
1431
|
|
|
1432
1432
|
declare type LayoutDoorType = typeof LayoutDoorTypeValue;
|
|
1433
1433
|
|
|
@@ -1620,15 +1620,15 @@ declare interface LayoutKitchenMaterials {
|
|
|
1620
1620
|
counter: SpaceGraphMaterialJson;
|
|
1621
1621
|
}
|
|
1622
1622
|
|
|
1623
|
-
declare type LayoutKitchenParameters = DimensionParameters &
|
|
1623
|
+
declare type LayoutKitchenParameters = DimensionParameters & CommonParameters_4;
|
|
1624
1624
|
|
|
1625
|
-
declare type LayoutKitchenParametersJson = DimensionParameters & Partial<
|
|
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 =
|
|
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 &
|
|
1722
|
+
declare type LayoutRailingParameters = DimensionParameters & CommonParameters_5;
|
|
1723
1723
|
|
|
1724
|
-
declare type LayoutRailingParametersJson = DimensionParameters & Partial<
|
|
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 &
|
|
1747
|
+
declare type LayoutRampParameters = DimensionParameters & CommonParameters_6;
|
|
1748
1748
|
|
|
1749
|
-
declare type LayoutRampParametersJson = DimensionParameters & Partial<
|
|
1749
|
+
declare type LayoutRampParametersJson = DimensionParameters & Partial<CommonParameters_6>;
|
|
1750
1750
|
|
|
1751
1751
|
declare type LayoutRampType = typeof LayoutRampTypeValue;
|
|
1752
1752
|
|
|
@@ -2113,9 +2113,9 @@ declare interface LayoutWindowMaterials {
|
|
|
2113
2113
|
panel: SpaceGraphMaterialJson;
|
|
2114
2114
|
}
|
|
2115
2115
|
|
|
2116
|
-
declare type LayoutWindowParameters =
|
|
2116
|
+
declare type LayoutWindowParameters = DimensionParameters_3 & CommonParameters_7;
|
|
2117
2117
|
|
|
2118
|
-
declare type LayoutWindowParametersJson =
|
|
2118
|
+
declare type LayoutWindowParametersJson = DimensionParameters_3 & Partial<CommonParameters_7>;
|
|
2119
2119
|
|
|
2120
2120
|
declare type LayoutWindowType = typeof LayoutWindowTypeValue;
|
|
2121
2121
|
|
|
@@ -2476,12 +2476,12 @@ declare class SpaceGraph {
|
|
|
2476
2476
|
geometries: SpaceGraphGeometryJson[];
|
|
2477
2477
|
geometriesById: Record<string, SpaceGraphGeometryJson>;
|
|
2478
2478
|
geometriesByType: NodesByType<{
|
|
2479
|
-
readonly 'geometry:plane':
|
|
2480
|
-
readonly 'geometry:cuboid':
|
|
2481
|
-
readonly 'geometry:sphere':
|
|
2482
|
-
readonly 'geometry:extrusion':
|
|
2483
|
-
readonly 'geometry:mesh':
|
|
2484
|
-
readonly 'geometry:uri':
|
|
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;
|
|
2485
2485
|
}>;
|
|
2486
2486
|
materials: SpaceGraphMaterial[];
|
|
2487
2487
|
materialsById: Record<string, SpaceGraphMaterial>;
|
|
@@ -2508,40 +2508,40 @@ declare class SpaceGraph {
|
|
|
2508
2508
|
readonly 'material:basic': typeof SpaceGraphBasicMaterial;
|
|
2509
2509
|
readonly 'material:color': typeof SpaceGraphColorMaterial;
|
|
2510
2510
|
readonly 'material:standard': typeof SpaceGraphStandardMaterial;
|
|
2511
|
-
readonly 'geometry:plane':
|
|
2512
|
-
readonly 'geometry:cuboid':
|
|
2513
|
-
readonly 'geometry:sphere':
|
|
2514
|
-
readonly 'geometry:extrusion':
|
|
2515
|
-
readonly 'geometry:mesh':
|
|
2516
|
-
readonly 'geometry:uri':
|
|
2517
|
-
readonly 'spatialGraph:edge':
|
|
2518
|
-
readonly 'spatialGraph:vertex':
|
|
2519
|
-
readonly 'layout:space':
|
|
2520
|
-
readonly 'view:2d':
|
|
2521
|
-
readonly 'view:3d':
|
|
2522
|
-
readonly 'annotation:floorPlanDxf':
|
|
2523
|
-
readonly 'annotation:floorPlanImage':
|
|
2524
|
-
readonly 'element:ceiling':
|
|
2525
|
-
readonly 'element:floor':
|
|
2526
|
-
readonly 'element:boundaryWall':
|
|
2527
|
-
readonly 'element:curtainWall':
|
|
2528
|
-
readonly 'element:spaceDivider':
|
|
2529
|
-
readonly 'element:wall':
|
|
2530
|
-
readonly 'element:opening':
|
|
2531
|
-
readonly 'element:asset':
|
|
2532
|
-
readonly 'element:beam':
|
|
2533
|
-
readonly 'element:casework':
|
|
2534
|
-
readonly 'element:column':
|
|
2535
|
-
readonly 'element:door':
|
|
2536
|
-
readonly 'element:generic':
|
|
2537
|
-
readonly 'element:kitchen':
|
|
2538
|
-
readonly 'element:railing':
|
|
2539
|
-
readonly 'element:ramp':
|
|
2540
|
-
readonly 'element:roof':
|
|
2541
|
-
readonly 'element:slab':
|
|
2542
|
-
readonly 'element:stairs':
|
|
2543
|
-
readonly 'element:stairFlight':
|
|
2544
|
-
readonly 'element:window':
|
|
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;
|
|
2545
2545
|
}>;
|
|
2546
2546
|
sourceSchemaVersion: string | undefined;
|
|
2547
2547
|
private emitter;
|
|
@@ -2672,7 +2672,7 @@ declare type SpaceGraphCustomAttributeAttributesJson = {
|
|
|
2672
2672
|
};
|
|
2673
2673
|
|
|
2674
2674
|
declare interface SpaceGraphCustomAttributeJson extends SpaceGraphNodeBaseJson {
|
|
2675
|
-
/** @type string @minLength 3 @maxLength
|
|
2675
|
+
/** @type string @minLength 3 @maxLength 70 @pattern ^(?![_-])[A-Za-z0-9_:-]*$ */
|
|
2676
2676
|
id: string;
|
|
2677
2677
|
/** @minLength 3 @maxLength 30 @type string */
|
|
2678
2678
|
name: string;
|
|
@@ -2791,40 +2791,40 @@ declare class SpaceGraphLayout extends SpaceGraphSpatialStructureBase {
|
|
|
2791
2791
|
spacesById: Record<string, LayoutSpace>;
|
|
2792
2792
|
elements: LayoutElement[];
|
|
2793
2793
|
elementsById: Record<string, LayoutElement>;
|
|
2794
|
-
elementsByType: NodesByType<{
|
|
2794
|
+
elementsByType: NodesByType< {
|
|
2795
2795
|
readonly 'element:ceiling': typeof LayoutBoundarySlab;
|
|
2796
2796
|
readonly 'element:floor': typeof LayoutBoundarySlab;
|
|
2797
2797
|
readonly 'element:boundaryWall': typeof LayoutBoundaryWall;
|
|
2798
|
-
readonly 'element:curtainWall':
|
|
2799
|
-
readonly 'element:spaceDivider':
|
|
2800
|
-
readonly 'element:wall':
|
|
2798
|
+
readonly 'element:curtainWall': LayoutCurtainWall;
|
|
2799
|
+
readonly 'element:spaceDivider': LayoutSpaceDivider;
|
|
2800
|
+
readonly 'element:wall': LayoutWall;
|
|
2801
2801
|
readonly 'element:opening': typeof LayoutOpening;
|
|
2802
|
-
readonly 'element:asset':
|
|
2803
|
-
readonly 'element:beam':
|
|
2804
|
-
readonly 'element:casework':
|
|
2805
|
-
readonly 'element:column':
|
|
2806
|
-
readonly 'element:door':
|
|
2807
|
-
readonly 'element:generic':
|
|
2808
|
-
readonly 'element:kitchen':
|
|
2809
|
-
readonly 'element:railing':
|
|
2810
|
-
readonly 'element:ramp':
|
|
2811
|
-
readonly 'element:roof':
|
|
2812
|
-
readonly 'element:slab':
|
|
2813
|
-
readonly 'element:stairs':
|
|
2814
|
-
readonly 'element:stairFlight':
|
|
2815
|
-
readonly 'element:window':
|
|
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;
|
|
2816
2816
|
}>;
|
|
2817
2817
|
annotations: LayoutAnnotation[];
|
|
2818
2818
|
annotationsById: Record<string, LayoutAnnotation>;
|
|
2819
|
-
annotationsByType: NodesByType<{
|
|
2820
|
-
readonly 'annotation:floorPlanDxf':
|
|
2821
|
-
readonly 'annotation:floorPlanImage':
|
|
2819
|
+
annotationsByType: NodesByType< {
|
|
2820
|
+
readonly 'annotation:floorPlanDxf': LayoutFloorPlanDxfAnnotation;
|
|
2821
|
+
readonly 'annotation:floorPlanImage': LayoutFloorPlanImageAnnotation;
|
|
2822
2822
|
}>;
|
|
2823
2823
|
views: LayoutView[];
|
|
2824
2824
|
viewsById: Record<string, LayoutView>;
|
|
2825
|
-
viewsByType: NodesByType<{
|
|
2826
|
-
readonly 'view:2d':
|
|
2827
|
-
readonly 'view:3d':
|
|
2825
|
+
viewsByType: NodesByType< {
|
|
2826
|
+
readonly 'view:2d': Layout2dView;
|
|
2827
|
+
readonly 'view:3d': Layout3dView;
|
|
2828
2828
|
}>;
|
|
2829
2829
|
debugIds: boolean;
|
|
2830
2830
|
suggestedIds: Record<string, boolean>;
|
|
@@ -3063,7 +3063,7 @@ declare type SpatialGraphEdgeType = typeof SpatialGraphEdgeTypeValue;
|
|
|
3063
3063
|
|
|
3064
3064
|
declare const SpatialGraphEdgeTypeValue = "spatialGraph:edge";
|
|
3065
3065
|
|
|
3066
|
-
declare type
|
|
3066
|
+
declare type SpatialGraphNode_2 = SpatialGraphVertex | SpatialGraphEdge;
|
|
3067
3067
|
|
|
3068
3068
|
declare class SpatialGraphNodeBase extends LayoutNodeBase {
|
|
3069
3069
|
}
|