From 83373fa775cbd91e2fa4b12d2158ce0a0e40b217 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Thu, 15 Nov 2012 11:18:24 -0500 Subject: [PATCH] Reference more prior work --- js/iD/actions/operations.js | 5 +++++ js/iD/renderer/style.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/js/iD/actions/operations.js b/js/iD/actions/operations.js index ab1e400b3..075d0ef22 100644 --- a/js/iD/actions/operations.js +++ b/js/iD/actions/operations.js @@ -6,6 +6,7 @@ iD.operations.noop = function() { }; }; +// https://github.com/openstreetmap/josm/blob/mirror/src/org/openstreetmap/josm/command/AddCommand.java iD.operations.addNode = function(node) { return function(graph) { return graph.replace(node, 'added a place'); @@ -18,12 +19,14 @@ iD.operations.startWay = function(way) { }; }; +// https://github.com/openstreetmap/potlatch2/blob/master/net/systemeD/halcyon/connection/actions/DeleteWayAction.as iD.operations.remove = function(node) { return function(graph) { return graph.remove(node, 'removed a feature'); }; }; +// https://github.com/openstreetmap/potlatch2/blob/master/net/systemeD/halcyon/connection/actions/AddNodeToWayAction.as iD.operations.changeWayNodes = function(way, node) { return function(graph) { return graph.replace(way.update({ @@ -40,6 +43,8 @@ iD.operations.changeTags = function(node, tags) { }; }; +// https://github.com/openstreetmap/josm/blob/mirror/src/org/openstreetmap/josm/command/MoveCommand.java +// https://github.com/openstreetmap/potlatch2/blob/master/net/systemeD/halcyon/connection/actions/MoveNodeAction.as iD.operations.move = function(entity, to) { return function(graph) { return graph.replace(entity.update({ diff --git a/js/iD/renderer/style.js b/js/iD/renderer/style.js index a317797cd..8749cc1e3 100644 --- a/js/iD/renderer/style.js +++ b/js/iD/renderer/style.js @@ -4,7 +4,7 @@ iD.Style = {}; // // Since SVG does not support z-index, we sort roads manually with d3's `sort` // and the `waystack` fn. -// +// // This also chooses kosher CSS classes for ways, and marker images for POIs iD.Style.highway_stack = {