mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Revert zoom removal
This commit is contained in:
parent
87a99cd362
commit
6eafdf4719
@ -40,6 +40,8 @@ class Menu extends IMenu {
|
|||||||
// Create panels ...
|
// Create panels ...
|
||||||
|
|
||||||
const designerModel = designer.getModel();
|
const designerModel = designer.getModel();
|
||||||
|
|
||||||
|
// Common actions ....
|
||||||
const backTolist = $('#backToList');
|
const backTolist = $('#backToList');
|
||||||
backTolist.bind('click', (event) => {
|
backTolist.bind('click', (event) => {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
@ -48,7 +50,22 @@ class Menu extends IMenu {
|
|||||||
});
|
});
|
||||||
Menu._registerTooltip('backToList', $msg('BACK_TO_MAP_LIST'));
|
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) {
|
if (!readOnly) {
|
||||||
const fontFamilyModel = {
|
const fontFamilyModel = {
|
||||||
getValue() {
|
getValue() {
|
||||||
|
Loading…
Reference in New Issue
Block a user