@weasel-js/animator 1.13.0-rc.0 → 1.14.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.
@@ -737,15 +737,6 @@ interface DecayOptions<T> {
737
737
  /** Names this animation in {@link AnimatorEvent}s and `animator.live()`. */
738
738
  label?: string;
739
739
  }
740
- /** Options for `useAnimator`. Everything here is an injection seam for tests;
741
- * the defaults are the real clock and rAF. */
742
- interface UseAnimatorOptions {
743
- /** Optional clock injection for tests. Returns ms since some epoch. */
744
- now?: () => number;
745
- /** Optional rAF / cAF injection for tests. Defaults to window.requestAnimationFrame. */
746
- requestFrame?: (cb: (t: number) => void) => number;
747
- cancelFrame?: (handle: number) => void;
748
- }
749
740
  /**
750
741
  * Owns every running animation on a canvas and drives them from one rAF loop.
751
742
  * Beyond the primitives (`tween`, `spring`, `decay`, `physics`) it offers
@@ -967,4 +958,4 @@ interface TweenLoopOptions<T> {
967
958
  label?: string;
968
959
  }
969
960
 
970
- export { type TargetTableOptions as $, type Animator as A, type StaggerItemSpringOptions as B, type ColorOverride as C, type DecayOptions as D, type EventBooking as E, type StaggerItemTweenOptions as F, type StaggerOptions as G, type HoldHandle as H, type Interpolate as I, type StaggerPerItem as J, type Keyframe as K, type LiveAnimation as L, type StaggerSpringOptions as M, type NestedTimeline as N, type StaggerTargetSpringOptions as O, type PhysicsHandle as P, type StaggerTargetTweenOptions as Q, type RowsHoldHandle as R, type SampledTrack as S, type Target as T, type StaggerTweenOptions as U, type VertexColorChannel as V, type TargetDecayOptions as W, type TargetOptions as X, type TargetPhysicsOptions as Y, type TargetSpringOptions as Z, type TargetTable as _, type AnimationHandle as a, type TargetTweenOptions as a0, type TimelineClock as a1, type TimelineHandle as a2, type TimelineOptions as a3, type TimelineTrack as a4, type Track as a5, type TweenLoopOptions as a6, type TweenOptions as a7, type UseAnimatorOptions as a8, createTarget as a9, createTargetTable as aa, type TimelineEvent as b, type TargetAxes as c, type AnimationInfo as d, type AnimationKind as e, type AnimatorEvent as f, type AnimatorListener as g, type AxisBuffer as h, type AxisName as i, type AxisRef as j, type ColorOverrideFn as k, ColorOverrideRegistry as l, type EventBookingHandle as m, type EventTrack as n, type HoldOptions as o, type HoldRowsOptions as p, type InterpolatorFactory as q, type LoopFactory as r, type LoopOptions as s, type Naming as t, type PhysicsOptions as u, type ShownArray as v, type SpringOptions as w, type StaggerBuilder as x, type StaggerDelay as y, type StaggerFactory as z };
961
+ export { type TargetTableOptions as $, type Animator as A, type StaggerItemSpringOptions as B, type ColorOverride as C, type DecayOptions as D, type EventBooking as E, type StaggerItemTweenOptions as F, type StaggerOptions as G, type HoldHandle as H, type Interpolate as I, type StaggerPerItem as J, type Keyframe as K, type LiveAnimation as L, type StaggerSpringOptions as M, type NestedTimeline as N, type StaggerTargetSpringOptions as O, type PhysicsHandle as P, type StaggerTargetTweenOptions as Q, type RowsHoldHandle as R, type SampledTrack as S, type Target as T, type StaggerTweenOptions as U, type VertexColorChannel as V, type TargetDecayOptions as W, type TargetOptions as X, type TargetPhysicsOptions as Y, type TargetSpringOptions as Z, type TargetTable as _, type AnimationHandle as a, type TargetTweenOptions as a0, type TimelineClock as a1, type TimelineHandle as a2, type TimelineOptions as a3, type TimelineTrack as a4, type Track as a5, type TweenLoopOptions as a6, type TweenOptions as a7, createTarget as a8, createTargetTable as a9, type TimelineEvent as b, type TargetAxes as c, type AnimationInfo as d, type AnimationKind as e, type AnimatorEvent as f, type AnimatorListener as g, type AxisBuffer as h, type AxisName as i, type AxisRef as j, type ColorOverrideFn as k, ColorOverrideRegistry as l, type EventBookingHandle as m, type EventTrack as n, type HoldOptions as o, type HoldRowsOptions as p, type InterpolatorFactory as q, type LoopFactory as r, type LoopOptions as s, type Naming as t, type PhysicsOptions as u, type ShownArray as v, type SpringOptions as w, type StaggerBuilder as x, type StaggerDelay as y, type StaggerFactory as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weasel-js/animator",
3
- "version": "1.13.0-rc.0",
3
+ "version": "1.14.0",
4
4
  "description": "The weasel animator: tweens, springs, holds, staggers, and timelines that combine on targets, run by one frame loop. Needs no scene; the root entry has no React, and the hook is under /react.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,10 +42,11 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@msb235/blits": "0.12.0",
45
- "@weasel-js/geom": "1.13.0-rc.0",
46
- "@weasel-js/paint": "1.13.0-rc.0",
47
- "@weasel-js/react": "1.13.0-rc.0",
48
- "@weasel-js/registry": "1.13.0-rc.0"
45
+ "@weasel-js/clock": "1.14.0",
46
+ "@weasel-js/geom": "1.14.0",
47
+ "@weasel-js/paint": "1.14.0",
48
+ "@weasel-js/react": "1.14.0",
49
+ "@weasel-js/registry": "1.14.0"
49
50
  },
50
51
  "peerDependencies": {
51
52
  "react": ">=18"