mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Revert zoom removal
This commit is contained in:
parent
87a99cd362
commit
6eafdf4719
@ -40,6 +40,8 @@ class Menu extends IMenu {
|
||||
// Create panels ...
|
||||
|
||||
const designerModel = designer.getModel();
|
||||
|
||||
// Common actions ....
|
||||
const backTolist = $('#backToList');
|
||||
backTolist.bind('click', (event) => {
|
||||
event.stopPropagation();
|
||||
@ -48,7 +50,22 @@ class Menu extends IMenu {
|
||||
});
|
||||
Menu._registerTooltip('backToList', $msg('BACK_TO_MAP_LIST'));
|
||||
|
||||
this._addButton('zoom-plus', false, false, () => {
|
||||
designer.zoomIn();
|
||||
});
|
||||
Menu._registerTooltip('zoom-plus', $msg('ZOOM_IN'));
|
||||
|
||||
this._addButton('zoom-minus', false, false, () => {
|
||||
designer.zoomOut();
|
||||
});
|
||||
Menu._registerTooltip('zoom-minus', $msg('ZOOM_OUT'));
|
||||
|
||||
this._addButton('position', false, false, () => {
|
||||
designer.zoomToFit();
|
||||
});
|
||||
Menu._registerTooltip('position', $msg('CENTER_POSITION'));
|
||||
|
||||
// Edition actions ...
|
||||
if (!readOnly) {
|
||||
const fontFamilyModel = {
|
||||
getValue() {
|
||||
|
Loading…
Reference in New Issue
Block a user