LatexRenderResult class
LaTeX render result: contains the measured layout, padding, highlights, and all information needed for drawing.
Generated by LatexRenderer.measure, consumed jointly by LatexRenderer.draw and external exporters. Ensures Composable rendering and off-screen exporting use the exact same logic, avoiding code duplication.
Constructors
-
LatexRenderResult({required NodeLayout layout, required double horizontalPadding, required double verticalPadding, required double canvasWidth, required double canvasHeight, required List<
MapEntry< highlightRects})HighlightRect, HighlightRange> > -
const
Properties
- canvasHeight → double
-
Full canvas height = layout.height + 2 * verticalPadding
final
- canvasWidth → double
-
Full canvas width = layout.width + 2 * horizontalPadding
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
highlightRects
→ List<
MapEntry< HighlightRect, HighlightRange> > -
List of highlight rectangle areas (paired with HighlightRange)
final
- horizontalPadding → double
-
Horizontal padding (px)
final
- layout → NodeLayout
-
The measured node layout (includes draw closure)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verticalPadding → double
-
Vertical padding (px)
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited