John Firebaugh
e24b22b518
Extract iD.svg.LineString
2013-01-17 11:57:29 -08:00
Tom MacWright
1a81a8508a
Fix mocha globals for window event listener
2013-01-17 13:21:03 -05:00
Tom MacWright
f66535f068
Fix tests
2013-01-17 13:14:46 -05:00
Tom MacWright
8def2e0999
Remove style and references to it
2013-01-16 13:07:30 -05:00
Tom MacWright
4808a8ec9d
Improve test coverage of ui elements
2013-01-16 12:29:59 -05:00
Tom MacWright
72afc6dcb9
Namespace UI components
2013-01-14 14:00:51 -05:00
John Firebaugh
4c6757714c
parentWays/Relations now take an entity
2013-01-11 17:26:25 -08:00
John Firebaugh
acaaab5dc9
Extract iD.svg.Surface
2013-01-11 16:01:39 -08:00
John Firebaugh
45fd260d8f
Add basic Area test
2013-01-11 15:49:56 -08:00
John Firebaugh
7dc1945ee3
accuracy-handle -> midpoint
2013-01-11 14:54:51 -08:00
John Firebaugh
e95d163dbc
Apply tag classes to vertices and points
...
While here, introduce a `classed` matcher for Chai.
2013-01-11 12:22:23 -08:00
John Firebaugh
577398ca21
Fix .shared classing
...
Now that Graph#parentWays is cached, the specialized Graph#parentStructure
method is no longer necessary.
This commit also demonstrates that it's relatively easy to write specs for
rendering now!
2013-01-11 11:56:37 -08:00
John Firebaugh
b8310e2d9f
Move to iD.svg.TagClasses
2013-01-11 11:56:37 -08:00
John Firebaugh
809b73599c
Merge points code into iD.svg.Points
2013-01-11 07:49:26 -08:00
John Firebaugh
6aa43f44d0
Split map rendering into some components
2013-01-11 07:04:40 -08:00
John Firebaugh
1e7e874ad7
Remove jsonp test reference
2013-01-10 21:08:34 -08:00
John Firebaugh
d5fbe32b1d
Remove d3.jsonp (only wiki.js used it)
2013-01-10 21:00:24 -08:00
John Firebaugh
cddef8d7c8
Remove deleted and duplicated script includes
2013-01-10 19:43:22 -08:00
Tom MacWright
3b5f6dd8bd
Support images from the wiki, adds d3.jsonp extension.
2013-01-09 11:31:53 -05:00
Tom MacWright
a293691643
Move taginfo into service
2013-01-09 10:29:42 -05:00
John Firebaugh
bcb4de4305
Reverse directional tags and roles when reversing a way
...
Reverse known direction dependent tags other than `oneway`.
We assume that correcting a backwards oneway is the primary
reason for reversing a way.
The following transforms are performed:
Keys:
*:right=* ⟺ *:left=*
*:forward=* ⟺ *:backward=*
direction=up ⟺ direction=down
incline=up ⟺ incline=down
*=right ⟺ *=left
Relation members:
role=forward ⟺ role=backward
In addition, numeric-valued `incline` tags are negated.
The JOSM implementation was used as a guide, but transformations that
were of unclear benefit or adjusted tags that don't seem to be used
in practice were omitted.
References:
http://wiki.openstreetmap.org/wiki/Forward_%26_backward,_left_%26_right
http://wiki.openstreetmap.org/wiki/Key:direction#Steps
http://wiki.openstreetmap.org/wiki/Key:incline
http://wiki.openstreetmap.org/wiki/Route#Members
http://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
Fixes #299 .
2013-01-07 16:26:56 -08:00
John Firebaugh
2d3ce6c125
Extract hover behavior
2013-01-07 08:34:37 -08:00
John Firebaugh
4a7bd26be8
Add 'Add Tag' button ( #314 ), needs style
...
Fixes #281 .
2013-01-03 23:16:34 -08:00
John Firebaugh
3ffa8066c5
Taginfo typeahead on keys as well as values
2013-01-01 18:43:22 -08:00
John Firebaugh
c927ff5b5d
Rationalize vocabulary
...
- nodes
- vertices
- points
- ways
- lines
- areas
2012-12-29 09:18:05 -08:00
John Firebaugh
f7dfda46b2
Move Entity subclasses to separate files
2012-12-28 22:17:09 -08:00
John Firebaugh
5fe22be7a0
Introduce real Entity subclasses
2012-12-28 18:42:21 -08:00
John Firebaugh
6a4b75aa88
latedrag functionality was merged into iD.behavior.drag
2012-12-21 12:29:59 -08:00
John Firebaugh
2c8bbd8985
Integrate new drag behaviors
2012-12-21 12:10:44 -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
ad0efa4931
Place -> Point
...
We decided to use geometric terms for the modes.
2012-12-14 14:39:38 -08:00
John Firebaugh
209b87f7e8
Extract MoveWay action
2012-12-13 17:39:07 -08:00
John Firebaugh
ee3f5cc768
Move -> MoveNode, in preparation for MoveWay
2012-12-13 17:39:07 -08:00
John Firebaugh
c37aa11408
Start testing modes
2012-12-13 17:39:06 -08:00
John Firebaugh
c5dbebc063
Move keybinding to map
2012-12-13 17:39:06 -08:00
Tom MacWright
8e14a9a13c
Refactor geocoder into ui component, refactor clickoutside technique.
...
Fixes #251
2012-12-13 14:18:49 -05:00
Tom MacWright
52d9227232
Rename add road to add line. Fixes #252
2012-12-13 12:06:12 -05:00
John Firebaugh
8854dac623
More action specs; fix ReverseWay
2012-12-06 19:16:54 -05:00
John Firebaugh
79e2d08c0d
StartWay -> AddWay (for parallelism with AddNode)
2012-12-06 18:36:03 -05:00
Tom MacWright
5c6c271394
Split background sources into background_source
2012-12-06 11:12:06 -05:00
John Firebaugh
077e5cc9ce
Rename various actions
2012-12-05 16:42:48 -05:00
John Firebaugh
812b427ac4
Split remove action into DeleteWay and DeleteNode
2012-12-05 16:14:39 -05:00
John Firebaugh
33beb3d2f0
Split actions into separate files
2012-12-05 16:14:39 -05:00
John Firebaugh
4a3169bb1d
Test/refine iD.actions.remove
2012-12-05 16:14:39 -05:00
John Firebaugh
435be12529
Split modes into separate files
2012-12-05 12:52:26 -05:00
John Firebaugh
76849596f8
Move node removal into removeNodeWay action
2012-12-04 18:07:26 -05:00
John Firebaugh
f8fde1f10d
Move node update into addWayNode action
2012-12-04 17:54:08 -05:00
Tom MacWright
a0d28c1e2d
Expand tests, move way logic into entity.js and test it.
2012-12-04 13:06:21 -05:00
John Firebaugh
b4707c3a1f
Mirror main directory structure in specs
2012-12-04 09:50:07 -05:00
John Firebaugh
e93c9624d8
Convert History to module pattern
...
There is only ever one History, so memory use is not a
concern.
2012-12-03 18:37:41 -05:00