vim-web 0.3.44-dev.28 → 0.3.44-dev.29
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/vim-web.js
CHANGED
|
@@ -48858,14 +48858,14 @@ const _ViewerMaterials = class _ViewerMaterials {
|
|
|
48858
48858
|
this._onUpdate.dispatch();
|
|
48859
48859
|
}
|
|
48860
48860
|
/**
|
|
48861
|
-
* Size of the blur convolution on the selection outline effect.
|
|
48861
|
+
* Size of the blur convolution on the selection outline effect. Minimum 2.
|
|
48862
48862
|
*/
|
|
48863
48863
|
get outlineBlur() {
|
|
48864
48864
|
return this.outline.strokeBlur;
|
|
48865
48865
|
}
|
|
48866
48866
|
set outlineBlur(value) {
|
|
48867
48867
|
if (this.outline.strokeBlur === value) return;
|
|
48868
|
-
this.outline.strokeBlur = value;
|
|
48868
|
+
this.outline.strokeBlur = Math.max(value, 2);
|
|
48869
48869
|
this._onUpdate.dispatch();
|
|
48870
48870
|
}
|
|
48871
48871
|
/**
|
|
@@ -50617,8 +50617,12 @@ class CameraMovement {
|
|
|
50617
50617
|
}
|
|
50618
50618
|
frameSphere(sphere, forward) {
|
|
50619
50619
|
const direction = this.getNormalizedDirection(forward);
|
|
50620
|
-
|
|
50621
|
-
const
|
|
50620
|
+
this._camera.frustrumSizeAt(sphere.center);
|
|
50621
|
+
const vFov = this._camera.camPerspective.camera.fov * Math.PI / 180;
|
|
50622
|
+
const vDist = sphere.radius * 1.2 / Math.tan(vFov / 2);
|
|
50623
|
+
const hFov = vFov * this._camera.camPerspective.camera.aspect;
|
|
50624
|
+
const hDist = sphere.radius * 1.2 / Math.tan(hFov / 2);
|
|
50625
|
+
const dist2 = Math.max(vDist, hDist);
|
|
50622
50626
|
const safeDist = Math.max(dist2, this._camera.camPerspective.camera.near * 2);
|
|
50623
50627
|
const pos = direction.multiplyScalar(-safeDist).add(sphere.center);
|
|
50624
50628
|
this.set(pos, sphere.center);
|
|
@@ -75607,7 +75611,7 @@ function Modal(props) {
|
|
|
75607
75611
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
75608
75612
|
"div",
|
|
75609
75613
|
{
|
|
75610
|
-
className: "vim-modal vc-absolute vc-inset-0 vc-z-40 vc-flex vc-items-center vc-justify-center vc-bg-overflow vc-
|
|
75614
|
+
className: "vim-modal vc-absolute vc-inset-0 vc-z-40 vc-flex vc-items-center vc-justify-center vc-bg-overflow vc-bg-gray",
|
|
75611
75615
|
onClick: ((_a2 = props.state.current) == null ? void 0 : _a2.canClose) ? () => {
|
|
75612
75616
|
var _a3, _b3;
|
|
75613
75617
|
return (_b3 = (_a3 = state.current) == null ? void 0 : _a3.onClose) == null ? void 0 : _b3.call(_a3);
|