GUI -- Revamp of the Glyph Service to allow for custom viewboxes to be defined for registered glyphs/sprites.
- Also, initial sketch for externally injected sprite definition and placement.
- Added 'cloud' sprite data.
Change-Id: I1c38d50212a6d67e00e9b7c15427f6e0af40b539
diff --git a/web/gui/src/main/webapp/data/ext/sprites.json b/web/gui/src/main/webapp/data/ext/sprites.json
new file mode 100644
index 0000000..5cf4109
--- /dev/null
+++ b/web/gui/src/main/webapp/data/ext/sprites.json
@@ -0,0 +1,44 @@
+{
+ "_comment": [
+ "configuration file for loading canned and/or custom sprites (and labels)",
+ "into the topology view. These appear above the map layer, but below",
+ "the nodes/links layer."
+ ],
+
+ "_comment_defn": "'defn' array contains custom sprite definitions",
+ "defn": [
+
+ ],
+
+ "_comment_defstyle": "'defstyle' defines default styles to apply",
+ "defstyle": {
+ "sprite": {
+ "stroke": "goldenrod",
+ "stroke-width": 1.0,
+ "fill": "none"
+ },
+ "text": {
+ "text-style": "italic",
+ "test-size": "20pt"
+ }
+ },
+
+ "_comment_load": [
+ "'load' array contains list of sprites/labels to load",
+ " note that 'copies' array defines [x,y] coords to position copies"
+ ],
+ "load": [
+ {
+ "id": "cloud",
+ "width": 100,
+ "height": 100,
+ "scale": 4.0,
+ "copies": [
+ [0, 50], [800, 40], [400, 450]
+ ],
+ "style": {
+ "stroke": "green"
+ }
+ }
+ ]
+}