Tom MacWright
b21f863312
The one true coordinate order. Fixes #1025
2013-03-13 17:48:40 -04:00
John Firebaugh
9f5ba8342d
Convert DragNode to a mode
...
This makes the CSS more consistent and makes fixing #953
easier. Also, dragging now clears the selection and closes
any operations menu, which is good.
There's still a minor Chrome bug: it doesn't refresh the
cursor when the .behavior-hover class is removed.
2013-03-11 15:45:27 -07:00
Ansis Brammanis
6129fbf4f5
prevent creation of ways with duplicate segments or repeated nodes
2013-03-11 16:00:24 -04:00
John Firebaugh
ab561ff198
Better way to prevent snapping to area fill
...
This also prevents are hover behavior during node dragging,
while allowing snapping to vertex fill.
2013-03-11 12:29:00 -07:00
John Firebaugh
27861ca6b2
Implement multiselect cursors ( fixes #296 )
2013-03-07 11:57:43 -08:00
John Firebaugh
a6ce12efb6
Add shadow on area strokes ( fixes #674 )
2013-03-07 10:33:11 -08:00
John Firebaugh
417e21ab05
Remove unused
2013-03-05 16:02:27 -08:00
Ansis Brammanis
c74615fa83
Only re-enable dblclick after done drawing way
2013-03-05 16:54:33 -05:00
Tom MacWright
e071c15579
Remove unused variables and arguments
2013-03-05 16:29:23 -05:00
Tom MacWright
d8e7936d8a
Fix CORS error catching on save. Fixes #788 . Fixes #451
2013-03-05 14:44:27 -05:00
Ansis Brammanis
d351f74a94
Undos during drag now redoable
2013-02-27 14:57:07 -05:00
Ansis Brammanis
00dfa8cd08
Fix shift-click to select
2013-02-22 14:59:32 -05:00
Ansis Brammanis
3bdae821c0
Select areas and lines after finishing them
2013-02-21 13:37:10 -05:00
John Firebaugh
88949d6624
Fix altKey behavior with multi-step drawing ( fixes #803 )
2013-02-18 21:14:41 -08:00
Ansis Brammanis
6a1ef84546
Usecapture when blocking click
2013-02-15 15:45:24 -05:00
Ansis Brammanis
147fce1f49
Merge branch 'tree-intersects'
...
Conflicts:
js/id/behavior/lasso.js
2013-02-15 13:40:01 -05:00
John Firebaugh
d7d3f174ae
Lasso only nodes for now ( fixes #734 )
...
Given the (lack of) operations available on mixed node/way
selections, this seems just as good as selecting contained
ways as well.
2013-02-13 16:53:40 -08:00
John Firebaugh
c0b8cd74de
Reopen radial menu when clicking on selected entity ( fixes #758 )
2013-02-13 16:23:58 -08:00
Ansis Brammanis
7102fea04d
add history.intersects to context
2013-02-13 18:12:53 -05:00
Ansis Brammanis
fd423f4db7
Don't drag when shiftKey
2013-02-13 15:39:22 -05:00
John Firebaugh
65fbc808a1
Map#pan redraws
2013-02-13 10:39:48 -08:00
Ansis Brammanis
529b570c89
Merge remote-tracking branch 'systemed/master' into tree-intersects
2013-02-13 13:31:11 -05:00
John Firebaugh
1e60b0b7fa
iD constructors are camel case
2013-02-12 16:51:25 -08:00
John Firebaugh
3cce5b28dd
Fix, expand iD.behavior.Select tests
2013-02-12 15:22:38 -08:00
John Firebaugh
89fe4bff09
Only add vertex when double-clicking the selected entity
...
Previously double-clicking would add a vertex to any way,
as long as anything was selected.
2013-02-12 14:54:39 -08:00
John Firebaugh
0dbdd7c797
Shift-click deselects a selected entity
2013-02-12 14:54:39 -08:00
John Firebaugh
3f19a293aa
Make selection less laggy
2013-02-12 14:54:39 -08:00
Ansis Brammanis
2f15b0ffca
Use tree intersects instead of graph.intersects
2013-02-12 17:38:15 -05:00
Tom MacWright
61d7ec45b5
Banish function ( style
2013-02-12 16:35:47 -05:00
Ansis Brammanis
2062fe9a67
Don't end drag when parent removed
2013-02-12 11:29:21 -05:00
John Firebaugh
4d976013f9
Connect via drag for points ( fixes #725 )
2013-02-11 12:44:29 -08:00
John Firebaugh
1298fe195d
Remove keybinding coupling from iD.behavior.drag
2013-02-11 11:24:05 -08:00
Ansis Brammanis
fc6cb352d8
use compatible mouse position properties
2013-02-11 12:12:18 -05:00
Tom MacWright
38b327fefe
jshint fixes, fix global leak
2013-02-11 10:42:49 -05:00
Tom MacWright
d584eb2f9d
Pan, fix initial loads
2013-02-09 17:56:22 -05:00
Ansis Brammanis
a60ed7f6e5
Remove pointer-events for area being drawn
2013-02-09 00:04:29 -05:00
Ansis Brammanis
334cb9f93b
Fix error, pos could be null
2013-02-08 18:01:45 -05:00
Ansis Brammanis
5b646b75c3
Only lasso if mouse has moved
2013-02-08 17:53:43 -05:00
Ansis Brammanis
ba47d3183d
Fix lasso and add it to select
2013-02-08 17:46:37 -05:00
Ansis Brammanis
123c700853
Fix midpoint dragging
2013-02-08 16:49:09 -05:00
Tom MacWright
4a339ade87
Do not use d3.mouse unless needed, instantly exit select.
2013-02-08 10:21:04 -05:00
Tom MacWright
a773aaaab4
Improve perf with some benchmarking.
...
Re translate change see http://jsperf.com/coerce-vs-join-array
2013-02-07 22:55:44 -05:00
Tom MacWright
a8f5ab206e
Merge branch 'master' into discard-tags
...
Inline discardTags
Conflicts:
index.html
2013-02-07 16:51:38 -05:00
Tom MacWright
843926009d
Normalize coordinates so that lasso can be dragged in any direction
2013-02-07 16:32:03 -05:00
Tom MacWright
f0b761b979
Lasso action
2013-02-07 16:21:25 -05:00
Ansis Brammanis
246481ad92
Switch back to mouseup, and block following click
2013-02-06 18:53:46 -05:00
Ansis Brammanis
2ca4387f74
Fix snapping nodes to areas
...
In the future it may be good to use shadow paths, but at this point
there isn't really a reason to add thousands of additional paths.
2013-02-06 17:42:51 -05:00
Tom MacWright
3440f4254d
Discard tags
2013-02-06 16:22:39 -05:00
Tom MacWright
b11e50048e
Merge branch 'master' of github.com:systemed/iD
2013-02-06 15:09:51 -05:00
Tom MacWright
a9632a2c7a
Do not trigger radial on double click
2013-02-06 15:09:40 -05:00