@ooxml-sanad/paint
v0.2.0
Published
Display list, dirty-rect repaint, page bitmap cache, glyph-run batching.
Readme
@ooxml/paint
Canvas 2D rendering pipeline: display list, dirty-rect repaint, page bitmap cache, and glyph-run batching.
Install
npm install @ooxml/paintOverview
Paints laid-out content onto an HTML Canvas:
- Display list — Structured, serializable paint commands
- Batcher — Groups glyphs by font/style for minimal state changes
- Page cache — Off-screen bitmap cache per page
- Viewport — Scroll tracking and visible-region culling
- Decorations — Underline, strikethrough, text decoration painting
- Shapes — DrawingML shape rendering (fills, effects, images, lines, text)
Usage
import { buildDisplayList, paintPage } from '@ooxml/paint';License
MIT
