@vitreajs/vitrea 0.16.0 → 0.17.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/dist/index.d.ts CHANGED
@@ -2127,6 +2127,11 @@ interface MaterialOuterShadow {
2127
2127
  * Units: CSS px for distance, linear light for colour, viewport coordinates with
2128
2128
  * y pointing down for direction.
2129
2129
  */
2130
+ type BackdropToneKnotRow = readonly [number, number, number] | readonly [number, number, number, number];
2131
+ interface MaterialOcclusionLiftByPolicy {
2132
+ readonly reduceTransparency: number;
2133
+ readonly increaseContrast: number;
2134
+ }
2130
2135
  interface MaterialProfile {
2131
2136
  /** Per-variant optics. `clear` is persistently more transparent than `regular`. */
2132
2137
  readonly optics: Readonly<Record<MaterialVariant, MaterialOptics>>;
@@ -2881,6 +2886,8 @@ interface MaterialProfile {
2881
2886
  * both directions by `packages/calibration/test/tier-coherence.test.ts`.
2882
2887
  */
2883
2888
  readonly increasedOcclusionLift: number;
2889
+ /** Optional policy-specific levels. Absent keeps the shared lift exactly. */
2890
+ readonly increasedOcclusionLiftByPolicy?: MaterialOcclusionLiftByPolicy;
2884
2891
  readonly strongBorderRim: MaterialRim;
2885
2892
  readonly reducedTintAdaptation: number;
2886
2893
  /**
@@ -3161,9 +3168,9 @@ interface MaterialProfile {
3161
3168
  * extreme-dark region stays with the collapse constants that were fitted
3162
3169
  * on it.
3163
3170
  */
3164
- readonly backdropToneAnchorX: readonly [number, number, number];
3165
- readonly backdropToneResponseThin: readonly [number, number, number];
3166
- readonly backdropToneResponseThick: readonly [number, number, number];
3171
+ readonly backdropToneAnchorX: BackdropToneKnotRow;
3172
+ readonly backdropToneResponseThin: BackdropToneKnotRow;
3173
+ readonly backdropToneResponseThick: BackdropToneKnotRow;
3167
3174
  /**
3168
3175
  * How much authority the response law has in THIS profile, 0…1 (W9).
3169
3176
  *
@@ -3270,6 +3277,7 @@ interface MaterialProfilePatch {
3270
3277
  readonly lensOvalizationSpanMax?: number;
3271
3278
  readonly reducedTransparencyFrost?: number;
3272
3279
  readonly increasedOcclusionLift?: number;
3280
+ readonly increasedOcclusionLiftByPolicy?: Readonly<Partial<MaterialOcclusionLiftByPolicy>>;
3273
3281
  readonly strongBorderRim?: Readonly<Partial<MaterialRim>>;
3274
3282
  readonly reducedTintAdaptation?: number;
3275
3283
  readonly tintShadeDark?: number;
@@ -3286,9 +3294,9 @@ interface MaterialProfilePatch {
3286
3294
  readonly rimCollapsed?: number;
3287
3295
  readonly rimCollapsedTinted?: number;
3288
3296
  readonly rimTintChroma?: number;
3289
- readonly backdropToneAnchorX?: readonly [number, number, number];
3290
- readonly backdropToneResponseThin?: readonly [number, number, number];
3291
- readonly backdropToneResponseThick?: readonly [number, number, number];
3297
+ readonly backdropToneAnchorX?: BackdropToneKnotRow;
3298
+ readonly backdropToneResponseThin?: BackdropToneKnotRow;
3299
+ readonly backdropToneResponseThick?: BackdropToneKnotRow;
3292
3300
  readonly backdropToneResponseStrength?: number;
3293
3301
  readonly outerShadow?: Readonly<Partial<MaterialOuterShadow>>;
3294
3302
  readonly lightDirection?: readonly [number, number];
package/dist/index.js CHANGED
@@ -1092,7 +1092,7 @@ function isHealthy(state) {
1092
1092
 
1093
1093
  // src/renderer-seam.ts
1094
1094
  async function loadWebGPURendererModule() {
1095
- return import('./dist-C43H3RKY.js');
1095
+ return import('./dist-T7PRMUM4.js');
1096
1096
  }
1097
1097
  async function loadWebGPURenderer() {
1098
1098
  const { createWebGPURenderer } = await loadWebGPURendererModule();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitreajs/vitrea",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Framework-agnostic Liquid Glass material runtime: scene model, capability resolution, material policy, accessibility policy.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/SSFSKIM/designer",