@strategicprojects/rpic 0.8.1 → 0.9.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/index.d.ts CHANGED
@@ -2,10 +2,27 @@
2
2
 
3
3
  export interface Anim {
4
4
  id: string;
5
+ /** "fade" | "pop" | "draw" | "slide" | "move" | "highlight" | "morph" */
5
6
  effect: string;
6
7
  /** absolute start time in seconds */
7
8
  start: number;
8
9
  duration: number;
10
+ /** replay count; -1 loops forever. Present only when set. */
11
+ repeat?: number;
12
+ /** reverse on each repeat. Present only when set. */
13
+ yoyo?: boolean;
14
+ /** GSAP easing name overriding the effect's default. Present only when set. */
15
+ ease?: string;
16
+ /** id of the object whose path a `move` follows. Present only for `move`. */
17
+ path?: string;
18
+ /** target colour for `highlight` (`#rrggbb` or a name). Present only when set. */
19
+ color?: string;
20
+ /** play the effect as an exit (reverse) instead of an entrance. */
21
+ out?: boolean;
22
+ /** entry direction for `slide` ("up" | "down" | "left" | "right"). */
23
+ from?: string;
24
+ /** id of the shape a `morph` tweens into. Present only for `morph`. */
25
+ morph?: string;
9
26
  }
10
27
 
11
28
  export interface Diagnostic {
@@ -51,6 +68,11 @@ export interface Bundle {
51
68
  warnings: Diagnostic[];
52
69
  /** per-object geometry, index-aligned with the `<g id="sN">` groups */
53
70
  objects: ObjectGeometry[];
71
+ /**
72
+ * `true` when the source used `animate scroll`, hinting the host to scrub
73
+ * the timeline on scroll rather than autoplay. Present only when set.
74
+ */
75
+ scroll?: boolean;
54
76
  }
55
77
 
56
78
  export interface CompileError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strategicprojects/rpic",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "The pic graphics language compiled to SVG with animation manifests, via WebAssembly. Browser + Node.",
5
5
  "type": "module",
6
6
  "main": "./index.js",
Binary file
Binary file