vim-web 0.3.44-dev.81 → 0.3.44-dev.82
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
|
@@ -47889,10 +47889,16 @@ function createGhostMaterial() {
|
|
|
47889
47889
|
},
|
|
47890
47890
|
uniforms: {
|
|
47891
47891
|
// Uniform controlling the overall transparency of the non-visible objects.
|
|
47892
|
-
opacity: { value:
|
|
47892
|
+
opacity: { value: 0.25 },
|
|
47893
47893
|
// Uniform specifying the fill color for non-visible objects.
|
|
47894
|
-
fillColor: { value: new Vector3(
|
|
47894
|
+
fillColor: { value: new Vector3(14 / 255, 14 / 255, 14 / 255) }
|
|
47895
47895
|
},
|
|
47896
|
+
/*
|
|
47897
|
+
blending: THREE.CustomBlending,
|
|
47898
|
+
blendSrc: THREE.SrcAlphaFactor,
|
|
47899
|
+
blendEquation: THREE.AddEquation,
|
|
47900
|
+
blendDst: THREE.OneMinusDstColorFactor,
|
|
47901
|
+
*/
|
|
47896
47902
|
// Render only the front side of faces to prevent drawing internal geometry.
|
|
47897
47903
|
side: FrontSide,
|
|
47898
47904
|
// Enable support for vertex colors.
|
|
@@ -47942,7 +47948,8 @@ function createGhostMaterial() {
|
|
|
47942
47948
|
// Handle clipping planes to discard fragments outside the defined planes.
|
|
47943
47949
|
#include <clipping_planes_fragment>
|
|
47944
47950
|
// Set the fragment color to the specified fill color and opacity.
|
|
47945
|
-
|
|
47951
|
+
// Divided by 10 just to match Ultra ghost opacity at 0.25
|
|
47952
|
+
gl_FragColor = vec4(fillColor, opacity / 10.0);
|
|
47946
47953
|
}
|
|
47947
47954
|
`
|
|
47948
47955
|
)
|
|
@@ -55511,8 +55518,8 @@ function getDefaultViewerSettings() {
|
|
|
55511
55518
|
opacity: 0.5
|
|
55512
55519
|
},
|
|
55513
55520
|
ghost: {
|
|
55514
|
-
color: new Color(
|
|
55515
|
-
opacity: 0.
|
|
55521
|
+
color: new Color(921102),
|
|
55522
|
+
opacity: 0.25
|
|
55516
55523
|
},
|
|
55517
55524
|
section: {
|
|
55518
55525
|
strokeWidth: 0.01,
|
|
@@ -63693,17 +63700,9 @@ const icons = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
63693
63700
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
63694
63701
|
function getDefaultSettings() {
|
|
63695
63702
|
return {
|
|
63696
|
-
materials: {
|
|
63697
|
-
useGhostMaterial: true,
|
|
63698
|
-
smallGhostThreshold: 10
|
|
63699
|
-
},
|
|
63700
|
-
isolation: {
|
|
63701
|
-
enable: true
|
|
63702
|
-
},
|
|
63703
63703
|
capacity: {
|
|
63704
63704
|
canFollowUrl: true,
|
|
63705
63705
|
canGoFullScreen: true,
|
|
63706
|
-
useOrthographicCamera: true,
|
|
63707
63706
|
canDownload: true
|
|
63708
63707
|
},
|
|
63709
63708
|
ui: {
|
|
@@ -67399,7 +67398,6 @@ function AxesPanel(props) {
|
|
|
67399
67398
|
if (empty2) return null;
|
|
67400
67399
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "vim-axes-panel-bar vc-absolute vc-top-[75%] vc-bottom-0 vc-right-0 vc-left-0", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "vim-axes-panel-buttons vc-absolute vc-inset-0 vc-pointer-events-auto vc-order-2 vc-flex vc-items-center vc-justify-evenly vc-bg-white", children: [
|
|
67401
67400
|
whenAllTrue([
|
|
67402
|
-
props.settings.value.capacity.useOrthographicCamera,
|
|
67403
67401
|
props.settings.value.ui.orthographic
|
|
67404
67402
|
], btnOrtho),
|
|
67405
67403
|
whenTrue(props.settings.value.ui.resetCamera, btnHome)
|
|
@@ -74444,7 +74442,6 @@ function applySettings(viewer, settings2) {
|
|
|
74444
74442
|
performance2.classList.add("vc-hidden");
|
|
74445
74443
|
}
|
|
74446
74444
|
}
|
|
74447
|
-
viewer.renderer.smallGhostThreshold = settings2.materials.smallGhostThreshold;
|
|
74448
74445
|
}
|
|
74449
74446
|
function createContainer(element) {
|
|
74450
74447
|
let root = element;
|