@algorisys/tinyfly 0.88.0 → 0.89.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/characters.js +1878 -1449
- package/lib/browser/tinyfly.iife.js +4 -4
- package/lib/browser/tinyfly.js +3188 -2753
- package/lib/browser/tinyfly.umd.js +4 -4
- package/lib/engine/tinyfly-engine.js +82 -76
- package/lib/engine/tinyfly-engine.umd.cjs +2 -2
- package/lib/headless/headless.js +6 -4
- 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 +10 -0
- package/lib/types/characters/acting/rigs.d.ts +9 -0
- package/lib/types/characters/character.d.ts +7 -0
- package/lib/types/characters/index.d.ts +1 -0
- package/lib/types/characters/stick-figure.d.ts +7 -0
- package/lib/types/engine/core/clock.d.ts +7 -0
- package/lib/types/headless/video-scene.d.ts +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,6 +61,7 @@ A lightweight, API-driven animation engine and visual editor for creating high-p
|
|
|
61
61
|
- **The drawing hand** - `drawnPathTarget()` draws a sketched stroke on from a `draw` track while a cartoon hand holds the pencil at its end in a writing grip; the same hand can hold the eraser. `handAt()` gives one hand for a whole scene: it follows each stroke, lifts and glides to the next, and enters and leaves the page
|
|
62
62
|
- **Erasing** - An eraser rubs out part of a target (`erasable()`, animated by an `erase` track) or of anything drawn in code (`withErased()`); clip-based, so it works in the browser and headless alike
|
|
63
63
|
- **Cartoon hands** - A hand rig in 3D, drawn flat: thumb and fingers posed by numbers (`index.curl`, `thumb.across`, `spread`, `turn`), ready-made shapes (fist, point, thumbs-up, peace, OK, pinch, wave, pencil grip…), left and right, four or five fingers, in every look; the animator's hand and (opt-in) character gloves are built on it. See [docs/cartoon-hands.md](docs/cartoon-hands.md)
|
|
64
|
+
- **Cartoon acting** - `actTracks()` turns the same key poses into acted motion: wind-ups, overshoot that settles or wobbles, joints that overlap (hips lead, wrists drag), eyes that dart ahead and blink on head turns, moving holds and jump squash, in `full`, `snappy` or `limited` styles. Gags come as data (`gag('take')`, double take, wind-up, tremble). It also adds speed lines from earlier frames (`drawStickSmear()`), dust puffs, impact stars, and drawing on twos for video (`drawingRate`). Output is plain keyframes. See [docs/acting.md](docs/acting.md)
|
|
64
65
|
- **Pencil story example** - `examples/pencil-story-hindi/index.html` tells a short Hindi story (प्यासा राहगीर, the thirsty traveller) Pencilmation-style with the browser bundle alone: the hand draws the scene and writes the narration, then rubs out the pot
|
|
65
66
|
- **Captions** - `toSRT()` / `toWebVTT()` from narration cues or from a timeline's markers
|
|
66
67
|
|
|
@@ -235,7 +236,7 @@ GSAP-shaped functions at the top level. Teaching embeds are included: add
|
|
|
235
236
|
itself.
|
|
236
237
|
|
|
237
238
|
```html
|
|
238
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
239
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.89.0/cdn/tinyfly.iife.js"></script>
|
|
239
240
|
<script>
|
|
240
241
|
tinyfly.to('.box', { x: 200, rotate: 90, duration: 1, ease: 'power2.out' })
|
|
241
242
|
|
|
@@ -271,7 +272,7 @@ A teaching figure needs no code at all:
|
|
|
271
272
|
<script type="application/json" data-tinyfly-timeline>{ …timeline JSON with markers… }</script>
|
|
272
273
|
<figcaption>Appending to a full slice</figcaption>
|
|
273
274
|
</figure>
|
|
274
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
275
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.89.0/cdn/tinyfly.iife.js" data-tinyfly-auto></script>
|
|
275
276
|
```
|
|
276
277
|
|
|
277
278
|
See [Teaching Animations](docs/teaching.md).
|
|
@@ -370,7 +371,7 @@ Without a build step, the player bundle puts the same functions on a `tinyfly` g
|
|
|
370
371
|
<div data-tinyfly="box" style="width: 60px; height: 60px; background: #4a9eff;"></div>
|
|
371
372
|
</div>
|
|
372
373
|
|
|
373
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
374
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.89.0/cdn/tinyfly-player.iife.js"></script>
|
|
374
375
|
<script>
|
|
375
376
|
tinyfly.play('#animation', './animation.json', { loop: -1 })
|
|
376
377
|
</script>
|
|
@@ -479,7 +480,7 @@ Or skip the code entirely with declarative embeds (see [Teaching Animations](doc
|
|
|
479
480
|
<svg viewBox="0 0 720 200">…</svg>
|
|
480
481
|
<script type="application/json" data-tinyfly-timeline>{ …timeline JSON… }</script>
|
|
481
482
|
</figure>
|
|
482
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
483
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.89.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
483
484
|
```
|
|
484
485
|
|
|
485
486
|
### Audio / Video Sync
|