imagerenderer.js
No description.

File Location

/goog/ui/equation/imagerenderer.js


Public Protected Private

Global Functions

goog.ui.equation.ImageRenderer.getEquationFromImage(equationNode) string
Gets the equation string from the given equation IMG node. Returns empty string if the src attribute of the is not a valid equation url.
Arguments:
equationNode : Element
The equation IMG element.
Returns: string  The equation string.
code »
goog.ui.equation.ImageRenderer.getEquationFromImageUrl(imageUrl) ?string
Returns the equation string src for given image url.
Arguments:
imageUrl : string
The image url.
Returns: ?string  The equation string, null if imageUrl cannot be parsed.
code »
goog.ui.equation.ImageRenderer.getHtml(equation) string
Returns the html for the html image tag for the given equation.
Arguments:
equation : string
The equation.
Returns: string  The html code to embed in the document.
code »
goog.ui.equation.ImageRenderer.getImageUrl(equation) string
Returns the equation image src url given the equation.
Arguments:
equation : string
The equation.
Returns: string  The equation image src url (empty string in case the equation was empty).
code »
goog.ui.equation.ImageRenderer.isEquationElement(node) boolean
Checks whether given node is an equation element.
Arguments:
node : Node
The node to check, must be an Element.
Returns: boolean  Whether given node is an equation element.
code »
goog.ui.equation.ImageRenderer.isEquationTooLong(equation) boolean
Checks whether equation is too long to be displayed.
Arguments:
equation : string
The equation to test.
Returns: boolean  Whether the equation is too long.
code »

Directory equation

File Reference