Bryan Housel
1a8cfcc8b1
Changeset refactor
...
(closes #2633 )
* move osmChangeJXON from osm service to osmChangeset
* cleanup putChangeset for code clarity
* adjust params for callbacks (pass changeset around instead of changeset_id)
* add commit.reset() to reset changeset object after successful save
* improve checks for changeset tags (trim whitespace, etc)
2017-03-15 11:03:43 -04:00
Bryan Housel
16df2f595f
Change raw tag editor to embed it on commit pane
2017-03-13 17:32:50 -04:00
Bryan Housel
814a2eb887
Guard code around geoPointInPolygon
...
(closes #3876 )
2017-03-04 00:24:36 -05:00
Bryan Housel
014b580a44
Force inspector to recreate all of its content after a save
...
(closes #3844 )
2017-03-03 01:37:32 -05:00
Bryan Housel
cfb8826290
Position menu when toggling with spacebar
...
(closes #3862 )
2017-02-28 15:02:06 -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
Kushan Joshi
ca25a34987
semver compliance for edit_menu
2017-02-09 13:03:12 +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
86118ece4e
Fix node drag regression introduced in 919234d
...
(closes #3829 )
2017-02-07 11:40:11 -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
bc1193c347
Make sure nodes can be dragged too, not just vertices
...
(fixes bug introduced in 0440054 )
2017-01-29 17:23:34 -05:00
Bryan Housel
f93e57b97d
Use #map.node() for drag surface instead of svg #surface
...
This is because #surface can be transformed during a partial redraw
and d3.mouse() returns transformed point, not the real screen point.
a2cf4f32ec/src/point.js (L4-L9)
2017-01-29 17:11:55 -05:00
Bryan Housel
31dcabc8f8
Actually move the dragged point while nudging
2017-01-29 17:01:36 -05:00
Bryan Housel
6c062fb312
WIP: improve edge to support diagonal nudges, redraws on nudge
...
(working on #3594 today)
2017-01-28 15:51:23 -05:00
Bryan Housel
0440054cd9
Child and sibling vertices should be eligible for drag_node
...
(closes #3799 , see also #3801 )
2017-01-27 13:02:27 -05:00
popov
ad06e341ad
do not use tabs
2017-01-27 09:54:08 -05:00
popov
56dbebd0b6
fix array concat
2017-01-27 09:54:01 -05:00
popov
a2f9f51ee6
Allow to drag a node when a parent relation is selected
2017-01-27 09:53:52 -05:00
Bryan Housel
6b62f40eb6
Improve save flow
...
(see #3777 )
* When entering Save mode, map content transitions inactive: appears grayscale
and dims slightly so colorblind users perceive a change. The sidebar controls
still let the user review their edits, or return to editing to address any
warnings.
* Adjusted the language a little bit "Save" -> "Upload" to make it clear that
an Upload needs to happen. No more 2 Save buttons.
2017-01-24 12:21:05 -05:00
Bryan Housel
3246ca176f
Eagerly load user's details and changesets
...
(closes #3787 )
Also, don't redo authentication in save.js if user is already authenticated
2017-01-22 12:43:39 -05:00
Bryan Housel
0fb506f461
Make sure new midpoint also gets included in activeIDs
2017-01-16 20:37:34 +05:30
Bryan Housel
aff9cc3b13
Merge branch 'drag-node-behavior' of https://github.com/edpop/iD into edpop-drag-node-behavior
2017-01-16 19:32:47 +05:30
Bryan Housel
45b7a40557
Fix area drawing for #3676
...
These changes are needed now that `addNode`
* wants to preserve circularity
* automatically remove duplicates
* range checks index argument (can't call it with -1 anymore)
2017-01-12 19:30:07 +05:30
popov
42a6530796
Do not attach dragNode behavior in browse mode
2017-01-10 10:41:58 +10: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
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
573f476cdd
Rename actionRotateWay -> actionRotate
2016-12-20 22:38:30 -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
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
d69c4d6d9a
Don't highlight previous parent way
...
(closes #3657 )
2016-12-17 23:13:10 -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
dc5da7b480
Follow next vertex when deleting, add suppressMenu when vertex following
2016-12-09 12:11:24 -05:00
Bryan Housel
8a66b3d892
Don't enter iD.modeSelect without valid entities in selectedIDs
2016-12-09 11:32:14 -05:00
Bryan Housel
9b7d79a3fe
Use live bound object for presets object, change context.presets() getter
2016-11-14 15:44:02 -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
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
eb7c56d310
Add vertex keyboard navigation
...
(closes #1917 )
2016-11-01 21:43:26 -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
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