@selvajs/visualization 1.6.0-beta.8 → 1.6.0-beta.9

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.
Files changed (44) hide show
  1. package/dist/gpu-dispose-Cl3RXm-v.js +355 -0
  2. package/dist/gpu-dispose-Cl3RXm-v.js.map +1 -0
  3. package/dist/gpu-dispose-fRI12OCL.cjs +469 -0
  4. package/dist/gpu-dispose-fRI12OCL.cjs.map +1 -0
  5. package/dist/gpu-ownership-ADRZBxxs.cjs +102 -0
  6. package/dist/gpu-ownership-ADRZBxxs.cjs.map +1 -0
  7. package/dist/gpu-ownership-Bs9l7hrU.js +40 -0
  8. package/dist/gpu-ownership-Bs9l7hrU.js.map +1 -0
  9. package/dist/index.js +1 -1
  10. package/dist/merged-draw-CO4rr2Co.js +129 -0
  11. package/dist/merged-draw-CO4rr2Co.js.map +1 -0
  12. package/dist/merged-draw-ma_2r4N8.cjs +171 -0
  13. package/dist/merged-draw-ma_2r4N8.cjs.map +1 -0
  14. package/dist/parse.cjs +2789 -11
  15. package/dist/parse.cjs.map +1 -1
  16. package/dist/parse.d.cts +8 -2
  17. package/dist/parse.d.ts +8 -2
  18. package/dist/parse.js +2780 -11
  19. package/dist/parse.js.map +1 -1
  20. package/dist/render.cjs +3713 -6
  21. package/dist/render.cjs.map +1 -1
  22. package/dist/render.d.cts +23 -3
  23. package/dist/render.d.ts +23 -3
  24. package/dist/render.js +3692 -6
  25. package/dist/render.js.map +1 -1
  26. package/dist/scene.cjs +343 -1
  27. package/dist/scene.cjs.map +1 -1
  28. package/dist/scene.js +336 -1
  29. package/dist/scene.js.map +1 -1
  30. package/dist/{types-P5PyfYYE.d.ts → types-DW_qU4-Y.d.cts} +22 -3
  31. package/dist/{types-P5PyfYYE.d.cts → types-DW_qU4-Y.d.ts} +22 -3
  32. package/package.json +2 -2
  33. package/dist/gpu-dispose-Cestx__L.cjs +0 -2
  34. package/dist/gpu-dispose-Cestx__L.cjs.map +0 -1
  35. package/dist/gpu-dispose-gTGxGTL4.js +0 -2
  36. package/dist/gpu-dispose-gTGxGTL4.js.map +0 -1
  37. package/dist/gpu-ownership-DcHWbATk.js +0 -2
  38. package/dist/gpu-ownership-DcHWbATk.js.map +0 -1
  39. package/dist/gpu-ownership-ilj3JEdn.cjs +0 -2
  40. package/dist/gpu-ownership-ilj3JEdn.cjs.map +0 -1
  41. package/dist/merged-draw-DXJK-rdo.js +0 -2
  42. package/dist/merged-draw-DXJK-rdo.js.map +0 -1
  43. package/dist/merged-draw-oKAKlXCQ.cjs +0 -2
  44. package/dist/merged-draw-oKAKlXCQ.cjs.map +0 -1
package/dist/parse.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as MaterialAppearanceOptions } from "./types-P5PyfYYE.cjs";
1
+ import { o as MaterialAppearanceOptions } from "./types-DW_qU4-Y.cjs";
2
2
  import * as THREE from "three";
3
3
  /** Structurally, not nominally, typed as `@selvajs/solve/client`'s `MeshPolicy<THREE.Object3D>` — avoids a dependency on solve. */
4
4
  export declare const meshPolicy: {
@@ -83,6 +83,12 @@ interface SerializableMaterial {
83
83
  normalMap?: string;
84
84
  /** Wins over the look's `envMapIntensity` (except in looks that override materials). */
85
85
  envMapIntensity?: number;
86
+ /** Hex colour the surface emits. Omitted: no emission. */
87
+ emissive?: string;
88
+ /** Omitted: 1. Above 1 it blooms in looks with bloom. */
89
+ emissiveIntensity?: number;
90
+ /** Light the surface casts in the night look, in candela-scaled units. Omitted: scaled to the model. */
91
+ emissiveLight?: number;
86
92
  /** Omitted: no coat. */
87
93
  clearcoat?: number;
88
94
  clearcoatRoughness?: number;
@@ -99,7 +105,7 @@ interface SerializableMaterial {
99
105
  */
100
106
  mapSize?: number;
101
107
  /** Procedural scratch fibres along the grain, from UVs in mm. */
102
- finish?: 'brushed' | 'rolled';
108
+ finish?: 'brushed' | 'rolled' | 'wood' | 'concrete' | 'plaster' | 'brick' | 'corten';
103
109
  /** Scales the finish's streaks; 0 draws none. Omitted: 1. */
104
110
  finishStrength?: number;
105
111
  /** Light passing through (glass); unlike `opacity` it keeps reflections. */
package/dist/parse.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as MaterialAppearanceOptions } from "./types-P5PyfYYE.js";
1
+ import { o as MaterialAppearanceOptions } from "./types-DW_qU4-Y.js";
2
2
  import * as THREE from "three";
3
3
  /** Structurally, not nominally, typed as `@selvajs/solve/client`'s `MeshPolicy<THREE.Object3D>` — avoids a dependency on solve. */
4
4
  export declare const meshPolicy: {
@@ -83,6 +83,12 @@ interface SerializableMaterial {
83
83
  normalMap?: string;
84
84
  /** Wins over the look's `envMapIntensity` (except in looks that override materials). */
85
85
  envMapIntensity?: number;
86
+ /** Hex colour the surface emits. Omitted: no emission. */
87
+ emissive?: string;
88
+ /** Omitted: 1. Above 1 it blooms in looks with bloom. */
89
+ emissiveIntensity?: number;
90
+ /** Light the surface casts in the night look, in candela-scaled units. Omitted: scaled to the model. */
91
+ emissiveLight?: number;
86
92
  /** Omitted: no coat. */
87
93
  clearcoat?: number;
88
94
  clearcoatRoughness?: number;
@@ -99,7 +105,7 @@ interface SerializableMaterial {
99
105
  */
100
106
  mapSize?: number;
101
107
  /** Procedural scratch fibres along the grain, from UVs in mm. */
102
- finish?: 'brushed' | 'rolled';
108
+ finish?: 'brushed' | 'rolled' | 'wood' | 'concrete' | 'plaster' | 'brick' | 'corten';
103
109
  /** Scales the finish's streaks; 0 draws none. Omitted: 1. */
104
110
  finishStrength?: number;
105
111
  /** Light passing through (glass); unlike `opacity` it keeps reflections. */