Commit Graph

108 Commits

Author SHA1 Message Date
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
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
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
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
b5c95af3b7 Refactor from coreConnection to serviceOsm
(closes #3497)
2016-10-19 09:25:34 -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
ad17220577 Pacify eslint 2016-10-18 00:44:31 -04:00
Bryan Housel
053074d076 Export live binding for services in iD.services, fix init/reset
(closes #3324)

Previously we allowed devs to swap out services that they didn't need.
This became difficult now that ES6 exports are immutable bindings.
But we can wrap the immutable bindings themselves in a live object,
to get back the flexibility that we used to have.

This change also drops the `taginfo` accessor on Context, since devs who want
to swap out taginfo service with something else can now do so through the live
binding.  `iD.services.taginfo = myTaginfo()`
2016-10-14 10:38:09 -04:00
Bryan Housel
f50e80d0b5 Refactor Intersection, Multipolygon from geo to osm 2016-10-11 23:09:27 -04:00
Bryan Housel
07fa5fcc34 Refactor Entity, Node, Relation, Tags, Way from core to osm 2016-10-11 22:41:24 -04:00
Bryan Housel
6224ad3290 Merge branch 'rtl_editor' of https://github.com/mapmeld/iD into mapmeld-rtl_editor 2016-10-08 10:01:20 -04:00
Bryan Housel
84ba112ff4 Rebind clickhandler in update selection (bc it uses wrap selection) 2016-10-07 15:28:16 -04:00
Bryan Housel
7f61d36a5e Rename countryCode->code to avoid rollup name collision bug 2016-10-05 23:01:56 -04:00
Nick Doiron
c22867c279 search results and layer names 2016-10-05 01:38:13 -04:00
Nick Doiron
581bade5f3 update RTL detection 2016-10-05 01:38:13 -04:00
Nick Doiron
6bc9e63fc3 map controls and menus 2016-10-05 01:33:16 -04:00
Nick Doiron
a9ee42bd94 undo and redo buttons 2016-10-05 01:32:45 -04:00
Nick Doiron
34a6382752 revised RTL features and detection 2016-10-05 01:31:14 -04:00
Bryan Housel
87950fd472 Fix lib export, flatten names in tests and docs 2016-10-04 21:56:09 -04:00
Bryan Housel
0d0e54fdff Fix more namespaces that were missed in the first pass 2016-10-04 21:15:30 -04:00
Bryan Housel
3102a4ae6a Rename all the things to include pseudonamespaces 2016-10-04 19:06:20 -04:00
Bryan Housel
4a94474a3a Better guard code around wiki services, always call callbacks 2016-09-28 14:42:30 -04:00
Bryan Housel
aeb2e26fa0 Reassign input variable to the update selection after merge 2016-09-27 23:28:09 -04:00
Bryan Housel
132e699c89 Replace extend with smarter copy for tag changes
Because compound fields like `address` may send a bunch of undefined tag
values in the `changed` object, and we don't want them all to turn into
raw tags (but we do want them to override any existing tags).

This is subtlely different than what `_.extend({}, existing, changed)` did.
2016-09-27 23:20:16 -04:00
Bryan Housel
b92e49f61a Fix raw tag editor data binding of key/value input fields 2016-09-27 23:06:28 -04:00
Bryan Housel
460ea42c95 Fix enter/update selections for multicombo chips 2016-09-27 00:12:37 -04:00
Bryan Housel
7b6a15eaa9 Fix left/right selections in cycleway field 2016-09-27 00:01:08 -04:00
Bryan Housel
464b0b2aca Fix issues with walkthrough 2016-09-26 16:25:38 -04:00
Bryan Housel
d7b3bb5a89 Fix placeholders set during enter selection not finding input element
Also remove unhelpful placeholder from access_simple.json
2016-09-26 01:03:55 -04:00
Bryan Housel
57d0bc13cf Fix lint warnings, comment out crashy service reset code (re: #3324) 2016-09-23 10:23:24 -04:00
Bryan Housel
9f956e414c Fix ui.Commit merge updated selections 2016-09-23 10:02:36 -04:00
Bryan Housel
cd4e6f038e Fix and cleanup all map easing transitions, now supports eased zoom, pan 2016-09-22 23:51:40 -04:00
Bryan Housel
4e1a7cb6c8 Fix propagation of change events 2016-09-21 01:17:59 -04:00
Bryan Housel
0ea59a043d Fields mostly working (but not dispatch/update) 2016-09-20 22:41:05 -04:00
Bryan Housel
c5a8bcc3a6 More fixes to fields 2016-09-18 12:57:23 -04:00
Bryan Housel
6346a11880 Continuing to audit enter/update selections that need merge() 2016-09-18 00:51:43 -04:00
Bryan Housel
a6d683eaf7 Code cleanups in svg, ui for selection merging, fix Mapillary. 2016-09-17 23:26:49 -04:00
Bryan Housel
8a81293b0c Fix preset list and icons 2016-09-17 15:02:48 -04:00
Bryan Housel
415dd8c7ba Fix infobox 2016-09-17 13:18:02 -04:00
Bryan Housel
f1b918cf43 Fix map-in-map to use new d3 v4 zoom behavior 2016-09-12 21:40:58 -04:00
Bryan Housel
41b2122efe Fix wrong setDimensions call (dimensions is a method on Layers) 2016-09-08 22:35:36 -04:00
Bryan Housel
15b3a44c9a Add projection.transform, simplify projection code, WIP on minimap 2016-09-07 08:59:31 -04:00
Tom MacWright
6bfe6a8640 Down to 7 test failures 2016-09-06 11:16:47 -04:00
Tom MacWright
4fcbcddc5b Fix eslint 2016-09-06 10:18:05 -04:00
Tom MacWright
2b366b5f78 Fix access field 2016-09-06 10:06:28 -04:00