@archilogic/floor-plan-sdk 5.1.1 → 5.1.3
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 +22 -0
- package/dist/fpe.js +928 -841
- package/dist/fpe.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/fpe.d.ts
CHANGED
|
@@ -238,6 +238,19 @@ declare type DoorSide = 'side1' | 'side2';
|
|
|
238
238
|
|
|
239
239
|
declare type DoorType = 'singleSwing' | 'doubleSwing' | 'slidingDoor' | 'opening' | 'elevatorDoor' | 'garageDoor';
|
|
240
240
|
|
|
241
|
+
declare enum DxfUnits {
|
|
242
|
+
unitLess = 0,
|
|
243
|
+
inches = 1,
|
|
244
|
+
feet = 2,
|
|
245
|
+
miles = 3,
|
|
246
|
+
millimeters = 4,
|
|
247
|
+
centimeters = 5,
|
|
248
|
+
meters = 6,
|
|
249
|
+
kilometers = 7
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
declare type DxfUnitsString = keyof typeof DxfUnits;
|
|
253
|
+
|
|
241
254
|
declare interface EdgeCanSplitOptions {
|
|
242
255
|
minimumLength?: number;
|
|
243
256
|
}
|
|
@@ -360,6 +373,7 @@ declare class FloorPlanCore {
|
|
|
360
373
|
* The main Floor plan engine SDK class
|
|
361
374
|
*/
|
|
362
375
|
export declare class FloorPlanEngine extends FloorPlanCore {
|
|
376
|
+
#private;
|
|
363
377
|
fpeNode?: HTMLElement;
|
|
364
378
|
view: WebGlView;
|
|
365
379
|
interaction: FpeInteraction;
|
|
@@ -1435,7 +1449,12 @@ declare class LayoutElementBase extends LayoutNodeBase {
|
|
|
1435
1449
|
insertElement(element: LayoutElement): void;
|
|
1436
1450
|
getTransform(): Transform3d;
|
|
1437
1451
|
getWorldTransform(): Transform3d;
|
|
1452
|
+
/**
|
|
1453
|
+
* returns the element's object aligned bounding box with transform
|
|
1454
|
+
*/
|
|
1438
1455
|
getBoundingBox(localTransform?: boolean): TransformBoundingBox3d;
|
|
1456
|
+
getAxisAlignedBoundingBox(localTransform?: boolean): BoundingBox3d;
|
|
1457
|
+
getBoundingBoxContour(localTransform?: boolean): Vector2_2[];
|
|
1439
1458
|
get isExternal(): boolean;
|
|
1440
1459
|
removeElement(element: LayoutElement): void;
|
|
1441
1460
|
copyForClone(element: LayoutElement): void;
|
|
@@ -1474,6 +1493,7 @@ declare interface LayoutFloorPlanDxfAnnotationJson extends LayoutAnnotationBaseJ
|
|
|
1474
1493
|
declare interface LayoutFloorPlanDxfParameters {
|
|
1475
1494
|
uri: string;
|
|
1476
1495
|
drawingOrigin: Vector2_2;
|
|
1496
|
+
drawingUnits: DxfUnitsString;
|
|
1477
1497
|
hiddenLayers: string[];
|
|
1478
1498
|
}
|
|
1479
1499
|
|
|
@@ -1774,6 +1794,8 @@ declare class LayoutSpace extends LayoutNodeBase {
|
|
|
1774
1794
|
edgeIndex: number;
|
|
1775
1795
|
};
|
|
1776
1796
|
getBoundingBox(): TransformBoundingBox3d;
|
|
1797
|
+
getAxisAlignedBoundingBox(): BoundingBox3d;
|
|
1798
|
+
getBoundingBoxContour(): Vector2_2[];
|
|
1777
1799
|
attachSlab(slab: LayoutBoundarySlab): void;
|
|
1778
1800
|
detachSlab(slab: LayoutBoundarySlab): void;
|
|
1779
1801
|
toJSON(): LayoutSpaceJson;
|