Kyℓe Hensel
6f16060a78
mass-replace done() function with async/await ( #10781 )
2025-02-17 13:10:04 +01:00
Bryan Housel
33fab5580b
Before calling init() make sure the assetPath is set
...
init kicks off building the ui, which can fetch spritesheets for the <defs>
The assetPath needs to be set otherwise these files will not be found
2021-08-16 22:06:42 -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
a1a398650f
Instantiate uiFlash only once as a property of the UI and remove global selection (re: #7445 )
2020-03-29 10:22:58 -07:00
Quincy Morgan
f625406ccc
Convert some element ids to classes to avoid collisions when embedding iD
...
Clarify some footer class names
2020-03-20 13:43:07 -07:00
Quincy Morgan
152d89fa22
Convert some element ids to classes to avoid collisions when embedding iD
2020-03-20 13:10:39 -07:00
Bryan Housel
f247bd1e66
Move icon code into uiFlash, default flash icon to icon-no
...
Previously it was up to the caller to draw whatever they want into the
footer flash. With this change, uiFlash creates an icon and a text, so
the caller doesn't need to do as much work.
2017-12-05 23:41:34 -05:00
Bryan Housel
b7958415b3
Don't remove all the divs under body when testing
2017-08-09 22:02:58 -04:00
Bryan Housel
3b54743f86
Add more d3.timerFlush to avoid false test failures (hopefully)
2017-04-24 16:15:41 -04:00
Bryan Housel
3908da03cf
Fix styling of flash and footer and use absolutely positioned divs
...
Also fix flash tests
2017-02-17 00:23:24 -05:00
Bryan Housel
c18cc7577d
Add flash test, avoid using sinon.useFakeTimers in tests.
...
sinon.useFakeTimers mocks setInterval, setTimeout, etc,
but not requestAnimationFrame, which d3 transitions rely on.
2017-02-11 00:19:49 -05:00
Bryan Housel
87950fd472
Fix lib export, flatten names in tests and docs
2016-10-04 21:56:09 -04:00
Kushan Joshi
4b2431a4e3
Remove linting error spec/ui
2016-06-15 18:26:11 +05:30
Tom MacWright
d159b37ab6
Fix tests
2013-02-05 12:10:05 -05:00
Tom MacWright
671e138fcd
Fix flash test
2013-01-23 15:32:25 -05:00
John Firebaugh
348634a5b8
This is verified as part of other test
2013-01-18 15:03:34 -08:00
John Firebaugh
2b45a5b452
Use sinon's fake timers
2013-01-18 15:00:50 -08:00
Tom MacWright
4808a8ec9d
Improve test coverage of ui elements
2013-01-16 12:29:59 -05:00