@xeokit/xeokit-sdk 2.4.2-beta-33 → 2.4.2-beta-34
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/package.json
CHANGED
|
@@ -39,6 +39,28 @@ export declare class Storey {
|
|
|
39
39
|
*/
|
|
40
40
|
aabb: number[];
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Axis-aligned World-space boundary of the {@link Entity}s that represent the IfcBuildingStorey.
|
|
44
|
+
*
|
|
45
|
+
* The boundary is a six-element Float32Array containing the min/max extents of the
|
|
46
|
+
* axis-aligned boundary, ie. ````[xmin, ymin, zmin, xmax, ymax, zmax]````
|
|
47
|
+
*
|
|
48
|
+
* @property storeyAABB
|
|
49
|
+
* @type {Number[]}
|
|
50
|
+
*/
|
|
51
|
+
storeyAABB :number[];
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Axis-aligned World-space boundary of the {@link Entity}s that represent the model.
|
|
55
|
+
*
|
|
56
|
+
* The boundary is a six-element Float32Array containing the min/max extents of the
|
|
57
|
+
* axis-aligned boundary, ie. ````[xmin, ymin, zmin, xmax, ymax, zmax]````
|
|
58
|
+
*
|
|
59
|
+
* @property modelAABB
|
|
60
|
+
* @type {Number[]}
|
|
61
|
+
*/
|
|
62
|
+
modelAABB : number[];
|
|
63
|
+
|
|
42
64
|
/** Number of {@link Entity}s within the IfcBuildingStorey.
|
|
43
65
|
*
|
|
44
66
|
* @type {Number}
|
|
@@ -3,19 +3,9 @@ import { Plugin, Viewer } from "../../viewer";
|
|
|
3
3
|
import { Storey } from "./Storey";
|
|
4
4
|
import { StoreyMap } from "./StoreyMap";
|
|
5
5
|
|
|
6
|
-
export declare type IFCStoreyPlanObjectStates = {
|
|
7
|
-
[key: string] : {
|
|
8
|
-
visible: boolean;
|
|
9
|
-
edges?: boolean;
|
|
10
|
-
colorize?: number[]
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
6
|
export declare type StoreyViewsPluginConfiguration = {
|
|
15
7
|
/** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */
|
|
16
8
|
id?: string;
|
|
17
|
-
/** Map of visual states for the {@link Entity}s as rendered within each {@link Storey}. Default value is {@link IFCStoreyPlanObjectStates}. */
|
|
18
|
-
objectStates?: IFCStoreyPlanObjectStates;
|
|
19
9
|
};
|
|
20
10
|
|
|
21
11
|
/**
|
|
@@ -50,24 +40,6 @@ export declare class StoreyViewsPlugin extends Plugin {
|
|
|
50
40
|
*/
|
|
51
41
|
modelStoreys: {[key: string]: { [key: string]: Storey} };
|
|
52
42
|
|
|
53
|
-
/**
|
|
54
|
-
* Sets map of visual states for the {@link Entity}s as rendered within each {@link Storey}.
|
|
55
|
-
*
|
|
56
|
-
* Default value is {@link IFCStoreyPlanObjectStates}.
|
|
57
|
-
*
|
|
58
|
-
* @type {IFCStoreyPlanObjectStates}
|
|
59
|
-
*/
|
|
60
|
-
set objectStates(arg: IFCStoreyPlanObjectStates);
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Gets map of visual states for the {@link Entity}s as rendered within each {@link Storey}.
|
|
64
|
-
*
|
|
65
|
-
* Default value is {@link IFCStoreyPlanObjectStates}.
|
|
66
|
-
*
|
|
67
|
-
* @type {IFCStoreyPlanObjectStates}
|
|
68
|
-
*/
|
|
69
|
-
get objectStates(): IFCStoreyPlanObjectStates;
|
|
70
|
-
|
|
71
43
|
/**
|
|
72
44
|
* Arranges the {@link Camera} for a 3D orthographic view of the {@link Entity}s within the given storey.
|
|
73
45
|
*
|
|
@@ -88,20 +60,14 @@ export declare class StoreyViewsPlugin extends Plugin {
|
|
|
88
60
|
*
|
|
89
61
|
* Optionally hides all other Entitys.
|
|
90
62
|
*
|
|
91
|
-
* Optionally sets the visual appearance of each of the Entitys according to its IFC type. The appearance of
|
|
92
|
-
* IFC types in plan views is configured by {@link StoreyViewsPlugin.objectStates}.
|
|
93
|
-
*
|
|
94
63
|
* See also: {@link ObjectsMemento}, which saves and restores a memento of the visual state
|
|
95
64
|
* of the {@link Entity}'s that represent objects within a {@link Scene}.
|
|
96
65
|
*
|
|
97
66
|
* @param {String} storeyId ID of the ````IfcBuildingStorey```` object.
|
|
98
67
|
* @param {*} [options] Options for showing the Entitys within the storey.
|
|
99
|
-
* @param {Boolean} [options.hideOthers=false] When ````true````, hide all other {@link Entity}s.
|
|
100
|
-
* @param {Boolean} [options.useObjectStates=false] When ````true````, apply the custom visibilities and appearances configured for IFC types in {@link StoreyViewsPlugin.objectStates}.
|
|
101
68
|
*/
|
|
102
69
|
showStoreyObjects(storeyId: string, options?: {
|
|
103
70
|
hideOthers?: boolean;
|
|
104
|
-
useObjectStates?: boolean
|
|
105
71
|
}): void;
|
|
106
72
|
|
|
107
73
|
/**
|