vim-web 0.3.44-dev.80 → 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: 1e-3 },
47892
+ opacity: { value: 0.25 },
47893
47893
  // Uniform specifying the fill color for non-visible objects.
47894
- fillColor: { value: new Vector3(0, 0, 0) }
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
- gl_FragColor = vec4(fillColor, opacity);
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(5132892),
55515
- opacity: 0.01
55521
+ color: new Color(921102),
55522
+ opacity: 0.25
55516
55523
  },
55517
55524
  section: {
55518
55525
  strokeWidth: 0.01,
@@ -58222,6 +58229,12 @@ class RpcClient {
58222
58229
  marshal.writeRGBA(ghostColor);
58223
58230
  this._socket.sendRPC(marshal);
58224
58231
  }
58232
+ RPCSetGhostColor2(ghostColor) {
58233
+ const marshal = new Marshal();
58234
+ marshal.writeString("RPCSetGhostColor2");
58235
+ marshal.writeRGBA(ghostColor);
58236
+ this._socket.sendRPC(marshal);
58237
+ }
58225
58238
  RPCSetIblRotation(transform) {
58226
58239
  const marshal = new Marshal();
58227
58240
  marshal.writeString("RPCSetIblRotation");
@@ -59550,7 +59563,7 @@ class RpcSafeClient {
59550
59563
  */
59551
59564
  RPCSetGhostColor(ghostColor) {
59552
59565
  const color = Validation.clampRGBA01(ghostColor);
59553
- this.rpc.RPCSetGhostColor(color);
59566
+ this.rpc.RPCSetGhostColor2(color);
59554
59567
  }
59555
59568
  /**
59556
59569
  * Performs hit testing at a specified screen position.
@@ -59798,7 +59811,7 @@ class RpcSafeClient {
59798
59811
  const defaultRenderSettings = {
59799
59812
  ...defaultSceneSettings,
59800
59813
  lockIblRotation: true,
59801
- ghostColor: new RGBA(14 / 255, 14 / 255, 14 / 255, 1 / 255)
59814
+ ghostColor: new RGBA(14 / 255, 14 / 255, 14 / 255, 64 / 255)
59802
59815
  };
59803
59816
  class Renderer2 {
59804
59817
  /**
@@ -63687,17 +63700,9 @@ const icons = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
63687
63700
  }, Symbol.toStringTag, { value: "Module" }));
63688
63701
  function getDefaultSettings() {
63689
63702
  return {
63690
- materials: {
63691
- useGhostMaterial: true,
63692
- smallGhostThreshold: 10
63693
- },
63694
- isolation: {
63695
- enable: true
63696
- },
63697
63703
  capacity: {
63698
63704
  canFollowUrl: true,
63699
63705
  canGoFullScreen: true,
63700
- useOrthographicCamera: true,
63701
63706
  canDownload: true
63702
63707
  },
63703
63708
  ui: {
@@ -67393,7 +67398,6 @@ function AxesPanel(props) {
67393
67398
  if (empty2) return null;
67394
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: [
67395
67400
  whenAllTrue([
67396
- props.settings.value.capacity.useOrthographicCamera,
67397
67401
  props.settings.value.ui.orthographic
67398
67402
  ], btnOrtho),
67399
67403
  whenTrue(props.settings.value.ui.resetCamera, btnHome)
@@ -74438,7 +74442,6 @@ function applySettings(viewer, settings2) {
74438
74442
  performance2.classList.add("vc-hidden");
74439
74443
  }
74440
74444
  }
74441
- viewer.renderer.smallGhostThreshold = settings2.materials.smallGhostThreshold;
74442
74445
  }
74443
74446
  function createContainer(element) {
74444
74447
  let root = element;