@archilogic/floor-plan-sdk 5.1.16 → 5.1.17
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 +17 -1
- package/dist/fpe.js +1 -1
- package/dist/fpe.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/fpe.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Container } from '@pixi/display';
|
|
1
2
|
import { default as default_2 } from 'rbush';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -356,6 +357,7 @@ declare class FloorPlanCore {
|
|
|
356
357
|
loader: FpeLoader;
|
|
357
358
|
layout: SpaceGraphLayout;
|
|
358
359
|
spaceGraph: SpaceGraph;
|
|
360
|
+
building: SpaceGraphBuilding;
|
|
359
361
|
isBrowser: boolean;
|
|
360
362
|
utils: any;
|
|
361
363
|
location: {
|
|
@@ -615,6 +617,7 @@ export declare interface FpeConfig extends StartupOptions {
|
|
|
615
617
|
showFloorPlan?: boolean;
|
|
616
618
|
showSpaceDividers?: boolean;
|
|
617
619
|
showCeilingLamps?: boolean;
|
|
620
|
+
loadFloorLevel?: string | null;
|
|
618
621
|
svgViewBoxDim?: number;
|
|
619
622
|
svgMode?: boolean;
|
|
620
623
|
destroyOnDomRemove?: boolean;
|
|
@@ -2660,8 +2663,14 @@ declare class SpaceGraphBuilding extends SpaceGraphSpatialStructureBase {
|
|
|
2660
2663
|
type: SpaceGraphBuildingType;
|
|
2661
2664
|
location: SpaceGraphLocation;
|
|
2662
2665
|
floors: SpaceGraphFloor[];
|
|
2666
|
+
/** multiple floors can be on the same level */
|
|
2667
|
+
floorsByLevel: Record<string, SpaceGraphFloor[]>;
|
|
2663
2668
|
constructor(id: string);
|
|
2664
2669
|
copyForClone(building: SpaceGraphBuilding): void;
|
|
2670
|
+
/**
|
|
2671
|
+
* returns levels sorted by the vertical position of the first floor with that level
|
|
2672
|
+
*/
|
|
2673
|
+
getLevelOrder(): string[];
|
|
2665
2674
|
insertFloor(floor: SpaceGraphFloor): void;
|
|
2666
2675
|
removeFloor(floor: SpaceGraphFloor): void;
|
|
2667
2676
|
createFloor(id: string): SpaceGraphFloor;
|
|
@@ -2759,6 +2768,7 @@ declare const SpaceGraphEmbeddedMaterialTypeValue = "material:embedded";
|
|
|
2759
2768
|
declare interface SpaceGraphEventMap {
|
|
2760
2769
|
'spatial-structure-create': [SpaceGraphSpatialStructure];
|
|
2761
2770
|
'spatial-structure-delete': [SpaceGraphSpatialStructure];
|
|
2771
|
+
'floor-transform-change': [SpaceGraphFloor];
|
|
2762
2772
|
'product-create': [SpaceGraphProduct];
|
|
2763
2773
|
'product-delete': [SpaceGraphProduct];
|
|
2764
2774
|
'material-create': [SpaceGraphMaterial];
|
|
@@ -2805,9 +2815,13 @@ declare class SpaceGraphFloor extends SpaceGraphSpatialStructureBase {
|
|
|
2805
2815
|
parent: SpaceGraphBuilding | null;
|
|
2806
2816
|
position: Vector3;
|
|
2807
2817
|
rotation: number;
|
|
2818
|
+
level: string | null;
|
|
2808
2819
|
layouts: SpaceGraphLayout[];
|
|
2809
2820
|
constructor(id: string);
|
|
2810
2821
|
copyForClone(floor: SpaceGraphFloor): void;
|
|
2822
|
+
setPosition(position: Vector3): void;
|
|
2823
|
+
setRotation(rotation: number): void;
|
|
2824
|
+
setTransform(position: Vector3, rotation: number): void;
|
|
2811
2825
|
insertLayout(layout: SpaceGraphLayout): void;
|
|
2812
2826
|
removeLayout(layout: SpaceGraphLayout): void;
|
|
2813
2827
|
createLayout(id: string): SpaceGraphLayout;
|
|
@@ -2822,6 +2836,7 @@ declare interface SpaceGraphFloorJson extends SpaceGraphSpatialStructureBaseJson
|
|
|
2822
2836
|
type: SpaceGraphFloorType;
|
|
2823
2837
|
position: Vector3;
|
|
2824
2838
|
rotation: number;
|
|
2839
|
+
level?: string;
|
|
2825
2840
|
layouts: SpaceGraphLayoutJson[];
|
|
2826
2841
|
}
|
|
2827
2842
|
|
|
@@ -3009,7 +3024,6 @@ declare type SpaceGraphProductAttributesJson = {
|
|
|
3009
3024
|
};
|
|
3010
3025
|
|
|
3011
3026
|
declare class SpaceGraphProductBase extends SpaceGraphNodeWithCustomAttributesBase {
|
|
3012
|
-
#private;
|
|
3013
3027
|
type: SpaceGraphProductType;
|
|
3014
3028
|
attributes: SpaceGraphProductAttributes;
|
|
3015
3029
|
instances: Set<LayoutAsset>;
|
|
@@ -3528,6 +3542,8 @@ declare class WebGlView extends TinyEmitter {
|
|
|
3528
3542
|
viewportInFocus: boolean;
|
|
3529
3543
|
wallNodesToUpdate: any[];
|
|
3530
3544
|
wallNodeUpdateInProgress: boolean;
|
|
3545
|
+
floorContainers: Map<string, Container>;
|
|
3546
|
+
roomStampLayers: Map<string, PlanLayer>;
|
|
3531
3547
|
parentEl: HTMLElement;
|
|
3532
3548
|
_settings: FpeConfig;
|
|
3533
3549
|
/* Excluded from this release type: gfxLayers */
|