ui.equation.ImageRenderer

Classes


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 »

Global Properties

goog.ui.equation.ImageRenderer.BACKGROUND_COLOR :
The default background color as used in the img url, which is fully transparent white.
Code »
goog.ui.equation.ImageRenderer.EE_IMG_ATTR :
Non-standard to put on our equations IMG elements. Useful when classes need to be scrubbed from the user-generated HTML, but non-standard attributes can be white-listed.
Code »
goog.ui.equation.ImageRenderer.EE_IMG_CLASS :
Class to put on our equations IMG elements.
Code »
goog.ui.equation.ImageRenderer.EE_IMG_VERTICAL_ALIGN :
Vertical alignment for the equations IMG elements.
Code »
goog.ui.equation.ImageRenderer.FOREGROUND_COLOR :
The default foreground color as used in the img url, which is black.
Code »
goog.ui.equation.ImageRenderer.MAX_EQUATION_LENGTH :
The longest equation which may be displayed, in characters.
Code »
goog.ui.equation.ImageRenderer.NO_RESIZE_IMG_CLASS :
Class to put on IMG elements to keep the resize property bubble from appearing. This is different from PLACEHOLDER_IMG_CLASS because it's reasonable in some cases to be able to resize a placeholder (which should be reflected when the placeholder is replaced with the other content).
Code »
goog.ui.equation.ImageRenderer.SERVER_NAME_ :
The server name which renders the equations. We use https as equations may be embedded in https pages and using https prevents mixed content warnings. Note that https equations work only on google.com domains.
Code »

Package ui.equation

Package Reference