@algorisys/tinyfly 0.88.0 → 0.90.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.
@@ -20,6 +20,22 @@ export interface VideoScene {
20
20
  height: number;
21
21
  /** Frames per second (default 30) */
22
22
  fps?: number;
23
+ /**
24
+ * Drawings per second for the timeline's animation: 12 holds every pose for
25
+ * two frames of 24 fps ("on twos"), 8 for three ("on threes"), as hand-drawn
26
+ * animation is timed. The frame rate (and `draw`, `background`) stays as set,
27
+ * so camera moves drawn there can stay smooth. Default: every frame.
28
+ */
29
+ drawingRate?: number;
30
+ /**
31
+ * See the scene through a camera: `true` reads the tracks of the target
32
+ * named `Camera` (or name another): `x`, `y` pan, `scale` zooms and `rotate`
33
+ * rolls about the stage centre, and `shakeX`, `shakeY`, `shakeRotate` add a
34
+ * shake on top. `cameraTracks()` writes them from shots. The background,
35
+ * the targets and `draw` are all seen through it; a colour background fills
36
+ * the whole frame.
37
+ */
38
+ camera?: boolean | string;
23
39
  /** Length in ms (default: the timeline's duration) */
24
40
  duration?: number;
25
41
  /** Animation data; its markers drive stills and captions */
@@ -33,6 +49,11 @@ export interface VideoScene {
33
49
  background?: string | DrawFunction;
34
50
  /** Immediate-mode drawing, called every frame after the targets */
35
51
  draw?: DrawFunction;
52
+ /**
53
+ * Drawn last, in screen space: not seen through the `camera` (captions,
54
+ * titles, a frame border). Without a camera it is the same as `draw`.
55
+ */
56
+ overlay?: DrawFunction;
36
57
  /**
37
58
  * Glow around what is bright, added over each finished frame: `true` for
38
59
  * the defaults, or options (threshold, strength, radius in scene px…).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algorisys/tinyfly",
3
- "version": "0.88.0",
3
+ "version": "0.90.0",
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",