mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Compiles.
This commit is contained in:
parent
63b5aef63b
commit
4be35a741e
@ -49,6 +49,8 @@ import IconPicker from '../action-widget/pane/icon-picker';
|
|||||||
import FontFamilySelector from '../action-widget/button/font-family-selector';
|
import FontFamilySelector from '../action-widget/button/font-family-selector';
|
||||||
import Capability from '../../classes/action/capability';
|
import Capability from '../../classes/action/capability';
|
||||||
|
|
||||||
|
export type ToolbarActionType = 'export' | 'publish' | 'history' | 'print' | 'share' | 'info';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param designer designer to aply changes
|
* @param designer designer to aply changes
|
||||||
@ -305,11 +307,14 @@ export function buildZoomToolbarConfiguration(
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
icon: <CenterFocusStrongOutlinedIcon />,
|
icon: <KeyboardOutlined />,
|
||||||
tooltip: $msg('CENTER_POSITION'),
|
tooltip: $msg('KEYBOARD_SHOTCUTS'),
|
||||||
onClick: () => {
|
visible: !capability.isHidden('keyboard-shortcuts'),
|
||||||
designer.zoomToFit();
|
options: [
|
||||||
},
|
{
|
||||||
|
render: () => <KeyboardShorcutsHelp />,
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// zoom value candidate, neds to fixit
|
// zoom value candidate, neds to fixit
|
||||||
@ -336,14 +341,11 @@ export function buildZoomToolbarConfiguration(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: <KeyboardOutlined />,
|
icon: <CenterFocusStrongOutlinedIcon />,
|
||||||
tooltip: $msg('KEYBOARD_SHOTCUTS'),
|
tooltip: $msg('CENTER_POSITION'),
|
||||||
visible: !capability.isHidden('keyboard-shortcuts'),
|
onClick: () => {
|
||||||
options: [
|
designer.zoomToFit();
|
||||||
{
|
},
|
||||||
render: () => <KeyboardShorcutsHelp />,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user