Commit Graph

270 Commits

Author SHA1 Message Date
Bryan Housel
20406f81ca Merge pull request #3539 from openstreetmap/vertex-keyboard-nav
Add vertex keyboard navigation
2016-11-07 14:06:59 -05:00
Bryan Housel
774b3a0ccd Add '\' key to toggle related parent, add .related class (like hover) 2016-11-07 13:44:25 -05:00
Bryan Housel
2562460962 Exit to browse mode if selected items gone, only in response to user drags 2016-11-07 11:46:38 -05:00
Bryan Housel
cb6801c2b6 Address field improvements and bugfixes
(closes #3553)

* eliminate duplicate values in suggestions
* set minItems(1) on all combo boxes
* setup dropdowns for all common address fields
2016-11-05 23:48:14 -04:00
Bryan Housel
3224130821 Add uiCmd to fix modifier, add keybind arrays to simplify code 2016-11-04 10:17:30 -04:00
Bryan Housel
d1c7b5c8a2 Add alternate vertex navigation keys pgup/pdgown/home/end 2016-11-04 09:49:26 -04:00
Bryan Housel
2273a6ed43 Allow multiple key bindings to be specified in an array 2016-11-04 09:41:44 -04:00
Bryan Housel
eb7c56d310 Add vertex keyboard navigation
(closes #1917)
2016-11-01 21:43:26 -04:00
Bryan Housel
1043402b88 Don't call behavior.off unless behaviors were actually added 2016-11-01 21:42:37 -04:00
Bryan Housel
8cd2d7097c Add preset for camp_site=camp_pitch for individual pitches 2016-10-31 17:08:01 -04:00
Bryan Housel
b054eb31e9 Merge branch '3076' of https://github.com/Psigio/iD into Psigio-3076 2016-10-31 16:06:32 -04:00
Bryan Housel
a8f12173ac Multikeys filter should allow nested names, ignore alt prefixes 2016-10-31 15:06:17 -04:00
Bryan Housel
9ee790c1cc Don't need to pass dimensions to sublayers.. use projection.clipExtent
(the dimensions call to layers is to set width/height on svg surface element)
2016-10-30 22:40:11 -04:00
Bryan Housel
f98b89cd15 Eliminate some more unnecessary lodash in hot code 2016-10-30 22:39:32 -04:00
Bryan Housel
6123782a9c use _.throttle instead of _.debounce, call cancel for immediate redraws 2016-10-30 22:38:47 -04:00
Bryan Housel
457357598d Merge branch 'performance-improvement-debounce-redraw' of https://github.com/guillaume/iD into guillaume-performance-improvement-debounce-redraw 2016-10-30 13:00:11 -04:00
Bryan Housel
98d484fc1f Restore hover behavior to restrictions editor, add breathe behavior
The issue was: now that selections are immutable you can't add behaviors
to them unless they are already entered.  i.e. the surface selection in
enter does not end up being the real surface after merging to update.
2016-10-30 11:35:36 -04:00
Bryan Housel
8b6e5db004 Fix turn restrictions editor enter/update selection issues 2016-10-30 00:01:05 -04:00
Bryan Housel
fbe9cf3afd Clip polygons and clippaths to padded viewport
(closes #3529)
2016-10-29 21:50:30 -04:00
Bryan Housel
46b6086dcf Update projection arg for d3.geoPath(), deprecate d3.geoClipExtent() 2016-10-29 15:27:06 -04:00
Bryan Housel
7c5a4df64d Hide Mapillary viewfields at low zoom 2016-10-29 13:28:17 -04:00
Bryan Housel
cf11c95354 Fix Mapillary sign placement on Chrome, Safari 10 2016-10-29 00:59:51 -04:00
Bryan Housel
5c5e90c411 Upgrades for mapillary 2.0.0 2016-10-28 14:23:21 -04:00
Bryan Housel
226d8d6676 Leave transition duration as undefined, interrupt existing transitions 2016-10-27 15:11:50 -04:00
Bryan Housel
59496c4547 Fix bugs in intro
* connection.flush is now connection.reset
* Calculate correct tooltip dimensions after changing content
* Position tooltip based on visible box, not full box
(closes #3463)
2016-10-27 14:15:23 -04:00
Bryan Housel
5fb966c35b utilSetDimensions/utilGetDimensions improvements
utilSetDimensions should always return a selection for chaining
Add `force` argument to utilGetDimensions to override cached dimensions
2016-10-27 14:13:39 -04:00
Bryan Housel
38e0b4ba5d Data bind tooltips to avoid creating new ones each time in setup 2016-10-27 12:26:20 -04:00
Bryan Housel
8fb5f3a5a1 Degunk data sources by named-importing single toplevel key
See: https://github.com/openstreetmap/iD/issues/3403#issuecomment-245150454

This change drops the iD.js bundle size from 4.5MB to 3.4MB, and makes it
much more readable, which is nice for debugging.  This does not affect the
minified bundle size.
2016-10-26 16:29:49 -04:00
Bryan Housel
b93e9f1a1a Merge enter selection into update selection for raw member list
(closes #3524)
2016-10-26 11:31:19 -04:00
Bryan Housel
6597a6e108 Don't cache browser detection anymore in Mapillary service
This means we can mock the useragent and test signsSupported
2016-10-25 21:41:34 -04:00
Bryan Housel
699da57ad1 Let user know if the documentation is a redirect page
(closes #3337)
2016-10-25 11:03:35 -04:00
Bryan Housel
e4e2298ad6 Fix TagReference not updating
(closes #3521)
2016-10-25 10:19:39 -04:00
Bryan Housel
ae65fb13e9 v2.0.0-beta.1 2016-10-25 01:20:51 -04:00
Bryan Housel
e83b2ea2be Allow delete key without modifier as shortcut for deleting
(closes #3455)

Also fixed a minor bug in `iD.uiCmd` that was causing keyboard shortcuts
like '⌘⌫' to convert to 'Ctrl+Backspace+'  (note extra trailing '+')
It affected only the tooltip display, not the key event binding.
2016-10-24 23:57:44 -04:00
Bryan Housel
a601ccc0c9 Use osm-auth 1.0.1, make authenticated OSM API calls
(re: #2262)
2016-10-24 18:40:52 -04:00
Bryan Housel
45d85e04c5 Make authenticated api calls if possible 2016-10-24 01:21:38 -04:00
Bryan Housel
e81b6e626a WIP: authenticate OSM API calls if user is logged in 2016-10-22 12:17:52 -04:00
Bryan Housel
b5c95af3b7 Refactor from coreConnection to serviceOsm
(closes #3497)
2016-10-19 09:25:34 -04:00
Bryan Housel
1d03414b80 Allow forced utilDetect(), useful for testing 2016-10-18 21:56:24 -04:00
Bryan Housel
efd9e6df4b Memoize and avoid extra calls to utilDetect() 2016-10-18 21:48:39 -04:00
Bryan Housel
bf857c419a Center label baseline hack for IE11, Edge
(closes #3020)
2016-10-18 21:28:20 -04:00
Bryan Housel
0036a3b308 Assign label priority by tag key and value (e.g. for highways) 2016-10-18 15:46:24 -04:00
Bryan Housel
9d98aae955 Insert small boxes along text path into collision tree
(closes #1645)
2016-10-18 15:12:09 -04:00
Bryan Housel
0d0b9b0d9b Use geoEuclideanDistance for simpler code 2016-10-18 00:56:18 -04:00
Bryan Housel
ad17220577 Pacify eslint 2016-10-18 00:44:31 -04:00
Bryan Housel
24e83189b8 Use bulk loading for rtree inserts, preparation for collision rectangle labels 2016-10-17 23:56:42 -04:00
Bryan Housel
0c35b8f9ab Fix bug in partial label redraw, tighten margins around line labels 2016-10-17 21:28:37 -04:00
Bryan Housel
1da02e57e2 Fix min/max collision box in getPointLabel, remove debug=true 2016-10-17 17:08:40 -04:00
Bryan Housel
f4e7cb6727 Add debugging for both drawn and skipped label collision trees 2016-10-17 16:27:47 -04:00
Bryan Housel
adb1fdd940 Add area labels and icons both to collision tree 2016-10-17 15:40:09 -04:00