mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
NodeUI and WayUI documentation
This commit is contained in:
@@ -9,6 +9,7 @@ define(['dojo/_base/declare','dojo/_base/lang','dojo/_base/array','dojox/gfx/_ba
|
||||
|
||||
declare("iD.renderer.NodeUI", [iD.renderer.EntityUI], {
|
||||
constructor:function() {
|
||||
// summary: A UI (rendering) representing a node.
|
||||
this.redraw();
|
||||
},
|
||||
getEnhancedTags:function() {
|
||||
@@ -18,6 +19,7 @@ declare("iD.renderer.NodeUI", [iD.renderer.EntityUI], {
|
||||
return tags;
|
||||
},
|
||||
redraw:function() {
|
||||
// summary: Draw the object (mostly icons) and add hitzone sprites.
|
||||
var node=this.entity;
|
||||
this.removeSprites();
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// iD/renderer/WayUI.js
|
||||
// WayUI classes for iD
|
||||
// **** TODO:
|
||||
// multipolygon support - http://mail.dojotoolkit.org/pipermail/dojo-interest/2011-January/052042.html
|
||||
// support 'interactive'
|
||||
// line decoration, dots etc.
|
||||
@@ -13,6 +14,7 @@ define(['dojo/_base/declare','dojo/_base/lang','iD/renderer/EntityUI'], function
|
||||
|
||||
declare("iD.renderer.WayUI", [iD.renderer.EntityUI], {
|
||||
constructor:function() {
|
||||
// summary: A UI (rendering) representing a way.
|
||||
this.redraw();
|
||||
},
|
||||
getEnhancedTags:function() {
|
||||
@@ -21,9 +23,11 @@ declare("iD.renderer.WayUI", [iD.renderer.EntityUI], {
|
||||
return tags;
|
||||
},
|
||||
recalculate:function() {
|
||||
// summary: Not yet implemented - calculate length/centrepoint of UI for use in rendering.
|
||||
// ** FIXME: todo
|
||||
},
|
||||
redraw:function() {
|
||||
// summary: Draw the object and add hitzone sprites.
|
||||
var way=this.entity;
|
||||
var maxwidth=4;
|
||||
var i;
|
||||
|
||||
Reference in New Issue
Block a user