Commit Graph

25 Commits

Author SHA1 Message Date
John Firebaugh 2a6145ef10 Move friendlyName to Entity 2013-01-02 21:43:35 -08:00
Tom MacWright 06c3caa1c0 Expand util tests 2013-01-02 13:26:36 -05:00
Tom MacWright aca0098ea0 Use 2d transforms and fix jshint problems 2013-01-02 13:01:18 -05:00
John Firebaugh 2c40de62be Add iD.behavior.drag
`iD.behavior.drag` is like `d3.behavior.drag`, with the following differences:

* The `origin` function is expected to return an [x, y] tuple rather than an
  {x, y} object.
* The events are `start`, `move`, and `end`.
  (https://github.com/mbostock/d3/issues/563)
* The `start` event is not dispatched until the first cursor movement occurs.
  (https://github.com/mbostock/d3/pull/368)
* The `move` event has a `loc` and `dxdy` [x, y] tuple properties rather
  than `x`, `y`, `dx`, and `dy` properties.
* The `end` event is not dispatched if no movement occurs.
* An `off` function is available that unbinds the drag's internal event handlers.
* Delegation is supported via the `delegate` function.
2012-12-21 12:10:43 -08:00
John Firebaugh 8b889a4e48 Make readable 2012-12-21 12:10:43 -08:00
Tom MacWright c161efb9a7 Pay attention to natural tag, understand the d3 problem 2012-12-17 16:19:15 -05:00
Tom MacWright 19082bcf2a Make spliced nodes straight. Fixes #241 2012-12-09 00:00:23 -05:00
John Firebaugh 7eec007740 Get internal ID logic in one place 2012-12-07 10:32:51 -05:00
Tom MacWright 0ce26b9131 Move support3d to util 2012-12-06 19:03:13 -05:00
John Firebaugh 4ee6e3ac1a Remove duplicate intersection function 2012-12-06 14:22:33 -05:00
tyr b18fa96f95 fixed global var leak 2012-12-06 11:37:57 +01:00
tyr 87252a73f1 fixed support3d to reuse transformProp. prefixProperty returns false instead of "" when the property isn't supported at all 2012-12-06 11:09:09 +01:00
tyr 2b84eaad73 removed now obsolete prefix() utility method 2012-12-06 10:44:01 +01:00
tyr e4ceca76ec more clever prefix detection. (use unprefixed property when available.) 2012-12-06 10:38:55 +01:00
tyr 25b6290f4d cutomizable prefix grabber. proper support3d test. removed -o- prefix from transform property. 2012-12-06 10:38:49 +01:00
Tom MacWright 5e56b12d85 Formatting and jshint 2012-12-05 16:55:27 -05:00
John Firebaugh 551a2df24e Replace Entity.{lat,lon} with Entity.loc
Fixes #189
2012-12-05 09:48:00 -05:00
Tom MacWright 22fe35723f Clean up, move stringQs to util 2012-12-04 18:28:22 -05:00
Tom MacWright 340b97c0e9 Split more functionality into util.geo and test it. 2012-12-04 16:52:59 -05:00
Tom MacWright 8c3aa832f0 Rename Util to util, expand tests, move more out of map.js 2012-12-04 12:53:16 -05:00
Tom MacWright bd1a34153a First shot at way accuracy handles 2012-12-03 17:08:53 -05:00
Tom MacWright b3853e6485 Taginfo, typeahead 2012-12-03 16:12:05 -05:00
Tom MacWright f7fcf37197 Fix deletion, make active class clearer, refocus on DC, fix friendlyName 2012-11-29 09:35:48 -05:00
Tom MacWright 80ea085f35 Get node-dependent osmChange working 2012-11-28 15:13:31 -05:00
Tom MacWright 936cefb4ef Rename and update 2012-11-27 17:51:03 -05:00