@thatopen/components 2.0.0-alpha.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/Clipper/index.d.ts +8 -12
- package/dist/core/Clipper/src/simple-plane.d.ts +2 -2
- package/dist/core/Cullers/index.d.ts +32 -2
- package/dist/core/Grids/index.d.ts +1 -1
- package/dist/core/Grids/src/simple-grid.d.ts +1 -3
- package/dist/core/MiniMap/index.d.ts +3 -2
- package/dist/core/MiniMap/src/index.d.ts +1 -1
- package/dist/core/OrthoPerspectiveCamera/index.d.ts +7 -5
- package/dist/core/OrthoPerspectiveCamera/src/first-person-mode.d.ts +2 -1
- package/dist/core/OrthoPerspectiveCamera/src/orbit-mode.d.ts +3 -2
- package/dist/core/OrthoPerspectiveCamera/src/plan-mode.d.ts +2 -1
- package/dist/core/OrthoPerspectiveCamera/src/projections.d.ts +3 -3
- package/dist/core/Raycasters/src/simple-raycaster.d.ts +1 -1
- package/dist/core/Worlds/index.d.ts +35 -0
- package/dist/core/Worlds/src/simple-camera.d.ts +1 -1
- package/dist/core/Worlds/src/simple-renderer.d.ts +2 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/fragments/{FragmentBoundingBox → BoundingBoxer}/index.d.ts +2 -2
- package/dist/fragments/{FragmentClassifier → Classifier}/index.d.ts +2 -2
- package/dist/fragments/{FragmentExploder → Exploder}/index.d.ts +3 -5
- package/dist/fragments/{FragmentManager → FragmentsManager}/index.d.ts +14 -6
- package/dist/fragments/IfcGeometryTiler/src/streaming-settings.d.ts +1 -1
- package/dist/fragments/{FragmentIfcLoader → IfcLoader}/index.d.ts +1 -2
- package/dist/fragments/index.d.ts +6 -6
- package/dist/ifc/IfcJsonExporter/index.d.ts +6 -1
- package/dist/ifc/IfcPropertiesManager/index.d.ts +1 -2
- package/dist/ifc/IfcRelationsIndexer/index.d.ts +5 -8
- package/dist/ifc/IfcRelationsIndexer/src/relToAttributesMap.d.ts +3 -2
- package/dist/ifc/index.d.ts +0 -1
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +2246 -2448
- package/dist/measurement/Utils/index.d.ts +9 -5
- package/dist/namespace.d.ts +810 -848
- package/dist/utils/vertex-picker.d.ts +2 -5
- package/package.json +6 -6
- package/dist/core/Materials/index.d.ts +0 -49
- package/dist/ifc/IfcPropertiesFinder/index.d.ts +0 -37
- package/dist/ifc/IfcPropertiesFinder/src/types.d.ts +0 -23
- package/dist/ifc/IfcRelationsIndexer/src/getRelationMap.d.ts +0 -3
- /package/dist/fragments/{FragmentHider → Hider}/index.d.ts +0 -0
- /package/dist/fragments/{FragmentIfcLoader → IfcLoader}/src/civil-reader.d.ts +0 -0
- /package/dist/fragments/{FragmentIfcLoader → IfcLoader}/src/ifc-fragment-settings.d.ts +0 -0
- /package/dist/fragments/{FragmentIfcLoader → IfcLoader}/src/ifc-metadata-reader.d.ts +0 -0
- /package/dist/fragments/{FragmentIfcLoader → IfcLoader}/src/index.d.ts +0 -0
- /package/dist/fragments/{FragmentIfcLoader → IfcLoader}/src/spatial-structure.d.ts +0 -0
- /package/dist/fragments/{FragmentIfcLoader → IfcLoader}/src/transform-helper.d.ts +0 -0
- /package/dist/fragments/{FragmentIfcLoader → IfcLoader}/src/units.d.ts +0 -0
package/dist/namespace.d.ts
CHANGED
|
@@ -111,31 +111,53 @@ import { Component, Disposable, Updateable, World, Event, BaseScene, BaseCamera,
|
|
|
111
111
|
import { Components } from "../Components";
|
|
112
112
|
import { SimpleWorld } from "./src";
|
|
113
113
|
export declare class Worlds extends Component implements Updateable, Disposable {
|
|
114
|
+
/**
|
|
115
|
+
* A unique identifier for the component.
|
|
116
|
+
* This UUID is used to register the component within the Components system.
|
|
117
|
+
*/
|
|
114
118
|
static readonly uuid: "fdb61dc4-2ec1-4966-b83d-54ea795fad4a";
|
|
119
|
+
/**
|
|
120
|
+
* Event triggered after the update process of all worlds.
|
|
121
|
+
* Subscribers can listen to this event to perform actions post-update.
|
|
122
|
+
*/
|
|
115
123
|
readonly onAfterUpdate: Event<unknown>;
|
|
124
|
+
/**
|
|
125
|
+
* Event triggered before the update process of all worlds.
|
|
126
|
+
* Subscribers can listen to this event to perform actions pre-update.
|
|
127
|
+
*/
|
|
116
128
|
readonly onBeforeUpdate: Event<unknown>;
|
|
129
|
+
/**
|
|
130
|
+
* Event triggered when the Worlds component is disposed.
|
|
131
|
+
* Subscribers can listen to this event to perform cleanup actions.
|
|
132
|
+
*/
|
|
117
133
|
readonly onDisposed: Event<unknown>;
|
|
134
|
+
/**
|
|
135
|
+
* A collection of worlds managed by this component.
|
|
136
|
+
* The key is the unique identifier (UUID) of the world, and the value is the World instance.
|
|
137
|
+
*/
|
|
118
138
|
list: Map<string, World>;
|
|
139
|
+
/**
|
|
140
|
+
* A flag indicating whether the Worlds component is enabled.
|
|
141
|
+
* If false, the update process will be skipped.
|
|
142
|
+
*/
|
|
119
143
|
enabled: boolean;
|
|
120
144
|
constructor(components: Components);
|
|
145
|
+
/**
|
|
146
|
+
* Creates a new instance of a SimpleWorld and adds it to the list of worlds.
|
|
147
|
+
*
|
|
148
|
+
* @template T - The type of the scene, extending from BaseScene. Defaults to BaseScene.
|
|
149
|
+
* @template U - The type of the camera, extending from BaseCamera. Defaults to BaseCamera.
|
|
150
|
+
* @template S - The type of the renderer, extending from BaseRenderer. Defaults to BaseRenderer.
|
|
151
|
+
*
|
|
152
|
+
* @returns {SimpleWorld<T, U, S>} - The newly created SimpleWorld instance.
|
|
153
|
+
*
|
|
154
|
+
* @throws {Error} - Throws an error if a world with the same UUID already exists in the list.
|
|
155
|
+
*/
|
|
121
156
|
create<T extends BaseScene = BaseScene, U extends BaseCamera = BaseCamera, S extends BaseRenderer = BaseRenderer>(): SimpleWorld<T, U, S>;
|
|
122
157
|
delete(world: World): void;
|
|
123
158
|
dispose(): void;
|
|
124
159
|
update(delta?: number): void | Promise<void>;
|
|
125
160
|
}
|
|
126
|
-
import { Component, Disposable, World, Event } from "../Types";
|
|
127
|
-
import { GridConfig, SimpleGrid } from "./src";
|
|
128
|
-
export declare class Grids extends Component implements Disposable {
|
|
129
|
-
static readonly uuid: "d1e814d5-b81c-4452-87a2-f039375e0489";
|
|
130
|
-
list: Map<string, SimpleGrid>;
|
|
131
|
-
onDisposed: Event<unknown>;
|
|
132
|
-
config: Required<GridConfig>;
|
|
133
|
-
/** {@link Component.enabled} */
|
|
134
|
-
enabled: boolean;
|
|
135
|
-
create(world: World): void;
|
|
136
|
-
delete(world: World): void;
|
|
137
|
-
dispose(): void;
|
|
138
|
-
}
|
|
139
161
|
import * as THREE from "three";
|
|
140
162
|
import { Component, Createable, Disposable, Event, Hideable, World } from "../Types";
|
|
141
163
|
import { SimplePlane } from "./src";
|
|
@@ -145,15 +167,14 @@ import { Components } from "../Components";
|
|
|
145
167
|
* [clipping planes](https://threejs.org/docs/#api/en/materials/Material.clippingPlanes).
|
|
146
168
|
*
|
|
147
169
|
* @param components - the instance of {@link Components} used.
|
|
148
|
-
* @param planeType - the type of plane to be used by the clipper.
|
|
149
170
|
* E.g. {@link SimplePlane}.
|
|
150
171
|
*/
|
|
151
|
-
export declare class Clipper
|
|
172
|
+
export declare class Clipper extends Component implements Createable, Disposable, Hideable {
|
|
152
173
|
static readonly uuid: "66290bc5-18c4-4cd1-9379-2e17a0617611";
|
|
153
174
|
/** {@link Createable.onAfterCreate} */
|
|
154
|
-
readonly onAfterCreate: Event<
|
|
175
|
+
readonly onAfterCreate: Event<SimplePlane>;
|
|
155
176
|
/** {@link Createable.onAfterDelete} */
|
|
156
|
-
readonly onAfterDelete: Event<
|
|
177
|
+
readonly onAfterDelete: Event<SimplePlane>;
|
|
157
178
|
/** Event that fires when the user starts dragging a clipping plane. */
|
|
158
179
|
readonly onBeforeDrag: Event<void>;
|
|
159
180
|
/** Event that fires when the user stops dragging a clipping plane. */
|
|
@@ -177,10 +198,10 @@ export declare class Clipper<T extends SimplePlane> extends Component implements
|
|
|
177
198
|
* has to be 'true' for this to apply.
|
|
178
199
|
*/
|
|
179
200
|
toleranceOrthogonalY: number;
|
|
180
|
-
|
|
181
|
-
|
|
201
|
+
Type: new (...args: any) => SimplePlane;
|
|
202
|
+
list: SimplePlane[];
|
|
182
203
|
/** The material used in all the clipping planes. */
|
|
183
|
-
|
|
204
|
+
private _material;
|
|
184
205
|
private _size;
|
|
185
206
|
private _enabled;
|
|
186
207
|
private _visible;
|
|
@@ -201,8 +222,6 @@ export declare class Clipper<T extends SimplePlane> extends Component implements
|
|
|
201
222
|
/** The size of the geometric representation of the clippings planes. */
|
|
202
223
|
set size(size: number);
|
|
203
224
|
constructor(components: Components);
|
|
204
|
-
endCreation(): void;
|
|
205
|
-
cancelCreation(): void;
|
|
206
225
|
/** {@link Disposable.dispose} */
|
|
207
226
|
dispose(): void;
|
|
208
227
|
/** {@link Createable.create} */
|
|
@@ -216,7 +235,7 @@ export declare class Clipper<T extends SimplePlane> extends Component implements
|
|
|
216
235
|
* @param point - the position of the clipping plane.
|
|
217
236
|
* navigation.
|
|
218
237
|
*/
|
|
219
|
-
createFromNormalAndCoplanarPoint(world: World, normal: THREE.Vector3, point: THREE.Vector3):
|
|
238
|
+
createFromNormalAndCoplanarPoint(world: World, normal: THREE.Vector3, point: THREE.Vector3): SimplePlane;
|
|
220
239
|
/**
|
|
221
240
|
* {@link Createable.delete}
|
|
222
241
|
*
|
|
@@ -224,7 +243,7 @@ export declare class Clipper<T extends SimplePlane> extends Component implements
|
|
|
224
243
|
* @param plane - the plane to delete. If undefined, the first plane
|
|
225
244
|
* found under the cursor will be deleted.
|
|
226
245
|
*/
|
|
227
|
-
delete(world: World, plane?:
|
|
246
|
+
delete(world: World, plane?: SimplePlane): void;
|
|
228
247
|
/** Deletes all the existing clipping planes. */
|
|
229
248
|
deleteAll(): void;
|
|
230
249
|
private deletePlane;
|
|
@@ -234,108 +253,26 @@ export declare class Clipper<T extends SimplePlane> extends Component implements
|
|
|
234
253
|
private getWorldNormal;
|
|
235
254
|
private normalizePlaneDirectionY;
|
|
236
255
|
private newPlane;
|
|
237
|
-
protected newPlaneInstance(world: World, point: THREE.Vector3, normal: THREE.Vector3): T;
|
|
238
256
|
private updateMaterialsAndPlanes;
|
|
239
257
|
private _onStartDragging;
|
|
240
258
|
private _onEndDragging;
|
|
241
259
|
}
|
|
242
|
-
import
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
export declare function isPointInFrontOfPlane(point: number[], planePoint: number[], planeNormal: number[]): boolean;
|
|
250
|
-
import { Components } from "../Components";
|
|
251
|
-
import { MeshCullerRenderer, CullerRendererSettings } from "./src";
|
|
252
|
-
import { Component, Event, Disposable, World } from "../Types";
|
|
253
|
-
/**
|
|
254
|
-
* A tool to handle big scenes efficiently by automatically hiding the objects
|
|
255
|
-
* that are not visible to the camera.
|
|
256
|
-
*/
|
|
257
|
-
export declare class Cullers extends Component implements Disposable {
|
|
258
|
-
static readonly uuid: "69f2a50d-c266-44fc-b1bd-fa4d34be89e6";
|
|
259
|
-
private _enabled;
|
|
260
|
-
list: Map<string, MeshCullerRenderer>;
|
|
261
|
-
/** {@link Disposable.onDisposed} */
|
|
262
|
-
readonly onDisposed: Event<unknown>;
|
|
260
|
+
import { Component, Disposable, World, Event } from "../Types";
|
|
261
|
+
import { GridConfig, SimpleGrid } from "./src";
|
|
262
|
+
export declare class Grids extends Component implements Disposable {
|
|
263
|
+
static readonly uuid: "d1e814d5-b81c-4452-87a2-f039375e0489";
|
|
264
|
+
list: Map<string, SimpleGrid>;
|
|
265
|
+
onDisposed: Event<unknown>;
|
|
266
|
+
config: Required<GridConfig>;
|
|
263
267
|
/** {@link Component.enabled} */
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
constructor(components: Components);
|
|
267
|
-
create(world: World, config?: Partial<CullerRendererSettings>): MeshCullerRenderer;
|
|
268
|
+
enabled: boolean;
|
|
269
|
+
create(world: World): SimpleGrid;
|
|
268
270
|
delete(world: World): void;
|
|
269
|
-
/** {@link Disposable.dispose} */
|
|
270
271
|
dispose(): void;
|
|
271
272
|
}
|
|
272
|
-
import { Component, Components, Disposable, Updateable, World, Event } from "../../core";
|
|
273
|
-
import { MiniMap } from "./src";
|
|
274
|
-
export declare class MiniMaps extends Component implements Updateable, Disposable {
|
|
275
|
-
static readonly uuid: "39ad6aad-84c8-4adf-a1e0-7f25313a9e7f";
|
|
276
|
-
readonly onAfterUpdate: Event<unknown>;
|
|
277
|
-
readonly onBeforeUpdate: Event<unknown>;
|
|
278
|
-
readonly onDisposed: Event<unknown>;
|
|
279
|
-
enabled: boolean;
|
|
280
|
-
list: Map<string, MiniMap>;
|
|
281
|
-
constructor(components: Components);
|
|
282
|
-
create(world: World): MiniMap;
|
|
283
|
-
delete(id: string): void;
|
|
284
|
-
dispose(): void | Promise<void>;
|
|
285
|
-
update(): void;
|
|
286
|
-
}
|
|
287
273
|
import * as THREE from "three";
|
|
288
|
-
import { Component, Disposable, Event } from "../Types";
|
|
289
274
|
import { Components } from "../Components";
|
|
290
|
-
|
|
291
|
-
* A tool to easily handle the materials of massive amounts of
|
|
292
|
-
* objects and scene background easily.
|
|
293
|
-
*/
|
|
294
|
-
export declare class Materials extends Component implements Disposable {
|
|
295
|
-
static readonly uuid: "24989d27-fa2f-4797-8b08-35918f74e502";
|
|
296
|
-
/** {@link Component.enabled} */
|
|
297
|
-
enabled: boolean;
|
|
298
|
-
/** {@link Disposable.onDisposed} */
|
|
299
|
-
readonly onDisposed: Event<string>;
|
|
300
|
-
list: {
|
|
301
|
-
[id: string]: {
|
|
302
|
-
material: THREE.Material;
|
|
303
|
-
meshes: Set<THREE.Mesh | THREE.InstancedMesh>;
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
private _originals;
|
|
307
|
-
constructor(components: Components);
|
|
308
|
-
/** {@link Disposable.dispose} */
|
|
309
|
-
dispose(): void;
|
|
310
|
-
/**
|
|
311
|
-
* Turns the specified material styles on or off.
|
|
312
|
-
*
|
|
313
|
-
* @param active whether to turn it on or off.
|
|
314
|
-
* @param ids the ids of the style to turn on or off.
|
|
315
|
-
*/
|
|
316
|
-
set(active: boolean, ids?: string[]): void;
|
|
317
|
-
/**
|
|
318
|
-
* Creates a new material style.
|
|
319
|
-
* @param id the identifier of the style to create.
|
|
320
|
-
* @param material the material of the style.
|
|
321
|
-
*/
|
|
322
|
-
addMaterial(id: string, material: THREE.Material): void;
|
|
323
|
-
/**
|
|
324
|
-
* Assign meshes to a certain style.
|
|
325
|
-
* @param id the identifier of the style.
|
|
326
|
-
* @param meshes the meshes to assign to the style.
|
|
327
|
-
*/
|
|
328
|
-
addMeshes(id: string, meshes: THREE.Mesh[]): void;
|
|
329
|
-
/**
|
|
330
|
-
* Remove meshes from a certain style.
|
|
331
|
-
* @param id the identifier of the style.
|
|
332
|
-
* @param meshes the meshes to assign to the style.
|
|
333
|
-
*/
|
|
334
|
-
removeMeshes(id: string, meshes: THREE.Mesh[]): void;
|
|
335
|
-
}
|
|
336
|
-
import * as THREE from "three";
|
|
337
|
-
import { Components } from "../../core/Components";
|
|
338
|
-
import { SimpleCamera } from "../../core";
|
|
275
|
+
import { SimpleCamera } from "..";
|
|
339
276
|
import { NavigationMode, NavModeID, ProjectionManager } from "./src";
|
|
340
277
|
/**
|
|
341
278
|
* A flexible camera that uses
|
|
@@ -347,13 +284,15 @@ export declare class OrthoPerspectiveCamera extends SimpleCamera {
|
|
|
347
284
|
/**
|
|
348
285
|
* The current {@link NavigationMode}.
|
|
349
286
|
*/
|
|
350
|
-
|
|
287
|
+
_mode: NavigationMode | null;
|
|
351
288
|
readonly projection: ProjectionManager;
|
|
352
289
|
readonly threeOrtho: THREE.OrthographicCamera;
|
|
290
|
+
readonly threePersp: THREE.PerspectiveCamera;
|
|
353
291
|
protected readonly _userInputButtons: any;
|
|
354
292
|
protected readonly _frustumSize = 50;
|
|
355
293
|
protected readonly _navigationModes: Map<NavModeID, NavigationMode>;
|
|
356
|
-
|
|
294
|
+
private previousSize;
|
|
295
|
+
get mode(): NavigationMode;
|
|
357
296
|
constructor(components: Components);
|
|
358
297
|
/** {@link Disposable.dispose} */
|
|
359
298
|
dispose(): void;
|
|
@@ -380,14 +319,87 @@ export declare class OrthoPerspectiveCamera extends SimpleCamera {
|
|
|
380
319
|
private disableUserInput;
|
|
381
320
|
private enableUserInput;
|
|
382
321
|
private newOrthoCamera;
|
|
383
|
-
private
|
|
322
|
+
private setOrthoPerspCameraAspect;
|
|
323
|
+
}
|
|
324
|
+
import { Components } from "../Components";
|
|
325
|
+
import { MeshCullerRenderer, CullerRendererSettings } from "./src";
|
|
326
|
+
import { Component, Event, Disposable, World } from "../Types";
|
|
327
|
+
/**
|
|
328
|
+
* A tool to handle big scenes efficiently by automatically hiding the objects
|
|
329
|
+
* that are not visible to the camera.
|
|
330
|
+
*/
|
|
331
|
+
export declare class Cullers extends Component implements Disposable {
|
|
332
|
+
/**
|
|
333
|
+
* A unique identifier for the Cullers component.
|
|
334
|
+
*/
|
|
335
|
+
static readonly uuid: "69f2a50d-c266-44fc-b1bd-fa4d34be89e6";
|
|
336
|
+
/**
|
|
337
|
+
* Indicates whether the Cullers component is enabled.
|
|
338
|
+
*/
|
|
339
|
+
private _enabled;
|
|
340
|
+
/**
|
|
341
|
+
* A map of MeshCullerRenderer instances, keyed by their world UUIDs.
|
|
342
|
+
*/
|
|
343
|
+
list: Map<string, MeshCullerRenderer>;
|
|
344
|
+
/**
|
|
345
|
+
* An event that is triggered when the Cullers component is disposed.
|
|
346
|
+
*/
|
|
347
|
+
readonly onDisposed: Event<unknown>;
|
|
348
|
+
/**
|
|
349
|
+
* Gets the enabled state of the Cullers component.
|
|
350
|
+
*
|
|
351
|
+
* @returns The current enabled state.
|
|
352
|
+
*/
|
|
353
|
+
get enabled(): boolean;
|
|
354
|
+
/**
|
|
355
|
+
* Sets the enabled state of the Cullers component.
|
|
356
|
+
* Also sets the enabled state of all MeshCullerRenderer instances.
|
|
357
|
+
*
|
|
358
|
+
* @param value - The new enabled state.
|
|
359
|
+
*/
|
|
360
|
+
set enabled(value: boolean);
|
|
361
|
+
constructor(components: Components);
|
|
362
|
+
/**
|
|
363
|
+
* Creates a new MeshCullerRenderer for the given world.
|
|
364
|
+
* If a MeshCullerRenderer already exists for the world, it will return the existing one.
|
|
365
|
+
*
|
|
366
|
+
* @param world - The world for which to create the MeshCullerRenderer.
|
|
367
|
+
* @param config - Optional configuration settings for the MeshCullerRenderer.
|
|
368
|
+
*
|
|
369
|
+
* @returns The newly created or existing MeshCullerRenderer for the given world.
|
|
370
|
+
*/
|
|
371
|
+
create(world: World, config?: Partial<CullerRendererSettings>): MeshCullerRenderer;
|
|
372
|
+
delete(world: World): void;
|
|
373
|
+
/** {@link Disposable.dispose} */
|
|
374
|
+
dispose(): void;
|
|
375
|
+
}
|
|
376
|
+
import { MiniMap } from "./src";
|
|
377
|
+
import { Component, Updateable, World, Event, Disposable } from "../Types";
|
|
378
|
+
import { Components } from "../Components";
|
|
379
|
+
export declare class MiniMaps extends Component implements Updateable, Disposable {
|
|
380
|
+
static readonly uuid: "39ad6aad-84c8-4adf-a1e0-7f25313a9e7f";
|
|
381
|
+
readonly onAfterUpdate: Event<unknown>;
|
|
382
|
+
readonly onBeforeUpdate: Event<unknown>;
|
|
383
|
+
readonly onDisposed: Event<unknown>;
|
|
384
|
+
enabled: boolean;
|
|
385
|
+
list: Map<string, MiniMap>;
|
|
386
|
+
constructor(components: Components);
|
|
387
|
+
create(world: World): MiniMap;
|
|
388
|
+
delete(id: string): void;
|
|
389
|
+
dispose(): void;
|
|
390
|
+
update(): void;
|
|
384
391
|
}
|
|
385
392
|
import * as WEBIFC from "web-ifc";
|
|
386
393
|
import * as FRAG from "@thatopen/fragments";
|
|
394
|
+
import { Component, Components } from "../../core";
|
|
387
395
|
/**
|
|
388
396
|
* Object to export all the properties from an IFC to a JS object.
|
|
389
397
|
*/
|
|
390
|
-
export declare class IfcJsonExporter {
|
|
398
|
+
export declare class IfcJsonExporter extends Component {
|
|
399
|
+
static readonly uuid: "b32c4332-cd67-436e-ba7f-196646c7a635";
|
|
400
|
+
/** {@link Component.enabled} */
|
|
401
|
+
enabled: boolean;
|
|
402
|
+
constructor(components: Components);
|
|
391
403
|
/**
|
|
392
404
|
* Exports all the properties of an IFC into an array of JS objects.
|
|
393
405
|
* @param webIfc The instance of [web-ifc]{@link https://github.com/ThatOpen/engine_web-ifc} to use.
|
|
@@ -398,47 +410,56 @@ export declare class IfcJsonExporter {
|
|
|
398
410
|
*/
|
|
399
411
|
export(webIfc: WEBIFC.IfcAPI, modelID: number, indirect?: boolean, recursiveSpatial?: boolean): Promise<FRAG.IfcProperties>;
|
|
400
412
|
}
|
|
401
|
-
import * as
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
413
|
+
import * as THREE from "three";
|
|
414
|
+
export declare function obbFromPoints(vertices: ArrayLike<number>): {
|
|
415
|
+
center: THREE.Vector3;
|
|
416
|
+
halfSizes: THREE.Vector3;
|
|
417
|
+
rotation: THREE.Matrix3;
|
|
418
|
+
transformation: THREE.Matrix4;
|
|
419
|
+
};
|
|
420
|
+
export declare class UUID {
|
|
421
|
+
private static _pattern;
|
|
422
|
+
private static _lut;
|
|
423
|
+
static create(): string;
|
|
424
|
+
static validate(uuid: string): void;
|
|
410
425
|
}
|
|
411
|
-
export
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
426
|
+
export declare function isPointInFrontOfPlane(point: number[], planePoint: number[], planeNormal: number[]): boolean;
|
|
427
|
+
import * as THREE from "three";
|
|
428
|
+
export declare class MaterialsUtils {
|
|
429
|
+
static isTransparent(material: THREE.Material): boolean;
|
|
415
430
|
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
431
|
+
import * as THREE from "three";
|
|
432
|
+
import { Component, Components, Event, World } from "../core";
|
|
433
|
+
export interface VertexPickerConfig {
|
|
434
|
+
showOnlyVertex: boolean;
|
|
435
|
+
snapDistance: number;
|
|
436
|
+
previewElement: HTMLElement;
|
|
437
|
+
}
|
|
438
|
+
export declare class VertexPicker extends Component {
|
|
439
|
+
onVertexFound: Event<THREE.Vector3>;
|
|
440
|
+
onVertexLost: Event<THREE.Vector3>;
|
|
441
|
+
components: Components;
|
|
442
|
+
private _pickedPoint;
|
|
443
|
+
private _config;
|
|
444
|
+
private _enabled;
|
|
445
|
+
private _workingPlane;
|
|
446
|
+
set enabled(value: boolean);
|
|
447
|
+
get enabled(): boolean;
|
|
448
|
+
constructor(components: Components, config?: Partial<VertexPickerConfig>);
|
|
449
|
+
set workingPlane(plane: THREE.Plane | null);
|
|
450
|
+
get workingPlane(): THREE.Plane | null;
|
|
451
|
+
set config(value: Partial<VertexPickerConfig>);
|
|
452
|
+
get config(): Partial<VertexPickerConfig>;
|
|
426
453
|
dispose(): void;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
private
|
|
430
|
-
private
|
|
431
|
-
private getMatchingEntities;
|
|
432
|
-
private combineArrays;
|
|
433
|
-
private getCommonElements;
|
|
434
|
-
private arrayIntersection;
|
|
435
|
-
private arrayUnion;
|
|
436
|
-
private getConditionFunctions;
|
|
454
|
+
get(world: World): THREE.Vector3 | null;
|
|
455
|
+
private getClosestVertex;
|
|
456
|
+
private getVertices;
|
|
457
|
+
private getVertex;
|
|
437
458
|
}
|
|
438
459
|
import * as WEBIFC from "web-ifc";
|
|
439
460
|
import { FragmentsGroup } from "@thatopen/fragments";
|
|
440
461
|
import { Disposable, Event, Component, Components } from "../../core";
|
|
441
|
-
import { RelationsMap, ModelsRelationMap,
|
|
462
|
+
import { RelationsMap, ModelsRelationMap, InverseAttribute } from "./src/types";
|
|
442
463
|
/**
|
|
443
464
|
* Indexer for IFC entities, facilitating the indexing and retrieval of IFC entity relationships.
|
|
444
465
|
* It is designed to process models properties by indexing their IFC entities' relations based on predefined inverse attributes, and provides methods to query these relations.
|
|
@@ -453,11 +474,8 @@ export declare class IfcRelationsIndexer extends Component implements Disposable
|
|
|
453
474
|
relationsMap: RelationsMap;
|
|
454
475
|
}>;
|
|
455
476
|
private _relToAttributesMap;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
* This array is used to define the inverse attributes that the indexer will process and index.
|
|
459
|
-
*/
|
|
460
|
-
readonly inverseAttributes: InverseAttributes;
|
|
477
|
+
private _inverseAttributes;
|
|
478
|
+
private _ifcRels;
|
|
461
479
|
/**
|
|
462
480
|
* Holds the relationship mappings for each model processed by the indexer.
|
|
463
481
|
* The structure is a map where each key is a model's UUID, and the value is another map.
|
|
@@ -469,7 +487,6 @@ export declare class IfcRelationsIndexer extends Component implements Disposable
|
|
|
469
487
|
readonly relationMaps: ModelsRelationMap;
|
|
470
488
|
constructor(components: Components);
|
|
471
489
|
private onFragmentsDisposed;
|
|
472
|
-
private getAttributeRels;
|
|
473
490
|
/**
|
|
474
491
|
* Adds a relation map to the model's relations map.
|
|
475
492
|
*
|
|
@@ -497,7 +514,7 @@ export declare class IfcRelationsIndexer extends Component implements Disposable
|
|
|
497
514
|
*/
|
|
498
515
|
process(model: FragmentsGroup): Promise<RelationsMap>;
|
|
499
516
|
/**
|
|
500
|
-
* Processes a given model from a WebIfc API to index its IFC entities relations
|
|
517
|
+
* Processes a given model from a WebIfc API to index its IFC entities relations.
|
|
501
518
|
*
|
|
502
519
|
* @param ifcApi - The WebIfc API instance from which to retrieve the model's properties.
|
|
503
520
|
* @param modelID - The unique identifier of the model within the WebIfc API.
|
|
@@ -570,6 +587,7 @@ export declare class IfcRelationsIndexer extends Component implements Disposable
|
|
|
570
587
|
*/
|
|
571
588
|
dispose(): void;
|
|
572
589
|
}
|
|
590
|
+
export type { InverseAttribute } from "./src/types";
|
|
573
591
|
import * as WEBIFC from "web-ifc";
|
|
574
592
|
import { FragmentsGroup } from "@thatopen/fragments";
|
|
575
593
|
import { Component, Disposable, Event, Components } from "../../core";
|
|
@@ -617,9 +635,8 @@ export declare class IfcPropertiesManager extends Component implements Disposabl
|
|
|
617
635
|
enabled: boolean;
|
|
618
636
|
attributeListeners: AttributeListener;
|
|
619
637
|
selectedModel?: FragmentsGroup;
|
|
620
|
-
|
|
638
|
+
changeMap: ChangeMap;
|
|
621
639
|
constructor(components: Components);
|
|
622
|
-
get(): ChangeMap;
|
|
623
640
|
dispose(): void;
|
|
624
641
|
private increaseMaxID;
|
|
625
642
|
static getIFCSchema(model: FragmentsGroup): import("@thatopen/fragments").IfcSchema;
|
|
@@ -643,115 +660,33 @@ export declare class IfcPropertiesManager extends Component implements Disposabl
|
|
|
643
660
|
setAttributeListener(model: FragmentsGroup, expressID: number, attributeName: string): Promise<Event<String | Number | Boolean>>;
|
|
644
661
|
}
|
|
645
662
|
export {};
|
|
646
|
-
import * as
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
663
|
+
import * as FRAGS from "@thatopen/fragments";
|
|
664
|
+
import { Components, Component } from "../../core";
|
|
665
|
+
export declare class FragmentHider extends Component {
|
|
666
|
+
static readonly uuid: "dd9ccf2d-8a21-4821-b7f6-2949add16a29";
|
|
667
|
+
enabled: boolean;
|
|
668
|
+
constructor(components: Components);
|
|
669
|
+
set(visible: boolean, items?: FRAGS.FragmentIdMap): void;
|
|
670
|
+
isolate(items: FRAGS.FragmentIdMap): void;
|
|
671
|
+
private updateCulledVisibility;
|
|
655
672
|
}
|
|
656
673
|
import * as THREE from "three";
|
|
657
|
-
import
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
674
|
+
import * as FRAGS from "@thatopen/fragments";
|
|
675
|
+
import { Disposable, Component, Event, Components } from "../../core";
|
|
676
|
+
export interface Classification {
|
|
677
|
+
[system: string]: {
|
|
678
|
+
[className: string]: FRAGS.FragmentIdMap;
|
|
679
|
+
};
|
|
662
680
|
}
|
|
663
|
-
export declare class
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
private _config;
|
|
669
|
-
private _enabled;
|
|
670
|
-
private _workingPlane;
|
|
681
|
+
export declare class Classifier extends Component implements Disposable {
|
|
682
|
+
static readonly uuid: "e25a7f3c-46c4-4a14-9d3d-5115f24ebeb7";
|
|
683
|
+
/** {@link Component.enabled} */
|
|
684
|
+
enabled: boolean;
|
|
685
|
+
list: Classification;
|
|
671
686
|
/** {@link Disposable.onDisposed} */
|
|
672
687
|
readonly onDisposed: Event<unknown>;
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
constructor(components: Components, config?: Partial<VertexPickerConfig>);
|
|
676
|
-
[Symbol.dispose](): void;
|
|
677
|
-
set workingPlane(plane: THREE.Plane | null);
|
|
678
|
-
get workingPlane(): THREE.Plane | null;
|
|
679
|
-
set config(value: Partial<VertexPickerConfig>);
|
|
680
|
-
get config(): Partial<VertexPickerConfig>;
|
|
681
|
-
dispose(): void;
|
|
682
|
-
get(world: World): THREE.Vector3 | null;
|
|
683
|
-
private getClosestVertex;
|
|
684
|
-
private getVertices;
|
|
685
|
-
private getVertex;
|
|
686
|
-
}
|
|
687
|
-
import { Component, Disposable, Event, Components } from "../../core";
|
|
688
|
-
export declare class FragmentExploder extends Component implements Disposable {
|
|
689
|
-
static readonly uuid: "d260618b-ce88-4c7d-826c-6debb91de3e2";
|
|
690
|
-
enabled: boolean;
|
|
691
|
-
height: number;
|
|
692
|
-
groupName: string;
|
|
693
|
-
/** {@link Disposable.onDisposed} */
|
|
694
|
-
readonly onDisposed: Event<string>;
|
|
695
|
-
list: Set<string>;
|
|
696
|
-
constructor(components: Components);
|
|
697
|
-
dispose(): void;
|
|
698
|
-
explode(): void;
|
|
699
|
-
reset(): void;
|
|
700
|
-
update(): void;
|
|
701
|
-
}
|
|
702
|
-
import * as THREE from "three";
|
|
703
|
-
import * as FRAGS from "@thatopen/fragments";
|
|
704
|
-
import { FragmentsGroup } from "@thatopen/fragments";
|
|
705
|
-
import { Component, Components, Disposable, Event } from "../../core";
|
|
706
|
-
/**
|
|
707
|
-
* A simple implementation of bounding box that works for fragments. The resulting bbox is not 100% precise, but
|
|
708
|
-
* it's fast, and should suffice for general use cases such as camera zooming or general boundary determination.
|
|
709
|
-
*/
|
|
710
|
-
export declare class FragmentBoundingBox extends Component implements Disposable {
|
|
711
|
-
static readonly uuid: "d1444724-dba6-4cdd-a0c7-68ee1450d166";
|
|
712
|
-
/** {@link Component.enabled} */
|
|
713
|
-
enabled: boolean;
|
|
714
|
-
/** {@link Disposable.onDisposed} */
|
|
715
|
-
readonly onDisposed: Event<unknown>;
|
|
716
|
-
private _absoluteMin;
|
|
717
|
-
private _absoluteMax;
|
|
718
|
-
private _meshes;
|
|
719
|
-
constructor(components: Components);
|
|
720
|
-
static getDimensions(bbox: THREE.Box3): {
|
|
721
|
-
width: number;
|
|
722
|
-
height: number;
|
|
723
|
-
depth: number;
|
|
724
|
-
center: THREE.Vector3;
|
|
725
|
-
};
|
|
726
|
-
static newBound(positive: boolean): THREE.Vector3;
|
|
727
|
-
static getBounds(points: THREE.Vector3[], min?: THREE.Vector3, max?: THREE.Vector3): THREE.Box3;
|
|
728
|
-
/** {@link Disposable.dispose} */
|
|
729
|
-
dispose(): void;
|
|
730
|
-
get(): THREE.Box3;
|
|
731
|
-
getSphere(): THREE.Sphere;
|
|
732
|
-
getMesh(): THREE.Mesh<THREE.BoxGeometry, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
|
|
733
|
-
reset(): void;
|
|
734
|
-
add(group: FragmentsGroup): void;
|
|
735
|
-
addMesh(mesh: THREE.InstancedMesh | THREE.Mesh | FRAGS.CurveMesh): void;
|
|
736
|
-
private static getFragmentBounds;
|
|
737
|
-
}
|
|
738
|
-
import * as THREE from "three";
|
|
739
|
-
import * as FRAGS from "@thatopen/fragments";
|
|
740
|
-
import { Disposable, Component, Event, Components } from "../../core";
|
|
741
|
-
export interface Classification {
|
|
742
|
-
[system: string]: {
|
|
743
|
-
[className: string]: FRAGS.FragmentIdMap;
|
|
744
|
-
};
|
|
745
|
-
}
|
|
746
|
-
export declare class FragmentClassifier extends Component implements Disposable {
|
|
747
|
-
static readonly uuid: "e25a7f3c-46c4-4a14-9d3d-5115f24ebeb7";
|
|
748
|
-
/** {@link Component.enabled} */
|
|
749
|
-
enabled: boolean;
|
|
750
|
-
list: Classification;
|
|
751
|
-
/** {@link Disposable.onDisposed} */
|
|
752
|
-
readonly onDisposed: Event<unknown>;
|
|
753
|
-
constructor(components: Components);
|
|
754
|
-
private onFragmentsDisposed;
|
|
688
|
+
constructor(components: Components);
|
|
689
|
+
private onFragmentsDisposed;
|
|
755
690
|
dispose(): void;
|
|
756
691
|
remove(guid: string): void;
|
|
757
692
|
find(filter?: {
|
|
@@ -762,25 +697,15 @@ export declare class FragmentClassifier extends Component implements Disposable
|
|
|
762
697
|
byEntity(group: FRAGS.FragmentsGroup): void;
|
|
763
698
|
byStorey(group: FRAGS.FragmentsGroup): void;
|
|
764
699
|
byIfcRel(group: FRAGS.FragmentsGroup, ifcRel: number, systemName: string): Promise<void>;
|
|
765
|
-
setColor(items: FRAGS.FragmentIdMap, color: THREE.Color,
|
|
700
|
+
setColor(items: FRAGS.FragmentIdMap, color: THREE.Color, override?: boolean): void;
|
|
766
701
|
resetColor(items: FRAGS.FragmentIdMap): void;
|
|
767
702
|
private saveItem;
|
|
768
703
|
}
|
|
769
|
-
import * as FRAGS from "@thatopen/fragments";
|
|
770
|
-
import { Components, Component } from "../../core";
|
|
771
|
-
export declare class FragmentHider extends Component {
|
|
772
|
-
static readonly uuid: "dd9ccf2d-8a21-4821-b7f6-2949add16a29";
|
|
773
|
-
enabled: boolean;
|
|
774
|
-
constructor(components: Components);
|
|
775
|
-
set(visible: boolean, items?: FRAGS.FragmentIdMap): void;
|
|
776
|
-
isolate(items: FRAGS.FragmentIdMap): void;
|
|
777
|
-
private updateCulledVisibility;
|
|
778
|
-
}
|
|
779
704
|
import * as WEBIFC from "web-ifc";
|
|
780
705
|
import * as FRAGS from "@thatopen/fragments";
|
|
781
706
|
import { IfcFragmentSettings } from "./src";
|
|
782
707
|
import { Component, Components, Event, Disposable } from "../../core";
|
|
783
|
-
export declare class
|
|
708
|
+
export declare class IfcLoader extends Component implements Disposable {
|
|
784
709
|
static readonly uuid: "a659add7-1418-4771-a0d6-7d4d438e4624";
|
|
785
710
|
readonly onIfcStartedLoading: Event<void>;
|
|
786
711
|
readonly onSetup: Event<void>;
|
|
@@ -794,7 +719,6 @@ export declare class FragmentIfcLoader extends Component implements Disposable {
|
|
|
794
719
|
private _metaData;
|
|
795
720
|
private _fragmentInstances;
|
|
796
721
|
private _civil;
|
|
797
|
-
private _propertyExporter;
|
|
798
722
|
private _visitedFragments;
|
|
799
723
|
private _materialT;
|
|
800
724
|
constructor(components: Components);
|
|
@@ -808,14 +732,52 @@ export declare class FragmentIfcLoader extends Component implements Disposable {
|
|
|
808
732
|
private getGeometry;
|
|
809
733
|
private autoSetWasm;
|
|
810
734
|
}
|
|
735
|
+
import * as THREE from "three";
|
|
736
|
+
import * as FRAGS from "@thatopen/fragments";
|
|
737
|
+
import { FragmentsGroup } from "@thatopen/fragments";
|
|
738
|
+
import { Component, Components, Disposable, Event } from "../../core";
|
|
739
|
+
/**
|
|
740
|
+
* A simple implementation of bounding box that works for fragments. The resulting bbox is not 100% precise, but
|
|
741
|
+
* it's fast, and should suffice for general use cases such as camera zooming or general boundary determination.
|
|
742
|
+
*/
|
|
743
|
+
export declare class BoundingBoxer extends Component implements Disposable {
|
|
744
|
+
static readonly uuid: "d1444724-dba6-4cdd-a0c7-68ee1450d166";
|
|
745
|
+
/** {@link Component.enabled} */
|
|
746
|
+
enabled: boolean;
|
|
747
|
+
/** {@link Disposable.onDisposed} */
|
|
748
|
+
readonly onDisposed: Event<unknown>;
|
|
749
|
+
private _absoluteMin;
|
|
750
|
+
private _absoluteMax;
|
|
751
|
+
private _meshes;
|
|
752
|
+
constructor(components: Components);
|
|
753
|
+
static getDimensions(bbox: THREE.Box3): {
|
|
754
|
+
width: number;
|
|
755
|
+
height: number;
|
|
756
|
+
depth: number;
|
|
757
|
+
center: THREE.Vector3;
|
|
758
|
+
};
|
|
759
|
+
static newBound(positive: boolean): THREE.Vector3;
|
|
760
|
+
static getBounds(points: THREE.Vector3[], min?: THREE.Vector3, max?: THREE.Vector3): THREE.Box3;
|
|
761
|
+
/** {@link Disposable.dispose} */
|
|
762
|
+
dispose(): void;
|
|
763
|
+
get(): THREE.Box3;
|
|
764
|
+
getSphere(): THREE.Sphere;
|
|
765
|
+
getMesh(): THREE.Mesh<THREE.BoxGeometry, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
|
|
766
|
+
reset(): void;
|
|
767
|
+
add(group: FragmentsGroup): void;
|
|
768
|
+
addMesh(mesh: THREE.InstancedMesh | THREE.Mesh | FRAGS.CurveMesh, itemIDs?: Iterable<number>): void;
|
|
769
|
+
private static getFragmentBounds;
|
|
770
|
+
}
|
|
811
771
|
import { Fragment, FragmentsGroup } from "@thatopen/fragments";
|
|
812
772
|
import * as THREE from "three";
|
|
773
|
+
import * as FRAGS from "@thatopen/fragments";
|
|
813
774
|
import { Component, Components, Event, Disposable } from "../../core";
|
|
775
|
+
import { RelationsMap } from "../../ifc/IfcRelationsIndexer/src/types";
|
|
814
776
|
/**
|
|
815
777
|
* Object that can efficiently load binary files that contain
|
|
816
778
|
* [fragment geometry](https://github.com/ThatOpen/engine_fragment).
|
|
817
779
|
*/
|
|
818
|
-
export declare class
|
|
780
|
+
export declare class FragmentsManager extends Component implements Disposable {
|
|
819
781
|
static readonly uuid: "fef46874-46a3-461b-8c44-2922ab77c806";
|
|
820
782
|
/** {@link Disposable.onDisposed} */
|
|
821
783
|
readonly onDisposed: Event<unknown>;
|
|
@@ -838,12 +800,18 @@ export declare class FragmentManager extends Component implements Disposable {
|
|
|
838
800
|
dispose(): void;
|
|
839
801
|
disposeGroup(group: FragmentsGroup): void;
|
|
840
802
|
/**
|
|
841
|
-
* Loads
|
|
842
|
-
* @param data -
|
|
843
|
-
* @param
|
|
844
|
-
* @
|
|
803
|
+
* Loads a binar file that contain fragment geometry.
|
|
804
|
+
* @param data - The binary data to load.
|
|
805
|
+
* @param config - Optional configuration for loading.
|
|
806
|
+
* @param config.coordinate - Whether to apply coordinate transformation. Default is true.
|
|
807
|
+
* @param config.properties - Ifc properties to set on the loaded fragments. Not to be used when streaming.
|
|
808
|
+
* @returns The loaded FragmentsGroup.
|
|
845
809
|
*/
|
|
846
|
-
load(data: Uint8Array,
|
|
810
|
+
load(data: Uint8Array, config?: Partial<{
|
|
811
|
+
coordinate: boolean;
|
|
812
|
+
properties: FRAGS.IfcProperties;
|
|
813
|
+
relationsMap: RelationsMap;
|
|
814
|
+
}>): FragmentsGroup;
|
|
847
815
|
/**
|
|
848
816
|
* Export the specified fragments.
|
|
849
817
|
* @param group - the fragments group to be exported.
|
|
@@ -852,6 +820,19 @@ export declare class FragmentManager extends Component implements Disposable {
|
|
|
852
820
|
export(group: FragmentsGroup): Uint8Array;
|
|
853
821
|
coordinate(models?: FragmentsGroup[]): void;
|
|
854
822
|
}
|
|
823
|
+
import { Component, Disposable, Event, Components } from "../../core";
|
|
824
|
+
export declare class Exploder extends Component implements Disposable {
|
|
825
|
+
static readonly uuid: "d260618b-ce88-4c7d-826c-6debb91de3e2";
|
|
826
|
+
enabled: boolean;
|
|
827
|
+
height: number;
|
|
828
|
+
groupName: string;
|
|
829
|
+
/** {@link Disposable.onDisposed} */
|
|
830
|
+
readonly onDisposed: Event<unknown>;
|
|
831
|
+
list: Set<string>;
|
|
832
|
+
constructor(components: Components);
|
|
833
|
+
dispose(): void;
|
|
834
|
+
set(active: boolean): void;
|
|
835
|
+
}
|
|
855
836
|
import * as WEBIFC from "web-ifc";
|
|
856
837
|
import { Components, Disposable, Event, Component } from "../../core";
|
|
857
838
|
import { IfcStreamingSettings, StreamedGeometries, StreamedAsset } from "./src";
|
|
@@ -892,26 +873,6 @@ export declare class IfcGeometryTiler extends Component implements Disposable {
|
|
|
892
873
|
private streamAssets;
|
|
893
874
|
private streamGeometries;
|
|
894
875
|
}
|
|
895
|
-
import * as THREE from "three";
|
|
896
|
-
export interface MeasureEdge {
|
|
897
|
-
distance: number;
|
|
898
|
-
points: THREE.Vector3[];
|
|
899
|
-
}
|
|
900
|
-
export declare class MeasurementUtils {
|
|
901
|
-
static getFace(mesh: THREE.InstancedMesh | THREE.Mesh, triangleIndex: number, instance?: number): {
|
|
902
|
-
edges: MeasureEdge[];
|
|
903
|
-
indices: Set<number>;
|
|
904
|
-
} | null;
|
|
905
|
-
static distanceFromPointToLine(point: THREE.Vector3, lineStart: THREE.Vector3, lineEnd: THREE.Vector3, clamp?: boolean): number;
|
|
906
|
-
private static getFaceData;
|
|
907
|
-
static getVerticesAndNormal(mesh: THREE.Mesh | THREE.InstancedMesh, faceIndex: number, instance: number | undefined): {
|
|
908
|
-
p1: THREE.Vector3;
|
|
909
|
-
p2: THREE.Vector3;
|
|
910
|
-
p3: THREE.Vector3;
|
|
911
|
-
faceNormal: THREE.Vector3;
|
|
912
|
-
};
|
|
913
|
-
private static round;
|
|
914
|
-
}
|
|
915
876
|
import * as WEBIFC from "web-ifc";
|
|
916
877
|
import { AsyncEvent, Component, Disposable, Event } from "../../core";
|
|
917
878
|
import { PropertiesStreamingSettings } from "../IfcGeometryTiler";
|
|
@@ -938,47 +899,8 @@ export declare class IfcPropertiesTiler extends Component implements Disposable
|
|
|
938
899
|
private streamAllProperties;
|
|
939
900
|
private cleanUp;
|
|
940
901
|
}
|
|
941
|
-
import * as WEBIFC from "web-ifc";
|
|
942
|
-
export interface IfcItemsCategories {
|
|
943
|
-
[itemID: number]: number;
|
|
944
|
-
}
|
|
945
|
-
export declare class IfcCategories {
|
|
946
|
-
getAll(webIfc: WEBIFC.IfcAPI, modelID: number): IfcItemsCategories;
|
|
947
|
-
}
|
|
948
|
-
export declare const IfcElements: {
|
|
949
|
-
[key: number]: string;
|
|
950
|
-
};
|
|
951
|
-
export declare const IfcCategoryMap: {
|
|
952
|
-
[key: number]: string;
|
|
953
|
-
};
|
|
954
|
-
import * as FRAGS from "@thatopen/fragments";
|
|
955
|
-
export declare class IfcPropertiesUtils {
|
|
956
|
-
static getUnits(group: FRAGS.FragmentsGroup): Promise<number>;
|
|
957
|
-
static findItemByGuid(model: FRAGS.FragmentsGroup, guid: string): Promise<{
|
|
958
|
-
[attribute: string]: any;
|
|
959
|
-
} | null>;
|
|
960
|
-
static getRelationMap(model: FRAGS.FragmentsGroup, relationType: number, onElementsFound?: (relatingID: number, relatedIDs: number[]) => Promise<void>): Promise<{
|
|
961
|
-
[relatingID: number]: number[];
|
|
962
|
-
}>;
|
|
963
|
-
static getQsetQuantities(model: FRAGS.FragmentsGroup, expressID: number, onQuantityFound?: (expressID: number) => void): Promise<number[] | null>;
|
|
964
|
-
static getPsetProps(model: FRAGS.FragmentsGroup, expressID: number, onPropFound?: (expressID: number) => void): Promise<number[] | null>;
|
|
965
|
-
static getPsetRel(model: FRAGS.FragmentsGroup, psetID: number): Promise<number | null>;
|
|
966
|
-
static getQsetRel(model: FRAGS.FragmentsGroup, qsetID: number): Promise<number | null>;
|
|
967
|
-
static getEntityName(model: FRAGS.FragmentsGroup, entityID: number): Promise<{
|
|
968
|
-
key: string | null;
|
|
969
|
-
name: string | null;
|
|
970
|
-
}>;
|
|
971
|
-
static getQuantityValue(model: FRAGS.FragmentsGroup, quantityID: number): Promise<{
|
|
972
|
-
key: string | null;
|
|
973
|
-
value: number | null;
|
|
974
|
-
}>;
|
|
975
|
-
static isRel(expressID: number): boolean;
|
|
976
|
-
static attributeExists(model: FRAGS.FragmentsGroup, expressID: number, attribute: string): Promise<boolean>;
|
|
977
|
-
static groupEntitiesByType(model: FRAGS.FragmentsGroup, expressIDs: Set<number> | number[]): Promise<Map<number, Set<number>>>;
|
|
978
|
-
}
|
|
979
|
-
export declare const GeometryTypes: Set<number>;
|
|
980
902
|
import * as THREE from "three";
|
|
981
|
-
import {
|
|
903
|
+
import { Resizeable, Updateable, World, Event, Disposable } from "../../Types";
|
|
982
904
|
export declare class MiniMap implements Resizeable, Updateable, Disposable {
|
|
983
905
|
/** {@link Disposable.onDisposed} */
|
|
984
906
|
readonly onDisposed: Event<unknown>;
|
|
@@ -1011,93 +933,284 @@ export declare class MiniMap implements Resizeable, Updateable, Disposable {
|
|
|
1011
933
|
resize(size?: THREE.Vector2): void;
|
|
1012
934
|
private updatePlanes;
|
|
1013
935
|
}
|
|
1014
|
-
export declare const relToAttributesMap: Map<number, {
|
|
1015
|
-
forRelating?: "IsDecomposedBy" | "Decomposes" | "AssociatedTo" | "HasAssociations" | "ClassificationForObjects" | "IsGroupedBy" | "HasAssignments" | "IsDefinedBy" | "DefinesOcurrence" | "IsTypedBy" | "Types" | "Defines" | "ContainedInStructure" | "ContainsElements" | undefined;
|
|
1016
|
-
forRelated?: "IsDecomposedBy" | "Decomposes" | "AssociatedTo" | "HasAssociations" | "ClassificationForObjects" | "IsGroupedBy" | "HasAssignments" | "IsDefinedBy" | "DefinesOcurrence" | "IsTypedBy" | "Types" | "Defines" | "ContainedInStructure" | "ContainsElements" | undefined;
|
|
1017
|
-
}>;
|
|
1018
|
-
import * as WEBIFC from "web-ifc";
|
|
1019
|
-
import { IfcItemsCategories } from "../../../ifc";
|
|
1020
|
-
export declare class SpatialStructure {
|
|
1021
|
-
itemsByFloor: IfcItemsCategories;
|
|
1022
|
-
private _units;
|
|
1023
|
-
setUp(webIfc: WEBIFC.IfcAPI): void;
|
|
1024
|
-
cleanUp(): void;
|
|
1025
|
-
}
|
|
1026
|
-
export declare const getRelationMap: (properties: Record<string, Record<string, any>>, relationType: number, onElementsFound?: ((relatingID: number, relatedIDs: number[]) => void) | undefined) => {
|
|
1027
|
-
[relatingID: number]: number[];
|
|
1028
|
-
};
|
|
1029
|
-
/// <reference types="node" />
|
|
1030
936
|
import * as THREE from "three";
|
|
1031
|
-
import {
|
|
1032
|
-
|
|
1033
|
-
export interface GridConfig {
|
|
1034
|
-
color: THREE.Color;
|
|
1035
|
-
size1: number;
|
|
1036
|
-
size2: number;
|
|
937
|
+
import { Component, Components } from "../../core";
|
|
938
|
+
export interface MeasureEdge {
|
|
1037
939
|
distance: number;
|
|
940
|
+
points: THREE.Vector3[];
|
|
1038
941
|
}
|
|
1039
|
-
|
|
1040
|
-
* An infinite grid. Created by
|
|
1041
|
-
* [fyrestar](https://github.com/Fyrestar/THREE.InfiniteGridHelper)
|
|
1042
|
-
* and translated to typescript by
|
|
1043
|
-
* [dkaraush](https://github.com/dkaraush/THREE.InfiniteGridHelper/blob/master/InfiniteGridHelper.ts).
|
|
1044
|
-
*/
|
|
1045
|
-
export declare class SimpleGrid implements Hideable, Disposable {
|
|
1046
|
-
/** {@link Disposable.onDisposed} */
|
|
1047
|
-
readonly onDisposed: Event<unknown>;
|
|
1048
|
-
world: World;
|
|
1049
|
-
components: Components;
|
|
1050
|
-
/** {@link Hideable.visible} */
|
|
1051
|
-
get visible(): boolean;
|
|
1052
|
-
/** {@link Hideable.visible} */
|
|
1053
|
-
set visible(visible: boolean);
|
|
1054
|
-
/** The material of the grid. */
|
|
1055
|
-
get material(): THREE.ShaderMaterial;
|
|
1056
|
-
/**
|
|
1057
|
-
* Whether the grid should fade away with distance. Recommended to be true for
|
|
1058
|
-
* perspective cameras and false for orthographic cameras.
|
|
1059
|
-
*/
|
|
1060
|
-
get fade(): boolean;
|
|
1061
|
-
/**
|
|
1062
|
-
* Whether the grid should fade away with distance. Recommended to be true for
|
|
1063
|
-
* perspective cameras and false for orthographic cameras.
|
|
1064
|
-
*/
|
|
1065
|
-
set fade(active: boolean);
|
|
1066
|
-
private readonly _grid;
|
|
1067
|
-
private _fade;
|
|
1068
|
-
constructor(components: Components, world: World, config: GridConfig);
|
|
1069
|
-
[Symbol.dispose](): void;
|
|
1070
|
-
/** {@link Component.get} */
|
|
1071
|
-
get(): THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
|
|
1072
|
-
/** {@link Disposable.dispose} */
|
|
1073
|
-
dispose(): void;
|
|
1074
|
-
private setupEvents;
|
|
1075
|
-
private updateZoom;
|
|
1076
|
-
}
|
|
1077
|
-
import * as THREE from "three";
|
|
1078
|
-
import { Components } from "../../Components";
|
|
1079
|
-
import { Event, World, Disposable } from "../../Types";
|
|
1080
|
-
import { Mouse } from "./mouse";
|
|
1081
|
-
/**
|
|
1082
|
-
* A simple [raycaster](https://threejs.org/docs/#api/en/core/Raycaster)
|
|
1083
|
-
* that allows to easily get items from the scene using the mouse and touch
|
|
1084
|
-
* events.
|
|
1085
|
-
*/
|
|
1086
|
-
export declare class SimpleRaycaster implements Disposable {
|
|
1087
|
-
/** {@link Component.enabled} */
|
|
942
|
+
export declare class MeasurementUtils extends Component {
|
|
1088
943
|
enabled: boolean;
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
944
|
+
static uuid: string;
|
|
945
|
+
constructor(components: Components);
|
|
946
|
+
getFace(mesh: THREE.InstancedMesh | THREE.Mesh, triangleIndex: number, instance?: number): {
|
|
947
|
+
edges: MeasureEdge[];
|
|
948
|
+
indices: Set<number>;
|
|
949
|
+
} | null;
|
|
950
|
+
static distanceFromPointToLine(point: THREE.Vector3, lineStart: THREE.Vector3, lineEnd: THREE.Vector3, clamp?: boolean): number;
|
|
951
|
+
private getFaceData;
|
|
952
|
+
getVerticesAndNormal(mesh: THREE.Mesh | THREE.InstancedMesh, faceIndex: number, instance: number | undefined): {
|
|
953
|
+
p1: THREE.Vector3;
|
|
954
|
+
p2: THREE.Vector3;
|
|
955
|
+
p3: THREE.Vector3;
|
|
956
|
+
faceNormal: THREE.Vector3;
|
|
957
|
+
};
|
|
958
|
+
private round;
|
|
959
|
+
}
|
|
960
|
+
import * as FRAGS from "@thatopen/fragments";
|
|
961
|
+
export declare class IfcPropertiesUtils {
|
|
962
|
+
static getUnits(group: FRAGS.FragmentsGroup): Promise<number>;
|
|
963
|
+
static findItemByGuid(model: FRAGS.FragmentsGroup, guid: string): Promise<{
|
|
964
|
+
[attribute: string]: any;
|
|
965
|
+
} | null>;
|
|
966
|
+
static getRelationMap(model: FRAGS.FragmentsGroup, relationType: number, onElementsFound?: (relatingID: number, relatedIDs: number[]) => Promise<void>): Promise<{
|
|
967
|
+
[relatingID: number]: number[];
|
|
968
|
+
}>;
|
|
969
|
+
static getQsetQuantities(model: FRAGS.FragmentsGroup, expressID: number, onQuantityFound?: (expressID: number) => void): Promise<number[] | null>;
|
|
970
|
+
static getPsetProps(model: FRAGS.FragmentsGroup, expressID: number, onPropFound?: (expressID: number) => void): Promise<number[] | null>;
|
|
971
|
+
static getPsetRel(model: FRAGS.FragmentsGroup, psetID: number): Promise<number | null>;
|
|
972
|
+
static getQsetRel(model: FRAGS.FragmentsGroup, qsetID: number): Promise<number | null>;
|
|
973
|
+
static getEntityName(model: FRAGS.FragmentsGroup, entityID: number): Promise<{
|
|
974
|
+
key: string | null;
|
|
975
|
+
name: string | null;
|
|
976
|
+
}>;
|
|
977
|
+
static getQuantityValue(model: FRAGS.FragmentsGroup, quantityID: number): Promise<{
|
|
978
|
+
key: string | null;
|
|
979
|
+
value: number | null;
|
|
980
|
+
}>;
|
|
981
|
+
static isRel(expressID: number): boolean;
|
|
982
|
+
static attributeExists(model: FRAGS.FragmentsGroup, expressID: number, attribute: string): Promise<boolean>;
|
|
983
|
+
static groupEntitiesByType(model: FRAGS.FragmentsGroup, expressIDs: Set<number> | number[]): Promise<Map<number, Set<number>>>;
|
|
984
|
+
}
|
|
985
|
+
export declare const IfcElements: {
|
|
986
|
+
[key: number]: string;
|
|
987
|
+
};
|
|
988
|
+
export declare const GeometryTypes: Set<number>;
|
|
989
|
+
import * as WEBIFC from "web-ifc";
|
|
990
|
+
export interface IfcItemsCategories {
|
|
991
|
+
[itemID: number]: number;
|
|
992
|
+
}
|
|
993
|
+
export declare class IfcCategories {
|
|
994
|
+
getAll(webIfc: WEBIFC.IfcAPI, modelID: number): IfcItemsCategories;
|
|
995
|
+
}
|
|
996
|
+
export declare const IfcCategoryMap: {
|
|
997
|
+
[key: number]: string;
|
|
998
|
+
};
|
|
999
|
+
import { InverseAttribute } from "./types";
|
|
1000
|
+
export declare const relToAttributesMap: Map<number, {
|
|
1001
|
+
forRelating: InverseAttribute;
|
|
1002
|
+
forRelated: InverseAttribute;
|
|
1003
|
+
}>;
|
|
1004
|
+
import { NavigationMode } from "./types";
|
|
1005
|
+
import { OrthoPerspectiveCamera } from "../index";
|
|
1006
|
+
/**
|
|
1007
|
+
* A {@link NavigationMode} that allows first person navigation,
|
|
1008
|
+
* simulating FPS video games.
|
|
1009
|
+
*/
|
|
1010
|
+
export declare class FirstPersonMode implements NavigationMode {
|
|
1011
|
+
private camera;
|
|
1012
|
+
/** {@link NavigationMode.enabled} */
|
|
1013
|
+
enabled: boolean;
|
|
1014
|
+
/** {@link NavigationMode.id} */
|
|
1015
|
+
readonly id = "FirstPerson";
|
|
1016
|
+
constructor(camera: OrthoPerspectiveCamera);
|
|
1017
|
+
/** {@link NavigationMode.set} */
|
|
1018
|
+
set(active: boolean): void;
|
|
1019
|
+
private setupFirstPersonCamera;
|
|
1020
|
+
}
|
|
1021
|
+
import * as THREE from "three";
|
|
1022
|
+
import { CameraProjection } from "./types";
|
|
1023
|
+
import { Event } from "../../Types";
|
|
1024
|
+
import { OrthoPerspectiveCamera } from "../index";
|
|
1025
|
+
/**
|
|
1026
|
+
* Object to control the {@link CameraProjection} of the {@link OrthoPerspectiveCamera}.
|
|
1027
|
+
*/
|
|
1028
|
+
export declare class ProjectionManager {
|
|
1029
|
+
/**
|
|
1030
|
+
* Event that fires when the {@link CameraProjection} changes.
|
|
1031
|
+
*/
|
|
1032
|
+
readonly onChanged: Event<THREE.PerspectiveCamera | THREE.OrthographicCamera>;
|
|
1033
|
+
current: CameraProjection;
|
|
1034
|
+
camera: THREE.PerspectiveCamera | THREE.OrthographicCamera;
|
|
1035
|
+
private _component;
|
|
1036
|
+
private _previousDistance;
|
|
1037
|
+
/** Match Ortho zoom with Perspective distance when changing projection mode */
|
|
1038
|
+
matchOrthoDistanceEnabled: boolean;
|
|
1039
|
+
constructor(camera: OrthoPerspectiveCamera);
|
|
1040
|
+
/**
|
|
1041
|
+
* Sets the {@link CameraProjection} of the {@link OrthoPerspectiveCamera}.
|
|
1042
|
+
*
|
|
1043
|
+
* @param projection - the new projection to set. If it is the current projection,
|
|
1044
|
+
* it will have no effect.
|
|
1045
|
+
*/
|
|
1046
|
+
set(projection: CameraProjection): Promise<void>;
|
|
1047
|
+
/**
|
|
1048
|
+
* Changes the current {@link CameraProjection} from Ortographic to Perspective
|
|
1049
|
+
* and vice versa.
|
|
1050
|
+
*/
|
|
1051
|
+
toggle(): Promise<void>;
|
|
1052
|
+
private setOrthoCamera;
|
|
1053
|
+
private getPerspectiveDims;
|
|
1054
|
+
private setupOrthoCamera;
|
|
1055
|
+
private getDistance;
|
|
1056
|
+
private setPerspectiveCamera;
|
|
1057
|
+
}
|
|
1058
|
+
/**
|
|
1059
|
+
* The projection system of the camera.
|
|
1060
|
+
*/
|
|
1061
|
+
export type CameraProjection = "Perspective" | "Orthographic";
|
|
1062
|
+
/**
|
|
1063
|
+
* The extensible list of supported navigation modes.
|
|
1064
|
+
*/
|
|
1065
|
+
export type NavModeID = "Orbit" | "FirstPerson" | "Plan";
|
|
1066
|
+
/**
|
|
1067
|
+
* An object that determines the behavior of the camera controls
|
|
1068
|
+
* and the user input (e.g. 2D floor plan mode, first person mode, etc).
|
|
1069
|
+
*/
|
|
1070
|
+
export interface NavigationMode {
|
|
1071
|
+
/** The unique ID of this navigation mode. */
|
|
1072
|
+
id: NavModeID;
|
|
1073
|
+
/**
|
|
1074
|
+
* Enable or disable this navigation mode.
|
|
1075
|
+
* When a new navigation mode is enabled, the previous navigation mode
|
|
1076
|
+
* must be disabled.
|
|
1077
|
+
*
|
|
1078
|
+
* @param active - whether to enable or disable this mode.
|
|
1079
|
+
* @param options - any additional data required to enable or disable it.
|
|
1080
|
+
* */
|
|
1081
|
+
set: (active: boolean, options?: any) => void;
|
|
1082
|
+
/** Whether this navigation mode is active or not. */
|
|
1083
|
+
enabled: boolean;
|
|
1084
|
+
}
|
|
1085
|
+
import { NavigationMode } from "./types";
|
|
1086
|
+
import { OrthoPerspectiveCamera } from "../index";
|
|
1087
|
+
/**
|
|
1088
|
+
* A {@link NavigationMode} that allows 3D navigation and panning
|
|
1089
|
+
* like in many 3D and CAD softwares.
|
|
1090
|
+
*/
|
|
1091
|
+
export declare class OrbitMode implements NavigationMode {
|
|
1092
|
+
camera: OrthoPerspectiveCamera;
|
|
1093
|
+
/** {@link NavigationMode.enabled} */
|
|
1094
|
+
enabled: boolean;
|
|
1095
|
+
/** {@link NavigationMode.id} */
|
|
1096
|
+
readonly id = "Orbit";
|
|
1097
|
+
constructor(camera: OrthoPerspectiveCamera);
|
|
1098
|
+
/** {@link NavigationMode.set} */
|
|
1099
|
+
set(active: boolean): void;
|
|
1100
|
+
private activateOrbitControls;
|
|
1101
|
+
}
|
|
1102
|
+
import { NavigationMode } from "./types";
|
|
1103
|
+
import { OrthoPerspectiveCamera } from "../index";
|
|
1104
|
+
/**
|
|
1105
|
+
* A {@link NavigationMode} that allows to navigate floorplans in 2D,
|
|
1106
|
+
* like many BIM tools.
|
|
1107
|
+
*/
|
|
1108
|
+
export declare class PlanMode implements NavigationMode {
|
|
1109
|
+
private camera;
|
|
1110
|
+
/** {@link NavigationMode.enabled} */
|
|
1111
|
+
enabled: boolean;
|
|
1112
|
+
/** {@link NavigationMode.id} */
|
|
1113
|
+
readonly id = "Plan";
|
|
1114
|
+
private mouseAction1?;
|
|
1115
|
+
private mouseAction2?;
|
|
1116
|
+
private mouseInitialized;
|
|
1117
|
+
private readonly defaultAzimuthSpeed;
|
|
1118
|
+
private readonly defaultPolarSpeed;
|
|
1119
|
+
constructor(camera: OrthoPerspectiveCamera);
|
|
1120
|
+
/** {@link NavigationMode.set} */
|
|
1121
|
+
set(active: boolean): void;
|
|
1122
|
+
}
|
|
1123
|
+
import * as THREE from "three";
|
|
1124
|
+
import { Components } from "../../Components";
|
|
1125
|
+
import { AsyncEvent, Event, World } from "../../Types";
|
|
1126
|
+
export interface CullerRendererSettings {
|
|
1127
|
+
updateInterval?: number;
|
|
1128
|
+
width?: number;
|
|
1129
|
+
height?: number;
|
|
1130
|
+
autoUpdate?: boolean;
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* A base renderer to determine visibility on screen
|
|
1134
|
+
*/
|
|
1135
|
+
export declare class CullerRenderer {
|
|
1136
|
+
/** {@link Disposable.onDisposed} */
|
|
1137
|
+
readonly onDisposed: Event<string>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Fires after making the visibility check to the meshes. It lists the
|
|
1140
|
+
* meshes that are currently visible, and the ones that were visible
|
|
1141
|
+
* just before but not anymore.
|
|
1142
|
+
*/
|
|
1143
|
+
readonly onViewUpdated: Event<any> | AsyncEvent<any>;
|
|
1144
|
+
/** {@link Component.enabled} */
|
|
1145
|
+
enabled: boolean;
|
|
1146
|
+
/**
|
|
1147
|
+
* Needs to check whether there are objects that need to be hidden or shown.
|
|
1148
|
+
* You can bind this to the camera movement, to a certain interval, etc.
|
|
1149
|
+
*/
|
|
1150
|
+
needsUpdate: boolean;
|
|
1151
|
+
/**
|
|
1152
|
+
* Render the internal scene used to determine the object visibility. Used
|
|
1153
|
+
* for debugging purposes.
|
|
1154
|
+
*/
|
|
1155
|
+
renderDebugFrame: boolean;
|
|
1156
|
+
components: Components;
|
|
1157
|
+
readonly world: World;
|
|
1158
|
+
readonly renderer: THREE.WebGLRenderer;
|
|
1159
|
+
protected autoUpdate: boolean;
|
|
1160
|
+
protected updateInterval: number;
|
|
1161
|
+
protected readonly worker: Worker;
|
|
1162
|
+
protected readonly scene: THREE.Scene;
|
|
1163
|
+
private _width;
|
|
1164
|
+
private _height;
|
|
1165
|
+
private _availableColor;
|
|
1166
|
+
private readonly renderTarget;
|
|
1167
|
+
private readonly bufferSize;
|
|
1168
|
+
private readonly _buffer;
|
|
1169
|
+
protected _isWorkerBusy: boolean;
|
|
1170
|
+
constructor(components: Components, world: World, settings?: CullerRendererSettings);
|
|
1171
|
+
/** {@link Disposable.dispose} */
|
|
1172
|
+
dispose(): void;
|
|
1173
|
+
/**
|
|
1174
|
+
* The function that the culler uses to reprocess the scene. Generally it's
|
|
1175
|
+
* better to call needsUpdate, but you can also call this to force it.
|
|
1176
|
+
* @param force if true, it will refresh the scene even if needsUpdate is
|
|
1177
|
+
* not true.
|
|
1178
|
+
*/
|
|
1179
|
+
updateVisibility: (force?: boolean) => Promise<void>;
|
|
1180
|
+
protected getAvailableColor(): {
|
|
1181
|
+
r: number;
|
|
1182
|
+
g: number;
|
|
1183
|
+
b: number;
|
|
1184
|
+
code: string;
|
|
1185
|
+
};
|
|
1186
|
+
protected increaseColor(): void;
|
|
1187
|
+
protected decreaseColor(): void;
|
|
1188
|
+
private applySettings;
|
|
1189
|
+
}
|
|
1190
|
+
import * as THREE from "three";
|
|
1191
|
+
import { Components } from "../../Components";
|
|
1192
|
+
import { Event, World, Disposable } from "../../Types";
|
|
1193
|
+
import { Mouse } from "./mouse";
|
|
1194
|
+
/**
|
|
1195
|
+
* A simple [raycaster](https://threejs.org/docs/#api/en/core/Raycaster)
|
|
1196
|
+
* that allows to easily get items from the scene using the mouse and touch
|
|
1197
|
+
* events.
|
|
1198
|
+
*/
|
|
1199
|
+
export declare class SimpleRaycaster implements Disposable {
|
|
1200
|
+
/** {@link Component.enabled} */
|
|
1201
|
+
enabled: boolean;
|
|
1202
|
+
components: Components;
|
|
1203
|
+
/** {@link Disposable.onDisposed} */
|
|
1204
|
+
readonly onDisposed: Event<unknown>;
|
|
1205
|
+
/** The position of the mouse in the screen. */
|
|
1206
|
+
readonly mouse: Mouse;
|
|
1207
|
+
readonly three: THREE.Raycaster;
|
|
1208
|
+
world: World;
|
|
1209
|
+
constructor(components: Components, world: World);
|
|
1210
|
+
/** {@link Disposable.dispose} */
|
|
1211
|
+
dispose(): void;
|
|
1212
|
+
/**
|
|
1213
|
+
* Throws a ray from the camera to the mouse or touch event point and returns
|
|
1101
1214
|
* the first item found. This also takes into account the clipping planes
|
|
1102
1215
|
* used by the renderer.
|
|
1103
1216
|
*
|
|
@@ -1105,7 +1218,7 @@ export declare class SimpleRaycaster implements Disposable {
|
|
|
1105
1218
|
* to query. If not provided, it will query all the meshes stored in
|
|
1106
1219
|
* {@link Components.meshes}.
|
|
1107
1220
|
*/
|
|
1108
|
-
castRay(items?: THREE.
|
|
1221
|
+
castRay(items?: THREE.Object3D[]): THREE.Intersection | null;
|
|
1109
1222
|
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;
|
|
1110
1223
|
private intersect;
|
|
1111
1224
|
private filterClippingPlanes;
|
|
@@ -1136,6 +1249,43 @@ export declare class Mouse implements Disposable {
|
|
|
1136
1249
|
private updateMouseInfo;
|
|
1137
1250
|
private setupEvents;
|
|
1138
1251
|
}
|
|
1252
|
+
import * as THREE from "three";
|
|
1253
|
+
import { CullerRenderer, CullerRendererSettings } from "./culler-renderer";
|
|
1254
|
+
import { Components } from "../../Components";
|
|
1255
|
+
import { Event, World } from "../../Types";
|
|
1256
|
+
/**
|
|
1257
|
+
* A renderer to determine a mesh visibility on screen
|
|
1258
|
+
*/
|
|
1259
|
+
export declare class MeshCullerRenderer extends CullerRenderer {
|
|
1260
|
+
threshold: number;
|
|
1261
|
+
readonly onViewUpdated: Event<{
|
|
1262
|
+
seen: Set<THREE.Mesh>;
|
|
1263
|
+
unseen: Set<THREE.Mesh>;
|
|
1264
|
+
}>;
|
|
1265
|
+
colorMeshes: Map<string, THREE.InstancedMesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
1266
|
+
isProcessing: boolean;
|
|
1267
|
+
private _colorCodeMeshMap;
|
|
1268
|
+
private _meshIDColorCodeMap;
|
|
1269
|
+
private _currentVisibleMeshes;
|
|
1270
|
+
private _recentlyHiddenMeshes;
|
|
1271
|
+
private _intervalID;
|
|
1272
|
+
private readonly _transparentMat;
|
|
1273
|
+
constructor(components: Components, world: World, settings?: CullerRendererSettings);
|
|
1274
|
+
dispose(): void;
|
|
1275
|
+
add(mesh: THREE.Mesh | THREE.InstancedMesh): void;
|
|
1276
|
+
remove(mesh: THREE.Mesh | THREE.InstancedMesh): void;
|
|
1277
|
+
private handleWorkerMessage;
|
|
1278
|
+
private getAvailableMaterial;
|
|
1279
|
+
}
|
|
1280
|
+
import * as WEBIFC from "web-ifc";
|
|
1281
|
+
import { IfcItemsCategories } from "../../../ifc";
|
|
1282
|
+
export declare class SpatialStructure {
|
|
1283
|
+
itemsByFloor: IfcItemsCategories;
|
|
1284
|
+
private _units;
|
|
1285
|
+
setUp(webIfc: WEBIFC.IfcAPI): void;
|
|
1286
|
+
cleanUp(): void;
|
|
1287
|
+
}
|
|
1288
|
+
export declare function readPixelsAsync(gl: WebGL2RenderingContext, x: number, y: number, w: number, h: number, format: any, type: any, dest: ArrayBufferView): Promise<ArrayBufferView>;
|
|
1139
1289
|
/**
|
|
1140
1290
|
* Simple event handler by
|
|
1141
1291
|
* [Jason Kleban](https://gist.github.com/JasonKleban/50cee44960c225ac1993c922563aa540).
|
|
@@ -1170,40 +1320,6 @@ export declare class Event<T> {
|
|
|
1170
1320
|
reset(): void;
|
|
1171
1321
|
private handlers;
|
|
1172
1322
|
}
|
|
1173
|
-
/**
|
|
1174
|
-
* Simple event handler by
|
|
1175
|
-
* [Jason Kleban](https://gist.github.com/JasonKleban/50cee44960c225ac1993c922563aa540).
|
|
1176
|
-
* Keep in mind that:
|
|
1177
|
-
* - If you want to remove it later, you might want to declare the callback as
|
|
1178
|
-
* an object.
|
|
1179
|
-
* - If you want to maintain the reference to 'this', you will need to declare
|
|
1180
|
-
* the callback as an arrow function.
|
|
1181
|
-
*/
|
|
1182
|
-
export declare class AsyncEvent<T> {
|
|
1183
|
-
/**
|
|
1184
|
-
* Add a callback to this event instance.
|
|
1185
|
-
* @param handler - the callback to be added to this event.
|
|
1186
|
-
*/
|
|
1187
|
-
add(handler: T extends void ? {
|
|
1188
|
-
(): Promise<void>;
|
|
1189
|
-
} : {
|
|
1190
|
-
(data: T): Promise<void>;
|
|
1191
|
-
}): void;
|
|
1192
|
-
/**
|
|
1193
|
-
* Removes a callback from this event instance.
|
|
1194
|
-
* @param handler - the callback to be removed from this event.
|
|
1195
|
-
*/
|
|
1196
|
-
remove(handler: T extends void ? {
|
|
1197
|
-
(): Promise<void>;
|
|
1198
|
-
} : {
|
|
1199
|
-
(data: T): Promise<void>;
|
|
1200
|
-
}): void;
|
|
1201
|
-
/** Triggers all the callbacks assigned to this event. */
|
|
1202
|
-
trigger: (data?: T) => Promise<void>;
|
|
1203
|
-
/** Gets rid of all the suscribed events. */
|
|
1204
|
-
reset(): void;
|
|
1205
|
-
private handlers;
|
|
1206
|
-
}
|
|
1207
1323
|
import * as THREE from "three";
|
|
1208
1324
|
import CameraControls from "camera-controls";
|
|
1209
1325
|
import { Event } from "./event";
|
|
@@ -1328,6 +1444,23 @@ export interface CameraControllable {
|
|
|
1328
1444
|
controls: CameraControls;
|
|
1329
1445
|
}
|
|
1330
1446
|
import { Base } from "./base";
|
|
1447
|
+
import { World } from "./world";
|
|
1448
|
+
import { Event } from "./event";
|
|
1449
|
+
import { Components } from "../../Components";
|
|
1450
|
+
/**
|
|
1451
|
+
* One of the elements that make a world. It can be either a scene, a camera
|
|
1452
|
+
* or a renderer.
|
|
1453
|
+
*/
|
|
1454
|
+
export declare abstract class BaseWorldItem extends Base {
|
|
1455
|
+
readonly worlds: Map<string, World>;
|
|
1456
|
+
readonly onWorldChanged: Event<{
|
|
1457
|
+
world: World;
|
|
1458
|
+
action: "added" | "removed";
|
|
1459
|
+
}>;
|
|
1460
|
+
currentWorld: World | null;
|
|
1461
|
+
protected constructor(components: Components);
|
|
1462
|
+
}
|
|
1463
|
+
import { Base } from "./base";
|
|
1331
1464
|
/**
|
|
1332
1465
|
* Components are the building blocks of this library. Components are singleton
|
|
1333
1466
|
* elements that contain specific functionality. For instance, the SimpleClipper
|
|
@@ -1345,42 +1478,6 @@ export declare abstract class Component extends Base {
|
|
|
1345
1478
|
*/
|
|
1346
1479
|
abstract enabled: boolean;
|
|
1347
1480
|
}
|
|
1348
|
-
import { Disposable, Hideable, Resizeable, Updateable, Configurable } from "./interfaces";
|
|
1349
|
-
import { Components } from "../../Components";
|
|
1350
|
-
/**
|
|
1351
|
-
* Base class of the library. Useful for finding out the interfaces it implements.
|
|
1352
|
-
*/
|
|
1353
|
-
export declare abstract class Base {
|
|
1354
|
-
components: Components;
|
|
1355
|
-
constructor(components: Components);
|
|
1356
|
-
/** Whether is component is {@link Disposable}. */
|
|
1357
|
-
isDisposeable: () => this is Disposable;
|
|
1358
|
-
/** Whether is component is {@link Resizeable}. */
|
|
1359
|
-
isResizeable: () => this is Resizeable;
|
|
1360
|
-
/** Whether is component is {@link Updateable}. */
|
|
1361
|
-
isUpdateable: () => this is Updateable;
|
|
1362
|
-
/** Whether is component is {@link Hideable}. */
|
|
1363
|
-
isHideable: () => this is Hideable;
|
|
1364
|
-
/** Whether is component is {@link Configurable}. */
|
|
1365
|
-
isConfigurable: () => this is Configurable<any>;
|
|
1366
|
-
}
|
|
1367
|
-
import { Base } from "./base";
|
|
1368
|
-
import { World } from "./world";
|
|
1369
|
-
import { Event } from "./event";
|
|
1370
|
-
import { Components } from "../../Components";
|
|
1371
|
-
/**
|
|
1372
|
-
* One of the elements that make a world. It can be either a scene, a camera
|
|
1373
|
-
* or a renderer.
|
|
1374
|
-
*/
|
|
1375
|
-
export declare abstract class BaseWorldItem extends Base {
|
|
1376
|
-
readonly worlds: Map<string, World>;
|
|
1377
|
-
readonly onWorldChanged: Event<{
|
|
1378
|
-
world: World;
|
|
1379
|
-
action: "added" | "removed";
|
|
1380
|
-
}>;
|
|
1381
|
-
currentWorld: World | null;
|
|
1382
|
-
protected constructor(components: Components);
|
|
1383
|
-
}
|
|
1384
1481
|
import * as THREE from "three";
|
|
1385
1482
|
import CameraControls from "camera-controls";
|
|
1386
1483
|
import { BaseWorldItem } from "./base-world-item";
|
|
@@ -1393,6 +1490,19 @@ export declare abstract class BaseCamera extends BaseWorldItem {
|
|
|
1393
1490
|
hasCameraControls: () => this is CameraControllable;
|
|
1394
1491
|
}
|
|
1395
1492
|
import * as THREE from "three";
|
|
1493
|
+
import { Disposable } from "./interfaces";
|
|
1494
|
+
import { Event } from "./event";
|
|
1495
|
+
import { Components } from "../../Components";
|
|
1496
|
+
import { BaseWorldItem } from "./base-world-item";
|
|
1497
|
+
export declare abstract class BaseScene extends BaseWorldItem implements Disposable {
|
|
1498
|
+
/** {@link Disposable.onDisposed} */
|
|
1499
|
+
readonly onDisposed: Event<unknown>;
|
|
1500
|
+
abstract three: THREE.Object3D;
|
|
1501
|
+
protected constructor(components: Components);
|
|
1502
|
+
/** {@link Disposable.dispose} */
|
|
1503
|
+
dispose(): void;
|
|
1504
|
+
}
|
|
1505
|
+
import * as THREE from "three";
|
|
1396
1506
|
import { Vector2 } from "three";
|
|
1397
1507
|
import { Event } from "./event";
|
|
1398
1508
|
import { BaseWorldItem } from "./base-world-item";
|
|
@@ -1433,31 +1543,6 @@ export declare abstract class BaseRenderer extends BaseWorldItem implements Upda
|
|
|
1433
1543
|
setPlane(active: boolean, plane: THREE.Plane, isLocal?: boolean): void;
|
|
1434
1544
|
}
|
|
1435
1545
|
import * as THREE from "three";
|
|
1436
|
-
import { Disposable } from "./interfaces";
|
|
1437
|
-
import { Event } from "./event";
|
|
1438
|
-
import { Components } from "../../Components";
|
|
1439
|
-
import { BaseWorldItem } from "./base-world-item";
|
|
1440
|
-
export declare abstract class BaseScene extends BaseWorldItem implements Disposable {
|
|
1441
|
-
/** {@link Disposable.onDisposed} */
|
|
1442
|
-
readonly onDisposed: Event<unknown>;
|
|
1443
|
-
abstract three: THREE.Object3D;
|
|
1444
|
-
protected constructor(components: Components);
|
|
1445
|
-
/** {@link Disposable.dispose} */
|
|
1446
|
-
dispose(): void;
|
|
1447
|
-
}
|
|
1448
|
-
import * as THREE from "three";
|
|
1449
|
-
import { BaseScene } from "./base-scene";
|
|
1450
|
-
import { BaseCamera } from "./base-camera";
|
|
1451
|
-
import { BaseRenderer } from "./base-renderer";
|
|
1452
|
-
import { Updateable, Disposable } from "./interfaces";
|
|
1453
|
-
export interface World extends Disposable, Updateable {
|
|
1454
|
-
meshes: Set<THREE.Mesh>;
|
|
1455
|
-
scene: BaseScene;
|
|
1456
|
-
camera: BaseCamera;
|
|
1457
|
-
renderer: BaseRenderer | null;
|
|
1458
|
-
uuid: string;
|
|
1459
|
-
}
|
|
1460
|
-
import * as THREE from "three";
|
|
1461
1546
|
import { Event, Base, World, BaseScene, BaseCamera, BaseRenderer } from "../../Types";
|
|
1462
1547
|
import { Components } from "../../Components";
|
|
1463
1548
|
export declare class SimpleWorld<T extends BaseScene = BaseScene, U extends BaseCamera = BaseCamera, S extends BaseRenderer = BaseRenderer> extends Base implements World {
|
|
@@ -1483,6 +1568,105 @@ export declare class SimpleWorld<T extends BaseScene = BaseScene, U extends Base
|
|
|
1483
1568
|
update(delta?: number): void;
|
|
1484
1569
|
dispose(disposeResources?: boolean): void;
|
|
1485
1570
|
}
|
|
1571
|
+
/**
|
|
1572
|
+
* Simple event handler by
|
|
1573
|
+
* [Jason Kleban](https://gist.github.com/JasonKleban/50cee44960c225ac1993c922563aa540).
|
|
1574
|
+
* Keep in mind that:
|
|
1575
|
+
* - If you want to remove it later, you might want to declare the callback as
|
|
1576
|
+
* an object.
|
|
1577
|
+
* - If you want to maintain the reference to 'this', you will need to declare
|
|
1578
|
+
* the callback as an arrow function.
|
|
1579
|
+
*/
|
|
1580
|
+
export declare class AsyncEvent<T> {
|
|
1581
|
+
/**
|
|
1582
|
+
* Add a callback to this event instance.
|
|
1583
|
+
* @param handler - the callback to be added to this event.
|
|
1584
|
+
*/
|
|
1585
|
+
add(handler: T extends void ? {
|
|
1586
|
+
(): Promise<void>;
|
|
1587
|
+
} : {
|
|
1588
|
+
(data: T): Promise<void>;
|
|
1589
|
+
}): void;
|
|
1590
|
+
/**
|
|
1591
|
+
* Removes a callback from this event instance.
|
|
1592
|
+
* @param handler - the callback to be removed from this event.
|
|
1593
|
+
*/
|
|
1594
|
+
remove(handler: T extends void ? {
|
|
1595
|
+
(): Promise<void>;
|
|
1596
|
+
} : {
|
|
1597
|
+
(data: T): Promise<void>;
|
|
1598
|
+
}): void;
|
|
1599
|
+
/** Triggers all the callbacks assigned to this event. */
|
|
1600
|
+
trigger: (data?: T) => Promise<void>;
|
|
1601
|
+
/** Gets rid of all the suscribed events. */
|
|
1602
|
+
reset(): void;
|
|
1603
|
+
private handlers;
|
|
1604
|
+
}
|
|
1605
|
+
/// <reference types="node" />
|
|
1606
|
+
import * as THREE from "three";
|
|
1607
|
+
import { Hideable, Event, World } from "../../Types";
|
|
1608
|
+
import { Components } from "../../Components";
|
|
1609
|
+
export interface GridConfig {
|
|
1610
|
+
color: THREE.Color;
|
|
1611
|
+
size1: number;
|
|
1612
|
+
size2: number;
|
|
1613
|
+
distance: number;
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
* An infinite grid. Created by
|
|
1617
|
+
* [fyrestar](https://github.com/Fyrestar/THREE.InfiniteGridHelper)
|
|
1618
|
+
* and translated to typescript by
|
|
1619
|
+
* [dkaraush](https://github.com/dkaraush/THREE.InfiniteGridHelper/blob/master/InfiniteGridHelper.ts).
|
|
1620
|
+
*/
|
|
1621
|
+
export declare class SimpleGrid implements Hideable, Disposable {
|
|
1622
|
+
/** {@link Disposable.onDisposed} */
|
|
1623
|
+
readonly onDisposed: Event<unknown>;
|
|
1624
|
+
world: World;
|
|
1625
|
+
components: Components;
|
|
1626
|
+
/** {@link Hideable.visible} */
|
|
1627
|
+
get visible(): boolean;
|
|
1628
|
+
/** {@link Hideable.visible} */
|
|
1629
|
+
set visible(visible: boolean);
|
|
1630
|
+
/** The material of the grid. */
|
|
1631
|
+
get material(): THREE.ShaderMaterial;
|
|
1632
|
+
/**
|
|
1633
|
+
* Whether the grid should fade away with distance. Recommended to be true for
|
|
1634
|
+
* perspective cameras and false for orthographic cameras.
|
|
1635
|
+
*/
|
|
1636
|
+
get fade(): boolean;
|
|
1637
|
+
/**
|
|
1638
|
+
* Whether the grid should fade away with distance. Recommended to be true for
|
|
1639
|
+
* perspective cameras and false for orthographic cameras.
|
|
1640
|
+
*/
|
|
1641
|
+
set fade(active: boolean);
|
|
1642
|
+
readonly three: THREE.Mesh;
|
|
1643
|
+
private _fade;
|
|
1644
|
+
constructor(components: Components, world: World, config: GridConfig);
|
|
1645
|
+
[Symbol.dispose](): void;
|
|
1646
|
+
/** {@link Disposable.dispose} */
|
|
1647
|
+
dispose(): void;
|
|
1648
|
+
private setupEvents;
|
|
1649
|
+
private updateZoom;
|
|
1650
|
+
}
|
|
1651
|
+
import { Disposable, Hideable, Resizeable, Updateable, Configurable } from "./interfaces";
|
|
1652
|
+
import { Components } from "../../Components";
|
|
1653
|
+
/**
|
|
1654
|
+
* Base class of the library. Useful for finding out the interfaces it implements.
|
|
1655
|
+
*/
|
|
1656
|
+
export declare abstract class Base {
|
|
1657
|
+
components: Components;
|
|
1658
|
+
constructor(components: Components);
|
|
1659
|
+
/** Whether is component is {@link Disposable}. */
|
|
1660
|
+
isDisposeable: () => this is Disposable;
|
|
1661
|
+
/** Whether is component is {@link Resizeable}. */
|
|
1662
|
+
isResizeable: () => this is Resizeable;
|
|
1663
|
+
/** Whether is component is {@link Updateable}. */
|
|
1664
|
+
isUpdateable: () => this is Updateable;
|
|
1665
|
+
/** Whether is component is {@link Hideable}. */
|
|
1666
|
+
isHideable: () => this is Hideable;
|
|
1667
|
+
/** Whether is component is {@link Configurable}. */
|
|
1668
|
+
isConfigurable: () => this is Configurable<any>;
|
|
1669
|
+
}
|
|
1486
1670
|
import * as THREE from "three";
|
|
1487
1671
|
import { BaseScene, Configurable, Event } from "../../Types";
|
|
1488
1672
|
import { Components } from "../../Components";
|
|
@@ -1514,6 +1698,18 @@ export declare class SimpleScene extends BaseScene implements Configurable<{}> {
|
|
|
1514
1698
|
setup(config?: Partial<SimpleSceneConfig>): void;
|
|
1515
1699
|
}
|
|
1516
1700
|
import * as THREE from "three";
|
|
1701
|
+
import { BaseScene } from "./base-scene";
|
|
1702
|
+
import { BaseCamera } from "./base-camera";
|
|
1703
|
+
import { BaseRenderer } from "./base-renderer";
|
|
1704
|
+
import { Updateable, Disposable } from "./interfaces";
|
|
1705
|
+
export interface World extends Disposable, Updateable {
|
|
1706
|
+
meshes: Set<THREE.Mesh>;
|
|
1707
|
+
scene: BaseScene;
|
|
1708
|
+
camera: BaseCamera;
|
|
1709
|
+
renderer: BaseRenderer | null;
|
|
1710
|
+
uuid: string;
|
|
1711
|
+
}
|
|
1712
|
+
import * as THREE from "three";
|
|
1517
1713
|
import { BaseRenderer, Event } from "../../Types";
|
|
1518
1714
|
import { Components } from "../../Components";
|
|
1519
1715
|
/**
|
|
@@ -1528,7 +1724,8 @@ export declare class SimpleRenderer extends BaseRenderer {
|
|
|
1528
1724
|
protected _canvas: HTMLCanvasElement;
|
|
1529
1725
|
protected _parameters?: Partial<THREE.WebGLRendererParameters>;
|
|
1530
1726
|
protected _resizeObserver: ResizeObserver | null;
|
|
1531
|
-
protected onContainerUpdated: Event<
|
|
1727
|
+
protected onContainerUpdated: Event<unknown>;
|
|
1728
|
+
private _resizing;
|
|
1532
1729
|
constructor(components: Components, container: HTMLElement, parameters?: Partial<THREE.WebGLRendererParameters>);
|
|
1533
1730
|
/** {@link Updateable.update} */
|
|
1534
1731
|
update(): void;
|
|
@@ -1538,154 +1735,58 @@ export declare class SimpleRenderer extends BaseRenderer {
|
|
|
1538
1735
|
getSize(): THREE.Vector2;
|
|
1539
1736
|
/** {@link Resizeable.resize} */
|
|
1540
1737
|
resize: (size?: THREE.Vector2) => void;
|
|
1541
|
-
setupEvents(active: boolean): void;
|
|
1542
|
-
private resizeEvent;
|
|
1543
|
-
private setupRenderer;
|
|
1544
|
-
private onContextLost;
|
|
1545
|
-
private onContextBack;
|
|
1546
|
-
}
|
|
1547
|
-
import * as THREE from "three";
|
|
1548
|
-
import CameraControls from "camera-controls";
|
|
1549
|
-
import { Disposable, Updateable, Event, BaseCamera } from "../../Types";
|
|
1550
|
-
import { Components } from "../../Components";
|
|
1551
|
-
/**
|
|
1552
|
-
* A basic camera that uses
|
|
1553
|
-
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls) to
|
|
1554
|
-
* easily control the camera in 2D and 3D. Check out it's API to find out
|
|
1555
|
-
* what features it offers.
|
|
1556
|
-
*/
|
|
1557
|
-
export declare class SimpleCamera extends BaseCamera implements Updateable, Disposable {
|
|
1558
|
-
/** {@link Updateable.onBeforeUpdate} */
|
|
1559
|
-
readonly onBeforeUpdate: Event<SimpleCamera>;
|
|
1560
|
-
/** {@link Updateable.onAfterUpdate} */
|
|
1561
|
-
readonly onAfterUpdate: Event<SimpleCamera>;
|
|
1562
|
-
readonly onAspectUpdated: Event<unknown>;
|
|
1563
|
-
/** {@link Disposable.onDisposed} */
|
|
1564
|
-
readonly onDisposed: Event<string>;
|
|
1565
|
-
readonly three: THREE.PerspectiveCamera;
|
|
1566
|
-
private _allControls;
|
|
1567
|
-
/**
|
|
1568
|
-
* The object that controls the camera. An instance of
|
|
1569
|
-
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls).
|
|
1570
|
-
* Transforming the camera directly will have no effect: you need to use this
|
|
1571
|
-
* object to move, rotate, look at objects, etc.
|
|
1572
|
-
*/
|
|
1573
|
-
get controls(): CameraControls;
|
|
1574
|
-
/** {@link Component.enabled} */
|
|
1575
|
-
get enabled(): boolean;
|
|
1576
|
-
/** {@link Component.enabled} */
|
|
1577
|
-
set enabled(enabled: boolean);
|
|
1578
|
-
constructor(components: Components);
|
|
1579
|
-
/** {@link Disposable.dispose} */
|
|
1580
|
-
dispose(): void;
|
|
1581
|
-
/** {@link Updateable.update} */
|
|
1582
|
-
update(_delta: number): void;
|
|
1583
|
-
/**
|
|
1584
|
-
* Updates the aspect of the camera to match the size of the
|
|
1585
|
-
* {@link Components.renderer}.
|
|
1586
|
-
*/
|
|
1587
|
-
updateAspect: () => void;
|
|
1588
|
-
private setupCamera;
|
|
1589
|
-
private newCameraControls;
|
|
1590
|
-
private setupEvents;
|
|
1591
|
-
private static getSubsetOfThree;
|
|
1592
|
-
}
|
|
1593
|
-
import * as THREE from "three";
|
|
1594
|
-
import { Components } from "../../Components";
|
|
1595
|
-
import { AsyncEvent, Event, World } from "../../Types";
|
|
1596
|
-
export interface CullerRendererSettings {
|
|
1597
|
-
updateInterval?: number;
|
|
1598
|
-
width?: number;
|
|
1599
|
-
height?: number;
|
|
1600
|
-
autoUpdate?: boolean;
|
|
1601
|
-
}
|
|
1602
|
-
/**
|
|
1603
|
-
* A base renderer to determine visibility on screen
|
|
1604
|
-
*/
|
|
1605
|
-
export declare class CullerRenderer {
|
|
1606
|
-
/** {@link Disposable.onDisposed} */
|
|
1607
|
-
readonly onDisposed: Event<string>;
|
|
1608
|
-
/**
|
|
1609
|
-
* Fires after making the visibility check to the meshes. It lists the
|
|
1610
|
-
* meshes that are currently visible, and the ones that were visible
|
|
1611
|
-
* just before but not anymore.
|
|
1612
|
-
*/
|
|
1613
|
-
readonly onViewUpdated: Event<any> | AsyncEvent<any>;
|
|
1614
|
-
/** {@link Component.enabled} */
|
|
1615
|
-
enabled: boolean;
|
|
1616
|
-
/**
|
|
1617
|
-
* Needs to check whether there are objects that need to be hidden or shown.
|
|
1618
|
-
* You can bind this to the camera movement, to a certain interval, etc.
|
|
1619
|
-
*/
|
|
1620
|
-
needsUpdate: boolean;
|
|
1621
|
-
/**
|
|
1622
|
-
* Render the internal scene used to determine the object visibility. Used
|
|
1623
|
-
* for debugging purposes.
|
|
1624
|
-
*/
|
|
1625
|
-
renderDebugFrame: boolean;
|
|
1626
|
-
components: Components;
|
|
1627
|
-
readonly world: World;
|
|
1628
|
-
readonly renderer: THREE.WebGLRenderer;
|
|
1629
|
-
protected autoUpdate: boolean;
|
|
1630
|
-
protected updateInterval: number;
|
|
1631
|
-
protected readonly worker: Worker;
|
|
1632
|
-
protected readonly scene: THREE.Scene;
|
|
1633
|
-
private _width;
|
|
1634
|
-
private _height;
|
|
1635
|
-
private _availableColor;
|
|
1636
|
-
private readonly renderTarget;
|
|
1637
|
-
private readonly bufferSize;
|
|
1638
|
-
private readonly _buffer;
|
|
1639
|
-
protected _isWorkerBusy: boolean;
|
|
1640
|
-
constructor(components: Components, world: World, settings?: CullerRendererSettings);
|
|
1641
|
-
/** {@link Disposable.dispose} */
|
|
1642
|
-
dispose(): void;
|
|
1643
|
-
/**
|
|
1644
|
-
* The function that the culler uses to reprocess the scene. Generally it's
|
|
1645
|
-
* better to call needsUpdate, but you can also call this to force it.
|
|
1646
|
-
* @param force if true, it will refresh the scene even if needsUpdate is
|
|
1647
|
-
* not true.
|
|
1648
|
-
*/
|
|
1649
|
-
updateVisibility: (force?: boolean) => Promise<void>;
|
|
1650
|
-
protected getAvailableColor(): {
|
|
1651
|
-
r: number;
|
|
1652
|
-
g: number;
|
|
1653
|
-
b: number;
|
|
1654
|
-
code: string;
|
|
1655
|
-
};
|
|
1656
|
-
protected increaseColor(): void;
|
|
1657
|
-
protected decreaseColor(): void;
|
|
1658
|
-
private applySettings;
|
|
1738
|
+
setupEvents(active: boolean): void;
|
|
1739
|
+
private resizeEvent;
|
|
1740
|
+
private setupRenderer;
|
|
1741
|
+
private onContextLost;
|
|
1742
|
+
private onContextBack;
|
|
1659
1743
|
}
|
|
1660
1744
|
import * as THREE from "three";
|
|
1661
|
-
import
|
|
1745
|
+
import CameraControls from "camera-controls";
|
|
1746
|
+
import { Disposable, Updateable, Event, BaseCamera } from "../../Types";
|
|
1662
1747
|
import { Components } from "../../Components";
|
|
1663
|
-
import { Event, World } from "../../Types";
|
|
1664
1748
|
/**
|
|
1665
|
-
* A
|
|
1749
|
+
* A basic camera that uses
|
|
1750
|
+
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls) to
|
|
1751
|
+
* easily control the camera in 2D and 3D. Check out it's API to find out
|
|
1752
|
+
* what features it offers.
|
|
1666
1753
|
*/
|
|
1667
|
-
export declare class
|
|
1668
|
-
|
|
1669
|
-
readonly
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
private
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1754
|
+
export declare class SimpleCamera extends BaseCamera implements Updateable, Disposable {
|
|
1755
|
+
/** {@link Updateable.onBeforeUpdate} */
|
|
1756
|
+
readonly onBeforeUpdate: Event<SimpleCamera>;
|
|
1757
|
+
/** {@link Updateable.onAfterUpdate} */
|
|
1758
|
+
readonly onAfterUpdate: Event<SimpleCamera>;
|
|
1759
|
+
readonly onAspectUpdated: Event<unknown>;
|
|
1760
|
+
/** {@link Disposable.onDisposed} */
|
|
1761
|
+
readonly onDisposed: Event<string>;
|
|
1762
|
+
three: THREE.PerspectiveCamera | THREE.OrthographicCamera;
|
|
1763
|
+
private _allControls;
|
|
1764
|
+
/**
|
|
1765
|
+
* The object that controls the camera. An instance of
|
|
1766
|
+
* [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls).
|
|
1767
|
+
* Transforming the camera directly will have no effect: you need to use this
|
|
1768
|
+
* object to move, rotate, look at objects, etc.
|
|
1769
|
+
*/
|
|
1770
|
+
get controls(): CameraControls;
|
|
1771
|
+
/** {@link Component.enabled} */
|
|
1772
|
+
get enabled(): boolean;
|
|
1773
|
+
/** {@link Component.enabled} */
|
|
1774
|
+
set enabled(enabled: boolean);
|
|
1775
|
+
constructor(components: Components);
|
|
1776
|
+
/** {@link Disposable.dispose} */
|
|
1682
1777
|
dispose(): void;
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1778
|
+
/** {@link Updateable.update} */
|
|
1779
|
+
update(_delta: number): void;
|
|
1780
|
+
/**
|
|
1781
|
+
* Updates the aspect of the camera to match the size of the
|
|
1782
|
+
* {@link Components.renderer}.
|
|
1783
|
+
*/
|
|
1784
|
+
updateAspect: () => void;
|
|
1785
|
+
private setupCamera;
|
|
1786
|
+
private newCameraControls;
|
|
1787
|
+
private setupEvents;
|
|
1788
|
+
private static getSubsetOfThree;
|
|
1687
1789
|
}
|
|
1688
|
-
export declare function readPixelsAsync(gl: WebGL2RenderingContext, x: number, y: number, w: number, h: number, format: any, type: any, dest: ArrayBufferView): Promise<ArrayBufferView>;
|
|
1689
1790
|
import * as THREE from "three";
|
|
1690
1791
|
import { Hideable, Disposable, Event, World } from "../../Types";
|
|
1691
1792
|
import { Components } from "../../Components";
|
|
@@ -1731,9 +1832,9 @@ export declare class SimplePlane implements Disposable, Hideable {
|
|
|
1731
1832
|
set size(size: number);
|
|
1732
1833
|
get helper(): THREE.Object3D<THREE.Object3DEventMap>;
|
|
1733
1834
|
constructor(components: Components, world: World, origin: THREE.Vector3, normal: THREE.Vector3, material: THREE.Material, size?: number, activateControls?: boolean);
|
|
1734
|
-
setFromNormalAndCoplanarPoint(normal: THREE.Vector3, point: THREE.Vector3):
|
|
1835
|
+
setFromNormalAndCoplanarPoint(normal: THREE.Vector3, point: THREE.Vector3): void;
|
|
1735
1836
|
/** {@link Updateable.update} */
|
|
1736
|
-
update: () =>
|
|
1837
|
+
update: () => void;
|
|
1737
1838
|
/** {@link Disposable.dispose} */
|
|
1738
1839
|
dispose(): void;
|
|
1739
1840
|
private reset;
|
|
@@ -1747,123 +1848,7 @@ export declare class SimplePlane implements Disposable, Hideable {
|
|
|
1747
1848
|
private newHelper;
|
|
1748
1849
|
private static newPlaneMesh;
|
|
1749
1850
|
}
|
|
1750
|
-
import {
|
|
1751
|
-
/**
|
|
1752
|
-
* A {@link NavigationMode} that allows first person navigation,
|
|
1753
|
-
* simulating FPS video games.
|
|
1754
|
-
*/
|
|
1755
|
-
export declare class FirstPersonMode implements NavigationMode {
|
|
1756
|
-
private camera;
|
|
1757
|
-
/** {@link NavigationMode.enabled} */
|
|
1758
|
-
enabled: boolean;
|
|
1759
|
-
/** {@link NavigationMode.id} */
|
|
1760
|
-
readonly id = "FirstPerson";
|
|
1761
|
-
constructor(camera: any);
|
|
1762
|
-
/** {@link NavigationMode.set} */
|
|
1763
|
-
set(active: boolean): void;
|
|
1764
|
-
private setupFirstPersonCamera;
|
|
1765
|
-
}
|
|
1766
|
-
import { NavigationMode } from "./types";
|
|
1767
|
-
/**
|
|
1768
|
-
* A {@link NavigationMode} that allows 3D navigation and panning
|
|
1769
|
-
* like in many 3D and CAD softwares.
|
|
1770
|
-
*/
|
|
1771
|
-
export declare class OrbitMode implements NavigationMode {
|
|
1772
|
-
camera: any;
|
|
1773
|
-
/** {@link NavigationMode.enabled} */
|
|
1774
|
-
enabled: boolean;
|
|
1775
|
-
/** {@link NavigationMode.id} */
|
|
1776
|
-
readonly id = "Orbit";
|
|
1777
|
-
constructor(camera: any);
|
|
1778
|
-
/** {@link NavigationMode.set} */
|
|
1779
|
-
set(active: boolean): void;
|
|
1780
|
-
private activateOrbitControls;
|
|
1781
|
-
}
|
|
1782
|
-
import { NavigationMode } from "./types";
|
|
1783
|
-
/**
|
|
1784
|
-
* A {@link NavigationMode} that allows to navigate floorplans in 2D,
|
|
1785
|
-
* like many BIM tools.
|
|
1786
|
-
*/
|
|
1787
|
-
export declare class PlanMode implements NavigationMode {
|
|
1788
|
-
private camera;
|
|
1789
|
-
/** {@link NavigationMode.enabled} */
|
|
1790
|
-
enabled: boolean;
|
|
1791
|
-
/** {@link NavigationMode.id} */
|
|
1792
|
-
readonly id = "Plan";
|
|
1793
|
-
private mouseAction1?;
|
|
1794
|
-
private mouseAction2?;
|
|
1795
|
-
private mouseInitialized;
|
|
1796
|
-
private readonly defaultAzimuthSpeed;
|
|
1797
|
-
private readonly defaultPolarSpeed;
|
|
1798
|
-
constructor(camera: any);
|
|
1799
|
-
/** {@link NavigationMode.set} */
|
|
1800
|
-
set(active: boolean): void;
|
|
1801
|
-
}
|
|
1802
|
-
import * as THREE from "three";
|
|
1803
|
-
import { CameraProjection } from "./types";
|
|
1804
|
-
import { Event } from "../../../core";
|
|
1805
|
-
import { OrthoPerspectiveCamera } from "../index";
|
|
1806
|
-
/**
|
|
1807
|
-
* Object to control the {@link CameraProjection} of the {@link OrthoPerspectiveCamera}.
|
|
1808
|
-
*/
|
|
1809
|
-
export declare class ProjectionManager {
|
|
1810
|
-
/**
|
|
1811
|
-
* Event that fires when the {@link CameraProjection} changes.
|
|
1812
|
-
*/
|
|
1813
|
-
readonly onChanged: Event<THREE.Camera>;
|
|
1814
|
-
current: CameraProjection;
|
|
1815
|
-
camera: THREE.PerspectiveCamera | THREE.OrthographicCamera;
|
|
1816
|
-
private _component;
|
|
1817
|
-
private _previousDistance;
|
|
1818
|
-
/** Match Ortho zoom with Perspective distance when changing projection mode */
|
|
1819
|
-
matchOrthoDistanceEnabled: boolean;
|
|
1820
|
-
constructor(camera: OrthoPerspectiveCamera);
|
|
1821
|
-
/**
|
|
1822
|
-
* Sets the {@link CameraProjection} of the {@link OrthoPerspectiveCamera}.
|
|
1823
|
-
*
|
|
1824
|
-
* @param projection - the new projection to set. If it is the current projection,
|
|
1825
|
-
* it will have no effect.
|
|
1826
|
-
*/
|
|
1827
|
-
set(projection: CameraProjection): Promise<void>;
|
|
1828
|
-
/**
|
|
1829
|
-
* Changes the current {@link CameraProjection} from Ortographic to Perspective
|
|
1830
|
-
* and vice versa.
|
|
1831
|
-
*/
|
|
1832
|
-
toggle(): Promise<void>;
|
|
1833
|
-
private setOrthoCamera;
|
|
1834
|
-
private getDims;
|
|
1835
|
-
private setupOrthoCamera;
|
|
1836
|
-
private getDistance;
|
|
1837
|
-
private setPerspectiveCamera;
|
|
1838
|
-
}
|
|
1839
|
-
/**
|
|
1840
|
-
* The projection system of the camera.
|
|
1841
|
-
*/
|
|
1842
|
-
export type CameraProjection = "Perspective" | "Orthographic";
|
|
1843
|
-
/**
|
|
1844
|
-
* The extensible list of supported navigation modes.
|
|
1845
|
-
*/
|
|
1846
|
-
export type NavModeID = "Orbit" | "FirstPerson" | "Plan";
|
|
1847
|
-
/**
|
|
1848
|
-
* An object that determines the behavior of the camera controls
|
|
1849
|
-
* and the user input (e.g. 2D floor plan mode, first person mode, etc).
|
|
1850
|
-
*/
|
|
1851
|
-
export interface NavigationMode {
|
|
1852
|
-
/** The unique ID of this navigation mode. */
|
|
1853
|
-
id: NavModeID;
|
|
1854
|
-
/**
|
|
1855
|
-
* Enable or disable this navigation mode.
|
|
1856
|
-
* When a new navigation mode is enabled, the previous navigation mode
|
|
1857
|
-
* must be disabled.
|
|
1858
|
-
*
|
|
1859
|
-
* @param active - whether to enable or disable this mode.
|
|
1860
|
-
* @param options - any additional data required to enable or disable it.
|
|
1861
|
-
* */
|
|
1862
|
-
set: (active: boolean, options?: any) => void;
|
|
1863
|
-
/** Whether this navigation mode is active or not. */
|
|
1864
|
-
enabled: boolean;
|
|
1865
|
-
}
|
|
1866
|
-
import { IfcFragmentSettings } from "../../FragmentIfcLoader/src";
|
|
1851
|
+
import { IfcFragmentSettings } from "../../IfcLoader/src";
|
|
1867
1852
|
/** Configuration of the IFC-fragment streaming. */
|
|
1868
1853
|
export declare class IfcStreamingSettings extends IfcFragmentSettings {
|
|
1869
1854
|
minGeometrySize: number;
|
|
@@ -1873,33 +1858,6 @@ export declare class IfcStreamingSettings extends IfcFragmentSettings {
|
|
|
1873
1858
|
export declare class PropertiesStreamingSettings extends IfcFragmentSettings {
|
|
1874
1859
|
propertiesSize: number;
|
|
1875
1860
|
}
|
|
1876
|
-
import * as WEBIFC from "web-ifc";
|
|
1877
|
-
import { AsyncEvent, Component, Disposable, Event } from "../../../core";
|
|
1878
|
-
import { PropertiesStreamingSettings } from "./streaming-settings";
|
|
1879
|
-
export declare class FragmentPropsStreamConverter extends Component implements Disposable {
|
|
1880
|
-
static readonly uuid: "88d2c89c-ce32-47d7-8cb6-d51e4b311a0b";
|
|
1881
|
-
onPropertiesStreamed: AsyncEvent<{
|
|
1882
|
-
type: number;
|
|
1883
|
-
data: {
|
|
1884
|
-
[id: number]: any;
|
|
1885
|
-
};
|
|
1886
|
-
}>;
|
|
1887
|
-
onProgress: AsyncEvent<number>;
|
|
1888
|
-
onIndicesStreamed: AsyncEvent<number[][]>;
|
|
1889
|
-
/** {@link Disposable.onDisposed} */
|
|
1890
|
-
readonly onDisposed: Event<string>;
|
|
1891
|
-
enabled: boolean;
|
|
1892
|
-
settings: PropertiesStreamingSettings;
|
|
1893
|
-
webIfc: WEBIFC.IfcAPI;
|
|
1894
|
-
dispose(): Promise<void>;
|
|
1895
|
-
streamFromBuffer(data: Uint8Array): Promise<void>;
|
|
1896
|
-
streamFromCallBack(loadCallback: WEBIFC.ModelLoadCallback): Promise<void>;
|
|
1897
|
-
private readIfcFile;
|
|
1898
|
-
private streamIfcFile;
|
|
1899
|
-
private streamAllProperties;
|
|
1900
|
-
private getIndices;
|
|
1901
|
-
private cleanUp;
|
|
1902
|
-
}
|
|
1903
1861
|
export interface StreamedGeometries {
|
|
1904
1862
|
[id: number]: {
|
|
1905
1863
|
boundingBox: Float32Array;
|
|
@@ -1942,20 +1900,32 @@ export declare class IfcFragmentSettings {
|
|
|
1942
1900
|
autoSetWasm: boolean;
|
|
1943
1901
|
customLocateFileHandler: WEBIFC.LocateFileHandlerFn | null;
|
|
1944
1902
|
}
|
|
1945
|
-
import * as THREE from "three";
|
|
1946
1903
|
import * as WEBIFC from "web-ifc";
|
|
1947
|
-
import
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1904
|
+
import { AsyncEvent, Component, Disposable, Event } from "../../../core";
|
|
1905
|
+
import { PropertiesStreamingSettings } from "./streaming-settings";
|
|
1906
|
+
export declare class FragmentPropsStreamConverter extends Component implements Disposable {
|
|
1907
|
+
static readonly uuid: "88d2c89c-ce32-47d7-8cb6-d51e4b311a0b";
|
|
1908
|
+
onPropertiesStreamed: AsyncEvent<{
|
|
1909
|
+
type: number;
|
|
1910
|
+
data: {
|
|
1911
|
+
[id: number]: any;
|
|
1912
|
+
};
|
|
1913
|
+
}>;
|
|
1914
|
+
onProgress: AsyncEvent<number>;
|
|
1915
|
+
onIndicesStreamed: AsyncEvent<number[][]>;
|
|
1916
|
+
/** {@link Disposable.onDisposed} */
|
|
1917
|
+
readonly onDisposed: Event<string>;
|
|
1918
|
+
enabled: boolean;
|
|
1919
|
+
settings: PropertiesStreamingSettings;
|
|
1920
|
+
webIfc: WEBIFC.IfcAPI;
|
|
1921
|
+
dispose(): Promise<void>;
|
|
1922
|
+
streamFromBuffer(data: Uint8Array): Promise<void>;
|
|
1923
|
+
streamFromCallBack(loadCallback: WEBIFC.ModelLoadCallback): Promise<void>;
|
|
1924
|
+
private readIfcFile;
|
|
1925
|
+
private streamIfcFile;
|
|
1926
|
+
private streamAllProperties;
|
|
1927
|
+
private getIndices;
|
|
1928
|
+
private cleanUp;
|
|
1959
1929
|
}
|
|
1960
1930
|
import * as WEBIFC from "web-ifc";
|
|
1961
1931
|
export declare class IfcMetadataReader {
|
|
@@ -2000,28 +1970,20 @@ import * as THREE from "three";
|
|
|
2000
1970
|
export declare class TransformHelper {
|
|
2001
1971
|
getHelper(geometries: BufferGeometry[]): THREE.Object3D<THREE.Object3DEventMap>;
|
|
2002
1972
|
}
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
operator?: QueryOperators;
|
|
2018
|
-
description?: string;
|
|
2019
|
-
queries: (AttributeQuery | QueryGroup)[];
|
|
2020
|
-
}
|
|
2021
|
-
export interface Query {
|
|
2022
|
-
name: string;
|
|
2023
|
-
description?: string;
|
|
2024
|
-
groups: QueryGroup;
|
|
1973
|
+
import * as THREE from "three";
|
|
1974
|
+
import * as WEBIFC from "web-ifc";
|
|
1975
|
+
import * as FRAGS from "@thatopen/fragments";
|
|
1976
|
+
export declare class CivilReader {
|
|
1977
|
+
defLineMat: THREE.LineBasicMaterial;
|
|
1978
|
+
read(webIfc: WEBIFC.IfcAPI): {
|
|
1979
|
+
alignments: Map<number, FRAGS.Alignment>;
|
|
1980
|
+
coordinationMatrix: THREE.Matrix4;
|
|
1981
|
+
} | undefined;
|
|
1982
|
+
get(civilItems: any): {
|
|
1983
|
+
alignments: Map<number, FRAGS.Alignment>;
|
|
1984
|
+
coordinationMatrix: THREE.Matrix4;
|
|
1985
|
+
} | undefined;
|
|
1986
|
+
private getCurves;
|
|
2025
1987
|
}
|
|
2026
1988
|
|
|
2027
1989
|
}
|