← Commit history

Publish 0.12.3

Colby Knox ·5f64409519 · ·parent 7900e69
4 files changed +10−46
README.md+1−1
@@ -97,7 +97,7 @@ window.Adom3DViewerBabylon9 = { - `getScene()` / `getEngine()` / `getCamera()` / `getShadowGenerator()` - `addContentRoot(node, opts?)` / `removeContentRoot(node)` - `toggleDebugLayer()` / `showDebugLayer()` / `hideDebugLayer()`-- `setGroundVisible(visible)` / `goHome()` / `setHomeView({ alpha, beta, radiusScale? } | null)`: Home (the view cube and `goHome()`) goes to the host's view when one is set, else the top-front-right corner (0.9.2, adom/adom-3d-viewer#9)+- `setGroundVisible(visible)` / `goHome()` / `setHomeView({ alpha, beta, radiusScale?, target? } | null)`: Home (the view cube and `goHome()`) goes to the host's view when one is set, else the top-front-right corner (0.9.2, adom/adom-3d-viewer#9). `target: [x, y, z]` is the point that view orbits, in the model's own frame (a GLB's coordinates, Z up, as the viewer shows them); without it the view aims at the model's bounding-box center (0.12.3, adom/wiki#237) - `setBottomLight(on)` / `getBottomLightState()`: underside fill light, default off - `setProjectionMode(ortho)` / `getProjectionMode()` - `toggleAxes("world" | "mesh-local", force?)` / `getAxesState()`
VERSION+1−1
@@ -1 +1 @@-0.12.2+0.12.3
package.json+7−43
@@ -1,49 +1,9 @@ {   "name": "adom-3d-viewer-babylon9",-  "version": "0.12.2",+  "version": "0.12.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",-  "module": "./dist/index.js",-  "types": "./dist/index.d.ts",-  "exports": {-    ".": {-      "import": "./dist/index.js",-      "types": "./dist/index.d.ts"-    }-  },-  "files": [-    "dist",-    "dist-standalone",-    "src",-    "standalone.ts"-  ],-  "scripts": {-    "build": "vite build",-    "build:standalone": "vite build --config vite.standalone.config.mts",-    "dev": "vite build --watch",-    "prepare": "npm run build",-    "test:sandbox": "node test/wiki-sandbox.test.mjs",-    "test:orbit": "node test/orbit.test.mjs",-    "test": "node test/wiki-sandbox.test.mjs && node test/orbit.test.mjs && node test/viewcube.test.mjs && node test/help.test.mjs && node test/lights.test.mjs && node test/replace.test.mjs && node test/layers.test.mjs && node test/bundle.test.mjs",-    "test:viewcube": "node test/viewcube.test.mjs",-    "test:help": "node test/help.test.mjs",-    "test:lights": "node test/lights.test.mjs",-    "test:replace": "node test/replace.test.mjs",-    "test:layers": "node test/layers.test.mjs",-    "test:bundle": "node test/bundle.test.mjs"-  },   "dependencies": {},-  "devDependencies": {-    "@sveltejs/vite-plugin-svelte": "^3.1.2",-    "svelte-check": "^3.8.6",-    "terser": "^5.46.2",-    "typescript": "^5.5.4",-    "vite": "^5.4.1"-  },-  "peerDependencies": {-    "svelte": "^4.0.0 || ^5.0.0"-  },   "slug": "adom-3d-viewer",   "license": "MIT",   "tags": [@@ -77,5 +37,9 @@       "prompt": "Download the 0.4.3 viewer bundle so my tool vendors a fixed build"     }   ],-  "title": "Adom 3D Viewer"-}+  "title": "Adom 3D Viewer",+  "scripts": {+    "install": "./install.sh",+    "uninstall": "./uninstall.sh"+  }+}\ No newline at end of file
page.json+1−1
@@ -4,7 +4,7 @@   "slug": "adom-3d-viewer",   "title": "Adom 3D Viewer",   "brief": "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.",-  "version": "0.12.2",+  "version": "0.12.3",   "tags": [     "3d",     "viewer",