@xeokit/xeokit-sdk 2.6.86 → 2.6.87-rc0-no-las
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/README.md +3 -3
- package/dist/xeokit-sdk.cjs.js +15512 -32635
- package/dist/xeokit-sdk.es.js +15513 -32634
- package/dist/xeokit-sdk.es5.js +31259 -29843
- package/dist/xeokit-sdk.es5.js.map +1 -0
- package/dist/xeokit-sdk.min.cjs.js +8 -8
- package/dist/xeokit-sdk.min.es.js +8 -8
- package/dist/xeokit-sdk.min.es5.js +34 -33
- package/dist/xeokit-sdk.min.es5.js.map +1 -0
- package/package.json +7 -3
- package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +81 -81
- package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -1
- package/src/plugins/LASLoaderPlugin/index.js +1 -1
- package/src/plugins/NavCubePlugin/NavCubePlugin.js +63 -22
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV1.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV10.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV12.js +9 -9
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV2.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV3.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV4.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV5.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV6.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV7.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV8.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV9.js +5 -5
- package/src/plugins/index.js +2 -2
- package/src/viewer/scene/CameraControl/lib/handlers/TouchPickHandler.js +7 -6
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +26 -108
- package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +3 -14
- package/types/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.d.ts +5 -23
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +5 -25
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +20 -100
- package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +3 -14
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +18 -83
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +21 -106
- package/types/viewer/Configs.d.ts +6 -24
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +66 -445
- package/types/viewer/scene/Component.d.ts +1 -1
- package/types/viewer/scene/Entity.d.ts +40 -186
- package/types/viewer/scene/camera/Camera.d.ts +50 -170
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +8 -57
- package/types/viewer/scene/camera/CameraPath.d.ts +8 -13
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +4 -22
- package/types/viewer/scene/camera/CustomProjection.d.ts +6 -21
- package/types/viewer/scene/camera/Frustum.d.ts +18 -90
- package/types/viewer/scene/camera/Ortho.d.ts +14 -54
- package/types/viewer/scene/camera/Perspective.d.ts +16 -70
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +21 -25
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +7 -7
- package/types/viewer/scene/lights/AmbientLight.d.ts +4 -26
- package/types/viewer/scene/lights/DirLight.d.ts +8 -52
- package/types/viewer/scene/lights/PointLight.d.ts +14 -93
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +12 -37
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +22 -119
- package/types/viewer/scene/materials/Fresnel.d.ts +10 -50
- package/types/viewer/scene/materials/LambertMaterial.d.ts +16 -90
- package/types/viewer/scene/materials/LinesMaterial.d.ts +7 -25
- package/types/viewer/scene/materials/MetallicMaterial.d.ts +40 -127
- package/types/viewer/scene/materials/PhongMaterial.d.ts +52 -185
- package/types/viewer/scene/materials/PointsMaterial.d.ts +20 -101
- package/types/viewer/scene/materials/SpecularMaterial.d.ts +41 -117
- package/types/viewer/scene/materials/Texture.d.ts +22 -62
- package/types/viewer/scene/models/SceneModel.d.ts +76 -233
- package/types/viewer/scene/models/SceneModelEntity.d.ts +50 -211
- package/types/viewer/scene/models/SceneModelMesh.d.ts +4 -4
- package/types/viewer/scene/models/SceneModelTransform.d.ts +14 -59
- package/types/viewer/scene/paths/CubicBezierCurve.d.ts +12 -73
- package/types/viewer/scene/paths/Curve.d.ts +6 -19
- package/types/viewer/scene/paths/Path.d.ts +10 -57
- package/types/viewer/scene/paths/QuadraticBezierCurve.d.ts +10 -57
- package/types/viewer/scene/paths/SplineCurve.d.ts +6 -32
- package/types/viewer/scene/scene/Scene.d.ts +94 -196
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +12 -69
- package/types/viewer/scene/viewport/Viewport.d.ts +4 -14
- package/types/viewer/scene/webgl/PickResult.d.ts +13 -28
|
@@ -14,9 +14,7 @@ import { ModelStats } from "../index";
|
|
|
14
14
|
*/
|
|
15
15
|
getIFC(src: string | number, ok: (buffer: ArrayBuffer)=> void, error: (e: Error)=> void): void;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
set cacheBuster(value: boolean);
|
|
17
|
+
cacheBuster: boolean;
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
export declare type WebIFCLoaderPluginConfiguration = {
|
|
@@ -84,43 +82,25 @@ export declare class WebIFCLoaderPlugin extends Plugin {
|
|
|
84
82
|
constructor(viewer: Viewer, cfg?: WebIFCLoaderPluginConfiguration);
|
|
85
83
|
|
|
86
84
|
/**
|
|
87
|
-
*
|
|
85
|
+
* Custom data source through which the WebIFCLoaderPlugin can load IFC files.
|
|
88
86
|
*
|
|
89
87
|
* Default value is {@link WebIFCDefaultDataSource}, which loads via HTTP.
|
|
90
88
|
*
|
|
91
89
|
* @type {Object}
|
|
92
90
|
*/
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Gets the custom data source through which the WebIFCLoaderPlugin can load IFC files.
|
|
97
|
-
*
|
|
98
|
-
* Default value is {@link WebIFCDefaultDataSource}, which loads via HTTP.
|
|
99
|
-
*
|
|
100
|
-
* @type {Object}
|
|
101
|
-
*/
|
|
102
|
-
get dataSource(): IWebIFCDefaultDataSource;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Sets map of initial default states for each loaded {@link Entity} that represents an object.
|
|
106
|
-
*
|
|
107
|
-
* Default value is {@link IFCObjectDefaults}.
|
|
108
|
-
*
|
|
109
|
-
* @type {IFCObjectDefaults}
|
|
110
|
-
*/
|
|
111
|
-
set objectDefaults(arg: IFCObjectDefaults);
|
|
91
|
+
dataSource: IWebIFCDefaultDataSource;
|
|
112
92
|
|
|
113
93
|
/**
|
|
114
|
-
*
|
|
94
|
+
* Map of initial default states for each loaded {@link Entity} that represents an object.
|
|
115
95
|
*
|
|
116
96
|
* Default value is {@link IFCObjectDefaults}.
|
|
117
97
|
*
|
|
118
98
|
* @type {IFCObjectDefaults}
|
|
119
99
|
*/
|
|
120
|
-
|
|
100
|
+
objectDefaults: IFCObjectDefaults;
|
|
121
101
|
|
|
122
102
|
/**
|
|
123
|
-
*
|
|
103
|
+
* Whitelist of the IFC types loaded by this WebIFCLoaderPlugin.
|
|
124
104
|
*
|
|
125
105
|
* When loading IFC models, causes this WebIFCLoaderPlugin to only load objects whose types are in this
|
|
126
106
|
* list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
|
|
@@ -129,34 +109,10 @@ export declare class WebIFCLoaderPlugin extends Plugin {
|
|
|
129
109
|
*
|
|
130
110
|
* @type {String[]}
|
|
131
111
|
*/
|
|
132
|
-
|
|
112
|
+
includeTypes: string[];
|
|
133
113
|
|
|
134
114
|
/**
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* When loading IFC models, causes this WebIFCLoaderPlugin to only load objects whose types are in this
|
|
138
|
-
* list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
|
|
139
|
-
*
|
|
140
|
-
* Default value is ````undefined````.
|
|
141
|
-
*
|
|
142
|
-
* @type {String[]}
|
|
143
|
-
*/
|
|
144
|
-
get includeTypes(): string[];
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Sets the blacklist of IFC types that are never loaded by this WebIFCLoaderPlugin.
|
|
148
|
-
*
|
|
149
|
-
* When IFC models, causes this WebIFCLoaderPlugin to **not** load objects whose types are in this
|
|
150
|
-
* list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
|
|
151
|
-
*
|
|
152
|
-
* Default value is ````undefined````.
|
|
153
|
-
*
|
|
154
|
-
* @type {String[]}
|
|
155
|
-
*/
|
|
156
|
-
set excludeTypes(arg: string[]);
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Gets the blacklist of IFC types that are never loaded by this WebIFCLoaderPlugin.
|
|
115
|
+
* Blacklist of IFC types that are never loaded by this WebIFCLoaderPlugin.
|
|
160
116
|
*
|
|
161
117
|
* When loading IFC models, causes this WebIFCLoaderPlugin to **not** load objects whose types are in this
|
|
162
118
|
* list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
|
|
@@ -165,10 +121,10 @@ export declare class WebIFCLoaderPlugin extends Plugin {
|
|
|
165
121
|
*
|
|
166
122
|
* @type {String[]}
|
|
167
123
|
*/
|
|
168
|
-
|
|
124
|
+
excludeTypes: string[];
|
|
169
125
|
|
|
170
126
|
/**
|
|
171
|
-
*
|
|
127
|
+
* Whether to load objects that don't have IFC types.
|
|
172
128
|
*
|
|
173
129
|
* When loading IFC models and this is ````true````, WebIFCLoaderPlugin will not load objects
|
|
174
130
|
* that don't have IFC types.
|
|
@@ -177,33 +133,21 @@ export declare class WebIFCLoaderPlugin extends Plugin {
|
|
|
177
133
|
*
|
|
178
134
|
* @type {Boolean}
|
|
179
135
|
*/
|
|
180
|
-
|
|
136
|
+
excludeUnclassifiedObjects: boolean;
|
|
181
137
|
|
|
182
138
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
* When loading IFC models and this is ````true````, WebIFCLoaderPlugin will not load objects
|
|
186
|
-
* that don't have IFC types.
|
|
187
|
-
*
|
|
188
|
-
* Default value is ````false````.
|
|
189
|
-
*
|
|
190
|
-
* @type {Boolean}
|
|
191
|
-
*/
|
|
192
|
-
get excludeUnclassifiedObjects(): boolean;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Gets the ````IFC```` format versions supported by this WebIFCLoaderPlugin.
|
|
196
|
-
* @returns {string[]}
|
|
139
|
+
* The ````IFC```` format versions supported by this WebIFCLoaderPlugin.
|
|
140
|
+
* @type {string[]}
|
|
197
141
|
*/
|
|
198
|
-
|
|
142
|
+
readonly supportedVersions: string[];
|
|
199
143
|
|
|
200
144
|
/**
|
|
201
|
-
*
|
|
145
|
+
* Whether WebIFCLoaderPlugin globalizes each {@link Entity.id} and {@link MetaObject.id} as it loads a model.
|
|
202
146
|
*
|
|
203
|
-
* Set
|
|
147
|
+
* Set this ````true```` when you need to load multiple instances of the same model, to avoid ID clashes
|
|
204
148
|
* between the objects in the different instances.
|
|
205
149
|
*
|
|
206
|
-
* When
|
|
150
|
+
* When loading a model with this set ````true````, then each {@link Entity.id} and {@link MetaObject.id} will be
|
|
207
151
|
* prefixed by the ID of the model, ie. ````<modelId>.<objectId>````.
|
|
208
152
|
*
|
|
209
153
|
* {@link Entity.originalSystemId} and {@link MetaObject.originalSystemId} will always hold the original, un-prefixed, ID values.
|
|
@@ -214,16 +158,7 @@ export declare class WebIFCLoaderPlugin extends Plugin {
|
|
|
214
158
|
*
|
|
215
159
|
* @type {Boolean}
|
|
216
160
|
*/
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Gets whether WebIFCLoaderPlugin globalizes each {@link Entity.id} and {@link MetaObject.id} as it loads a model.
|
|
221
|
-
*
|
|
222
|
-
* Default value is ````false````.
|
|
223
|
-
*
|
|
224
|
-
* @type {Boolean}
|
|
225
|
-
*/
|
|
226
|
-
get globalizeObjectIds(): boolean;
|
|
161
|
+
globalizeObjectIds: boolean;
|
|
227
162
|
|
|
228
163
|
/**
|
|
229
164
|
* Loads an ````IFC```` model into this WebIFCLoaderPlugin's {@link Viewer}.
|
|
@@ -103,9 +103,7 @@ export declare interface IXKTDefaultDataSource {
|
|
|
103
103
|
*/
|
|
104
104
|
getXKT(src: string | number, ok: (buffer: ArrayBuffer) => void, error: (e: Error) => void): void;
|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
set cacheBuster(value: boolean);
|
|
106
|
+
cacheBuster: boolean;
|
|
109
107
|
}
|
|
110
108
|
|
|
111
109
|
/**
|
|
@@ -122,51 +120,23 @@ export declare class XKTLoaderPlugin extends Plugin {
|
|
|
122
120
|
constructor(viewer: Viewer, cfg?: XKTLoaderPluginConfiguration);
|
|
123
121
|
|
|
124
122
|
/**
|
|
125
|
-
*
|
|
123
|
+
* Custom data source through which the XKTLoaderPlugin can load models and metadata.
|
|
126
124
|
*
|
|
127
125
|
* Default value is {@link XKTDefaultDataSource}, which loads via HTTP.
|
|
128
126
|
*
|
|
129
127
|
* @type {IXKTDefaultDataSource}
|
|
130
128
|
*/
|
|
131
|
-
|
|
129
|
+
dataSource: IXKTDefaultDataSource;
|
|
132
130
|
|
|
133
131
|
/**
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* Default value is {@link XKTDefaultDataSource}, which loads via HTTP.
|
|
137
|
-
*
|
|
138
|
-
* @type {IXKTDefaultDataSource}
|
|
139
|
-
*/
|
|
140
|
-
get dataSource(): IXKTDefaultDataSource;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Sets map of initial default states for each loaded {@link Entity} that represents an object.
|
|
132
|
+
* Map of initial default states for each loaded {@link Entity} that represents an object.
|
|
144
133
|
*
|
|
145
134
|
* @type {IFCObjectDefaults}
|
|
146
135
|
*/
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Gets map of initial default states for each loaded {@link Entity} that represents an object.
|
|
151
|
-
*
|
|
152
|
-
* @type {IFCObjectDefaults}
|
|
153
|
-
*/
|
|
154
|
-
get objectDefaults(): IFCObjectDefaults;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Sets the whitelist of the IFC types loaded by this XKTLoaderPlugin.
|
|
158
|
-
*
|
|
159
|
-
* When loading models with metadata, causes this XKTLoaderPlugin to only load objects whose types are in this
|
|
160
|
-
* list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
|
|
161
|
-
*
|
|
162
|
-
* Default value is ````undefined````.
|
|
163
|
-
*
|
|
164
|
-
* @type {String[]}
|
|
165
|
-
*/
|
|
166
|
-
set includeTypes(arg: string[]);
|
|
136
|
+
objectDefaults: IFCObjectDefaults;
|
|
167
137
|
|
|
168
138
|
/**
|
|
169
|
-
*
|
|
139
|
+
* The whitelist of the IFC types loaded by this XKTLoaderPlugin.
|
|
170
140
|
*
|
|
171
141
|
* When loading models with metadata, causes this XKTLoaderPlugin to only load objects whose types are in this
|
|
172
142
|
* list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
|
|
@@ -175,23 +145,10 @@ export declare class XKTLoaderPlugin extends Plugin {
|
|
|
175
145
|
*
|
|
176
146
|
* @type {String[]}
|
|
177
147
|
*/
|
|
178
|
-
|
|
179
|
-
get includeTypes(): string[];
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Sets the blacklist of IFC types that are never loaded by this XKTLoaderPlugin.
|
|
183
|
-
*
|
|
184
|
-
* When loading models with metadata, causes this XKTLoaderPlugin to **not** load objects whose types are in this
|
|
185
|
-
* list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
|
|
186
|
-
*
|
|
187
|
-
* Default value is ````undefined````.
|
|
188
|
-
*
|
|
189
|
-
* @type {String[]}
|
|
190
|
-
*/
|
|
191
|
-
set excludeTypes(arg: string[]);
|
|
148
|
+
includeTypes: string[];
|
|
192
149
|
|
|
193
150
|
/**
|
|
194
|
-
*
|
|
151
|
+
* The blacklist of IFC types that are never loaded by this XKTLoaderPlugin.
|
|
195
152
|
*
|
|
196
153
|
* When loading models with metadata, causes this XKTLoaderPlugin to **not** load objects whose types are in this
|
|
197
154
|
* list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
|
|
@@ -200,10 +157,10 @@ export declare class XKTLoaderPlugin extends Plugin {
|
|
|
200
157
|
*
|
|
201
158
|
* @type {String[]}
|
|
202
159
|
*/
|
|
203
|
-
|
|
160
|
+
excludeTypes: string[];
|
|
204
161
|
|
|
205
162
|
/**
|
|
206
|
-
*
|
|
163
|
+
* The whitelist of the specified elements loaded by this XKTLoaderPlugin.
|
|
207
164
|
*
|
|
208
165
|
* When loading models with metadata, causes this XKTLoaderPlugin to only load objects whose ids are in this
|
|
209
166
|
* list. An object's id is indicated by its {@link MetaObject}'s {@link MetaObject#id}.
|
|
@@ -212,34 +169,10 @@ export declare class XKTLoaderPlugin extends Plugin {
|
|
|
212
169
|
*
|
|
213
170
|
* @type {String[]}
|
|
214
171
|
*/
|
|
215
|
-
|
|
172
|
+
includeIds: string[];
|
|
216
173
|
|
|
217
174
|
/**
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
* When loading models with metadata, causes this XKTLoaderPlugin to only load objects whose ids are in this
|
|
221
|
-
* list. An object's id is indicated by its {@link MetaObject}'s {@link MetaObject#id}.
|
|
222
|
-
*
|
|
223
|
-
* Default value is ````undefined````.
|
|
224
|
-
*
|
|
225
|
-
* @type {String[]}
|
|
226
|
-
*/
|
|
227
|
-
get includeIds(): string[];
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Sets whether we load objects that don't have IFC types.
|
|
231
|
-
*
|
|
232
|
-
* When loading models with metadata and this is ````true````, XKTLoaderPlugin will not load objects
|
|
233
|
-
* that don't have IFC types.
|
|
234
|
-
*
|
|
235
|
-
* Default value is ````false````.
|
|
236
|
-
*
|
|
237
|
-
* @type {Boolean}
|
|
238
|
-
*/
|
|
239
|
-
set excludeUnclassifiedObjects(arg: boolean);
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Gets whether we load objects that don't have IFC types.
|
|
175
|
+
* Whether to exclude objects that don't have IFC types.
|
|
243
176
|
*
|
|
244
177
|
* When loading models with metadata and this is ````true````, XKTLoaderPlugin will not load objects
|
|
245
178
|
* that don't have IFC types.
|
|
@@ -248,10 +181,10 @@ export declare class XKTLoaderPlugin extends Plugin {
|
|
|
248
181
|
*
|
|
249
182
|
* @type {Boolean}
|
|
250
183
|
*/
|
|
251
|
-
|
|
184
|
+
excludeUnclassifiedObjects: boolean;
|
|
252
185
|
|
|
253
186
|
/**
|
|
254
|
-
*
|
|
187
|
+
* Whether XKTLoaderPlugin enables geometry reuse when loading models.
|
|
255
188
|
*
|
|
256
189
|
* Default value is ````true````.
|
|
257
190
|
*
|
|
@@ -265,27 +198,18 @@ export declare class XKTLoaderPlugin extends Plugin {
|
|
|
265
198
|
*
|
|
266
199
|
* @type {Boolean}
|
|
267
200
|
*/
|
|
268
|
-
|
|
201
|
+
reuseGeometries: boolean;
|
|
269
202
|
|
|
270
203
|
/**
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
* Default value is ````true````.
|
|
274
|
-
*
|
|
275
|
-
* @type {Boolean}
|
|
204
|
+
* The ````.xkt```` format versions supported by this XKTLoaderPlugin.
|
|
205
|
+
* @type {string[]}
|
|
276
206
|
*/
|
|
277
|
-
|
|
207
|
+
readonly supportedVersions: string[];
|
|
278
208
|
|
|
279
209
|
/**
|
|
280
|
-
*
|
|
281
|
-
* @returns {string[]}
|
|
282
|
-
*/
|
|
283
|
-
get supportedVersions(): string[];
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Sets whether XKTLoaderPlugin globalizes each {@link Entity.id} and {@link MetaObject.id} as it loads a model.
|
|
210
|
+
* Whether XKTLoaderPlugin globalizes each {@link Entity.id} and {@link MetaObject.id} as it loads a model.
|
|
287
211
|
*
|
|
288
|
-
* Set
|
|
212
|
+
* Set this ````true```` when you need to load multiple instances of the same model, to avoid ID clashes
|
|
289
213
|
* between the objects in the different instances.
|
|
290
214
|
*
|
|
291
215
|
* When we load a model with this set ````true````, then each {@link Entity.id} and {@link MetaObject.id} will be
|
|
@@ -299,16 +223,7 @@ export declare class XKTLoaderPlugin extends Plugin {
|
|
|
299
223
|
*
|
|
300
224
|
* @type {Boolean}
|
|
301
225
|
*/
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Gets whether XKTLoaderPlugin globalizes each {@link Entity.id} and {@link MetaObject.id} as it loads a model.
|
|
306
|
-
*
|
|
307
|
-
* Default value is ````false````.
|
|
308
|
-
*
|
|
309
|
-
* @type {Boolean}
|
|
310
|
-
*/
|
|
311
|
-
get globalizeObjectIds(): boolean;
|
|
226
|
+
globalizeObjectIds: boolean;
|
|
312
227
|
|
|
313
228
|
|
|
314
229
|
/**
|
|
@@ -3,44 +3,26 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare abstract class Configs {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Whether double precision mode is enabled for Viewers.
|
|
7
7
|
*
|
|
8
8
|
* When double precision mode is enabled (default), Viewers will accurately render models that contain
|
|
9
9
|
* double-precision coordinates, without jittering.
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
set doublePrecisionEnabled(doublePrecision: boolean);
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Gets whether double precision mode is enabled for all Viewers.
|
|
16
|
-
*
|
|
17
|
-
* @returns {Boolean}
|
|
18
10
|
*/
|
|
19
|
-
|
|
11
|
+
static doublePrecisionEnabled: boolean;
|
|
20
12
|
|
|
21
13
|
/**
|
|
22
|
-
*
|
|
14
|
+
* The maximum data texture height.
|
|
23
15
|
*
|
|
24
16
|
* Should be a multiple of 1024. Default is 4096, which is the maximum allowed value.
|
|
25
17
|
*/
|
|
26
|
-
|
|
18
|
+
static maxDataTextureHeight: number;
|
|
27
19
|
|
|
28
20
|
/**
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
get maxDataTextureHeight(): number;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Sets the maximum batched geometry VBO size.
|
|
21
|
+
* The maximum batched geometry VBO size.
|
|
35
22
|
*
|
|
36
23
|
* Default value is 5000000, which is the maximum size.
|
|
37
24
|
*
|
|
38
25
|
* Minimum size is 100000.
|
|
39
26
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Gets the maximum batched geometry VBO size.
|
|
44
|
-
*/
|
|
45
|
-
get maxGeometryBatchSize(): number;
|
|
27
|
+
static maxGeometryBatchSize: number;
|
|
46
28
|
}
|