TeXRenderingServer class

The standard (Mobile/Desktop) implementation of TeXRenderingServer.

This server uses a hidden WebViewControllerPlus (WebView) to load a local HTML file containing the MathJax library. It communicates via JavaScript channels to render TeX to SVG.

Key Features:

  • Localhost Server: Serves the engine files locally.
  • LIFO Queue: Prioritizes visible items during rapid scrolling.
  • LRU Cache: Caches rendered SVGs to minimize repeated render calls.

Constructors

TeXRenderingServer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Properties

multiTeXView bool
getter/setter pair
port int?
no setter
teXRenderingController → TeXRenderingController
final

Static Methods

getCachedSVG(String math, MathInputType type) String?
Synchronous cache check for the Widget. This allows widgets to build immediately if the SVG is already in memory.
math2SVG({required String math, required MathInputType mathInputType}) → TexRenderingRequest
Converts a TeX string to an SVG image.
start({int port = 0}) Future<void>
stop() Future<void>