mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
35 lines
774 B
JavaScript
35 lines
774 B
JavaScript
// iD/controller/shape/SelectedWayNode.js
|
|
|
|
/*
|
|
Add road or shape -> SelectedWayNode
|
|
|
|
The user has clicked 'Add road or shape', then a way-node to start the way at.
|
|
|
|
*/
|
|
|
|
define(['dojo/_base/declare',
|
|
'iD/actions/UndoableAction',
|
|
'iD/controller/ControllerState',
|
|
], function(declare){
|
|
|
|
// ----------------------------------------------------------------------
|
|
// SelectedWayNode class
|
|
|
|
declare("iD.controller.shape.SelectedWayNode", [iD.controller.ControllerState], {
|
|
|
|
constructor:function() {
|
|
},
|
|
|
|
processMouseEvent:function(event,entityUI) {
|
|
var entity=entityUI ? entityUI.entity : null;
|
|
var entityType=entity ? entity.entityType : null;
|
|
|
|
return this;
|
|
},
|
|
|
|
});
|
|
|
|
// ----------------------------------------------------------------------
|
|
// End of module
|
|
});
|