monowind 0.2.13 → 0.3.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.
@@ -1 +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"}
1
+ {"version":3,"file":"animate.d.ts","sourceRoot":"","sources":["../src/animate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AA6BH;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,mBAAmB,GAAG,MAAM,CAgC3F;AAED;;;;;;;qDAOqD;AACrD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CA2BhE;AAED,wBAAgB,yBAAyB,IAAI,OAAO,CASnD"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Keyframe animations sampled like transitions (specs/animations.md):
3
+ * a light element's running CSS animations, read through
4
+ * `getAnimations()`, classified by the properties their keyframes
5
+ * touch into what a frame must do to show them.
6
+ */
7
+ import type { LayoutNode } from "./types.ts";
8
+ /** What a frame does for an element's running animations: `box`
9
+ * places its layer's box again from the computed effects; `paint`
10
+ * resamples its live paint-only properties into its node and
11
+ * repaints the last layout; `layout` re-lays-out, which reads every
12
+ * animated value under `[measuring]`. */
13
+ export type AnimationPath = "box" | "paint" | "layout";
14
+ /** The properties of `el`'s running CSS animations, camel-cased as
15
+ * keyframes name them; empty without one, or where the platform has
16
+ * no `getAnimations`. With the computed style at hand — a measure
17
+ * pass's read — an `animation-name` of none skips the call, and an
18
+ * animating element is noted for its host. */
19
+ export declare function animatedProperties(el: Element, cs?: CSSStyleDeclaration): Set<string>;
20
+ /** The elements a pass found animating inside `host`, once each. */
21
+ export declare function drainAnimated(host: Element): Element[];
22
+ /** The path for a set of animated properties on an element's layout
23
+ * node (null for an inline element); null with nothing animated. A
24
+ * `color` repaints only on a leaf without inline elements, since the
25
+ * children's and the inline runs' colors are snapshots of what they
26
+ * inherited; a border color only off a collapsed table, whose lattice
27
+ * took its colors at layout. */
28
+ export declare function animationPath(properties: Set<string>, node: LayoutNode | null): AnimationPath | null;
29
+ /** Whether `el` animates a layer effect, for the read: a running
30
+ * animation or transition of one keeps the element a layer root
31
+ * through its identity frames, a transition's first among them. A
32
+ * `transition-duration` of zero skips the call. */
33
+ export declare function animatesEffect(el: Element, cs: CSSStyleDeclaration): boolean;
34
+ /** Whether `el` animates its background: its value is the browser's,
35
+ * read as it is. */
36
+ export declare function animatesBackground(el: Element, cs: CSSStyleDeclaration): boolean;
37
+ /** The layout node of an element, found once per layout: the
38
+ * element's own, an anonymous run of its text left to it. */
39
+ export declare function nodeIndex(root: LayoutNode): Map<Element, LayoutNode>;
40
+ //# sourceMappingURL=animation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../src/animation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;yCAIyC;AACzC,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;AA2BvD;;;;8CAI8C;AAC9C,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,mBAAmB,GAAG,GAAG,CAAC,MAAM,CAAC,CAarF;AAED,oEAAoE;AACpE,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,EAAE,CAQtD;AAED;;;;;gCAKgC;AAChC,wBAAgB,aAAa,CAC3B,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,EACvB,IAAI,EAAE,UAAU,GAAG,IAAI,GACtB,aAAa,GAAG,IAAI,CAYtB;AAED;;;mDAGmD;AACnD,wBAAgB,cAAc,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,mBAAmB,GAAG,OAAO,CAQ5E;AAED;oBACoB;AACpB,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,mBAAmB,GAAG,OAAO,CAEhF;AAED;6DAC6D;AAC7D,wBAAgB,SAAS,CAAC,IAAI,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAQpE"}