@archilogic/floor-plan-sdk 5.1.0 → 5.1.1
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 +16 -4
- package/dist/fpe.js +1067 -1412
- package/dist/fpe.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/fpe.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export declare interface BezierCurve extends BaseShape {
|
|
|
77
77
|
points: Polygon;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
declare type BoundingBox2d = {
|
|
80
|
+
export declare type BoundingBox2d = {
|
|
81
81
|
min: Vector2;
|
|
82
82
|
max: Vector2;
|
|
83
83
|
};
|
|
@@ -127,7 +127,9 @@ declare interface CommonParameters$3 {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
declare interface CommonParameters$4 {
|
|
130
|
+
/** thickness of the frame in x direction */
|
|
130
131
|
frameThickness: number;
|
|
132
|
+
/** depth of the frame in z direction */
|
|
131
133
|
frameDepth: number;
|
|
132
134
|
doorType: DoorType;
|
|
133
135
|
doorAngle: number;
|
|
@@ -147,7 +149,9 @@ declare interface CommonParameters$6 {
|
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
declare interface CommonParameters {
|
|
152
|
+
/** thickness of the frame in x direction */
|
|
150
153
|
frameThickness: number;
|
|
154
|
+
/** depth of the frame in z direction */
|
|
151
155
|
frameDepth: number;
|
|
152
156
|
panelLength: number;
|
|
153
157
|
panelCount: number;
|
|
@@ -336,6 +340,7 @@ declare class FloorPlanCore {
|
|
|
336
340
|
* Change options after the floor plan engine instance has been created
|
|
337
341
|
*/
|
|
338
342
|
set(args?: FpeConfig): void;
|
|
343
|
+
getBoundingBox(margin?: number): BoundingBox2d;
|
|
339
344
|
/**
|
|
340
345
|
* Get a list of spaces and assets for a specific plan position
|
|
341
346
|
* @param {*} position - plan position
|
|
@@ -399,7 +404,6 @@ export declare class FloorPlanEngine extends FloorPlanCore {
|
|
|
399
404
|
initDrawingEvents(): void;
|
|
400
405
|
freeDrawingEvents(): void;
|
|
401
406
|
generateUi(): void;
|
|
402
|
-
getBoundingBox(margin?: number): BoundingBox2d;
|
|
403
407
|
/**
|
|
404
408
|
* Get a bounding box containing the layout, with some padding
|
|
405
409
|
* @param layoutBoundingBox - bounding box of the layout, in meters.
|
|
@@ -866,6 +870,7 @@ export declare interface GraphicArgs {
|
|
|
866
870
|
|
|
867
871
|
declare type GraphicUpdate = {
|
|
868
872
|
position?: Vector2;
|
|
873
|
+
rotation?: number;
|
|
869
874
|
style?: ShapeStyle;
|
|
870
875
|
shapes?: Shape[];
|
|
871
876
|
};
|
|
@@ -1402,6 +1407,7 @@ declare class LayoutEdgeElementBase extends LayoutElementBase {
|
|
|
1402
1407
|
getAdjacentSpacesBySide(): [LayoutSpace[], LayoutSpace[]];
|
|
1403
1408
|
getSpaces(): LayoutSpace[];
|
|
1404
1409
|
getElementsAtLinearPosition(u: number): LayoutElement[];
|
|
1410
|
+
get isExternal(): boolean;
|
|
1405
1411
|
}
|
|
1406
1412
|
|
|
1407
1413
|
declare interface LayoutEdgeElementBaseJson extends LayoutElementBaseJson {
|
|
@@ -1430,6 +1436,7 @@ declare class LayoutElementBase extends LayoutNodeBase {
|
|
|
1430
1436
|
getTransform(): Transform3d;
|
|
1431
1437
|
getWorldTransform(): Transform3d;
|
|
1432
1438
|
getBoundingBox(localTransform?: boolean): TransformBoundingBox3d;
|
|
1439
|
+
get isExternal(): boolean;
|
|
1433
1440
|
removeElement(element: LayoutElement): void;
|
|
1434
1441
|
copyForClone(element: LayoutElement): void;
|
|
1435
1442
|
setParameters(parameters: RecursivePartial<LayoutElementParameters>): void;
|
|
@@ -1590,6 +1597,7 @@ declare class LayoutOpening extends LayoutOpeningElementBase {
|
|
|
1590
1597
|
transform: Transform3d;
|
|
1591
1598
|
};
|
|
1592
1599
|
getSpaces(): LayoutSpace[];
|
|
1600
|
+
get isExternal(): boolean;
|
|
1593
1601
|
}
|
|
1594
1602
|
|
|
1595
1603
|
declare type LayoutOpeningElement = LayoutOpening;
|
|
@@ -1751,6 +1759,7 @@ declare class LayoutSpace extends LayoutNodeBase {
|
|
|
1751
1759
|
copyForClone(space: LayoutSpace): void;
|
|
1752
1760
|
setId(id: string): void;
|
|
1753
1761
|
setAttributes(attributes: LayoutSpaceAttributesJson): void;
|
|
1762
|
+
get isExternal(): boolean;
|
|
1754
1763
|
getArea(): number;
|
|
1755
1764
|
getAdjacentSpaces(graph: Graph, { connectivity }?: {
|
|
1756
1765
|
connectivity?: number;
|
|
@@ -2227,7 +2236,7 @@ declare class PlanGraphic {
|
|
|
2227
2236
|
gfxScale: number;
|
|
2228
2237
|
private floorPlan;
|
|
2229
2238
|
constructor({ shapes, position, alpha, scale, clearLayer, interactive, id, isHandler, scaleOnZoom, updatePositionOnDrag, baseLayer, container, floorPlan }: PlanGraphicArgs);
|
|
2230
|
-
set({ position, style, shapes }?: GraphicUpdate): void;
|
|
2239
|
+
set({ position, rotation, style, shapes }?: GraphicUpdate): void;
|
|
2231
2240
|
private doUpdatePositionOnDrag;
|
|
2232
2241
|
on(event: string, callback: any, context?: any): this;
|
|
2233
2242
|
off(event: string, callback?: any): this;
|
|
@@ -2251,6 +2260,7 @@ declare class PlanLayer {
|
|
|
2251
2260
|
private floorPlan;
|
|
2252
2261
|
constructor(floorPlan: FloorPlanEngine, baseLayer?: BaseLayers, id?: string);
|
|
2253
2262
|
addGraphic(args: GraphicArgs): PlanGraphic;
|
|
2263
|
+
/* Excluded from this release type: findGraphic */
|
|
2254
2264
|
deleteGraphic(graphic: PlanGraphic): void;
|
|
2255
2265
|
/**
|
|
2256
2266
|
* clear all shapes from the layer
|
|
@@ -2667,7 +2677,7 @@ declare interface SpaceGraphEventMap {
|
|
|
2667
2677
|
'space-split': [LayoutSpace, [LayoutSpace, LayoutSpace]];
|
|
2668
2678
|
'space-attributes-change': [LayoutSpace];
|
|
2669
2679
|
'element-create': [LayoutElement];
|
|
2670
|
-
'element-delete': [LayoutElement];
|
|
2680
|
+
'element-delete': [LayoutElement, LayoutElement | null];
|
|
2671
2681
|
'element-parameters-change': [LayoutElementBase];
|
|
2672
2682
|
'element-transform-change': [LayoutTransformElementBase];
|
|
2673
2683
|
'element-edges-change': [LayoutEdgeElementBase];
|
|
@@ -2979,6 +2989,8 @@ declare class SpatialGraphEdge extends SpatialGraphNodeBase {
|
|
|
2979
2989
|
element: LayoutEdgeElement | null;
|
|
2980
2990
|
constructor(id: string, vertex1: SpatialGraphVertex, vertex2: SpatialGraphVertex);
|
|
2981
2991
|
getPoints(): [Vector2, Vector2];
|
|
2992
|
+
getLength(): number;
|
|
2993
|
+
get isExternal(): boolean;
|
|
2982
2994
|
setVertices(vertex1: SpatialGraphVertex, vertex2: SpatialGraphVertex): void;
|
|
2983
2995
|
setVerticesByIds(vertexId1: string, vertexId2: string): void;
|
|
2984
2996
|
canSplit(u: number, options?: EdgeCanSplitOptions): boolean;
|