Documentation
¶
Overview ¶
Package tree is the internal, validated element model the layout pipeline walks. It is built from a parsed contract.Tree: structural props (the pagination- and identity-relevant ones) are parsed into typed fields, while style values are kept raw for the stylesheet subsystem, exactly as react-pdf leaves styles uninterpreted until layout.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct {
Type string
Value string // TEXT_INSTANCE text content
// Parsed structural props (react-pdf pagination and identity semantics).
Wrap *bool // nil = unset; the type default is applied at layout
Fixed bool
Break bool
MinPresenceAhead float64
Debug bool
ID string
Render *contract.CallbackRef // render prop, when it is a function
Style any // raw style value (object or array); parsed by stylesheet
Props map[string]any // all props verbatim
Parent *Node
Children []*Node
}
Node is one element of the internal tree.
type Tree ¶
type Tree struct {
Root *Node
Fonts []contract.FontRegistration
EmojiSource *contract.EmojiSource
HyphenationCallback *contract.CallbackRef
Warnings []string
}
Tree is a built, validated document tree plus the document-level assets the render pipeline needs.
Click to show internal directories.
Click to hide internal directories.