@thatopen/components 2.1.13 → 2.1.15
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/Cullers/index.d.ts +9 -0
- package/dist/core/Cullers/src/mesh-culler-renderer.d.ts +8 -0
- package/dist/core/Types/src/data-map.d.ts +18 -0
- package/dist/core/Types/src/data-set.d.ts +11 -0
- package/dist/core/Types/src/index.d.ts +2 -0
- package/dist/ifc/IfcRelationsIndexer/src/types.d.ts +5 -1
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +467 -376
- package/dist/namespace.d.ts +2217 -2167
- package/package.json +2 -2
|
@@ -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.1.
|
|
9
|
+
static readonly release = "2.1.15";
|
|
10
10
|
/** {@link Disposable.onDisposed} */
|
|
11
11
|
readonly onDisposed: Event<void>;
|
|
12
12
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
1
2
|
import { Components } from "../Components";
|
|
2
3
|
import { MeshCullerRenderer, CullerRendererSettings } from "./src";
|
|
3
4
|
import { Component, Event, Disposable, World } from "../Types";
|
|
@@ -46,4 +47,12 @@ export declare class Cullers extends Component implements Disposable {
|
|
|
46
47
|
delete(world: World): void;
|
|
47
48
|
/** {@link Disposable.dispose} */
|
|
48
49
|
dispose(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Updates the given instanced meshes inside the all the cullers. You should use this if you change the count property, e.g. when changing the visibility of fragments.
|
|
52
|
+
*
|
|
53
|
+
* @param meshes - The meshes to update.
|
|
54
|
+
*
|
|
55
|
+
* @returns {void}
|
|
56
|
+
*/
|
|
57
|
+
updateInstanced(meshes: Iterable<THREE.InstancedMesh>): void;
|
|
49
58
|
}
|
|
@@ -51,6 +51,14 @@ export declare class MeshCullerRenderer extends CullerRenderer implements Dispos
|
|
|
51
51
|
* @returns {void}
|
|
52
52
|
*/
|
|
53
53
|
remove(mesh: THREE.Mesh | THREE.InstancedMesh): void;
|
|
54
|
+
/**
|
|
55
|
+
* Updates the given instanced meshes inside the culler. You should use this if you change the count property, e.g. when changing the visibility of fragments.
|
|
56
|
+
*
|
|
57
|
+
* @param meshes - The meshes to update.
|
|
58
|
+
*
|
|
59
|
+
* @returns {void}
|
|
60
|
+
*/
|
|
61
|
+
updateInstanced(meshes: Iterable<THREE.InstancedMesh>): void;
|
|
54
62
|
private handleWorkerMessage;
|
|
55
63
|
private getAvailableMaterial;
|
|
56
64
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Event } from "./event";
|
|
2
|
+
export declare class DataMap<K, V> extends Map<K, V> {
|
|
3
|
+
readonly onItemSet: Event<{
|
|
4
|
+
key: K;
|
|
5
|
+
value: V;
|
|
6
|
+
}>;
|
|
7
|
+
readonly onItemUpdated: Event<{
|
|
8
|
+
key: K;
|
|
9
|
+
value: V;
|
|
10
|
+
}>;
|
|
11
|
+
readonly onItemDeleted: Event<unknown>;
|
|
12
|
+
readonly onCleared: Event<unknown>;
|
|
13
|
+
constructor(iterable?: Iterable<readonly [K, V]> | null | undefined);
|
|
14
|
+
clear(): void;
|
|
15
|
+
set(key: K, value: V): this;
|
|
16
|
+
delete(key: K): boolean;
|
|
17
|
+
dispose(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Event } from "./event";
|
|
2
|
+
export declare class DataSet<T> extends Set<T> {
|
|
3
|
+
readonly onItemAdded: Event<T>;
|
|
4
|
+
readonly onItemDeleted: Event<unknown>;
|
|
5
|
+
readonly onCleared: Event<unknown>;
|
|
6
|
+
constructor(iterable?: Iterable<T> | null);
|
|
7
|
+
clear(): void;
|
|
8
|
+
add(value: T): this;
|
|
9
|
+
delete(value: T): boolean;
|
|
10
|
+
dispose(): void;
|
|
11
|
+
}
|
|
@@ -19,6 +19,10 @@ export type InverseAttributes = [
|
|
|
19
19
|
"Types",
|
|
20
20
|
"Defines",
|
|
21
21
|
"ContainedInStructure",
|
|
22
|
-
"ContainsElements"
|
|
22
|
+
"ContainsElements",
|
|
23
|
+
"HasControlElements",
|
|
24
|
+
"AssignedToFlowElement",
|
|
25
|
+
"ConnectedTo",
|
|
26
|
+
"ConnectedFrom"
|
|
23
27
|
];
|
|
24
28
|
export type InverseAttribute = InverseAttributes[number];
|