Skip to content

Commit a35b812

Browse files
committed
feat: コアロジックを外部ページ向けにexport化・ズームモード永続化 (v0.8.0)
pose_editor_3d.js の ComfyUI 非依存部分を js/pose_editor_core.js に切り出し、 export function initPoseEditor3D(...) として外部ページ(SPA等)から 動的importで再利用できるようにした。ノード自体の見た目・動作は不変。 ズーム操作モード(wheel/ctrlDrag)を localStorage に永続化し、 ノード・外部ページ間で設定を共有するようにした。
1 parent 3ff527c commit a35b812

4 files changed

Lines changed: 1338 additions & 1284 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,9 @@ Left/Right ボーンペアを入れ替え、クォータニオンを YZ 反転 `
420420
- **Lights**: managed multi-light system (Directional / Point / Spot / RectArea / Ambient); shadow restricted to DirectionalLight (VRM MToon constraint)
421421
- **Ground / BG Wall**: `MeshStandardMaterial` (opaque) or `ShadowMaterial` (shadow catcher); color, texture, tile, height/depth adjustable
422422
- **Background color**: `scene.background = THREE.Color` via color picker; transparent by default
423-
- **Zoom mode**: wheel zoom (default) or Ctrl+Right-drag zoom, toggled from the Light Editor scene bar (`editor.getZoomMode()` / `setZoomMode()`)
423+
- **Zoom mode**: wheel zoom (default) or Ctrl+Right-drag zoom, toggled from the Light Editor scene bar (`editor.getZoomMode()` / `setZoomMode()`). Persisted in `localStorage` (`vrmPoseEditor_zoomMode`), shared across all ComfyUI nodes and pages on the same origin
424424
- **Light presets**: full scene snapshot (all lights + Ground/Wall/Shadow values); texture images excluded; stored server-side as JSON files
425+
- **Core module**: `js/pose_editor_core.js` exports `initPoseEditor3D()` with zero ComfyUI dependency, so it can be imported directly from external pages (e.g. `/extensions/comfyui-vrm-pose-editor/pose_editor_core.js`) alongside `light_editor.js` / `pose_library.js`
425426

426427
---
427428

0 commit comments

Comments
 (0)