@xeokit/xeokit-sdk 2.5.2-beta-4 → 2.5.2-beta-7
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/xeokit-sdk.cjs.js +300 -182
- package/dist/xeokit-sdk.es.js +387 -269
- package/dist/xeokit-sdk.es5.js +55 -36
- package/dist/xeokit-sdk.min.cjs.js +3 -3
- package/dist/xeokit-sdk.min.es.js +3 -3
- package/dist/xeokit-sdk.min.es5.js +2 -2
- package/package.json +1 -1
- package/src/plugins/NavCubePlugin/CubeTextureCanvas.js +2 -1
- package/src/plugins/NavCubePlugin/NavCubePlugin.js +2 -1
- package/src/plugins/TreeViewPlugin/RenderService.js +169 -0
- package/src/plugins/TreeViewPlugin/TreeViewNode.js +11 -7
- package/src/plugins/TreeViewPlugin/TreeViewPlugin.js +94 -151
- package/src/plugins/XKTLoaderPlugin/XKTLoaderPlugin.js +2 -2
- package/src/viewer/scene/model/SceneModel.js +30 -26
- package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +2 -0
- package/types/plugins/TreeViewPlugin/TreeViewNode.d.ts +12 -14
- package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +18 -22
- package/types/plugins/TreeViewPlugin/renderService.d.ts +128 -0
- package/types/viewer/Configs.d.ts +26 -0
- package/types/viewer/Viewer.d.ts +10 -4
- package/types/viewer/scene/models/SceneModel.d.ts +17 -7
- package/types/plugins/TreeViewPlugin/ModelTreeView.d.ts +0 -24
|
@@ -6,7 +6,6 @@ export declare class TreeViewNode {
|
|
|
6
6
|
* Globally unique node ID.
|
|
7
7
|
*
|
|
8
8
|
* @type {String}
|
|
9
|
-
* @abstract
|
|
10
9
|
*/
|
|
11
10
|
get nodeId(): string;
|
|
12
11
|
|
|
@@ -14,7 +13,6 @@ export declare class TreeViewNode {
|
|
|
14
13
|
* Title of the TreeViewNode.
|
|
15
14
|
*
|
|
16
15
|
* @type {String}
|
|
17
|
-
* @abstract
|
|
18
16
|
*/
|
|
19
17
|
get title(): string;
|
|
20
18
|
|
|
@@ -23,51 +21,51 @@ export declare class TreeViewNode {
|
|
|
23
21
|
*
|
|
24
22
|
* This is only defined if the TreeViewNode represents an object.
|
|
25
23
|
*
|
|
26
|
-
* @type {
|
|
27
|
-
|
|
24
|
+
* @type {String}
|
|
25
|
+
*/
|
|
26
|
+
get objectId(): string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Type of the corresponding {@link MetaObject}.
|
|
30
|
+
*
|
|
31
|
+
* @type {String}
|
|
28
32
|
*/
|
|
29
|
-
get
|
|
33
|
+
get type(): string;
|
|
30
34
|
|
|
31
35
|
/**
|
|
32
36
|
* The child TreeViewNodes.
|
|
33
37
|
*
|
|
34
38
|
* @type {Array}
|
|
35
|
-
* @abstract
|
|
36
39
|
*/
|
|
37
40
|
get children(): any[];
|
|
38
41
|
|
|
39
42
|
/** The parent TreeViewNode.
|
|
40
43
|
*
|
|
41
|
-
* @type {TreeViewNode}
|
|
42
|
-
* @abstract
|
|
44
|
+
* @type {TreeViewNode|null}
|
|
43
45
|
*/
|
|
44
|
-
get parent(): TreeViewNode;
|
|
46
|
+
get parent(): TreeViewNode | null;
|
|
45
47
|
|
|
46
48
|
/** The number of {@link Entity}s within the subtree of this TreeViewNode.
|
|
47
49
|
*
|
|
48
50
|
* @type {Number}
|
|
49
|
-
* @abstract
|
|
50
51
|
*/
|
|
51
52
|
get numEntities(): number;
|
|
52
53
|
|
|
53
54
|
/** The number of {@link Entity}s that are currently visible within the subtree of this TreeViewNode.
|
|
54
55
|
*
|
|
55
56
|
* @type {Number}
|
|
56
|
-
* @abstract
|
|
57
57
|
*/
|
|
58
58
|
get numVisibleEntities(): number;
|
|
59
59
|
|
|
60
60
|
/** Whether or not the TreeViewNode is currently checked.
|
|
61
61
|
*
|
|
62
62
|
* @type {Boolean}
|
|
63
|
-
* @abstract
|
|
64
63
|
*/
|
|
65
64
|
get checked(): boolean;
|
|
66
65
|
|
|
67
66
|
/** Whether or not the TreeViewNode is currently xrayed.
|
|
68
67
|
*
|
|
69
68
|
* @type {Boolean}
|
|
70
|
-
* @abstract
|
|
71
69
|
*/
|
|
72
|
-
|
|
70
|
+
get xrayed(): boolean;
|
|
73
71
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Plugin, Viewer } from "../../viewer";
|
|
2
|
-
import { ModelTreeView } from "./ModelTreeView";
|
|
3
2
|
import { TreeViewNode } from "./TreeViewNode";
|
|
3
|
+
import { ITreeViewRenderService } from "./renderService";
|
|
4
4
|
|
|
5
5
|
export declare type TreeViewPluginConfiguration = {
|
|
6
6
|
/** DOM element ID to contain the TreeViewPlugin */
|
|
@@ -17,6 +17,8 @@ export declare type TreeViewPluginConfiguration = {
|
|
|
17
17
|
sortNodes?: boolean;
|
|
18
18
|
/** When true, will not contain nodes that don't have content in the {@link Scene}. These are nodes whose {@link MetaObject}s don't have {@link Entity}s. */
|
|
19
19
|
pruneEmptyNodes?: boolean;
|
|
20
|
+
/** Optional {@link ITreeViewRenderService} to use. Defaults to the {@link TreeViewPlugin}'s default {@link RenderService}. */
|
|
21
|
+
renderService?: ITreeViewRenderService;
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
/**
|
|
@@ -47,15 +49,6 @@ export declare class TreeViewPlugin extends Plugin {
|
|
|
47
49
|
*/
|
|
48
50
|
get hierarchy(): "containment" | "storeys" | "types";
|
|
49
51
|
|
|
50
|
-
/**
|
|
51
|
-
* Returns the map of {@link ModelTreeView}s.
|
|
52
|
-
*
|
|
53
|
-
* Each ModelTreeView is mapped to the ID of its model.
|
|
54
|
-
*
|
|
55
|
-
* @return {*|{}}
|
|
56
|
-
*/
|
|
57
|
-
get modelTreeViews(): any;
|
|
58
|
-
|
|
59
52
|
/**
|
|
60
53
|
* Adds a model to this tree view.
|
|
61
54
|
*
|
|
@@ -69,13 +62,10 @@ export declare class TreeViewPlugin extends Plugin {
|
|
|
69
62
|
* @param {String} [options.rootName] Optional display name for the root node. Ordinary, for "containment"
|
|
70
63
|
* and "storeys" hierarchy types, the tree would derive the root node name from the model's "IfcProject" element
|
|
71
64
|
* name. This option allows to override that name when it is not suitable as a display name.
|
|
72
|
-
* @returns {ModelTreeView} ModelTreeView for the newly-added model. If this method succeeded in adding the model,
|
|
73
|
-
* then {@link ModelTreeView.valid} will equal ````true````. Otherwise, that property will be ````false````
|
|
74
|
-
* and {@link ModelTreeView.errors} will contain error messages.
|
|
75
65
|
*/
|
|
76
66
|
addModel(modelId: string, options?: {
|
|
77
|
-
|
|
78
|
-
}):
|
|
67
|
+
rootName?: string;
|
|
68
|
+
}): void;
|
|
79
69
|
|
|
80
70
|
/**
|
|
81
71
|
* Removes a model from this tree view.
|
|
@@ -86,11 +76,6 @@ export declare class TreeViewPlugin extends Plugin {
|
|
|
86
76
|
*/
|
|
87
77
|
removeModel(modelId: string): void;
|
|
88
78
|
|
|
89
|
-
/**
|
|
90
|
-
* Collapses all trees within this tree view.
|
|
91
|
-
*/
|
|
92
|
-
collapse(): void;
|
|
93
|
-
|
|
94
79
|
/**
|
|
95
80
|
* Highlights the tree view node that represents the given object {@link Entity}.
|
|
96
81
|
*
|
|
@@ -127,6 +112,12 @@ export declare class TreeViewPlugin extends Plugin {
|
|
|
127
112
|
*/
|
|
128
113
|
expandToDepth(depth: number): void;
|
|
129
114
|
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Closes all the nodes in the tree.
|
|
118
|
+
*/
|
|
119
|
+
collapse(): void;
|
|
120
|
+
|
|
130
121
|
/**
|
|
131
122
|
* Iterates over a subtree of the tree view's {@link TreeViewNode}s, calling the given callback for each
|
|
132
123
|
* node in depth-first pre-order.
|
|
@@ -136,17 +127,22 @@ export declare class TreeViewPlugin extends Plugin {
|
|
|
136
127
|
*/
|
|
137
128
|
withNodeTree(node: TreeViewNode, callback: (node: TreeViewNode) => void): void;
|
|
138
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Destroys this TreeViewPlugin.
|
|
132
|
+
*/
|
|
133
|
+
destroy(): void;
|
|
134
|
+
|
|
139
135
|
/**
|
|
140
136
|
* Fires on right click to show contextmenu.
|
|
141
137
|
* @param {String} event The contextmenu event
|
|
142
138
|
* @param {Function} callback Callback fired on the event
|
|
143
139
|
*/
|
|
144
|
-
on(event: "contextmenu", callback: (data: {event: MouseEvent, viewer: Viewer, treeViewPlugin: TreeViewPlugin, treeViewNode: TreeViewNode })=> void): void;
|
|
140
|
+
on(event: "contextmenu", callback: (data: { event: MouseEvent, viewer: Viewer, treeViewPlugin: TreeViewPlugin, treeViewNode: TreeViewNode }) => void): void;
|
|
145
141
|
|
|
146
142
|
/**
|
|
147
143
|
* Fires when an title is clicked.
|
|
148
144
|
* @param {String} event The nodeTitleClicked event
|
|
149
145
|
* @param {Function} callback Callback fired on the event
|
|
150
146
|
*/
|
|
151
|
-
|
|
147
|
+
on(event: "nodeTitleClicked", callback: (data: { event: MouseEvent, viewer: Viewer, treeViewPlugin: TreeViewPlugin, treeViewNode: TreeViewNode }) => void): void;
|
|
152
148
|
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { TreeViewNode } from "./TreeViewNode";
|
|
2
|
+
type genericHandler = (event: any) => void;
|
|
3
|
+
|
|
4
|
+
export declare interface ITreeViewRenderService {
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Creates the root node element.
|
|
8
|
+
*/
|
|
9
|
+
createRootNode(): HTMLElement;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Creates a tree node element.
|
|
13
|
+
*
|
|
14
|
+
* @param node {TreeViewNode} The node.
|
|
15
|
+
* @param expandHandler {genericHandler} The handler for expanding the node.
|
|
16
|
+
* @param checkHandler {genericHandler} The handler for checking the node.
|
|
17
|
+
* @param contextmenuHandler {genericHandler} The handler for the context menu.
|
|
18
|
+
* @param titleClickHandler {genericHandler} The handler for the title click.
|
|
19
|
+
*
|
|
20
|
+
* @returns {HTMLElement} The tree node element.
|
|
21
|
+
*/
|
|
22
|
+
createNodeElement(node: TreeViewNode, expandHandler: genericHandler, checkHandler: genericHandler, contextmenuHandler: genericHandler, titleClickHandler: genericHandler): HTMLElement;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Creates a tree node element for a disabled node.
|
|
26
|
+
*
|
|
27
|
+
* @param rootName {String} The root name.
|
|
28
|
+
*
|
|
29
|
+
* @returns {HTMLElement} The disabled node element.
|
|
30
|
+
*/
|
|
31
|
+
createDisabledNodeElement(rootName: string): HTMLElement;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Adds the child nodes to the parent node.
|
|
35
|
+
*
|
|
36
|
+
* @param element {HTMLElement} The node element.
|
|
37
|
+
* @param nodes {Array<HTMLElement>} The children elements.
|
|
38
|
+
*/
|
|
39
|
+
addChildren(element: HTMLElement, nodes: Array<HTMLElement>): void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Expands a node, changes the icon and changes the handlers.
|
|
43
|
+
*
|
|
44
|
+
* @param element {HTMLElement} The node element.
|
|
45
|
+
* @param expandHandler {genericHandler} The handler for expanding the node.
|
|
46
|
+
* @param collapseHandler {genericHandler} The handler for collapsing the node.
|
|
47
|
+
*/
|
|
48
|
+
expand(element: HTMLElement, expandHandler: genericHandler, collapseHandler: genericHandler): void;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Collapses a node, changes the icon and changes the handlers.
|
|
52
|
+
*
|
|
53
|
+
* @param element {HTMLElement} The node element.
|
|
54
|
+
* @param expandHandler {genericHandler} The handler for expanding the node.
|
|
55
|
+
* @param collapseHandler {genericHandler} The handler for collapsing the node.
|
|
56
|
+
*/
|
|
57
|
+
collapse(element: HTMLElement, expandHandler: genericHandler, collapseHandler: genericHandler): void;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Returns whether the node is expanded.
|
|
61
|
+
*
|
|
62
|
+
* @param element {HTMLElement} The node element.
|
|
63
|
+
*
|
|
64
|
+
* @returns {Boolean} Whether the node is expanded.
|
|
65
|
+
*/
|
|
66
|
+
isExpanded(element: HTMLElement): boolean;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Returns the node id from the treeview element.
|
|
70
|
+
*
|
|
71
|
+
* @param element {HTMLElement} The node element.
|
|
72
|
+
*
|
|
73
|
+
* @returns {String} The node id.
|
|
74
|
+
*/
|
|
75
|
+
getId(element: HTMLElement): string | undefined;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Returns the node id from the checkbox element.
|
|
79
|
+
*
|
|
80
|
+
* @param element {HTMLElement} The node element.
|
|
81
|
+
*
|
|
82
|
+
* @returns {String} The node id.
|
|
83
|
+
*/
|
|
84
|
+
getIdFromCheckbox(element: HTMLElement): string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Returns the expand/collapse element.
|
|
88
|
+
*
|
|
89
|
+
* @param nodeId {String} The node id.
|
|
90
|
+
*
|
|
91
|
+
* @returns {HTMLElement} The expand/collapse element.
|
|
92
|
+
*/
|
|
93
|
+
getSwitchElement(nodeId: string): HTMLElement | null;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Returns the node's checkbox state.
|
|
97
|
+
*
|
|
98
|
+
* @param element {HTMLElement} The node element.
|
|
99
|
+
*
|
|
100
|
+
* @returns {Boolean} Whether the node is checked.
|
|
101
|
+
*/
|
|
102
|
+
isChecked(element: HTMLElement): boolean;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Sets the node's checkbox state.
|
|
106
|
+
*
|
|
107
|
+
* @param nodeId {String} The node id.
|
|
108
|
+
* @param checked {Boolean} Whether the node is checked.
|
|
109
|
+
*/
|
|
110
|
+
setCheckbox(nodeId: string, checked: boolean): void;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Sets the node's xrayed state.
|
|
114
|
+
*
|
|
115
|
+
* @param nodeId {String} The node is.
|
|
116
|
+
* @param xrayed {Boolean} Whether the node is xrayed.
|
|
117
|
+
*/
|
|
118
|
+
setXRayed(nodeId: string, xrayed: boolean): void;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Sets the node's highlight state.
|
|
122
|
+
* When the node is highlighted, it will be expanded and scrolled into view.
|
|
123
|
+
*
|
|
124
|
+
* @param nodeId {String} The node id.
|
|
125
|
+
* @param highlighted {Boolean} Whether the node is highlighted.
|
|
126
|
+
*/
|
|
127
|
+
setHighlighted(nodeId: string, highlighted: boolean): void;
|
|
128
|
+
}
|
|
@@ -17,4 +17,30 @@ export declare abstract class Configs {
|
|
|
17
17
|
* @returns {Boolean}
|
|
18
18
|
*/
|
|
19
19
|
get doublePrecisionEnabled(): boolean;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Sets the maximum data texture height.
|
|
23
|
+
*
|
|
24
|
+
* Should be a multiple of 1024. Default is 4096, which is the maximum allowed value.
|
|
25
|
+
*/
|
|
26
|
+
set maxDataTextureHeight(value: number);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Gets maximum data texture height.
|
|
30
|
+
*/
|
|
31
|
+
get maxDataTextureHeight(): number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Sets the maximum batched geometry VBO size.
|
|
35
|
+
*
|
|
36
|
+
* Default value is 5000000, which is the maximum size.
|
|
37
|
+
*
|
|
38
|
+
* Minimum size is 100000.
|
|
39
|
+
*/
|
|
40
|
+
set maxGeometryBatchSize(value: number);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Gets the maximum batched geometry VBO size.
|
|
44
|
+
*/
|
|
45
|
+
get maxGeometryBatchSize(): number;
|
|
20
46
|
}
|
package/types/viewer/Viewer.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare type ViewerConfiguration = {
|
|
|
38
38
|
/**When ````transparent```` is false, set this ````true```` to derive the canvas background color from {@link AmbientLight.color}, or ````false```` to set the canvas background to ````backgroundColor````. */
|
|
39
39
|
backgroundColorFromAmbientLight?: boolean;
|
|
40
40
|
/** The measurement unit type. */
|
|
41
|
-
units?: "meters" | "centimeters" | "millimeters" | "yards" | "feet" | "inches"
|
|
41
|
+
units?: "meters" | "centimeters" | "millimeters" | "yards" | "feet" | "inches";
|
|
42
42
|
/** The number of Real-space units in each World-space coordinate system unit. */
|
|
43
43
|
scale?: number;
|
|
44
44
|
/** The Real-space 3D origin, in current measurement units, at which the World-space coordinate origin ````[0,0,0]```` sits. */
|
|
@@ -55,10 +55,16 @@ export declare type ViewerConfiguration = {
|
|
|
55
55
|
pickSurfacePrecisionEnabled?: boolean;
|
|
56
56
|
/** Whether to enable logarithmic depth buffer. */
|
|
57
57
|
logarithmicDepthBufferEnabled?: boolean;
|
|
58
|
+
/** Whether to enable base color texture rendering. */
|
|
59
|
+
colorTextureEnabled?: boolean;
|
|
58
60
|
/** Whether to enable physically-based rendering. */
|
|
59
61
|
pbrEnabled?: boolean;
|
|
60
62
|
/** Optional locale-based translation service. */
|
|
61
63
|
localeService?: LocaleService;
|
|
64
|
+
/** Whether to enable data texture-based (DTX) scene representation within the Viewer. */
|
|
65
|
+
dtxEnabled?: boolean;
|
|
66
|
+
/** Enhances the efficiency of SectionPlane creation by proactively allocating Viewer resources for a specified quantity of SectionPlanes.*/
|
|
67
|
+
numCachedSectionPlanes?: number;
|
|
62
68
|
};
|
|
63
69
|
|
|
64
70
|
/**
|
|
@@ -196,7 +202,7 @@ export declare class Viewer {
|
|
|
196
202
|
* @param {Boolean} [params.includeGizmos=false] When true, will include gizmos like {@link SectionPlane} in the snapshot.
|
|
197
203
|
* @returns {String} String-encoded image data URI.
|
|
198
204
|
*/
|
|
199
|
-
getSnapshot(params: { width?: number, height?: number, format?: "jpeg" | "png"| "bmp", includeGizmos?: boolean }): string;
|
|
205
|
+
getSnapshot(params: { width?: number, height?: number, format?: "jpeg" | "png" | "bmp", includeGizmos?: boolean }): string;
|
|
200
206
|
|
|
201
207
|
/**
|
|
202
208
|
* Gets a snapshot of this Viewer's {@link Scene} as a Base64-encoded image which includes
|
|
@@ -224,8 +230,8 @@ export declare class Viewer {
|
|
|
224
230
|
* @param {Boolean} [params.includeGizmos=false] When true, will include gizmos like {@link SectionPlane} in the snapshot.
|
|
225
231
|
* @returns {Promise} Promise which returns a string-encoded image data URI.
|
|
226
232
|
*/
|
|
227
|
-
getSnapshotWithPlugins(params: { width?: number, height?: number, format?: "jpeg" | "png"| "bmp", includeGizmos?: boolean }): Promise<String>;
|
|
228
|
-
|
|
233
|
+
getSnapshotWithPlugins(params: { width?: number, height?: number, format?: "jpeg" | "png" | "bmp", includeGizmos?: boolean }): Promise<String>;
|
|
234
|
+
|
|
229
235
|
/**
|
|
230
236
|
* Exits snapshot mode.
|
|
231
237
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {Component} from "../Component";
|
|
2
|
-
import {SceneModelEntity} from "./SceneModelEntity";
|
|
3
|
-
import {EdgeMaterial, EmphasisMaterial} from "../materials";
|
|
4
|
-
import {SceneModelMesh} from "./SceneModelMesh";
|
|
5
|
-
import {SceneModelTextureSet} from "./SceneModelTextureSet";
|
|
1
|
+
import { Component } from "../Component";
|
|
2
|
+
import { SceneModelEntity } from "./SceneModelEntity";
|
|
3
|
+
import { EdgeMaterial, EmphasisMaterial } from "../materials";
|
|
4
|
+
import { SceneModelMesh } from "./SceneModelMesh";
|
|
5
|
+
import { SceneModelTextureSet } from "./SceneModelTextureSet";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A high-performance model representation for efficient rendering and low memory usage.
|
|
@@ -168,6 +168,16 @@ export declare class SceneModel extends Component {
|
|
|
168
168
|
*/
|
|
169
169
|
get aabb(): number[];
|
|
170
170
|
|
|
171
|
+
|
|
172
|
+
get numEntities(): number;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The number of entities in this SceneModel.
|
|
176
|
+
*
|
|
177
|
+
* @type {number}
|
|
178
|
+
*/
|
|
179
|
+
get numEntities(): number;
|
|
180
|
+
|
|
171
181
|
/**
|
|
172
182
|
* The approximate number of triangle primitives in this SceneModel.
|
|
173
183
|
*
|
|
@@ -297,7 +307,7 @@ export declare class SceneModel extends Component {
|
|
|
297
307
|
*
|
|
298
308
|
* @type {Boolean}
|
|
299
309
|
*/
|
|
300
|
-
set clippable(clippable: boolean)
|
|
310
|
+
set clippable(clippable: boolean);
|
|
301
311
|
|
|
302
312
|
/**
|
|
303
313
|
* Gets if this SceneModel is collidable.
|
|
@@ -395,7 +405,7 @@ export declare class SceneModel extends Component {
|
|
|
395
405
|
*
|
|
396
406
|
* @type {Boolean}
|
|
397
407
|
*/
|
|
398
|
-
set receivesShadow(receivesShadow: boolean)
|
|
408
|
+
set receivesShadow(receivesShadow: boolean);
|
|
399
409
|
|
|
400
410
|
/**
|
|
401
411
|
* Gets if Scalable Ambient Obscurance (SAO) will apply to this SceneModel.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { MetaModel } from "../../viewer/metadata";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represents a model tree view within a {@link TreeViewPlugin}.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ModelTreeView {
|
|
7
|
-
/**
|
|
8
|
-
* Contains messages for any errors found in the MetaModel for this ModelTreeView.
|
|
9
|
-
* @type {String[]}
|
|
10
|
-
*/
|
|
11
|
-
errors: string[];
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* True if errors were found in the MetaModel for this ModelTreeView.
|
|
15
|
-
* @type {boolean}
|
|
16
|
-
*/
|
|
17
|
-
valid: boolean;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The MetaModel corresponding to this ModelTreeView.
|
|
21
|
-
* @type {MetaModel}
|
|
22
|
-
*/
|
|
23
|
-
metaModel: MetaModel;
|
|
24
|
-
}
|