← Commit history
v0.9.3: pause rendering for hidden and offscreen viewers (PR #1)
3 files changed
+6−6
VERSION+1−1@@ -1 +1 @@-0.9.2+0.9.3
package.json+1−1@@ -1,6 +1,6 @@ { "name": "adom-3d-viewer-babylon9",- "version": "0.9.2",+ "version": "0.9.3", "description": "The Babylon 9.5 engine behind every component page's 3D tab on wiki.adom.inc. Versioned ESM bundle with GLB loading, view cube, layers toolbar, ground shadows, and Z-up CAD framing.", "type": "app", "main": "./dist/index.js",
test/visibility.test.mjs+4−4@@ -1,7 +1,7 @@-// The ? button, the controls card and the one-time Shift+Alt tip (Colby,-// 2026-09-16): every consumer gets a small ? in the corner; its card leads-// with Shift+Alt+click to set the center of rotation; the tip bubble shows-// once per browser when the first model is ready; showHelp:false hides it all.+// Render lifecycle (adom/adom-3d-viewer#10, PR #1): a viewer renders while+// it is visible, stops submitting frames when its canvas leaves the viewport+// or the document is hidden, resumes when it comes back, and releases its+// render callback and observers when destroyed. import http from "node:http"; import { existsSync, readFileSync, readdirSync } from "node:fs"; import { dirname, join, resolve } from "node:path";