@thatopen/components 2.0.3 → 2.0.4
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/core/Grids/index.d.ts +3 -1
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +496 -494
- package/dist/namespace.d.ts +915 -913
- package/package.json +1 -1
package/dist/namespace.d.ts
CHANGED
|
@@ -1,4 +1,55 @@
|
|
|
1
1
|
declare namespace OBC {
|
|
2
|
+
import { Component, Disposable, Updateable, World, Event, BaseScene, BaseCamera, BaseRenderer } from "../Types";
|
|
3
|
+
import { Components } from "../Components";
|
|
4
|
+
import { SimpleWorld } from "./src";
|
|
5
|
+
export declare class Worlds extends Component implements Updateable, Disposable {
|
|
6
|
+
/**
|
|
7
|
+
* A unique identifier for the component.
|
|
8
|
+
* This UUID is used to register the component within the Components system.
|
|
9
|
+
*/
|
|
10
|
+
static readonly uuid: "fdb61dc4-2ec1-4966-b83d-54ea795fad4a";
|
|
11
|
+
/**
|
|
12
|
+
* Event triggered after the update process of all worlds.
|
|
13
|
+
* Subscribers can listen to this event to perform actions post-update.
|
|
14
|
+
*/
|
|
15
|
+
readonly onAfterUpdate: Event<unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Event triggered before the update process of all worlds.
|
|
18
|
+
* Subscribers can listen to this event to perform actions pre-update.
|
|
19
|
+
*/
|
|
20
|
+
readonly onBeforeUpdate: Event<unknown>;
|
|
21
|
+
/**
|
|
22
|
+
* Event triggered when the Worlds component is disposed.
|
|
23
|
+
* Subscribers can listen to this event to perform cleanup actions.
|
|
24
|
+
*/
|
|
25
|
+
readonly onDisposed: Event<unknown>;
|
|
26
|
+
readonly onWorldCreated: Event<World>;
|
|
27
|
+
readonly onWorldDeleted: Event<string>;
|
|
28
|
+
/**
|
|
29
|
+
* A collection of worlds managed by this component.
|
|
30
|
+
* The key is the unique identifier (UUID) of the world, and the value is the World instance.
|
|
31
|
+
*/
|
|
32
|
+
list: Map<string, World>;
|
|
33
|
+
/**
|
|
34
|
+
* A flag indicating whether the Worlds component is enabled.
|
|
35
|
+
* If false, the update process will be skipped.
|
|
36
|
+
*/
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
constructor(components: Components);
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new instance of a SimpleWorld and adds it to the list of worlds.
|
|
41
|
+
*
|
|
42
|
+
* @template T - The type of the scene, extending from BaseScene. Defaults to BaseScene.
|
|
43
|
+
* @template U - The type of the camera, extending from BaseCamera. Defaults to BaseCamera.
|
|
44
|
+
* @template S - The type of the renderer, extending from BaseRenderer. Defaults to BaseRenderer.
|
|
45
|
+
*
|
|
46
|
+
* @throws {Error} - Throws an error if a world with the same UUID already exists in the list.
|
|
47
|
+
*/
|
|
48
|
+
create<T extends BaseScene = BaseScene, U extends BaseCamera = BaseCamera, S extends BaseRenderer = BaseRenderer>(): SimpleWorld<T, U, S>;
|
|
49
|
+
delete(world: World): void;
|
|
50
|
+
dispose(): void;
|
|
51
|
+
update(delta?: number): void | Promise<void>;
|
|
52
|
+
}
|
|
2
53
|
import { Component, Disposable, World, Event } from "../Types";
|
|
3
54
|
import { SimpleRaycaster } from "./src";
|
|
4
55
|
import { Components } from "../Components";
|
|
@@ -12,49 +63,6 @@ export declare class Raycasters extends Component implements Disposable {
|
|
|
12
63
|
delete(world: World): void;
|
|
13
64
|
dispose(): void;
|
|
14
65
|
}
|
|
15
|
-
import * as THREE from "three";
|
|
16
|
-
import { Components } from "../Components";
|
|
17
|
-
import { Component } from "../Types";
|
|
18
|
-
/**
|
|
19
|
-
* A tool to safely remove meshes and geometries from memory to
|
|
20
|
-
* [prevent memory leaks](https://threejs.org/docs/#manual/en/introduction/How-to-dispose-of-objects).
|
|
21
|
-
*/
|
|
22
|
-
export declare class Disposer extends Component {
|
|
23
|
-
private _disposedComponents;
|
|
24
|
-
/** {@link Component.enabled} */
|
|
25
|
-
enabled: boolean;
|
|
26
|
-
static readonly uuid: "76e9cd8e-ad8f-4753-9ef6-cbc60f7247fe";
|
|
27
|
-
constructor(components: Components);
|
|
28
|
-
/**
|
|
29
|
-
* {@link Component.uuid}.
|
|
30
|
-
* @return the list of UUIDs of deleted components.
|
|
31
|
-
*/
|
|
32
|
-
get(): Set<string>;
|
|
33
|
-
/**
|
|
34
|
-
* Removes a mesh, its geometry and its materials from memory. If you are
|
|
35
|
-
* using any of these in other parts of the application, make sure that you
|
|
36
|
-
* remove them from the mesh before disposing it.
|
|
37
|
-
*
|
|
38
|
-
* @param object - the [object](https://threejs.org/docs/#api/en/core/Object3D)
|
|
39
|
-
* to remove.
|
|
40
|
-
*
|
|
41
|
-
* @param materials - whether to dispose the materials of the mesh.
|
|
42
|
-
*
|
|
43
|
-
* @param recursive - whether to recursively dispose the children of the mesh.
|
|
44
|
-
*/
|
|
45
|
-
destroy(object: THREE.Object3D, materials?: boolean, recursive?: boolean): void;
|
|
46
|
-
/**
|
|
47
|
-
* Disposes a geometry from memory.
|
|
48
|
-
*
|
|
49
|
-
* @param geometry - the
|
|
50
|
-
* [geometry](https://threejs.org/docs/#api/en/core/BufferGeometry)
|
|
51
|
-
* to remove.
|
|
52
|
-
*/
|
|
53
|
-
disposeGeometry(geometry: THREE.BufferGeometry): void;
|
|
54
|
-
private disposeGeometryAndMaterials;
|
|
55
|
-
private disposeChildren;
|
|
56
|
-
private static disposeMaterial;
|
|
57
|
-
}
|
|
58
66
|
import { Component, Disposable, Event } from "../Types";
|
|
59
67
|
/**
|
|
60
68
|
* The entry point of the Components library.
|
|
@@ -109,33 +117,19 @@ export declare class Components implements Disposable {
|
|
|
109
117
|
}
|
|
110
118
|
import { Component, Disposable, World, Event } from "../Types";
|
|
111
119
|
import { GridConfig, SimpleGrid } from "./src";
|
|
120
|
+
import { Components } from "../Components";
|
|
112
121
|
export declare class Grids extends Component implements Disposable {
|
|
113
122
|
static readonly uuid: "d1e814d5-b81c-4452-87a2-f039375e0489";
|
|
114
123
|
list: Map<string, SimpleGrid>;
|
|
115
|
-
onDisposed: Event<unknown>;
|
|
124
|
+
readonly onDisposed: Event<unknown>;
|
|
116
125
|
config: Required<GridConfig>;
|
|
117
126
|
/** {@link Component.enabled} */
|
|
118
127
|
enabled: boolean;
|
|
128
|
+
constructor(components: Components);
|
|
119
129
|
create(world: World): SimpleGrid;
|
|
120
130
|
delete(world: World): void;
|
|
121
131
|
dispose(): void;
|
|
122
132
|
}
|
|
123
|
-
import { MiniMap } from "./src";
|
|
124
|
-
import { Component, Updateable, World, Event, Disposable } from "../Types";
|
|
125
|
-
import { Components } from "../Components";
|
|
126
|
-
export declare class MiniMaps extends Component implements Updateable, Disposable {
|
|
127
|
-
static readonly uuid: "39ad6aad-84c8-4adf-a1e0-7f25313a9e7f";
|
|
128
|
-
readonly onAfterUpdate: Event<unknown>;
|
|
129
|
-
readonly onBeforeUpdate: Event<unknown>;
|
|
130
|
-
readonly onDisposed: Event<unknown>;
|
|
131
|
-
enabled: boolean;
|
|
132
|
-
list: Map<string, MiniMap>;
|
|
133
|
-
constructor(components: Components);
|
|
134
|
-
create(world: World): MiniMap;
|
|
135
|
-
delete(id: string): void;
|
|
136
|
-
dispose(): void;
|
|
137
|
-
update(): void;
|
|
138
|
-
}
|
|
139
133
|
import { Components } from "../Components";
|
|
140
134
|
import { MeshCullerRenderer, CullerRendererSettings } from "./src";
|
|
141
135
|
import { Component, Event, Disposable, World } from "../Types";
|
|
@@ -188,57 +182,6 @@ export declare class Cullers extends Component implements Disposable {
|
|
|
188
182
|
/** {@link Disposable.dispose} */
|
|
189
183
|
dispose(): void;
|
|
190
184
|
}
|
|
191
|
-
import { Component, Disposable, Updateable, World, Event, BaseScene, BaseCamera, BaseRenderer } from "../Types";
|
|
192
|
-
import { Components } from "../Components";
|
|
193
|
-
import { SimpleWorld } from "./src";
|
|
194
|
-
export declare class Worlds extends Component implements Updateable, Disposable {
|
|
195
|
-
/**
|
|
196
|
-
* A unique identifier for the component.
|
|
197
|
-
* This UUID is used to register the component within the Components system.
|
|
198
|
-
*/
|
|
199
|
-
static readonly uuid: "fdb61dc4-2ec1-4966-b83d-54ea795fad4a";
|
|
200
|
-
/**
|
|
201
|
-
* Event triggered after the update process of all worlds.
|
|
202
|
-
* Subscribers can listen to this event to perform actions post-update.
|
|
203
|
-
*/
|
|
204
|
-
readonly onAfterUpdate: Event<unknown>;
|
|
205
|
-
/**
|
|
206
|
-
* Event triggered before the update process of all worlds.
|
|
207
|
-
* Subscribers can listen to this event to perform actions pre-update.
|
|
208
|
-
*/
|
|
209
|
-
readonly onBeforeUpdate: Event<unknown>;
|
|
210
|
-
/**
|
|
211
|
-
* Event triggered when the Worlds component is disposed.
|
|
212
|
-
* Subscribers can listen to this event to perform cleanup actions.
|
|
213
|
-
*/
|
|
214
|
-
readonly onDisposed: Event<unknown>;
|
|
215
|
-
readonly onWorldCreated: Event<World>;
|
|
216
|
-
readonly onWorldDeleted: Event<string>;
|
|
217
|
-
/**
|
|
218
|
-
* A collection of worlds managed by this component.
|
|
219
|
-
* The key is the unique identifier (UUID) of the world, and the value is the World instance.
|
|
220
|
-
*/
|
|
221
|
-
list: Map<string, World>;
|
|
222
|
-
/**
|
|
223
|
-
* A flag indicating whether the Worlds component is enabled.
|
|
224
|
-
* If false, the update process will be skipped.
|
|
225
|
-
*/
|
|
226
|
-
enabled: boolean;
|
|
227
|
-
constructor(components: Components);
|
|
228
|
-
/**
|
|
229
|
-
* Creates a new instance of a SimpleWorld and adds it to the list of worlds.
|
|
230
|
-
*
|
|
231
|
-
* @template T - The type of the scene, extending from BaseScene. Defaults to BaseScene.
|
|
232
|
-
* @template U - The type of the camera, extending from BaseCamera. Defaults to BaseCamera.
|
|
233
|
-
* @template S - The type of the renderer, extending from BaseRenderer. Defaults to BaseRenderer.
|
|
234
|
-
*
|
|
235
|
-
* @throws {Error} - Throws an error if a world with the same UUID already exists in the list.
|
|
236
|
-
*/
|
|
237
|
-
create<T extends BaseScene = BaseScene, U extends BaseCamera = BaseCamera, S extends BaseRenderer = BaseRenderer>(): SimpleWorld<T, U, S>;
|
|
238
|
-
delete(world: World): void;
|
|
239
|
-
dispose(): void;
|
|
240
|
-
update(delta?: number): void | Promise<void>;
|
|
241
|
-
}
|
|
242
185
|
import * as THREE from "three";
|
|
243
186
|
import { Components } from "../Components";
|
|
244
187
|
import { SimpleCamera } from "..";
|
|
@@ -291,6 +234,49 @@ export declare class OrthoPerspectiveCamera extends SimpleCamera {
|
|
|
291
234
|
private setOrthoPerspCameraAspect;
|
|
292
235
|
}
|
|
293
236
|
import * as THREE from "three";
|
|
237
|
+
import { Components } from "../Components";
|
|
238
|
+
import { Component } from "../Types";
|
|
239
|
+
/**
|
|
240
|
+
* A tool to safely remove meshes and geometries from memory to
|
|
241
|
+
* [prevent memory leaks](https://threejs.org/docs/#manual/en/introduction/How-to-dispose-of-objects).
|
|
242
|
+
*/
|
|
243
|
+
export declare class Disposer extends Component {
|
|
244
|
+
private _disposedComponents;
|
|
245
|
+
/** {@link Component.enabled} */
|
|
246
|
+
enabled: boolean;
|
|
247
|
+
static readonly uuid: "76e9cd8e-ad8f-4753-9ef6-cbc60f7247fe";
|
|
248
|
+
constructor(components: Components);
|
|
249
|
+
/**
|
|
250
|
+
* {@link Component.uuid}.
|
|
251
|
+
* @return the list of UUIDs of deleted components.
|
|
252
|
+
*/
|
|
253
|
+
get(): Set<string>;
|
|
254
|
+
/**
|
|
255
|
+
* Removes a mesh, its geometry and its materials from memory. If you are
|
|
256
|
+
* using any of these in other parts of the application, make sure that you
|
|
257
|
+
* remove them from the mesh before disposing it.
|
|
258
|
+
*
|
|
259
|
+
* @param object - the [object](https://threejs.org/docs/#api/en/core/Object3D)
|
|
260
|
+
* to remove.
|
|
261
|
+
*
|
|
262
|
+
* @param materials - whether to dispose the materials of the mesh.
|
|
263
|
+
*
|
|
264
|
+
* @param recursive - whether to recursively dispose the children of the mesh.
|
|
265
|
+
*/
|
|
266
|
+
destroy(object: THREE.Object3D, materials?: boolean, recursive?: boolean): void;
|
|
267
|
+
/**
|
|
268
|
+
* Disposes a geometry from memory.
|
|
269
|
+
*
|
|
270
|
+
* @param geometry - the
|
|
271
|
+
* [geometry](https://threejs.org/docs/#api/en/core/BufferGeometry)
|
|
272
|
+
* to remove.
|
|
273
|
+
*/
|
|
274
|
+
disposeGeometry(geometry: THREE.BufferGeometry): void;
|
|
275
|
+
private disposeGeometryAndMaterials;
|
|
276
|
+
private disposeChildren;
|
|
277
|
+
private static disposeMaterial;
|
|
278
|
+
}
|
|
279
|
+
import * as THREE from "three";
|
|
294
280
|
import { Component, Createable, Disposable, Event, Hideable, World } from "../Types";
|
|
295
281
|
import { SimplePlane } from "./src";
|
|
296
282
|
import { Components } from "../Components";
|
|
@@ -389,55 +375,130 @@ export declare class Clipper extends Component implements Createable, Disposable
|
|
|
389
375
|
private _onStartDragging;
|
|
390
376
|
private _onEndDragging;
|
|
391
377
|
}
|
|
392
|
-
import
|
|
393
|
-
import
|
|
394
|
-
import {
|
|
395
|
-
export
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
}
|
|
400
|
-
export declare class Classifier extends Component implements Disposable {
|
|
401
|
-
static readonly uuid: "e25a7f3c-46c4-4a14-9d3d-5115f24ebeb7";
|
|
402
|
-
/** {@link Component.enabled} */
|
|
403
|
-
enabled: boolean;
|
|
404
|
-
list: Classification;
|
|
405
|
-
/** {@link Disposable.onDisposed} */
|
|
378
|
+
import { MiniMap } from "./src";
|
|
379
|
+
import { Component, Updateable, World, Event, Disposable } from "../Types";
|
|
380
|
+
import { Components } from "../Components";
|
|
381
|
+
export declare class MiniMaps extends Component implements Updateable, Disposable {
|
|
382
|
+
static readonly uuid: "39ad6aad-84c8-4adf-a1e0-7f25313a9e7f";
|
|
383
|
+
readonly onAfterUpdate: Event<unknown>;
|
|
384
|
+
readonly onBeforeUpdate: Event<unknown>;
|
|
406
385
|
readonly onDisposed: Event<unknown>;
|
|
386
|
+
enabled: boolean;
|
|
387
|
+
list: Map<string, MiniMap>;
|
|
407
388
|
constructor(components: Components);
|
|
408
|
-
|
|
389
|
+
create(world: World): MiniMap;
|
|
390
|
+
delete(id: string): void;
|
|
409
391
|
dispose(): void;
|
|
410
|
-
|
|
411
|
-
find(filter?: {
|
|
412
|
-
[name: string]: string[];
|
|
413
|
-
}): FRAGS.FragmentIdMap;
|
|
414
|
-
byModel(modelID: string, group: FRAGS.FragmentsGroup): void;
|
|
415
|
-
byPredefinedType(group: FRAGS.FragmentsGroup): Promise<void>;
|
|
416
|
-
byEntity(group: FRAGS.FragmentsGroup): void;
|
|
417
|
-
byIfcRel(group: FRAGS.FragmentsGroup, ifcRel: number, systemName: string): Promise<void>;
|
|
418
|
-
bySpatialStructure(model: FRAGS.FragmentsGroup): Promise<void>;
|
|
419
|
-
setColor(items: FRAGS.FragmentIdMap, color: THREE.Color, override?: boolean): void;
|
|
420
|
-
resetColor(items: FRAGS.FragmentIdMap): void;
|
|
421
|
-
protected saveItem(group: FRAGS.FragmentsGroup, systemName: string, className: string, expressID: number): void;
|
|
392
|
+
update(): void;
|
|
422
393
|
}
|
|
423
|
-
|
|
424
|
-
import * as
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
394
|
+
import * as WEBIFC from "web-ifc";
|
|
395
|
+
import * as FRAG from "@thatopen/fragments";
|
|
396
|
+
import { Component, Components } from "../../core";
|
|
397
|
+
/**
|
|
398
|
+
* Object to export all the properties from an IFC to a JS object.
|
|
399
|
+
*/
|
|
400
|
+
export declare class IfcJsonExporter extends Component {
|
|
401
|
+
static readonly uuid: "b32c4332-cd67-436e-ba7f-196646c7a635";
|
|
402
|
+
/** {@link Component.enabled} */
|
|
403
|
+
enabled: boolean;
|
|
404
|
+
constructor(components: Components);
|
|
405
|
+
/**
|
|
406
|
+
* Exports all the properties of an IFC into an array of JS objects.
|
|
407
|
+
* @param webIfc The instance of [web-ifc]{@link https://github.com/ThatOpen/engine_web-ifc} to use.
|
|
408
|
+
* @param modelID ID of the IFC model whose properties to extract.
|
|
409
|
+
* @param indirect whether to get the indirect relationships as well.
|
|
410
|
+
* @param recursiveSpatial whether to get the properties of spatial items recursively
|
|
411
|
+
* to make the location data available (e.g. absolute position of building).
|
|
412
|
+
*/
|
|
413
|
+
export(webIfc: WEBIFC.IfcAPI, modelID: number, indirect?: boolean, recursiveSpatial?: boolean): Promise<FRAG.IfcProperties>;
|
|
414
|
+
}
|
|
415
|
+
export declare function isPointInFrontOfPlane(point: number[], planePoint: number[], planeNormal: number[]): boolean;
|
|
416
|
+
import * as WEBIFC from "web-ifc";
|
|
417
|
+
import { FragmentsGroup } from "@thatopen/fragments";
|
|
418
|
+
import { Component, Disposable, Event, Components } from "../../core";
|
|
419
|
+
type BooleanPropTypes = "IfcBoolean" | "IfcLogical";
|
|
420
|
+
type StringPropTypes = "IfcText" | "IfcLabel" | "IfcIdentifier";
|
|
421
|
+
type NumericPropTypes = "IfcInteger" | "IfcReal";
|
|
422
|
+
interface ChangeMap {
|
|
423
|
+
[modelID: string]: Set<number>;
|
|
424
|
+
}
|
|
425
|
+
interface AttributeListener {
|
|
426
|
+
[modelID: string]: {
|
|
427
|
+
[expressID: number]: {
|
|
428
|
+
[attributeName: string]: Event<String | Boolean | Number>;
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
export declare class IfcPropertiesManager extends Component implements Disposable {
|
|
433
|
+
static readonly uuid: "58c2d9f0-183c-48d6-a402-dfcf5b9a34df";
|
|
434
|
+
/** {@link Disposable.onDisposed} */
|
|
435
|
+
readonly onDisposed: Event<string>;
|
|
436
|
+
readonly onRequestFile: Event<unknown>;
|
|
437
|
+
ifcToExport: ArrayBuffer | null;
|
|
438
|
+
readonly onElementToPset: Event<{
|
|
439
|
+
model: FragmentsGroup;
|
|
440
|
+
psetID: number;
|
|
441
|
+
elementID: number;
|
|
442
|
+
}>;
|
|
443
|
+
readonly onPropToPset: Event<{
|
|
444
|
+
model: FragmentsGroup;
|
|
445
|
+
psetID: number;
|
|
446
|
+
propID: number;
|
|
447
|
+
}>;
|
|
448
|
+
readonly onPsetRemoved: Event<{
|
|
449
|
+
model: FragmentsGroup;
|
|
450
|
+
psetID: number;
|
|
451
|
+
}>;
|
|
452
|
+
readonly onDataChanged: Event<{
|
|
453
|
+
model: FragmentsGroup;
|
|
454
|
+
expressID: number;
|
|
455
|
+
}>;
|
|
456
|
+
wasm: {
|
|
457
|
+
path: string;
|
|
458
|
+
absolute: boolean;
|
|
459
|
+
};
|
|
460
|
+
enabled: boolean;
|
|
461
|
+
attributeListeners: AttributeListener;
|
|
462
|
+
selectedModel?: FragmentsGroup;
|
|
463
|
+
changeMap: ChangeMap;
|
|
464
|
+
constructor(components: Components);
|
|
465
|
+
dispose(): void;
|
|
466
|
+
private increaseMaxID;
|
|
467
|
+
static getIFCSchema(model: FragmentsGroup): import("@thatopen/fragments").IfcSchema;
|
|
468
|
+
private newGUID;
|
|
469
|
+
private getOwnerHistory;
|
|
470
|
+
private registerChange;
|
|
471
|
+
setData(model: FragmentsGroup, ...dataToSave: Record<string, any>[]): Promise<void>;
|
|
472
|
+
newPset(model: FragmentsGroup, name: string, description?: string): Promise<{
|
|
473
|
+
pset: WEBIFC.IFC2X3.IfcPropertySet | WEBIFC.IFC4.IfcPropertySet | WEBIFC.IFC4X3.IfcPropertySet;
|
|
474
|
+
rel: WEBIFC.IFC4X3.IfcRelDefinesByProperties | WEBIFC.IFC4.IfcRelDefinesByProperties | WEBIFC.IFC2X3.IfcRelDefinesByProperties;
|
|
475
|
+
}>;
|
|
476
|
+
removePset(model: FragmentsGroup, ...psetID: number[]): Promise<void>;
|
|
477
|
+
private newSingleProperty;
|
|
478
|
+
newSingleStringProperty(model: FragmentsGroup, type: StringPropTypes, name: string, value: string): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
479
|
+
newSingleNumericProperty(model: FragmentsGroup, type: NumericPropTypes, name: string, value: number): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
480
|
+
newSingleBooleanProperty(model: FragmentsGroup, type: BooleanPropTypes, name: string, value: boolean): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
481
|
+
removePsetProp(model: FragmentsGroup, psetID: number, propID: number): Promise<void>;
|
|
482
|
+
addElementToPset(model: FragmentsGroup, psetID: number, ...elementID: number[]): Promise<void>;
|
|
483
|
+
addPropToPset(model: FragmentsGroup, psetID: number, ...propID: number[]): Promise<void>;
|
|
484
|
+
saveToIfc(model: FragmentsGroup, ifcToSaveOn: Uint8Array): Promise<Uint8Array>;
|
|
485
|
+
setAttributeListener(model: FragmentsGroup, expressID: number, attributeName: string): Promise<Event<String | Number | Boolean>>;
|
|
486
|
+
}
|
|
487
|
+
export {};
|
|
488
|
+
import * as FRAGS from "@thatopen/fragments";
|
|
489
|
+
import { Components, Component } from "../../core";
|
|
490
|
+
export declare class Hider extends Component {
|
|
491
|
+
static readonly uuid: "dd9ccf2d-8a21-4821-b7f6-2949add16a29";
|
|
492
|
+
enabled: boolean;
|
|
493
|
+
constructor(components: Components);
|
|
494
|
+
set(visible: boolean, items?: FRAGS.FragmentIdMap): void;
|
|
495
|
+
isolate(items: FRAGS.FragmentIdMap): void;
|
|
496
|
+
private updateCulledVisibility;
|
|
497
|
+
}
|
|
498
|
+
import * as THREE from "three";
|
|
432
499
|
export declare class MaterialsUtils {
|
|
433
500
|
static isTransparent(material: THREE.Material): boolean;
|
|
434
501
|
}
|
|
435
|
-
export declare class UUID {
|
|
436
|
-
private static _pattern;
|
|
437
|
-
private static _lut;
|
|
438
|
-
static create(): string;
|
|
439
|
-
static validate(uuid: string): void;
|
|
440
|
-
}
|
|
441
502
|
import * as THREE from "three";
|
|
442
503
|
import * as FRAGS from "@thatopen/fragments";
|
|
443
504
|
import { FragmentsGroup } from "@thatopen/fragments";
|
|
@@ -474,18 +535,112 @@ export declare class BoundingBoxer extends Component implements Disposable {
|
|
|
474
535
|
addMesh(mesh: THREE.InstancedMesh | THREE.Mesh | FRAGS.CurveMesh, itemIDs?: Iterable<number>): void;
|
|
475
536
|
private static getFragmentBounds;
|
|
476
537
|
}
|
|
477
|
-
import
|
|
478
|
-
|
|
479
|
-
|
|
538
|
+
import * as THREE from "three";
|
|
539
|
+
import * as FRAGS from "@thatopen/fragments";
|
|
540
|
+
import { Disposable, Component, Event, Components } from "../../core";
|
|
541
|
+
export interface Classification {
|
|
542
|
+
[system: string]: {
|
|
543
|
+
[className: string]: FRAGS.FragmentIdMap;
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
export declare class Classifier extends Component implements Disposable {
|
|
547
|
+
static readonly uuid: "e25a7f3c-46c4-4a14-9d3d-5115f24ebeb7";
|
|
548
|
+
/** {@link Component.enabled} */
|
|
480
549
|
enabled: boolean;
|
|
481
|
-
|
|
482
|
-
groupName: string;
|
|
550
|
+
list: Classification;
|
|
483
551
|
/** {@link Disposable.onDisposed} */
|
|
484
552
|
readonly onDisposed: Event<unknown>;
|
|
485
|
-
list: Set<string>;
|
|
486
553
|
constructor(components: Components);
|
|
554
|
+
private onFragmentsDisposed;
|
|
487
555
|
dispose(): void;
|
|
488
|
-
|
|
556
|
+
remove(guid: string): void;
|
|
557
|
+
find(filter?: {
|
|
558
|
+
[name: string]: string[];
|
|
559
|
+
}): FRAGS.FragmentIdMap;
|
|
560
|
+
byModel(modelID: string, group: FRAGS.FragmentsGroup): void;
|
|
561
|
+
byPredefinedType(group: FRAGS.FragmentsGroup): Promise<void>;
|
|
562
|
+
byEntity(group: FRAGS.FragmentsGroup): void;
|
|
563
|
+
byIfcRel(group: FRAGS.FragmentsGroup, ifcRel: number, systemName: string): Promise<void>;
|
|
564
|
+
bySpatialStructure(model: FRAGS.FragmentsGroup): Promise<void>;
|
|
565
|
+
setColor(items: FRAGS.FragmentIdMap, color: THREE.Color, override?: boolean): void;
|
|
566
|
+
resetColor(items: FRAGS.FragmentIdMap): void;
|
|
567
|
+
protected saveItem(group: FRAGS.FragmentsGroup, systemName: string, className: string, expressID: number): void;
|
|
568
|
+
}
|
|
569
|
+
import * as THREE from "three";
|
|
570
|
+
import { Component, Components } from "../../core";
|
|
571
|
+
export interface MeasureEdge {
|
|
572
|
+
distance: number;
|
|
573
|
+
points: THREE.Vector3[];
|
|
574
|
+
}
|
|
575
|
+
export declare class MeasurementUtils extends Component {
|
|
576
|
+
enabled: boolean;
|
|
577
|
+
static uuid: string;
|
|
578
|
+
constructor(components: Components);
|
|
579
|
+
getFace(mesh: THREE.InstancedMesh | THREE.Mesh, triangleIndex: number, instance?: number): {
|
|
580
|
+
edges: MeasureEdge[];
|
|
581
|
+
indices: Set<number>;
|
|
582
|
+
} | null;
|
|
583
|
+
static distanceFromPointToLine(point: THREE.Vector3, lineStart: THREE.Vector3, lineEnd: THREE.Vector3, clamp?: boolean): number;
|
|
584
|
+
private getFaceData;
|
|
585
|
+
getVerticesAndNormal(mesh: THREE.Mesh | THREE.InstancedMesh, faceIndex: number, instance: number | undefined): {
|
|
586
|
+
p1: THREE.Vector3;
|
|
587
|
+
p2: THREE.Vector3;
|
|
588
|
+
p3: THREE.Vector3;
|
|
589
|
+
faceNormal: THREE.Vector3;
|
|
590
|
+
};
|
|
591
|
+
private round;
|
|
592
|
+
}
|
|
593
|
+
import { Fragment, FragmentsGroup } from "@thatopen/fragments";
|
|
594
|
+
import * as THREE from "three";
|
|
595
|
+
import * as FRAGS from "@thatopen/fragments";
|
|
596
|
+
import { Component, Components, Event, Disposable } from "../../core";
|
|
597
|
+
import { RelationsMap } from "../../ifc/IfcRelationsIndexer/src/types";
|
|
598
|
+
/**
|
|
599
|
+
* Object that can efficiently load binary files that contain
|
|
600
|
+
* [fragment geometry](https://github.com/ThatOpen/engine_fragment).
|
|
601
|
+
*/
|
|
602
|
+
export declare class FragmentsManager extends Component implements Disposable {
|
|
603
|
+
static readonly uuid: "fef46874-46a3-461b-8c44-2922ab77c806";
|
|
604
|
+
/** {@link Disposable.onDisposed} */
|
|
605
|
+
readonly onDisposed: Event<unknown>;
|
|
606
|
+
readonly onFragmentsLoaded: Event<FragmentsGroup>;
|
|
607
|
+
readonly onFragmentsDisposed: Event<{
|
|
608
|
+
groupID: string;
|
|
609
|
+
fragmentIDs: string[];
|
|
610
|
+
}>;
|
|
611
|
+
/** All the created [fragments](https://github.com/ThatOpen/engine_fragment). */
|
|
612
|
+
readonly list: Map<string, Fragment>;
|
|
613
|
+
readonly groups: Map<string, FragmentsGroup>;
|
|
614
|
+
/** {@link Component.enabled} */
|
|
615
|
+
enabled: boolean;
|
|
616
|
+
baseCoordinationModel: string;
|
|
617
|
+
private _loader;
|
|
618
|
+
/** The list of meshes of the created fragments. */
|
|
619
|
+
get meshes(): THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>[];
|
|
620
|
+
constructor(components: Components);
|
|
621
|
+
/** {@link Disposable.dispose} */
|
|
622
|
+
dispose(): void;
|
|
623
|
+
disposeGroup(group: FragmentsGroup): void;
|
|
624
|
+
/**
|
|
625
|
+
* Loads a binar file that contain fragment geometry.
|
|
626
|
+
* @param data - The binary data to load.
|
|
627
|
+
* @param config - Optional configuration for loading.
|
|
628
|
+
* @param config.coordinate - Whether to apply coordinate transformation. Default is true.
|
|
629
|
+
* @param config.properties - Ifc properties to set on the loaded fragments. Not to be used when streaming.
|
|
630
|
+
* @returns The loaded FragmentsGroup.
|
|
631
|
+
*/
|
|
632
|
+
load(data: Uint8Array, config?: Partial<{
|
|
633
|
+
coordinate: boolean;
|
|
634
|
+
properties: FRAGS.IfcProperties;
|
|
635
|
+
relationsMap: RelationsMap;
|
|
636
|
+
}>): FragmentsGroup;
|
|
637
|
+
/**
|
|
638
|
+
* Export the specified fragments.
|
|
639
|
+
* @param group - the fragments group to be exported.
|
|
640
|
+
* @returns the exported data as binary buffer.
|
|
641
|
+
*/
|
|
642
|
+
export(group: FragmentsGroup): Uint8Array;
|
|
643
|
+
coordinate(models?: FragmentsGroup[]): void;
|
|
489
644
|
}
|
|
490
645
|
import * as WEBIFC from "web-ifc";
|
|
491
646
|
import * as FRAGS from "@thatopen/fragments";
|
|
@@ -518,144 +673,29 @@ export declare class IfcLoader extends Component implements Disposable {
|
|
|
518
673
|
private getGeometry;
|
|
519
674
|
private autoSetWasm;
|
|
520
675
|
}
|
|
521
|
-
import
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
static readonly uuid: "dd9ccf2d-8a21-4821-b7f6-2949add16a29";
|
|
676
|
+
import { Component, Disposable, Event, Components } from "../../core";
|
|
677
|
+
export declare class Exploder extends Component implements Disposable {
|
|
678
|
+
static readonly uuid: "d260618b-ce88-4c7d-826c-6debb91de3e2";
|
|
525
679
|
enabled: boolean;
|
|
680
|
+
height: number;
|
|
681
|
+
groupName: string;
|
|
682
|
+
/** {@link Disposable.onDisposed} */
|
|
683
|
+
readonly onDisposed: Event<unknown>;
|
|
684
|
+
list: Set<string>;
|
|
526
685
|
constructor(components: Components);
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
private updateCulledVisibility;
|
|
686
|
+
dispose(): void;
|
|
687
|
+
set(active: boolean): void;
|
|
530
688
|
}
|
|
531
689
|
import * as WEBIFC from "web-ifc";
|
|
532
|
-
import {
|
|
533
|
-
import {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
onProgress: Event<number>;
|
|
542
|
-
onIfcLoaded: Event<Uint8Array>;
|
|
543
|
-
/** {@link Disposable.onDisposed} */
|
|
544
|
-
readonly onDisposed: Event<unknown>;
|
|
545
|
-
settings: IfcStreamingSettings;
|
|
546
|
-
enabled: boolean;
|
|
547
|
-
webIfc: WEBIFC.IfcAPI;
|
|
548
|
-
private _spatialTree;
|
|
549
|
-
private _metaData;
|
|
550
|
-
private _visitedGeometries;
|
|
551
|
-
private _streamSerializer;
|
|
552
|
-
private _geometries;
|
|
553
|
-
private _geometryCount;
|
|
554
|
-
private _civil;
|
|
555
|
-
private _groupSerializer;
|
|
556
|
-
private _assets;
|
|
557
|
-
private _meshesWithHoles;
|
|
558
|
-
constructor(components: Components);
|
|
559
|
-
dispose(): void;
|
|
560
|
-
streamFromBuffer(data: Uint8Array): Promise<void>;
|
|
561
|
-
streamFromCallBack(loadCallback: WEBIFC.ModelLoadCallback): Promise<void>;
|
|
562
|
-
private readIfcFile;
|
|
563
|
-
private streamIfcFile;
|
|
564
|
-
private streamAllGeometries;
|
|
565
|
-
private cleanUp;
|
|
566
|
-
private getMesh;
|
|
567
|
-
private getGeometry;
|
|
568
|
-
private streamAssets;
|
|
569
|
-
private streamGeometries;
|
|
570
|
-
}
|
|
571
|
-
import * as WEBIFC from "web-ifc";
|
|
572
|
-
import { AsyncEvent, Component, Disposable, Event } from "../../core";
|
|
573
|
-
import { PropertiesStreamingSettings } from "../IfcGeometryTiler";
|
|
574
|
-
export declare class IfcPropertiesTiler extends Component implements Disposable {
|
|
575
|
-
static readonly uuid: "88d2c89c-ce32-47d7-8cb6-d51e4b311a0b";
|
|
576
|
-
onPropertiesStreamed: AsyncEvent<{
|
|
577
|
-
type: number;
|
|
578
|
-
data: {
|
|
579
|
-
[id: number]: any;
|
|
580
|
-
};
|
|
581
|
-
}>;
|
|
582
|
-
onProgress: AsyncEvent<number>;
|
|
583
|
-
onIndicesStreamed: AsyncEvent<Map<number, Map<number, number[]>>>;
|
|
584
|
-
/** {@link Disposable.onDisposed} */
|
|
585
|
-
readonly onDisposed: Event<string>;
|
|
586
|
-
enabled: boolean;
|
|
587
|
-
settings: PropertiesStreamingSettings;
|
|
588
|
-
webIfc: WEBIFC.IfcAPI;
|
|
589
|
-
dispose(): Promise<void>;
|
|
590
|
-
streamFromBuffer(data: Uint8Array): Promise<void>;
|
|
591
|
-
streamFromCallBack(loadCallback: WEBIFC.ModelLoadCallback): Promise<void>;
|
|
592
|
-
private readIfcFile;
|
|
593
|
-
private streamIfcFile;
|
|
594
|
-
private streamAllProperties;
|
|
595
|
-
private cleanUp;
|
|
596
|
-
}
|
|
597
|
-
import { Fragment, FragmentsGroup } from "@thatopen/fragments";
|
|
598
|
-
import * as THREE from "three";
|
|
599
|
-
import * as FRAGS from "@thatopen/fragments";
|
|
600
|
-
import { Component, Components, Event, Disposable } from "../../core";
|
|
601
|
-
import { RelationsMap } from "../../ifc/IfcRelationsIndexer/src/types";
|
|
602
|
-
/**
|
|
603
|
-
* Object that can efficiently load binary files that contain
|
|
604
|
-
* [fragment geometry](https://github.com/ThatOpen/engine_fragment).
|
|
605
|
-
*/
|
|
606
|
-
export declare class FragmentsManager extends Component implements Disposable {
|
|
607
|
-
static readonly uuid: "fef46874-46a3-461b-8c44-2922ab77c806";
|
|
608
|
-
/** {@link Disposable.onDisposed} */
|
|
609
|
-
readonly onDisposed: Event<unknown>;
|
|
610
|
-
readonly onFragmentsLoaded: Event<FragmentsGroup>;
|
|
611
|
-
readonly onFragmentsDisposed: Event<{
|
|
612
|
-
groupID: string;
|
|
613
|
-
fragmentIDs: string[];
|
|
614
|
-
}>;
|
|
615
|
-
/** All the created [fragments](https://github.com/ThatOpen/engine_fragment). */
|
|
616
|
-
readonly list: Map<string, Fragment>;
|
|
617
|
-
readonly groups: Map<string, FragmentsGroup>;
|
|
618
|
-
/** {@link Component.enabled} */
|
|
619
|
-
enabled: boolean;
|
|
620
|
-
baseCoordinationModel: string;
|
|
621
|
-
private _loader;
|
|
622
|
-
/** The list of meshes of the created fragments. */
|
|
623
|
-
get meshes(): THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>[];
|
|
624
|
-
constructor(components: Components);
|
|
625
|
-
/** {@link Disposable.dispose} */
|
|
626
|
-
dispose(): void;
|
|
627
|
-
disposeGroup(group: FragmentsGroup): void;
|
|
628
|
-
/**
|
|
629
|
-
* Loads a binar file that contain fragment geometry.
|
|
630
|
-
* @param data - The binary data to load.
|
|
631
|
-
* @param config - Optional configuration for loading.
|
|
632
|
-
* @param config.coordinate - Whether to apply coordinate transformation. Default is true.
|
|
633
|
-
* @param config.properties - Ifc properties to set on the loaded fragments. Not to be used when streaming.
|
|
634
|
-
* @returns The loaded FragmentsGroup.
|
|
635
|
-
*/
|
|
636
|
-
load(data: Uint8Array, config?: Partial<{
|
|
637
|
-
coordinate: boolean;
|
|
638
|
-
properties: FRAGS.IfcProperties;
|
|
639
|
-
relationsMap: RelationsMap;
|
|
640
|
-
}>): FragmentsGroup;
|
|
641
|
-
/**
|
|
642
|
-
* Export the specified fragments.
|
|
643
|
-
* @param group - the fragments group to be exported.
|
|
644
|
-
* @returns the exported data as binary buffer.
|
|
645
|
-
*/
|
|
646
|
-
export(group: FragmentsGroup): Uint8Array;
|
|
647
|
-
coordinate(models?: FragmentsGroup[]): void;
|
|
648
|
-
}
|
|
649
|
-
import * as WEBIFC from "web-ifc";
|
|
650
|
-
import { FragmentsGroup } from "@thatopen/fragments";
|
|
651
|
-
import { Disposable, Event, Component, Components } from "../../core";
|
|
652
|
-
import { RelationsMap, ModelsRelationMap, InverseAttribute } from "./src/types";
|
|
653
|
-
/**
|
|
654
|
-
* Indexer for IFC entities, facilitating the indexing and retrieval of IFC entity relationships.
|
|
655
|
-
* It is designed to process models properties by indexing their IFC entities' relations based on predefined inverse attributes, and provides methods to query these relations.
|
|
656
|
-
*/
|
|
657
|
-
export declare class IfcRelationsIndexer extends Component implements Disposable {
|
|
658
|
-
static readonly uuid: "23a889ab-83b3-44a4-8bee-ead83438370b";
|
|
690
|
+
import { FragmentsGroup } from "@thatopen/fragments";
|
|
691
|
+
import { Disposable, Event, Component, Components } from "../../core";
|
|
692
|
+
import { RelationsMap, ModelsRelationMap, InverseAttribute } from "./src/types";
|
|
693
|
+
/**
|
|
694
|
+
* Indexer for IFC entities, facilitating the indexing and retrieval of IFC entity relationships.
|
|
695
|
+
* It is designed to process models properties by indexing their IFC entities' relations based on predefined inverse attributes, and provides methods to query these relations.
|
|
696
|
+
*/
|
|
697
|
+
export declare class IfcRelationsIndexer extends Component implements Disposable {
|
|
698
|
+
static readonly uuid: "23a889ab-83b3-44a4-8bee-ead83438370b";
|
|
659
699
|
/** {@link Disposable.onDisposed} */
|
|
660
700
|
readonly onDisposed: Event<string>;
|
|
661
701
|
enabled: boolean;
|
|
@@ -778,103 +818,83 @@ export declare class IfcRelationsIndexer extends Component implements Disposable
|
|
|
778
818
|
dispose(): void;
|
|
779
819
|
}
|
|
780
820
|
export type { InverseAttribute } from "./src/types";
|
|
821
|
+
import * as THREE from "three";
|
|
822
|
+
export declare function obbFromPoints(vertices: ArrayLike<number>): {
|
|
823
|
+
center: THREE.Vector3;
|
|
824
|
+
halfSizes: THREE.Vector3;
|
|
825
|
+
rotation: THREE.Matrix3;
|
|
826
|
+
transformation: THREE.Matrix4;
|
|
827
|
+
};
|
|
781
828
|
import * as WEBIFC from "web-ifc";
|
|
782
|
-
import {
|
|
783
|
-
import {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
interface AttributeListener {
|
|
791
|
-
[modelID: string]: {
|
|
792
|
-
[expressID: number]: {
|
|
793
|
-
[attributeName: string]: Event<String | Boolean | Number>;
|
|
829
|
+
import { AsyncEvent, Component, Disposable, Event } from "../../core";
|
|
830
|
+
import { PropertiesStreamingSettings } from "../IfcGeometryTiler";
|
|
831
|
+
export declare class IfcPropertiesTiler extends Component implements Disposable {
|
|
832
|
+
static readonly uuid: "88d2c89c-ce32-47d7-8cb6-d51e4b311a0b";
|
|
833
|
+
onPropertiesStreamed: AsyncEvent<{
|
|
834
|
+
type: number;
|
|
835
|
+
data: {
|
|
836
|
+
[id: number]: any;
|
|
794
837
|
};
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
static readonly uuid: "58c2d9f0-183c-48d6-a402-dfcf5b9a34df";
|
|
838
|
+
}>;
|
|
839
|
+
onProgress: AsyncEvent<number>;
|
|
840
|
+
onIndicesStreamed: AsyncEvent<Map<number, Map<number, number[]>>>;
|
|
799
841
|
/** {@link Disposable.onDisposed} */
|
|
800
842
|
readonly onDisposed: Event<string>;
|
|
801
|
-
readonly onRequestFile: Event<unknown>;
|
|
802
|
-
ifcToExport: ArrayBuffer | null;
|
|
803
|
-
readonly onElementToPset: Event<{
|
|
804
|
-
model: FragmentsGroup;
|
|
805
|
-
psetID: number;
|
|
806
|
-
elementID: number;
|
|
807
|
-
}>;
|
|
808
|
-
readonly onPropToPset: Event<{
|
|
809
|
-
model: FragmentsGroup;
|
|
810
|
-
psetID: number;
|
|
811
|
-
propID: number;
|
|
812
|
-
}>;
|
|
813
|
-
readonly onPsetRemoved: Event<{
|
|
814
|
-
model: FragmentsGroup;
|
|
815
|
-
psetID: number;
|
|
816
|
-
}>;
|
|
817
|
-
readonly onDataChanged: Event<{
|
|
818
|
-
model: FragmentsGroup;
|
|
819
|
-
expressID: number;
|
|
820
|
-
}>;
|
|
821
|
-
wasm: {
|
|
822
|
-
path: string;
|
|
823
|
-
absolute: boolean;
|
|
824
|
-
};
|
|
825
843
|
enabled: boolean;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
private
|
|
832
|
-
|
|
833
|
-
private
|
|
834
|
-
private
|
|
835
|
-
private registerChange;
|
|
836
|
-
setData(model: FragmentsGroup, ...dataToSave: Record<string, any>[]): Promise<void>;
|
|
837
|
-
newPset(model: FragmentsGroup, name: string, description?: string): Promise<{
|
|
838
|
-
pset: WEBIFC.IFC2X3.IfcPropertySet | WEBIFC.IFC4.IfcPropertySet | WEBIFC.IFC4X3.IfcPropertySet;
|
|
839
|
-
rel: WEBIFC.IFC4X3.IfcRelDefinesByProperties | WEBIFC.IFC4.IfcRelDefinesByProperties | WEBIFC.IFC2X3.IfcRelDefinesByProperties;
|
|
840
|
-
}>;
|
|
841
|
-
removePset(model: FragmentsGroup, ...psetID: number[]): Promise<void>;
|
|
842
|
-
private newSingleProperty;
|
|
843
|
-
newSingleStringProperty(model: FragmentsGroup, type: StringPropTypes, name: string, value: string): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
844
|
-
newSingleNumericProperty(model: FragmentsGroup, type: NumericPropTypes, name: string, value: number): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
845
|
-
newSingleBooleanProperty(model: FragmentsGroup, type: BooleanPropTypes, name: string, value: boolean): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
846
|
-
removePsetProp(model: FragmentsGroup, psetID: number, propID: number): Promise<void>;
|
|
847
|
-
addElementToPset(model: FragmentsGroup, psetID: number, ...elementID: number[]): Promise<void>;
|
|
848
|
-
addPropToPset(model: FragmentsGroup, psetID: number, ...propID: number[]): Promise<void>;
|
|
849
|
-
saveToIfc(model: FragmentsGroup, ifcToSaveOn: Uint8Array): Promise<Uint8Array>;
|
|
850
|
-
setAttributeListener(model: FragmentsGroup, expressID: number, attributeName: string): Promise<Event<String | Number | Boolean>>;
|
|
844
|
+
settings: PropertiesStreamingSettings;
|
|
845
|
+
webIfc: WEBIFC.IfcAPI;
|
|
846
|
+
dispose(): Promise<void>;
|
|
847
|
+
streamFromBuffer(data: Uint8Array): Promise<void>;
|
|
848
|
+
streamFromCallBack(loadCallback: WEBIFC.ModelLoadCallback): Promise<void>;
|
|
849
|
+
private readIfcFile;
|
|
850
|
+
private streamIfcFile;
|
|
851
|
+
private streamAllProperties;
|
|
852
|
+
private cleanUp;
|
|
851
853
|
}
|
|
852
|
-
export {};
|
|
853
854
|
import * as WEBIFC from "web-ifc";
|
|
854
|
-
import
|
|
855
|
-
import {
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
855
|
+
import { Components, Disposable, Event, Component } from "../../core";
|
|
856
|
+
import { IfcStreamingSettings, StreamedGeometries, StreamedAsset } from "./src";
|
|
857
|
+
export declare class IfcGeometryTiler extends Component implements Disposable {
|
|
858
|
+
static readonly uuid: "d9999a00-e1f5-4d3f-8cfe-c56e08609764";
|
|
859
|
+
onGeometryStreamed: Event<{
|
|
860
|
+
buffer: Uint8Array;
|
|
861
|
+
data: StreamedGeometries;
|
|
862
|
+
}>;
|
|
863
|
+
onAssetStreamed: Event<StreamedAsset[]>;
|
|
864
|
+
onProgress: Event<number>;
|
|
865
|
+
onIfcLoaded: Event<Uint8Array>;
|
|
866
|
+
/** {@link Disposable.onDisposed} */
|
|
867
|
+
readonly onDisposed: Event<unknown>;
|
|
868
|
+
settings: IfcStreamingSettings;
|
|
862
869
|
enabled: boolean;
|
|
870
|
+
webIfc: WEBIFC.IfcAPI;
|
|
871
|
+
private _spatialTree;
|
|
872
|
+
private _metaData;
|
|
873
|
+
private _visitedGeometries;
|
|
874
|
+
private _streamSerializer;
|
|
875
|
+
private _geometries;
|
|
876
|
+
private _geometryCount;
|
|
877
|
+
private _civil;
|
|
878
|
+
private _groupSerializer;
|
|
879
|
+
private _assets;
|
|
880
|
+
private _meshesWithHoles;
|
|
863
881
|
constructor(components: Components);
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
882
|
+
dispose(): void;
|
|
883
|
+
streamFromBuffer(data: Uint8Array): Promise<void>;
|
|
884
|
+
streamFromCallBack(loadCallback: WEBIFC.ModelLoadCallback): Promise<void>;
|
|
885
|
+
private readIfcFile;
|
|
886
|
+
private streamIfcFile;
|
|
887
|
+
private streamAllGeometries;
|
|
888
|
+
private cleanUp;
|
|
889
|
+
private getMesh;
|
|
890
|
+
private getGeometry;
|
|
891
|
+
private streamAssets;
|
|
892
|
+
private streamGeometries;
|
|
893
|
+
}
|
|
894
|
+
import * as THREE from "three";
|
|
895
|
+
import { Component, Components, Event, World } from "../core";
|
|
896
|
+
export interface VertexPickerConfig {
|
|
897
|
+
showOnlyVertex: boolean;
|
|
878
898
|
snapDistance: number;
|
|
879
899
|
previewElement: HTMLElement;
|
|
880
900
|
}
|
|
@@ -899,41 +919,15 @@ export declare class VertexPicker extends Component {
|
|
|
899
919
|
private getVertices;
|
|
900
920
|
private getVertex;
|
|
901
921
|
}
|
|
902
|
-
import * as WEBIFC from "web-ifc";
|
|
903
|
-
import { IfcItemsCategories } from "../../../ifc";
|
|
904
|
-
export declare class SpatialStructure {
|
|
905
|
-
itemsByFloor: IfcItemsCategories;
|
|
906
|
-
private _units;
|
|
907
|
-
setUp(webIfc: WEBIFC.IfcAPI): void;
|
|
908
|
-
cleanUp(): void;
|
|
909
|
-
}
|
|
910
|
-
import * as THREE from "three";
|
|
911
|
-
import { Component, Components } from "../../core";
|
|
912
|
-
export interface MeasureEdge {
|
|
913
|
-
distance: number;
|
|
914
|
-
points: THREE.Vector3[];
|
|
915
|
-
}
|
|
916
|
-
export declare class MeasurementUtils extends Component {
|
|
917
|
-
enabled: boolean;
|
|
918
|
-
static uuid: string;
|
|
919
|
-
constructor(components: Components);
|
|
920
|
-
getFace(mesh: THREE.InstancedMesh | THREE.Mesh, triangleIndex: number, instance?: number): {
|
|
921
|
-
edges: MeasureEdge[];
|
|
922
|
-
indices: Set<number>;
|
|
923
|
-
} | null;
|
|
924
|
-
static distanceFromPointToLine(point: THREE.Vector3, lineStart: THREE.Vector3, lineEnd: THREE.Vector3, clamp?: boolean): number;
|
|
925
|
-
private getFaceData;
|
|
926
|
-
getVerticesAndNormal(mesh: THREE.Mesh | THREE.InstancedMesh, faceIndex: number, instance: number | undefined): {
|
|
927
|
-
p1: THREE.Vector3;
|
|
928
|
-
p2: THREE.Vector3;
|
|
929
|
-
p3: THREE.Vector3;
|
|
930
|
-
faceNormal: THREE.Vector3;
|
|
931
|
-
};
|
|
932
|
-
private round;
|
|
933
|
-
}
|
|
934
922
|
export declare const IfcElements: {
|
|
935
923
|
[key: number]: string;
|
|
936
924
|
};
|
|
925
|
+
export declare class UUID {
|
|
926
|
+
private static _pattern;
|
|
927
|
+
private static _lut;
|
|
928
|
+
static create(): string;
|
|
929
|
+
static validate(uuid: string): void;
|
|
930
|
+
}
|
|
937
931
|
import * as THREE from "three";
|
|
938
932
|
import { Resizeable, Updateable, World, Event, Disposable } from "../../Types";
|
|
939
933
|
export declare class MiniMap implements Resizeable, Updateable, Disposable {
|
|
@@ -969,6 +963,13 @@ export declare class MiniMap implements Resizeable, Updateable, Disposable {
|
|
|
969
963
|
private updatePlanes;
|
|
970
964
|
}
|
|
971
965
|
export declare const GeometryTypes: Set<number>;
|
|
966
|
+
import * as WEBIFC from "web-ifc";
|
|
967
|
+
export interface IfcItemsCategories {
|
|
968
|
+
[itemID: number]: number;
|
|
969
|
+
}
|
|
970
|
+
export declare class IfcCategories {
|
|
971
|
+
getAll(webIfc: WEBIFC.IfcAPI, modelID: number): IfcItemsCategories;
|
|
972
|
+
}
|
|
972
973
|
import * as FRAGS from "@thatopen/fragments";
|
|
973
974
|
export declare class IfcPropertiesUtils {
|
|
974
975
|
static getUnits(group: FRAGS.FragmentsGroup): Promise<number>;
|
|
@@ -994,82 +995,16 @@ export declare class IfcPropertiesUtils {
|
|
|
994
995
|
static attributeExists(model: FRAGS.FragmentsGroup, expressID: number, attribute: string): Promise<boolean>;
|
|
995
996
|
static groupEntitiesByType(model: FRAGS.FragmentsGroup, expressIDs: Set<number> | number[]): Promise<Map<number, Set<number>>>;
|
|
996
997
|
}
|
|
997
|
-
import { InverseAttribute } from "./types";
|
|
998
|
-
export declare const relToAttributesMap: Map<number, {
|
|
999
|
-
forRelating: InverseAttribute;
|
|
1000
|
-
forRelated: InverseAttribute;
|
|
1001
|
-
}>;
|
|
1002
998
|
export declare const IfcCategoryMap: {
|
|
1003
999
|
[key: number]: string;
|
|
1004
1000
|
};
|
|
1005
1001
|
import * as WEBIFC from "web-ifc";
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
import * as THREE from "three";
|
|
1013
|
-
import { Disposable, Event } from "../../Types";
|
|
1014
|
-
/**
|
|
1015
|
-
* A helper to easily get the real position of the mouse in the Three.js canvas
|
|
1016
|
-
* to work with tools like the
|
|
1017
|
-
* [raycaster](https://threejs.org/docs/#api/en/core/Raycaster), even if it has
|
|
1018
|
-
* been transformed through CSS or doesn't occupy the whole screen.
|
|
1019
|
-
*/
|
|
1020
|
-
export declare class Mouse implements Disposable {
|
|
1021
|
-
dom: HTMLCanvasElement;
|
|
1022
|
-
private _event?;
|
|
1023
|
-
private _position;
|
|
1024
|
-
/** {@link Disposable.onDisposed} */
|
|
1025
|
-
readonly onDisposed: Event<unknown>;
|
|
1026
|
-
constructor(dom: HTMLCanvasElement);
|
|
1027
|
-
/**
|
|
1028
|
-
* The real position of the mouse of the Three.js canvas.
|
|
1029
|
-
*/
|
|
1030
|
-
get position(): THREE.Vector2;
|
|
1031
|
-
/** {@link Disposable.dispose} */
|
|
1032
|
-
dispose(): void;
|
|
1033
|
-
private getPositionY;
|
|
1034
|
-
private getPositionX;
|
|
1035
|
-
private updateMouseInfo;
|
|
1036
|
-
private setupEvents;
|
|
1037
|
-
}
|
|
1038
|
-
import * as THREE from "three";
|
|
1039
|
-
import { Components } from "../../Components";
|
|
1040
|
-
import { Event, World, Disposable } from "../../Types";
|
|
1041
|
-
import { Mouse } from "./mouse";
|
|
1042
|
-
/**
|
|
1043
|
-
* A simple [raycaster](https://threejs.org/docs/#api/en/core/Raycaster)
|
|
1044
|
-
* that allows to easily get items from the scene using the mouse and touch
|
|
1045
|
-
* events.
|
|
1046
|
-
*/
|
|
1047
|
-
export declare class SimpleRaycaster implements Disposable {
|
|
1048
|
-
/** {@link Component.enabled} */
|
|
1049
|
-
enabled: boolean;
|
|
1050
|
-
components: Components;
|
|
1051
|
-
/** {@link Disposable.onDisposed} */
|
|
1052
|
-
readonly onDisposed: Event<unknown>;
|
|
1053
|
-
/** The position of the mouse in the screen. */
|
|
1054
|
-
readonly mouse: Mouse;
|
|
1055
|
-
readonly three: THREE.Raycaster;
|
|
1056
|
-
world: World;
|
|
1057
|
-
constructor(components: Components, world: World);
|
|
1058
|
-
/** {@link Disposable.dispose} */
|
|
1059
|
-
dispose(): void;
|
|
1060
|
-
/**
|
|
1061
|
-
* Throws a ray from the camera to the mouse or touch event point and returns
|
|
1062
|
-
* the first item found. This also takes into account the clipping planes
|
|
1063
|
-
* used by the renderer.
|
|
1064
|
-
*
|
|
1065
|
-
* @param items - the [meshes](https://threejs.org/docs/#api/en/objects/Mesh)
|
|
1066
|
-
* to query. If not provided, it will query all the meshes stored in
|
|
1067
|
-
* {@link Components.meshes}.
|
|
1068
|
-
*/
|
|
1069
|
-
castRay(items?: THREE.Object3D[]): THREE.Intersection | null;
|
|
1070
|
-
castRayFromVector(origin: THREE.Vector3, direction: THREE.Vector3, items?: THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>[]): THREE.Intersection<THREE.Object3D<THREE.Object3DEventMap>> | null;
|
|
1071
|
-
private intersect;
|
|
1072
|
-
private filterClippingPlanes;
|
|
1002
|
+
import { IfcItemsCategories } from "../../../ifc";
|
|
1003
|
+
export declare class SpatialStructure {
|
|
1004
|
+
itemsByFloor: IfcItemsCategories;
|
|
1005
|
+
private _units;
|
|
1006
|
+
setUp(webIfc: WEBIFC.IfcAPI): void;
|
|
1007
|
+
cleanUp(): void;
|
|
1073
1008
|
}
|
|
1074
1009
|
import * as THREE from "three";
|
|
1075
1010
|
import { CullerRenderer, CullerRendererSettings } from "./culler-renderer";
|
|
@@ -1099,6 +1034,79 @@ export declare class MeshCullerRenderer extends CullerRenderer {
|
|
|
1099
1034
|
private handleWorkerMessage;
|
|
1100
1035
|
private getAvailableMaterial;
|
|
1101
1036
|
}
|
|
1037
|
+
export declare function readPixelsAsync(gl: WebGL2RenderingContext, x: number, y: number, w: number, h: number, format: any, type: any, dest: ArrayBufferView): Promise<ArrayBufferView>;
|
|
1038
|
+
/// <reference types="node" />
|
|
1039
|
+
import * as THREE from "three";
|
|
1040
|
+
import { Hideable, Event, World } from "../../Types";
|
|
1041
|
+
import { Components } from "../../Components";
|
|
1042
|
+
export interface GridConfig {
|
|
1043
|
+
color: THREE.Color;
|
|
1044
|
+
size1: number;
|
|
1045
|
+
size2: number;
|
|
1046
|
+
distance: number;
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* An infinite grid. Created by
|
|
1050
|
+
* [fyrestar](https://github.com/Fyrestar/THREE.InfiniteGridHelper)
|
|
1051
|
+
* and translated to typescript by
|
|
1052
|
+
* [dkaraush](https://github.com/dkaraush/THREE.InfiniteGridHelper/blob/master/InfiniteGridHelper.ts).
|
|
1053
|
+
*/
|
|
1054
|
+
export declare class SimpleGrid implements Hideable, Disposable {
|
|
1055
|
+
/** {@link Disposable.onDisposed} */
|
|
1056
|
+
readonly onDisposed: Event<unknown>;
|
|
1057
|
+
world: World;
|
|
1058
|
+
components: Components;
|
|
1059
|
+
/** {@link Hideable.visible} */
|
|
1060
|
+
get visible(): boolean;
|
|
1061
|
+
/** {@link Hideable.visible} */
|
|
1062
|
+
set visible(visible: boolean);
|
|
1063
|
+
/** The material of the grid. */
|
|
1064
|
+
get material(): THREE.ShaderMaterial;
|
|
1065
|
+
/**
|
|
1066
|
+
* Whether the grid should fade away with distance. Recommended to be true for
|
|
1067
|
+
* perspective cameras and false for orthographic cameras.
|
|
1068
|
+
*/
|
|
1069
|
+
get fade(): boolean;
|
|
1070
|
+
/**
|
|
1071
|
+
* Whether the grid should fade away with distance. Recommended to be true for
|
|
1072
|
+
* perspective cameras and false for orthographic cameras.
|
|
1073
|
+
*/
|
|
1074
|
+
set fade(active: boolean);
|
|
1075
|
+
readonly three: THREE.Mesh;
|
|
1076
|
+
private _fade;
|
|
1077
|
+
constructor(components: Components, world: World, config: GridConfig);
|
|
1078
|
+
[Symbol.dispose](): void;
|
|
1079
|
+
/** {@link Disposable.dispose} */
|
|
1080
|
+
dispose(): void;
|
|
1081
|
+
private setupEvents;
|
|
1082
|
+
private updateZoom;
|
|
1083
|
+
}
|
|
1084
|
+
import * as THREE from "three";
|
|
1085
|
+
import { Disposable, Event } from "../../Types";
|
|
1086
|
+
/**
|
|
1087
|
+
* A helper to easily get the real position of the mouse in the Three.js canvas
|
|
1088
|
+
* to work with tools like the
|
|
1089
|
+
* [raycaster](https://threejs.org/docs/#api/en/core/Raycaster), even if it has
|
|
1090
|
+
* been transformed through CSS or doesn't occupy the whole screen.
|
|
1091
|
+
*/
|
|
1092
|
+
export declare class Mouse implements Disposable {
|
|
1093
|
+
dom: HTMLCanvasElement;
|
|
1094
|
+
private _event?;
|
|
1095
|
+
private _position;
|
|
1096
|
+
/** {@link Disposable.onDisposed} */
|
|
1097
|
+
readonly onDisposed: Event<unknown>;
|
|
1098
|
+
constructor(dom: HTMLCanvasElement);
|
|
1099
|
+
/**
|
|
1100
|
+
* The real position of the mouse of the Three.js canvas.
|
|
1101
|
+
*/
|
|
1102
|
+
get position(): THREE.Vector2;
|
|
1103
|
+
/** {@link Disposable.dispose} */
|
|
1104
|
+
dispose(): void;
|
|
1105
|
+
private getPositionY;
|
|
1106
|
+
private getPositionX;
|
|
1107
|
+
private updateMouseInfo;
|
|
1108
|
+
private setupEvents;
|
|
1109
|
+
}
|
|
1102
1110
|
import * as THREE from "three";
|
|
1103
1111
|
import { Components } from "../../Components";
|
|
1104
1112
|
import { AsyncEvent, Event, World } from "../../Types";
|
|
@@ -1166,38 +1174,11 @@ export declare class CullerRenderer {
|
|
|
1166
1174
|
protected decreaseColor(): void;
|
|
1167
1175
|
private applySettings;
|
|
1168
1176
|
}
|
|
1169
|
-
import
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
* ([Objec3Ds](https://threejs.org/docs/#api/en/core/Object3D).
|
|
1175
|
-
*/
|
|
1176
|
-
export declare class SimpleRenderer extends BaseRenderer {
|
|
1177
|
-
enabled: boolean;
|
|
1178
|
-
/** The HTML container of the THREE.js canvas where the scene is rendered. */
|
|
1179
|
-
container: HTMLElement;
|
|
1180
|
-
three: THREE.WebGLRenderer;
|
|
1181
|
-
protected _canvas: HTMLCanvasElement;
|
|
1182
|
-
protected _parameters?: Partial<THREE.WebGLRendererParameters>;
|
|
1183
|
-
protected _resizeObserver: ResizeObserver | null;
|
|
1184
|
-
protected onContainerUpdated: Event<unknown>;
|
|
1185
|
-
private _resizing;
|
|
1186
|
-
constructor(components: Components, container: HTMLElement, parameters?: Partial<THREE.WebGLRendererParameters>);
|
|
1187
|
-
/** {@link Updateable.update} */
|
|
1188
|
-
update(): void;
|
|
1189
|
-
/** {@link Disposable.dispose} */
|
|
1190
|
-
dispose(): void;
|
|
1191
|
-
/** {@link Resizeable.getSize}. */
|
|
1192
|
-
getSize(): THREE.Vector2;
|
|
1193
|
-
/** {@link Resizeable.resize} */
|
|
1194
|
-
resize: (size?: THREE.Vector2) => void;
|
|
1195
|
-
setupEvents(active: boolean): void;
|
|
1196
|
-
private resizeEvent;
|
|
1197
|
-
private setupRenderer;
|
|
1198
|
-
private onContextLost;
|
|
1199
|
-
private onContextBack;
|
|
1200
|
-
}
|
|
1177
|
+
import { InverseAttribute } from "./types";
|
|
1178
|
+
export declare const relToAttributesMap: Map<number, {
|
|
1179
|
+
forRelating: InverseAttribute;
|
|
1180
|
+
forRelated: InverseAttribute;
|
|
1181
|
+
}>;
|
|
1201
1182
|
import * as THREE from "three";
|
|
1202
1183
|
import { Event, Base, World, BaseScene, BaseCamera, BaseRenderer } from "../../Types";
|
|
1203
1184
|
import { Components } from "../../Components";
|
|
@@ -1226,6 +1207,313 @@ export declare class SimpleWorld<T extends BaseScene = BaseScene, U extends Base
|
|
|
1226
1207
|
update(delta?: number): void;
|
|
1227
1208
|
dispose(disposeResources?: boolean): void;
|
|
1228
1209
|
}
|
|
1210
|
+
import * as THREE from "three";
|
|
1211
|
+
import { Components } from "../../Components";
|
|
1212
|
+
import { Event, World, Disposable } from "../../Types";
|
|
1213
|
+
import { Mouse } from "./mouse";
|
|
1214
|
+
/**
|
|
1215
|
+
* A simple [raycaster](https://threejs.org/docs/#api/en/core/Raycaster)
|
|
1216
|
+
* that allows to easily get items from the scene using the mouse and touch
|
|
1217
|
+
* events.
|
|
1218
|
+
*/
|
|
1219
|
+
export declare class SimpleRaycaster implements Disposable {
|
|
1220
|
+
/** {@link Component.enabled} */
|
|
1221
|
+
enabled: boolean;
|
|
1222
|
+
components: Components;
|
|
1223
|
+
/** {@link Disposable.onDisposed} */
|
|
1224
|
+
readonly onDisposed: Event<unknown>;
|
|
1225
|
+
/** The position of the mouse in the screen. */
|
|
1226
|
+
readonly mouse: Mouse;
|
|
1227
|
+
readonly three: THREE.Raycaster;
|
|
1228
|
+
world: World;
|
|
1229
|
+
constructor(components: Components, world: World);
|
|
1230
|
+
/** {@link Disposable.dispose} */
|
|
1231
|
+
dispose(): void;
|
|
1232
|
+
/**
|
|
1233
|
+
* Throws a ray from the camera to the mouse or touch event point and returns
|
|
1234
|
+
* the first item found. This also takes into account the clipping planes
|
|
1235
|
+
* used by the renderer.
|
|
1236
|
+
*
|
|
1237
|
+
* @param items - the [meshes](https://threejs.org/docs/#api/en/objects/Mesh)
|
|
1238
|
+
* to query. If not provided, it will query all the meshes stored in
|
|
1239
|
+
* {@link Components.meshes}.
|
|
1240
|
+
*/
|
|
1241
|
+
castRay(items?: THREE.Object3D[]): THREE.Intersection | null;
|
|
1242
|
+
castRayFromVector(origin: THREE.Vector3, direction: THREE.Vector3, items?: THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>[]): THREE.Intersection<THREE.Object3D<THREE.Object3DEventMap>> | null;
|
|
1243
|
+
private intersect;
|
|
1244
|
+
private filterClippingPlanes;
|
|
1245
|
+
}
|
|
1246
|
+
import * as THREE from "three";
|
|
1247
|
+
import { Hideable, Disposable, Event, World } from "../../Types";
|
|
1248
|
+
import { Components } from "../../Components";
|
|
1249
|
+
/**
|
|
1250
|
+
* Each of the planes created by {@link SimpleClipper}.
|
|
1251
|
+
*/
|
|
1252
|
+
export declare class SimplePlane implements Disposable, Hideable {
|
|
1253
|
+
/** Event that fires when the user starts dragging a clipping plane. */
|
|
1254
|
+
readonly onDraggingStarted: Event<unknown>;
|
|
1255
|
+
/** Event that fires when the user stops dragging a clipping plane. */
|
|
1256
|
+
readonly onDraggingEnded: Event<unknown>;
|
|
1257
|
+
/** {@link Disposable.onDisposed} */
|
|
1258
|
+
readonly onDisposed: Event<unknown>;
|
|
1259
|
+
readonly normal: THREE.Vector3;
|
|
1260
|
+
readonly origin: THREE.Vector3;
|
|
1261
|
+
readonly three: THREE.Plane;
|
|
1262
|
+
protected readonly _helper: THREE.Object3D;
|
|
1263
|
+
protected _visible: boolean;
|
|
1264
|
+
protected _enabled: boolean;
|
|
1265
|
+
components: Components;
|
|
1266
|
+
world: World;
|
|
1267
|
+
private _controlsActive;
|
|
1268
|
+
private readonly _arrowBoundBox;
|
|
1269
|
+
private readonly _planeMesh;
|
|
1270
|
+
private readonly _controls;
|
|
1271
|
+
private readonly _hiddenMaterial;
|
|
1272
|
+
get enabled(): boolean;
|
|
1273
|
+
/** {@link Component.enabled} */
|
|
1274
|
+
set enabled(state: boolean);
|
|
1275
|
+
/** {@link Hideable.visible } */
|
|
1276
|
+
get visible(): boolean;
|
|
1277
|
+
/** {@link Hideable.visible } */
|
|
1278
|
+
set visible(state: boolean);
|
|
1279
|
+
/** The meshes used for raycasting */
|
|
1280
|
+
get meshes(): THREE.Mesh[];
|
|
1281
|
+
/** The material of the clipping plane representation. */
|
|
1282
|
+
get planeMaterial(): THREE.Material | THREE.Material[];
|
|
1283
|
+
/** The material of the clipping plane representation. */
|
|
1284
|
+
set planeMaterial(material: THREE.Material | THREE.Material[]);
|
|
1285
|
+
/** The size of the clipping plane representation. */
|
|
1286
|
+
get size(): number;
|
|
1287
|
+
/** Sets the size of the clipping plane representation. */
|
|
1288
|
+
set size(size: number);
|
|
1289
|
+
get helper(): THREE.Object3D<THREE.Object3DEventMap>;
|
|
1290
|
+
constructor(components: Components, world: World, origin: THREE.Vector3, normal: THREE.Vector3, material: THREE.Material, size?: number, activateControls?: boolean);
|
|
1291
|
+
setFromNormalAndCoplanarPoint(normal: THREE.Vector3, point: THREE.Vector3): void;
|
|
1292
|
+
/** {@link Updateable.update} */
|
|
1293
|
+
update: () => void;
|
|
1294
|
+
/** {@link Disposable.dispose} */
|
|
1295
|
+
dispose(): void;
|
|
1296
|
+
private reset;
|
|
1297
|
+
protected toggleControls(state: boolean): void;
|
|
1298
|
+
private newTransformControls;
|
|
1299
|
+
private initializeControls;
|
|
1300
|
+
private createArrowBoundingBox;
|
|
1301
|
+
private changeDrag;
|
|
1302
|
+
private notifyDraggingChanged;
|
|
1303
|
+
private preventCameraMovement;
|
|
1304
|
+
private newHelper;
|
|
1305
|
+
private static newPlaneMesh;
|
|
1306
|
+
}
|
|
1307
|
+
import * as THREE from "three";
|
|
1308
|
+
import { BaseScene, Configurable, Event } from "../../Types";
|
|
1309
|
+
import { Components } from "../../Components";
|
|
1310
|
+
export interface SimpleSceneConfig {
|
|
1311
|
+
directionalLight: {
|
|
1312
|
+
color: THREE.Color;
|
|
1313
|
+
intensity: number;
|
|
1314
|
+
position: THREE.Vector3;
|
|
1315
|
+
};
|
|
1316
|
+
ambientLight: {
|
|
1317
|
+
color: THREE.Color;
|
|
1318
|
+
intensity: number;
|
|
1319
|
+
};
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* A basic 3D [scene](https://threejs.org/docs/#api/en/scenes/Scene) to add
|
|
1323
|
+
* objects hierarchically, and easily dispose them when you are finished with it.
|
|
1324
|
+
* @noInheritDoc
|
|
1325
|
+
*/
|
|
1326
|
+
export declare class SimpleScene extends BaseScene implements Configurable<{}> {
|
|
1327
|
+
/** {@link Configurable.isSetup} */
|
|
1328
|
+
isSetup: boolean;
|
|
1329
|
+
three: THREE.Scene;
|
|
1330
|
+
/** {@link Configurable.onSetup} */
|
|
1331
|
+
readonly onSetup: Event<SimpleScene>;
|
|
1332
|
+
config: Required<SimpleSceneConfig>;
|
|
1333
|
+
constructor(components: Components);
|
|
1334
|
+
/** Creates a simple and nice default set up for the scene (e.g. lighting). */
|
|
1335
|
+
setup(config?: Partial<SimpleSceneConfig>): void;
|
|
1336
|
+
}
|
|
1337
|
+
import { NavigationMode } from "./types";
|
|
1338
|
+
import { OrthoPerspectiveCamera } from "../index";
|
|
1339
|
+
/**
|
|
1340
|
+
* A {@link NavigationMode} that allows first person navigation,
|
|
1341
|
+
* simulating FPS video games.
|
|
1342
|
+
*/
|
|
1343
|
+
export declare class FirstPersonMode implements NavigationMode {
|
|
1344
|
+
private camera;
|
|
1345
|
+
/** {@link NavigationMode.enabled} */
|
|
1346
|
+
enabled: boolean;
|
|
1347
|
+
/** {@link NavigationMode.id} */
|
|
1348
|
+
readonly id = "FirstPerson";
|
|
1349
|
+
constructor(camera: OrthoPerspectiveCamera);
|
|
1350
|
+
/** {@link NavigationMode.set} */
|
|
1351
|
+
set(active: boolean): void;
|
|
1352
|
+
private setupFirstPersonCamera;
|
|
1353
|
+
}
|
|
1354
|
+
import * as THREE from "three";
|
|
1355
|
+
import CameraControls from "camera-controls";
|
|
1356
|
+
import { Disposable, Updateable, Event, BaseCamera } from "../../Types";
|
|
1357
|
+
import { Components } from "../../Components";
|
|
1358
|
+
/**
|
|
1359
|
+
* A basic camera that uses
|
|
1360
|
+
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls) to
|
|
1361
|
+
* easily control the camera in 2D and 3D. Check out it's API to find out
|
|
1362
|
+
* what features it offers.
|
|
1363
|
+
*/
|
|
1364
|
+
export declare class SimpleCamera extends BaseCamera implements Updateable, Disposable {
|
|
1365
|
+
/** {@link Updateable.onBeforeUpdate} */
|
|
1366
|
+
readonly onBeforeUpdate: Event<SimpleCamera>;
|
|
1367
|
+
/** {@link Updateable.onAfterUpdate} */
|
|
1368
|
+
readonly onAfterUpdate: Event<SimpleCamera>;
|
|
1369
|
+
readonly onAspectUpdated: Event<unknown>;
|
|
1370
|
+
/** {@link Disposable.onDisposed} */
|
|
1371
|
+
readonly onDisposed: Event<string>;
|
|
1372
|
+
three: THREE.PerspectiveCamera | THREE.OrthographicCamera;
|
|
1373
|
+
private _allControls;
|
|
1374
|
+
/**
|
|
1375
|
+
* The object that controls the camera. An instance of
|
|
1376
|
+
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls).
|
|
1377
|
+
* Transforming the camera directly will have no effect: you need to use this
|
|
1378
|
+
* object to move, rotate, look at objects, etc.
|
|
1379
|
+
*/
|
|
1380
|
+
get controls(): CameraControls;
|
|
1381
|
+
/** {@link Component.enabled} */
|
|
1382
|
+
get enabled(): boolean;
|
|
1383
|
+
/** {@link Component.enabled} */
|
|
1384
|
+
set enabled(enabled: boolean);
|
|
1385
|
+
constructor(components: Components);
|
|
1386
|
+
/** {@link Disposable.dispose} */
|
|
1387
|
+
dispose(): void;
|
|
1388
|
+
/** {@link Updateable.update} */
|
|
1389
|
+
update(_delta: number): void;
|
|
1390
|
+
/**
|
|
1391
|
+
* Updates the aspect of the camera to match the size of the
|
|
1392
|
+
* {@link Components.renderer}.
|
|
1393
|
+
*/
|
|
1394
|
+
updateAspect: () => void;
|
|
1395
|
+
private setupCamera;
|
|
1396
|
+
private newCameraControls;
|
|
1397
|
+
private setupEvents;
|
|
1398
|
+
private static getSubsetOfThree;
|
|
1399
|
+
}
|
|
1400
|
+
import * as THREE from "three";
|
|
1401
|
+
import { CameraProjection } from "./types";
|
|
1402
|
+
import { Event } from "../../Types";
|
|
1403
|
+
import { OrthoPerspectiveCamera } from "../index";
|
|
1404
|
+
/**
|
|
1405
|
+
* Object to control the {@link CameraProjection} of the {@link OrthoPerspectiveCamera}.
|
|
1406
|
+
*/
|
|
1407
|
+
export declare class ProjectionManager {
|
|
1408
|
+
/**
|
|
1409
|
+
* Event that fires when the {@link CameraProjection} changes.
|
|
1410
|
+
*/
|
|
1411
|
+
readonly onChanged: Event<THREE.PerspectiveCamera | THREE.OrthographicCamera>;
|
|
1412
|
+
current: CameraProjection;
|
|
1413
|
+
camera: THREE.PerspectiveCamera | THREE.OrthographicCamera;
|
|
1414
|
+
private _component;
|
|
1415
|
+
private _previousDistance;
|
|
1416
|
+
/** Match Ortho zoom with Perspective distance when changing projection mode */
|
|
1417
|
+
matchOrthoDistanceEnabled: boolean;
|
|
1418
|
+
constructor(camera: OrthoPerspectiveCamera);
|
|
1419
|
+
/**
|
|
1420
|
+
* Sets the {@link CameraProjection} of the {@link OrthoPerspectiveCamera}.
|
|
1421
|
+
*
|
|
1422
|
+
* @param projection - the new projection to set. If it is the current projection,
|
|
1423
|
+
* it will have no effect.
|
|
1424
|
+
*/
|
|
1425
|
+
set(projection: CameraProjection): Promise<void>;
|
|
1426
|
+
/**
|
|
1427
|
+
* Changes the current {@link CameraProjection} from Ortographic to Perspective
|
|
1428
|
+
* and vice versa.
|
|
1429
|
+
*/
|
|
1430
|
+
toggle(): Promise<void>;
|
|
1431
|
+
private setOrthoCamera;
|
|
1432
|
+
private getPerspectiveDims;
|
|
1433
|
+
private setupOrthoCamera;
|
|
1434
|
+
private getDistance;
|
|
1435
|
+
private setPerspectiveCamera;
|
|
1436
|
+
}
|
|
1437
|
+
import { NavigationMode } from "./types";
|
|
1438
|
+
import { OrthoPerspectiveCamera } from "../index";
|
|
1439
|
+
/**
|
|
1440
|
+
* A {@link NavigationMode} that allows to navigate floorplans in 2D,
|
|
1441
|
+
* like many BIM tools.
|
|
1442
|
+
*/
|
|
1443
|
+
export declare class PlanMode implements NavigationMode {
|
|
1444
|
+
private camera;
|
|
1445
|
+
/** {@link NavigationMode.enabled} */
|
|
1446
|
+
enabled: boolean;
|
|
1447
|
+
/** {@link NavigationMode.id} */
|
|
1448
|
+
readonly id = "Plan";
|
|
1449
|
+
private mouseAction1?;
|
|
1450
|
+
private mouseAction2?;
|
|
1451
|
+
private mouseInitialized;
|
|
1452
|
+
private readonly defaultAzimuthSpeed;
|
|
1453
|
+
private readonly defaultPolarSpeed;
|
|
1454
|
+
constructor(camera: OrthoPerspectiveCamera);
|
|
1455
|
+
/** {@link NavigationMode.set} */
|
|
1456
|
+
set(active: boolean): void;
|
|
1457
|
+
}
|
|
1458
|
+
/**
|
|
1459
|
+
* The projection system of the camera.
|
|
1460
|
+
*/
|
|
1461
|
+
export type CameraProjection = "Perspective" | "Orthographic";
|
|
1462
|
+
/**
|
|
1463
|
+
* The extensible list of supported navigation modes.
|
|
1464
|
+
*/
|
|
1465
|
+
export type NavModeID = "Orbit" | "FirstPerson" | "Plan";
|
|
1466
|
+
/**
|
|
1467
|
+
* An object that determines the behavior of the camera controls
|
|
1468
|
+
* and the user input (e.g. 2D floor plan mode, first person mode, etc).
|
|
1469
|
+
*/
|
|
1470
|
+
export interface NavigationMode {
|
|
1471
|
+
/** The unique ID of this navigation mode. */
|
|
1472
|
+
id: NavModeID;
|
|
1473
|
+
/**
|
|
1474
|
+
* Enable or disable this navigation mode.
|
|
1475
|
+
* When a new navigation mode is enabled, the previous navigation mode
|
|
1476
|
+
* must be disabled.
|
|
1477
|
+
*
|
|
1478
|
+
* @param active - whether to enable or disable this mode.
|
|
1479
|
+
* @param options - any additional data required to enable or disable it.
|
|
1480
|
+
* */
|
|
1481
|
+
set: (active: boolean, options?: any) => void;
|
|
1482
|
+
/** Whether this navigation mode is active or not. */
|
|
1483
|
+
enabled: boolean;
|
|
1484
|
+
}
|
|
1485
|
+
import * as THREE from "three";
|
|
1486
|
+
import { BaseRenderer, Event } from "../../Types";
|
|
1487
|
+
import { Components } from "../../Components";
|
|
1488
|
+
/**
|
|
1489
|
+
* A basic renderer capable of rendering
|
|
1490
|
+
* ([Objec3Ds](https://threejs.org/docs/#api/en/core/Object3D).
|
|
1491
|
+
*/
|
|
1492
|
+
export declare class SimpleRenderer extends BaseRenderer {
|
|
1493
|
+
enabled: boolean;
|
|
1494
|
+
/** The HTML container of the THREE.js canvas where the scene is rendered. */
|
|
1495
|
+
container: HTMLElement;
|
|
1496
|
+
three: THREE.WebGLRenderer;
|
|
1497
|
+
protected _canvas: HTMLCanvasElement;
|
|
1498
|
+
protected _parameters?: Partial<THREE.WebGLRendererParameters>;
|
|
1499
|
+
protected _resizeObserver: ResizeObserver | null;
|
|
1500
|
+
protected onContainerUpdated: Event<unknown>;
|
|
1501
|
+
private _resizing;
|
|
1502
|
+
constructor(components: Components, container: HTMLElement, parameters?: Partial<THREE.WebGLRendererParameters>);
|
|
1503
|
+
/** {@link Updateable.update} */
|
|
1504
|
+
update(): void;
|
|
1505
|
+
/** {@link Disposable.dispose} */
|
|
1506
|
+
dispose(): void;
|
|
1507
|
+
/** {@link Resizeable.getSize}. */
|
|
1508
|
+
getSize(): THREE.Vector2;
|
|
1509
|
+
/** {@link Resizeable.resize} */
|
|
1510
|
+
resize: (size?: THREE.Vector2) => void;
|
|
1511
|
+
setupEvents(active: boolean): void;
|
|
1512
|
+
private resizeEvent;
|
|
1513
|
+
private setupRenderer;
|
|
1514
|
+
private onContextLost;
|
|
1515
|
+
private onContextBack;
|
|
1516
|
+
}
|
|
1229
1517
|
/**
|
|
1230
1518
|
* Simple event handler by
|
|
1231
1519
|
* [Jason Kleban](https://gist.github.com/JasonKleban/50cee44960c225ac1993c922563aa540).
|
|
@@ -1260,82 +1548,22 @@ export declare class Event<T> {
|
|
|
1260
1548
|
reset(): void;
|
|
1261
1549
|
private handlers;
|
|
1262
1550
|
}
|
|
1263
|
-
import
|
|
1264
|
-
import {
|
|
1265
|
-
import { Components } from "../../Components";
|
|
1266
|
-
export interface SimpleSceneConfig {
|
|
1267
|
-
directionalLight: {
|
|
1268
|
-
color: THREE.Color;
|
|
1269
|
-
intensity: number;
|
|
1270
|
-
position: THREE.Vector3;
|
|
1271
|
-
};
|
|
1272
|
-
ambientLight: {
|
|
1273
|
-
color: THREE.Color;
|
|
1274
|
-
intensity: number;
|
|
1275
|
-
};
|
|
1276
|
-
}
|
|
1277
|
-
/**
|
|
1278
|
-
* A basic 3D [scene](https://threejs.org/docs/#api/en/scenes/Scene) to add
|
|
1279
|
-
* objects hierarchically, and easily dispose them when you are finished with it.
|
|
1280
|
-
* @noInheritDoc
|
|
1281
|
-
*/
|
|
1282
|
-
export declare class SimpleScene extends BaseScene implements Configurable<{}> {
|
|
1283
|
-
/** {@link Configurable.isSetup} */
|
|
1284
|
-
isSetup: boolean;
|
|
1285
|
-
three: THREE.Scene;
|
|
1286
|
-
/** {@link Configurable.onSetup} */
|
|
1287
|
-
readonly onSetup: Event<SimpleScene>;
|
|
1288
|
-
config: Required<SimpleSceneConfig>;
|
|
1289
|
-
constructor(components: Components);
|
|
1290
|
-
/** Creates a simple and nice default set up for the scene (e.g. lighting). */
|
|
1291
|
-
setup(config?: Partial<SimpleSceneConfig>): void;
|
|
1292
|
-
}
|
|
1293
|
-
export declare function readPixelsAsync(gl: WebGL2RenderingContext, x: number, y: number, w: number, h: number, format: any, type: any, dest: ArrayBufferView): Promise<ArrayBufferView>;
|
|
1294
|
-
/// <reference types="node" />
|
|
1295
|
-
import * as THREE from "three";
|
|
1296
|
-
import { Hideable, Event, World } from "../../Types";
|
|
1297
|
-
import { Components } from "../../Components";
|
|
1298
|
-
export interface GridConfig {
|
|
1299
|
-
color: THREE.Color;
|
|
1300
|
-
size1: number;
|
|
1301
|
-
size2: number;
|
|
1302
|
-
distance: number;
|
|
1303
|
-
}
|
|
1551
|
+
import { NavigationMode } from "./types";
|
|
1552
|
+
import { OrthoPerspectiveCamera } from "../index";
|
|
1304
1553
|
/**
|
|
1305
|
-
*
|
|
1306
|
-
*
|
|
1307
|
-
* and translated to typescript by
|
|
1308
|
-
* [dkaraush](https://github.com/dkaraush/THREE.InfiniteGridHelper/blob/master/InfiniteGridHelper.ts).
|
|
1554
|
+
* A {@link NavigationMode} that allows 3D navigation and panning
|
|
1555
|
+
* like in many 3D and CAD softwares.
|
|
1309
1556
|
*/
|
|
1310
|
-
export declare class
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
/** {@link
|
|
1318
|
-
set
|
|
1319
|
-
|
|
1320
|
-
get material(): THREE.ShaderMaterial;
|
|
1321
|
-
/**
|
|
1322
|
-
* Whether the grid should fade away with distance. Recommended to be true for
|
|
1323
|
-
* perspective cameras and false for orthographic cameras.
|
|
1324
|
-
*/
|
|
1325
|
-
get fade(): boolean;
|
|
1326
|
-
/**
|
|
1327
|
-
* Whether the grid should fade away with distance. Recommended to be true for
|
|
1328
|
-
* perspective cameras and false for orthographic cameras.
|
|
1329
|
-
*/
|
|
1330
|
-
set fade(active: boolean);
|
|
1331
|
-
readonly three: THREE.Mesh;
|
|
1332
|
-
private _fade;
|
|
1333
|
-
constructor(components: Components, world: World, config: GridConfig);
|
|
1334
|
-
[Symbol.dispose](): void;
|
|
1335
|
-
/** {@link Disposable.dispose} */
|
|
1336
|
-
dispose(): void;
|
|
1337
|
-
private setupEvents;
|
|
1338
|
-
private updateZoom;
|
|
1557
|
+
export declare class OrbitMode implements NavigationMode {
|
|
1558
|
+
camera: OrthoPerspectiveCamera;
|
|
1559
|
+
/** {@link NavigationMode.enabled} */
|
|
1560
|
+
enabled: boolean;
|
|
1561
|
+
/** {@link NavigationMode.id} */
|
|
1562
|
+
readonly id = "Orbit";
|
|
1563
|
+
constructor(camera: OrthoPerspectiveCamera);
|
|
1564
|
+
/** {@link NavigationMode.set} */
|
|
1565
|
+
set(active: boolean): void;
|
|
1566
|
+
private activateOrbitControls;
|
|
1339
1567
|
}
|
|
1340
1568
|
/**
|
|
1341
1569
|
* Simple event handler by
|
|
@@ -1371,113 +1599,6 @@ export declare class AsyncEvent<T> {
|
|
|
1371
1599
|
reset(): void;
|
|
1372
1600
|
private handlers;
|
|
1373
1601
|
}
|
|
1374
|
-
import * as THREE from "three";
|
|
1375
|
-
import { Hideable, Disposable, Event, World } from "../../Types";
|
|
1376
|
-
import { Components } from "../../Components";
|
|
1377
|
-
/**
|
|
1378
|
-
* Each of the planes created by {@link SimpleClipper}.
|
|
1379
|
-
*/
|
|
1380
|
-
export declare class SimplePlane implements Disposable, Hideable {
|
|
1381
|
-
/** Event that fires when the user starts dragging a clipping plane. */
|
|
1382
|
-
readonly onDraggingStarted: Event<unknown>;
|
|
1383
|
-
/** Event that fires when the user stops dragging a clipping plane. */
|
|
1384
|
-
readonly onDraggingEnded: Event<unknown>;
|
|
1385
|
-
/** {@link Disposable.onDisposed} */
|
|
1386
|
-
readonly onDisposed: Event<unknown>;
|
|
1387
|
-
readonly normal: THREE.Vector3;
|
|
1388
|
-
readonly origin: THREE.Vector3;
|
|
1389
|
-
readonly three: THREE.Plane;
|
|
1390
|
-
protected readonly _helper: THREE.Object3D;
|
|
1391
|
-
protected _visible: boolean;
|
|
1392
|
-
protected _enabled: boolean;
|
|
1393
|
-
components: Components;
|
|
1394
|
-
world: World;
|
|
1395
|
-
private _controlsActive;
|
|
1396
|
-
private readonly _arrowBoundBox;
|
|
1397
|
-
private readonly _planeMesh;
|
|
1398
|
-
private readonly _controls;
|
|
1399
|
-
private readonly _hiddenMaterial;
|
|
1400
|
-
get enabled(): boolean;
|
|
1401
|
-
/** {@link Component.enabled} */
|
|
1402
|
-
set enabled(state: boolean);
|
|
1403
|
-
/** {@link Hideable.visible } */
|
|
1404
|
-
get visible(): boolean;
|
|
1405
|
-
/** {@link Hideable.visible } */
|
|
1406
|
-
set visible(state: boolean);
|
|
1407
|
-
/** The meshes used for raycasting */
|
|
1408
|
-
get meshes(): THREE.Mesh[];
|
|
1409
|
-
/** The material of the clipping plane representation. */
|
|
1410
|
-
get planeMaterial(): THREE.Material | THREE.Material[];
|
|
1411
|
-
/** The material of the clipping plane representation. */
|
|
1412
|
-
set planeMaterial(material: THREE.Material | THREE.Material[]);
|
|
1413
|
-
/** The size of the clipping plane representation. */
|
|
1414
|
-
get size(): number;
|
|
1415
|
-
/** Sets the size of the clipping plane representation. */
|
|
1416
|
-
set size(size: number);
|
|
1417
|
-
get helper(): THREE.Object3D<THREE.Object3DEventMap>;
|
|
1418
|
-
constructor(components: Components, world: World, origin: THREE.Vector3, normal: THREE.Vector3, material: THREE.Material, size?: number, activateControls?: boolean);
|
|
1419
|
-
setFromNormalAndCoplanarPoint(normal: THREE.Vector3, point: THREE.Vector3): void;
|
|
1420
|
-
/** {@link Updateable.update} */
|
|
1421
|
-
update: () => void;
|
|
1422
|
-
/** {@link Disposable.dispose} */
|
|
1423
|
-
dispose(): void;
|
|
1424
|
-
private reset;
|
|
1425
|
-
protected toggleControls(state: boolean): void;
|
|
1426
|
-
private newTransformControls;
|
|
1427
|
-
private initializeControls;
|
|
1428
|
-
private createArrowBoundingBox;
|
|
1429
|
-
private changeDrag;
|
|
1430
|
-
private notifyDraggingChanged;
|
|
1431
|
-
private preventCameraMovement;
|
|
1432
|
-
private newHelper;
|
|
1433
|
-
private static newPlaneMesh;
|
|
1434
|
-
}
|
|
1435
|
-
import * as THREE from "three";
|
|
1436
|
-
import CameraControls from "camera-controls";
|
|
1437
|
-
import { Disposable, Updateable, Event, BaseCamera } from "../../Types";
|
|
1438
|
-
import { Components } from "../../Components";
|
|
1439
|
-
/**
|
|
1440
|
-
* A basic camera that uses
|
|
1441
|
-
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls) to
|
|
1442
|
-
* easily control the camera in 2D and 3D. Check out it's API to find out
|
|
1443
|
-
* what features it offers.
|
|
1444
|
-
*/
|
|
1445
|
-
export declare class SimpleCamera extends BaseCamera implements Updateable, Disposable {
|
|
1446
|
-
/** {@link Updateable.onBeforeUpdate} */
|
|
1447
|
-
readonly onBeforeUpdate: Event<SimpleCamera>;
|
|
1448
|
-
/** {@link Updateable.onAfterUpdate} */
|
|
1449
|
-
readonly onAfterUpdate: Event<SimpleCamera>;
|
|
1450
|
-
readonly onAspectUpdated: Event<unknown>;
|
|
1451
|
-
/** {@link Disposable.onDisposed} */
|
|
1452
|
-
readonly onDisposed: Event<string>;
|
|
1453
|
-
three: THREE.PerspectiveCamera | THREE.OrthographicCamera;
|
|
1454
|
-
private _allControls;
|
|
1455
|
-
/**
|
|
1456
|
-
* The object that controls the camera. An instance of
|
|
1457
|
-
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls).
|
|
1458
|
-
* Transforming the camera directly will have no effect: you need to use this
|
|
1459
|
-
* object to move, rotate, look at objects, etc.
|
|
1460
|
-
*/
|
|
1461
|
-
get controls(): CameraControls;
|
|
1462
|
-
/** {@link Component.enabled} */
|
|
1463
|
-
get enabled(): boolean;
|
|
1464
|
-
/** {@link Component.enabled} */
|
|
1465
|
-
set enabled(enabled: boolean);
|
|
1466
|
-
constructor(components: Components);
|
|
1467
|
-
/** {@link Disposable.dispose} */
|
|
1468
|
-
dispose(): void;
|
|
1469
|
-
/** {@link Updateable.update} */
|
|
1470
|
-
update(_delta: number): void;
|
|
1471
|
-
/**
|
|
1472
|
-
* Updates the aspect of the camera to match the size of the
|
|
1473
|
-
* {@link Components.renderer}.
|
|
1474
|
-
*/
|
|
1475
|
-
updateAspect: () => void;
|
|
1476
|
-
private setupCamera;
|
|
1477
|
-
private newCameraControls;
|
|
1478
|
-
private setupEvents;
|
|
1479
|
-
private static getSubsetOfThree;
|
|
1480
|
-
}
|
|
1481
1602
|
import { Base } from "./base";
|
|
1482
1603
|
/**
|
|
1483
1604
|
* Components are the building blocks of this library. Components are singleton
|
|
@@ -1496,42 +1617,6 @@ export declare abstract class Component extends Base {
|
|
|
1496
1617
|
*/
|
|
1497
1618
|
abstract enabled: boolean;
|
|
1498
1619
|
}
|
|
1499
|
-
import { Base } from "./base";
|
|
1500
|
-
import { World } from "./world";
|
|
1501
|
-
import { Event } from "./event";
|
|
1502
|
-
import { Components } from "../../Components";
|
|
1503
|
-
/**
|
|
1504
|
-
* One of the elements that make a world. It can be either a scene, a camera
|
|
1505
|
-
* or a renderer.
|
|
1506
|
-
*/
|
|
1507
|
-
export declare abstract class BaseWorldItem extends Base {
|
|
1508
|
-
readonly worlds: Map<string, World>;
|
|
1509
|
-
readonly onWorldChanged: Event<{
|
|
1510
|
-
world: World;
|
|
1511
|
-
action: "added" | "removed";
|
|
1512
|
-
}>;
|
|
1513
|
-
currentWorld: World | null;
|
|
1514
|
-
protected constructor(components: Components);
|
|
1515
|
-
}
|
|
1516
|
-
import { Disposable, Hideable, Resizeable, Updateable, Configurable } from "./interfaces";
|
|
1517
|
-
import { Components } from "../../Components";
|
|
1518
|
-
/**
|
|
1519
|
-
* Base class of the library. Useful for finding out the interfaces it implements.
|
|
1520
|
-
*/
|
|
1521
|
-
export declare abstract class Base {
|
|
1522
|
-
components: Components;
|
|
1523
|
-
constructor(components: Components);
|
|
1524
|
-
/** Whether is component is {@link Disposable}. */
|
|
1525
|
-
isDisposeable: () => this is Disposable;
|
|
1526
|
-
/** Whether is component is {@link Resizeable}. */
|
|
1527
|
-
isResizeable: () => this is Resizeable;
|
|
1528
|
-
/** Whether is component is {@link Updateable}. */
|
|
1529
|
-
isUpdateable: () => this is Updateable;
|
|
1530
|
-
/** Whether is component is {@link Hideable}. */
|
|
1531
|
-
isHideable: () => this is Hideable;
|
|
1532
|
-
/** Whether is component is {@link Configurable}. */
|
|
1533
|
-
isConfigurable: () => this is Configurable<any>;
|
|
1534
|
-
}
|
|
1535
1620
|
import * as THREE from "three";
|
|
1536
1621
|
import CameraControls from "camera-controls";
|
|
1537
1622
|
import { Event } from "./event";
|
|
@@ -1650,10 +1735,46 @@ export interface BVHGeometry extends THREE.BufferGeometry {
|
|
|
1650
1735
|
disposeBoundsTree: () => void;
|
|
1651
1736
|
}
|
|
1652
1737
|
/**
|
|
1653
|
-
* Whether a camera uses the Camera Controls library.
|
|
1738
|
+
* Whether a camera uses the Camera Controls library.
|
|
1739
|
+
*/
|
|
1740
|
+
export interface CameraControllable {
|
|
1741
|
+
controls: CameraControls;
|
|
1742
|
+
}
|
|
1743
|
+
import { Disposable, Hideable, Resizeable, Updateable, Configurable } from "./interfaces";
|
|
1744
|
+
import { Components } from "../../Components";
|
|
1745
|
+
/**
|
|
1746
|
+
* Base class of the library. Useful for finding out the interfaces it implements.
|
|
1747
|
+
*/
|
|
1748
|
+
export declare abstract class Base {
|
|
1749
|
+
components: Components;
|
|
1750
|
+
constructor(components: Components);
|
|
1751
|
+
/** Whether is component is {@link Disposable}. */
|
|
1752
|
+
isDisposeable: () => this is Disposable;
|
|
1753
|
+
/** Whether is component is {@link Resizeable}. */
|
|
1754
|
+
isResizeable: () => this is Resizeable;
|
|
1755
|
+
/** Whether is component is {@link Updateable}. */
|
|
1756
|
+
isUpdateable: () => this is Updateable;
|
|
1757
|
+
/** Whether is component is {@link Hideable}. */
|
|
1758
|
+
isHideable: () => this is Hideable;
|
|
1759
|
+
/** Whether is component is {@link Configurable}. */
|
|
1760
|
+
isConfigurable: () => this is Configurable<any>;
|
|
1761
|
+
}
|
|
1762
|
+
import { Base } from "./base";
|
|
1763
|
+
import { World } from "./world";
|
|
1764
|
+
import { Event } from "./event";
|
|
1765
|
+
import { Components } from "../../Components";
|
|
1766
|
+
/**
|
|
1767
|
+
* One of the elements that make a world. It can be either a scene, a camera
|
|
1768
|
+
* or a renderer.
|
|
1654
1769
|
*/
|
|
1655
|
-
export
|
|
1656
|
-
|
|
1770
|
+
export declare abstract class BaseWorldItem extends Base {
|
|
1771
|
+
readonly worlds: Map<string, World>;
|
|
1772
|
+
readonly onWorldChanged: Event<{
|
|
1773
|
+
world: World;
|
|
1774
|
+
action: "added" | "removed";
|
|
1775
|
+
}>;
|
|
1776
|
+
currentWorld: World | null;
|
|
1777
|
+
protected constructor(components: Components);
|
|
1657
1778
|
}
|
|
1658
1779
|
import * as THREE from "three";
|
|
1659
1780
|
import CameraControls from "camera-controls";
|
|
@@ -1707,53 +1828,6 @@ export declare abstract class BaseRenderer extends BaseWorldItem implements Upda
|
|
|
1707
1828
|
setPlane(active: boolean, plane: THREE.Plane, isLocal?: boolean): void;
|
|
1708
1829
|
}
|
|
1709
1830
|
import * as THREE from "three";
|
|
1710
|
-
import { BaseScene } from "./base-scene";
|
|
1711
|
-
import { BaseCamera } from "./base-camera";
|
|
1712
|
-
import { BaseRenderer } from "./base-renderer";
|
|
1713
|
-
import { Updateable, Disposable } from "./interfaces";
|
|
1714
|
-
export interface World extends Disposable, Updateable {
|
|
1715
|
-
meshes: Set<THREE.Mesh>;
|
|
1716
|
-
scene: BaseScene;
|
|
1717
|
-
camera: BaseCamera;
|
|
1718
|
-
renderer: BaseRenderer | null;
|
|
1719
|
-
uuid: string;
|
|
1720
|
-
isDisposing: boolean;
|
|
1721
|
-
}
|
|
1722
|
-
import { NavigationMode } from "./types";
|
|
1723
|
-
import { OrthoPerspectiveCamera } from "../index";
|
|
1724
|
-
/**
|
|
1725
|
-
* A {@link NavigationMode} that allows 3D navigation and panning
|
|
1726
|
-
* like in many 3D and CAD softwares.
|
|
1727
|
-
*/
|
|
1728
|
-
export declare class OrbitMode implements NavigationMode {
|
|
1729
|
-
camera: OrthoPerspectiveCamera;
|
|
1730
|
-
/** {@link NavigationMode.enabled} */
|
|
1731
|
-
enabled: boolean;
|
|
1732
|
-
/** {@link NavigationMode.id} */
|
|
1733
|
-
readonly id = "Orbit";
|
|
1734
|
-
constructor(camera: OrthoPerspectiveCamera);
|
|
1735
|
-
/** {@link NavigationMode.set} */
|
|
1736
|
-
set(active: boolean): void;
|
|
1737
|
-
private activateOrbitControls;
|
|
1738
|
-
}
|
|
1739
|
-
import { NavigationMode } from "./types";
|
|
1740
|
-
import { OrthoPerspectiveCamera } from "../index";
|
|
1741
|
-
/**
|
|
1742
|
-
* A {@link NavigationMode} that allows first person navigation,
|
|
1743
|
-
* simulating FPS video games.
|
|
1744
|
-
*/
|
|
1745
|
-
export declare class FirstPersonMode implements NavigationMode {
|
|
1746
|
-
private camera;
|
|
1747
|
-
/** {@link NavigationMode.enabled} */
|
|
1748
|
-
enabled: boolean;
|
|
1749
|
-
/** {@link NavigationMode.id} */
|
|
1750
|
-
readonly id = "FirstPerson";
|
|
1751
|
-
constructor(camera: OrthoPerspectiveCamera);
|
|
1752
|
-
/** {@link NavigationMode.set} */
|
|
1753
|
-
set(active: boolean): void;
|
|
1754
|
-
private setupFirstPersonCamera;
|
|
1755
|
-
}
|
|
1756
|
-
import * as THREE from "three";
|
|
1757
1831
|
import { Disposable } from "./interfaces";
|
|
1758
1832
|
import { Event } from "./event";
|
|
1759
1833
|
import { Components } from "../../Components";
|
|
@@ -1767,99 +1841,17 @@ export declare abstract class BaseScene extends BaseWorldItem implements Disposa
|
|
|
1767
1841
|
dispose(): void;
|
|
1768
1842
|
}
|
|
1769
1843
|
import * as THREE from "three";
|
|
1770
|
-
import {
|
|
1771
|
-
import {
|
|
1772
|
-
import {
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
current: CameraProjection;
|
|
1782
|
-
camera: THREE.PerspectiveCamera | THREE.OrthographicCamera;
|
|
1783
|
-
private _component;
|
|
1784
|
-
private _previousDistance;
|
|
1785
|
-
/** Match Ortho zoom with Perspective distance when changing projection mode */
|
|
1786
|
-
matchOrthoDistanceEnabled: boolean;
|
|
1787
|
-
constructor(camera: OrthoPerspectiveCamera);
|
|
1788
|
-
/**
|
|
1789
|
-
* Sets the {@link CameraProjection} of the {@link OrthoPerspectiveCamera}.
|
|
1790
|
-
*
|
|
1791
|
-
* @param projection - the new projection to set. If it is the current projection,
|
|
1792
|
-
* it will have no effect.
|
|
1793
|
-
*/
|
|
1794
|
-
set(projection: CameraProjection): Promise<void>;
|
|
1795
|
-
/**
|
|
1796
|
-
* Changes the current {@link CameraProjection} from Ortographic to Perspective
|
|
1797
|
-
* and vice versa.
|
|
1798
|
-
*/
|
|
1799
|
-
toggle(): Promise<void>;
|
|
1800
|
-
private setOrthoCamera;
|
|
1801
|
-
private getPerspectiveDims;
|
|
1802
|
-
private setupOrthoCamera;
|
|
1803
|
-
private getDistance;
|
|
1804
|
-
private setPerspectiveCamera;
|
|
1805
|
-
}
|
|
1806
|
-
/**
|
|
1807
|
-
* The projection system of the camera.
|
|
1808
|
-
*/
|
|
1809
|
-
export type CameraProjection = "Perspective" | "Orthographic";
|
|
1810
|
-
/**
|
|
1811
|
-
* The extensible list of supported navigation modes.
|
|
1812
|
-
*/
|
|
1813
|
-
export type NavModeID = "Orbit" | "FirstPerson" | "Plan";
|
|
1814
|
-
/**
|
|
1815
|
-
* An object that determines the behavior of the camera controls
|
|
1816
|
-
* and the user input (e.g. 2D floor plan mode, first person mode, etc).
|
|
1817
|
-
*/
|
|
1818
|
-
export interface NavigationMode {
|
|
1819
|
-
/** The unique ID of this navigation mode. */
|
|
1820
|
-
id: NavModeID;
|
|
1821
|
-
/**
|
|
1822
|
-
* Enable or disable this navigation mode.
|
|
1823
|
-
* When a new navigation mode is enabled, the previous navigation mode
|
|
1824
|
-
* must be disabled.
|
|
1825
|
-
*
|
|
1826
|
-
* @param active - whether to enable or disable this mode.
|
|
1827
|
-
* @param options - any additional data required to enable or disable it.
|
|
1828
|
-
* */
|
|
1829
|
-
set: (active: boolean, options?: any) => void;
|
|
1830
|
-
/** Whether this navigation mode is active or not. */
|
|
1831
|
-
enabled: boolean;
|
|
1832
|
-
}
|
|
1833
|
-
import { NavigationMode } from "./types";
|
|
1834
|
-
import { OrthoPerspectiveCamera } from "../index";
|
|
1835
|
-
/**
|
|
1836
|
-
* A {@link NavigationMode} that allows to navigate floorplans in 2D,
|
|
1837
|
-
* like many BIM tools.
|
|
1838
|
-
*/
|
|
1839
|
-
export declare class PlanMode implements NavigationMode {
|
|
1840
|
-
private camera;
|
|
1841
|
-
/** {@link NavigationMode.enabled} */
|
|
1842
|
-
enabled: boolean;
|
|
1843
|
-
/** {@link NavigationMode.id} */
|
|
1844
|
-
readonly id = "Plan";
|
|
1845
|
-
private mouseAction1?;
|
|
1846
|
-
private mouseAction2?;
|
|
1847
|
-
private mouseInitialized;
|
|
1848
|
-
private readonly defaultAzimuthSpeed;
|
|
1849
|
-
private readonly defaultPolarSpeed;
|
|
1850
|
-
constructor(camera: OrthoPerspectiveCamera);
|
|
1851
|
-
/** {@link NavigationMode.set} */
|
|
1852
|
-
set(active: boolean): void;
|
|
1853
|
-
}
|
|
1854
|
-
import { IfcFragmentSettings } from "../../IfcLoader/src";
|
|
1855
|
-
/** Configuration of the IFC-fragment streaming. */
|
|
1856
|
-
export declare class IfcStreamingSettings extends IfcFragmentSettings {
|
|
1857
|
-
minGeometrySize: number;
|
|
1858
|
-
minAssetsSize: number;
|
|
1859
|
-
}
|
|
1860
|
-
/** Configuration of the IFC-fragment streaming. */
|
|
1861
|
-
export declare class PropertiesStreamingSettings extends IfcFragmentSettings {
|
|
1862
|
-
propertiesSize: number;
|
|
1844
|
+
import { BaseScene } from "./base-scene";
|
|
1845
|
+
import { BaseCamera } from "./base-camera";
|
|
1846
|
+
import { BaseRenderer } from "./base-renderer";
|
|
1847
|
+
import { Updateable, Disposable } from "./interfaces";
|
|
1848
|
+
export interface World extends Disposable, Updateable {
|
|
1849
|
+
meshes: Set<THREE.Mesh>;
|
|
1850
|
+
scene: BaseScene;
|
|
1851
|
+
camera: BaseCamera;
|
|
1852
|
+
renderer: BaseRenderer | null;
|
|
1853
|
+
uuid: string;
|
|
1854
|
+
isDisposing: boolean;
|
|
1863
1855
|
}
|
|
1864
1856
|
import * as WEBIFC from "web-ifc";
|
|
1865
1857
|
/** Configuration of the IFC-fragment conversion. */
|
|
@@ -1888,20 +1880,24 @@ export declare class IfcFragmentSettings {
|
|
|
1888
1880
|
autoSetWasm: boolean;
|
|
1889
1881
|
customLocateFileHandler: WEBIFC.LocateFileHandlerFn | null;
|
|
1890
1882
|
}
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1883
|
+
import * as THREE from "three";
|
|
1884
|
+
import * as WEBIFC from "web-ifc";
|
|
1885
|
+
import * as FRAGS from "@thatopen/fragments";
|
|
1886
|
+
export declare class CivilReader {
|
|
1887
|
+
defLineMat: THREE.LineBasicMaterial;
|
|
1888
|
+
read(webIfc: WEBIFC.IfcAPI): {
|
|
1889
|
+
alignments: Map<number, FRAGS.Alignment>;
|
|
1890
|
+
coordinationMatrix: THREE.Matrix4;
|
|
1891
|
+
} | undefined;
|
|
1892
|
+
get(civilItems: any): {
|
|
1893
|
+
alignments: Map<number, FRAGS.Alignment>;
|
|
1894
|
+
coordinationMatrix: THREE.Matrix4;
|
|
1895
|
+
} | undefined;
|
|
1896
|
+
private getCurves;
|
|
1897
1897
|
}
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
geometryID: number;
|
|
1902
|
-
transformation: number[];
|
|
1903
|
-
color: number[];
|
|
1904
|
-
}[];
|
|
1898
|
+
import * as WEBIFC from "web-ifc";
|
|
1899
|
+
export declare class IfcMetadataReader {
|
|
1900
|
+
get(webIfc: WEBIFC.IfcAPI, type: number): string;
|
|
1905
1901
|
}
|
|
1906
1902
|
import * as WEBIFC from "web-ifc";
|
|
1907
1903
|
import { AsyncEvent, Component, Disposable, Event } from "../../../core";
|
|
@@ -1930,24 +1926,30 @@ export declare class FragmentPropsStreamConverter extends Component implements D
|
|
|
1930
1926
|
private getIndices;
|
|
1931
1927
|
private cleanUp;
|
|
1932
1928
|
}
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1929
|
+
export interface StreamedGeometries {
|
|
1930
|
+
[id: number]: {
|
|
1931
|
+
boundingBox: Float32Array;
|
|
1932
|
+
hasHoles: boolean;
|
|
1933
|
+
geometryFile?: string;
|
|
1934
|
+
};
|
|
1936
1935
|
}
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1936
|
+
export interface StreamedAsset {
|
|
1937
|
+
id: number;
|
|
1938
|
+
geometries: {
|
|
1939
|
+
geometryID: number;
|
|
1940
|
+
transformation: number[];
|
|
1941
|
+
color: number[];
|
|
1942
|
+
}[];
|
|
1943
|
+
}
|
|
1944
|
+
import { IfcFragmentSettings } from "../../IfcLoader/src";
|
|
1945
|
+
/** Configuration of the IFC-fragment streaming. */
|
|
1946
|
+
export declare class IfcStreamingSettings extends IfcFragmentSettings {
|
|
1947
|
+
minGeometrySize: number;
|
|
1948
|
+
minAssetsSize: number;
|
|
1949
|
+
}
|
|
1950
|
+
/** Configuration of the IFC-fragment streaming. */
|
|
1951
|
+
export declare class PropertiesStreamingSettings extends IfcFragmentSettings {
|
|
1952
|
+
propertiesSize: number;
|
|
1951
1953
|
}
|
|
1952
1954
|
export type RelationsMap = Map<number, Map<number, number[]>>;
|
|
1953
1955
|
export interface ModelsRelationMap {
|
|
@@ -1973,6 +1975,11 @@ export type InverseAttributes = [
|
|
|
1973
1975
|
"ContainsElements"
|
|
1974
1976
|
];
|
|
1975
1977
|
export type InverseAttribute = InverseAttributes[number];
|
|
1978
|
+
import { BufferGeometry } from "three";
|
|
1979
|
+
import * as THREE from "three";
|
|
1980
|
+
export declare class TransformHelper {
|
|
1981
|
+
getHelper(geometries: BufferGeometry[]): THREE.Object3D<THREE.Object3DEventMap>;
|
|
1982
|
+
}
|
|
1976
1983
|
import * as WEBIFC from "web-ifc";
|
|
1977
1984
|
import * as THREE from "three";
|
|
1978
1985
|
export declare class Units {
|
|
@@ -1983,10 +1990,5 @@ export declare class Units {
|
|
|
1983
1990
|
private getLengthUnits;
|
|
1984
1991
|
private getScaleMatrix;
|
|
1985
1992
|
}
|
|
1986
|
-
import { BufferGeometry } from "three";
|
|
1987
|
-
import * as THREE from "three";
|
|
1988
|
-
export declare class TransformHelper {
|
|
1989
|
-
getHelper(geometries: BufferGeometry[]): THREE.Object3D<THREE.Object3DEventMap>;
|
|
1990
|
-
}
|
|
1991
1993
|
|
|
1992
1994
|
}
|