Bryan Housel
2651e7ddc9
In move/rotate cancel, check whether graph has changed before popping
...
(closes #8441 )
2021-04-02 09:48:41 -04:00
Quincy Morgan
655c3a692c
Enable dragging the map during feature move and selection without exiting the mode ( close #8187 )
2020-12-03 15:05:19 -05:00
Quincy Morgan
21a49bbec8
Initial support for D3 v6.2.0
2020-10-06 15:08:39 -04:00
Quincy Morgan
79688ce2d9
Show count and use plural forms for more operation strings (re: #8014 )
2020-09-22 09:10:49 -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
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
Quincy Morgan
c7e861c0ca
Merge branch 'master' into validation
2019-02-14 12:16:23 -05:00
SilentSpike
a7e0c779b3
Persist forced visible entities on move/rotate
2019-02-12 22:25:47 +00:00
Quincy Morgan
536ee2e786
Validations now update instantly upon an annotated graph change
2019-01-14 15:19:00 -05:00
Bryan Housel
152022aec4
Use context.keybinding for keybindings that don't change
...
(closes #5487 )
2018-11-13 20:57:21 -05:00
Bryan Housel
bb30cbf555
Move lib/d3.keybinding.js -> util/keybinding.js
...
almost none of the original d3 "plugin" code remains
2018-11-13 13:42:09 -05:00
Bryan Housel
9b200cf514
Code cleanups, changes to replaceMovedVertex in moveAction
...
Trying to eliminate the minimum 10m distance for replacing the original
junction vertex - this is a small threshold. When _not_ replacing this
vertex, the unzorro code will wreck havok on a traffic circle.
(If there is no suitable vertex to use, it will snap to a point between
the nearest vertices, see #4146 )
2018-01-28 23:56:03 -05:00
Bryan Housel
18c97d52c8
Extract viewport nudging code from several places to geoViewportEdge
2017-12-18 09:50:17 -05:00
Bryan Housel
57ba6a9862
Add selectedIDs() for modeMove and modeRotate
...
This allows the label collision boxes for the vertices to update
during these modes. Otherwise the labels.js `isInterestingVertex()`
function doesn't consider them interesting enough to update.
2017-12-18 00:11:08 -05:00
Bryan Housel
914ef0236a
Convert lodah-es and d3 to named imports for modes
2017-09-24 23:25:49 -04:00
Bryan Housel
d441cd92c3
Smaller nudge regions in drag_node and move
...
(closes #3956 )
2017-04-20 22:18:33 -04:00
Bryan Housel
e756520bd8
suppressMenu(true) is now the default
2017-02-21 15:47:22 -05:00
Bryan Housel
57696ab5eb
Rename rotate-way mode to just rotate
2016-12-20 13:44:39 -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
3102a4ae6a
Rename all the things to include pseudonamespaces
2016-10-04 19:06:20 -04:00
Tom MacWright
ed135ce9ef
Enable lib tests
2016-09-05 10:22:45 -04:00
Tom MacWright
947a1d9c1a
Resolve lints
2016-09-03 19:08:03 -04:00
Tom MacWright
3af54610ca
Refactor customEvent system to use d3.customEvent
2016-09-03 17:56:56 -04:00
Bryan Housel
a86f34b4ef
Pacify eslint, get build and tests running again
2016-08-26 01:15:07 -04:00
Tom MacWright
cdb533fa84
Begin d3 v4 update
2016-08-21 15:19:27 -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
Kushan Joshi
39c82af158
Sort modules [eslint rule]
2016-07-06 12:12:08 +05:30
Kushan Joshi
33b2b1e6fd
external modules for modes
2016-06-22 12:34:43 +05:30
David Culverhouse
34904f0525
Migrate "modes" into ES6 modules for #3118
2016-06-15 00:11:32 -04:00