27 Commits

Author SHA1 Message Date
Martin Raifer
8c1fc20311 walkthrough: use left/right tooltips if the anchor is close to the left/right edge of the screen
closes #10634

This happens for example when the tooltip are rendered for the map controlls (right or left edge of the screen depending on user locale): If the anchor is close to the bottom of the screen, the tooltip would be placed not ideally in the corner and hard to read. It is solved by falling back to left/right tooltips with a potentially offset arrow in these cases
2025-01-10 16:01:17 +01:00
Martin Raifer
40a5c32e2f fix misaligned walkthrough mask when supersurface is not at 0/0 origin
closes #10624

The misalignment happens because the origin offset is not properly accounted for boxes around map coordinates, when the map surface is itself offset from the top-left corner of the map. This can happen with customized installations of iD, e.g. the version built into the HOT tasking manager.
2025-01-10 15:13:54 +01:00
Quincy Morgan
d247ec3aed Enable brace-style eslint rule 2020-11-10 13:49:48 -05:00
Quincy Morgan
a92816222e Fix styling of instructions in the walkthrough 2020-10-23 10:28:42 -04:00
Quincy Morgan
21a49bbec8 Initial support for D3 v6.2.0 2020-10-06 15:08:39 -04:00
Quincy Morgan
0bc56f9471 Start touch support for walkthrough (re: #7692) 2020-06-26 15:48:57 -04:00
Quincy Morgan
38bc5131fa Fix incorrect curtain positioning when iD's container doesn't match the window dimensions (close #7551) 2020-05-08 09:40:27 -07: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
14da8cb7a7 Make iD's container a local stacking context (close #7457)
Move some inline CSS to the stylesheet
2020-03-24 16:15:06 -07:00
Quincy Morgan
f2a687f68b Convert container from id to class 2020-03-20 15:08:56 -07:00
Quincy Morgan
523a467836 2.x: Make toolbar horizontally scrollable when it overflows (re: #6755, re: 7545f67063b5e7007ef2d8367e3181e59c04a487)
Generalize tooltip into popover control
Use the same popover control for tooltip as the preset browser and tools list popovers
Smartly position the preset browser popover and menu bar tooltips to stay fully onscreen
Position most tooltips closer to their controls
Fix small gap that could appear between a tooltip and its arrow
Allow wider toolbar tooltips
2019-12-16 13:30:07 -05:00
Quincy Morgan
c3653616e6 Make modals work better at small screen sizes
Flexbox the modal action buttons
Replace "col8" CSS class
2019-04-07 14:49:33 -07:00
Bryan Housel
3d13620705 Convert lodah-es and d3 to named imports for ui 2017-09-26 11:22:43 -04:00
Bryan Housel
bde1c78d32 Break up longer text, mention Alt key to avoid point snapping 2017-04-18 14:06:00 -04:00
Bryan Housel
e3152fb8ec Make sure user can left and right click 2017-04-18 02:37:49 -04:00
Bryan Housel
cf9eb22e5f Adjust language, remove curtain for play steps 2017-04-17 17:51:22 -04:00
Bryan Housel
dfe91207af Change the pseudomarkdown emphasis to be global and nongreedy 2017-04-16 18:29:08 -04:00
Bryan Housel
5c687e5c1c Gentler introduction to jargon, add some more defensive code 2017-04-13 15:26:21 -04:00
Bryan Housel
7371f869c8 Allow curtain to be called with a null box (no cutout) 2017-04-09 20:29:05 -04:00
Bryan Housel
36b90fa653 More adjustments to walkthrough language, timing 2017-04-05 22:01:15 -04:00
Bryan Housel
5459f54900 Add copyBox to copy immutable ClientRects
bc we do things like `box.height -= something` to trim box to window
2017-03-30 17:48:31 -04:00
Bryan Housel
df20825a10 Add selected step to navigation, let user free play at end of chapter 2017-03-27 23:03:17 -04:00
Bryan Housel
b7267e0571 Add ability to put an OK button on the curtain-tooltip 2017-03-26 00:35:00 -04:00
Bryan Housel
6cc524a0a0 Improve walkthrough tooltip placement, fix for RTL too
(closes #3925)
2017-03-25 00:48:55 -04:00
Bryan Housel
525994082c Support "top" placement so we can tooltip the navigation menu 2017-03-24 21:43:29 -04:00
Bryan Housel
468c1e427d All graphics from iD-sprite are now symbols that can be used
(re: #3924)
2017-03-23 21:16:32 -04:00
Bryan Housel
b55cebed2e Move d3curtain to uiCurtain, remove unused event dispatch 2017-03-22 09:59:59 -04:00