Have questions? Stuck? Please check our FAQ for some common questions and answers.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Glyph Service

GlyphService is an Angular Factory in the SVG module with the name glyph.js. It provides an API to load and inject custom glyphs (SVG path data) to be used in the client-side application. To use this API, see the documentation on injecting Angular services.

What is a glyph?

A glyph is an abstraction of an HTML SVG. An example of a glyph is below.

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.

API Functions

NameSummary
clearClears the glyph library.
initInitializes the glyph library with default glyphs.
registerGlyphsRegister glyphs each with their own custom viewbox.
registerGlyphSetRegister a set of glyphs that all share the same viewbox.
ids 
glyph 
loadDefs 
addGlyph 

Function Descriptions

clear

init

registerGlyphs

registerGlyphSet

ids

glyph

loadDefs

addGlyph

All Glyphs

The ONOS GUI comes with several built in glyphs that you can use. Here are pictures and names of them all.

 

 

  • No labels