Commit Graph

140 Commits

Author SHA1 Message Date
John Firebaugh 5fe22be7a0 Introduce real Entity subclasses 2012-12-28 18:42:21 -08:00
John Firebaugh 78569a5ef3 Extract select behavior to mode
While here, use a more appropriate class (.selected).
2012-12-27 18:52:55 -08:00
John Firebaugh 883acd3e60 two-parents -> shared
It might have more than two parents.
2012-12-22 14:46:16 -08: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 61da54b8af Fix map 2012-12-17 15:40:38 -08:00
Tom MacWright 808d5ca8d7 Transition handles as well. Fixes #287 2012-12-17 17:41:44 -05:00
Tom MacWright e8a14f8b5b Make handles connected to more than one way cyan. Fixes #205 2012-12-17 14:06:27 -05:00
Tom MacWright c32a1e8fdc New limit of 10,000 features. Fixes #283 2012-12-14 17:06:04 -05:00
Tom MacWright e20a35d7c9 Append notice to supersurface. Fixes #266 2012-12-14 14:51:05 -05:00
Tom MacWright ae9ebda78b Add accuracy handles for areas as well. 2012-12-14 14:38:13 -05:00
Saman Bemel-Benrud 5da434497b resolved conflict. 2012-12-14 12:17:49 -05:00
Saman Bemel-Benrud a78b10a765 map marker style adjustments, more work to inspector. 2012-12-14 12:10:02 -05:00
John Firebaugh 070ee74ff6 Remove unused 2012-12-13 17:43:51 -08:00
John Firebaugh c5dbebc063 Move keybinding to map 2012-12-13 17:39:06 -08:00
Tom MacWright ab2b4efb85 Custom layer support. Fixes #249 2012-12-13 14:51:34 -05:00
Tom MacWright a9447cffb5 Fix node hovers. Fixes #260 2012-12-13 12:38:35 -05:00
Saman Bemel-Benrud 03020fb517 resolved conflict. 2012-12-12 20:46:12 -05:00
Saman Bemel-Benrud c93cd4c9a3 starting to style handles. 2012-12-12 20:44:05 -05:00
Tom MacWright f0184fe887 Fixup double click after, Fixes #254 2012-12-12 19:06:23 -05:00
Tom MacWright 554c4c8212 Fix bad tile on load. Fixes #192 2012-12-12 18:45:51 -05:00
Tom MacWright 3cbf3739c0 Restrict zoom to scaleExtent 2012-12-12 16:32:40 -05:00
Tom MacWright 58255a042b Redraw vectors 2012-12-12 15:51:49 -05:00
Tom MacWright b18ba11a09 Fixes #229 and road closing nodes. Order matters for history.replace 2012-12-11 15:58:17 -05:00
Tom MacWright 435b7f46fc Namespace all events 2012-12-11 12:02:01 -05:00
John Firebaugh a9ae2d908e Fix node redraw when escaping from draw mode
This is the case where the Array of changed element IDs
contains an ID for which there is no corresponding entity
in the graph. While `all` will not contain this entity,
the filter should still return true given its id, so that
it will appear in the exit selection and be removed.
2012-12-07 19:14:30 -05:00
Tom MacWright bba14c2cba Merge pull request #231 from systemed/design-overhaul
Design overhaul
2012-12-07 14:42:30 -08:00
Saman Bemel-Benrud e82bf1a8b0 basic style overhaul complete. 2012-12-07 17:39:33 -05:00
Tom MacWright 8c76b7d1b1 Fix accuracy handles updating 2012-12-07 14:06:47 -05:00
John Firebaugh ff5839a277 Reimplement differenced rendering (fixes #219) 2012-12-07 14:01:52 -05:00
John Firebaugh 7eec007740 Get internal ID logic in one place 2012-12-07 10:32:51 -05:00
Tom MacWright a9e68ce3ee Undo moved technique 2012-12-07 10:02:55 -05:00
Tom MacWright 7cb6cfbe04 Refactor drag features into sub-control and allow dragging in selection
mode
2012-12-07 09:57:30 -05:00
Tom MacWright 9b71f48521 Fix accuracy nodes 2012-12-06 19:41:43 -05:00
Tom MacWright 16f102b410 Fix accuracy handy disappearance 2012-12-06 19:26:52 -05:00
Tom MacWright 0ce26b9131 Move support3d to util 2012-12-06 19:03:13 -05:00
Tom MacWright 54ff10ca6a Only listen for load once. Remove tiles on error 2012-12-06 18:01:57 -05:00
Tom MacWright 6e9d9ba274 Refactor modes, use latedrag 2012-12-06 17:54:32 -05:00
Tom MacWright cd3129061c Refactor dragging, include latedrag 2012-12-06 17:33:02 -05:00
Tom MacWright 7f6a06f9bb Move scaleExtent into background sources 2012-12-06 16:10:44 -05:00
Tom MacWright dc37eb99b4 Fix dragging while drawing, fix delete binding. Fixes #184 2012-12-06 15:51:48 -05:00
Tom MacWright a94eb35ddd Merge branch 'master' of github.com:systemed/iD 2012-12-06 15:21:59 -05:00
John Firebaugh bdbcc5c331 Fix hover 2012-12-06 15:11:41 -05:00
John Firebaugh d02e35e16b Fix error when hovering way accuracy handles 2012-12-06 15:08:07 -05:00
Tom MacWright f9455270f1 Do pyramid loading in both directions, use transforms for tile sizing.
Fixes #190
2012-12-06 15:07:37 -05:00
John Firebaugh 4ee6e3ac1a Remove duplicate intersection function 2012-12-06 14:22:33 -05:00
Tom MacWright aa5c86131f Properly style natural-water. Fixes #211 2012-12-06 13:54:22 -05:00
Tom MacWright 6a63f26bf5 Refactor line drawing 2012-12-06 11:29:32 -05:00
Tom MacWright 5c6c271394 Split background sources into background_source 2012-12-06 11:12:06 -05:00
John Firebaugh 1c5878fa49 Highlight roads when hovering stroke (fixes #165) 2012-12-06 10:49:32 -05:00
John Firebaugh fd5874a96b Remove unnecessary redraws 2012-12-06 10:49:32 -05:00