mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-23 15:17:57 +01:00
36 lines
595 B
TypeScript
36 lines
595 B
TypeScript
|
/**
|
||
|
* Configure position of a toolbar
|
||
|
*/
|
||
|
export default interface ToolbarPosition {
|
||
|
/**
|
||
|
* if true, first level will be displayed in vertical orientation
|
||
|
*/
|
||
|
vertical?: boolean;
|
||
|
position?: {
|
||
|
/**
|
||
|
* css properties for appbar rigth
|
||
|
*/
|
||
|
right: string;
|
||
|
/**
|
||
|
* css properties for appbar top
|
||
|
*/
|
||
|
top: string;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export const defaultPosition: ToolbarPosition = {
|
||
|
vertical: true,
|
||
|
position: {
|
||
|
right: '50px',
|
||
|
top: '100px',
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export const horizontalPosition = {
|
||
|
position: {
|
||
|
right: '50px',
|
||
|
top: '90%',
|
||
|
},
|
||
|
vertical: false,
|
||
|
};
|