@thatopen/components 2.1.15 → 2.1.16
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/fragments/FragmentsManager/index.d.ts +2 -0
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +3 -2
- package/dist/namespace.d.ts +2391 -2389
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3015,7 +3015,7 @@ const Fs = class Fs {
|
|
|
3015
3015
|
/**
|
|
3016
3016
|
* The version of the @thatopen/components library.
|
|
3017
3017
|
*/
|
|
3018
|
-
I(Fs, "release", "2.1.
|
|
3018
|
+
I(Fs, "release", "2.1.16");
|
|
3019
3019
|
let pi = Fs;
|
|
3020
3020
|
class Ar {
|
|
3021
3021
|
constructor(s) {
|
|
@@ -7382,13 +7382,14 @@ const Ns = class Ns extends et {
|
|
|
7382
7382
|
* Loads a binary file that contain fragment geometry.
|
|
7383
7383
|
* @param data - The binary data to load.
|
|
7384
7384
|
* @param config - Optional configuration for loading.
|
|
7385
|
+
* @param config.isStreamed - Optional setting to determine whether this model is streamed or not.
|
|
7385
7386
|
* @param config.coordinate - Whether to apply coordinate transformation. Default is true.
|
|
7386
7387
|
* @param config.properties - Ifc properties to set on the loaded fragments. Not to be used when streaming.
|
|
7387
7388
|
* @returns The loaded FragmentsGroup.
|
|
7388
7389
|
*/
|
|
7389
7390
|
load(t, e) {
|
|
7390
7391
|
const o = { ...{ coordinate: !0 }, ...e }, { coordinate: n, name: r, properties: a, relationsMap: c } = o, h = this._loader.import(t);
|
|
7391
|
-
r && (h.name = r);
|
|
7392
|
+
e && (h.isStreamed = e.isStreamed || !1), r && (h.name = r);
|
|
7392
7393
|
for (const d of h.items)
|
|
7393
7394
|
d.group = h, this.list.set(d.id, d);
|
|
7394
7395
|
return n && this.coordinate([h]), this.groups.set(h.uuid, h), a && h.setLocalProperties(a), c && this.components.get(pe).setRelationMap(h, c), this.onFragmentsLoaded.trigger(h), h;
|