@vitreajs/vitrea 0.6.0 → 0.8.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
@@ -508,6 +508,45 @@ interface GlassGroupState {
508
508
  * through.
509
509
  */
510
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";
524
+ /**
525
+ * Which element the CSS tier hung this group's OUTER SHADOW on (W18 G1;
526
+ * charter Decision Log 2 (1)).
527
+ *
528
+ * The tier drew the shadow as a `box-shadow` on the host until W18, and the
529
+ * host's three filter layers are that host's children — so every surface blurred
530
+ * its own shadow into its own body and a later host blurred its earlier
531
+ * neighbours' shadows in too, worth +0.0032 to +0.0096 of this tier's interior
532
+ * level where the renderer moved by 0.00000 (claims §5.77 §3). The shadow now
533
+ * leaves the sampled backdrop by one of two carriers, and which one a group got
534
+ * is a property of the page rather than of the material, so it is reported here
535
+ * for the same reason `cssBody` and `cssTint` are: a capture cell, a readout and
536
+ * a test must read what actually drew.
537
+ *
538
+ * `layer` is the per-surface carrier: the shadow joins L3's `box-shadow` list,
539
+ * which paints after L1 and L2, so a surface never samples its own shadow.
540
+ * `group` is the per-group one: every member's shadow is painted after every
541
+ * member's filter layers by one child per member inside the group's last-painted
542
+ * host, clipped out of every member's body. `host` is the fallback the page
543
+ * forces — a host whose own `overflow` clips its children would clip a shadow on
544
+ * L3 away entirely, so there the shadow stays where it was and the sampling with
545
+ * it. A group whose members did not all land on the same carrier reports the
546
+ * weakest of them, because the field is a statement about the group's whole
547
+ * interior. Absent on a WebGPU-tier group and before the first frame resolves one.
548
+ */
549
+ readonly cssShadow?: "layer" | "group" | "host";
511
550
  }
512
551
  declare function isHealthy(state: GlassGroupState): boolean;
513
552
 
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-OHNXYEZP.js');
1095
+ return import('./dist-PY6GF4HA.js');
1096
1096
  }
1097
1097
  async function loadWebGPURenderer() {
1098
1098
  const { createWebGPURenderer } = await loadWebGPURendererModule();