package layout

Import Path
	github.com/d2lang/mathjax-go/internal/layout (on go.dev)

Dependency Relation
	imports 6 packages, and imported by 2 packages

Involved Source Files Package layout implements MathJax's common TeX layout rules. lengths.go parameters.go
Package-Level Type Names (total 2)
/* sort by: | */
BBox is MathJax's common-output bounding box. Dimensions are in ems. L and R are space outside W, RScale is relative to the parent, IC is the italic correction, Skew is the accent skew, and DX is the combining-accent offset. D float64 DX float64 H float64 IC float64 L float64 PWidth string R float64 RScale float64 Scale float64 Skew float64 W float64 Append places child after the current width and expands height and depth. Clean replaces unset dimensions with zero. Clone returns an independent copy. Combine expands b to include child at offset (x,y). Empty prepares b for Append and Combine operations. Rescale multiplies the three geometric dimensions. It intentionally does not modify spaces or scale metadata, matching MathJax 3.2.2. UpdateFrom overwrites b's geometric dimensions and copies a non-empty percentage width. func EmptyBBox() *BBox func NewBBox(w, h, d float64) *BBox func ZeroBBox() *BBox func (*BBox).Clone() *BBox func (*BBox).Empty() *BBox func (*BBox).Append(child *BBox) func (*BBox).Combine(child *BBox, x, y float64) func (*BBox).UpdateFrom(other *BBox)
Package-Level Functions (total 8)
Em formats a dimension as ems.
EmptyBBox returns a box whose height and depth have not been set.
EmRounded rounds a dimension to CSS pixel boundaries before formatting.
Length2Em converts a MathML dimension into ems with MathJax 3.2.2's permissive prefix parsing.
NewBBox returns the initialized zero-width box used by MathJax. An omitted height or depth is represented by -BigDimen.
Percent formats a multiplier as a CSS percentage.
PX formats an em dimension as pixels with an optional minimum.
ZeroBBox returns a fully specified zero box.
Package-Level Variables (total 2)
MathSpace contains MathJax's named math-space and size values.
TeXParameters is SVG TeXFont.defaultParams in MathJax 3.2.2.
Package-Level Constants (total 2)
BigDimen is MathJax's sentinel for an unset or effectively infinite dimension.
FullWidth is the percentage-width marker used by MathJax tables.