@openpageflip/core
0.2.3 Latest
Patch Changes
0911652Thanks @benhonda! - READMEs and the packages’homepagepoint at the docs site’s real address, https://openpageflip.shittylittleapps.com, instead of a GitHub Pages URL that never went live.
0.2.2
Patch Changes
9a1ad82Thanks @benhonda! - A hovered corner lifts and drops over at least a quarter offlipDurationinstead of snapping, and the same floor applies to every short animation path, such as a corner released close to where it started. While a corner is hovered the pointer takes over from the lift animation instead of fighting it. A settling corner is no longer restarted by every further mouse move, which made it stutter and only land once the mouse stopped, and a pointer jumping to another corner lets the lifted one settle instead of folding it from the wrong corner.
0.2.1
Patch Changes
329cb63Thanks @benhonda! - A hard page’s shadow is no longer painted on the empty side of the stage when a cover opens or the lone last page closes. It is drawn only where a page is there to receive it.
0.2.0
Minor Changes
9a70bd3Thanks @benhonda! - Audit fixes. Core:flipToduring a running flip lands it first instead of overshooting; a press during a flip lands it;drag: falseno longer turns a long drag into a click;ignoreDragOnis validated atcreateBookand acceptsfalse; a resize mid-drag drops the stale fold;turnToout of range throws; a frame timestamp before the tween’s start no longer produces negative progress; the renderer re-asserts its classes on every draw and writes to idle pages once, not every frame; an already-abortedAbortSignalnever subscribes;Book.redraw()added. The unimplementedDirectionvocabulary is removed until right-to-left lands. React:FlipBookredraws instead of re-measuring after each commit, and the ref handle exposesredraw.
Patch Changes
ce0f54dThanks @benhonda! - Docs site at https://benhonda.github.io/openpageflip/ with live demos and a generated API reference. READMEs now point there and embed their quick start from the site’s own examples, which run in the test suite. Types the public API already referred to are exported so the reference (and your editor) can name them:ShadowData,FlipFrame,Emitter,Listener,LayoutOptions,LayoutResult,ResolvedOptionsfrom core andFlipBookEventPropsfrom react.
0.1.0
Minor Changes
-
e8c83d9Thanks @benhonda! -createBook(container, options): the headless controller, DOM renderer and pointer input. Drag, click, swipe and hover flips; soft and hard pages; portrait and landscape withlayout: "auto" | "single" | "spread"; ResizeObserver-driven relayout; typed events; promises that resolve when a flip lands;prefers-reduced-motion; adestroy()that restores the DOM. Rendering is pixel-matched to page-flip 2.0.7 by a visual parity suite. Frames are drawn only on change, never on an idle timer. -
20ffe9fThanks @benhonda! - Geometry kernel:computeFoldturns a dragged corner into the page rotation, clip polygons and shadow line, as a pure function with the same output as StPageFlip’s original maths (held to it by live parity tests). Numbers instead of strings for page size, anullresult instead of thrown errors for degenerate drags, nonullentries inside polygons.
Patch Changes
e183337Thanks @benhonda! - Pages keep their own inline styles: the renderer now writes only the properties it owns instead of replacingstylewholesale.flipfires only when the shown spread changes, so redraws and relayouts stay quiet.