Commit Graph

185 Commits

Author SHA1 Message Date
John Firebaugh acaaab5dc9 Extract iD.svg.Surface 2013-01-11 16:01:39 -08:00
John Firebaugh cf5efdcfa1 Lint fixes 2013-01-11 14:54:51 -08:00
John Firebaugh 7dc1945ee3 accuracy-handle -> midpoint 2013-01-11 14:54:51 -08:00
Ansis Brammanis c894ad26f2 nicer getComputedLength caching 2013-01-11 17:28:04 -05:00
John Firebaugh b8310e2d9f Move to iD.svg.TagClasses 2013-01-11 11:56:37 -08:00
Ansis Brammanis 486c201a21 Fix jerk after dragging 2013-01-11 13:39:14 -05:00
Ansis Brammanis f9d205385a Merge branch 'master' of github.com:systemed/iD 2013-01-11 11:32:32 -05:00
Ansis Brammanis 59bfe703fd Restrict zoom while drawing 2013-01-11 11:32:07 -05:00
John Firebaugh 809b73599c Merge points code into iD.svg.Points 2013-01-11 07:49:26 -08:00
John Firebaugh 1e5e588ae6 Clean up 2013-01-11 07:49:26 -08:00
John Firebaugh 68a430cf70 Clean up 2013-01-11 07:09:07 -08:00
John Firebaugh 6aa43f44d0 Split map rendering into some components 2013-01-11 07:04:40 -08:00
John Firebaugh 2ab572bd42 iD.Entity.key 2013-01-10 21:05:03 -08:00
Ansis Brammanis 1eb5744b8d Make vertex tag edits show up in inspector 2013-01-09 16:45:03 -05:00
Tom MacWright 11b3d0d24c Fix #351 2013-01-09 14:57:42 -05:00
Tom MacWright eedc0fce9d Fast parent calculation. 2013-01-09 14:52:39 -05:00
Tom MacWright 850e7d6568 Optimize difference and parentWays 2013-01-09 13:45:04 -05:00
Tom MacWright 9fde54c2c7 Inline image css to fix selector perf, was about 3% 2013-01-09 12:53:01 -05:00
Tom MacWright 7d705b4bd5 Restyle notice and move responsibility for it outside of the map. Fixes #131 2013-01-09 12:40:17 -05:00
Ansis Brammanis 57c0504dac Fix right click on map from propagating 2013-01-08 18:37:51 -05:00
Tom MacWright 2079918e8f Fix for deleting elements 2013-01-08 16:52:00 -05:00
Tom MacWright b244d37368 Fix bad typeof 2013-01-08 16:10:57 -05:00
Tom MacWright 9fc05f5e35 Zoom-dependent styles, optimize difference algorithm. 2013-01-08 16:07:16 -05:00
Tom MacWright 8f194e717e Fix regression around styles. Fixes #339 2013-01-08 14:58:22 -05:00
Tom MacWright 80fc009497 Strict test against correct values 2013-01-08 12:28:48 -05:00
Tom MacWright b1c1844941 jshint touchups 2013-01-08 12:21:53 -05:00
John Firebaugh f8e2dfb9ce Preserve existing non-tag classes 2013-01-07 21:33:35 -08:00
John Firebaugh b6beed5606 Prefix tag classes with tag-
When re-rendering, existing non-tag-related classes
such as `selected`, `active`, `hover`, etc. should be
preserved. Without a prefix, it's difficult to
distinguish them from tag classes.
2013-01-07 19:47:56 -08:00
Tom MacWright 9695205e92 Guard against Firefox bug around hidden elements. Fixes #328 2013-01-07 16:23:43 -05:00
John Firebaugh f8ea7d1e98 Fix accuracy handles 2013-01-07 10:08:07 -08:00
John Firebaugh 4b63823130 Use Entity#geometry() 2013-01-07 09:54:00 -08:00
Tom MacWright 00da444a33 Merge pull request #322 from systemed/inspector-intersect
Inspector intersect
2013-01-07 09:15:10 -08:00
Tom MacWright 12beb14d07 Work on #250
Implement inspector without a collapsed mode and with semi-intelligent
detection of whether features will conflict with the position of the
inspector. Also adds a `centerEase` fn to the map object.
2013-01-07 11:51:04 -05:00
John Firebaugh 2d3ce6c125 Extract hover behavior 2013-01-07 08:34:37 -08:00
Tom MacWright fb9052818d Fix global leaks 2013-01-04 17:44:39 -05:00
Tom MacWright fdc64c232a Implement layer offset nudging. Fixes #292 2013-01-04 17:35:26 -05:00
Tom MacWright 1107f7dc7f Optimize calls, generation of accuracy handles 2013-01-04 14:43:47 -05:00
Tom MacWright 6475b1993b Add MapBox Satellite layer. Fixes #318 2013-01-04 13:40:22 -05:00
Tom MacWright 5671a73dba Use groups and fill/strokes for all points except for accuracy handles.
Fixes #278
2013-01-04 12:59:06 -05:00
Tom MacWright 3f8a872d79 Double click to add detail to lines. Fixes #298 2013-01-04 12:36:23 -05:00
Tom MacWright 1c90441881 Do point hover scaling without r. 2013-01-04 12:05:20 -05:00
Tom MacWright 2860cc2fcb Name callbacks to make profiles more usable 2013-01-02 17:31:51 -05:00
Tom MacWright f5873a3bc1 Add .hoverEnable to map and disable it for drawing-related modes. Fixes #234 2013-01-02 14:29:04 -05:00
Tom MacWright aca0098ea0 Use 2d transforms and fix jshint problems 2013-01-02 13:01:18 -05:00
John Firebaugh c927ff5b5d Rationalize vocabulary
- nodes
  - vertices
  - points
- ways
  - lines
  - areas
2012-12-29 09:18:05 -08:00
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