@splinetool/loader 2.0.198 → 2.0.199
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/build/SplineLoader.cjs +6 -6
- package/build/SplineLoader.js +6 -6
- package/build/hana-ui.js +236 -40
- package/build/hana-ui.wasm +0 -0
- package/package.json +1 -1
package/build/hana-ui.js
CHANGED
|
@@ -426,6 +426,19 @@ export class SceneController {
|
|
|
426
426
|
const ret = wasm.scenecontroller_figmaVectorToVecNet(this.__wbg_ptr, addHeapObject(network), addHeapObject(size));
|
|
427
427
|
return takeObject(ret);
|
|
428
428
|
}
|
|
429
|
+
/**
|
|
430
|
+
* Text on path: lays out `data` (which must carry a `path`) and returns
|
|
431
|
+
* the box around its glyphs and path: the path recentered on that box,
|
|
432
|
+
* the box's center in the text's current local space, and its size. The
|
|
433
|
+
* editor stores these so the text's bounds follow the curve. `None` while
|
|
434
|
+
* the font is still loading.
|
|
435
|
+
* @param {TextShapeData} data
|
|
436
|
+
* @returns {TextOnPathFit | undefined}
|
|
437
|
+
*/
|
|
438
|
+
fitTextOnPath(data) {
|
|
439
|
+
const ret = wasm.scenecontroller_fitTextOnPath(this.__wbg_ptr, addHeapObject(data));
|
|
440
|
+
return takeObject(ret);
|
|
441
|
+
}
|
|
429
442
|
/**
|
|
430
443
|
* @param {ID} shape
|
|
431
444
|
* @returns {ParseSvgPathResult | undefined}
|
|
@@ -594,6 +607,15 @@ export class SceneController {
|
|
|
594
607
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
595
608
|
}
|
|
596
609
|
}
|
|
610
|
+
/**
|
|
611
|
+
* Whether the document is in Display P3, i.e. whether the pixels the
|
|
612
|
+
* engine renders and reads back are Display P3 values rather than sRGB.
|
|
613
|
+
* @returns {boolean}
|
|
614
|
+
*/
|
|
615
|
+
isDisplayP3() {
|
|
616
|
+
const ret = wasm.scenecontroller_isDisplayP3(this.__wbg_ptr);
|
|
617
|
+
return ret !== 0;
|
|
618
|
+
}
|
|
597
619
|
/**
|
|
598
620
|
* @returns {boolean}
|
|
599
621
|
*/
|
|
@@ -752,6 +774,51 @@ export class SceneController {
|
|
|
752
774
|
const ret = wasm.scenecontroller_objectLocalMatrix(this.__wbg_ptr, addHeapObject(id));
|
|
753
775
|
return takeObject(ret);
|
|
754
776
|
}
|
|
777
|
+
/**
|
|
778
|
+
* Text on path: the centerline of `path_object` (a vector or shape) as
|
|
779
|
+
* SVG path data in `target`'s local space, where its glyphs are laid out.
|
|
780
|
+
* @param {ID} path_object
|
|
781
|
+
* @param {ID} target
|
|
782
|
+
* @returns {string | undefined}
|
|
783
|
+
*/
|
|
784
|
+
objectPathInObjectSpace(path_object, target) {
|
|
785
|
+
try {
|
|
786
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
787
|
+
wasm.scenecontroller_objectPathInObjectSpace(retptr, this.__wbg_ptr, addHeapObject(path_object), addHeapObject(target));
|
|
788
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
789
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
790
|
+
let v1;
|
|
791
|
+
if (r0 !== 0) {
|
|
792
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
793
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
794
|
+
}
|
|
795
|
+
return v1;
|
|
796
|
+
} finally {
|
|
797
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* The object's box corners after its 3D transform, in world coordinates (see
|
|
802
|
+
* `Objects::object_projected_corners`). Undefined for an object drawn flat.
|
|
803
|
+
* @param {ID} id
|
|
804
|
+
* @returns {Float32Array | undefined}
|
|
805
|
+
*/
|
|
806
|
+
objectProjectedCorners(id) {
|
|
807
|
+
try {
|
|
808
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
809
|
+
wasm.scenecontroller_objectProjectedCorners(retptr, this.__wbg_ptr, addHeapObject(id));
|
|
810
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
811
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
812
|
+
let v1;
|
|
813
|
+
if (r0 !== 0) {
|
|
814
|
+
v1 = getArrayF32FromWasm0(r0, r1).slice();
|
|
815
|
+
wasm.__wbindgen_export4(r0, r1 * 4, 4);
|
|
816
|
+
}
|
|
817
|
+
return v1;
|
|
818
|
+
} finally {
|
|
819
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
755
822
|
/**
|
|
756
823
|
* @param {ID} id
|
|
757
824
|
* @returns {Affine2 | undefined}
|
|
@@ -768,6 +835,20 @@ export class SceneController {
|
|
|
768
835
|
const ret = wasm.scenecontroller_objectWorldMatrixWithChildrenOffset(this.__wbg_ptr, addHeapObject(id));
|
|
769
836
|
return takeObject(ret);
|
|
770
837
|
}
|
|
838
|
+
/**
|
|
839
|
+
* Figma's "Offset path": grows (positive) or shrinks (negative) the
|
|
840
|
+
* shape's outline by `distance` px.
|
|
841
|
+
* @param {ID} shape
|
|
842
|
+
* @param {number} distance
|
|
843
|
+
* @param {string} join
|
|
844
|
+
* @returns {ParseSvgPathResult | undefined}
|
|
845
|
+
*/
|
|
846
|
+
offsetShape(shape, distance, join) {
|
|
847
|
+
const ptr0 = passStringToWasm0(join, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
848
|
+
const len0 = WASM_VECTOR_LEN;
|
|
849
|
+
const ret = wasm.scenecontroller_offsetShape(this.__wbg_ptr, addHeapObject(shape), distance, ptr0, len0);
|
|
850
|
+
return takeObject(ret);
|
|
851
|
+
}
|
|
771
852
|
/**
|
|
772
853
|
* @param {string} key
|
|
773
854
|
*/
|
|
@@ -1026,6 +1107,13 @@ export class SceneController {
|
|
|
1026
1107
|
const ret = wasm.scenecontroller_setBytesForVectorVertexPositionSelection(this.__wbg_ptr, addHeapObject(data), addHeapObject(selected_verts), x, y);
|
|
1027
1108
|
return takeObject(ret);
|
|
1028
1109
|
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Switches the document's color profile. Takes effect on the next frame.
|
|
1112
|
+
* @param {ColorProfileData} profile
|
|
1113
|
+
*/
|
|
1114
|
+
setColorProfile(profile) {
|
|
1115
|
+
wasm.scenecontroller_setColorProfile(this.__wbg_ptr, addHeapObject(profile));
|
|
1116
|
+
}
|
|
1029
1117
|
/**
|
|
1030
1118
|
* Drive playback of an imported glTF animation on a Model3D shape.
|
|
1031
1119
|
* `clipIndex` indexes into the shape's Model3DData.animations array; pass null
|
|
@@ -1046,6 +1134,21 @@ export class SceneController {
|
|
|
1046
1134
|
setModel3DAnimationLocalTime(id, time) {
|
|
1047
1135
|
wasm.scenecontroller_setModel3DAnimationLocalTime(this.__wbg_ptr, addHeapObject(id), time);
|
|
1048
1136
|
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Outline mode: draw every layer as a thin outline, without fills or effects.
|
|
1139
|
+
* @param {boolean} enabled
|
|
1140
|
+
*/
|
|
1141
|
+
setOutlineMode(enabled) {
|
|
1142
|
+
wasm.scenecontroller_setOutlineMode(this.__wbg_ptr, enabled);
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Pixel preview: `scale` 1 or 2 rasterizes the page at that many pixels per document
|
|
1146
|
+
* pixel and shows them enlarged when zoomed in further; 0 turns it off.
|
|
1147
|
+
* @param {number} scale
|
|
1148
|
+
*/
|
|
1149
|
+
setPixelPreview(scale) {
|
|
1150
|
+
wasm.scenecontroller_setPixelPreview(this.__wbg_ptr, scale);
|
|
1151
|
+
}
|
|
1049
1152
|
/**
|
|
1050
1153
|
* @param {Float4} padding
|
|
1051
1154
|
*/
|
|
@@ -1088,6 +1191,17 @@ export class SceneController {
|
|
|
1088
1191
|
setVideoExportFrame(id, frame) {
|
|
1089
1192
|
wasm.scenecontroller_setVideoExportFrame(this.__wbg_ptr, addHeapObject(id), addHeapObject(frame));
|
|
1090
1193
|
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Figma's "Simplify vector": refits the shape's outline with fewer
|
|
1196
|
+
* curves, within `tolerance` px.
|
|
1197
|
+
* @param {ID} shape
|
|
1198
|
+
* @param {number} tolerance
|
|
1199
|
+
* @returns {ParseSvgPathResult | undefined}
|
|
1200
|
+
*/
|
|
1201
|
+
simplifyShape(shape, tolerance) {
|
|
1202
|
+
const ret = wasm.scenecontroller_simplifyShape(this.__wbg_ptr, addHeapObject(shape), tolerance);
|
|
1203
|
+
return takeObject(ret);
|
|
1204
|
+
}
|
|
1091
1205
|
/**
|
|
1092
1206
|
* Snap a world-space resize handle position against other (non-selected) vertices.
|
|
1093
1207
|
* `snap_x`/`snap_y` indicate which axes may snap. Returns the snapped world position.
|
|
@@ -1137,6 +1251,30 @@ export class SceneController {
|
|
|
1137
1251
|
stopVectorEditing() {
|
|
1138
1252
|
wasm.scenecontroller_stopVectorEditing(this.__wbg_ptr);
|
|
1139
1253
|
}
|
|
1254
|
+
/**
|
|
1255
|
+
* Width tool: the world position at `t` (0..1 by length) along the
|
|
1256
|
+
* shape's first stroke subpath, for drawing width handles.
|
|
1257
|
+
* @param {ID} id
|
|
1258
|
+
* @param {number} t
|
|
1259
|
+
* @returns {Float2 | undefined}
|
|
1260
|
+
*/
|
|
1261
|
+
strokePointAt(id, t) {
|
|
1262
|
+
const ret = wasm.scenecontroller_strokePointAt(this.__wbg_ptr, addHeapObject(id), t);
|
|
1263
|
+
return takeObject(ret);
|
|
1264
|
+
}
|
|
1265
|
+
/**
|
|
1266
|
+
* Width tool: projects a world point onto the shape's stroke centerline.
|
|
1267
|
+
* Returns `[t, distance]`: the position along the nearest subpath by
|
|
1268
|
+
* length (0..1, the space width profiles use) and the distance from the
|
|
1269
|
+
* centerline in the shape's local units.
|
|
1270
|
+
* @param {ID} id
|
|
1271
|
+
* @param {Float2} world
|
|
1272
|
+
* @returns {Float2 | undefined}
|
|
1273
|
+
*/
|
|
1274
|
+
strokeProjection(id, world) {
|
|
1275
|
+
const ret = wasm.scenecontroller_strokeProjection(this.__wbg_ptr, addHeapObject(id), addHeapObject(world));
|
|
1276
|
+
return takeObject(ret);
|
|
1277
|
+
}
|
|
1140
1278
|
/**
|
|
1141
1279
|
* @param {ID} shape
|
|
1142
1280
|
* @returns {ParseSvgPathResult | undefined}
|
|
@@ -1263,6 +1401,45 @@ export class SceneController {
|
|
|
1263
1401
|
vectorDeleteSelection(connect) {
|
|
1264
1402
|
wasm.scenecontroller_vectorDeleteSelection(this.__wbg_ptr, connect);
|
|
1265
1403
|
}
|
|
1404
|
+
/**
|
|
1405
|
+
* The selected points' point mode: "None", "Angle", "AngleAndLength",
|
|
1406
|
+
* "" when unset (inferred), or "Mixed".
|
|
1407
|
+
* @returns {string}
|
|
1408
|
+
*/
|
|
1409
|
+
vectorGetHandleMirroring() {
|
|
1410
|
+
let deferred1_0;
|
|
1411
|
+
let deferred1_1;
|
|
1412
|
+
try {
|
|
1413
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1414
|
+
wasm.scenecontroller_vectorGetHandleMirroring(retptr, this.__wbg_ptr);
|
|
1415
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1416
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1417
|
+
deferred1_0 = r0;
|
|
1418
|
+
deferred1_1 = r1;
|
|
1419
|
+
return getStringFromWasm0(r0, r1);
|
|
1420
|
+
} finally {
|
|
1421
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1422
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* Figma's "Join selection": connects the two selected open endpoints.
|
|
1427
|
+
* @returns {boolean}
|
|
1428
|
+
*/
|
|
1429
|
+
vectorJoinSelection() {
|
|
1430
|
+
const ret = wasm.scenecontroller_vectorJoinSelection(this.__wbg_ptr);
|
|
1431
|
+
return ret !== 0;
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
* Lasso point selection: `points` is a flat `[x0, y0, x1, y1, …]` list
|
|
1435
|
+
* of world-space positions.
|
|
1436
|
+
* @param {Float32Array} points
|
|
1437
|
+
*/
|
|
1438
|
+
vectorLassoSelect(points) {
|
|
1439
|
+
const ptr0 = passArrayF32ToWasm0(points, wasm.__wbindgen_export);
|
|
1440
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1441
|
+
wasm.scenecontroller_vectorLassoSelect(this.__wbg_ptr, ptr0, len0);
|
|
1442
|
+
}
|
|
1266
1443
|
/**
|
|
1267
1444
|
* @param {ID} id
|
|
1268
1445
|
* @param {Float2} size_delta
|
|
@@ -1282,6 +1459,18 @@ export class SceneController {
|
|
|
1282
1459
|
const ret = wasm.scenecontroller_vectorResizeWithCornerRadii(this.__wbg_ptr, addHeapObject(data), addHeapObject(size_delta), applied_scale);
|
|
1283
1460
|
return takeObject(ret);
|
|
1284
1461
|
}
|
|
1462
|
+
/**
|
|
1463
|
+
* Point mode for the selected points: "None", "Angle" or
|
|
1464
|
+
* "AngleAndLength"; anything else clears it back to the inferred mode.
|
|
1465
|
+
* @param {string} mode
|
|
1466
|
+
* @returns {boolean}
|
|
1467
|
+
*/
|
|
1468
|
+
vectorSetHandleMirroring(mode) {
|
|
1469
|
+
const ptr0 = passStringToWasm0(mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1470
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1471
|
+
const ret = wasm.scenecontroller_vectorSetHandleMirroring(this.__wbg_ptr, ptr0, len0);
|
|
1472
|
+
return ret !== 0;
|
|
1473
|
+
}
|
|
1285
1474
|
/**
|
|
1286
1475
|
* @param {boolean} value
|
|
1287
1476
|
*/
|
|
@@ -2572,7 +2761,7 @@ function __wbg_get_imports() {
|
|
|
2572
2761
|
const a = state0.a;
|
|
2573
2762
|
state0.a = 0;
|
|
2574
2763
|
try {
|
|
2575
|
-
return
|
|
2764
|
+
return __wasm_bindgen_func_elem_14874(a, state0.b, arg0, arg1);
|
|
2576
2765
|
} finally {
|
|
2577
2766
|
state0.a = a;
|
|
2578
2767
|
}
|
|
@@ -2618,7 +2807,7 @@ function __wbg_get_imports() {
|
|
|
2618
2807
|
const a = state0.a;
|
|
2619
2808
|
state0.a = 0;
|
|
2620
2809
|
try {
|
|
2621
|
-
return
|
|
2810
|
+
return __wasm_bindgen_func_elem_14874(a, state0.b, arg0, arg1);
|
|
2622
2811
|
} finally {
|
|
2623
2812
|
state0.a = a;
|
|
2624
2813
|
}
|
|
@@ -3729,48 +3918,48 @@ function __wbg_get_imports() {
|
|
|
3729
3918
|
getObject(arg0).writeTexture(getObject(arg1), getArrayU8FromWasm0(arg2, arg3), getObject(arg4), getObject(arg5));
|
|
3730
3919
|
}, arguments); },
|
|
3731
3920
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3732
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3733
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3921
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1052, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3922
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_14872);
|
|
3734
3923
|
return addHeapObject(ret);
|
|
3735
3924
|
},
|
|
3736
3925
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3737
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
3738
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3926
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 35, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3927
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_5511);
|
|
3739
3928
|
return addHeapObject(ret);
|
|
3740
3929
|
},
|
|
3741
3930
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3742
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUComputePipeline")], shim_idx:
|
|
3743
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3931
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUComputePipeline")], shim_idx: 940, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3932
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11872);
|
|
3744
3933
|
return addHeapObject(ret);
|
|
3745
3934
|
},
|
|
3746
3935
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3747
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx:
|
|
3748
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3936
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 940, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3937
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11872_3);
|
|
3749
3938
|
return addHeapObject(ret);
|
|
3750
3939
|
},
|
|
3751
3940
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
3752
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx:
|
|
3753
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3941
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 941, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3942
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11873);
|
|
3754
3943
|
return addHeapObject(ret);
|
|
3755
3944
|
},
|
|
3756
3945
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
3757
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPURenderPipeline")], shim_idx:
|
|
3758
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3946
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPURenderPipeline")], shim_idx: 940, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3947
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11872_5);
|
|
3759
3948
|
return addHeapObject(ret);
|
|
3760
3949
|
},
|
|
3761
3950
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
3762
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx:
|
|
3763
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3951
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 940, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3952
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11872_6);
|
|
3764
3953
|
return addHeapObject(ret);
|
|
3765
3954
|
},
|
|
3766
3955
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
3767
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx:
|
|
3768
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3956
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 940, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3957
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11872_7);
|
|
3769
3958
|
return addHeapObject(ret);
|
|
3770
3959
|
},
|
|
3771
3960
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
3772
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3773
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3961
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1035, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3962
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_13237);
|
|
3774
3963
|
return addHeapObject(ret);
|
|
3775
3964
|
},
|
|
3776
3965
|
__wbindgen_cast_000000000000000a: function(arg0) {
|
|
@@ -3844,22 +4033,22 @@ function __wbg_get_imports() {
|
|
|
3844
4033
|
};
|
|
3845
4034
|
}
|
|
3846
4035
|
|
|
3847
|
-
function
|
|
3848
|
-
wasm.
|
|
4036
|
+
function __wasm_bindgen_func_elem_13237(arg0, arg1) {
|
|
4037
|
+
wasm.__wasm_bindgen_func_elem_13237(arg0, arg1);
|
|
3849
4038
|
}
|
|
3850
4039
|
|
|
3851
|
-
function
|
|
3852
|
-
wasm.
|
|
4040
|
+
function __wasm_bindgen_func_elem_5511(arg0, arg1, arg2) {
|
|
4041
|
+
wasm.__wasm_bindgen_func_elem_5511(arg0, arg1, addHeapObject(arg2));
|
|
3853
4042
|
}
|
|
3854
4043
|
|
|
3855
|
-
function
|
|
3856
|
-
wasm.
|
|
4044
|
+
function __wasm_bindgen_func_elem_11873(arg0, arg1, arg2) {
|
|
4045
|
+
wasm.__wasm_bindgen_func_elem_11873(arg0, arg1, addHeapObject(arg2));
|
|
3857
4046
|
}
|
|
3858
4047
|
|
|
3859
|
-
function
|
|
4048
|
+
function __wasm_bindgen_func_elem_14872(arg0, arg1, arg2) {
|
|
3860
4049
|
try {
|
|
3861
4050
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3862
|
-
wasm.
|
|
4051
|
+
wasm.__wasm_bindgen_func_elem_14872(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3863
4052
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3864
4053
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3865
4054
|
if (r1) {
|
|
@@ -3870,10 +4059,10 @@ function __wasm_bindgen_func_elem_14181(arg0, arg1, arg2) {
|
|
|
3870
4059
|
}
|
|
3871
4060
|
}
|
|
3872
4061
|
|
|
3873
|
-
function
|
|
4062
|
+
function __wasm_bindgen_func_elem_11872(arg0, arg1, arg2) {
|
|
3874
4063
|
try {
|
|
3875
4064
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3876
|
-
wasm.
|
|
4065
|
+
wasm.__wasm_bindgen_func_elem_11872(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3877
4066
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3878
4067
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3879
4068
|
if (r1) {
|
|
@@ -3884,10 +4073,10 @@ function __wasm_bindgen_func_elem_11181(arg0, arg1, arg2) {
|
|
|
3884
4073
|
}
|
|
3885
4074
|
}
|
|
3886
4075
|
|
|
3887
|
-
function
|
|
4076
|
+
function __wasm_bindgen_func_elem_11872_3(arg0, arg1, arg2) {
|
|
3888
4077
|
try {
|
|
3889
4078
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3890
|
-
wasm.
|
|
4079
|
+
wasm.__wasm_bindgen_func_elem_11872_3(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3891
4080
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3892
4081
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3893
4082
|
if (r1) {
|
|
@@ -3898,10 +4087,10 @@ function __wasm_bindgen_func_elem_11181_3(arg0, arg1, arg2) {
|
|
|
3898
4087
|
}
|
|
3899
4088
|
}
|
|
3900
4089
|
|
|
3901
|
-
function
|
|
4090
|
+
function __wasm_bindgen_func_elem_11872_5(arg0, arg1, arg2) {
|
|
3902
4091
|
try {
|
|
3903
4092
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3904
|
-
wasm.
|
|
4093
|
+
wasm.__wasm_bindgen_func_elem_11872_5(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3905
4094
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3906
4095
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3907
4096
|
if (r1) {
|
|
@@ -3912,10 +4101,10 @@ function __wasm_bindgen_func_elem_11181_5(arg0, arg1, arg2) {
|
|
|
3912
4101
|
}
|
|
3913
4102
|
}
|
|
3914
4103
|
|
|
3915
|
-
function
|
|
4104
|
+
function __wasm_bindgen_func_elem_11872_6(arg0, arg1, arg2) {
|
|
3916
4105
|
try {
|
|
3917
4106
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3918
|
-
wasm.
|
|
4107
|
+
wasm.__wasm_bindgen_func_elem_11872_6(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3919
4108
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3920
4109
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3921
4110
|
if (r1) {
|
|
@@ -3926,10 +4115,10 @@ function __wasm_bindgen_func_elem_11181_6(arg0, arg1, arg2) {
|
|
|
3926
4115
|
}
|
|
3927
4116
|
}
|
|
3928
4117
|
|
|
3929
|
-
function
|
|
4118
|
+
function __wasm_bindgen_func_elem_11872_7(arg0, arg1, arg2) {
|
|
3930
4119
|
try {
|
|
3931
4120
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3932
|
-
wasm.
|
|
4121
|
+
wasm.__wasm_bindgen_func_elem_11872_7(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3933
4122
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3934
4123
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3935
4124
|
if (r1) {
|
|
@@ -3940,8 +4129,8 @@ function __wasm_bindgen_func_elem_11181_7(arg0, arg1, arg2) {
|
|
|
3940
4129
|
}
|
|
3941
4130
|
}
|
|
3942
4131
|
|
|
3943
|
-
function
|
|
3944
|
-
wasm.
|
|
4132
|
+
function __wasm_bindgen_func_elem_14874(arg0, arg1, arg2, arg3) {
|
|
4133
|
+
wasm.__wasm_bindgen_func_elem_14874(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
3945
4134
|
}
|
|
3946
4135
|
|
|
3947
4136
|
|
|
@@ -4325,6 +4514,13 @@ function makeMutClosure(arg0, arg1, f) {
|
|
|
4325
4514
|
return real;
|
|
4326
4515
|
}
|
|
4327
4516
|
|
|
4517
|
+
function passArrayF32ToWasm0(arg, malloc) {
|
|
4518
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
4519
|
+
getFloat32ArrayMemory0().set(arg, ptr / 4);
|
|
4520
|
+
WASM_VECTOR_LEN = arg.length;
|
|
4521
|
+
return ptr;
|
|
4522
|
+
}
|
|
4523
|
+
|
|
4328
4524
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
4329
4525
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
4330
4526
|
const mem = getDataViewMemory0();
|
package/build/hana-ui.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splinetool/loader",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.199",
|
|
4
4
|
"description": "Spline is a collaborative design platform for creating production-ready interactive experiences in multiple dimensions. © 2025 Spline, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"spline",
|