Simon Hunt

GUI -- Topology view... Minor cleanup.

Change-Id: I86e1bab3815b8dfabdfbd1e5f3f773b37b2f1ca9
...@@ -203,6 +203,7 @@ ...@@ -203,6 +203,7 @@
203 }); 203 });
204 } 204 }
205 205
206 + // trans can specify translation [x,y]
206 function addGlyph(elem, glyphId, size, overlay, trans) { 207 function addGlyph(elem, glyphId, size, overlay, trans) {
207 var sz = size || 40, 208 var sz = size || 40,
208 ovr = !!overlay, 209 ovr = !!overlay,
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
34 var ovtopo, svg, defs, zoomLayer, mapG, forceG; 34 var ovtopo, svg, defs, zoomLayer, mapG, forceG;
35 35
36 // Internal state 36 // Internal state
37 - var zoomer, evDispatcher; 37 + var zoomer;
38 38
39 // Note: "exported" state should be properties on 'self' variable 39 // Note: "exported" state should be properties on 'self' variable
40 40
...@@ -175,9 +175,6 @@ ...@@ -175,9 +175,6 @@
175 // set the svg size to match that of the window, less the masthead 175 // set the svg size to match that of the window, less the masthead
176 svg.attr(fs.windowSize(mast.mastHeight())); 176 svg.attr(fs.windowSize(mast.mastHeight()));
177 177
178 - // bind to topo event dispatcher..
179 - evDispatcher = tes.bindDispatcher('TODO: topo-DOM-elements-here');
180 -
181 setUpKeys(); 178 setUpKeys();
182 setUpDefs(); 179 setUpDefs();
183 setUpZoom(); 180 setUpZoom();
......
...@@ -70,10 +70,8 @@ ...@@ -70,10 +70,8 @@
70 function populateSummary(data) { 70 function populateSummary(data) {
71 summaryPanel.empty(); 71 summaryPanel.empty();
72 72
73 - var svg = summaryPanel.append('svg'); //.style('background-color', 'goldenrod'), 73 + var svg = summaryPanel.append('svg'),
74 - //iid = '#' + (data.type || 'unknown'); 74 + title = summaryPanel.append('h2'),
75 -
76 - var title = summaryPanel.append('h2'),
77 table = summaryPanel.append('table'), 75 table = summaryPanel.append('table'),
78 tbody = table.append('tbody'); 76 tbody = table.append('tbody');
79 77
......