opengeometry 2.0.5 → 2.0.6
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/index.js +35 -36
- package/index.js.map +1 -1
- package/opengeometry/pkg/opengeometry.d.ts +182 -182
- package/opengeometry/pkg/opengeometry.js +36 -37
- package/opengeometry/pkg/opengeometry_bg.wasm +0 -0
- package/opengeometry/pkg/opengeometry_bg.wasm.d.ts +181 -181
- package/opengeometry_bg.wasm +0 -0
- package/opengeometry_bg.wasm.d.ts +181 -181
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -138,6 +138,11 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
138
138
|
WASM_VECTOR_LEN = offset;
|
|
139
139
|
return ptr;
|
|
140
140
|
}
|
|
141
|
+
function _assertClass(instance, klass) {
|
|
142
|
+
if (!(instance instanceof klass)) {
|
|
143
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
141
146
|
function takeFromExternrefTable0(idx) {
|
|
142
147
|
const value = wasm.__wbindgen_export_2.get(idx);
|
|
143
148
|
wasm.__externref_table_dealloc(idx);
|
|
@@ -154,11 +159,6 @@ function getArrayF64FromWasm0(ptr, len) {
|
|
|
154
159
|
ptr = ptr >>> 0;
|
|
155
160
|
return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
156
161
|
}
|
|
157
|
-
function _assertClass(instance, klass) {
|
|
158
|
-
if (!(instance instanceof klass)) {
|
|
159
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
162
|
let cachedDataViewMemory0 = null;
|
|
163
163
|
function getDataViewMemory0() {
|
|
164
164
|
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
@@ -175,6 +175,35 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
175
175
|
WASM_VECTOR_LEN = array.length;
|
|
176
176
|
return ptr;
|
|
177
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* @param {string} local_brep_serialized
|
|
180
|
+
* @param {number} height
|
|
181
|
+
* @returns {string}
|
|
182
|
+
*/
|
|
183
|
+
function extrudeBrepFace$1(local_brep_serialized, height) {
|
|
184
|
+
let deferred3_0;
|
|
185
|
+
let deferred3_1;
|
|
186
|
+
try {
|
|
187
|
+
const ptr0 = passStringToWasm0(local_brep_serialized, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
188
|
+
const len0 = WASM_VECTOR_LEN;
|
|
189
|
+
const ret = wasm.extrudeBrepFace(ptr0, len0, height);
|
|
190
|
+
var ptr2 = ret[0];
|
|
191
|
+
var len2 = ret[1];
|
|
192
|
+
if (ret[3]) {
|
|
193
|
+
ptr2 = 0;
|
|
194
|
+
len2 = 0;
|
|
195
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
196
|
+
}
|
|
197
|
+
deferred3_0 = ptr2;
|
|
198
|
+
deferred3_1 = len2;
|
|
199
|
+
return getStringFromWasm0(ptr2, len2);
|
|
200
|
+
} finally {
|
|
201
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function isLikeNone(x) {
|
|
205
|
+
return x === undefined || x === null;
|
|
206
|
+
}
|
|
178
207
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
179
208
|
ptr = ptr >>> 0;
|
|
180
209
|
const mem = getDataViewMemory0();
|
|
@@ -185,9 +214,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
185
214
|
wasm.__externref_drop_slice(ptr, len);
|
|
186
215
|
return result;
|
|
187
216
|
}
|
|
188
|
-
function isLikeNone(x) {
|
|
189
|
-
return x === undefined || x === null;
|
|
190
|
-
}
|
|
191
217
|
/**
|
|
192
218
|
* Wasm entry point for union.
|
|
193
219
|
* @param {string} lhs_brep_serialized
|
|
@@ -271,33 +297,6 @@ function booleanSubtractionMany(lhs_brep_serialized, cutters_brep_serialized, op
|
|
|
271
297
|
}
|
|
272
298
|
return OGBooleanResult.__wrap(ret[0]);
|
|
273
299
|
}
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* @param {string} local_brep_serialized
|
|
277
|
-
* @param {number} height
|
|
278
|
-
* @returns {string}
|
|
279
|
-
*/
|
|
280
|
-
function extrudeBrepFace$1(local_brep_serialized, height) {
|
|
281
|
-
let deferred3_0;
|
|
282
|
-
let deferred3_1;
|
|
283
|
-
try {
|
|
284
|
-
const ptr0 = passStringToWasm0(local_brep_serialized, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
285
|
-
const len0 = WASM_VECTOR_LEN;
|
|
286
|
-
const ret = wasm.extrudeBrepFace(ptr0, len0, height);
|
|
287
|
-
var ptr2 = ret[0];
|
|
288
|
-
var len2 = ret[1];
|
|
289
|
-
if (ret[3]) {
|
|
290
|
-
ptr2 = 0;
|
|
291
|
-
len2 = 0;
|
|
292
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
293
|
-
}
|
|
294
|
-
deferred3_0 = ptr2;
|
|
295
|
-
deferred3_1 = len2;
|
|
296
|
-
return getStringFromWasm0(ptr2, len2);
|
|
297
|
-
} finally {
|
|
298
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
300
|
const Matrix3Finalization = typeof FinalizationRegistry === 'undefined' ? {
|
|
302
301
|
register: () => {},
|
|
303
302
|
unregister: () => {}
|
|
@@ -4997,7 +4996,7 @@ class OGSweep {
|
|
|
4997
4996
|
* @returns {Vector3}
|
|
4998
4997
|
*/
|
|
4999
4998
|
get_anchor() {
|
|
5000
|
-
const ret = wasm.
|
|
4999
|
+
const ret = wasm.ogarc_get_anchor(this.__wbg_ptr);
|
|
5001
5000
|
return Vector3.__wrap(ret);
|
|
5002
5001
|
}
|
|
5003
5002
|
/**
|