Skip to content

@openpageflip/core

Version 0.1.0

Minor Changes

  • e8c83d9 Thanks @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 with layout: "auto" | "single" | "spread"; ResizeObserver-driven relayout; typed events; promises that resolve when a flip lands; prefers-reduced-motion; a destroy() 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.

  • 20ffe9f Thanks @benhonda! - Geometry kernel: computeFold turns 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, a null result instead of thrown errors for degenerate drags, no null entries inside polygons.

Patch Changes

  • e183337 Thanks @benhonda! - Pages keep their own inline styles: the renderer now writes only the properties it owns instead of replacing style wholesale. flip fires only when the shown spread changes, so redraws and relayouts stay quiet.