@algorisys/tinyfly 0.67.1 → 0.68.1

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.
@@ -115,7 +115,7 @@ export declare class LiveTimeline {
115
115
  private finishedThisFrame;
116
116
  /** Set by `reverse()`: arriving at the start is a reverse completion */
117
117
  private backwards;
118
- constructor(stage: Stage, options?: LiveTimelineOptions);
118
+ constructor(stage: Stage, timelineOptions?: LiveTimelineOptions);
119
119
  /** The engine timeline. */
120
120
  get timeline(): Timeline;
121
121
  /** The scroll driver behind `scrollTrigger`, once attached (after a microtask). */
@@ -53,6 +53,12 @@ export interface StageOptions {
53
53
  scheduler?: FrameScheduler;
54
54
  /** Document used to resolve selector targets (default: the global document) */
55
55
  root?: ParentNode;
56
+ /**
57
+ * Called with a message when a live tween on this stage can't do what it was asked
58
+ * (no elements matched, drawSVG on a non-shape, spring on a colour…). A timeline's
59
+ * own `onWarning` takes precedence.
60
+ */
61
+ onWarning?: (message: string) => void;
56
62
  }
57
63
  interface ActiveEntry {
58
64
  onUpdate?: () => void;
@@ -61,6 +67,8 @@ export declare class Stage implements ContextHost {
61
67
  private readonly adapter;
62
68
  private readonly scheduler;
63
69
  private readonly rootOption?;
70
+ /** Where live timelines on this stage report warnings, unless they have their own `onWarning` */
71
+ readonly onWarning?: (message: string) => void;
64
72
  /** Element → engine target name. The engine only ever sees names. */
65
73
  private names;
66
74
  private readonly elements;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algorisys/tinyfly",
3
- "version": "0.67.1",
3
+ "version": "0.68.1",
4
4
  "type": "module",
5
5
  "description": "Lightweight, API-driven animation engine and editor. The engine is framework-agnostic and runs in browsers, Web Workers, and Node.",
6
6
  "license": "MIT",