@layoutit/polycss 0.2.2 → 0.2.4

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/README.md CHANGED
@@ -84,6 +84,7 @@ export default function App() {
84
84
  - `autoCenter` shifts the mesh bbox center to local origin.
85
85
  - `meshResolution` chooses `"lossy"` (default) or `"lossless"` optimization. STL imports use the conservative lossless path in both modes.
86
86
  - `castShadow` emits CSS-projected shadows in dynamic lighting mode.
87
+ - Tooling can reuse `buildPolyMeshTransform`, `worldPositionToPolyCss`, `worldDirectionToPolyCss`, `worldDistanceToPolyCss`, `polyCssDistanceToWorld`, and `polyCssPositionToWorld` for renderer-compatible transforms and world/CSS conversions.
87
88
 
88
89
  ### Controls
89
90
 
@@ -258,6 +258,11 @@ interface PolySceneHandle {
258
258
  * FPV controls toggle `.polycss-fpv-host` on this element.
259
259
  */
260
260
  readonly cameraEl: HTMLElement;
261
+ /**
262
+ * The `.polycss-scene` root element inside `cameraEl`. Mesh wrappers, shadow
263
+ * roots, and helper DOM are mounted under this element.
264
+ */
265
+ readonly sceneElement: HTMLElement;
261
266
  /**
262
267
  * The camera handle this scene is bound to. Controls update camera state
263
268
  * via `scene.camera.update({...})` then call `scene.applyCamera()` to
@@ -258,6 +258,11 @@ interface PolySceneHandle {
258
258
  * FPV controls toggle `.polycss-fpv-host` on this element.
259
259
  */
260
260
  readonly cameraEl: HTMLElement;
261
+ /**
262
+ * The `.polycss-scene` root element inside `cameraEl`. Mesh wrappers, shadow
263
+ * roots, and helper DOM are mounted under this element.
264
+ */
265
+ readonly sceneElement: HTMLElement;
261
266
  /**
262
267
  * The camera handle this scene is bound to. Controls update camera state
263
268
  * via `scene.camera.update({...})` then call `scene.applyCamera()` to