mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 23:54:55 +01:00
Add zoom loader as default action
This commit is contained in:
parent
ecc2ab4e0f
commit
1094881e40
@ -62,6 +62,22 @@ const options = buildOptions({
|
|||||||
// Build designer ...
|
// Build designer ...
|
||||||
const designer = buildDesigner(options);
|
const designer = buildDesigner(options);
|
||||||
|
|
||||||
|
// Hock zoom events ...
|
||||||
|
const zoomInButton = document.getElementById('zoom-plus');
|
||||||
|
const zoomOutButton = document.getElementById('zoom-minus');
|
||||||
|
|
||||||
|
if (zoomInButton) {
|
||||||
|
zoomInButton.addEventListener('click', () => {
|
||||||
|
designer.zoomIn();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (zoomOutButton) {
|
||||||
|
zoomOutButton.addEventListener('click', () => {
|
||||||
|
designer.zoomOut();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
designer.addEvent('loadSuccess', () => {
|
designer.addEvent('loadSuccess', () => {
|
||||||
loadingModal.hide();
|
loadingModal.hide();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user