Directories
¶
| Path | Synopsis |
|---|---|
|
Package contract defines waffle-tree/v1: the versioned JSON boundary between the React authoring layer (@waffle/react) and the Go rendering engine.
|
Package contract defines waffle-tree/v1: the versioned JSON boundary between the React authoring layer (@waffle/react) and the Go rendering engine. |
|
Package fetch resolves a resource reference — a data: URI, an http(s) URL, or a local file path — to raw bytes, with a size cap and a scheme allowlist.
|
Package fetch resolves a resource reference — a data: URI, an http(s) URL, or a local file path — to raw bytes, with a size cap and a scheme allowlist. |
|
Package flexbox is waffle's own flexbox layout engine — the replacement for react-pdf's Yoga binding.
|
Package flexbox is waffle's own flexbox layout engine — the replacement for react-pdf's Yoga binding. |
|
Package fontstore registers and resolves fonts and measures text.
|
Package fontstore registers and resolves fonts and measures text. |
|
Package imaging decodes images for PDF embedding.
|
Package imaging decodes images for PDF embedding. |
|
Package jsruntime is waffle's in-process JavaScript engine: it transpiles a user's JSX/TSX React document and runs it entirely inside the Go process to produce a waffle-tree/v1 JSON document — no Node.js at render time.
|
Package jsruntime is waffle's in-process JavaScript engine: it transpiles a user's JSX/TSX React document and runs it entirely inside the Go process to produce a waffle-tree/v1 JSON document — no Node.js at render time. |
|
Package layout is the layout pipeline: it resolves styles and page sizes, drives the flexbox engine, and produces a tree of positioned boxes ready for painting.
|
Package layout is the layout pipeline: it resolves styles and page sizes, drives the flexbox engine, and produces a tree of positioned boxes ready for painting. |
|
Package pdf is a write-only PDF 1.3–1.7 serializer: the low-level object model, document/xref writer, content-stream operator builder, and standard-14 font support.
|
Package pdf is a write-only PDF 1.3–1.7 serializer: the low-level object model, document/xref writer, content-stream operator builder, and standard-14 font support. |
|
afm
Package afm parses Adobe Font Metrics for the 14 standard PDF fonts and exposes glyph widths and font metrics used for text measurement.
|
Package afm parses Adobe Font Metrics for the 14 standard PDF fonts and exposes glyph widths and font metrics used for text measurement. |
|
Package render paints a laid-out document (layout.Result) onto the PDF writer, producing the final bytes.
|
Package render paints a laid-out document (layout.Result) onto the PDF writer, producing the final bytes. |
|
Package stylesheet parses react-pdf-shaped style values into typed, resolved forms for the layout engine: dimensioned values and their unit conversions, colors, font weights, and style flattening.
|
Package stylesheet parses react-pdf-shaped style values into typed, resolved forms for the layout engine: dimensioned values and their unit conversions, colors, font weights, and style flattening. |
|
Package svgparse parses SVG path data and basic shapes into a vector IR of move/line/cubic/close segments, ready to emit as PDF path operators.
|
Package svgparse parses SVG path data and basic shapes into a vector IR of move/line/cubic/close segments, ready to emit as PDF path operators. |
|
Package transform parses CSS transform strings (translate, scale, rotate, skew, matrix) and composes them into a single 2D affine matrix expressed in PDF operand order [A B C D E F].
|
Package transform parses CSS transform strings (translate, scale, rotate, skew, matrix) and composes them into a single 2D affine matrix expressed in PDF operand order [A B C D E F]. |
|
Package tree is the internal, validated element model the layout pipeline walks.
|
Package tree is the internal, validated element model the layout pipeline walks. |
Click to show internal directories.
Click to hide internal directories.