GUI -- Implemented ZoomService, with unit tests.
- Added zoomer to topo.js; we are at least generating the events.
- Added GlyphService.clear()
Change-Id: I5400e52b58ee584866d8ffbb20d5bde70b336985
diff --git a/web/gui/src/main/webapp/app/fw/svg/glyph.js b/web/gui/src/main/webapp/app/fw/svg/glyph.js
index 8129c16..621436c 100644
--- a/web/gui/src/main/webapp/app/fw/svg/glyph.js
+++ b/web/gui/src/main/webapp/app/fw/svg/glyph.js
@@ -124,9 +124,13 @@
.factory('GlyphService', ['$log', function (_$log_) {
$log = _$log_;
- function init() {
+ function clear() {
// start with a fresh map
glyphs = d3.map();
+ }
+
+ function init() {
+ clear();
register(birdViewBox, birdData);
register(glyphViewBox, glyphData);
register(badgeViewBox, badgeData);
@@ -175,6 +179,7 @@
}
return {
+ clear: clear,
init: init,
register: register,
ids: ids,