Commit Graph

308 Commits

Author SHA1 Message Date
John Firebaugh ecfe8ce943 Adjust the timing of localStorage saves
If localStorage writes were free, we'd want to just save
on every history change. Second best is to debounce the
write.

Writing on mode change is problematic; it sometimes happens
when not desired and sometimes doesn't happen when desired.

Fixes #1857.
2013-09-30 14:45:02 -07:00
John Firebaugh 75b6ec746b Clean up 2013-09-29 07:55:59 -07:00
John Firebaugh 4728622d87 Don't auto-save intro tutorial edits
Fixes #1745
Fixes #1795
2013-09-25 15:32:56 -07:00
John Firebaugh a32ce33238 Add Way#affix 2013-08-30 13:59:29 -07:00
John Firebaugh 1a166ec9b7 Suppress menu in more places 2013-08-29 14:38:42 -07:00
John Firebaugh 2197fbc25b Stop nudge when exiting move mode (fixes #1766) 2013-08-29 14:34:13 -07:00
John Firebaugh 8a215cac81 Add "Continue" operation 2013-08-28 09:30:28 -07:00
John Firebaugh 34fdc8de42 Save history more frequently (#1345) 2013-08-14 16:50:10 -07:00
John Firebaugh 0844223492 Null-check document.activeElement 2013-08-13 16:54:30 -07:00
John Firebaugh 18829ee482 Fix radial menu tooltip positioning 2013-08-07 11:44:09 -07:00
John Firebaugh c3ec3569b5 Leave save mode when displaying success message 2013-07-25 13:53:15 -07:00
John Firebaugh 5f02f348de Include GPX and overlay layers in imagery_used
Fixes #1463
2013-07-25 11:51:55 -07:00
John Firebaugh 48bd8264f7 Disable toolbar during save (fixes #1563) 2013-07-22 12:12:00 -07:00
John Firebaugh bba761d8ea size -> dimensions
D3 3.2 adds selection.size, where size means "number
of selected elements".
2013-06-20 13:05:20 -07:00
John Firebaugh 9190a25220 Show only visible features in list 2013-06-17 15:44:14 -07:00
John Firebaugh 410e401b34 Don't show the inspector on multiselect (fixes #1600) 2013-06-17 14:47:12 -07:00
John Firebaugh 98072bdd27 Use minzoom behavior in all appropriate modes
Fixes https://github.com/systemed/iD/issues/1599#issuecomment-19568483
2013-06-17 14:43:16 -07:00
John Firebaugh 4b8ecc2dd7 Fix focus when undoing with autofocused preset search (fixes #1570) 2013-06-03 16:56:30 -07:00
John Firebaugh c68635062c Fix sidebar UI behaviors
* Restore preset search autofocus (fixes #1566)
* Should show hover in draw modes, not preset list
2013-06-03 16:28:30 -07:00
John Firebaugh a84a3364cc selection -> selectedIDs
Overloading "selection" is a bad idea.
2013-06-03 15:48:03 -07:00
John Firebaugh 3a7c184e69 Move the save dialog to the sidebar 2013-05-29 17:47:33 -07:00
John Firebaugh a97e61803c Refine selection behavior when dragging a node
* Preserve the sidebar state (fixes #1401)
* Show vertices of selected way (fixes #1478)
* Reselect exact previous selection when finished
2013-05-29 10:32:11 -07:00
John Firebaugh 884d2d0732 Add hover indicator in sidebar 2013-05-26 14:07:10 -07:00
John Firebaugh bef4cd60a3 Convert constructor argument to accessor 2013-05-23 16:05:40 -07:00
John Firebaugh d238e4eaeb Convert Tail to a behavior
This avoids an extra mousemove listener in base modes.
2013-05-14 17:51:24 -07:00
John Firebaugh 5b69387ea0 Fix unknown entity error on delete 2013-05-14 17:23:06 -07:00
John Firebaugh 1455c5e551 Use entity ID selectors in more places 2013-05-13 12:29:29 -07:00
John Firebaugh 07fb94fee2 Fix node dragging 2013-05-13 12:27:20 -07:00
John Firebaugh 1641f38632 Use context.mouse() 2013-05-09 21:55:05 -07:00
John Firebaugh bb487ba0ee Use fastMouse 2013-05-09 21:55:05 -07:00
John Firebaugh 08949d2fe9 Redo iD.geo.chooseIndex
It now calculates proper orthogonal projections and finds
the minimal one. Rename it iD.geo.chooseEdge and minimize
its coupling to context.

This version also copes with 0- and 1-node ways.

Fixes #1428.
2013-05-07 18:35:45 -07:00
Ansis Brammanis 56eb281c4b fix node dragging 2013-05-02 13:31:57 -04:00
John Firebaugh 3bdaab0bb3 Fix dragging a node to another node 2013-04-26 12:28:25 -07:00
John Firebaugh 24ecf2a697 Don't show radial menu after dragging node (fixes #1385) 2013-04-26 11:45:01 -07:00
John Firebaugh e5dd800aff Allow selecting a relation 2013-04-26 11:34:24 -07:00
Ansis Brammanis 4e305ea773 don't permalink negative IDs (fixes #1374) 2013-04-25 11:16:56 -04:00
John Firebaugh 965cfc65e8 Show vertices of way being drawn (fixes #1367) 2013-04-24 10:24:35 -07:00
John Firebaugh c50c3121d8 Make Graph#entity strict
Use Graph#hasEntity for the previous behavior.
2013-04-24 09:27:37 -07:00
Ansis Brammanis 01238a49db select parentway(s) after dragging node
fixes #1368
2013-04-23 21:10:15 -04:00
Tom MacWright 1e5a0fc4a7 Stop nudging when users drag outside of the window. Fixes #1326 2013-04-18 18:31:34 -04:00
John Firebaugh cf60d344f1 Fix AddPoint's use of Select mode 2013-04-12 11:26:03 -04:00
John Firebaugh 71dda769f2 FF can't focus an SVG element 2013-04-12 11:24:25 -04:00
John Firebaugh 5dda54ea52 Refine focus behavior for inspector (fixes #1277)
Auto-focus the search field only right after finishing drawing.
At that point, the radial menu isn't shown anyway. So then the
flow for correcting geometry before assigning a preset is:

 1. Draw.
 2. Finish drawing. The search field is focused, and no
    radial menu is open.
 3. Click again to reselect the feature and show menu.
    Now the search field is blurred.

In other words: when the menu is shown, search should not be
focused. When search is focused, the menu should not be shown.
2013-04-12 10:08:44 -04:00
Ansis Brammanis a8cf59e21c simplify 2013-04-05 13:31:08 -04:00
Ansis Brammanis d7cc24b935 shadows for multipolygons 2013-04-05 12:11:23 -04:00
Ansis Brammanis acdc1b3824 add nodes to all of a segment's ways
when
- dragging a node to a way
- starting a line from a way
- starting an area from a way
- drawing a way
2013-04-04 17:58:53 -04:00
Ansis Brammanis 3ad94406cb fix multi-select regression 2013-04-02 16:54:08 -04:00
Ansis Brammanis a4d7b20027 Don't try to select non-multipolygon relations 2013-04-02 16:23:40 -04:00
Ansis Brammanis d573d42ebe Revert "don't try to select relations"
This reverts commit 5c15a180a3.
2013-04-02 16:00:39 -04:00
Ansis Brammanis 5c15a180a3 don't try to select relations 2013-04-02 15:42:35 -04:00