Plugin dev: common (FontAwesome) SVG icon utility
At the moment the Webclient's FontAwesome SVG icon rendering code is located in module dmx-cytoscape-renderer. So plugins, e.g. "DMX Geomaps” have no access to it, and, in order to render FontAwesome SVG icons would be forced to load fontawesome-webfont.svg itself, creating another weighty (434 KB) request.
Aim:
DMX plugin developers can access a common icon utility, in particular to create SVG data:
URLs. That utility would request fontawesome-webfont.svg
, XML-parse it, hold the resulting SVG DOM tree in memory, and provide an API for creating a data URL for a particular glyph.
This is a follow-up of dmx-plugins/dmx-geomaps#4 (closed).