Commit Graph

65 Commits

Author SHA1 Message Date
John Firebaugh
f0acbc2653 loc -> point, dxdy -> delta 2012-12-21 12:10:44 -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
Tom MacWright
adb8ab53ce Update relation tests 2012-12-07 16:01:14 -05:00
Tom MacWright
5371d42cdf Continue with splitWay 2012-12-07 14:33:16 -05:00
Tom MacWright
6d7b135b22 Push more on split_way 2012-12-07 14:03:03 -05:00
Tom MacWright
bb6c0489a0 Fix adding to ways in the reverse direction 2012-12-07 12:01:48 -05:00
Tom MacWright
f74b29d93a Rudientary splitting of ways 2012-12-07 11:03:15 -05:00
Tom MacWright
618f5cc486 Merge branch 'master' of github.com:systemed/iD 2012-12-07 10:42:24 -05:00
Tom MacWright
f49728872e Fix way finishing, start on split way 2012-12-07 10:42:16 -05:00
John Firebaugh
3e45afbc5e Move history annotation to History#perform/replace
Actions are too low-level for annotations.
2012-12-07 10:35:39 -05:00
Tom MacWright
23856cc1c5 Reclose ways if you delete the repeated node. Fixes #221 2012-12-07 10:25:09 -05:00
Tom MacWright
7c82710dbf Fix deleting areas 2012-12-07 10:11:42 -05:00
John Firebaugh
8854dac623 More action specs; fix ReverseWay 2012-12-06 19:16:54 -05:00
John Firebaugh
9743ee282b More mode and action overhaul
Pass entities to actions via id; this allows safe composition
of actions that modify the same entity.

Fix remaining ghost node cases (#213).

Create more logical undo states when drawing.
2012-12-06 18:39:51 -05:00
John Firebaugh
79e2d08c0d StartWay -> AddWay (for parallelism with AddNode) 2012-12-06 18:36:03 -05:00
John Firebaugh
077e5cc9ce Rename various actions 2012-12-05 16:42:48 -05:00
John Firebaugh
5666cb774e Finish iD.actions.DeleteWay (fixes #72) 2012-12-05 16:35:13 -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
36f4ef2533 Extract iD.modes.Select (fixes #188) 2012-12-05 12:23:12 -05:00
John Firebaugh
c878fb3fcf Simplify 2012-12-05 10:30:31 -05:00
John Firebaugh
433dced53d Simplify node handling in modes 2012-12-05 09:48:00 -05:00
John Firebaugh
551a2df24e Replace Entity.{lat,lon} with Entity.loc
Fixes #189
2012-12-05 09:48:00 -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
cdacdca2af Sort handles, fix area closing 2012-12-04 17:40:37 -05:00
Tom MacWright
ea02651ed9 Merge branch 'master' of github.com:systemed/iD
Conflicts:
	js/id/actions/modes.js
2012-12-04 17:32:55 -05:00
Tom MacWright
d66c27c578 Simplify modes more 2012-12-04 17:31:14 -05:00
John Firebaugh
a316544008 Use datum() 2012-12-04 17:27:02 -05:00
John Firebaugh
6780ecb75b Add whitespace, cleanup, fix global leaks 2012-12-04 17:27:02 -05:00
Tom MacWright
5ef3eed3b0 Simplify modes, expose redraw 2012-12-04 17:23:09 -05:00
Tom MacWright
340b97c0e9 Split more functionality into util.geo and test it. 2012-12-04 16:52:59 -05:00
Tom MacWright
e2b5a3f8ab New-style keybindings in modes 2012-12-04 16:31:39 -05:00
Tom MacWright
4978cd0c12 Resurface keybindings 2012-12-04 15:51:42 -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
John Firebaugh
e3e17203cf Remove Map#redraw calls from modes
Map#redraw no longer accepts an argument, and changes to
the history automatically trigger a redraw.

It should be possible to calculate a set of changed entities
between two history versions, and redraw only those entities.
2012-12-04 11:35:56 -05:00
John Firebaugh
fadbaf46a6 Use this.history directly 2012-12-03 18:41:04 -05:00
John Firebaugh
da5239b98d Eliminate Map#{perform,undo,redo}
Map binds to history changes instead.
2012-12-03 18:37:41 -05:00
John Firebaugh
0370b487e3 Inject history dependency in map 2012-12-03 18:37:41 -05:00
Tom MacWright
bd1a34153a First shot at way accuracy handles 2012-12-03 17:08:53 -05:00
Tom MacWright
f149c899bb Rework about 2012-12-03 16:32:26 -05:00
Tom MacWright
62cdaa7075 Merge branch 'master' of github.com:systemed/iD
Conflicts:
	js/id/actions/modes.js
2012-12-03 16:25:39 -05:00
Tom MacWright
200b4f67d5 Clean up actions 2012-12-03 16:24:35 -05:00
John Firebaugh
1972711a66 Exit indirectly via controller (fixes #147) 2012-12-03 16:22:08 -05:00
Tom MacWright
4abc8b394b Select entity when you finish drawing a way. Fixes #143 2012-11-30 16:29:18 -05:00
Tom MacWright
2cde9b6212 Fix editing when your node is new 2012-11-29 16:56:06 -05:00
Tom MacWright
15267af822 Support drawing areas when you start out with ways 2012-11-29 16:43:56 -05:00