TLUiEventMap
Table of contents
- Properties
- "align-shapes"
- "close-menu"
- "convert-to-bookmark"
- "convert-to-embed"
- "copy-as"
- "create-new-project"
- "delete-shapes"
- "distribute-shapes"
- "duplicate-shapes"
- "edit-link"
- "exit-pen-mode"
- "export-as"
- "fit-frame-to-content"
- "flip-shapes"
- "group-shapes"
- "insert-embed"
- "insert-media"
- "open-cursor-chat"
- "open-embed-link"
- "open-file"
- "open-menu"
- "pack-shapes"
- "remove-frame"
- "reorder-shapes"
- "reset-zoom"
- "rotate-ccw"
- "rotate-cw"
- "save-project-to-file"
- "select-all-shapes"
- "select-none-shapes"
- "select-tool"
- "stack-shapes"
- "stop-following"
- "stretch-shapes"
- "toggle-auto-size"
- "toggle-dark-mode"
- "toggle-debug-mode"
- "toggle-edge-scrolling"
- "toggle-focus-mode"
- "toggle-grid-mode"
- "toggle-lock"
- "toggle-reduce-motion"
- "toggle-snap-mode"
- "toggle-tool-lock"
- "toggle-transparent"
- "ungroup-shapes"
- "unlock-all"
- "zoom-in"
- "zoom-into-view"
- "zoom-out"
- "zoom-to-content"
- "zoom-to-fit"
- "zoom-to-selection"
- "zoom-tool"
- copy
- cut
- paste
- redo
- undo
Public interface
interface TLUiEventMap {}
packages/tldraw/src/lib/ui/hooks/useEventsProvider.tsx
Properties
"align-shapes"
Public propertysignature
'align-shapes': {
operation:
| 'bottom'
| 'center-horizontal'
| 'center-vertical'
| 'left'
| 'right'
| 'top'
}
"close-menu"
Public propertysignature
'close-menu': {
id: string
}
"convert-to-bookmark"
Public propertysignature
'convert-to-bookmark': null
"convert-to-embed"
Public propertysignature
'convert-to-embed': null
"copy-as"
Public propertysignature
'copy-as': {
format: 'json' | 'png' | 'svg'
}
"create-new-project"
Public propertysignature
'create-new-project': null
"delete-shapes"
Public propertysignature
'delete-shapes': null
"distribute-shapes"
Public propertysignature
'distribute-shapes': {
operation: 'horizontal' | 'vertical'
}
"duplicate-shapes"
Public propertysignature
'duplicate-shapes': null
"edit-link"
Public propertysignature
'edit-link': null
"exit-pen-mode"
Public propertysignature
'exit-pen-mode': null
"export-as"
Public propertysignature
'export-as': {
format: 'json' | 'png' | 'svg'
}
"fit-frame-to-content"
Public propertysignature
'fit-frame-to-content': null
"flip-shapes"
Public propertysignature
'flip-shapes': {
operation: 'horizontal' | 'vertical'
}
"group-shapes"
Public propertysignature
'group-shapes': null
"insert-embed"
Public propertysignature
'insert-embed': null
"insert-media"
Public propertysignature
'insert-media': null
"open-cursor-chat"
Public propertysignature
'open-cursor-chat': null
"open-embed-link"
Public propertysignature
'open-embed-link': null
"open-file"
Public propertysignature
'open-file': null
"open-menu"
Public propertysignature
'open-menu': {
id: string
}
"pack-shapes"
Public propertysignature
'pack-shapes': null
"remove-frame"
Public propertysignature
'remove-frame': null
"reorder-shapes"
Public propertysignature
'reorder-shapes': {
operation: 'backward' | 'forward' | 'toBack' | 'toFront'
}
"reset-zoom"
Public propertysignature
'reset-zoom': null
"rotate-ccw"
Public propertysignature
'rotate-ccw': null
"rotate-cw"
Public propertysignature
'rotate-cw': null
"save-project-to-file"
Public propertysignature
'save-project-to-file': null
"select-all-shapes"
Public propertysignature
'select-all-shapes': null
"select-none-shapes"
Public propertysignature
'select-none-shapes': null
"select-tool"
Public propertysignature
'select-tool': {
id: string
}
"stack-shapes"
Public propertysignature
'stack-shapes': {
operation: 'horizontal' | 'vertical'
}
"stop-following"
Public propertysignature
'stop-following': null
"stretch-shapes"
Public propertysignature
'stretch-shapes': {
operation: 'horizontal' | 'vertical'
}
"toggle-auto-size"
Public propertysignature
'toggle-auto-size': null
"toggle-dark-mode"
Public propertysignature
'toggle-dark-mode': null
"toggle-debug-mode"
Public propertysignature
'toggle-debug-mode': null
"toggle-edge-scrolling"
Public propertysignature
'toggle-edge-scrolling': null
"toggle-focus-mode"
Public propertysignature
'toggle-focus-mode': null
"toggle-grid-mode"
Public propertysignature
'toggle-grid-mode': null
"toggle-lock"
Public propertysignature
'toggle-lock': null
"toggle-reduce-motion"
Public propertysignature
'toggle-reduce-motion': null
"toggle-snap-mode"
Public propertysignature
'toggle-snap-mode': null
"toggle-tool-lock"
Public propertysignature
'toggle-tool-lock': null
"toggle-transparent"
Public propertysignature
'toggle-transparent': null
"ungroup-shapes"
Public propertysignature
'ungroup-shapes': null
"unlock-all"
Public propertysignature
'unlock-all': null
"zoom-in"
Public propertysignature
'zoom-in': null
"zoom-into-view"
Public propertysignature
'zoom-into-view': null
"zoom-out"
Public propertysignature
'zoom-out': null
"zoom-to-content"
Public propertysignature
'zoom-to-content': null
"zoom-to-fit"
Public propertysignature
'zoom-to-fit': null
"zoom-to-selection"
Public propertysignature
'zoom-to-selection': null
"zoom-tool"
Public propertysignature
'zoom-tool': null
copy
Public propertysignature
copy: null
cut
Public propertysignature
cut: null
paste
Public propertysignature
paste: null
print
Public propertysignature
print: null
redo
Public propertysignature
redo: null
undo
Public propertysignature
undo: null