Table of contents
interface TLUiEventMap {}
'align-shapes': {
operation:
| 'bottom'
| 'center-horizontal'
| 'center-vertical'
| 'left'
| 'right'
| 'top'
}
'change-language': {
locale: string
}
'change-page': null
'change-user-name': null
'close-menu': {
id: string
}
'color-scheme': {
value: string
}
'convert-to-bookmark': null
'convert-to-embed': null
'copy-as': {
format: 'json' | 'png' | 'svg'
}
'create-new-project': null
'delete-page': null
'delete-shapes': null
'distribute-shapes': {
operation: 'horizontal' | 'vertical'
}
'duplicate-page': null
'duplicate-shapes': null
'edit-link': null
'exit-pen-mode': null
'export-all-as': {
format: 'json' | 'png' | 'svg'
}
'export-as': {
format: 'json' | 'png' | 'svg'
}
'fit-frame-to-content': null
'flatten-to-image': null
'flip-shapes': {
operation: 'horizontal' | 'vertical'
}
'group-shapes': null
'insert-embed': null
'insert-media': null
'move-page': null
'move-to-new-page': null
'move-to-page': null
'new-page': null
'open-cursor-chat': null
'open-embed-link': null
'open-file': null
'open-menu': {
id: string
}
'pack-shapes': null
'remove-frame': null
'rename-page': null
'reorder-shapes': {
operation: 'backward' | 'forward' | 'toBack' | 'toFront'
}
'reset-zoom': null
'rotate-ccw': null
'rotate-cw': null
'save-project-to-file': null
'select-all-shapes': null
'select-none-shapes': null
'select-tool': {
id: string
}
'set-color': null
'set-style': {
id: string
value: number | string
}
'stack-shapes': {
operation: 'horizontal' | 'vertical'
}
'start-following': null
'stop-following': null
'stretch-shapes': {
operation: 'horizontal' | 'vertical'
}
'toggle-auto-size': null
'toggle-debug-mode': null
'toggle-dynamic-size-mode': null
'toggle-edge-scrolling': null
'toggle-focus-mode': null
'toggle-grid-mode': null
'toggle-lock': null
'toggle-paste-at-cursor': null
'toggle-reduce-motion': null
'toggle-snap-mode': null
'toggle-tool-lock': null
'toggle-transparent': null
'toggle-wrap-mode': null
'ungroup-shapes': null
'unlock-all': null
'zoom-in': null
'zoom-into-view': null
'zoom-out': null
'zoom-to-content': null
'zoom-to-fit': null
'zoom-to-selection': null
'zoom-tool': null
copy: null
cut: null
paste: null
print: null
redo: null
undo: null