@thatopen/components 2.3.17 → 2.3.19
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/Components/index.d.ts +1 -1
- package/dist/core/Viewpoints/src/viewpoint.d.ts +2 -2
- package/dist/ifc/IfcIsolator/index.d.ts +24 -0
- package/dist/ifc/IfcPropertiesManager/index.d.ts +3 -3
- package/dist/ifc/index.d.ts +1 -0
- package/dist/index.cjs +23 -23
- package/dist/index.mjs +892 -831
- package/dist/namespace.d.ts +2736 -2708
- package/dist/openbim/BCFTopics/src/Topic.d.ts +5 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare class Components implements Disposable {
|
|
|
6
6
|
/**
|
|
7
7
|
* The version of the @thatopen/components library.
|
|
8
8
|
*/
|
|
9
|
-
static readonly release = "2.3.
|
|
9
|
+
static readonly release = "2.3.19";
|
|
10
10
|
/** {@link Disposable.onDisposed} */
|
|
11
11
|
readonly onDisposed: Event<void>;
|
|
12
12
|
/**
|
|
@@ -150,7 +150,7 @@ export declare class Viewpoint implements BCFViewpoint {
|
|
|
150
150
|
*
|
|
151
151
|
* @returns A Promise that resolves when the camera has been set.
|
|
152
152
|
*/
|
|
153
|
-
go(transition?: boolean): Promise<void>;
|
|
153
|
+
go(world?: World, transition?: boolean): Promise<void>;
|
|
154
154
|
/**
|
|
155
155
|
* Updates the camera settings of the viewpoint based on the current world's camera and renderer.
|
|
156
156
|
*
|
|
@@ -162,7 +162,7 @@ export declare class Viewpoint implements BCFViewpoint {
|
|
|
162
162
|
* @throws An error if the world's camera does not have camera controls.
|
|
163
163
|
* @throws An error if the world's renderer is not available.
|
|
164
164
|
*/
|
|
165
|
-
updateCamera(): void;
|
|
165
|
+
updateCamera(world?: World): void;
|
|
166
166
|
applyVisibility(): void;
|
|
167
167
|
/**
|
|
168
168
|
* Applies color to the components in the viewpoint based on their GUIDs.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as WEBIFC from "web-ifc";
|
|
2
|
+
import { Component, Components } from "../../core";
|
|
3
|
+
/**
|
|
4
|
+
* Component to isolate certain elements from an IFC and export to another IFC. 📕 [Tutorial](https://docs.thatopen.com/Tutorials/Components/Core/IfcIsolator). 📘 [API](https://docs.thatopen.com/api/@thatopen/components/classes/IfcIsolator).
|
|
5
|
+
*/
|
|
6
|
+
export declare class IfcIsolator extends Component {
|
|
7
|
+
/**
|
|
8
|
+
* A unique identifier for the component.
|
|
9
|
+
* This UUID is used to register the component within the Components system.
|
|
10
|
+
*/
|
|
11
|
+
static readonly uuid: "6eb0ba2f-71c0-464e-bcec-2d7c335186b2";
|
|
12
|
+
/** {@link Component.enabled} */
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
constructor(components: Components);
|
|
15
|
+
getIsolatedElements(webIfc: WEBIFC.IfcAPI, modelID: number, elementIDs: Array<number>): Promise<any[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Exports isolated elements to the new model.
|
|
18
|
+
* @param webIfc The instance of [web-ifc](https://github.com/ThatOpen/engine_web-ifc) to use.
|
|
19
|
+
* @param modelID ID of the new IFC model.
|
|
20
|
+
* @param isolatedElements The array of isolated elements
|
|
21
|
+
*/
|
|
22
|
+
export(webIfc: WEBIFC.IfcAPI, modelID: number, isolatedElements: Array<any>): Promise<Uint8Array>;
|
|
23
|
+
splitIfc(webIfc: WEBIFC.IfcAPI, ifcFile: ArrayBuffer, idsToExtract: Array<number>): Promise<Uint8Array>;
|
|
24
|
+
}
|
|
@@ -278,12 +278,12 @@ export declare class IfcPropertiesManager extends Component implements Disposabl
|
|
|
278
278
|
private getNewExpressID;
|
|
279
279
|
private newGUID;
|
|
280
280
|
getOwnerHistory(model: FragmentsGroup): Promise<{
|
|
281
|
-
|
|
281
|
+
entity: {
|
|
282
282
|
[attribute: string]: any;
|
|
283
283
|
};
|
|
284
|
-
|
|
284
|
+
handle: WEBIFC.Handle<unknown>;
|
|
285
285
|
}>;
|
|
286
|
-
|
|
286
|
+
registerChange(model: FragmentsGroup, ...expressID: number[]): void;
|
|
287
287
|
private newSingleProperty;
|
|
288
288
|
}
|
|
289
289
|
export * from "./src";
|