@volter/editor-threejs 0.5.135 → 0.5.137

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@volter/editor-threejs",
3
3
  "author": "Volter AI, Inc.",
4
- "version": "0.5.135",
4
+ "version": "0.5.137",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -135,12 +135,12 @@
135
135
  "serving": "./dist-node/serving.mjs"
136
136
  },
137
137
  "dependencies": {
138
- "@volter/editor-project": "0.5.135",
138
+ "@volter/editor-project": "0.5.137",
139
139
  "@sparkjsdev/spark": "^2.1.0",
140
140
  "three.quarks": "^0.16.0",
141
141
  "zod": "^4.3.6",
142
142
  "typescript": "5.9.3",
143
- "@volter/editor-sdk": "0.5.135",
143
+ "@volter/editor-sdk": "0.5.137",
144
144
  "postprocessing": "6.38.3",
145
145
  "quarks.core": "0.16.0",
146
146
  "@fortawesome/free-solid-svg-icons": "^7.2.0"
@@ -1906,7 +1906,9 @@ export function Object3DDocumentViewport({
1906
1906
  host.syncHostScene = syncHostScene;
1907
1907
  documentSession.setBeforeRender((interactive) => {
1908
1908
  host.syncHostScene?.();
1909
- return source.prepareDraw?.(documentSession.camera(), {interactive, height: renderer.domElement.height});
1909
+ const mode = documentSession.presentation().mode;
1910
+ const navigation = interactive && ['solid', 'preview', 'clay', 'unlit', 'matcap'].includes(mode);
1911
+ return source.prepareDraw?.(documentSession.camera(), {interactive: navigation, height: renderer.domElement.height});
1910
1912
  });
1911
1913
  // This loop draws the compass and every other overlay pass over the
1912
1914
  // document's own render, so it — and only it — can serve the chrome