@vitreajs/vitrea 0.5.0 → 0.7.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
|
@@ -490,6 +490,37 @@ interface GlassGroupState {
|
|
|
490
490
|
readonly analysis: AnalysisQuality;
|
|
491
491
|
readonly health: GroupHealth;
|
|
492
492
|
readonly demotionReason?: DemotionReason;
|
|
493
|
+
/**
|
|
494
|
+
* Which body the CSS tier drew for this group, where the CSS tier is the one
|
|
495
|
+
* drawing (W16 G1).
|
|
496
|
+
*
|
|
497
|
+
* `two-layer` is the material: a sharp `backdrop-filter` and a heavy one over
|
|
498
|
+
* it, mixed by the renderer's own depth ramp. `collapsed` is the declared
|
|
499
|
+
* degradation the cost budget buys — the heavy layer folded into the single
|
|
500
|
+
* mixed σ this tier drew before W16 — and it is named here for the same reason
|
|
501
|
+
* every other field on this record is: a capture cell, a readout and a test
|
|
502
|
+
* must read what actually drew rather than what was asked for. Absent on a
|
|
503
|
+
* WebGPU-tier group, and on any group before the first frame has resolved one.
|
|
504
|
+
*
|
|
505
|
+
* Resolved by the platform rather than by core's resolver: the budget is a
|
|
506
|
+
* measurement of the root's total filtered area, which core cannot see. The
|
|
507
|
+
* platform folds it onto the state on the one function every consumer goes
|
|
508
|
+
* through.
|
|
509
|
+
*/
|
|
510
|
+
readonly cssBody?: "two-layer" | "collapsed";
|
|
511
|
+
/**
|
|
512
|
+
* Which form the CSS tier's TINT drew (W17 G1; charter Decision Log 4 (c)).
|
|
513
|
+
*
|
|
514
|
+
* `linear` is the exact one — an encoded overlay at the tier's floor alpha with
|
|
515
|
+
* the sharp layer's linear-light filter carrying the remainder, so the composite
|
|
516
|
+
* is the renderer's per pixel. `encoded` is W16's single `rgba()`, whose
|
|
517
|
+
* conversion is exact at one declared backdrop level, and the tier falls back to
|
|
518
|
+
* it where the linear-light filter chain's eight-bit intermediate is coarser
|
|
519
|
+
* than the page's own buffer — near black, where its quantum is 2 to 13 encoded
|
|
520
|
+
* codes. Reported for the same reason `cssBody` is: a readout and a capture cell
|
|
521
|
+
* have to be able to read which material drew rather than which was asked for.
|
|
522
|
+
*/
|
|
523
|
+
readonly cssTint?: "linear" | "encoded";
|
|
493
524
|
}
|
|
494
525
|
declare function isHealthy(state: GlassGroupState): boolean;
|
|
495
526
|
|
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-
|
|
1095
|
+
return import('./dist-PY6GF4HA.js');
|
|
1096
1096
|
}
|
|
1097
1097
|
async function loadWebGPURenderer() {
|
|
1098
1098
|
const { createWebGPURenderer } = await loadWebGPURendererModule();
|