Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
Table of Contents |
---|
This page is a work in progress.
Overview
There are a number of Angular-based services that the ONOS GUI comes with ready made. All of our services are actually factories. Below you will find short summaries of what each service provides and links to pages with more information.
...
Service | Description |
---|---|
GeoDataService | Fetches and caches TopoJSON data, provides a way of creating a path generator for that data. |
GlyphService | Add, load, and register SVG symbols (glyphs). |
IconService | Add, load, and register SVG icons (abstraction of GlyphService). |
MapService | Loads graphical maps into the SVG layer. |
SvgUtilService | General SVG utility functions. |
ZoomService | Creates a "zoomer" to zoom in on SVG maps. |
Util
The module holding these services is onosUtil
and is in util/util.js
.
Service | Description |
---|---|
FnService | Provides general purpose functions that are useful throughout the application. |
KeyService | Bind and enable keys to certain functions. |
PrefsService | Stores user settings in the browser's cookies. |
RandomService | Encapsulated randomness. |
ThemeService | Manages theme add, remove, and toggle. |
Widget
The module holding these services is onosWidget
and is in widget/widget.js
.
...