From 3de1fd8e6f94f01ce3ea133168a9cdf839ddeef7 Mon Sep 17 00:00:00 2001 From: Thomas Hervey Date: Tue, 19 Jun 2018 10:45:58 -0400 Subject: [PATCH] reformatted svg/notes --- modules/svg/notes.js | 49 ++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/modules/svg/notes.js b/modules/svg/notes.js index 8663d1f37..070dd3b49 100644 --- a/modules/svg/notes.js +++ b/modules/svg/notes.js @@ -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; +} \ No newline at end of file