John Firebaugh
6df64dbf37
Switch to number keys 1-4 for modes ( fixes #731 )
2013-02-12 11:00:11 -08:00
Ansis Brammanis
915bcf7826
Fix drawing, leaking globals
2013-02-05 00:41:07 -05:00
Ansis Brammanis
c8ab057f19
Remove unused midpoint code
2013-02-04 18:26:45 -05:00
John Firebaugh
579d632563
Hoist functions up a scope
2013-02-01 12:40:15 -05:00
John Firebaugh
7e68e8e114
Add iD.Context
...
This is a facade interface that ties together a bunch of
different internal objects and will make it easier to write
tests for behaviors, modes, and operations.
2013-02-01 12:40:15 -05:00
John Firebaugh
6f7079d11c
AddWay/AddNode -> AddEntity
2013-01-31 12:06:21 -05:00
John Firebaugh
1bfe1359ec
AddWayNode -> AddVertex
2013-01-31 12:06:21 -05:00
John Firebaugh
2655810efe
Remove unused parameter
2013-01-31 12:06:21 -05:00
John Firebaugh
7e8126ded9
I18n for modes and operations
2013-01-31 11:20:41 -05:00
John Firebaugh
363cd53af1
Rearrange code
2013-01-30 16:17:30 -05:00
John Firebaugh
168a3b5e26
Fix drawing on midpoints ( fixes #559 )
2013-01-30 16:14:29 -05:00
John Firebaugh
859ae1c1cc
DrawWay#cancel shouldn't unconditionally delete the way
...
Fixes #514 .
2013-01-28 16:39:31 -05:00
Tom MacWright
6ae683dedc
Hints for keybindings. Refs #517
2013-01-28 16:18:49 -05:00
John Firebaugh
e09666bbdc
Fixing draw mode bugs
...
Disabling interactive draw undo for now. I know how to fix it
but it's a bit tricky. So undo will just drop you out to browse
mode for the time being.
Fixes #477 .
Fixes #516 .
2013-01-26 15:24:14 -05:00
John Firebaugh
dd03544a00
Extract AddWay behavior
2013-01-24 18:04:40 -05:00
Tom MacWright
2527d57404
Simple map-tail minimalism. Fixes #467
2013-01-24 17:26:52 -05:00
John Firebaugh
d83eb7647a
Connect areas to lines ( fixes #476 )
2013-01-24 17:04:24 -05:00
John Firebaugh
18c7267010
Extract Draw behavior
...
Fixed some bugs but introduced others.
2013-01-24 17:00:48 -05:00
John Firebaugh
ff15aa8e7b
Rewrite d3.keybinding
...
A keybinding now represents a set of key commands that can
be unbound as a set. Multiple keybindings are possible, and,
providing a namespace is provided to the constructor, will
not conflict with each other.
Also, key combination strings such as ⌘+A are now supported.
2013-01-22 14:55:08 -05:00
Tom MacWright
fd2ef2a78b
Rename tooltip to tail, use tail in modes.
2013-01-17 12:07:26 -05:00
Ansis Brammanis
a980695ee7
Avoid creating lines with < 2 nodes (or areas < 3)
2013-01-16 12:20:35 -05:00
John Firebaugh
2d3ce6c125
Extract hover behavior
2013-01-07 08:34:37 -08: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
John Firebaugh
40a32de443
Hide select cursors when in draw modes ( fixes #290 )
2012-12-21 13:32:39 -08:00
Tom MacWright
811187620d
jshint fixes
2012-12-18 10:47:32 -05:00
Saman Bemel-Benrud
9ab37f612d
Merge branch 'master' of github.com:systemed/iD
2012-12-14 16:30:47 -05:00
Saman Bemel-Benrud
37c79c0500
basic cursor stuff.
2012-12-14 16:30:31 -05:00
Tom MacWright
24b6e8adb2
Just an area tag. Fixes #282
2012-12-14 15:04:54 -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
John Firebaugh
d4832e2e95
Add closing segment of drawn areas ( fixes #217 )
2012-12-07 14:21:30 -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
John Firebaugh
384ca15040
Continuing mode clean up
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
Tom MacWright
6e9d9ba274
Refactor modes, use latedrag
2012-12-06 17:54:32 -05:00
Tom MacWright
3f97ca10c5
Keep buttons active during all phases. Fixes #200
2012-12-05 18:36:34 -05:00
John Firebaugh
077e5cc9ce
Rename various actions
2012-12-05 16:42:48 -05:00
Tom MacWright
bf29581ae1
Add tooltips to action buttons
2012-12-05 16:13:09 -05:00
Tom MacWright
bc91f4956d
Add simple hint api
2012-12-05 14:26:37 -05:00
John Firebaugh
774d1de017
Clean up modes
2012-12-05 13:11:16 -05:00
John Firebaugh
54d474a8ca
Convert all modes to module pattern
2012-12-05 12:52:26 -05:00
John Firebaugh
435be12529
Split modes into separate files
2012-12-05 12:52:26 -05:00