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.
@@ -66,6 +66,7 @@ export declare class RpcClient {
66
66
  RPCSetCameraMode(orbit: boolean): void;
67
67
  RPCSetCameraPosition(state: RpcTypes.Segment, blendTime: number): void;
68
68
  RPCSetGhostColor(ghostColor: RpcTypes.RGBA): void;
69
+ RPCSetGhostColor2(ghostColor: RpcTypes.RGBA): void;
69
70
  RPCSetIblRotation(transform: RpcTypes.Matrix44): void;
70
71
  RPCSetLighting(toneMappingWhitePoint: number, hdrScale: number, hdrBackgroundScale: number, hdrBackgroundSaturation: number, backgroundBlur: number, backgroundColor: RpcTypes.RGBA): void;
71
72
  RPCSetMaterialOverrides(componentHandle: number, nodes: number[], materialInstanceHandles: number[]): void;
@@ -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: {
@@ -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: 1e-3 },
47908
+ opacity: { value: 0.25 },
47909
47909
  // Uniform specifying the fill color for non-visible objects.
47910
- fillColor: { value: new Vector3(0, 0, 0) }
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
- gl_FragColor = vec4(fillColor, opacity);
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(5132892),
55531
- opacity: 0.01
55537
+ color: new Color(921102),
55538
+ opacity: 0.25
55532
55539
  },
55533
55540
  section: {
55534
55541
  strokeWidth: 0.01,
@@ -58238,6 +58245,12 @@ void main() {
58238
58245
  marshal.writeRGBA(ghostColor);
58239
58246
  this._socket.sendRPC(marshal);
58240
58247
  }
58248
+ RPCSetGhostColor2(ghostColor) {
58249
+ const marshal = new Marshal();
58250
+ marshal.writeString("RPCSetGhostColor2");
58251
+ marshal.writeRGBA(ghostColor);
58252
+ this._socket.sendRPC(marshal);
58253
+ }
58241
58254
  RPCSetIblRotation(transform) {
58242
58255
  const marshal = new Marshal();
58243
58256
  marshal.writeString("RPCSetIblRotation");
@@ -59566,7 +59579,7 @@ void main() {
59566
59579
  */
59567
59580
  RPCSetGhostColor(ghostColor) {
59568
59581
  const color = Validation.clampRGBA01(ghostColor);
59569
- this.rpc.RPCSetGhostColor(color);
59582
+ this.rpc.RPCSetGhostColor2(color);
59570
59583
  }
59571
59584
  /**
59572
59585
  * Performs hit testing at a specified screen position.
@@ -59814,7 +59827,7 @@ void main() {
59814
59827
  const defaultRenderSettings = {
59815
59828
  ...defaultSceneSettings,
59816
59829
  lockIblRotation: true,
59817
- ghostColor: new RGBA(14 / 255, 14 / 255, 14 / 255, 1 / 255)
59830
+ ghostColor: new RGBA(14 / 255, 14 / 255, 14 / 255, 64 / 255)
59818
59831
  };
59819
59832
  class Renderer {
59820
59833
  /**
@@ -63703,17 +63716,9 @@ Averrage Date/Second ${avgDataRatePS} kb
63703
63716
  }, Symbol.toStringTag, { value: "Module" }));
63704
63717
  function getDefaultSettings() {
63705
63718
  return {
63706
- materials: {
63707
- useGhostMaterial: true,
63708
- smallGhostThreshold: 10
63709
- },
63710
- isolation: {
63711
- enable: true
63712
- },
63713
63719
  capacity: {
63714
63720
  canFollowUrl: true,
63715
63721
  canGoFullScreen: true,
63716
- useOrthographicCamera: true,
63717
63722
  canDownload: true
63718
63723
  },
63719
63724
  ui: {
@@ -67409,7 +67414,6 @@ Averrage Date/Second ${avgDataRatePS} kb
67409
67414
  if (empty2) return null;
67410
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: [
67411
67416
  whenAllTrue([
67412
- props.settings.value.capacity.useOrthographicCamera,
67413
67417
  props.settings.value.ui.orthographic
67414
67418
  ], btnOrtho),
67415
67419
  whenTrue(props.settings.value.ui.resetCamera, btnHome)
@@ -74454,7 +74458,6 @@ Averrage Date/Second ${avgDataRatePS} kb
74454
74458
  performance2.classList.add("vc-hidden");
74455
74459
  }
74456
74460
  }
74457
- viewer.renderer.smallGhostThreshold = settings2.materials.smallGhostThreshold;
74458
74461
  }
74459
74462
  function createContainer(element) {
74460
74463
  let root = element;