monowind 0.1.7 → 0.1.8

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.
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Engine-synthesized transitions for lock-owned properties
3
+ * (specs/cell-model.md "Animation"). `background-color` has no native
4
+ * timeline to sample — the companion locks the light DOM's bg
5
+ * transparent so it can't cover the grid, so the authored value only
6
+ * exists in measuring snapshots. When a read sees the value change on
7
+ * an element whose authored `transition` covers background-color, the
8
+ * engine runs the fade itself: same duration, delay, and easing,
9
+ * interpolating in OKLAB (CSS's interpolation space for non-legacy
10
+ * pairs; legacy rgb pairs interpolate in sRGB, per css-color-4).
11
+ *
12
+ * Two-phase because of the measuring override: reads happen under
13
+ * `[measuring]`, where the companion forces `transition-property` to
14
+ * the sampled set — so the CHANGE is recorded during the read
15
+ * (`trackBackground`), and the authored config is resolved at the end
16
+ * of the layout pass (`resolvePendingTransitions`), after the settling
17
+ * flush restores the authored `transition-property` list.
18
+ */
19
+ /**
20
+ * Called from the style reader with the freshly read background-color
21
+ * (empty string when unset). Returns the value layout should USE: the
22
+ * in-flight interpolation when a synthesized transition is running,
23
+ * the previous value when a change was just detected on an element
24
+ * that MIGHT transition (the fade or a corrective repaint follows next
25
+ * frame — see resolvePendingTransitions), or the value itself. The
26
+ * might-transition check reads `transition-duration`, which the
27
+ * measuring override does NOT mask — an element with no transition at
28
+ * all must paint its new background THIS pass, never a stale one.
29
+ */
30
+ export declare function trackBackground(el: Element, value: string, cs: CSSStyleDeclaration): string;
31
+ /** Arm this host's pending fades — call with `[measuring]` and
32
+ * `[settling]` OFF (and every lock snap-back already committed under
33
+ * the mask), so the authored `transition-property` list is readable
34
+ * and the reads here start nothing. Changes whose config doesn't cover
35
+ * background-color snap: they were painted STALE this pass
36
+ * (trackBackground returned the previous value), so the caller must
37
+ * schedule one corrective relayout whenever this returns true. Other
38
+ * hosts' pends stay queued for their own layouts. */
39
+ export declare function resolvePendingTransitions(host: Element): boolean;
40
+ export declare function hasSynthesizedTransitions(): boolean;
41
+ //# sourceMappingURL=animate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animate.d.ts","sourceRoot":"","sources":["../src/animate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AA2BH;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,mBAAmB,GAAG,MAAM,CA0B3F;AAED;;;;;;;qDAOqD;AACrD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CA2BhE;AAED,wBAAgB,yBAAyB,IAAI,OAAO,CASnD"}