@layoutit/polycss-react 0.0.1 → 0.2.0

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
@@ -41,7 +41,7 @@ Root of every React polycss render tree. Renders polygons and meshes inside a `<
41
41
  | `directionalLight` | `PolyDirectionalLight` | None | Directional light config |
42
42
  | `ambientLight` | `PolyAmbientLight` | None | Ambient light config |
43
43
  | `textureLighting` | `"baked" \| "dynamic"` | `"baked"` | Texture lighting mode |
44
- | `atlasScale` | `number \| "auto"` | `"auto"` | Raster scale for generated atlas pages |
44
+ | `textureQuality` | `number \| "auto"` | `"auto"` | Atlas bitmap budget and compositor sprite size |
45
45
  | `polygons` | `Polygon[]` | None | Static polygon array (composes with `children`) |
46
46
  | `children` | `ReactNode` | None | `<PolyMesh>`, `<Poly>`, and/or `<PolyOrbitControls>` |
47
47
 
@@ -58,13 +58,13 @@ Loads a mesh from a URL and renders its polygons. Manages blob-URL lifecycle aut
58
58
  | `position` | `Vec3` | `[x, y, z]` offset in scene space |
59
59
  | `scale` | `number \| Vec3` | Uniform or per-axis scale |
60
60
  | `rotation` | `Vec3` | Euler angles in degrees `[x, y, z]` |
61
- | `atlasScale` | `number \| "auto"` | Raster scale for generated atlas pages |
61
+ | `textureQuality` | `number \| "auto"` | Atlas bitmap budget and compositor sprite size |
62
62
  | `autoCenter` | `boolean` | Shift mesh so its bbox center is at origin |
63
63
  | `mtl` | `string` | Companion `.mtl` URL for OBJ models |
64
- | `parseOptions` | `UseMeshOptions` | Forwarded to `loadMesh` |
64
+ | `parseOptions` | `UseMeshOptions` | Forwarded to `loadMesh`; `meshResolution` defaults to `"lossy"` |
65
65
  | `fallback` | `ReactNode` | Rendered while loading |
66
66
  | `errorFallback` | `(error: Error) => ReactNode` | Rendered on parse failure |
67
- | `children` | `(polygon, index) => ReactNode` | Per-polygon render prop override |
67
+ | `children` | `((polygon, index) => ReactNode) \| ReactNode` | Per-polygon render prop override, or static children mounted inside the mesh wrapper |
68
68
 
69
69
  ### `<Poly>`
70
70
 
@@ -80,7 +80,7 @@ Single polygon. The atomic primitive: renders one atlas-backed `<i>` for UV-text
80
80
  | `position` | `Vec3` | Local offset |
81
81
  | `scale` | `number \| Vec3` | Scale |
82
82
  | `rotation` | `Vec3` | Euler rotation in degrees |
83
- | `atlasScale` | `number \| "auto"` | Raster scale for generated atlas pages |
83
+ | `textureQuality` | `number \| "auto"` | Atlas bitmap budget and compositor sprite size |
84
84
  | `onClick` | `MouseEventHandler` | Standard DOM event handler |
85
85
  | `onMouseEnter` | `MouseEventHandler` | |
86
86
  | `className` | `string` | CSS class |