SVG-first animation engine — fw add-on, Worker-aware. See the package README for the pitch, install and quick start.

Current state — L3 (awa.maturity). 18 registered graphic.* fw module descriptors under a frozen contract (see CONTRACT): pure Worker-safe math/interpolation, the tween/timeline/scheduler engine, the declarative scene DSL, and three composed extension modules — pageflip, hypertree, svg3d. Both an fw-DI surface and a fully framework-free dist/standalone/ surface ship from the same source (the monorepo's "fw add-on packages" packaging convention).

Guides

Guide Topic
Getting started Install, boot, first tween — animate a few elements.
Engine Tween · Timeline · Scheduler — the core animation primitives.
Frames Discrete frame-sequence stepping (sprite/scrub).
Scene JSON→SVG scene builder + declarative named-event DSL.

Extension module guides

Composed modules outside the frozen 14-module graphic.anim aggregate, each shipping its own pure kernels and prebuilt roots. These three live directly under docs/, not docs/guide/:

Guide Topic
pageflip Page-curl book (graphic.pageflip).
hypertree Radial/hyperbolic tree with animated focus (graphic.hypertree).
svg3d Software-3D heightmap terrain in SVG (graphic.svg3d).

API reference

Mirrors src/ — one page per module, grouped by area.

Main

Page Covers
main Public entry point — generator contract, fw-mode barrel, constructible helpers (createPageflip/createHypertree).
aggregator graphic.anim — whole-package resolve of the 14 core modules in one namespace object.

Math (5)

Page Covers
lerp Scalar linear interpolation — the shared numeric primitive for all tween math.
easing 31 normalized Penner curves — shaped clock for value-agnostic interpolation.
units CSS unit split and format — parse "50px" and round-trip back to string.
matrix 2D affine Matrix + decomposition for transform interpolation.
color CSS colour parse / lerp / format.

Interpolate (3)

Page Covers
index Value-type detection → typed interpolator seam.
path Parse SVG path d data to a canonical segment list, for morphing.
transform Parse an SVG/CSS transform function-list into a single affine Matrix.

Anim (3)

Page Covers
scheduler One shared rAF loop ticking all active tweens — the single-scheduler invariant.
tween Reference-bound single-property tween driven by the shared scheduler.
timeline Compose tweens with computed start offsets, on the same shared scheduler.

Svg (3)

Page Covers
apply SVG attribute writing, routed through fw dom.attr.
build JSON→SVG builder — recursively constructs a namespace-correct SVGElement subtree.
scoped-ids Collision-free scoped id generation and reference rewriting for repeated SVG templates.

Scene (2)

Page Covers
scene Instance-scoped scene / named-event DSL, wiring declarative animations to elements.
parity Both-surfaces parity + perf gate note for the scene builder DSL.

Frames (1)

Page Covers
frames Reference-bound frame-sequence primitive — steps discrete SVG frame elements.

Helpers (1)

Page Covers
shared-runtime The one reference-counted ModuleRuntime shared by createPageflip and createHypertree.

Pageflip (4)

Page Covers
pageflip graphic.pageflip — page-curl book as SVG, single page or two-page spread.
fold pageflip.fold — pure page-curl fold solver (turn and under polygons).
compose pageflip.compose — serialize a fold polygon to a closed path d string.
create createPageflip — build a book and mount it without wiring the descriptor by hand.

Hypertree (4)

Page Covers
hypertree graphic.hypertree — radial tree as SVG with animated re-rooting focus.
layout hypertree.layout — pure radial layout and focus re-rooting solver.
measure hypertree.measure — deterministic character-budget label word-wrap.
create createHypertree — build a tree into an element, creating the SVG root when needed.

Svg3d (5)

Page Covers
svg3d graphic.svg3d — software-3D heightmap terrain in SVG with an orbiting camera.
vec3 svg3d.vec3 — pure 3D vector and 3×3 rotation kernel.
mesh svg3d.mesh — heightmap decode and grid mesh with precomputed normals and colours.
project svg3d.project — per-frame rotate, perspective, cull, shade and painter sort.
apply svg3d.apply — the bucketed-path and per-polygon SVG write strategies.

Perf (1)

Page Covers
perf ms/frame perf harness — the standing regression gate (500 tweens / 16.67 ms).

Standalone (1)

Page Covers
standalone Generated dual-surface dist/ bundles — standalone and fw-mode.

Contracts & internals

Page Topic
CONTRACT Frozen module descriptor table (name/type/deps) — the normative source.
aggregator graphic.anim — whole-package resolve of the frozen 14-module core.

See also