@ifc-lite/wasm 1.16.2 → 1.16.3
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/package.json +1 -1
- package/pkg/ifc-lite.d.ts +9 -3
- package/pkg/ifc-lite.js +20 -8
- package/pkg/ifc-lite_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/ifc-lite.d.ts
CHANGED
|
@@ -543,6 +543,11 @@ export class IfcAPI {
|
|
|
543
543
|
* Much faster than scanning all entities (3x speedup for large files)
|
|
544
544
|
*/
|
|
545
545
|
scanGeometryEntitiesFast(content: string): any;
|
|
546
|
+
/**
|
|
547
|
+
* Fast scan that only returns metadata-relevant entity refs.
|
|
548
|
+
* This drastically reduces transfer size for huge-file metadata hydration.
|
|
549
|
+
*/
|
|
550
|
+
scanRelevantEntitiesFastBytes(data: Uint8Array): any;
|
|
546
551
|
/**
|
|
547
552
|
* Parse IFC file (traditional - waits for completion)
|
|
548
553
|
*
|
|
@@ -1077,6 +1082,7 @@ export interface InitOutput {
|
|
|
1077
1082
|
readonly ifcapi_scanEntitiesFast: (a: number, b: number, c: number) => number;
|
|
1078
1083
|
readonly ifcapi_scanEntitiesFastBytes: (a: number, b: number, c: number) => number;
|
|
1079
1084
|
readonly ifcapi_scanGeometryEntitiesFast: (a: number, b: number, c: number) => number;
|
|
1085
|
+
readonly ifcapi_scanRelevantEntitiesFastBytes: (a: number, b: number, c: number) => number;
|
|
1080
1086
|
readonly ifcapi_version: (a: number, b: number) => void;
|
|
1081
1087
|
readonly instancedata_color: (a: number, b: number) => void;
|
|
1082
1088
|
readonly instancedata_expressId: (a: number) => number;
|
|
@@ -1183,9 +1189,9 @@ export interface InitOutput {
|
|
|
1183
1189
|
readonly profileentryjs_expressId: (a: number) => number;
|
|
1184
1190
|
readonly symboliccircle_expressId: (a: number) => number;
|
|
1185
1191
|
readonly __wbg_gpuinstancedgeometryref_free: (a: number, b: number) => void;
|
|
1186
|
-
readonly
|
|
1187
|
-
readonly
|
|
1188
|
-
readonly
|
|
1192
|
+
readonly __wasm_bindgen_func_elem_1134: (a: number, b: number, c: number) => void;
|
|
1193
|
+
readonly __wasm_bindgen_func_elem_1133: (a: number, b: number) => void;
|
|
1194
|
+
readonly __wasm_bindgen_func_elem_1173: (a: number, b: number, c: number, d: number) => void;
|
|
1189
1195
|
readonly __wbindgen_export: (a: number) => void;
|
|
1190
1196
|
readonly __wbindgen_export2: (a: number, b: number, c: number) => void;
|
|
1191
1197
|
readonly __wbindgen_export3: (a: number, b: number) => number;
|
package/pkg/ifc-lite.js
CHANGED
|
@@ -212,12 +212,12 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
212
212
|
|
|
213
213
|
let WASM_VECTOR_LEN = 0;
|
|
214
214
|
|
|
215
|
-
function
|
|
216
|
-
wasm.
|
|
215
|
+
function __wasm_bindgen_func_elem_1134(arg0, arg1, arg2) {
|
|
216
|
+
wasm.__wasm_bindgen_func_elem_1134(arg0, arg1, addHeapObject(arg2));
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
function
|
|
220
|
-
wasm.
|
|
219
|
+
function __wasm_bindgen_func_elem_1173(arg0, arg1, arg2, arg3) {
|
|
220
|
+
wasm.__wasm_bindgen_func_elem_1173(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
const GeoReferenceJsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1692,6 +1692,18 @@ export class IfcAPI {
|
|
|
1692
1692
|
const ret = wasm.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr, ptr0, len0);
|
|
1693
1693
|
return takeObject(ret);
|
|
1694
1694
|
}
|
|
1695
|
+
/**
|
|
1696
|
+
* Fast scan that only returns metadata-relevant entity refs.
|
|
1697
|
+
* This drastically reduces transfer size for huge-file metadata hydration.
|
|
1698
|
+
* @param {Uint8Array} data
|
|
1699
|
+
* @returns {any}
|
|
1700
|
+
*/
|
|
1701
|
+
scanRelevantEntitiesFastBytes(data) {
|
|
1702
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export3);
|
|
1703
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1704
|
+
const ret = wasm.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr, ptr0, len0);
|
|
1705
|
+
return takeObject(ret);
|
|
1706
|
+
}
|
|
1695
1707
|
/**
|
|
1696
1708
|
* Parse IFC file (traditional - waits for completion)
|
|
1697
1709
|
*
|
|
@@ -3075,7 +3087,7 @@ function __wbg_get_imports() {
|
|
|
3075
3087
|
const a = state0.a;
|
|
3076
3088
|
state0.a = 0;
|
|
3077
3089
|
try {
|
|
3078
|
-
return
|
|
3090
|
+
return __wasm_bindgen_func_elem_1173(a, state0.b, arg0, arg1);
|
|
3079
3091
|
} finally {
|
|
3080
3092
|
state0.a = a;
|
|
3081
3093
|
}
|
|
@@ -3187,9 +3199,9 @@ function __wbg_get_imports() {
|
|
|
3187
3199
|
const ret = BigInt.asUintN(64, arg0);
|
|
3188
3200
|
return addHeapObject(ret);
|
|
3189
3201
|
};
|
|
3190
|
-
imports.wbg.
|
|
3191
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3192
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3202
|
+
imports.wbg.__wbindgen_cast_c42a1cfd85e9d91e = function(arg0, arg1) {
|
|
3203
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 148, function: Function { arguments: [Externref], shim_idx: 149, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3204
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1133, __wasm_bindgen_func_elem_1134);
|
|
3193
3205
|
return addHeapObject(ret);
|
|
3194
3206
|
};
|
|
3195
3207
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
package/pkg/ifc-lite_bg.wasm
CHANGED
|
Binary file
|