Martin Raifer
85022dcc6c
render operations texts with lang attribute
2022-06-23 19:23:16 +02:00
Quincy Morgan
27003d9e71
Highlight related but unselected features when hovering over operations in the edit menu ( close #8034 )
2020-09-30 16:46:13 -04:00
Quincy Morgan
43f5386dad
Ignore unaffected nodes when determining if Disconnect is disabled due to lack of visibility ( close #7944 )
2020-09-02 13:14:19 -04:00
Quincy Morgan
5f93da5a59
Add a reusable function for calculating the combined extent of multiple entities (re: #7706 )
2020-06-16 13:17:43 -04:00
Quincy Morgan
28bd985a31
Prevent disconnecting nodes that aren't mostly visible
...
Return 1 for geoExtent.percentContainedIn when caller is a zero-area extent contained within the argument extent
Prefix function-scope operationExtent variables with underscores
2020-06-05 13:54:41 -04:00
Quincy Morgan
6c2b097eb7
Enable disconnection of multiple selected features from each other, if connected, and otherwise from everything ( close #7652 )
...
Add specific descriptions for a wider range of disconnection scenarios
2020-06-03 14:51:31 -04:00
Quincy Morgan
db9eed2434
Move the edit menu logic to uiInit
...
Make context the first argument of operation objects
Add Paste operation to edit menu when opening the context menu on a blank area of the map (close #2508 )
2020-05-14 15:49:35 -04:00
Quincy Morgan
a1af118f0e
Ensure locales and presets are loaded before the UI loads ( close #7406 )
...
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan
6087aae21f
Remove map convenience functions of context
2020-03-22 10:57:17 -07:00
Quincy Morgan
3c0b926ec7
Replace coreContext.geometry function with a more explicit coreGraph.geometry function
2020-03-21 14:23:44 -07:00
Quincy Morgan
d1ad5a431f
Don't check if data is downloaded for operations in the walkthrough
2019-05-10 12:44:02 -04:00
Bryan Housel
901cab57da
Remove _disabled caches for operations
...
(re: #6296 , reverts 81127d7 )
see https://github.com/openstreetmap/iD/issues/6296#issuecomment-489259027
(I'll find another way to deal with the menu not matching the tooltip)
2019-05-07 10:32:12 -04:00
Bryan Housel
966f5c3586
Add explicit validation calls to each operation
...
This is cleaner than adding hooks to transitionable actions, or performing validation
on every history change. We want validation to run after each operation, but not
while the user is drawing lines or typing in fields.
2019-05-06 14:49:46 -04:00
Quincy Morgan
d01bb78707
Reduce circular dependencies caused by importing from indexes, the location of the validation models, and the location of areaKeys ( close #6237 )
2019-04-24 13:45:59 -07:00
Bryan Housel
e4fc821eb0
Just use reduce
2019-04-22 09:49:17 -04:00
Bryan Housel
3557e3c711
Don't allow disconnecting a way if parts extend to undownloaded tiles
...
(re: #2248 , #4245 )
2019-04-20 00:02:46 -04:00
Bryan Housel
51c1088c1b
Merge branch 'master' into validation_and_change_perf
2019-04-19 15:18:23 -04:00
Quincy Morgan
130e9909f6
Allow disconnecting an entire way from other ways at once ( close #4245 )
2019-04-19 11:54:13 -07:00
Bryan Housel
0a77a494aa
Merge branch 'master' into validation_and_change_perf
2019-04-10 14:22:20 -04:00
Bryan Housel
f309e925d8
Memoize disabled for all the other operations too
...
see 81127d71f
2019-04-10 11:28:41 -04:00
Quincy Morgan
89d8f887be
Allow disconnecting multiple selected vertices at once ( close #6164 )
2019-04-09 14:04:52 -07:00
Bryan Housel
df1a2ea361
Prevent some actions on features that extend beyond the loaded map
...
(closes #2248 )
2019-04-08 21:26:58 -04:00
J Guthrie
ac29803b6f
Fix eslint error
2019-04-08 16:38:10 +01:00
J Guthrie
4d24db597e
Small refactor to improve efficiency
2019-04-08 16:28:01 +01:00
J Guthrie
7edebb897f
Only allow disconnect when selected ways relate to selected node
2019-04-08 12:41:05 +01:00
Bryan Housel
1ce4f0ad6a
Remove lodash without
...
(re: #6087 )
2019-03-25 21:56:54 -04:00
Bryan Housel
76e0d13729
Remove lodash every and filter
...
(re: #6087 )
2019-03-23 01:22:56 -04:00
Bryan Housel
7e6f68a1b2
Remove lodash some
...
(re: #6087 )
2019-03-23 00:07:52 -04:00
Bryan Housel
3def4db09f
Convert lodah-es and d3 to named imports for operations
2017-09-25 13:58:53 -04: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
028ef3de3f
Expose annotations for each operation
2017-02-15 22:01:30 -05:00
Bryan Housel
087a8c62d1
Behaviors for all Operations
2016-12-20 00:28:24 -05:00
Bryan Housel
3102a4ae6a
Rename all the things to include pseudonamespaces
2016-10-04 19:06:20 -04:00
Bryan Housel
a86f34b4ef
Pacify eslint, get build and tests running again
2016-08-26 01:15:07 -04:00
Tom MacWright
af776501d3
Require locale, second pass ( #3259 )
...
* Require locale, second pass
* Remove t global, remove t where it isn't needed
2016-07-21 16:20:13 -04:00
Tom MacWright
604d1e2719
import lodash ( #3257 )
2016-07-19 12:04:16 -04:00
Kushan Joshi
52c466bc27
external modules for operations
2016-06-22 12:34:43 +05:30
Kushan Joshi
2db0f636b1
modularize iD.operations
2016-06-16 00:42:43 +05:30