Table of contents

Public interface

Signature
interface TLUiEventMap {}
Source

packages/tldraw/src/lib/ui/context/events.tsx


Properties

"align-shapes"

Public propertysignature

Signature
'align-shapes': {
  operation:
    | 'bottom'
    | 'center-horizontal'
    | 'center-vertical'
    | 'left'
    | 'right'
    | 'top'
}

"change-language"

Public propertysignature

Signature
'change-language': {
  locale: string
}

"close-menu"

Public propertysignature

Signature
'close-menu': {
  id: string
}

"convert-to-bookmark"

Public propertysignature

Signature
'convert-to-bookmark': null

"convert-to-embed"

Public propertysignature

Signature
'convert-to-embed': null

"copy-as"

Public propertysignature

Signature
'copy-as': {
  format: 'json' | 'png' | 'svg'
}

"create-new-project"

Public propertysignature

Signature
'create-new-project': null

"delete-shapes"

Public propertysignature

Signature
'delete-shapes': null

"distribute-shapes"

Public propertysignature

Signature
'distribute-shapes': {
  operation: 'horizontal' | 'vertical'
}

"duplicate-shapes"

Public propertysignature

Signature
'duplicate-shapes': null

Public propertysignature

Signature
'edit-link': null

"exit-pen-mode"

Public propertysignature

Signature
'exit-pen-mode': null

"export-all-as"

Public propertysignature

Signature
'export-all-as': {
  format: 'json' | 'png' | 'svg'
}

"export-as"

Public propertysignature

Signature
'export-as': {
  format: 'json' | 'png' | 'svg'
}

"fit-frame-to-content"

Public propertysignature

Signature
'fit-frame-to-content': null

"flip-shapes"

Public propertysignature

Signature
'flip-shapes': {
  operation: 'horizontal' | 'vertical'
}

"group-shapes"

Public propertysignature

Signature
'group-shapes': null

"insert-embed"

Public propertysignature

Signature
'insert-embed': null

"insert-media"

Public propertysignature

Signature
'insert-media': null

"move-to-page"

Public propertysignature

Signature
'move-to-page': null

"new-page"

Public propertysignature

Signature
'new-page': null

"open-cursor-chat"

Public propertysignature

Signature
'open-cursor-chat': null

Public propertysignature

Signature
'open-embed-link': null

"open-file"

Public propertysignature

Signature
'open-file': null

"open-menu"

Public propertysignature

Signature
'open-menu': {
  id: string
}

"pack-shapes"

Public propertysignature

Signature
'pack-shapes': null

"remove-frame"

Public propertysignature

Signature
'remove-frame': null

"reorder-shapes"

Public propertysignature

Signature
'reorder-shapes': {
  operation: 'backward' | 'forward' | 'toBack' | 'toFront'
}

"reset-zoom"

Public propertysignature

Signature
'reset-zoom': null

"rotate-ccw"

Public propertysignature

Signature
'rotate-ccw': null

"rotate-cw"

Public propertysignature

Signature
'rotate-cw': null

"save-project-to-file"

Public propertysignature

Signature
'save-project-to-file': null

"select-all-shapes"

Public propertysignature

Signature
'select-all-shapes': null

"select-none-shapes"

Public propertysignature

Signature
'select-none-shapes': null

"select-tool"

Public propertysignature

Signature
'select-tool': {
  id: string
}

"set-style"

Public propertysignature

Signature
'set-style': {
  id: string
  value: number | string
}

"stack-shapes"

Public propertysignature

Signature
'stack-shapes': {
  operation: 'horizontal' | 'vertical'
}

"stop-following"

Public propertysignature

Signature
'stop-following': null

"stretch-shapes"

Public propertysignature

Signature
'stretch-shapes': {
  operation: 'horizontal' | 'vertical'
}

"toggle-auto-size"

Public propertysignature

Signature
'toggle-auto-size': null

"toggle-dark-mode"

Public propertysignature

Signature
'toggle-dark-mode': null

"toggle-debug-mode"

Public propertysignature

Signature
'toggle-debug-mode': null

"toggle-edge-scrolling"

Public propertysignature

Signature
'toggle-edge-scrolling': null

"toggle-focus-mode"

Public propertysignature

Signature
'toggle-focus-mode': null

"toggle-grid-mode"

Public propertysignature

Signature
'toggle-grid-mode': null

"toggle-lock"

Public propertysignature

Signature
'toggle-lock': null

"toggle-reduce-motion"

Public propertysignature

Signature
'toggle-reduce-motion': null

"toggle-snap-mode"

Public propertysignature

Signature
'toggle-snap-mode': null

"toggle-tool-lock"

Public propertysignature

Signature
'toggle-tool-lock': null

"toggle-transparent"

Public propertysignature

Signature
'toggle-transparent': null

"toggle-wrap-mode"

Public propertysignature

Signature
'toggle-wrap-mode': null

"ungroup-shapes"

Public propertysignature

Signature
'ungroup-shapes': null

"unlock-all"

Public propertysignature

Signature
'unlock-all': null

"zoom-in"

Public propertysignature

Signature
'zoom-in': null

"zoom-into-view"

Public propertysignature

Signature
'zoom-into-view': null

"zoom-out"

Public propertysignature

Signature
'zoom-out': null

"zoom-to-content"

Public propertysignature

Signature
'zoom-to-content': null

"zoom-to-fit"

Public propertysignature

Signature
'zoom-to-fit': null

"zoom-to-selection"

Public propertysignature

Signature
'zoom-to-selection': null

"zoom-tool"

Public propertysignature

Signature
'zoom-tool': null

copy

Public propertysignature

Signature
copy: null

cut

Public propertysignature

Signature
cut: null

paste

Public propertysignature

Signature
paste: null

print

Public propertysignature

Signature
print: null

redo

Public propertysignature

Signature
redo: null

undo

Public propertysignature

Signature
undo: null

TLUiEventHandlerTLUiEventSource