@algorisys/tinyfly 0.78.0 → 0.79.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 +7 -5
- package/lib/addons/characters.js +1139 -793
- package/lib/browser/tinyfly.iife.js +4 -4
- package/lib/browser/tinyfly.js +2235 -1889
- package/lib/browser/tinyfly.umd.js +4 -4
- package/lib/types/characters/character.d.ts +19 -0
- package/lib/types/characters/hand.d.ts +57 -4
- package/lib/types/characters/hands/draw-cartoon-hand.d.ts +39 -0
- package/lib/types/characters/hands/hand-rig.d.ts +116 -0
- package/lib/types/characters/hands/index.d.ts +3 -0
- package/lib/types/characters/index.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,8 +52,10 @@ A lightweight, API-driven animation engine and visual editor for creating high-p
|
|
|
52
52
|
- **Characters** - A poseable stick figure (`@algorisys/tinyfly/characters`): named poses, facial expressions (brows, eyes that widen, close and look around, mouth shapes), squash and stretch, rubber-hose limbs, blending, walk cycles and talking, all driven by timeline tracks. **Characters v2**: one skeleton in 3D drawn flat, turning front to side to back, resting on whatever touches the ground, reaching for points, in clean, pencil or silhouette looks, and a 🧍 Character element in the editor you pose and keyframe
|
|
53
53
|
- **Maps** - Animated maps on OpenStreetMap tiles or an offline world outline (also in pencil): the camera flies in, pins drop, routes draw themselves while a marker travels them; a 🗺 Map element in the editor with a one-click trip
|
|
54
54
|
- **Pencil sketch style** - Hand-drawn strokes with line boil (`sketch` style, `sketchPen`) for a pencil-test, Pencilmation-like look, on the stick figure and on canvas rect / circle / line / path shapes (also from the editor's Properties panel); a `drawOn` track draws any of those shapes on; the wobble is seeded by time, so renders stay deterministic
|
|
55
|
-
- **The drawing hand** - `drawnPathTarget()` draws a sketched stroke on from a `draw` track while a cartoon hand holds the pencil at its end; the same hand can hold the eraser
|
|
55
|
+
- **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
|
|
56
56
|
- **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
|
|
57
|
+
- **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)
|
|
58
|
+
- **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
|
|
57
59
|
- **Captions** - `toSRT()` / `toWebVTT()` from narration cues or from a timeline's markers
|
|
58
60
|
|
|
59
61
|
### Render Adapters
|
|
@@ -222,7 +224,7 @@ GSAP-shaped functions at the top level. Teaching embeds are included: add
|
|
|
222
224
|
itself.
|
|
223
225
|
|
|
224
226
|
```html
|
|
225
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
227
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.79.0/cdn/tinyfly.iife.js"></script>
|
|
226
228
|
<script>
|
|
227
229
|
tinyfly.to('.box', { x: 200, rotate: 90, duration: 1, ease: 'power2.out' })
|
|
228
230
|
|
|
@@ -258,7 +260,7 @@ A teaching figure needs no code at all:
|
|
|
258
260
|
<script type="application/json" data-tinyfly-timeline>{ …timeline JSON with markers… }</script>
|
|
259
261
|
<figcaption>Appending to a full slice</figcaption>
|
|
260
262
|
</figure>
|
|
261
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
263
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.79.0/cdn/tinyfly.iife.js" data-tinyfly-auto></script>
|
|
262
264
|
```
|
|
263
265
|
|
|
264
266
|
See [Teaching Animations](docs/teaching.md).
|
|
@@ -357,7 +359,7 @@ Without a build step, the player bundle puts the same functions on a `tinyfly` g
|
|
|
357
359
|
<div data-tinyfly="box" style="width: 60px; height: 60px; background: #4a9eff;"></div>
|
|
358
360
|
</div>
|
|
359
361
|
|
|
360
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
362
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.79.0/cdn/tinyfly-player.iife.js"></script>
|
|
361
363
|
<script>
|
|
362
364
|
tinyfly.play('#animation', './animation.json', { loop: -1 })
|
|
363
365
|
</script>
|
|
@@ -466,7 +468,7 @@ Or skip the code entirely with declarative embeds (see [Teaching Animations](doc
|
|
|
466
468
|
<svg viewBox="0 0 720 200">…</svg>
|
|
467
469
|
<script type="application/json" data-tinyfly-timeline>{ …timeline JSON… }</script>
|
|
468
470
|
</figure>
|
|
469
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
471
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.79.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
470
472
|
```
|
|
471
473
|
|
|
472
474
|
### Audio / Video Sync
|