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.
|
@@ -16,17 +16,9 @@ export type RecursivePartial<T> = {
|
|
|
16
16
|
* @interface Settings
|
|
17
17
|
*/
|
|
18
18
|
export type Settings = {
|
|
19
|
-
materials: {
|
|
20
|
-
useGhostMaterial: boolean;
|
|
21
|
-
smallGhostThreshold: number;
|
|
22
|
-
};
|
|
23
|
-
isolation: {
|
|
24
|
-
enable: boolean;
|
|
25
|
-
};
|
|
26
19
|
capacity: {
|
|
27
20
|
canFollowUrl: boolean;
|
|
28
21
|
canGoFullScreen: boolean;
|
|
29
|
-
useOrthographicCamera: boolean;
|
|
30
22
|
canDownload: boolean;
|
|
31
23
|
};
|
|
32
24
|
ui: {
|
package/dist/vim-web.iife.js
CHANGED
|
@@ -47905,10 +47905,16 @@ void main() {
|
|
|
47905
47905
|
},
|
|
47906
47906
|
uniforms: {
|
|
47907
47907
|
// Uniform controlling the overall transparency of the non-visible objects.
|
|
47908
|
-
opacity: { value:
|
|
47908
|
+
opacity: { value: 0.25 },
|
|
47909
47909
|
// Uniform specifying the fill color for non-visible objects.
|
|
47910
|
-
fillColor: { value: new Vector3(
|
|
47910
|
+
fillColor: { value: new Vector3(14 / 255, 14 / 255, 14 / 255) }
|
|
47911
47911
|
},
|
|
47912
|
+
/*
|
|
47913
|
+
blending: THREE.CustomBlending,
|
|
47914
|
+
blendSrc: THREE.SrcAlphaFactor,
|
|
47915
|
+
blendEquation: THREE.AddEquation,
|
|
47916
|
+
blendDst: THREE.OneMinusDstColorFactor,
|
|
47917
|
+
*/
|
|
47912
47918
|
// Render only the front side of faces to prevent drawing internal geometry.
|
|
47913
47919
|
side: FrontSide,
|
|
47914
47920
|
// Enable support for vertex colors.
|
|
@@ -47958,7 +47964,8 @@ void main() {
|
|
|
47958
47964
|
// Handle clipping planes to discard fragments outside the defined planes.
|
|
47959
47965
|
#include <clipping_planes_fragment>
|
|
47960
47966
|
// Set the fragment color to the specified fill color and opacity.
|
|
47961
|
-
|
|
47967
|
+
// Divided by 10 just to match Ultra ghost opacity at 0.25
|
|
47968
|
+
gl_FragColor = vec4(fillColor, opacity / 10.0);
|
|
47962
47969
|
}
|
|
47963
47970
|
`
|
|
47964
47971
|
)
|
|
@@ -55527,8 +55534,8 @@ void main() {
|
|
|
55527
55534
|
opacity: 0.5
|
|
55528
55535
|
},
|
|
55529
55536
|
ghost: {
|
|
55530
|
-
color: new Color(
|
|
55531
|
-
opacity: 0.
|
|
55537
|
+
color: new Color(921102),
|
|
55538
|
+
opacity: 0.25
|
|
55532
55539
|
},
|
|
55533
55540
|
section: {
|
|
55534
55541
|
strokeWidth: 0.01,
|
|
@@ -63709,17 +63716,9 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
63709
63716
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
63710
63717
|
function getDefaultSettings() {
|
|
63711
63718
|
return {
|
|
63712
|
-
materials: {
|
|
63713
|
-
useGhostMaterial: true,
|
|
63714
|
-
smallGhostThreshold: 10
|
|
63715
|
-
},
|
|
63716
|
-
isolation: {
|
|
63717
|
-
enable: true
|
|
63718
|
-
},
|
|
63719
63719
|
capacity: {
|
|
63720
63720
|
canFollowUrl: true,
|
|
63721
63721
|
canGoFullScreen: true,
|
|
63722
|
-
useOrthographicCamera: true,
|
|
63723
63722
|
canDownload: true
|
|
63724
63723
|
},
|
|
63725
63724
|
ui: {
|
|
@@ -67415,7 +67414,6 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
67415
67414
|
if (empty2) return null;
|
|
67416
67415
|
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: [
|
|
67417
67416
|
whenAllTrue([
|
|
67418
|
-
props.settings.value.capacity.useOrthographicCamera,
|
|
67419
67417
|
props.settings.value.ui.orthographic
|
|
67420
67418
|
], btnOrtho),
|
|
67421
67419
|
whenTrue(props.settings.value.ui.resetCamera, btnHome)
|
|
@@ -74460,7 +74458,6 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
74460
74458
|
performance2.classList.add("vc-hidden");
|
|
74461
74459
|
}
|
|
74462
74460
|
}
|
|
74463
|
-
viewer.renderer.smallGhostThreshold = settings2.materials.smallGhostThreshold;
|
|
74464
74461
|
}
|
|
74465
74462
|
function createContainer(element) {
|
|
74466
74463
|
let root = element;
|