reformatted svg/notes

This commit is contained in:
Thomas Hervey
2018-06-19 10:45:58 -04:00
parent 1ed915e69c
commit 3de1fd8e6f
+25 -24
View File
@@ -1,30 +1,31 @@
export function svgNotes(projection, context, dispatch) {
var enabled = false;
var enabled = false;
function drawNotes() {
function drawNotes() {
}
function showLayer() {
}
function hideLayer() {
}
drawNotes.enabled = function(_) {
if (!arguments.length) return enabled;
enabled = _;
if (enabled) {
showLayer();
} else {
hideLayer();
}
dispatch.call('change');
return this;
};
function showLayer() {
return drawNotes;
}
}
function hideLayer() {
}
drawNotes.enabled = function(_) {
if (!arguments.length) return enabled;
enabled = _;
if (enabled) {
showLayer();
} else {
hideLayer();
}
dispatch('change');
return this;
};
return drawNotes;
}