Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The red bird is the glyph. Glyphs are used throughout the client-side GUI for decoration and helpful indicators. They are drawn using SVG path data and colored/styled using CSS.

See All Glyphs for a list of all glyphs and this defining your own custom glyph walk-through.

API Functions

NameSummary
clearClears the glyph library.
initInitializes the glyph library with default glyphs.
registerGlyphsRegister glyphs that each have their own custom viewbox.
registerGlyphSetRegister a set of glyphs that all share the same viewbox.
idsGet all of the glyph names/ids currently in the library.
glyphGet a specific glyph's path data.
loadDefsLoad a set of glyph symbols into a SVG <defs> element.
addGlyphAdd a defined glyph to a specified SVG element.

...