TeX class
Root class that provides TeX to SVG conversion.
Constructors
- TeX()
Properties
- error → String
-
Gets the error for the last call of tex2svg.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Gets the height of the last rendering.
no setter
- parsed → String
-
Gets the parsed and stringified TeX input for the last call of tex2svg.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scalingFactor ← double
-
Sets the scaling
factor.no getter - width → int
-
Gets the width of the last rendering.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setColor(
int red, int green, int blue) → void -
Sets the
red,greenandblue(RGB) color range 0 to 255 each. -
success(
) → bool - Returns the success: true := OK, false := errors occurred.
-
tex2svg(
String src, {dynamic displayStyle = false, dynamic debugMode = false, dynamic deltaYOffset = 128}) → String -
Generates an SVG String from TeX
src. By default, inline math is generated. Enable display style equations viadisplayStyle. ParameterdebugModeenables rendering bounding boxes around glyphs and groups of glyphs. ParameterdeltaYOffsetis e.g. useful for inline math. It adds (or subtracts in case it is negative) vertical space to the SVG view box. E.g. in the "flutter_svg" package you can set attribute "allowDrawingOutsideViewBox: true" to allow rendering outside the Widget. This allows better embedding of equations within TextWidgets. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited