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
f309e925d8
Memoize disabled for all the other operations too
...
see 81127d71f
2019-04-10 11:28:41 -04: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
Bryan Housel
3896b2282f
Remove lodash isNaN, isNumber, isString, bind, uniqBy
...
(re: 6087)
2019-03-27 23:11:45 -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
5ffa8f535e
Relax the availability rules for rotation and reflection operations
...
(closes #4237 )
New rules:
- Rotation available if at least 2 unique nodes in selectedIDs
- Reflection available if at least 3 unique nodes in selectedIDs
2017-08-17 14:32:32 -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
33227c2b53
Adjust text for Reflect operation messages
2017-02-15 16:37:37 -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
087a8c62d1
Behaviors for all Operations
2016-12-20 00:28:24 -05:00
Bryan Housel
35aae816b0
Expose Reflect operation behavior
2016-12-19 16:55:49 -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
72c51bc283
Add getSmallestSurroundingRectangle
2016-12-14 17:21:32 -05:00
Jon D
563f685f9b
Fix tooltip
2016-11-06 11:30:52 +00:00
Jon D
73f3069c59
Rename for consistency, add logic to prevent flip if all of object not visible and if linked to hidden. Label does not render for message when not enabled
2016-11-06 11:15:15 +00:00
Jon D
23990214be
Update to only flip around the vertical axis. Start renaming to 'reflect'
2016-11-06 10:48:48 +00:00