Commit Graph

1658 Commits

Author SHA1 Message Date
Bryan Housel c2713c3a3f For node-way merge, preserve original node if possible
(closes #3683)
2016-12-31 02:01:13 -05:00
Bryan Housel 45ad0842dd Pacify eslint 2016-12-28 01:16:57 -05:00
popov 19b0a771f6 make vertex by midpoint double-clicking 2016-12-28 15:32:47 +10:00
Bryan Housel 0c9fb7c407 Improve military presets
(closes #3663)

* Add Nuclear Explosion Site and Military Office presets
* Add Bunker Type field
* Improve styling rules for preset icons
* Improve search terms for all military presets
* Nest military presets under `landuse=military`
* Add ref, iata, icao fields to Military Airfield
* Don't set area pattern fills on buildings
2016-12-27 01:19:13 -05:00
Bryan Housel 0e2cd589d4 Add styling for natural=bare_rock, natural=sand 2016-12-26 16:00:02 -05:00
slhh 7817d6dff1 Prevent duplicate consecutive nodes in addNode, updateNode, and
replaceNode, and add some comments.
2016-12-24 18:32:28 +01:00
Bryan Housel eb0cdd5e8c History transition code cleanup 2016-12-23 17:18:28 -05:00
Bryan Housel cb70b8028f Pacify eslint 2016-12-23 12:26:00 -05:00
Bryan Housel c48cdc7c70 Clearer intent for right triangle code 2016-12-23 12:22:48 -05:00
Bryan Housel cc5f238042 Support transitioned orthogonalize action 2016-12-23 12:04:53 -05:00
Bryan Housel 3e82a7352c Support transitioned straighten action 2016-12-23 11:09:17 -05:00
Bryan Housel fdc37287ec Support transitioned circularize action 2016-12-23 10:52:00 -05:00
Bryan Housel d917424fc4 Support for performing transitionable actions 2016-12-23 00:57:05 -05:00
Bryan Housel 1685e4c2b4 Support transitioned reflect actions 2016-12-23 00:56:44 -05:00
Bryan Housel 9a922c0731 Make Reflect/Rotate unavailable for strictly linear features 2016-12-22 15:18:01 -05:00
Bryan Housel 37534aed0e More cleanup of operations and post-paste behavior
* Support move, rotate, reflect, delete post paste on multiselection
* Improve text and error msgs for singular vs multi selections
* Move `disabled` checks from actions to operations
* Reproject center of rotation (closes #3667)
* Cleanup tests
2016-12-21 23:58:13 -05:00
Bryan Housel 38e4900355 Allow rotate of multiple selected objects
(closes #1719)
2016-12-21 16:44:40 -05:00
Bryan Housel cad4c0090c Refactor rotation code to geoRotate, add tests 2016-12-21 11:21:06 -05:00
Bryan Housel 063e7712b8 Move geo functions from index.js to geo.js 2016-12-20 23:08:22 -05:00
Bryan Housel 573f476cdd Rename actionRotateWay -> actionRotate 2016-12-20 22:38:30 -05:00
Bryan Housel 6ab9489fe7 Add utilGetAllNodes to get all nodes and descendants 2016-12-20 22:37:53 -05:00
Bryan Housel a2f50f4485 Support behaviors in Rotate mode 2016-12-20 14:55:02 -05:00
Bryan Housel 57696ab5eb Rename rotate-way mode to just rotate 2016-12-20 13:44:39 -05:00
Bryan Housel addd12ae99 Exclude child nodes from newIDs if their parent way was also copied
for #3656 item 1
2016-12-20 01:31:49 -05:00
Bryan Housel 087a8c62d1 Behaviors for all Operations 2016-12-20 00:28:24 -05:00
Bryan Housel 068a40e6cc Support Reflect behaviors in Move mode
Also some refactor and added support diagonal nudging
2016-12-19 16:56:32 -05:00
Bryan Housel 35aae816b0 Expose Reflect operation behavior 2016-12-19 16:55:49 -05:00
Bryan Housel 1884c7070e Add a keybinding behavior for operations 2016-12-19 16:55:11 -05:00
Bryan Housel d69c4d6d9a Don't highlight previous parent way
(closes #3657)
2016-12-17 23:13:10 -05:00
Bryan Housel fac0429c4c Don't call updateTags extra times
(closes #3650)
2016-12-17 22:38:28 -05:00
Bryan Housel 650e77e9ac Update togeojson import 2016-12-16 16:21:03 -05:00
Bryan Housel 2267035dfb Support both reflect long axis and reflect short axis operations 2016-12-16 13:59:33 -05:00
Bryan Housel dca1c8fb41 Add reflect icons 2016-12-16 11:24:29 -05:00
Bryan Housel e88f53ac07 Reflect around long axis by default, provide method to choose long/short 2016-12-15 18:13:28 -05:00
Bryan Housel 94933ac455 Attempt to detect shape orientation and reflect accordingly 2016-12-15 17:43:46 -05:00
Bryan Housel 72c51bc283 Add getSmallestSurroundingRectangle 2016-12-14 17:21:32 -05:00
Bryan Housel 5a6045fd3d Merge branch 'master' into Psigio-3375 2016-12-14 11:30:53 -05:00
Bryan Housel 6ca4b13304 Store view transform and selectedIDs w/history, and undo/redo them
(closes #2204)
2016-12-10 23:25:58 -05:00
Bryan Housel dc5da7b480 Follow next vertex when deleting, add suppressMenu when vertex following 2016-12-09 12:11:24 -05:00
Bryan Housel 3abf1b5be8 Allow reselection of next vertex even if vertex has multiple parents 2016-12-09 11:57:26 -05:00
Bryan Housel a55ab036aa Don't assume that all the ids in selectedIDs are valid
(This is becuse they might have been deleted in a delete operation
and we are immediately redrawing the results of that operation before
reselecting something else)
2016-12-09 11:46:22 -05:00
Bryan Housel 8a66b3d892 Don't enter iD.modeSelect without valid entities in selectedIDs 2016-12-09 11:32:14 -05:00
Mikołaj "Natsuyasumi" Kuranowski aafb77c7ec Small fixes 2016-12-09 15:08:16 +01:00
Mikołaj "Natsuyasumi" Kuranowski 3d9009725e Address customization 2016-12-09 13:33:15 +01:00
Bryan Housel a3de3534c3 Don't reuse click handler in enter selection, set on update
(closes #3638)
2016-12-08 11:08:21 -05:00
Bryan Housel 1912251251 Add labels for vertices
(closes #2709)
2016-12-07 16:58:27 -05:00
Bryan Housel 6b18ea76ff Hide labels along selected ways, or near selected vertices
(closes #3636)
2016-12-07 15:38:14 -05:00
Bryan Housel 77b78a73ca Complete orphaned d3-zoom gestures that were preventing clicks
(closes #2151), (see also d3/d3-zoom#60, d3/d3-brush#18)

Intercept `mousedown` and check if there is an orphaned zoom gesture.
This can happen if a previous `mousedown` occurred without a `mouseup`.
If we detect this, dispatch `mouseup` to complete the orphaned gesture,
so that d3-zoom won't stop propagation of new `mousedown` events.
2016-12-06 16:54:42 -05:00
Bryan Housel aa3c1c8431 All sources have id now, so compare by id
Fixes an issue where a source might not compare strictly equal e.g.:
1. custom imagery gets blacklisted and replaced with a
`rendererBackgroundSource.None()`
2. which doesn't strictly === the `rendererBackgroundSource.None()` on the
background pane switcher
3. so the radio button would not appear checked
2016-12-04 21:47:46 -05:00
Bryan Housel a7ac44f6e8 Refactor imageryBlacklists so it can be called without triggering a GET
Previous code was problematic because we need the function to
to properly blacklist custom imagery passed in through the url hash,
before iD is completely initialized.  Triggering GET causes tests to
break because osm service testing has side effects :-/
2016-12-04 21:35:55 -05:00