mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
reformatted svg/notes
This commit is contained in:
+25
-24
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user