Format: Keep a Changelog.
[Unreleased]
[0.1.0] - 2026-11-19
Added
- Timeline control — a
Timelinekeeps its own clock:timeanddurationare readable;seek(ms)renders the whole timeline's state at a time (every opened child at its progress, a child not yet started at itsfrom, in the order live play leaves) without firing anyonComplete;pause()/resume()hold and continue (resume()on an idle timeline plays fromtime);timeScalesets the playback rate (a finite number ≥ 0, else it throws).play()still restarts at 0. Timeline#staggeroptions — besides the number form,{ each, from, ease, at }: the wave starts from'start','end','center','edges'or an item index;easeredistributes the offsets;atis a base offset.- CSS timing functions — a tween's
easingalso acceptscubic-bezier(x1, y1, x2, y2),steps(n[, position])and the keywordsease,ease-in,ease-out,ease-in-out,step-start,step-end(the easing table keeps priority);graphic.tweenalso returnsresolveEasing(spec). - Neon Grid showcase demo (
demos/neon-boot/) — an 11 s boot sequence on one timeline, then a pure function of time: scrub, slow motion, act captions, the code of each act, an outline view, full screen, reduced motion, and agraphic.svg3dterrain hologram. - Real-browser smoke —
bun run test:e2eloads every demo and playground page in Chromium and Firefox and fails on a page error or a readiness timeout. disttype declarations —gen:bundleswrites a.d.tsbeside everydist/standaloneanddist/buildJavaScript file, so a TypeScript consumer of@awacloud/graphic-anim/standalone/*and/build/*gets the descriptor's literalnameanddependenciesand a typedfactory(Pageflip/Hypertreesurfaces for those roots,unknownelsewhere) instead of an implicitany.- 14-module
graphic.animengine aggregate — tween, timeline, scheduler, scene, frames, interpolate, svg, math. - Three off-aggregate extension modules —
graphic.pageflip,graphic.hypertree,graphic.svg3d— plus their eight public pure kernels (./kernels/*subpaths). - Dual dist surfaces —
dist/standaloneself-contained roots anddist/buildassembled.standalone/.fwpairs, with each extension's.fwbundle declaring the core as a DI sibling. - Constructible helpers —
createPageflip,createHypertree. - Demos family and package-local
dev-portal servemode. - Hand-authored root types —
types/main.d.ts. graphic.pageflipbackFilloption — the fill of the turning leaf's back (plain paper, default#e9e6df).graphic.pageflipspreadoption — the two-page spread of the old aJSFlip book: the leaf carries the next spread's left page and crosses the spine; a backward turn replays the forward turn in reverse.graphic.pageflipspread shading andshadowoption — the old book's gutter shadows at the spine (widths following the reading progress), gradient-stroked stack edges and leaf edge;shadowsets the gutter width.graphic.pageflippointer corners (spread, opt-in through theeventsoption, the resolved fwdom/query/eventsmodule): four corner zones, hover peel, corner drag with complete-or-revert release, click to turn; bottom corners mirror y.graphic.hypertreelabelDepthoption — show only the labels within a graph distance of the focus; the default shows every label.graphic.hypertreestyling model (opt-instyled): colour per branch (color, inherited; a palette on the root's children;nodeStylehook), coloured links and dots, dot radius shrinking with the distance from the focus, label pills, and arootGlyphslot that shrinks off-centre (rootGlyphRadius). Its content defaults are neutral (palette,system-ui, sans-serif); a consumer's colours and font are passed throughstyled.graphic.pageflipimage pages — a page may givesrc: a placeholder until the image is decoded, a preload window (cache, default 8) loaded at mostpreloadConcurrencyat a time (default 1), turn targets first, an injectableloadImage, andimageState(id).graphic.svg3dface colours, water and pointer look — opt-infaceColors(per-face altitude and shade classes on the bucketed rig, water faces at height 0), opt-inevents(the legacy drag-to-look), andcamera.near.graphic.hypertreedetail badges — in styled mode, nodes withactionand/orinfoget a link and an info badge; a badge click callsonNodeDetail(id, kind, value, event)without focusing the node. The glyphs are neutral built-ins (an arrow, an "i"), replaced per kind throughbadgeGlyphs(graphic.svgBuildtemplates).graphic.hypertreeforest input — an array of roots is wrapped in an internal origin (Hypertree.FOREST_ORIGIN): no dot, no label, therootGlyphwhen there is one;focus(t.rootId)returns to the initial view.hypertree.layoutfocusMovezoomargument — the focus fan (default3π/2), exported asDEFAULT_ZOOM.
Fixed
- fw specifier — the barrel and the
createHypertreehelper import@awacloud/fw/core/runtime.js, a declared export of@awacloud/fw, instead of the extensionless@awacloud/fw/core/runtime. An import map maps the@awacloud/fw/prefix (or that exact.jskey); a map that carried only the extensionless key must add one of them. - Robustness —
TweenthrowsTween: unknown easing "<name>"for an easing name not in the table instead of silently playinglinear(an absent easing is stilllinear).createSceneuses an explicitprefixverbatim,''included, as its documentation said. Every throw site of the shipped modules is documented with@throws. - fw first: easing, lerp and the clock —
graphic.easing,graphic.lerpandgraphic.schedulerare now built on fw'sio/calc/easing,io/math/interpandio/timing/clock(theirdependenciesare['easing'],['interp'],['clock'];fw_requirelists the three). The package no longer carries its own copy of the 31 easing curves. The scheduler's default clock is fw'sclock.monotonic, so a defaultSchedulerworks under fw's sanity lockdown, whereperformance.nowthrows. A directfactory()call now passes the fw module (lerpModule.factory(interp.factory())); a runtime resolves it as before. The pure-leafdist/standaloneroots inline fw's pureiomodules and still no DOM-bound one. - Types —
createPageflip/createHypertreetake a requiredoptswith the constructor's required fields (pages/width/height,tree), and their handles carry typedPageflip/Hypertreeinstances instead ofany(types/main.d.tsalso exportsPageSpec,PageflipOptions,TreeNode,HypertreeOptions). Each./kernels/*key names its.d.tsas an explicittypescondition. - Lifecycle —
Hypertree#dispose()andSvg3d#dispose()detach the subtree their constructor appended (el/nodestay readable). A scene's looping event can be stopped after its first cycle: newScene#stop(name?)andScene#dispose()(which also detachesroot).createPageflipandcreateHypertreeshare one runtime, so they run on one scheduler instead of one each. graphic.interpolatetransform lists — two lists that match function by function (same length, same function at each position) interpolate each function on its own and are written back as the list, as CSS Transforms does; amatrix()pair goes through the decomposition in place. Other lists keep the decomposition andmatrix(…). The matrix path moved ascale(…) translate(…)tween along another trajectory.graphic.pageflipturn rendering — during a turn the page underneath is drawn and the lifted page is clipped to its unlifted part, so no frame shows a hole the colour of the stage; the leaf follows the full two-leg corner path and lies past the spine at the end of the turn.pageflip.foldFLAT case — a corner on the diagonal (dx = dy) now gives the triangle under the crease; the leaf no longer reaches far above the page.svg3d.projectvertices on the camera plane — a vertex nearer thancamera.neardrops its triangles; one exactly on the plane used to scale to+Infinityand reach the path data.hypertree.layoutfocus geometry —focusMovere-roots the tree at the focus (its children over 270° around it, the rest of the tree opposite) instead of injecting the ancestors as a spoke that overlapped the focus's own children.graphic.hypertreelinks — each link's control point lies on its outer end's angle at the mean distance of its ends, so links no longer loop back after a focus.