@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.
- package/README.md +5 -4
- package/lib/addons/adapters.js +208 -177
- package/lib/addons/characters.js +2215 -1493
- package/lib/browser/tinyfly.iife.js +4 -4
- package/lib/browser/tinyfly.js +4944 -4128
- package/lib/browser/tinyfly.umd.js +4 -4
- package/lib/engine/tinyfly-engine.js +828 -765
- package/lib/engine/tinyfly-engine.umd.cjs +2 -2
- package/lib/headless/headless.js +45 -7
- package/lib/types/adapters/canvas/camera.d.ts +46 -0
- package/lib/types/adapters/canvas/index.d.ts +1 -0
- package/lib/types/browser/index.d.ts +2 -0
- package/lib/types/characters/acting/act-tracks.d.ts +28 -0
- package/lib/types/characters/acting/acting.d.ts +187 -0
- package/lib/types/characters/acting/effects.d.ts +65 -0
- package/lib/types/characters/acting/gags.d.ts +54 -0
- package/lib/types/characters/acting/index.d.ts +12 -0
- package/lib/types/characters/acting/lip-sync.d.ts +115 -0
- package/lib/types/characters/acting/rigs.d.ts +9 -0
- package/lib/types/characters/acting/script.d.ts +83 -0
- package/lib/types/characters/character.d.ts +7 -0
- package/lib/types/characters/gaits.d.ts +141 -0
- package/lib/types/characters/index.d.ts +2 -0
- package/lib/types/characters/stick-figure.d.ts +22 -0
- package/lib/types/engine/authoring/camera-shots.d.ts +73 -0
- package/lib/types/engine/authoring/index.d.ts +1 -0
- package/lib/types/engine/core/clock.d.ts +7 -0
- package/lib/types/headless/video-scene.d.ts +21 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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",
|