@algorisys/tinyfly 0.79.0 → 0.81.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 +2467 -1343
- package/lib/browser/tinyfly.iife.js +4 -4
- package/lib/browser/tinyfly.js +4700 -3499
- package/lib/browser/tinyfly.umd.js +4 -4
- package/lib/engine/tinyfly-engine.js +874 -797
- package/lib/engine/tinyfly-engine.umd.cjs +2 -2
- package/lib/types/characters/acrobatics.d.ts +398 -0
- package/lib/types/characters/character.d.ts +8 -1
- package/lib/types/characters/dance.d.ts +196 -0
- package/lib/types/characters/index.d.ts +3 -0
- package/lib/types/characters/species/human.d.ts +4 -1
- package/lib/types/characters/stick-figure.d.ts +86 -4
- package/lib/types/characters/stick-to-human.d.ts +27 -0
- package/lib/types/engine/authoring/beats.d.ts +64 -0
- package/lib/types/engine/authoring/index.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,7 @@ A lightweight, API-driven animation engine and visual editor for creating high-p
|
|
|
50
50
|
- **Immediate mode too** - A scene's `background` and `draw(ctx, { time })` functions paint each frame directly, Cairo/Processing-style, and mix freely with timeline targets
|
|
51
51
|
- **Timing from narration** - `planNarration()` lays spoken lines out from their clip lengths (lead, gap, tail) into cues, scene spans and markers; `voiceNarration()` measures recorded clips with ffmpeg and writes the sample-aligned narration WAV
|
|
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
|
+
- **Dance and flips** - The stick figure dances disco, hip hop, breaking toprock, jazz, K-pop, Bollywood, Bhangra, Bharatanatyam (with mudras), the Charleston and tap (foot strikes as data, for tap sounds), and does front, back, layout, scissor and side flips, cartwheels, back handsprings, split leaps, toe touches and full splits. Wrists, ankles, foot turn-out, whole-body `spin` and `rise` are pose fields; moves are keyed in beats, so any tempo plays them; styles, grooves and routines are plain JSON (`danceFrame()`, `danceTracks()`, `flipPose()`, `flipTracks()`). In the editor a 🧍 Character dances from the playhead, in time with the music: an Audio element's tempo is detected (`detectTempo()`) or tapped, the timeline shows its beats and bars, and keyframes snap to them. See [docs/dance.md](docs/dance.md)
|
|
53
54
|
- **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
55
|
- **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
56
|
- **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
|
|
@@ -224,7 +225,7 @@ GSAP-shaped functions at the top level. Teaching embeds are included: add
|
|
|
224
225
|
itself.
|
|
225
226
|
|
|
226
227
|
```html
|
|
227
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
228
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.81.0/cdn/tinyfly.iife.js"></script>
|
|
228
229
|
<script>
|
|
229
230
|
tinyfly.to('.box', { x: 200, rotate: 90, duration: 1, ease: 'power2.out' })
|
|
230
231
|
|
|
@@ -260,7 +261,7 @@ A teaching figure needs no code at all:
|
|
|
260
261
|
<script type="application/json" data-tinyfly-timeline>{ …timeline JSON with markers… }</script>
|
|
261
262
|
<figcaption>Appending to a full slice</figcaption>
|
|
262
263
|
</figure>
|
|
263
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
264
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.81.0/cdn/tinyfly.iife.js" data-tinyfly-auto></script>
|
|
264
265
|
```
|
|
265
266
|
|
|
266
267
|
See [Teaching Animations](docs/teaching.md).
|
|
@@ -359,7 +360,7 @@ Without a build step, the player bundle puts the same functions on a `tinyfly` g
|
|
|
359
360
|
<div data-tinyfly="box" style="width: 60px; height: 60px; background: #4a9eff;"></div>
|
|
360
361
|
</div>
|
|
361
362
|
|
|
362
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
363
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.81.0/cdn/tinyfly-player.iife.js"></script>
|
|
363
364
|
<script>
|
|
364
365
|
tinyfly.play('#animation', './animation.json', { loop: -1 })
|
|
365
366
|
</script>
|
|
@@ -468,7 +469,7 @@ Or skip the code entirely with declarative embeds (see [Teaching Animations](doc
|
|
|
468
469
|
<svg viewBox="0 0 720 200">…</svg>
|
|
469
470
|
<script type="application/json" data-tinyfly-timeline>{ …timeline JSON… }</script>
|
|
470
471
|
</figure>
|
|
471
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
472
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.81.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
472
473
|
```
|
|
473
474
|
|
|
474
475
|
### Audio / Video Sync
|