@thatopen/components 2.0.0-alpha.3 → 2.0.0-alpha.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/ifc/IfcPropertiesIndexer/index.d.ts +65 -19
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +1009 -935
- package/dist/namespace.d.ts +982 -936
- package/package.json +2 -2
package/dist/namespace.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
declare namespace OBC {
|
|
2
|
+
import { Component, Disposable, World, Event } from "../Types";
|
|
3
|
+
import { SimpleRaycaster } from "./src";
|
|
4
|
+
import { Components } from "../Components";
|
|
5
|
+
export declare class Raycasters extends Component implements Disposable {
|
|
6
|
+
static readonly uuid: "d5d8bdf0-db25-4952-b951-b643af207ace";
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
list: Map<string, SimpleRaycaster>;
|
|
9
|
+
onDisposed: Event<unknown>;
|
|
10
|
+
constructor(components: Components);
|
|
11
|
+
get(world: World): SimpleRaycaster;
|
|
12
|
+
delete(world: World): void;
|
|
13
|
+
dispose(): void;
|
|
14
|
+
}
|
|
2
15
|
import { Component, Disposable, Event } from "../Types";
|
|
3
16
|
/**
|
|
4
17
|
* The entry point of the Components library.
|
|
@@ -51,19 +64,6 @@ export declare class Components implements Disposable {
|
|
|
51
64
|
private update;
|
|
52
65
|
private static setupBVH;
|
|
53
66
|
}
|
|
54
|
-
import { Component, Disposable, World, Event } from "../Types";
|
|
55
|
-
import { SimpleRaycaster } from "./src";
|
|
56
|
-
import { Components } from "../Components";
|
|
57
|
-
export declare class Raycasters extends Component implements Disposable {
|
|
58
|
-
static readonly uuid: "d5d8bdf0-db25-4952-b951-b643af207ace";
|
|
59
|
-
enabled: boolean;
|
|
60
|
-
list: Map<string, SimpleRaycaster>;
|
|
61
|
-
onDisposed: Event<unknown>;
|
|
62
|
-
constructor(components: Components);
|
|
63
|
-
get(world: World): SimpleRaycaster;
|
|
64
|
-
delete(world: World): void;
|
|
65
|
-
dispose(): void;
|
|
66
|
-
}
|
|
67
67
|
import * as THREE from "three";
|
|
68
68
|
import { Components } from "../Components";
|
|
69
69
|
import { Component } from "../Types";
|
|
@@ -107,6 +107,22 @@ export declare class Disposer extends Component {
|
|
|
107
107
|
private disposeChildren;
|
|
108
108
|
private static disposeMaterial;
|
|
109
109
|
}
|
|
110
|
+
import { Component, Disposable, Updateable, World, Event, BaseScene, BaseCamera, BaseRenderer } from "../Types";
|
|
111
|
+
import { Components } from "../Components";
|
|
112
|
+
import { SimpleWorld } from "./src";
|
|
113
|
+
export declare class Worlds extends Component implements Updateable, Disposable {
|
|
114
|
+
static readonly uuid: "fdb61dc4-2ec1-4966-b83d-54ea795fad4a";
|
|
115
|
+
readonly onAfterUpdate: Event<unknown>;
|
|
116
|
+
readonly onBeforeUpdate: Event<unknown>;
|
|
117
|
+
readonly onDisposed: Event<unknown>;
|
|
118
|
+
list: Map<string, World>;
|
|
119
|
+
enabled: boolean;
|
|
120
|
+
constructor(components: Components);
|
|
121
|
+
create<T extends BaseScene = BaseScene, U extends BaseCamera = BaseCamera, S extends BaseRenderer = BaseRenderer>(): SimpleWorld<T, U, S>;
|
|
122
|
+
delete(world: World): void;
|
|
123
|
+
dispose(): void;
|
|
124
|
+
update(delta?: number): void | Promise<void>;
|
|
125
|
+
}
|
|
110
126
|
import { Component, Disposable, World, Event } from "../Types";
|
|
111
127
|
import { GridConfig, SimpleGrid } from "./src";
|
|
112
128
|
export declare class Grids extends Component implements Disposable {
|
|
@@ -223,44 +239,6 @@ export declare class Clipper<T extends SimplePlane> extends Component implements
|
|
|
223
239
|
private _onStartDragging;
|
|
224
240
|
private _onEndDragging;
|
|
225
241
|
}
|
|
226
|
-
import { Component, Disposable, Updateable, World, Event, BaseScene, BaseCamera, BaseRenderer } from "../Types";
|
|
227
|
-
import { Components } from "../Components";
|
|
228
|
-
import { SimpleWorld } from "./src";
|
|
229
|
-
export declare class Worlds extends Component implements Updateable, Disposable {
|
|
230
|
-
static readonly uuid: "fdb61dc4-2ec1-4966-b83d-54ea795fad4a";
|
|
231
|
-
readonly onAfterUpdate: Event<unknown>;
|
|
232
|
-
readonly onBeforeUpdate: Event<unknown>;
|
|
233
|
-
readonly onDisposed: Event<unknown>;
|
|
234
|
-
list: Map<string, World>;
|
|
235
|
-
enabled: boolean;
|
|
236
|
-
constructor(components: Components);
|
|
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
|
-
import { Components } from "../Components";
|
|
243
|
-
import { MeshCullerRenderer, CullerRendererSettings } from "./src";
|
|
244
|
-
import { Component, Event, Disposable, World } from "../Types";
|
|
245
|
-
/**
|
|
246
|
-
* A tool to handle big scenes efficiently by automatically hiding the objects
|
|
247
|
-
* that are not visible to the camera.
|
|
248
|
-
*/
|
|
249
|
-
export declare class Cullers extends Component implements Disposable {
|
|
250
|
-
static readonly uuid: "69f2a50d-c266-44fc-b1bd-fa4d34be89e6";
|
|
251
|
-
private _enabled;
|
|
252
|
-
list: Map<string, MeshCullerRenderer>;
|
|
253
|
-
/** {@link Disposable.onDisposed} */
|
|
254
|
-
readonly onDisposed: Event<unknown>;
|
|
255
|
-
/** {@link Component.enabled} */
|
|
256
|
-
get enabled(): boolean;
|
|
257
|
-
set enabled(value: boolean);
|
|
258
|
-
constructor(components: Components);
|
|
259
|
-
create(world: World, config?: Partial<CullerRendererSettings>): MeshCullerRenderer;
|
|
260
|
-
delete(world: World): void;
|
|
261
|
-
/** {@link Disposable.dispose} */
|
|
262
|
-
dispose(): void;
|
|
263
|
-
}
|
|
264
242
|
import * as THREE from "three";
|
|
265
243
|
import { Component, Disposable, Event, World } from "../Types";
|
|
266
244
|
import { Components } from "../Components";
|
|
@@ -322,245 +300,79 @@ export declare class Materials extends Component implements Disposable {
|
|
|
322
300
|
*/
|
|
323
301
|
removeMeshes(id: string, meshes: THREE.Mesh[]): void;
|
|
324
302
|
}
|
|
325
|
-
import
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
points: THREE.Vector3[];
|
|
329
|
-
}
|
|
330
|
-
export declare class MeasurementUtils {
|
|
331
|
-
static getFace(mesh: THREE.InstancedMesh | THREE.Mesh, triangleIndex: number, instance?: number): {
|
|
332
|
-
edges: MeasureEdge[];
|
|
333
|
-
indices: Set<number>;
|
|
334
|
-
} | null;
|
|
335
|
-
static distanceFromPointToLine(point: THREE.Vector3, lineStart: THREE.Vector3, lineEnd: THREE.Vector3, clamp?: boolean): number;
|
|
336
|
-
private static getFaceData;
|
|
337
|
-
static getVerticesAndNormal(mesh: THREE.Mesh | THREE.InstancedMesh, faceIndex: number, instance: number | undefined): {
|
|
338
|
-
p1: THREE.Vector3;
|
|
339
|
-
p2: THREE.Vector3;
|
|
340
|
-
p3: THREE.Vector3;
|
|
341
|
-
faceNormal: THREE.Vector3;
|
|
342
|
-
};
|
|
343
|
-
private static round;
|
|
344
|
-
}
|
|
345
|
-
export declare class UUID {
|
|
346
|
-
private static _pattern;
|
|
347
|
-
private static _lut;
|
|
348
|
-
static create(): string;
|
|
349
|
-
static validate(uuid: string): void;
|
|
350
|
-
}
|
|
351
|
-
import * as THREE from "three";
|
|
352
|
-
export declare function obbFromPoints(vertices: ArrayLike<number>): {
|
|
353
|
-
center: THREE.Vector3;
|
|
354
|
-
halfSizes: THREE.Vector3;
|
|
355
|
-
rotation: THREE.Matrix3;
|
|
356
|
-
transformation: THREE.Matrix4;
|
|
357
|
-
};
|
|
358
|
-
import * as WEBIFC from "web-ifc";
|
|
359
|
-
import * as FRAG from "bim-fragment";
|
|
303
|
+
import { Components } from "../Components";
|
|
304
|
+
import { MeshCullerRenderer, CullerRendererSettings } from "./src";
|
|
305
|
+
import { Component, Event, Disposable, World } from "../Types";
|
|
360
306
|
/**
|
|
361
|
-
*
|
|
307
|
+
* A tool to handle big scenes efficiently by automatically hiding the objects
|
|
308
|
+
* that are not visible to the camera.
|
|
362
309
|
*/
|
|
363
|
-
export declare class
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
* @param modelID ID of the IFC model whose properties to extract.
|
|
368
|
-
* @param indirect whether to get the indirect relationships as well.
|
|
369
|
-
* @param recursiveSpatial whether to get the properties of spatial items recursively
|
|
370
|
-
* to make the location data available (e.g. absolute position of building).
|
|
371
|
-
*/
|
|
372
|
-
export(webIfc: WEBIFC.IfcAPI, modelID: number, indirect?: boolean, recursiveSpatial?: boolean): Promise<FRAG.IfcProperties>;
|
|
373
|
-
}
|
|
374
|
-
import * as WEBIFC from "web-ifc";
|
|
375
|
-
import { FragmentsGroup } from "bim-fragment";
|
|
376
|
-
import { Component, Disposable, Event, Components } from "../../core";
|
|
377
|
-
type BooleanPropTypes = "IfcBoolean" | "IfcLogical";
|
|
378
|
-
type StringPropTypes = "IfcText" | "IfcLabel" | "IfcIdentifier";
|
|
379
|
-
type NumericPropTypes = "IfcInteger" | "IfcReal";
|
|
380
|
-
interface ChangeMap {
|
|
381
|
-
[modelID: string]: Set<number>;
|
|
382
|
-
}
|
|
383
|
-
interface AttributeListener {
|
|
384
|
-
[modelID: string]: {
|
|
385
|
-
[expressID: number]: {
|
|
386
|
-
[attributeName: string]: Event<String | Boolean | Number>;
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
export declare class IfcPropertiesManager extends Component implements Disposable {
|
|
391
|
-
static readonly uuid: "58c2d9f0-183c-48d6-a402-dfcf5b9a34df";
|
|
310
|
+
export declare class Cullers extends Component implements Disposable {
|
|
311
|
+
static readonly uuid: "69f2a50d-c266-44fc-b1bd-fa4d34be89e6";
|
|
312
|
+
private _enabled;
|
|
313
|
+
list: Map<string, MeshCullerRenderer>;
|
|
392
314
|
/** {@link Disposable.onDisposed} */
|
|
393
|
-
readonly onDisposed: Event<
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
model: FragmentsGroup;
|
|
398
|
-
psetID: number;
|
|
399
|
-
elementID: number;
|
|
400
|
-
}>;
|
|
401
|
-
readonly onPropToPset: Event<{
|
|
402
|
-
model: FragmentsGroup;
|
|
403
|
-
psetID: number;
|
|
404
|
-
propID: number;
|
|
405
|
-
}>;
|
|
406
|
-
readonly onPsetRemoved: Event<{
|
|
407
|
-
model: FragmentsGroup;
|
|
408
|
-
psetID: number;
|
|
409
|
-
}>;
|
|
410
|
-
readonly onDataChanged: Event<{
|
|
411
|
-
model: FragmentsGroup;
|
|
412
|
-
expressID: number;
|
|
413
|
-
}>;
|
|
414
|
-
wasm: {
|
|
415
|
-
path: string;
|
|
416
|
-
absolute: boolean;
|
|
417
|
-
};
|
|
418
|
-
enabled: boolean;
|
|
419
|
-
attributeListeners: AttributeListener;
|
|
420
|
-
selectedModel?: FragmentsGroup;
|
|
421
|
-
private _changeMap;
|
|
315
|
+
readonly onDisposed: Event<unknown>;
|
|
316
|
+
/** {@link Component.enabled} */
|
|
317
|
+
get enabled(): boolean;
|
|
318
|
+
set enabled(value: boolean);
|
|
422
319
|
constructor(components: Components);
|
|
423
|
-
|
|
320
|
+
create(world: World, config?: Partial<CullerRendererSettings>): MeshCullerRenderer;
|
|
321
|
+
delete(world: World): void;
|
|
322
|
+
/** {@link Disposable.dispose} */
|
|
424
323
|
dispose(): void;
|
|
425
|
-
private increaseMaxID;
|
|
426
|
-
static getIFCSchema(model: FragmentsGroup): import("bim-fragment").IfcSchema;
|
|
427
|
-
private newGUID;
|
|
428
|
-
private getOwnerHistory;
|
|
429
|
-
private registerChange;
|
|
430
|
-
setData(model: FragmentsGroup, ...dataToSave: Record<string, any>[]): Promise<void>;
|
|
431
|
-
newPset(model: FragmentsGroup, name: string, description?: string): Promise<{
|
|
432
|
-
pset: WEBIFC.IFC2X3.IfcPropertySet | WEBIFC.IFC4.IfcPropertySet | WEBIFC.IFC4X3.IfcPropertySet;
|
|
433
|
-
rel: WEBIFC.IFC4X3.IfcRelDefinesByProperties | WEBIFC.IFC4.IfcRelDefinesByProperties | WEBIFC.IFC2X3.IfcRelDefinesByProperties;
|
|
434
|
-
}>;
|
|
435
|
-
removePset(model: FragmentsGroup, ...psetID: number[]): Promise<void>;
|
|
436
|
-
private newSingleProperty;
|
|
437
|
-
newSingleStringProperty(model: FragmentsGroup, type: StringPropTypes, name: string, value: string): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
438
|
-
newSingleNumericProperty(model: FragmentsGroup, type: NumericPropTypes, name: string, value: number): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
439
|
-
newSingleBooleanProperty(model: FragmentsGroup, type: BooleanPropTypes, name: string, value: boolean): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
440
|
-
removePsetProp(model: FragmentsGroup, psetID: number, propID: number): Promise<void>;
|
|
441
|
-
addElementToPset(model: FragmentsGroup, psetID: number, ...elementID: number[]): Promise<void>;
|
|
442
|
-
addPropToPset(model: FragmentsGroup, psetID: number, ...propID: number[]): Promise<void>;
|
|
443
|
-
saveToIfc(model: FragmentsGroup, ifcToSaveOn: Uint8Array): Promise<Uint8Array>;
|
|
444
|
-
setAttributeListener(model: FragmentsGroup, expressID: number, attributeName: string): Promise<Event<String | Number | Boolean>>;
|
|
445
324
|
}
|
|
446
|
-
|
|
325
|
+
import * as THREE from "three";
|
|
447
326
|
import * as FRAGS from "bim-fragment";
|
|
448
327
|
import { FragmentsGroup } from "bim-fragment";
|
|
449
|
-
import {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
[modelID: string]: {
|
|
459
|
-
[expressID: number]: Set<number>;
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
export declare class IfcPropertiesFinder extends Component implements Disposable {
|
|
463
|
-
readonly onFound: Event<FRAGS.FragmentIdMap>;
|
|
328
|
+
import { Component, Components, Disposable, Event } from "../../core";
|
|
329
|
+
/**
|
|
330
|
+
* A simple implementation of bounding box that works for fragments. The resulting bbox is not 100% precise, but
|
|
331
|
+
* it's fast, and should suffice for general use cases such as camera zooming or general boundary determination.
|
|
332
|
+
*/
|
|
333
|
+
export declare class FragmentBoundingBox extends Component implements Disposable {
|
|
334
|
+
static readonly uuid: "d1444724-dba6-4cdd-a0c7-68ee1450d166";
|
|
335
|
+
/** {@link Component.enabled} */
|
|
336
|
+
enabled: boolean;
|
|
464
337
|
/** {@link Disposable.onDisposed} */
|
|
465
338
|
readonly onDisposed: Event<unknown>;
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
private
|
|
469
|
-
private _noHandleAttributes;
|
|
339
|
+
private _absoluteMin;
|
|
340
|
+
private _absoluteMax;
|
|
341
|
+
private _meshes;
|
|
470
342
|
constructor(components: Components);
|
|
471
|
-
|
|
343
|
+
static getDimensions(bbox: THREE.Box3): {
|
|
344
|
+
width: number;
|
|
345
|
+
height: number;
|
|
346
|
+
depth: number;
|
|
347
|
+
center: THREE.Vector3;
|
|
348
|
+
};
|
|
349
|
+
static newBound(positive: boolean): THREE.Vector3;
|
|
350
|
+
static getBounds(points: THREE.Vector3[], min?: THREE.Vector3, max?: THREE.Vector3): THREE.Box3;
|
|
351
|
+
/** {@link Disposable.dispose} */
|
|
472
352
|
dispose(): void;
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
private
|
|
480
|
-
private arrayIntersection;
|
|
481
|
-
private arrayUnion;
|
|
482
|
-
private getConditionFunctions;
|
|
483
|
-
}
|
|
484
|
-
import * as THREE from "three";
|
|
485
|
-
import { Components } from "../../core/Components";
|
|
486
|
-
import { SimpleCamera } from "../../core";
|
|
487
|
-
import { NavigationMode, NavModeID, ProjectionManager } from "./src";
|
|
488
|
-
/**
|
|
489
|
-
* A flexible camera that uses
|
|
490
|
-
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls) to
|
|
491
|
-
* easily control the camera in 2D and 3D. It supports multiple navigation
|
|
492
|
-
* modes, such as 2D floor plan navigation, first person and 3D orbit.
|
|
493
|
-
*/
|
|
494
|
-
export declare class OrthoPerspectiveCamera extends SimpleCamera {
|
|
495
|
-
/**
|
|
496
|
-
* The current {@link NavigationMode}.
|
|
497
|
-
*/
|
|
498
|
-
mode: NavigationMode;
|
|
499
|
-
readonly projection: ProjectionManager;
|
|
500
|
-
readonly threeOrtho: THREE.OrthographicCamera;
|
|
501
|
-
protected readonly _userInputButtons: any;
|
|
502
|
-
protected readonly _frustumSize = 50;
|
|
503
|
-
protected readonly _navigationModes: Map<NavModeID, NavigationMode>;
|
|
504
|
-
get current(): THREE.PerspectiveCamera | THREE.OrthographicCamera;
|
|
505
|
-
constructor(components: Components);
|
|
506
|
-
/** {@link Disposable.dispose} */
|
|
507
|
-
dispose(): void;
|
|
508
|
-
/**
|
|
509
|
-
* Sets a new {@link NavigationMode} and disables the previous one.
|
|
510
|
-
*
|
|
511
|
-
* @param mode - The {@link NavigationMode} to set.
|
|
512
|
-
*/
|
|
513
|
-
set(mode: NavModeID): void;
|
|
514
|
-
/**
|
|
515
|
-
* Make the camera view fit all the specified meshes.
|
|
516
|
-
*
|
|
517
|
-
* @param meshes the meshes to fit. If it is not defined, it will
|
|
518
|
-
* evaluate {@link Components.meshes}.
|
|
519
|
-
* @param offset the distance to the fit object
|
|
520
|
-
*/
|
|
521
|
-
fit(meshes: Iterable<THREE.Mesh>, offset?: number): Promise<void>;
|
|
522
|
-
/**
|
|
523
|
-
* Allows or prevents all user input.
|
|
524
|
-
*
|
|
525
|
-
* @param active - whether to enable or disable user inputs.
|
|
526
|
-
*/
|
|
527
|
-
setUserInput(active: boolean): void;
|
|
528
|
-
private disableUserInput;
|
|
529
|
-
private enableUserInput;
|
|
530
|
-
private newOrthoCamera;
|
|
531
|
-
private setOrthoCameraAspect;
|
|
532
|
-
}
|
|
533
|
-
import { FragmentsGroup } from "bim-fragment";
|
|
534
|
-
import { Disposable, Event, Component, Components } from "../../core";
|
|
535
|
-
import { IfcPropertiesManager } from "../IfcPropertiesManager";
|
|
536
|
-
interface IndexMap {
|
|
537
|
-
[modelID: string]: {
|
|
538
|
-
[expressID: string]: Set<number>;
|
|
539
|
-
};
|
|
353
|
+
get(): THREE.Box3;
|
|
354
|
+
getSphere(): THREE.Sphere;
|
|
355
|
+
getMesh(): THREE.Mesh<THREE.BoxGeometry, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
|
|
356
|
+
reset(): void;
|
|
357
|
+
add(group: FragmentsGroup): void;
|
|
358
|
+
addMesh(mesh: THREE.InstancedMesh | THREE.Mesh | FRAGS.CurveMesh): void;
|
|
359
|
+
private static getFragmentBounds;
|
|
540
360
|
}
|
|
541
|
-
|
|
542
|
-
|
|
361
|
+
import { Component, Disposable, Event, Components } from "../../core";
|
|
362
|
+
export declare class FragmentExploder extends Component implements Disposable {
|
|
363
|
+
static readonly uuid: "d260618b-ce88-4c7d-826c-6debb91de3e2";
|
|
364
|
+
enabled: boolean;
|
|
365
|
+
height: number;
|
|
366
|
+
groupName: string;
|
|
543
367
|
/** {@link Disposable.onDisposed} */
|
|
544
368
|
readonly onDisposed: Event<string>;
|
|
545
|
-
|
|
546
|
-
relationsToProcess: number[];
|
|
547
|
-
indexMap: IndexMap;
|
|
548
|
-
private _propertiesManager;
|
|
549
|
-
readonly onPropertiesManagerSet: Event<IfcPropertiesManager>;
|
|
550
|
-
set propertiesManager(manager: IfcPropertiesManager | null);
|
|
551
|
-
get propertiesManager(): IfcPropertiesManager | null;
|
|
369
|
+
list: Set<string>;
|
|
552
370
|
constructor(components: Components);
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
private getPsetProperties;
|
|
558
|
-
process(model: FragmentsGroup): Promise<void>;
|
|
559
|
-
private setEntityIndex;
|
|
560
|
-
private cloneProperty;
|
|
561
|
-
private clonePropertyArray;
|
|
371
|
+
dispose(): void;
|
|
372
|
+
explode(): void;
|
|
373
|
+
reset(): void;
|
|
374
|
+
update(): void;
|
|
562
375
|
}
|
|
563
|
-
export {};
|
|
564
376
|
import * as FRAGS from "bim-fragment";
|
|
565
377
|
import { Disposable, Component, Event, Components } from "../../core";
|
|
566
378
|
export interface Classification {
|
|
@@ -591,57 +403,6 @@ export declare class FragmentClassifier extends Component implements Disposable
|
|
|
591
403
|
byIfcRel(group: FRAGS.FragmentsGroup, ifcRel: number, systemName: string): Promise<void>;
|
|
592
404
|
private saveItem;
|
|
593
405
|
}
|
|
594
|
-
import * as THREE from "three";
|
|
595
|
-
import * as FRAGS from "bim-fragment";
|
|
596
|
-
import { FragmentsGroup } from "bim-fragment";
|
|
597
|
-
import { Component, Components, Disposable, Event } from "../../core";
|
|
598
|
-
/**
|
|
599
|
-
* A simple implementation of bounding box that works for fragments. The resulting bbox is not 100% precise, but
|
|
600
|
-
* it's fast, and should suffice for general use cases such as camera zooming or general boundary determination.
|
|
601
|
-
*/
|
|
602
|
-
export declare class FragmentBoundingBox extends Component implements Disposable {
|
|
603
|
-
static readonly uuid: "d1444724-dba6-4cdd-a0c7-68ee1450d166";
|
|
604
|
-
/** {@link Component.enabled} */
|
|
605
|
-
enabled: boolean;
|
|
606
|
-
/** {@link Disposable.onDisposed} */
|
|
607
|
-
readonly onDisposed: Event<unknown>;
|
|
608
|
-
private _absoluteMin;
|
|
609
|
-
private _absoluteMax;
|
|
610
|
-
private _meshes;
|
|
611
|
-
constructor(components: Components);
|
|
612
|
-
static getDimensions(bbox: THREE.Box3): {
|
|
613
|
-
width: number;
|
|
614
|
-
height: number;
|
|
615
|
-
depth: number;
|
|
616
|
-
center: THREE.Vector3;
|
|
617
|
-
};
|
|
618
|
-
static newBound(positive: boolean): THREE.Vector3;
|
|
619
|
-
static getBounds(points: THREE.Vector3[], min?: THREE.Vector3, max?: THREE.Vector3): THREE.Box3;
|
|
620
|
-
/** {@link Disposable.dispose} */
|
|
621
|
-
dispose(): void;
|
|
622
|
-
get(): THREE.Box3;
|
|
623
|
-
getSphere(): THREE.Sphere;
|
|
624
|
-
getMesh(): THREE.Mesh<THREE.BoxGeometry, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
|
|
625
|
-
reset(): void;
|
|
626
|
-
add(group: FragmentsGroup): void;
|
|
627
|
-
addMesh(mesh: THREE.InstancedMesh | THREE.Mesh | FRAGS.CurveMesh): void;
|
|
628
|
-
private static getFragmentBounds;
|
|
629
|
-
}
|
|
630
|
-
import { Component, Disposable, Event, Components } from "../../core";
|
|
631
|
-
export declare class FragmentExploder extends Component implements Disposable {
|
|
632
|
-
static readonly uuid: "d260618b-ce88-4c7d-826c-6debb91de3e2";
|
|
633
|
-
enabled: boolean;
|
|
634
|
-
height: number;
|
|
635
|
-
groupName: string;
|
|
636
|
-
/** {@link Disposable.onDisposed} */
|
|
637
|
-
readonly onDisposed: Event<string>;
|
|
638
|
-
list: Set<string>;
|
|
639
|
-
constructor(components: Components);
|
|
640
|
-
dispose(): void;
|
|
641
|
-
explode(): void;
|
|
642
|
-
reset(): void;
|
|
643
|
-
update(): void;
|
|
644
|
-
}
|
|
645
406
|
import * as FRAGS from "bim-fragment";
|
|
646
407
|
import { Components, Component } from "../../core";
|
|
647
408
|
export declare class FragmentHider extends Component {
|
|
@@ -729,10 +490,93 @@ export declare class FragmentManager extends Component implements Disposable {
|
|
|
729
490
|
coordinate(models?: FragmentsGroup[]): void;
|
|
730
491
|
}
|
|
731
492
|
import * as THREE from "three";
|
|
493
|
+
import { Components } from "../../core/Components";
|
|
494
|
+
import { SimpleCamera } from "../../core";
|
|
495
|
+
import { NavigationMode, NavModeID, ProjectionManager } from "./src";
|
|
496
|
+
/**
|
|
497
|
+
* A flexible camera that uses
|
|
498
|
+
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls) to
|
|
499
|
+
* easily control the camera in 2D and 3D. It supports multiple navigation
|
|
500
|
+
* modes, such as 2D floor plan navigation, first person and 3D orbit.
|
|
501
|
+
*/
|
|
502
|
+
export declare class OrthoPerspectiveCamera extends SimpleCamera {
|
|
503
|
+
/**
|
|
504
|
+
* The current {@link NavigationMode}.
|
|
505
|
+
*/
|
|
506
|
+
mode: NavigationMode;
|
|
507
|
+
readonly projection: ProjectionManager;
|
|
508
|
+
readonly threeOrtho: THREE.OrthographicCamera;
|
|
509
|
+
protected readonly _userInputButtons: any;
|
|
510
|
+
protected readonly _frustumSize = 50;
|
|
511
|
+
protected readonly _navigationModes: Map<NavModeID, NavigationMode>;
|
|
512
|
+
get current(): THREE.PerspectiveCamera | THREE.OrthographicCamera;
|
|
513
|
+
constructor(components: Components);
|
|
514
|
+
/** {@link Disposable.dispose} */
|
|
515
|
+
dispose(): void;
|
|
516
|
+
/**
|
|
517
|
+
* Sets a new {@link NavigationMode} and disables the previous one.
|
|
518
|
+
*
|
|
519
|
+
* @param mode - The {@link NavigationMode} to set.
|
|
520
|
+
*/
|
|
521
|
+
set(mode: NavModeID): void;
|
|
522
|
+
/**
|
|
523
|
+
* Make the camera view fit all the specified meshes.
|
|
524
|
+
*
|
|
525
|
+
* @param meshes the meshes to fit. If it is not defined, it will
|
|
526
|
+
* evaluate {@link Components.meshes}.
|
|
527
|
+
* @param offset the distance to the fit object
|
|
528
|
+
*/
|
|
529
|
+
fit(meshes: Iterable<THREE.Mesh>, offset?: number): Promise<void>;
|
|
530
|
+
/**
|
|
531
|
+
* Allows or prevents all user input.
|
|
532
|
+
*
|
|
533
|
+
* @param active - whether to enable or disable user inputs.
|
|
534
|
+
*/
|
|
535
|
+
setUserInput(active: boolean): void;
|
|
536
|
+
private disableUserInput;
|
|
537
|
+
private enableUserInput;
|
|
538
|
+
private newOrthoCamera;
|
|
539
|
+
private setOrthoCameraAspect;
|
|
540
|
+
}
|
|
541
|
+
import * as THREE from "three";
|
|
542
|
+
export declare function obbFromPoints(vertices: ArrayLike<number>): {
|
|
543
|
+
center: THREE.Vector3;
|
|
544
|
+
halfSizes: THREE.Vector3;
|
|
545
|
+
rotation: THREE.Matrix3;
|
|
546
|
+
transformation: THREE.Matrix4;
|
|
547
|
+
};
|
|
548
|
+
export declare function isPointInFrontOfPlane(point: number[], planePoint: number[], planeNormal: number[]): boolean;
|
|
549
|
+
import * as THREE from "three";
|
|
732
550
|
export declare class MaterialsUtils {
|
|
733
551
|
static isTransparent(material: THREE.Material): boolean;
|
|
734
552
|
}
|
|
735
553
|
import * as THREE from "three";
|
|
554
|
+
export interface MeasureEdge {
|
|
555
|
+
distance: number;
|
|
556
|
+
points: THREE.Vector3[];
|
|
557
|
+
}
|
|
558
|
+
export declare class MeasurementUtils {
|
|
559
|
+
static getFace(mesh: THREE.InstancedMesh | THREE.Mesh, triangleIndex: number, instance?: number): {
|
|
560
|
+
edges: MeasureEdge[];
|
|
561
|
+
indices: Set<number>;
|
|
562
|
+
} | null;
|
|
563
|
+
static distanceFromPointToLine(point: THREE.Vector3, lineStart: THREE.Vector3, lineEnd: THREE.Vector3, clamp?: boolean): number;
|
|
564
|
+
private static getFaceData;
|
|
565
|
+
static getVerticesAndNormal(mesh: THREE.Mesh | THREE.InstancedMesh, faceIndex: number, instance: number | undefined): {
|
|
566
|
+
p1: THREE.Vector3;
|
|
567
|
+
p2: THREE.Vector3;
|
|
568
|
+
p3: THREE.Vector3;
|
|
569
|
+
faceNormal: THREE.Vector3;
|
|
570
|
+
};
|
|
571
|
+
private static round;
|
|
572
|
+
}
|
|
573
|
+
export declare class UUID {
|
|
574
|
+
private static _pattern;
|
|
575
|
+
private static _lut;
|
|
576
|
+
static create(): string;
|
|
577
|
+
static validate(uuid: string): void;
|
|
578
|
+
}
|
|
579
|
+
import * as THREE from "three";
|
|
736
580
|
import { Component, Components, Event, World, Disposable } from "../core";
|
|
737
581
|
export interface VertexPickerConfig {
|
|
738
582
|
showOnlyVertex: boolean;
|
|
@@ -763,512 +607,248 @@ export declare class VertexPicker extends Component implements Disposable {
|
|
|
763
607
|
private getVertices;
|
|
764
608
|
private getVertex;
|
|
765
609
|
}
|
|
766
|
-
export declare function isPointInFrontOfPlane(point: number[], planePoint: number[], planeNormal: number[]): boolean;
|
|
767
|
-
export declare const IfcCategoryMap: {
|
|
768
|
-
[key: number]: string;
|
|
769
|
-
};
|
|
770
|
-
export declare const IfcElements: {
|
|
771
|
-
[key: number]: string;
|
|
772
|
-
};
|
|
773
610
|
import * as FRAGS from "bim-fragment";
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
}
|
|
782
|
-
static getQsetQuantities(model: FRAGS.FragmentsGroup, expressID: number, onQuantityFound?: (expressID: number) => void): Promise<number[] | null>;
|
|
783
|
-
static getPsetProps(model: FRAGS.FragmentsGroup, expressID: number, onPropFound?: (expressID: number) => void): Promise<number[] | null>;
|
|
784
|
-
static getPsetRel(model: FRAGS.FragmentsGroup, psetID: number): Promise<number | null>;
|
|
785
|
-
static getQsetRel(model: FRAGS.FragmentsGroup, qsetID: number): Promise<number | null>;
|
|
786
|
-
static getEntityName(model: FRAGS.FragmentsGroup, entityID: number): Promise<{
|
|
787
|
-
key: string | null;
|
|
788
|
-
name: string | null;
|
|
789
|
-
}>;
|
|
790
|
-
static getQuantityValue(model: FRAGS.FragmentsGroup, quantityID: number): Promise<{
|
|
791
|
-
key: string | null;
|
|
792
|
-
value: number | null;
|
|
793
|
-
}>;
|
|
794
|
-
static isRel(expressID: number): boolean;
|
|
795
|
-
static attributeExists(model: FRAGS.FragmentsGroup, expressID: number, attribute: string): Promise<boolean>;
|
|
796
|
-
static groupEntitiesByType(model: FRAGS.FragmentsGroup, expressIDs: Set<number> | number[]): Promise<Map<number, Set<number>>>;
|
|
797
|
-
}
|
|
798
|
-
import * as WEBIFC from "web-ifc";
|
|
799
|
-
export interface IfcItemsCategories {
|
|
800
|
-
[itemID: number]: number;
|
|
801
|
-
}
|
|
802
|
-
export declare class IfcCategories {
|
|
803
|
-
getAll(webIfc: WEBIFC.IfcAPI, modelID: number): IfcItemsCategories;
|
|
804
|
-
}
|
|
805
|
-
export declare const GeometryTypes: Set<number>;
|
|
806
|
-
import * as THREE from "three";
|
|
807
|
-
import { Components } from "../../Components";
|
|
808
|
-
import { Event, World, Disposable } from "../../Types";
|
|
809
|
-
import { Mouse } from "./mouse";
|
|
810
|
-
/**
|
|
811
|
-
* A simple [raycaster](https://threejs.org/docs/#api/en/core/Raycaster)
|
|
812
|
-
* that allows to easily get items from the scene using the mouse and touch
|
|
813
|
-
* events.
|
|
814
|
-
*/
|
|
815
|
-
export declare class SimpleRaycaster implements Disposable {
|
|
816
|
-
/** {@link Component.enabled} */
|
|
817
|
-
enabled: boolean;
|
|
818
|
-
components: Components;
|
|
819
|
-
/** {@link Disposable.onDisposed} */
|
|
820
|
-
readonly onDisposed: Event<unknown>;
|
|
821
|
-
/** The position of the mouse in the screen. */
|
|
822
|
-
readonly mouse: Mouse;
|
|
823
|
-
readonly three: THREE.Raycaster;
|
|
824
|
-
world: World;
|
|
825
|
-
constructor(components: Components, world: World);
|
|
826
|
-
/** {@link Disposable.dispose} */
|
|
827
|
-
dispose(): void;
|
|
828
|
-
/**
|
|
829
|
-
* Throws a ray from the camera to the mouse or touch event point and returns
|
|
830
|
-
* the first item found. This also takes into account the clipping planes
|
|
831
|
-
* used by the renderer.
|
|
832
|
-
*
|
|
833
|
-
* @param items - the [meshes](https://threejs.org/docs/#api/en/objects/Mesh)
|
|
834
|
-
* to query. If not provided, it will query all the meshes stored in
|
|
835
|
-
* {@link Components.meshes}.
|
|
836
|
-
*/
|
|
837
|
-
castRay(items?: THREE.Mesh[]): THREE.Intersection | null;
|
|
838
|
-
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;
|
|
839
|
-
private intersect;
|
|
840
|
-
private filterClippingPlanes;
|
|
611
|
+
import { FragmentsGroup } from "bim-fragment";
|
|
612
|
+
import { Disposable, Event, Component, Components } from "../../core";
|
|
613
|
+
import { QueryGroup } from "./src/types";
|
|
614
|
+
export interface QueryResult {
|
|
615
|
+
[modelID: string]: {
|
|
616
|
+
modelEntities: Set<number>;
|
|
617
|
+
otherEntities: Set<number>;
|
|
618
|
+
};
|
|
841
619
|
}
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
*/
|
|
847
|
-
export declare class FirstPersonMode implements NavigationMode {
|
|
848
|
-
private camera;
|
|
849
|
-
/** {@link NavigationMode.enabled} */
|
|
850
|
-
enabled: boolean;
|
|
851
|
-
/** {@link NavigationMode.id} */
|
|
852
|
-
readonly id = "FirstPerson";
|
|
853
|
-
constructor(camera: any);
|
|
854
|
-
/** {@link NavigationMode.set} */
|
|
855
|
-
set(active: boolean): void;
|
|
856
|
-
private setupFirstPersonCamera;
|
|
620
|
+
export interface IndexedModels {
|
|
621
|
+
[modelID: string]: {
|
|
622
|
+
[expressID: number]: Set<number>;
|
|
623
|
+
};
|
|
857
624
|
}
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
/**
|
|
861
|
-
* A helper to easily get the real position of the mouse in the Three.js canvas
|
|
862
|
-
* to work with tools like the
|
|
863
|
-
* [raycaster](https://threejs.org/docs/#api/en/core/Raycaster), even if it has
|
|
864
|
-
* been transformed through CSS or doesn't occupy the whole screen.
|
|
865
|
-
*/
|
|
866
|
-
export declare class Mouse implements Disposable {
|
|
867
|
-
dom: HTMLCanvasElement;
|
|
868
|
-
private _event?;
|
|
869
|
-
private _position;
|
|
625
|
+
export declare class IfcPropertiesFinder extends Component implements Disposable {
|
|
626
|
+
readonly onFound: Event<FRAGS.FragmentIdMap>;
|
|
870
627
|
/** {@link Disposable.onDisposed} */
|
|
871
628
|
readonly onDisposed: Event<unknown>;
|
|
872
|
-
constructor(dom: HTMLCanvasElement);
|
|
873
|
-
/**
|
|
874
|
-
* The real position of the mouse of the Three.js canvas.
|
|
875
|
-
*/
|
|
876
|
-
get position(): THREE.Vector2;
|
|
877
|
-
/** {@link Disposable.dispose} */
|
|
878
|
-
dispose(): void;
|
|
879
|
-
private getPositionY;
|
|
880
|
-
private getPositionX;
|
|
881
|
-
private updateMouseInfo;
|
|
882
|
-
private setupEvents;
|
|
883
|
-
}
|
|
884
|
-
import { NavigationMode } from "./types";
|
|
885
|
-
/**
|
|
886
|
-
* A {@link NavigationMode} that allows 3D navigation and panning
|
|
887
|
-
* like in many 3D and CAD softwares.
|
|
888
|
-
*/
|
|
889
|
-
export declare class OrbitMode implements NavigationMode {
|
|
890
|
-
camera: any;
|
|
891
|
-
/** {@link NavigationMode.enabled} */
|
|
892
629
|
enabled: boolean;
|
|
893
|
-
|
|
894
|
-
readonly
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
630
|
+
indexedModels: IndexedModels;
|
|
631
|
+
private readonly _conditionFunctions;
|
|
632
|
+
private _noHandleAttributes;
|
|
633
|
+
constructor(components: Components);
|
|
634
|
+
private onFragmentsDisposed;
|
|
635
|
+
dispose(): void;
|
|
636
|
+
private indexEntityRelations;
|
|
637
|
+
find(groups: QueryGroup[], queryModels?: FragmentsGroup[]): Promise<FRAGS.FragmentIdMap>;
|
|
638
|
+
private toFragmentMap;
|
|
639
|
+
private simpleQuery;
|
|
640
|
+
private getMatchingEntities;
|
|
641
|
+
private combineArrays;
|
|
642
|
+
private getCommonElements;
|
|
643
|
+
private arrayIntersection;
|
|
644
|
+
private arrayUnion;
|
|
645
|
+
private getConditionFunctions;
|
|
899
646
|
}
|
|
900
647
|
import * as WEBIFC from "web-ifc";
|
|
901
|
-
import
|
|
902
|
-
export declare class SpatialStructure {
|
|
903
|
-
itemsByFloor: IfcItemsCategories;
|
|
904
|
-
private _units;
|
|
905
|
-
setUp(webIfc: WEBIFC.IfcAPI): void;
|
|
906
|
-
cleanUp(): void;
|
|
907
|
-
}
|
|
908
|
-
import { NavigationMode } from "./types";
|
|
909
|
-
/**
|
|
910
|
-
* A {@link NavigationMode} that allows to navigate floorplans in 2D,
|
|
911
|
-
* like many BIM tools.
|
|
912
|
-
*/
|
|
913
|
-
export declare class PlanMode implements NavigationMode {
|
|
914
|
-
private camera;
|
|
915
|
-
/** {@link NavigationMode.enabled} */
|
|
916
|
-
enabled: boolean;
|
|
917
|
-
/** {@link NavigationMode.id} */
|
|
918
|
-
readonly id = "Plan";
|
|
919
|
-
private mouseAction1?;
|
|
920
|
-
private mouseAction2?;
|
|
921
|
-
private mouseInitialized;
|
|
922
|
-
private readonly defaultAzimuthSpeed;
|
|
923
|
-
private readonly defaultPolarSpeed;
|
|
924
|
-
constructor(camera: any);
|
|
925
|
-
/** {@link NavigationMode.set} */
|
|
926
|
-
set(active: boolean): void;
|
|
927
|
-
}
|
|
928
|
-
/**
|
|
929
|
-
* The projection system of the camera.
|
|
930
|
-
*/
|
|
931
|
-
export type CameraProjection = "Perspective" | "Orthographic";
|
|
932
|
-
/**
|
|
933
|
-
* The extensible list of supported navigation modes.
|
|
934
|
-
*/
|
|
935
|
-
export type NavModeID = "Orbit" | "FirstPerson" | "Plan";
|
|
648
|
+
import * as FRAG from "bim-fragment";
|
|
936
649
|
/**
|
|
937
|
-
*
|
|
938
|
-
* and the user input (e.g. 2D floor plan mode, first person mode, etc).
|
|
650
|
+
* Object to export all the properties from an IFC to a JS object.
|
|
939
651
|
*/
|
|
940
|
-
export
|
|
941
|
-
/** The unique ID of this navigation mode. */
|
|
942
|
-
id: NavModeID;
|
|
652
|
+
export declare class IfcJsonExporter {
|
|
943
653
|
/**
|
|
944
|
-
*
|
|
945
|
-
*
|
|
946
|
-
*
|
|
947
|
-
*
|
|
948
|
-
* @param
|
|
949
|
-
*
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
/** Whether this navigation mode is active or not. */
|
|
953
|
-
enabled: boolean;
|
|
654
|
+
* Exports all the properties of an IFC into an array of JS objects.
|
|
655
|
+
* @param webIfc The instance of [web-ifc]{@link https://github.com/ThatOpen/engine_web-ifc} to use.
|
|
656
|
+
* @param modelID ID of the IFC model whose properties to extract.
|
|
657
|
+
* @param indirect whether to get the indirect relationships as well.
|
|
658
|
+
* @param recursiveSpatial whether to get the properties of spatial items recursively
|
|
659
|
+
* to make the location data available (e.g. absolute position of building).
|
|
660
|
+
*/
|
|
661
|
+
export(webIfc: WEBIFC.IfcAPI, modelID: number, indirect?: boolean, recursiveSpatial?: boolean): Promise<FRAG.IfcProperties>;
|
|
954
662
|
}
|
|
955
|
-
|
|
956
|
-
import
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
export interface GridConfig {
|
|
960
|
-
color: THREE.Color;
|
|
961
|
-
size1: number;
|
|
962
|
-
size2: number;
|
|
963
|
-
distance: number;
|
|
663
|
+
import { FragmentsGroup } from "bim-fragment";
|
|
664
|
+
import { Disposable, Event, Component, Components } from "../../core";
|
|
665
|
+
interface RelationMap {
|
|
666
|
+
[modelID: string]: Map<number, Map<number, number[]>>;
|
|
964
667
|
}
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
* [fyrestar](https://github.com/Fyrestar/THREE.InfiniteGridHelper)
|
|
968
|
-
* and translated to typescript by
|
|
969
|
-
* [dkaraush](https://github.com/dkaraush/THREE.InfiniteGridHelper/blob/master/InfiniteGridHelper.ts).
|
|
970
|
-
*/
|
|
971
|
-
export declare class SimpleGrid implements Hideable, Disposable {
|
|
668
|
+
export declare class IfcPropertiesIndexer extends Component implements Disposable {
|
|
669
|
+
static readonly uuid: "23a889ab-83b3-44a4-8bee-ead83438370b";
|
|
972
670
|
/** {@link Disposable.onDisposed} */
|
|
973
|
-
readonly onDisposed: Event<
|
|
974
|
-
|
|
975
|
-
components: Components;
|
|
976
|
-
/** {@link Hideable.visible} */
|
|
977
|
-
get visible(): boolean;
|
|
978
|
-
/** {@link Hideable.visible} */
|
|
979
|
-
set visible(visible: boolean);
|
|
980
|
-
/** The material of the grid. */
|
|
981
|
-
get material(): THREE.ShaderMaterial;
|
|
671
|
+
readonly onDisposed: Event<string>;
|
|
672
|
+
enabled: boolean;
|
|
982
673
|
/**
|
|
983
|
-
*
|
|
984
|
-
* perspective cameras and false for orthographic cameras.
|
|
674
|
+
* All the inverse attributes this component can processes.
|
|
985
675
|
*/
|
|
986
|
-
|
|
676
|
+
readonly inverseAttributes: string[];
|
|
677
|
+
inverseAttributesToProcess: string[];
|
|
678
|
+
private _relToAttributesMap;
|
|
679
|
+
readonly relationMaps: RelationMap;
|
|
680
|
+
constructor(components: Components);
|
|
681
|
+
private onFragmentsDisposed;
|
|
682
|
+
private getAttributeRels;
|
|
683
|
+
private setRelMap;
|
|
987
684
|
/**
|
|
988
|
-
*
|
|
989
|
-
*
|
|
685
|
+
* Processes a given model to index its IFC entities relations based on predefined inverse attributes.
|
|
686
|
+
* This method iterates through each specified inverse attribute, retrieves the corresponding relations,
|
|
687
|
+
* and maps them in a structured way to facilitate quick access to related entities.
|
|
688
|
+
*
|
|
689
|
+
* The process involves querying the model for each relation type associated with the inverse attributes
|
|
690
|
+
* and updating the internal relationMaps with the relationships found. This map is keyed by the model's UUID
|
|
691
|
+
* and contains a nested map where each key is an entity's expressID and its value is another map.
|
|
692
|
+
* This inner map's keys are the indices of the inverse attributes, and its values are arrays of expressIDs
|
|
693
|
+
* of entities that are related through that attribute.
|
|
694
|
+
*
|
|
695
|
+
* @param model The 'FragmentsGroup' model to be processed. It must have properties loaded.
|
|
696
|
+
* @returns A promise that resolves to the relations map for the processed model. This map is a detailed
|
|
697
|
+
* representation of the relations indexed by entity expressIDs and relation types.
|
|
698
|
+
* @throws An error if the model does not have properties loaded.
|
|
990
699
|
*/
|
|
991
|
-
|
|
992
|
-
private readonly _grid;
|
|
993
|
-
private _fade;
|
|
994
|
-
constructor(components: Components, world: World, config: GridConfig);
|
|
995
|
-
[Symbol.dispose](): void;
|
|
996
|
-
/** {@link Component.get} */
|
|
997
|
-
get(): THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
|
|
998
|
-
/** {@link Disposable.dispose} */
|
|
999
|
-
dispose(): void;
|
|
1000
|
-
private setupEvents;
|
|
1001
|
-
private updateZoom;
|
|
1002
|
-
}
|
|
1003
|
-
import * as THREE from "three";
|
|
1004
|
-
import { CameraProjection } from "./types";
|
|
1005
|
-
import { Event } from "../../../core";
|
|
1006
|
-
import { OrthoPerspectiveCamera } from "../index";
|
|
1007
|
-
/**
|
|
1008
|
-
* Object to control the {@link CameraProjection} of the {@link OrthoPerspectiveCamera}.
|
|
1009
|
-
*/
|
|
1010
|
-
export declare class ProjectionManager {
|
|
700
|
+
process(model: FragmentsGroup): Promise<Map<number, Map<number, number[]>>>;
|
|
1011
701
|
/**
|
|
1012
|
-
*
|
|
702
|
+
* Retrieves the relations of a specific entity within a model based on the given relation name.
|
|
703
|
+
* This method searches the indexed relation maps for the specified model and entity,
|
|
704
|
+
* returning the IDs of related entities if a match is found.
|
|
705
|
+
*
|
|
706
|
+
* @param model The 'FragmentsGroup' model containing the entity.
|
|
707
|
+
* @param expressID The unique identifier of the entity within the model.
|
|
708
|
+
* @param relationName The IFC schema inverse attribute of the relation to search for (e.g., "IsDefinedBy", "ContainsElements").
|
|
709
|
+
* @returns An array of express IDs representing the related entities, or 'null' if no relations are found
|
|
710
|
+
* or the specified relation name is not indexed.
|
|
1013
711
|
*/
|
|
1014
|
-
|
|
1015
|
-
current: CameraProjection;
|
|
1016
|
-
camera: THREE.PerspectiveCamera | THREE.OrthographicCamera;
|
|
1017
|
-
private _component;
|
|
1018
|
-
private _previousDistance;
|
|
1019
|
-
/** Match Ortho zoom with Perspective distance when changing projection mode */
|
|
1020
|
-
matchOrthoDistanceEnabled: boolean;
|
|
1021
|
-
constructor(camera: OrthoPerspectiveCamera);
|
|
712
|
+
getEntityRelations(model: FragmentsGroup, expressID: number, relationName: string): number[] | null;
|
|
1022
713
|
/**
|
|
1023
|
-
*
|
|
714
|
+
* Serializes the relations of a specific model into a JSON string.
|
|
715
|
+
* This method iterates through the relations indexed for the given model,
|
|
716
|
+
* organizing them into a structured object where each key is an expressID of an entity,
|
|
717
|
+
* and its value is another object mapping relation indices to arrays of related entity expressIDs.
|
|
718
|
+
* The resulting object is then serialized into a JSON string.
|
|
1024
719
|
*
|
|
1025
|
-
* @param
|
|
1026
|
-
*
|
|
720
|
+
* @param model The 'FragmentsGroup' model whose relations are to be serialized.
|
|
721
|
+
* @returns A JSON string representing the serialized relations of the specified model.
|
|
722
|
+
* If the model has no indexed relations, 'null' is returned.
|
|
1027
723
|
*/
|
|
1028
|
-
|
|
724
|
+
serializeModelRelations(model: FragmentsGroup): string | null;
|
|
1029
725
|
/**
|
|
1030
|
-
*
|
|
1031
|
-
*
|
|
726
|
+
* Serializes all relations of every model processed by the indexer into a JSON string.
|
|
727
|
+
* This method iterates through each model's relations indexed in 'relationMaps', organizing them
|
|
728
|
+
* into a structured JSON object. Each top-level key in this object corresponds to a model's UUID,
|
|
729
|
+
* and its value is another object mapping entity expressIDs to their related entities, categorized
|
|
730
|
+
* by relation types. The structure facilitates easy access to any entity's relations across all models.
|
|
731
|
+
*
|
|
732
|
+
* @returns A JSON string representing the serialized relations of all models processed by the indexer.
|
|
733
|
+
* If no relations have been indexed, an empty object is returned as a JSON string.
|
|
1032
734
|
*/
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
private getDims;
|
|
1036
|
-
private setupOrthoCamera;
|
|
1037
|
-
private getDistance;
|
|
1038
|
-
private setPerspectiveCamera;
|
|
1039
|
-
}
|
|
1040
|
-
import * as THREE from "three";
|
|
1041
|
-
import { CullerRenderer, CullerRendererSettings } from "./culler-renderer";
|
|
1042
|
-
import { Components } from "../../Components";
|
|
1043
|
-
import { Event, World } from "../../Types";
|
|
1044
|
-
/**
|
|
1045
|
-
* A renderer to determine a mesh visibility on screen
|
|
1046
|
-
*/
|
|
1047
|
-
export declare class MeshCullerRenderer extends CullerRenderer {
|
|
1048
|
-
threshold: number;
|
|
1049
|
-
readonly onViewUpdated: Event<{
|
|
1050
|
-
seen: Set<THREE.Mesh>;
|
|
1051
|
-
unseen: Set<THREE.Mesh>;
|
|
1052
|
-
}>;
|
|
1053
|
-
colorMeshes: Map<string, THREE.InstancedMesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
1054
|
-
isProcessing: boolean;
|
|
1055
|
-
private _colorCodeMeshMap;
|
|
1056
|
-
private _meshIDColorCodeMap;
|
|
1057
|
-
private _currentVisibleMeshes;
|
|
1058
|
-
private _recentlyHiddenMeshes;
|
|
1059
|
-
private readonly _transparentMat;
|
|
1060
|
-
constructor(components: Components, world: World, settings?: CullerRendererSettings);
|
|
735
|
+
serializeRelations(): string;
|
|
736
|
+
getRelationsMapFromJSON(json: string): Map<number, Map<number, number[]>>;
|
|
1061
737
|
dispose(): void;
|
|
1062
|
-
add(mesh: THREE.Mesh | THREE.InstancedMesh): void;
|
|
1063
|
-
remove(mesh: THREE.Mesh | THREE.InstancedMesh): void;
|
|
1064
|
-
private handleWorkerMessage;
|
|
1065
|
-
private getAvailableMaterial;
|
|
1066
738
|
}
|
|
1067
|
-
|
|
1068
|
-
import
|
|
1069
|
-
import {
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
739
|
+
export {};
|
|
740
|
+
import * as WEBIFC from "web-ifc";
|
|
741
|
+
import { FragmentsGroup } from "bim-fragment";
|
|
742
|
+
import { Component, Disposable, Event, Components } from "../../core";
|
|
743
|
+
type BooleanPropTypes = "IfcBoolean" | "IfcLogical";
|
|
744
|
+
type StringPropTypes = "IfcText" | "IfcLabel" | "IfcIdentifier";
|
|
745
|
+
type NumericPropTypes = "IfcInteger" | "IfcReal";
|
|
746
|
+
interface ChangeMap {
|
|
747
|
+
[modelID: string]: Set<number>;
|
|
1075
748
|
}
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
readonly onDisposed: Event<string>;
|
|
1082
|
-
/**
|
|
1083
|
-
* Fires after making the visibility check to the meshes. It lists the
|
|
1084
|
-
* meshes that are currently visible, and the ones that were visible
|
|
1085
|
-
* just before but not anymore.
|
|
1086
|
-
*/
|
|
1087
|
-
readonly onViewUpdated: Event<any>;
|
|
1088
|
-
/** {@link Component.enabled} */
|
|
1089
|
-
enabled: boolean;
|
|
1090
|
-
/**
|
|
1091
|
-
* Needs to check whether there are objects that need to be hidden or shown.
|
|
1092
|
-
* You can bind this to the camera movement, to a certain interval, etc.
|
|
1093
|
-
*/
|
|
1094
|
-
needsUpdate: boolean;
|
|
1095
|
-
/**
|
|
1096
|
-
* Render the internal scene used to determine the object visibility. Used
|
|
1097
|
-
* for debugging purposes.
|
|
1098
|
-
*/
|
|
1099
|
-
renderDebugFrame: boolean;
|
|
1100
|
-
components: Components;
|
|
1101
|
-
readonly world: World;
|
|
1102
|
-
readonly renderer: THREE.WebGLRenderer;
|
|
1103
|
-
protected autoUpdate: boolean;
|
|
1104
|
-
protected updateInterval: number;
|
|
1105
|
-
protected readonly worker: Worker;
|
|
1106
|
-
protected readonly scene: THREE.Scene;
|
|
1107
|
-
private _width;
|
|
1108
|
-
private _height;
|
|
1109
|
-
private _availableColor;
|
|
1110
|
-
private readonly renderTarget;
|
|
1111
|
-
private readonly bufferSize;
|
|
1112
|
-
private readonly _buffer;
|
|
1113
|
-
constructor(components: Components, world: World, settings?: CullerRendererSettings);
|
|
1114
|
-
/** {@link Disposable.dispose} */
|
|
1115
|
-
dispose(): void;
|
|
1116
|
-
/**
|
|
1117
|
-
* The function that the culler uses to reprocess the scene. Generally it's
|
|
1118
|
-
* better to call needsUpdate, but you can also call this to force it.
|
|
1119
|
-
* @param force if true, it will refresh the scene even if needsUpdate is
|
|
1120
|
-
* not true.
|
|
1121
|
-
*/
|
|
1122
|
-
updateVisibility: (force?: boolean) => Promise<void>;
|
|
1123
|
-
protected getAvailableColor(): {
|
|
1124
|
-
r: number;
|
|
1125
|
-
g: number;
|
|
1126
|
-
b: number;
|
|
1127
|
-
code: string;
|
|
749
|
+
interface AttributeListener {
|
|
750
|
+
[modelID: string]: {
|
|
751
|
+
[expressID: number]: {
|
|
752
|
+
[attributeName: string]: Event<String | Boolean | Number>;
|
|
753
|
+
};
|
|
1128
754
|
};
|
|
1129
|
-
protected increaseColor(): void;
|
|
1130
|
-
protected decreaseColor(): void;
|
|
1131
|
-
private applySettings;
|
|
1132
755
|
}
|
|
1133
|
-
export declare
|
|
1134
|
-
|
|
1135
|
-
import { BaseRenderer, Event } from "../../Types";
|
|
1136
|
-
import { Components } from "../../Components";
|
|
1137
|
-
/**
|
|
1138
|
-
* A basic renderer capable of rendering
|
|
1139
|
-
* ([Objec3Ds](https://threejs.org/docs/#api/en/core/Object3D).
|
|
1140
|
-
*/
|
|
1141
|
-
export declare class SimpleRenderer extends BaseRenderer {
|
|
1142
|
-
/** {@link Component.enabled} */
|
|
1143
|
-
enabled: boolean;
|
|
1144
|
-
/** The HTML container of the THREE.js canvas where the scene is rendered. */
|
|
1145
|
-
container: HTMLElement | null;
|
|
1146
|
-
three: THREE.WebGLRenderer;
|
|
1147
|
-
protected _canvas: HTMLCanvasElement;
|
|
1148
|
-
protected _parameters?: Partial<THREE.WebGLRendererParameters>;
|
|
1149
|
-
protected onContainerUpdated: Event<HTMLElement>;
|
|
1150
|
-
constructor(components: Components, container?: HTMLElement, parameters?: Partial<THREE.WebGLRendererParameters>);
|
|
1151
|
-
/** {@link Updateable.update} */
|
|
1152
|
-
update(): void;
|
|
1153
|
-
/** {@link Disposable.dispose} */
|
|
1154
|
-
dispose(): void;
|
|
1155
|
-
/** {@link Resizeable.getSize}. */
|
|
1156
|
-
getSize(): THREE.Vector2;
|
|
1157
|
-
/** {@link Resizeable.resize} */
|
|
1158
|
-
resize: (size?: THREE.Vector2) => void;
|
|
1159
|
-
setupEvents(active: boolean): void;
|
|
1160
|
-
private resizeEvent;
|
|
1161
|
-
private setupRenderer;
|
|
1162
|
-
private onContextLost;
|
|
1163
|
-
private onContextBack;
|
|
1164
|
-
private updateContainer;
|
|
1165
|
-
}
|
|
1166
|
-
import * as THREE from "three";
|
|
1167
|
-
import CameraControls from "camera-controls";
|
|
1168
|
-
import { Disposable, Updateable, Event, BaseCamera } from "../../Types";
|
|
1169
|
-
import { Components } from "../../Components";
|
|
1170
|
-
/**
|
|
1171
|
-
* A basic camera that uses
|
|
1172
|
-
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls) to
|
|
1173
|
-
* easily control the camera in 2D and 3D. Check out it's API to find out
|
|
1174
|
-
* what features it offers.
|
|
1175
|
-
*/
|
|
1176
|
-
export declare class SimpleCamera extends BaseCamera implements Updateable, Disposable {
|
|
1177
|
-
/** {@link Updateable.onBeforeUpdate} */
|
|
1178
|
-
readonly onBeforeUpdate: Event<SimpleCamera>;
|
|
1179
|
-
/** {@link Updateable.onAfterUpdate} */
|
|
1180
|
-
readonly onAfterUpdate: Event<SimpleCamera>;
|
|
1181
|
-
readonly onAspectUpdated: Event<unknown>;
|
|
756
|
+
export declare class IfcPropertiesManager extends Component implements Disposable {
|
|
757
|
+
static readonly uuid: "58c2d9f0-183c-48d6-a402-dfcf5b9a34df";
|
|
1182
758
|
/** {@link Disposable.onDisposed} */
|
|
1183
759
|
readonly onDisposed: Event<string>;
|
|
1184
|
-
readonly
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
760
|
+
readonly onRequestFile: Event<unknown>;
|
|
761
|
+
ifcToExport: ArrayBuffer | null;
|
|
762
|
+
readonly onElementToPset: Event<{
|
|
763
|
+
model: FragmentsGroup;
|
|
764
|
+
psetID: number;
|
|
765
|
+
elementID: number;
|
|
766
|
+
}>;
|
|
767
|
+
readonly onPropToPset: Event<{
|
|
768
|
+
model: FragmentsGroup;
|
|
769
|
+
psetID: number;
|
|
770
|
+
propID: number;
|
|
771
|
+
}>;
|
|
772
|
+
readonly onPsetRemoved: Event<{
|
|
773
|
+
model: FragmentsGroup;
|
|
774
|
+
psetID: number;
|
|
775
|
+
}>;
|
|
776
|
+
readonly onDataChanged: Event<{
|
|
777
|
+
model: FragmentsGroup;
|
|
778
|
+
expressID: number;
|
|
779
|
+
}>;
|
|
780
|
+
wasm: {
|
|
781
|
+
path: string;
|
|
782
|
+
absolute: boolean;
|
|
783
|
+
};
|
|
784
|
+
enabled: boolean;
|
|
785
|
+
attributeListeners: AttributeListener;
|
|
786
|
+
selectedModel?: FragmentsGroup;
|
|
787
|
+
private _changeMap;
|
|
1197
788
|
constructor(components: Components);
|
|
1198
|
-
|
|
789
|
+
get(): ChangeMap;
|
|
1199
790
|
dispose(): void;
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
791
|
+
private increaseMaxID;
|
|
792
|
+
static getIFCSchema(model: FragmentsGroup): import("bim-fragment").IfcSchema;
|
|
793
|
+
private newGUID;
|
|
794
|
+
private getOwnerHistory;
|
|
795
|
+
private registerChange;
|
|
796
|
+
setData(model: FragmentsGroup, ...dataToSave: Record<string, any>[]): Promise<void>;
|
|
797
|
+
newPset(model: FragmentsGroup, name: string, description?: string): Promise<{
|
|
798
|
+
pset: WEBIFC.IFC2X3.IfcPropertySet | WEBIFC.IFC4.IfcPropertySet | WEBIFC.IFC4X3.IfcPropertySet;
|
|
799
|
+
rel: WEBIFC.IFC4X3.IfcRelDefinesByProperties | WEBIFC.IFC4.IfcRelDefinesByProperties | WEBIFC.IFC2X3.IfcRelDefinesByProperties;
|
|
800
|
+
}>;
|
|
801
|
+
removePset(model: FragmentsGroup, ...psetID: number[]): Promise<void>;
|
|
802
|
+
private newSingleProperty;
|
|
803
|
+
newSingleStringProperty(model: FragmentsGroup, type: StringPropTypes, name: string, value: string): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
804
|
+
newSingleNumericProperty(model: FragmentsGroup, type: NumericPropTypes, name: string, value: number): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
805
|
+
newSingleBooleanProperty(model: FragmentsGroup, type: BooleanPropTypes, name: string, value: boolean): Promise<WEBIFC.IFC2X3.IfcPropertySingleValue | WEBIFC.IFC4.IfcPropertySingleValue | WEBIFC.IFC4X3.IfcPropertySingleValue>;
|
|
806
|
+
removePsetProp(model: FragmentsGroup, psetID: number, propID: number): Promise<void>;
|
|
807
|
+
addElementToPset(model: FragmentsGroup, psetID: number, ...elementID: number[]): Promise<void>;
|
|
808
|
+
addPropToPset(model: FragmentsGroup, psetID: number, ...propID: number[]): Promise<void>;
|
|
809
|
+
saveToIfc(model: FragmentsGroup, ifcToSaveOn: Uint8Array): Promise<Uint8Array>;
|
|
810
|
+
setAttributeListener(model: FragmentsGroup, expressID: number, attributeName: string): Promise<Event<String | Number | Boolean>>;
|
|
1211
811
|
}
|
|
1212
|
-
|
|
1213
|
-
import
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
/**
|
|
1217
|
-
* All the loaded [meshes](https://threejs.org/docs/#api/en/objects/Mesh).
|
|
1218
|
-
*/
|
|
1219
|
-
readonly meshes: Set<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
1220
|
-
readonly onAfterUpdate: Event<unknown>;
|
|
1221
|
-
readonly onBeforeUpdate: Event<unknown>;
|
|
1222
|
-
enabled: boolean;
|
|
1223
|
-
uuid: string;
|
|
1224
|
-
readonly onDisposed: Event<unknown>;
|
|
1225
|
-
private _scene?;
|
|
1226
|
-
private _camera?;
|
|
1227
|
-
private _renderer;
|
|
1228
|
-
get scene(): T;
|
|
1229
|
-
set scene(scene: T);
|
|
1230
|
-
get camera(): U;
|
|
1231
|
-
set camera(camera: U);
|
|
1232
|
-
get renderer(): S | null;
|
|
1233
|
-
set renderer(renderer: S | null);
|
|
1234
|
-
constructor(components: Components);
|
|
1235
|
-
update(delta?: number): void;
|
|
1236
|
-
dispose(disposeResources?: boolean): void;
|
|
812
|
+
export {};
|
|
813
|
+
import * as WEBIFC from "web-ifc";
|
|
814
|
+
export interface IfcItemsCategories {
|
|
815
|
+
[itemID: number]: number;
|
|
1237
816
|
}
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
817
|
+
export declare class IfcCategories {
|
|
818
|
+
getAll(webIfc: WEBIFC.IfcAPI, modelID: number): IfcItemsCategories;
|
|
819
|
+
}
|
|
820
|
+
export declare const IfcElements: {
|
|
821
|
+
[key: number]: string;
|
|
822
|
+
};
|
|
823
|
+
export declare const IfcCategoryMap: {
|
|
824
|
+
[key: number]: string;
|
|
825
|
+
};
|
|
826
|
+
import * as FRAGS from "bim-fragment";
|
|
827
|
+
export declare class IfcPropertiesUtils {
|
|
828
|
+
static getUnits(group: FRAGS.FragmentsGroup): Promise<number>;
|
|
829
|
+
static findItemByGuid(model: FRAGS.FragmentsGroup, guid: string): Promise<{
|
|
830
|
+
[attribute: string]: any;
|
|
831
|
+
} | null>;
|
|
832
|
+
static getRelationMap(model: FRAGS.FragmentsGroup, relationType: number, onElementsFound?: (relatingID: number, relatedIDs: number[]) => Promise<void>): Promise<{
|
|
833
|
+
[relatingID: number]: number[];
|
|
834
|
+
}>;
|
|
835
|
+
static getQsetQuantities(model: FRAGS.FragmentsGroup, expressID: number, onQuantityFound?: (expressID: number) => void): Promise<number[] | null>;
|
|
836
|
+
static getPsetProps(model: FRAGS.FragmentsGroup, expressID: number, onPropFound?: (expressID: number) => void): Promise<number[] | null>;
|
|
837
|
+
static getPsetRel(model: FRAGS.FragmentsGroup, psetID: number): Promise<number | null>;
|
|
838
|
+
static getQsetRel(model: FRAGS.FragmentsGroup, qsetID: number): Promise<number | null>;
|
|
839
|
+
static getEntityName(model: FRAGS.FragmentsGroup, entityID: number): Promise<{
|
|
840
|
+
key: string | null;
|
|
841
|
+
name: string | null;
|
|
842
|
+
}>;
|
|
843
|
+
static getQuantityValue(model: FRAGS.FragmentsGroup, quantityID: number): Promise<{
|
|
844
|
+
key: string | null;
|
|
845
|
+
value: number | null;
|
|
846
|
+
}>;
|
|
847
|
+
static isRel(expressID: number): boolean;
|
|
848
|
+
static attributeExists(model: FRAGS.FragmentsGroup, expressID: number, attribute: string): Promise<boolean>;
|
|
849
|
+
static groupEntitiesByType(model: FRAGS.FragmentsGroup, expressIDs: Set<number> | number[]): Promise<Map<number, Set<number>>>;
|
|
1271
850
|
}
|
|
851
|
+
export declare const GeometryTypes: Set<number>;
|
|
1272
852
|
import * as THREE from "three";
|
|
1273
853
|
import CameraControls from "camera-controls";
|
|
1274
854
|
import { Event } from "./event";
|
|
@@ -1392,35 +972,39 @@ export interface BVHGeometry extends THREE.BufferGeometry {
|
|
|
1392
972
|
export interface CameraControllable {
|
|
1393
973
|
controls: CameraControls;
|
|
1394
974
|
}
|
|
1395
|
-
import * as THREE from "three";
|
|
1396
|
-
import { BaseScene, Configurable, Event } from "../../Types";
|
|
1397
|
-
import { Components } from "../../Components";
|
|
1398
|
-
export interface SimpleSceneConfig {
|
|
1399
|
-
directionalLight: {
|
|
1400
|
-
color: THREE.Color;
|
|
1401
|
-
intensity: number;
|
|
1402
|
-
position: THREE.Vector3;
|
|
1403
|
-
};
|
|
1404
|
-
ambientLight: {
|
|
1405
|
-
color: THREE.Color;
|
|
1406
|
-
intensity: number;
|
|
1407
|
-
};
|
|
1408
|
-
}
|
|
1409
975
|
/**
|
|
1410
|
-
*
|
|
1411
|
-
*
|
|
1412
|
-
*
|
|
976
|
+
* Simple event handler by
|
|
977
|
+
* [Jason Kleban](https://gist.github.com/JasonKleban/50cee44960c225ac1993c922563aa540).
|
|
978
|
+
* Keep in mind that:
|
|
979
|
+
* - If you want to remove it later, you might want to declare the callback as
|
|
980
|
+
* an object.
|
|
981
|
+
* - If you want to maintain the reference to 'this', you will need to declare
|
|
982
|
+
* the callback as an arrow function.
|
|
1413
983
|
*/
|
|
1414
|
-
export declare class
|
|
1415
|
-
/**
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
984
|
+
export declare class Event<T> {
|
|
985
|
+
/**
|
|
986
|
+
* Add a callback to this event instance.
|
|
987
|
+
* @param handler - the callback to be added to this event.
|
|
988
|
+
*/
|
|
989
|
+
add(handler: T extends void ? {
|
|
990
|
+
(): void;
|
|
991
|
+
} : {
|
|
992
|
+
(data: T): void;
|
|
993
|
+
}): void;
|
|
994
|
+
/**
|
|
995
|
+
* Removes a callback from this event instance.
|
|
996
|
+
* @param handler - the callback to be removed from this event.
|
|
997
|
+
*/
|
|
998
|
+
remove(handler: T extends void ? {
|
|
999
|
+
(): void;
|
|
1000
|
+
} : {
|
|
1001
|
+
(data: T): void;
|
|
1002
|
+
}): void;
|
|
1003
|
+
/** Triggers all the callbacks assigned to this event. */
|
|
1004
|
+
trigger: (data?: T) => void;
|
|
1005
|
+
/** Gets rid of all the suscribed events. */
|
|
1006
|
+
reset(): void;
|
|
1007
|
+
private handlers;
|
|
1424
1008
|
}
|
|
1425
1009
|
import { Base } from "./base";
|
|
1426
1010
|
/**
|
|
@@ -1440,23 +1024,6 @@ export declare abstract class Component extends Base {
|
|
|
1440
1024
|
*/
|
|
1441
1025
|
abstract enabled: boolean;
|
|
1442
1026
|
}
|
|
1443
|
-
import { Base } from "./base";
|
|
1444
|
-
import { World } from "./world";
|
|
1445
|
-
import { Event } from "./event";
|
|
1446
|
-
import { Components } from "../../Components";
|
|
1447
|
-
/**
|
|
1448
|
-
* One of the elements that make a world. It can be either a scene, a camera
|
|
1449
|
-
* or a renderer.
|
|
1450
|
-
*/
|
|
1451
|
-
export declare abstract class BaseWorldItem extends Base {
|
|
1452
|
-
readonly worlds: Map<string, World>;
|
|
1453
|
-
readonly onWorldChanged: Event<{
|
|
1454
|
-
world: World;
|
|
1455
|
-
action: "added" | "removed";
|
|
1456
|
-
}>;
|
|
1457
|
-
currentWorld: World | null;
|
|
1458
|
-
protected constructor(components: Components);
|
|
1459
|
-
}
|
|
1460
1027
|
import { Disposable, Hideable, Resizeable, Updateable, Configurable } from "./interfaces";
|
|
1461
1028
|
import { Components } from "../../Components";
|
|
1462
1029
|
/**
|
|
@@ -1476,6 +1043,31 @@ export declare abstract class Base {
|
|
|
1476
1043
|
/** Whether is component is {@link Configurable}. */
|
|
1477
1044
|
isConfigurable: () => this is Configurable<any>;
|
|
1478
1045
|
}
|
|
1046
|
+
import { Base } from "./base";
|
|
1047
|
+
import { World } from "./world";
|
|
1048
|
+
import { Event } from "./event";
|
|
1049
|
+
import { Components } from "../../Components";
|
|
1050
|
+
/**
|
|
1051
|
+
* One of the elements that make a world. It can be either a scene, a camera
|
|
1052
|
+
* or a renderer.
|
|
1053
|
+
*/
|
|
1054
|
+
export declare abstract class BaseWorldItem extends Base {
|
|
1055
|
+
readonly worlds: Map<string, World>;
|
|
1056
|
+
readonly onWorldChanged: Event<{
|
|
1057
|
+
world: World;
|
|
1058
|
+
action: "added" | "removed";
|
|
1059
|
+
}>;
|
|
1060
|
+
currentWorld: World | null;
|
|
1061
|
+
protected constructor(components: Components);
|
|
1062
|
+
}
|
|
1063
|
+
import * as WEBIFC from "web-ifc";
|
|
1064
|
+
import { IfcItemsCategories } from "../../../ifc";
|
|
1065
|
+
export declare class SpatialStructure {
|
|
1066
|
+
itemsByFloor: IfcItemsCategories;
|
|
1067
|
+
private _units;
|
|
1068
|
+
setUp(webIfc: WEBIFC.IfcAPI): void;
|
|
1069
|
+
cleanUp(): void;
|
|
1070
|
+
}
|
|
1479
1071
|
import * as THREE from "three";
|
|
1480
1072
|
import CameraControls from "camera-controls";
|
|
1481
1073
|
import { BaseWorldItem } from "./base-world-item";
|
|
@@ -1501,6 +1093,46 @@ export declare abstract class BaseScene extends BaseWorldItem implements Disposa
|
|
|
1501
1093
|
dispose(): void;
|
|
1502
1094
|
}
|
|
1503
1095
|
import * as THREE from "three";
|
|
1096
|
+
import { Vector2 } from "three";
|
|
1097
|
+
import { Event } from "./event";
|
|
1098
|
+
import { BaseWorldItem } from "./base-world-item";
|
|
1099
|
+
import { Disposable, Resizeable, Updateable } from "./interfaces";
|
|
1100
|
+
export declare abstract class BaseRenderer extends BaseWorldItem implements Updateable, Disposable, Resizeable {
|
|
1101
|
+
abstract three: THREE.WebGLRenderer;
|
|
1102
|
+
/** {@link Updateable.onBeforeUpdate} */
|
|
1103
|
+
onAfterUpdate: Event<unknown>;
|
|
1104
|
+
/** {@link Updateable.onAfterUpdate} */
|
|
1105
|
+
onBeforeUpdate: Event<unknown>;
|
|
1106
|
+
/** {@link Disposable.onDisposed} */
|
|
1107
|
+
readonly onDisposed: Event<undefined>;
|
|
1108
|
+
readonly onResize: Event<THREE.Vector2>;
|
|
1109
|
+
/**
|
|
1110
|
+
* Event that fires when there has been a change to the list of clipping
|
|
1111
|
+
* planes used by the active renderer.
|
|
1112
|
+
*/
|
|
1113
|
+
readonly onClippingPlanesUpdated: Event<unknown>;
|
|
1114
|
+
abstract update(delta?: number): void | Promise<void>;
|
|
1115
|
+
abstract dispose(): void;
|
|
1116
|
+
abstract getSize(): Vector2;
|
|
1117
|
+
abstract resize(size: Vector2 | undefined): void;
|
|
1118
|
+
/**
|
|
1119
|
+
* The list of [clipping planes](https://threejs.org/docs/#api/en/renderers/WebGLRenderer.clippingPlanes) used by this
|
|
1120
|
+
* instance of the renderer.
|
|
1121
|
+
*/
|
|
1122
|
+
clippingPlanes: THREE.Plane[];
|
|
1123
|
+
/**
|
|
1124
|
+
* Forces the update of the clipping planes and all components that depend
|
|
1125
|
+
* on them that are subscribed to 'onClippingPlanesUpdated'.
|
|
1126
|
+
*/
|
|
1127
|
+
updateClippingPlanes(): void;
|
|
1128
|
+
/**
|
|
1129
|
+
* Adds or removes a
|
|
1130
|
+
* [clipping plane](https://threejs.org/docs/#api/en/renderers/WebGLRenderer.clippingPlanes)
|
|
1131
|
+
* to the renderer.
|
|
1132
|
+
*/
|
|
1133
|
+
setPlane(active: boolean, plane: THREE.Plane, isLocal?: boolean): void;
|
|
1134
|
+
}
|
|
1135
|
+
import * as THREE from "three";
|
|
1504
1136
|
import { BaseScene } from "./base-scene";
|
|
1505
1137
|
import { BaseCamera } from "./base-camera";
|
|
1506
1138
|
import { BaseRenderer } from "./base-renderer";
|
|
@@ -1512,55 +1144,187 @@ export interface World extends Disposable, Updateable {
|
|
|
1512
1144
|
renderer: BaseRenderer | null;
|
|
1513
1145
|
uuid: string;
|
|
1514
1146
|
}
|
|
1515
|
-
import
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1147
|
+
import * as THREE from "three";
|
|
1148
|
+
import { Components } from "../../Components";
|
|
1149
|
+
import { Event, World } from "../../Types";
|
|
1150
|
+
export interface CullerRendererSettings {
|
|
1151
|
+
updateInterval?: number;
|
|
1152
|
+
width?: number;
|
|
1153
|
+
height?: number;
|
|
1154
|
+
autoUpdate?: boolean;
|
|
1520
1155
|
}
|
|
1521
|
-
/**
|
|
1522
|
-
|
|
1523
|
-
|
|
1156
|
+
/**
|
|
1157
|
+
* A base renderer to determine visibility on screen
|
|
1158
|
+
*/
|
|
1159
|
+
export declare class CullerRenderer {
|
|
1160
|
+
/** {@link Disposable.onDisposed} */
|
|
1161
|
+
readonly onDisposed: Event<string>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Fires after making the visibility check to the meshes. It lists the
|
|
1164
|
+
* meshes that are currently visible, and the ones that were visible
|
|
1165
|
+
* just before but not anymore.
|
|
1166
|
+
*/
|
|
1167
|
+
readonly onViewUpdated: Event<any>;
|
|
1168
|
+
/** {@link Component.enabled} */
|
|
1169
|
+
enabled: boolean;
|
|
1170
|
+
/**
|
|
1171
|
+
* Needs to check whether there are objects that need to be hidden or shown.
|
|
1172
|
+
* You can bind this to the camera movement, to a certain interval, etc.
|
|
1173
|
+
*/
|
|
1174
|
+
needsUpdate: boolean;
|
|
1175
|
+
/**
|
|
1176
|
+
* Render the internal scene used to determine the object visibility. Used
|
|
1177
|
+
* for debugging purposes.
|
|
1178
|
+
*/
|
|
1179
|
+
renderDebugFrame: boolean;
|
|
1180
|
+
components: Components;
|
|
1181
|
+
readonly world: World;
|
|
1182
|
+
readonly renderer: THREE.WebGLRenderer;
|
|
1183
|
+
protected autoUpdate: boolean;
|
|
1184
|
+
protected updateInterval: number;
|
|
1185
|
+
protected readonly worker: Worker;
|
|
1186
|
+
protected readonly scene: THREE.Scene;
|
|
1187
|
+
private _width;
|
|
1188
|
+
private _height;
|
|
1189
|
+
private _availableColor;
|
|
1190
|
+
private readonly renderTarget;
|
|
1191
|
+
private readonly bufferSize;
|
|
1192
|
+
private readonly _buffer;
|
|
1193
|
+
constructor(components: Components, world: World, settings?: CullerRendererSettings);
|
|
1194
|
+
/** {@link Disposable.dispose} */
|
|
1195
|
+
dispose(): void;
|
|
1196
|
+
/**
|
|
1197
|
+
* The function that the culler uses to reprocess the scene. Generally it's
|
|
1198
|
+
* better to call needsUpdate, but you can also call this to force it.
|
|
1199
|
+
* @param force if true, it will refresh the scene even if needsUpdate is
|
|
1200
|
+
* not true.
|
|
1201
|
+
*/
|
|
1202
|
+
updateVisibility: (force?: boolean) => Promise<void>;
|
|
1203
|
+
protected getAvailableColor(): {
|
|
1204
|
+
r: number;
|
|
1205
|
+
g: number;
|
|
1206
|
+
b: number;
|
|
1207
|
+
code: string;
|
|
1208
|
+
};
|
|
1209
|
+
protected increaseColor(): void;
|
|
1210
|
+
protected decreaseColor(): void;
|
|
1211
|
+
private applySettings;
|
|
1212
|
+
}
|
|
1213
|
+
import * as THREE from "three";
|
|
1214
|
+
import { CullerRenderer, CullerRendererSettings } from "./culler-renderer";
|
|
1215
|
+
import { Components } from "../../Components";
|
|
1216
|
+
import { Event, World } from "../../Types";
|
|
1217
|
+
/**
|
|
1218
|
+
* A renderer to determine a mesh visibility on screen
|
|
1219
|
+
*/
|
|
1220
|
+
export declare class MeshCullerRenderer extends CullerRenderer {
|
|
1221
|
+
threshold: number;
|
|
1222
|
+
readonly onViewUpdated: Event<{
|
|
1223
|
+
seen: Set<THREE.Mesh>;
|
|
1224
|
+
unseen: Set<THREE.Mesh>;
|
|
1225
|
+
}>;
|
|
1226
|
+
colorMeshes: Map<string, THREE.InstancedMesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
1227
|
+
isProcessing: boolean;
|
|
1228
|
+
private _colorCodeMeshMap;
|
|
1229
|
+
private _meshIDColorCodeMap;
|
|
1230
|
+
private _currentVisibleMeshes;
|
|
1231
|
+
private _recentlyHiddenMeshes;
|
|
1232
|
+
private readonly _transparentMat;
|
|
1233
|
+
constructor(components: Components, world: World, settings?: CullerRendererSettings);
|
|
1234
|
+
dispose(): void;
|
|
1235
|
+
add(mesh: THREE.Mesh | THREE.InstancedMesh): void;
|
|
1236
|
+
remove(mesh: THREE.Mesh | THREE.InstancedMesh): void;
|
|
1237
|
+
private handleWorkerMessage;
|
|
1238
|
+
private getAvailableMaterial;
|
|
1524
1239
|
}
|
|
1240
|
+
export declare function readPixelsAsync(gl: WebGL2RenderingContext, x: number, y: number, w: number, h: number, format: any, type: any, dest: ArrayBufferView): Promise<ArrayBufferView>;
|
|
1525
1241
|
import * as THREE from "three";
|
|
1526
|
-
import {
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1242
|
+
import { Disposable, Event } from "../../Types";
|
|
1243
|
+
/**
|
|
1244
|
+
* A helper to easily get the real position of the mouse in the Three.js canvas
|
|
1245
|
+
* to work with tools like the
|
|
1246
|
+
* [raycaster](https://threejs.org/docs/#api/en/core/Raycaster), even if it has
|
|
1247
|
+
* been transformed through CSS or doesn't occupy the whole screen.
|
|
1248
|
+
*/
|
|
1249
|
+
export declare class Mouse implements Disposable {
|
|
1250
|
+
dom: HTMLCanvasElement;
|
|
1251
|
+
private _event?;
|
|
1252
|
+
private _position;
|
|
1536
1253
|
/** {@link Disposable.onDisposed} */
|
|
1537
|
-
readonly onDisposed: Event<
|
|
1538
|
-
|
|
1539
|
-
/**
|
|
1540
|
-
* Event that fires when there has been a change to the list of clipping
|
|
1541
|
-
* planes used by the active renderer.
|
|
1542
|
-
*/
|
|
1543
|
-
readonly onClippingPlanesUpdated: Event<unknown>;
|
|
1544
|
-
abstract update(delta?: number): void | Promise<void>;
|
|
1545
|
-
abstract dispose(): void;
|
|
1546
|
-
abstract getSize(): Vector2;
|
|
1547
|
-
abstract resize(size: Vector2 | undefined): void;
|
|
1254
|
+
readonly onDisposed: Event<unknown>;
|
|
1255
|
+
constructor(dom: HTMLCanvasElement);
|
|
1548
1256
|
/**
|
|
1549
|
-
* The
|
|
1550
|
-
* instance of the renderer.
|
|
1257
|
+
* The real position of the mouse of the Three.js canvas.
|
|
1551
1258
|
*/
|
|
1552
|
-
|
|
1259
|
+
get position(): THREE.Vector2;
|
|
1260
|
+
/** {@link Disposable.dispose} */
|
|
1261
|
+
dispose(): void;
|
|
1262
|
+
private getPositionY;
|
|
1263
|
+
private getPositionX;
|
|
1264
|
+
private updateMouseInfo;
|
|
1265
|
+
private setupEvents;
|
|
1266
|
+
}
|
|
1267
|
+
import * as THREE from "three";
|
|
1268
|
+
import { Components } from "../../Components";
|
|
1269
|
+
import { Event, World, Disposable } from "../../Types";
|
|
1270
|
+
import { Mouse } from "./mouse";
|
|
1271
|
+
/**
|
|
1272
|
+
* A simple [raycaster](https://threejs.org/docs/#api/en/core/Raycaster)
|
|
1273
|
+
* that allows to easily get items from the scene using the mouse and touch
|
|
1274
|
+
* events.
|
|
1275
|
+
*/
|
|
1276
|
+
export declare class SimpleRaycaster implements Disposable {
|
|
1277
|
+
/** {@link Component.enabled} */
|
|
1278
|
+
enabled: boolean;
|
|
1279
|
+
components: Components;
|
|
1280
|
+
/** {@link Disposable.onDisposed} */
|
|
1281
|
+
readonly onDisposed: Event<unknown>;
|
|
1282
|
+
/** The position of the mouse in the screen. */
|
|
1283
|
+
readonly mouse: Mouse;
|
|
1284
|
+
readonly three: THREE.Raycaster;
|
|
1285
|
+
world: World;
|
|
1286
|
+
constructor(components: Components, world: World);
|
|
1287
|
+
/** {@link Disposable.dispose} */
|
|
1288
|
+
dispose(): void;
|
|
1553
1289
|
/**
|
|
1554
|
-
*
|
|
1555
|
-
*
|
|
1290
|
+
* Throws a ray from the camera to the mouse or touch event point and returns
|
|
1291
|
+
* the first item found. This also takes into account the clipping planes
|
|
1292
|
+
* used by the renderer.
|
|
1293
|
+
*
|
|
1294
|
+
* @param items - the [meshes](https://threejs.org/docs/#api/en/objects/Mesh)
|
|
1295
|
+
* to query. If not provided, it will query all the meshes stored in
|
|
1296
|
+
* {@link Components.meshes}.
|
|
1556
1297
|
*/
|
|
1557
|
-
|
|
1298
|
+
castRay(items?: THREE.Mesh[]): THREE.Intersection | null;
|
|
1299
|
+
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;
|
|
1300
|
+
private intersect;
|
|
1301
|
+
private filterClippingPlanes;
|
|
1302
|
+
}
|
|
1303
|
+
import * as THREE from "three";
|
|
1304
|
+
import { Event, Base, World, BaseScene, BaseCamera, BaseRenderer } from "../../Types";
|
|
1305
|
+
import { Components } from "../../Components";
|
|
1306
|
+
export declare class SimpleWorld<T extends BaseScene = BaseScene, U extends BaseCamera = BaseCamera, S extends BaseRenderer = BaseRenderer> extends Base implements World {
|
|
1558
1307
|
/**
|
|
1559
|
-
*
|
|
1560
|
-
* [clipping plane](https://threejs.org/docs/#api/en/renderers/WebGLRenderer.clippingPlanes)
|
|
1561
|
-
* to the renderer.
|
|
1308
|
+
* All the loaded [meshes](https://threejs.org/docs/#api/en/objects/Mesh).
|
|
1562
1309
|
*/
|
|
1563
|
-
|
|
1310
|
+
readonly meshes: Set<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
1311
|
+
readonly onAfterUpdate: Event<unknown>;
|
|
1312
|
+
readonly onBeforeUpdate: Event<unknown>;
|
|
1313
|
+
enabled: boolean;
|
|
1314
|
+
uuid: string;
|
|
1315
|
+
readonly onDisposed: Event<unknown>;
|
|
1316
|
+
private _scene?;
|
|
1317
|
+
private _camera?;
|
|
1318
|
+
private _renderer;
|
|
1319
|
+
get scene(): T;
|
|
1320
|
+
set scene(scene: T);
|
|
1321
|
+
get camera(): U;
|
|
1322
|
+
set camera(camera: U);
|
|
1323
|
+
get renderer(): S | null;
|
|
1324
|
+
set renderer(renderer: S | null);
|
|
1325
|
+
constructor(components: Components);
|
|
1326
|
+
update(delta?: number): void;
|
|
1327
|
+
dispose(disposeResources?: boolean): void;
|
|
1564
1328
|
}
|
|
1565
1329
|
import * as THREE from "three";
|
|
1566
1330
|
import { Hideable, Disposable, Event, World } from "../../Types";
|
|
@@ -1612,16 +1376,224 @@ export declare class SimplePlane implements Disposable, Hideable {
|
|
|
1612
1376
|
update: () => Promise<void>;
|
|
1613
1377
|
/** {@link Disposable.dispose} */
|
|
1614
1378
|
dispose(): void;
|
|
1615
|
-
private reset;
|
|
1616
|
-
protected toggleControls(state: boolean): void;
|
|
1617
|
-
private newTransformControls;
|
|
1618
|
-
private initializeControls;
|
|
1619
|
-
private createArrowBoundingBox;
|
|
1620
|
-
private changeDrag;
|
|
1621
|
-
private notifyDraggingChanged;
|
|
1622
|
-
private preventCameraMovement;
|
|
1623
|
-
private newHelper;
|
|
1624
|
-
private static newPlaneMesh;
|
|
1379
|
+
private reset;
|
|
1380
|
+
protected toggleControls(state: boolean): void;
|
|
1381
|
+
private newTransformControls;
|
|
1382
|
+
private initializeControls;
|
|
1383
|
+
private createArrowBoundingBox;
|
|
1384
|
+
private changeDrag;
|
|
1385
|
+
private notifyDraggingChanged;
|
|
1386
|
+
private preventCameraMovement;
|
|
1387
|
+
private newHelper;
|
|
1388
|
+
private static newPlaneMesh;
|
|
1389
|
+
}
|
|
1390
|
+
import * as THREE from "three";
|
|
1391
|
+
import { BaseScene, Configurable, Event } from "../../Types";
|
|
1392
|
+
import { Components } from "../../Components";
|
|
1393
|
+
export interface SimpleSceneConfig {
|
|
1394
|
+
directionalLight: {
|
|
1395
|
+
color: THREE.Color;
|
|
1396
|
+
intensity: number;
|
|
1397
|
+
position: THREE.Vector3;
|
|
1398
|
+
};
|
|
1399
|
+
ambientLight: {
|
|
1400
|
+
color: THREE.Color;
|
|
1401
|
+
intensity: number;
|
|
1402
|
+
};
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* A basic 3D [scene](https://threejs.org/docs/#api/en/scenes/Scene) to add
|
|
1406
|
+
* objects hierarchically, and easily dispose them when you are finished with it.
|
|
1407
|
+
* @noInheritDoc
|
|
1408
|
+
*/
|
|
1409
|
+
export declare class SimpleScene extends BaseScene implements Configurable<{}> {
|
|
1410
|
+
/** {@link Configurable.isSetup} */
|
|
1411
|
+
isSetup: boolean;
|
|
1412
|
+
three: THREE.Scene;
|
|
1413
|
+
/** {@link Configurable.onSetup} */
|
|
1414
|
+
readonly onSetup: Event<SimpleScene>;
|
|
1415
|
+
config: Required<SimpleSceneConfig>;
|
|
1416
|
+
constructor(components: Components);
|
|
1417
|
+
/** Creates a simple and nice default set up for the scene (e.g. lighting). */
|
|
1418
|
+
setup(config?: Partial<SimpleSceneConfig>): void;
|
|
1419
|
+
}
|
|
1420
|
+
import * as THREE from "three";
|
|
1421
|
+
import { BaseRenderer, Event } from "../../Types";
|
|
1422
|
+
import { Components } from "../../Components";
|
|
1423
|
+
/**
|
|
1424
|
+
* A basic renderer capable of rendering
|
|
1425
|
+
* ([Objec3Ds](https://threejs.org/docs/#api/en/core/Object3D).
|
|
1426
|
+
*/
|
|
1427
|
+
export declare class SimpleRenderer extends BaseRenderer {
|
|
1428
|
+
/** {@link Component.enabled} */
|
|
1429
|
+
enabled: boolean;
|
|
1430
|
+
/** The HTML container of the THREE.js canvas where the scene is rendered. */
|
|
1431
|
+
container: HTMLElement | null;
|
|
1432
|
+
three: THREE.WebGLRenderer;
|
|
1433
|
+
protected _canvas: HTMLCanvasElement;
|
|
1434
|
+
protected _parameters?: Partial<THREE.WebGLRendererParameters>;
|
|
1435
|
+
protected onContainerUpdated: Event<HTMLElement>;
|
|
1436
|
+
constructor(components: Components, container?: HTMLElement, parameters?: Partial<THREE.WebGLRendererParameters>);
|
|
1437
|
+
/** {@link Updateable.update} */
|
|
1438
|
+
update(): void;
|
|
1439
|
+
/** {@link Disposable.dispose} */
|
|
1440
|
+
dispose(): void;
|
|
1441
|
+
/** {@link Resizeable.getSize}. */
|
|
1442
|
+
getSize(): THREE.Vector2;
|
|
1443
|
+
/** {@link Resizeable.resize} */
|
|
1444
|
+
resize: (size?: THREE.Vector2) => void;
|
|
1445
|
+
setupEvents(active: boolean): void;
|
|
1446
|
+
private resizeEvent;
|
|
1447
|
+
private setupRenderer;
|
|
1448
|
+
private onContextLost;
|
|
1449
|
+
private onContextBack;
|
|
1450
|
+
private updateContainer;
|
|
1451
|
+
}
|
|
1452
|
+
import * as THREE from "three";
|
|
1453
|
+
import CameraControls from "camera-controls";
|
|
1454
|
+
import { Disposable, Updateable, Event, BaseCamera } from "../../Types";
|
|
1455
|
+
import { Components } from "../../Components";
|
|
1456
|
+
/**
|
|
1457
|
+
* A basic camera that uses
|
|
1458
|
+
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls) to
|
|
1459
|
+
* easily control the camera in 2D and 3D. Check out it's API to find out
|
|
1460
|
+
* what features it offers.
|
|
1461
|
+
*/
|
|
1462
|
+
export declare class SimpleCamera extends BaseCamera implements Updateable, Disposable {
|
|
1463
|
+
/** {@link Updateable.onBeforeUpdate} */
|
|
1464
|
+
readonly onBeforeUpdate: Event<SimpleCamera>;
|
|
1465
|
+
/** {@link Updateable.onAfterUpdate} */
|
|
1466
|
+
readonly onAfterUpdate: Event<SimpleCamera>;
|
|
1467
|
+
readonly onAspectUpdated: Event<unknown>;
|
|
1468
|
+
/** {@link Disposable.onDisposed} */
|
|
1469
|
+
readonly onDisposed: Event<string>;
|
|
1470
|
+
readonly three: THREE.PerspectiveCamera;
|
|
1471
|
+
private _allControls;
|
|
1472
|
+
/**
|
|
1473
|
+
* The object that controls the camera. An instance of
|
|
1474
|
+
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls).
|
|
1475
|
+
* Transforming the camera directly will have no effect: you need to use this
|
|
1476
|
+
* object to move, rotate, look at objects, etc.
|
|
1477
|
+
*/
|
|
1478
|
+
get controls(): CameraControls;
|
|
1479
|
+
/** {@link Component.enabled} */
|
|
1480
|
+
get enabled(): boolean;
|
|
1481
|
+
/** {@link Component.enabled} */
|
|
1482
|
+
set enabled(enabled: boolean);
|
|
1483
|
+
constructor(components: Components);
|
|
1484
|
+
/** {@link Disposable.dispose} */
|
|
1485
|
+
dispose(): void;
|
|
1486
|
+
/** {@link Updateable.update} */
|
|
1487
|
+
update(_delta: number): void;
|
|
1488
|
+
/**
|
|
1489
|
+
* Updates the aspect of the camera to match the size of the
|
|
1490
|
+
* {@link Components.renderer}.
|
|
1491
|
+
*/
|
|
1492
|
+
updateAspect: () => void;
|
|
1493
|
+
private setupCamera;
|
|
1494
|
+
private newCameraControls;
|
|
1495
|
+
private setupEvents;
|
|
1496
|
+
private static getSubsetOfThree;
|
|
1497
|
+
}
|
|
1498
|
+
import { IfcFragmentSettings } from "../../FragmentIfcLoader/src";
|
|
1499
|
+
/** Configuration of the IFC-fragment streaming. */
|
|
1500
|
+
export declare class IfcStreamingSettings extends IfcFragmentSettings {
|
|
1501
|
+
minGeometrySize: number;
|
|
1502
|
+
minAssetsSize: number;
|
|
1503
|
+
}
|
|
1504
|
+
/** Configuration of the IFC-fragment streaming. */
|
|
1505
|
+
export declare class PropertiesStreamingSettings extends IfcFragmentSettings {
|
|
1506
|
+
propertiesSize: number;
|
|
1507
|
+
}
|
|
1508
|
+
/// <reference types="node" />
|
|
1509
|
+
import * as THREE from "three";
|
|
1510
|
+
import { Hideable, Event, World } from "../../Types";
|
|
1511
|
+
import { Components } from "../../Components";
|
|
1512
|
+
export interface GridConfig {
|
|
1513
|
+
color: THREE.Color;
|
|
1514
|
+
size1: number;
|
|
1515
|
+
size2: number;
|
|
1516
|
+
distance: number;
|
|
1517
|
+
}
|
|
1518
|
+
/**
|
|
1519
|
+
* An infinite grid. Created by
|
|
1520
|
+
* [fyrestar](https://github.com/Fyrestar/THREE.InfiniteGridHelper)
|
|
1521
|
+
* and translated to typescript by
|
|
1522
|
+
* [dkaraush](https://github.com/dkaraush/THREE.InfiniteGridHelper/blob/master/InfiniteGridHelper.ts).
|
|
1523
|
+
*/
|
|
1524
|
+
export declare class SimpleGrid implements Hideable, Disposable {
|
|
1525
|
+
/** {@link Disposable.onDisposed} */
|
|
1526
|
+
readonly onDisposed: Event<unknown>;
|
|
1527
|
+
world: World;
|
|
1528
|
+
components: Components;
|
|
1529
|
+
/** {@link Hideable.visible} */
|
|
1530
|
+
get visible(): boolean;
|
|
1531
|
+
/** {@link Hideable.visible} */
|
|
1532
|
+
set visible(visible: boolean);
|
|
1533
|
+
/** The material of the grid. */
|
|
1534
|
+
get material(): THREE.ShaderMaterial;
|
|
1535
|
+
/**
|
|
1536
|
+
* Whether the grid should fade away with distance. Recommended to be true for
|
|
1537
|
+
* perspective cameras and false for orthographic cameras.
|
|
1538
|
+
*/
|
|
1539
|
+
get fade(): boolean;
|
|
1540
|
+
/**
|
|
1541
|
+
* Whether the grid should fade away with distance. Recommended to be true for
|
|
1542
|
+
* perspective cameras and false for orthographic cameras.
|
|
1543
|
+
*/
|
|
1544
|
+
set fade(active: boolean);
|
|
1545
|
+
private readonly _grid;
|
|
1546
|
+
private _fade;
|
|
1547
|
+
constructor(components: Components, world: World, config: GridConfig);
|
|
1548
|
+
[Symbol.dispose](): void;
|
|
1549
|
+
/** {@link Component.get} */
|
|
1550
|
+
get(): THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
|
|
1551
|
+
/** {@link Disposable.dispose} */
|
|
1552
|
+
dispose(): void;
|
|
1553
|
+
private setupEvents;
|
|
1554
|
+
private updateZoom;
|
|
1555
|
+
}
|
|
1556
|
+
import * as WEBIFC from "web-ifc";
|
|
1557
|
+
import { Component, Disposable, Event } from "../../../core";
|
|
1558
|
+
import { PropertiesStreamingSettings } from "./streaming-settings";
|
|
1559
|
+
export declare class FragmentPropsStreamConverter extends Component implements Disposable {
|
|
1560
|
+
static readonly uuid: "88d2c89c-ce32-47d7-8cb6-d51e4b311a0b";
|
|
1561
|
+
onPropertiesStreamed: Event<{
|
|
1562
|
+
type: number;
|
|
1563
|
+
data: {
|
|
1564
|
+
[id: number]: any;
|
|
1565
|
+
};
|
|
1566
|
+
}>;
|
|
1567
|
+
onProgress: Event<number>;
|
|
1568
|
+
onIndicesStreamed: Event<number[][]>;
|
|
1569
|
+
/** {@link Disposable.onDisposed} */
|
|
1570
|
+
readonly onDisposed: Event<string>;
|
|
1571
|
+
enabled: boolean;
|
|
1572
|
+
settings: PropertiesStreamingSettings;
|
|
1573
|
+
webIfc: WEBIFC.IfcAPI;
|
|
1574
|
+
dispose(): Promise<void>;
|
|
1575
|
+
streamFromBuffer(data: Uint8Array): Promise<void>;
|
|
1576
|
+
streamFromCallBack(loadCallback: WEBIFC.ModelLoadCallback): Promise<void>;
|
|
1577
|
+
private readIfcFile;
|
|
1578
|
+
private streamIfcFile;
|
|
1579
|
+
private streamAllProperties;
|
|
1580
|
+
private getIndices;
|
|
1581
|
+
private cleanUp;
|
|
1582
|
+
}
|
|
1583
|
+
export interface StreamedGeometries {
|
|
1584
|
+
[id: number]: {
|
|
1585
|
+
boundingBox: Float32Array;
|
|
1586
|
+
hasHoles: boolean;
|
|
1587
|
+
geometryFile?: string;
|
|
1588
|
+
};
|
|
1589
|
+
}
|
|
1590
|
+
export interface StreamedAsset {
|
|
1591
|
+
id: number;
|
|
1592
|
+
geometries: {
|
|
1593
|
+
geometryID: number;
|
|
1594
|
+
transformation: number[];
|
|
1595
|
+
color: number[];
|
|
1596
|
+
}[];
|
|
1625
1597
|
}
|
|
1626
1598
|
import * as WEBIFC from "web-ifc";
|
|
1627
1599
|
import { Components, Disposable, Event, Component } from "../../../core";
|
|
@@ -1664,32 +1636,131 @@ export declare class FragmentIfcStreamConverter extends Component implements Dis
|
|
|
1664
1636
|
private streamAssets;
|
|
1665
1637
|
private streamGeometries;
|
|
1666
1638
|
}
|
|
1667
|
-
import
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
[id: number]: any;
|
|
1676
|
-
};
|
|
1677
|
-
}>;
|
|
1678
|
-
onProgress: Event<number>;
|
|
1679
|
-
onIndicesStreamed: Event<number[][]>;
|
|
1680
|
-
/** {@link Disposable.onDisposed} */
|
|
1681
|
-
readonly onDisposed: Event<string>;
|
|
1639
|
+
import { NavigationMode } from "./types";
|
|
1640
|
+
/**
|
|
1641
|
+
* A {@link NavigationMode} that allows 3D navigation and panning
|
|
1642
|
+
* like in many 3D and CAD softwares.
|
|
1643
|
+
*/
|
|
1644
|
+
export declare class OrbitMode implements NavigationMode {
|
|
1645
|
+
camera: any;
|
|
1646
|
+
/** {@link NavigationMode.enabled} */
|
|
1682
1647
|
enabled: boolean;
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
private
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1648
|
+
/** {@link NavigationMode.id} */
|
|
1649
|
+
readonly id = "Orbit";
|
|
1650
|
+
constructor(camera: any);
|
|
1651
|
+
/** {@link NavigationMode.set} */
|
|
1652
|
+
set(active: boolean): void;
|
|
1653
|
+
private activateOrbitControls;
|
|
1654
|
+
}
|
|
1655
|
+
import { NavigationMode } from "./types";
|
|
1656
|
+
/**
|
|
1657
|
+
* A {@link NavigationMode} that allows first person navigation,
|
|
1658
|
+
* simulating FPS video games.
|
|
1659
|
+
*/
|
|
1660
|
+
export declare class FirstPersonMode implements NavigationMode {
|
|
1661
|
+
private camera;
|
|
1662
|
+
/** {@link NavigationMode.enabled} */
|
|
1663
|
+
enabled: boolean;
|
|
1664
|
+
/** {@link NavigationMode.id} */
|
|
1665
|
+
readonly id = "FirstPerson";
|
|
1666
|
+
constructor(camera: any);
|
|
1667
|
+
/** {@link NavigationMode.set} */
|
|
1668
|
+
set(active: boolean): void;
|
|
1669
|
+
private setupFirstPersonCamera;
|
|
1670
|
+
}
|
|
1671
|
+
import * as THREE from "three";
|
|
1672
|
+
import { CameraProjection } from "./types";
|
|
1673
|
+
import { Event } from "../../../core";
|
|
1674
|
+
import { OrthoPerspectiveCamera } from "../index";
|
|
1675
|
+
/**
|
|
1676
|
+
* Object to control the {@link CameraProjection} of the {@link OrthoPerspectiveCamera}.
|
|
1677
|
+
*/
|
|
1678
|
+
export declare class ProjectionManager {
|
|
1679
|
+
/**
|
|
1680
|
+
* Event that fires when the {@link CameraProjection} changes.
|
|
1681
|
+
*/
|
|
1682
|
+
readonly onChanged: Event<THREE.Camera>;
|
|
1683
|
+
current: CameraProjection;
|
|
1684
|
+
camera: THREE.PerspectiveCamera | THREE.OrthographicCamera;
|
|
1685
|
+
private _component;
|
|
1686
|
+
private _previousDistance;
|
|
1687
|
+
/** Match Ortho zoom with Perspective distance when changing projection mode */
|
|
1688
|
+
matchOrthoDistanceEnabled: boolean;
|
|
1689
|
+
constructor(camera: OrthoPerspectiveCamera);
|
|
1690
|
+
/**
|
|
1691
|
+
* Sets the {@link CameraProjection} of the {@link OrthoPerspectiveCamera}.
|
|
1692
|
+
*
|
|
1693
|
+
* @param projection - the new projection to set. If it is the current projection,
|
|
1694
|
+
* it will have no effect.
|
|
1695
|
+
*/
|
|
1696
|
+
set(projection: CameraProjection): Promise<void>;
|
|
1697
|
+
/**
|
|
1698
|
+
* Changes the current {@link CameraProjection} from Ortographic to Perspective
|
|
1699
|
+
* and vice versa.
|
|
1700
|
+
*/
|
|
1701
|
+
toggle(): Promise<void>;
|
|
1702
|
+
private setOrthoCamera;
|
|
1703
|
+
private getDims;
|
|
1704
|
+
private setupOrthoCamera;
|
|
1705
|
+
private getDistance;
|
|
1706
|
+
private setPerspectiveCamera;
|
|
1707
|
+
}
|
|
1708
|
+
import { NavigationMode } from "./types";
|
|
1709
|
+
/**
|
|
1710
|
+
* A {@link NavigationMode} that allows to navigate floorplans in 2D,
|
|
1711
|
+
* like many BIM tools.
|
|
1712
|
+
*/
|
|
1713
|
+
export declare class PlanMode implements NavigationMode {
|
|
1714
|
+
private camera;
|
|
1715
|
+
/** {@link NavigationMode.enabled} */
|
|
1716
|
+
enabled: boolean;
|
|
1717
|
+
/** {@link NavigationMode.id} */
|
|
1718
|
+
readonly id = "Plan";
|
|
1719
|
+
private mouseAction1?;
|
|
1720
|
+
private mouseAction2?;
|
|
1721
|
+
private mouseInitialized;
|
|
1722
|
+
private readonly defaultAzimuthSpeed;
|
|
1723
|
+
private readonly defaultPolarSpeed;
|
|
1724
|
+
constructor(camera: any);
|
|
1725
|
+
/** {@link NavigationMode.set} */
|
|
1726
|
+
set(active: boolean): void;
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* The projection system of the camera.
|
|
1730
|
+
*/
|
|
1731
|
+
export type CameraProjection = "Perspective" | "Orthographic";
|
|
1732
|
+
/**
|
|
1733
|
+
* The extensible list of supported navigation modes.
|
|
1734
|
+
*/
|
|
1735
|
+
export type NavModeID = "Orbit" | "FirstPerson" | "Plan";
|
|
1736
|
+
/**
|
|
1737
|
+
* An object that determines the behavior of the camera controls
|
|
1738
|
+
* and the user input (e.g. 2D floor plan mode, first person mode, etc).
|
|
1739
|
+
*/
|
|
1740
|
+
export interface NavigationMode {
|
|
1741
|
+
/** The unique ID of this navigation mode. */
|
|
1742
|
+
id: NavModeID;
|
|
1743
|
+
/**
|
|
1744
|
+
* Enable or disable this navigation mode.
|
|
1745
|
+
* When a new navigation mode is enabled, the previous navigation mode
|
|
1746
|
+
* must be disabled.
|
|
1747
|
+
*
|
|
1748
|
+
* @param active - whether to enable or disable this mode.
|
|
1749
|
+
* @param options - any additional data required to enable or disable it.
|
|
1750
|
+
* */
|
|
1751
|
+
set: (active: boolean, options?: any) => void;
|
|
1752
|
+
/** Whether this navigation mode is active or not. */
|
|
1753
|
+
enabled: boolean;
|
|
1754
|
+
}
|
|
1755
|
+
import * as WEBIFC from "web-ifc";
|
|
1756
|
+
import * as THREE from "three";
|
|
1757
|
+
export declare class Units {
|
|
1758
|
+
factor: number;
|
|
1759
|
+
complement: number;
|
|
1760
|
+
apply(matrix: THREE.Matrix4): void;
|
|
1761
|
+
setUp(webIfc: WEBIFC.IfcAPI): void;
|
|
1762
|
+
private getLengthUnits;
|
|
1763
|
+
private getScaleMatrix;
|
|
1693
1764
|
}
|
|
1694
1765
|
import * as WEBIFC from "web-ifc";
|
|
1695
1766
|
/** Configuration of the IFC-fragment conversion. */
|
|
@@ -1737,31 +1808,6 @@ import * as WEBIFC from "web-ifc";
|
|
|
1737
1808
|
export declare class IfcMetadataReader {
|
|
1738
1809
|
get(webIfc: WEBIFC.IfcAPI, type: number): string;
|
|
1739
1810
|
}
|
|
1740
|
-
import * as WEBIFC from "web-ifc";
|
|
1741
|
-
import * as THREE from "three";
|
|
1742
|
-
export declare class Units {
|
|
1743
|
-
factor: number;
|
|
1744
|
-
complement: number;
|
|
1745
|
-
apply(matrix: THREE.Matrix4): void;
|
|
1746
|
-
setUp(webIfc: WEBIFC.IfcAPI): void;
|
|
1747
|
-
private getLengthUnits;
|
|
1748
|
-
private getScaleMatrix;
|
|
1749
|
-
}
|
|
1750
|
-
export interface StreamedGeometries {
|
|
1751
|
-
[id: number]: {
|
|
1752
|
-
boundingBox: Float32Array;
|
|
1753
|
-
hasHoles: boolean;
|
|
1754
|
-
geometryFile?: string;
|
|
1755
|
-
};
|
|
1756
|
-
}
|
|
1757
|
-
export interface StreamedAsset {
|
|
1758
|
-
id: number;
|
|
1759
|
-
geometries: {
|
|
1760
|
-
geometryID: number;
|
|
1761
|
-
transformation: number[];
|
|
1762
|
-
color: number[];
|
|
1763
|
-
}[];
|
|
1764
|
-
}
|
|
1765
1811
|
import { BufferGeometry } from "three";
|
|
1766
1812
|
import * as THREE from "three";
|
|
1767
1813
|
export declare class TransformHelper {
|