@splinetool/viewer 2.0.158 → 2.0.160
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/hana-ui.js +56 -31
- package/build/hana-ui.wasm +0 -0
- package/build/spline-viewer.cjs +10 -10
- package/build/spline-viewer.js +10 -10
- package/build/spline-viewer.webgl.js +22 -22
- package/build/spline-viewer.webgpu.js +15 -15
- package/package.json +1 -1
package/build/hana-ui.js
CHANGED
|
@@ -1244,6 +1244,13 @@ export class SceneController {
|
|
|
1244
1244
|
vectorBoxSelect(start, end) {
|
|
1245
1245
|
wasm.scenecontroller_vectorBoxSelect(this.__wbg_ptr, addHeapObject(start), addHeapObject(end));
|
|
1246
1246
|
}
|
|
1247
|
+
/**
|
|
1248
|
+
* The pointer left the canvas, or the pen is no longer armed: remove the pen's hover
|
|
1249
|
+
* preview (both the one before a vector exists and the one while editing).
|
|
1250
|
+
*/
|
|
1251
|
+
vectorClearPenHoverPreview() {
|
|
1252
|
+
wasm.scenecontroller_vectorClearPenHoverPreview(this.__wbg_ptr);
|
|
1253
|
+
}
|
|
1247
1254
|
/**
|
|
1248
1255
|
* Clear any active snap lines/dots (call when a box-driven drag-move ends)
|
|
1249
1256
|
*/
|
|
@@ -1293,6 +1300,24 @@ export class SceneController {
|
|
|
1293
1300
|
vectorSetIsSnappingControlAngles(value) {
|
|
1294
1301
|
wasm.scenecontroller_vectorSetIsSnappingControlAngles(this.__wbg_ptr, value);
|
|
1295
1302
|
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Snap vector points to the pixel grid while editing (the editor's "Snap to pixel
|
|
1305
|
+
* grid" setting). Independent of `vectorSetIsSnapping` (snapping to other points).
|
|
1306
|
+
* @param {boolean} value
|
|
1307
|
+
*/
|
|
1308
|
+
vectorSetIsSnappingToPixelGrid(value) {
|
|
1309
|
+
wasm.scenecontroller_vectorSetIsSnappingToPixelGrid(this.__wbg_ptr, value);
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* The pen tool is armed and hovering at `pos` (screen space) with no vector being
|
|
1313
|
+
* edited yet: show the dot where the first point of the new vector will land on the
|
|
1314
|
+
* pixel grid. No-op while a vector is edited (the edit session draws its own preview)
|
|
1315
|
+
* and when snapping to the pixel grid is off.
|
|
1316
|
+
* @param {Float2} pos
|
|
1317
|
+
*/
|
|
1318
|
+
vectorSetPenHoverPreview(pos) {
|
|
1319
|
+
wasm.scenecontroller_vectorSetPenHoverPreview(this.__wbg_ptr, addHeapObject(pos));
|
|
1320
|
+
}
|
|
1296
1321
|
vectorStopContinueSubpath() {
|
|
1297
1322
|
wasm.scenecontroller_vectorStopContinueSubpath(this.__wbg_ptr);
|
|
1298
1323
|
}
|
|
@@ -2547,7 +2572,7 @@ function __wbg_get_imports() {
|
|
|
2547
2572
|
const a = state0.a;
|
|
2548
2573
|
state0.a = 0;
|
|
2549
2574
|
try {
|
|
2550
|
-
return
|
|
2575
|
+
return __wasm_bindgen_func_elem_14185(a, state0.b, arg0, arg1);
|
|
2551
2576
|
} finally {
|
|
2552
2577
|
state0.a = a;
|
|
2553
2578
|
}
|
|
@@ -2593,7 +2618,7 @@ function __wbg_get_imports() {
|
|
|
2593
2618
|
const a = state0.a;
|
|
2594
2619
|
state0.a = 0;
|
|
2595
2620
|
try {
|
|
2596
|
-
return
|
|
2621
|
+
return __wasm_bindgen_func_elem_14185(a, state0.b, arg0, arg1);
|
|
2597
2622
|
} finally {
|
|
2598
2623
|
state0.a = a;
|
|
2599
2624
|
}
|
|
@@ -3705,47 +3730,47 @@ function __wbg_get_imports() {
|
|
|
3705
3730
|
}, arguments); },
|
|
3706
3731
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3707
3732
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1041, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3708
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3733
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_14183);
|
|
3709
3734
|
return addHeapObject(ret);
|
|
3710
3735
|
},
|
|
3711
3736
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3712
3737
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 34, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3713
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3738
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_5139);
|
|
3714
3739
|
return addHeapObject(ret);
|
|
3715
3740
|
},
|
|
3716
3741
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3717
3742
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUComputePipeline")], shim_idx: 929, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3718
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3743
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11183);
|
|
3719
3744
|
return addHeapObject(ret);
|
|
3720
3745
|
},
|
|
3721
3746
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3722
3747
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 929, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3723
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3748
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11183_3);
|
|
3724
3749
|
return addHeapObject(ret);
|
|
3725
3750
|
},
|
|
3726
3751
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
3727
3752
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 930, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3728
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3753
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11184);
|
|
3729
3754
|
return addHeapObject(ret);
|
|
3730
3755
|
},
|
|
3731
3756
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
3732
3757
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPURenderPipeline")], shim_idx: 929, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3733
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3758
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11183_5);
|
|
3734
3759
|
return addHeapObject(ret);
|
|
3735
3760
|
},
|
|
3736
3761
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
3737
3762
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 929, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3738
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3763
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11183_6);
|
|
3739
3764
|
return addHeapObject(ret);
|
|
3740
3765
|
},
|
|
3741
3766
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
3742
3767
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 929, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3743
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3768
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11183_7);
|
|
3744
3769
|
return addHeapObject(ret);
|
|
3745
3770
|
},
|
|
3746
3771
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
3747
3772
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1024, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3748
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3773
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_12548);
|
|
3749
3774
|
return addHeapObject(ret);
|
|
3750
3775
|
},
|
|
3751
3776
|
__wbindgen_cast_000000000000000a: function(arg0) {
|
|
@@ -3819,22 +3844,22 @@ function __wbg_get_imports() {
|
|
|
3819
3844
|
};
|
|
3820
3845
|
}
|
|
3821
3846
|
|
|
3822
|
-
function
|
|
3823
|
-
wasm.
|
|
3847
|
+
function __wasm_bindgen_func_elem_12548(arg0, arg1) {
|
|
3848
|
+
wasm.__wasm_bindgen_func_elem_12548(arg0, arg1);
|
|
3824
3849
|
}
|
|
3825
3850
|
|
|
3826
|
-
function
|
|
3827
|
-
wasm.
|
|
3851
|
+
function __wasm_bindgen_func_elem_5139(arg0, arg1, arg2) {
|
|
3852
|
+
wasm.__wasm_bindgen_func_elem_5139(arg0, arg1, addHeapObject(arg2));
|
|
3828
3853
|
}
|
|
3829
3854
|
|
|
3830
|
-
function
|
|
3831
|
-
wasm.
|
|
3855
|
+
function __wasm_bindgen_func_elem_11184(arg0, arg1, arg2) {
|
|
3856
|
+
wasm.__wasm_bindgen_func_elem_11184(arg0, arg1, addHeapObject(arg2));
|
|
3832
3857
|
}
|
|
3833
3858
|
|
|
3834
|
-
function
|
|
3859
|
+
function __wasm_bindgen_func_elem_14183(arg0, arg1, arg2) {
|
|
3835
3860
|
try {
|
|
3836
3861
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3837
|
-
wasm.
|
|
3862
|
+
wasm.__wasm_bindgen_func_elem_14183(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3838
3863
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3839
3864
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3840
3865
|
if (r1) {
|
|
@@ -3845,10 +3870,10 @@ function __wasm_bindgen_func_elem_14170(arg0, arg1, arg2) {
|
|
|
3845
3870
|
}
|
|
3846
3871
|
}
|
|
3847
3872
|
|
|
3848
|
-
function
|
|
3873
|
+
function __wasm_bindgen_func_elem_11183(arg0, arg1, arg2) {
|
|
3849
3874
|
try {
|
|
3850
3875
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3851
|
-
wasm.
|
|
3876
|
+
wasm.__wasm_bindgen_func_elem_11183(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3852
3877
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3853
3878
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3854
3879
|
if (r1) {
|
|
@@ -3859,10 +3884,10 @@ function __wasm_bindgen_func_elem_11170(arg0, arg1, arg2) {
|
|
|
3859
3884
|
}
|
|
3860
3885
|
}
|
|
3861
3886
|
|
|
3862
|
-
function
|
|
3887
|
+
function __wasm_bindgen_func_elem_11183_3(arg0, arg1, arg2) {
|
|
3863
3888
|
try {
|
|
3864
3889
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3865
|
-
wasm.
|
|
3890
|
+
wasm.__wasm_bindgen_func_elem_11183_3(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3866
3891
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3867
3892
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3868
3893
|
if (r1) {
|
|
@@ -3873,10 +3898,10 @@ function __wasm_bindgen_func_elem_11170_3(arg0, arg1, arg2) {
|
|
|
3873
3898
|
}
|
|
3874
3899
|
}
|
|
3875
3900
|
|
|
3876
|
-
function
|
|
3901
|
+
function __wasm_bindgen_func_elem_11183_5(arg0, arg1, arg2) {
|
|
3877
3902
|
try {
|
|
3878
3903
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3879
|
-
wasm.
|
|
3904
|
+
wasm.__wasm_bindgen_func_elem_11183_5(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3880
3905
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3881
3906
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3882
3907
|
if (r1) {
|
|
@@ -3887,10 +3912,10 @@ function __wasm_bindgen_func_elem_11170_5(arg0, arg1, arg2) {
|
|
|
3887
3912
|
}
|
|
3888
3913
|
}
|
|
3889
3914
|
|
|
3890
|
-
function
|
|
3915
|
+
function __wasm_bindgen_func_elem_11183_6(arg0, arg1, arg2) {
|
|
3891
3916
|
try {
|
|
3892
3917
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3893
|
-
wasm.
|
|
3918
|
+
wasm.__wasm_bindgen_func_elem_11183_6(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3894
3919
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3895
3920
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3896
3921
|
if (r1) {
|
|
@@ -3901,10 +3926,10 @@ function __wasm_bindgen_func_elem_11170_6(arg0, arg1, arg2) {
|
|
|
3901
3926
|
}
|
|
3902
3927
|
}
|
|
3903
3928
|
|
|
3904
|
-
function
|
|
3929
|
+
function __wasm_bindgen_func_elem_11183_7(arg0, arg1, arg2) {
|
|
3905
3930
|
try {
|
|
3906
3931
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3907
|
-
wasm.
|
|
3932
|
+
wasm.__wasm_bindgen_func_elem_11183_7(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3908
3933
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3909
3934
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3910
3935
|
if (r1) {
|
|
@@ -3915,8 +3940,8 @@ function __wasm_bindgen_func_elem_11170_7(arg0, arg1, arg2) {
|
|
|
3915
3940
|
}
|
|
3916
3941
|
}
|
|
3917
3942
|
|
|
3918
|
-
function
|
|
3919
|
-
wasm.
|
|
3943
|
+
function __wasm_bindgen_func_elem_14185(arg0, arg1, arg2, arg3) {
|
|
3944
|
+
wasm.__wasm_bindgen_func_elem_14185(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
3920
3945
|
}
|
|
3921
3946
|
|
|
3922
3947
|
|
package/build/hana-ui.wasm
CHANGED
|
Binary file
|