@archilogic/floor-plan-sdk 5.1.1 → 5.1.4
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 +87 -32
- package/dist/fpe.js +1025 -1130
- package/dist/fpe.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/fpe.d.ts
CHANGED
|
@@ -158,6 +158,11 @@ declare interface CommonParameters {
|
|
|
158
158
|
materials: LayoutWindowMaterials;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
declare type CommonStairsParameters = {
|
|
162
|
+
railing: 'none' | 'left' | 'right' | 'both';
|
|
163
|
+
materials: LayoutStairsMaterials;
|
|
164
|
+
};
|
|
165
|
+
|
|
161
166
|
export declare interface CompositeCurve extends BaseShape {
|
|
162
167
|
type: 'curve:composite';
|
|
163
168
|
segments: OpenCurves[];
|
|
@@ -202,35 +207,68 @@ declare interface CurveBase {
|
|
|
202
207
|
|
|
203
208
|
declare type CurveType = ClosedCurveType | OpenCurveType;
|
|
204
209
|
|
|
210
|
+
declare type CustomAttributeInputType = 'Text' | 'Number' | 'Boolean' | 'Integer' | 'Select';
|
|
211
|
+
|
|
205
212
|
declare type CustomAttributeResourceType = 'building' | 'element' | 'floor' | 'layout' | 'product' | 'space';
|
|
206
213
|
|
|
207
|
-
declare type
|
|
214
|
+
declare type CustomAttributeSchema = CustomAttributeSchemaText | CustomAttributeSchemaSelect | CustomAttributeSchemaNumber | CustomAttributeSchemaInteger | CustomAttributeSchemaBoolean;
|
|
215
|
+
|
|
216
|
+
declare type CustomAttributeSchemaBoolean = {
|
|
217
|
+
type: 'boolean';
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
declare type CustomAttributeSchemaInteger = {
|
|
221
|
+
type: 'integer';
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
declare type CustomAttributeSchemaNumber = {
|
|
225
|
+
type: 'number';
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
declare type CustomAttributeSchemaSelect = {
|
|
229
|
+
type: 'string';
|
|
230
|
+
enum: string[];
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
declare type CustomAttributeSchemaText = {
|
|
234
|
+
type: 'string';
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
/** @deprecated */
|
|
238
|
+
declare type CustomAttributeValueType = 'Text' | 'Number' | 'Boolean' | 'Schema';
|
|
208
239
|
|
|
209
|
-
declare
|
|
240
|
+
declare type CustomStairsParameters = {
|
|
210
241
|
stairsType: CustomStairsType;
|
|
242
|
+
/** @minimum 0.01 */
|
|
211
243
|
height: number;
|
|
244
|
+
/** @minimum 0.01 */
|
|
212
245
|
stepWidth: number;
|
|
213
|
-
|
|
214
|
-
materials: LayoutStairsMaterials;
|
|
215
|
-
}
|
|
246
|
+
} & CommonStairsParameters;
|
|
216
247
|
|
|
217
248
|
declare type CustomStairsParametersJson = Partial<CustomStairsParameters>;
|
|
218
249
|
|
|
219
250
|
declare type CustomStairsType = 'custom';
|
|
220
251
|
|
|
221
252
|
declare interface DimensionParameters$1 {
|
|
253
|
+
/** @minimum 0.01 */
|
|
222
254
|
length: number;
|
|
255
|
+
/** @minimum 0.01 */
|
|
223
256
|
height: number;
|
|
224
257
|
}
|
|
225
258
|
|
|
226
259
|
declare interface DimensionParameters$2 {
|
|
260
|
+
/** @minimum 0.01 */
|
|
227
261
|
length: number;
|
|
262
|
+
/** @minimum 0.01 */
|
|
228
263
|
height: number;
|
|
229
264
|
}
|
|
230
265
|
|
|
231
266
|
declare type DimensionParameters = {
|
|
267
|
+
/** @minimum 0.01 */
|
|
232
268
|
length: number;
|
|
269
|
+
/** @minimum 0.01 */
|
|
233
270
|
width: number;
|
|
271
|
+
/** @minimum 0.01 */
|
|
234
272
|
height: number;
|
|
235
273
|
};
|
|
236
274
|
|
|
@@ -238,6 +276,19 @@ declare type DoorSide = 'side1' | 'side2';
|
|
|
238
276
|
|
|
239
277
|
declare type DoorType = 'singleSwing' | 'doubleSwing' | 'slidingDoor' | 'opening' | 'elevatorDoor' | 'garageDoor';
|
|
240
278
|
|
|
279
|
+
declare enum DxfUnits {
|
|
280
|
+
unitLess = 0,
|
|
281
|
+
inches = 1,
|
|
282
|
+
feet = 2,
|
|
283
|
+
miles = 3,
|
|
284
|
+
millimeters = 4,
|
|
285
|
+
centimeters = 5,
|
|
286
|
+
meters = 6,
|
|
287
|
+
kilometers = 7
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
declare type DxfUnitsString = keyof typeof DxfUnits;
|
|
291
|
+
|
|
241
292
|
declare interface EdgeCanSplitOptions {
|
|
242
293
|
minimumLength?: number;
|
|
243
294
|
}
|
|
@@ -360,6 +411,7 @@ declare class FloorPlanCore {
|
|
|
360
411
|
* The main Floor plan engine SDK class
|
|
361
412
|
*/
|
|
362
413
|
export declare class FloorPlanEngine extends FloorPlanCore {
|
|
414
|
+
#private;
|
|
363
415
|
fpeNode?: HTMLElement;
|
|
364
416
|
view: WebGlView;
|
|
365
417
|
interaction: FpeInteraction;
|
|
@@ -1317,6 +1369,7 @@ declare interface LayoutColumnMaterials {
|
|
|
1317
1369
|
|
|
1318
1370
|
declare interface LayoutColumnParameters {
|
|
1319
1371
|
profile: LayoutColumnProfile;
|
|
1372
|
+
/** @minimum 0.01 */
|
|
1320
1373
|
height: number;
|
|
1321
1374
|
materials: LayoutColumnMaterials;
|
|
1322
1375
|
}
|
|
@@ -1435,7 +1488,12 @@ declare class LayoutElementBase extends LayoutNodeBase {
|
|
|
1435
1488
|
insertElement(element: LayoutElement): void;
|
|
1436
1489
|
getTransform(): Transform3d;
|
|
1437
1490
|
getWorldTransform(): Transform3d;
|
|
1491
|
+
/**
|
|
1492
|
+
* returns the element's object aligned bounding box with transform
|
|
1493
|
+
*/
|
|
1438
1494
|
getBoundingBox(localTransform?: boolean): TransformBoundingBox3d;
|
|
1495
|
+
getAxisAlignedBoundingBox(localTransform?: boolean): BoundingBox3d;
|
|
1496
|
+
getBoundingBoxContour(localTransform?: boolean): Vector2_2[];
|
|
1439
1497
|
get isExternal(): boolean;
|
|
1440
1498
|
removeElement(element: LayoutElement): void;
|
|
1441
1499
|
copyForClone(element: LayoutElement): void;
|
|
@@ -1474,6 +1532,7 @@ declare interface LayoutFloorPlanDxfAnnotationJson extends LayoutAnnotationBaseJ
|
|
|
1474
1532
|
declare interface LayoutFloorPlanDxfParameters {
|
|
1475
1533
|
uri: string;
|
|
1476
1534
|
drawingOrigin: Vector2_2;
|
|
1535
|
+
drawingUnits: DxfUnitsString;
|
|
1477
1536
|
hiddenLayers: string[];
|
|
1478
1537
|
}
|
|
1479
1538
|
|
|
@@ -1774,6 +1833,8 @@ declare class LayoutSpace extends LayoutNodeBase {
|
|
|
1774
1833
|
edgeIndex: number;
|
|
1775
1834
|
};
|
|
1776
1835
|
getBoundingBox(): TransformBoundingBox3d;
|
|
1836
|
+
getAxisAlignedBoundingBox(): BoundingBox3d;
|
|
1837
|
+
getBoundingBoxContour(): Vector2_2[];
|
|
1777
1838
|
attachSlab(slab: LayoutBoundarySlab): void;
|
|
1778
1839
|
detachSlab(slab: LayoutBoundarySlab): void;
|
|
1779
1840
|
toJSON(): LayoutSpaceJson;
|
|
@@ -2028,7 +2089,9 @@ declare interface LayoutWallMaterials {
|
|
|
2028
2089
|
}
|
|
2029
2090
|
|
|
2030
2091
|
declare interface LayoutWallParameters {
|
|
2092
|
+
/** @minimum 0.01 */
|
|
2031
2093
|
width: number;
|
|
2094
|
+
/** @minimum 0.01 */
|
|
2032
2095
|
height: number;
|
|
2033
2096
|
offset: number;
|
|
2034
2097
|
elevation: number;
|
|
@@ -2166,16 +2229,12 @@ declare type OpenCurves = LineCurve | ArcCurve | PolylineCurve | BezierCurve;
|
|
|
2166
2229
|
|
|
2167
2230
|
declare type OpenCurveType = LineCurveType | PolylineCurveType | ArcCurveType;
|
|
2168
2231
|
|
|
2169
|
-
declare
|
|
2232
|
+
declare type OrthogonalStairsParameters = {
|
|
2170
2233
|
stairsType: OrthogonalStairsType;
|
|
2171
|
-
|
|
2172
|
-
width: number;
|
|
2173
|
-
height: number;
|
|
2234
|
+
/** @minimum 0.01 */
|
|
2174
2235
|
stepWidth: number;
|
|
2175
2236
|
circulation: 'left' | 'right';
|
|
2176
|
-
|
|
2177
|
-
materials: LayoutStairsMaterials;
|
|
2178
|
-
}
|
|
2237
|
+
} & DimensionParameters & CommonStairsParameters;
|
|
2179
2238
|
|
|
2180
2239
|
declare type OrthogonalStairsParametersJson = Partial<OrthogonalStairsParameters>;
|
|
2181
2240
|
|
|
@@ -2597,6 +2656,7 @@ declare class SpaceGraphCustomAttribute extends SpaceGraphNodeBase {
|
|
|
2597
2656
|
type: SpaceGraphCustomAttributeType;
|
|
2598
2657
|
attributes: SpaceGraphCustomAttributeAttributes;
|
|
2599
2658
|
constructor(id: string, attributesJson?: SpaceGraphCustomAttributeAttributesJson);
|
|
2659
|
+
getInputType(): CustomAttributeInputType;
|
|
2600
2660
|
setAttributes(attributesJson: SpaceGraphCustomAttributeAttributesJson): void;
|
|
2601
2661
|
copyForClone(customAttribute: SpaceGraphCustomAttribute): void;
|
|
2602
2662
|
toJSON(): SpaceGraphCustomAttributeJson;
|
|
@@ -2604,14 +2664,15 @@ declare class SpaceGraphCustomAttribute extends SpaceGraphNodeBase {
|
|
|
2604
2664
|
|
|
2605
2665
|
declare type SpaceGraphCustomAttributeAttributes = {
|
|
2606
2666
|
resourceType: CustomAttributeResourceType;
|
|
2607
|
-
|
|
2667
|
+
schema: CustomAttributeSchema;
|
|
2608
2668
|
updatedAt?: string;
|
|
2609
2669
|
description?: string;
|
|
2610
2670
|
};
|
|
2611
2671
|
|
|
2612
2672
|
declare type SpaceGraphCustomAttributeAttributesJson = {
|
|
2613
2673
|
resourceType: CustomAttributeResourceType;
|
|
2614
|
-
valueType
|
|
2674
|
+
valueType?: CustomAttributeValueType;
|
|
2675
|
+
schema?: CustomAttributeSchema;
|
|
2615
2676
|
updatedAt?: string;
|
|
2616
2677
|
/** @minLength 3 @maxLength 200 @type string */
|
|
2617
2678
|
description?: string;
|
|
@@ -2630,9 +2691,9 @@ declare type SpaceGraphCustomAttributeType = typeof SpaceGraphCustomAttributeTyp
|
|
|
2630
2691
|
|
|
2631
2692
|
declare const SpaceGraphCustomAttributeTypeValue = "customAttribute:definition";
|
|
2632
2693
|
|
|
2633
|
-
declare type SpaceGraphCustomAttributeValue = Record<string, string>;
|
|
2694
|
+
declare type SpaceGraphCustomAttributeValue = Record<string, string | boolean | number>;
|
|
2634
2695
|
|
|
2635
|
-
declare type SpaceGraphCustomAttributeValueJson = Record<string, string | null>;
|
|
2696
|
+
declare type SpaceGraphCustomAttributeValueJson = Record<string, string | boolean | number | null>;
|
|
2636
2697
|
|
|
2637
2698
|
declare class SpaceGraphEmbeddedMaterial extends SpaceGraphNodeBase {
|
|
2638
2699
|
type: SpaceGraphEmbeddedMaterialType;
|
|
@@ -3059,7 +3120,9 @@ declare interface SpiralStairFlightParameters {
|
|
|
3059
3120
|
stairFlightType: 'spiral';
|
|
3060
3121
|
angle: number;
|
|
3061
3122
|
radius: number;
|
|
3123
|
+
/** @minimum 0.01 */
|
|
3062
3124
|
width: number;
|
|
3125
|
+
/** @minimum 0.01 */
|
|
3063
3126
|
height: number;
|
|
3064
3127
|
circulation: 'left' | 'right';
|
|
3065
3128
|
materials: LayoutStairFlightMaterials;
|
|
@@ -3067,16 +3130,16 @@ declare interface SpiralStairFlightParameters {
|
|
|
3067
3130
|
|
|
3068
3131
|
declare type SpiralStairFlightParametersJson = Partial<SpiralStairFlightParameters>;
|
|
3069
3132
|
|
|
3070
|
-
declare
|
|
3133
|
+
declare type SpiralStairsParameters = {
|
|
3071
3134
|
stairsType: SpiralStairsType;
|
|
3072
3135
|
radius: number;
|
|
3073
3136
|
angle: number;
|
|
3137
|
+
/** @minimum 0.01 */
|
|
3074
3138
|
height: number;
|
|
3139
|
+
/** @minimum 0.01 */
|
|
3075
3140
|
stepWidth: number;
|
|
3076
3141
|
circulation: 'left' | 'right';
|
|
3077
|
-
|
|
3078
|
-
materials: LayoutStairsMaterials;
|
|
3079
|
-
}
|
|
3142
|
+
} & CommonStairsParameters;
|
|
3080
3143
|
|
|
3081
3144
|
declare type SpiralStairsParametersJson = Partial<SpiralStairsParameters>;
|
|
3082
3145
|
|
|
@@ -3106,24 +3169,16 @@ declare interface StartupOptions {
|
|
|
3106
3169
|
zoomRange?: [number, number];
|
|
3107
3170
|
}
|
|
3108
3171
|
|
|
3109
|
-
declare
|
|
3172
|
+
declare type StraightStairFlightParameters = {
|
|
3110
3173
|
stairFlightType: 'straight';
|
|
3111
|
-
length: number;
|
|
3112
|
-
width: number;
|
|
3113
|
-
height: number;
|
|
3114
3174
|
materials: LayoutStairFlightMaterials;
|
|
3115
|
-
}
|
|
3175
|
+
} & DimensionParameters;
|
|
3116
3176
|
|
|
3117
3177
|
declare type StraightStairFlightParametersJson = Partial<StraightStairFlightParameters>;
|
|
3118
3178
|
|
|
3119
|
-
declare
|
|
3179
|
+
declare type StraightStairsParameters = {
|
|
3120
3180
|
stairsType: StraightStairsType;
|
|
3121
|
-
|
|
3122
|
-
width: number;
|
|
3123
|
-
height: number;
|
|
3124
|
-
railing: 'none' | 'left' | 'right' | 'both';
|
|
3125
|
-
materials: LayoutStairsMaterials;
|
|
3126
|
-
}
|
|
3181
|
+
} & DimensionParameters & CommonStairsParameters;
|
|
3127
3182
|
|
|
3128
3183
|
declare type StraightStairsParametersJson = Partial<StraightStairsParameters>;
|
|
3129
3184
|
|