Skip to main content

Function: getGlyphClasses()

getGlyphClasses(glyph): readonly string[]

Defined in: src/mobjects/text/svgPathParser.ts:440

The class tokens on the SVG elements that enclosed this glyph, outermost first. MathJax's \class{name}{...} puts name on the group around a sub-expression, so every glyph inside it reports name here. Nested \class groups report all their names.

Only glyphs produced by svgToVMobjects carry classes; any other mobject (including a copy() of a glyph) returns an empty array.

Parameters​

glyph​

VMobject

Returns​

readonly string[]