Commit Graph

6840 Commits

Author SHA1 Message Date
Bryan Housel 5ba72292ac Fix mouse xy calculation for mousewheel scroll normalization 2017-02-23 21:45:36 -05:00
Bryan Housel 334188c6fe Normalize mousewheel zooming across browsers
(closes #3029)
2017-02-23 20:11:21 -05:00
Bryan Housel f291b0a120 Remove ineffective attempt to grab focus 2017-02-22 22:32:19 -05:00
Bryan Housel 6ef85c4343 Fix RTL for scale bar 2017-02-22 22:16:50 -05:00
Bryan Housel 38f6d2d2bf Fix RTL for flash messages 2017-02-22 22:02:35 -05:00
Bryan Housel dc2318ab63 Add mention of the right-click menu in the walkthrough 2017-02-22 17:31:08 -05:00
Bryan Housel f7c3de9545 Preserve backward compability with radial menu
Old menu behavior can be restored with 2 cookies:
- `edit-menu-style=radial` - Display menu as a radial menu, limited to 8 items
- `edit-menu-show-always=1` - Show menu on all clicks, not just contextmenu/right
2017-02-22 16:50:42 -05:00
Bryan Housel 4f8d772397 More improvements to select behavior re contextmenu, shiftclick, etc. 2017-02-21 22:16:17 -05:00
Bryan Housel e756520bd8 suppressMenu(true) is now the default 2017-02-21 15:47:22 -05:00
Bryan Housel d8237fa3eb Variable names, fix edge avoidance, tooltips placement, RTL 2017-02-18 15:42:54 -05:00
Bryan Housel 9d660076ca Add title to editmenu tooltip 2017-02-17 15:47:41 -05:00
Bryan Housel 3908da03cf Fix styling of flash and footer and use absolutely positioned divs
Also fix flash tests
2017-02-17 00:23:24 -05:00
Bryan Housel 150b9fb7dc WIP: move flash to footer area, transition in/out
Also took this opportunity to use flexbox for the footer layout
2017-02-16 17:13:22 -05:00
Bryan Housel 1db4ea86f7 Add icons to operation flash messages 2017-02-16 10:20:37 -05:00
Bryan Housel 3fc36b66a9 Let D3 handle the delay rather than using setTimeout
This also fixes a race condition where it was possible to lose a flash
message that was created while the previous one was transitioning away.
2017-02-16 10:19:07 -05:00
Bryan Housel 2ce78d6c43 Call annotation as a function instead of a property
This is because, like tooltip(), it doesn't always make sense to call it,
and it should never get called if the operation is not available.
2017-02-15 23:02:13 -05:00
Bryan Housel b7a81c6bec Allow customizable flash showDuration and fadeDuration 2017-02-15 22:28:35 -05:00
Bryan Housel 028ef3de3f Expose annotations for each operation 2017-02-15 22:01:30 -05:00
Bryan Housel 33227c2b53 Adjust text for Reflect operation messages 2017-02-15 16:37:37 -05:00
Bryan Housel c18cc7577d Add flash test, avoid using sinon.useFakeTimers in tests.
sinon.useFakeTimers mocks setInterval, setTimeout, etc,
but not requestAnimationFrame, which d3 transitions rely on.
2017-02-11 00:19:49 -05:00
Bryan Housel 5aa519affb Flash style adjustments 2017-02-10 21:50:31 -05:00
Bryan Housel c5383c1f55 Darker unintrusive flash.. WIP flash operations on keypress 2017-02-10 16:39:08 -05:00
Bryan Housel 57aea40a0f Merge branch 'master' into edit_menu 2017-02-10 10:02:34 -05:00
Bryan Housel 45763f8d36 Fix non-searchable amenity=coworking_space preset
(fixes #3727)
2017-02-09 16:04:52 -05:00
Bryan Housel 3e2d6aee4a Add social_facility=nursing_home preset
see https://github.com/openstreetmap/iD/issues/3702#issuecomment-278497999

Also add a non-searchable preset for amenity=nursing_home because
there are still thousands of those around
2017-02-09 15:58:12 -05:00
Kushan Joshi 07de6d975f Fix right clicking edge cases
Fixed

- On reselecting multiple entities, right click doesn’t discard selection

- On selecting new entity, right click discards previous selection
- Preserved shift selection for both left & right click
2017-02-09 15:41:19 +05:30
Kushan Joshi ca25a34987 semver compliance for edit_menu 2017-02-09 13:03:12 +05:30
Kushan Joshi 734f40c2a8 fix tooltip overflow 2017-02-09 12:53:10 +05:30
Kushan Joshi 11d7cc7b34 white theme for edit_menu.js 2017-02-09 12:53:10 +05:30
Kushan Joshi 5b92b90ced Add context menu 2017-02-09 12:53:10 +05:30
Bryan Housel df9703f987 Merge pull request #3830 from openstreetmap/build_cache
Use cache to speed up development
2017-02-08 08:58:00 -05:00
Kushan Joshi 97bceb796b Use cache to speed up development 2017-02-08 14:22:19 +05:30
Bryan Housel 2611537477 2.1.2 2017-02-07 11:49:19 -05:00
Bryan Housel a799ef7507 npm run translations 2017-02-07 11:46:33 -05:00
Bryan Housel 86118ece4e Fix node drag regression introduced in 919234d
(closes #3829)
2017-02-07 11:40:11 -05:00
greenkeeperio-bot fe2e0bfdee chore(package): update js-yaml to version 3.8.1
https://greenkeeper.io/
2017-02-06 20:28:58 -05:00
Bryan Housel 264e3076d5 2.1.1 2017-02-06 17:04:15 -05:00
Bryan Housel 6ff7672a26 npm run imagery 2017-02-06 17:02:59 -05:00
Bryan Housel d993b38ad6 npm run translations 2017-02-06 17:01:01 -05:00
Bryan Housel 919234d2df Make sure to select vertex-persistent when looking for siblings
(closes #3824)

When hovering, there is also a companion `vertex-hover` element that might
sometimes get selected, and doesn't have the sibling class that enables drag.
2017-02-06 16:43:54 -05:00
Bryan Housel 20b79940ae Disable no-fallthrough eslint warning around this switch block 2017-02-06 14:13:04 -05:00
Martin Raifer d7ad3bc39e improve autozooming on non-gpx background data layers
old implementation only worked for points and linestrings, but geojson and kml can contain any geometry.

aso, d3 is a bit special[1] when working with geojson polygons: it does require clockwise winding, but typical geojson is either counterclockwise winding (RFC7946) or "winding doesn't matter" (old geojson.org spec). When inputing such geojson (or kml) input, iD would zoom out all the way, which is not the intended behavior.

[1] https://github.com/d3/d3-geo#d3-geo
2017-02-06 18:04:20 +01:00
Martin Raifer ff4bf2597d fix regression in background layer loading from URL
fixes #3820
2017-02-06 15:08:13 +01:00
Bryan Housel 2120ab4706 Adjust preset icon stroke/fill for living street 2017-02-05 16:37:21 -05:00
Bryan Housel 84433f46ac Use barrier icon instead of roadblock for noexit 2017-02-05 16:32:02 -05:00
Wille Marcel 9cd1284389 add preset for shop=watches 2017-02-05 13:02:02 -02:00
Wille Marcel 110c7ec12e add living street to Road category 2017-02-05 12:50:57 -02:00
Wille Marcel 1f525db8ed add preset to noexit=yes 2017-02-05 12:29:21 -02:00
Bryan Housel eba1e4c9b2 Thanks slhh! 2017-02-04 10:57:07 -05:00
Bryan Housel f68945f8df Add a few missed items for Changelog v2.1.0 2017-02-04 08:36:35 -05:00