chore: move ui to dedicated modules #1847
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
umap.ui.js
is removed, and replaced by those two modules:tooltip.js
andalert.js
Also, panel.js is moved in the same folder
modules/ui/
Also, a minimal Dialog class is added, to replace the custom made help box.
Those changes impact a lot of lines, but with very little logic change.
The most notable is certainly that
Request
does not expect anymore aui
parameter but analert
directly. And thus, it cannot useui
anymore to send its event, so it sends them on the body element, which the Map is then listening.Better to review each commit separately. :)