tldraw/state/commands/index.ts

60 lines
1.3 KiB
TypeScript
Raw Normal View History

2021-05-28 20:30:27 +00:00
import align from './align'
2021-06-03 12:06:39 +00:00
import changePage from './change-page'
2021-06-03 13:10:54 +00:00
import createPage from './create-page'
import deletePage from './delete-page'
2021-06-10 09:49:16 +00:00
import deleteSelected from './delete-selected'
2021-05-28 20:30:27 +00:00
import distribute from './distribute'
import doublePointHandle from './double-point-handle'
2021-05-31 19:13:43 +00:00
import draw from './draw'
2021-05-28 20:30:27 +00:00
import duplicate from './duplicate'
import edit from './edit'
2021-05-28 20:30:27 +00:00
import generate from './generate'
2021-06-10 09:49:16 +00:00
import group from './group'
2021-05-28 20:30:27 +00:00
import move from './move'
2021-06-10 09:49:16 +00:00
import moveToPage from './move-to-page'
import mutate from './mutate'
2021-05-31 19:13:43 +00:00
import nudge from './nudge'
2021-06-18 10:14:23 +00:00
import paste from './paste'
import resetBounds from './reset-bounds'
import rotate from './rotate'
2021-05-31 19:13:43 +00:00
import rotateCcw from './rotate-ccw'
2021-05-28 20:30:27 +00:00
import stretch from './stretch'
import style from './style'
2021-05-31 19:13:43 +00:00
import toggle from './toggle'
2021-05-28 20:30:27 +00:00
import transform from './transform'
import transformSingle from './transform-single'
import translate from './translate'
2021-06-04 16:08:43 +00:00
import ungroup from './ungroup'
2021-05-13 06:44:52 +00:00
2021-05-15 15:20:21 +00:00
const commands = {
2021-05-26 19:20:52 +00:00
align,
2021-06-03 12:06:39 +00:00
changePage,
2021-06-03 13:10:54 +00:00
createPage,
deletePage,
2021-05-26 19:20:52 +00:00
deleteSelected,
distribute,
doublePointHandle,
2021-05-31 19:13:43 +00:00
draw,
2021-05-28 20:30:27 +00:00
duplicate,
edit,
2021-05-26 19:20:52 +00:00
generate,
2021-06-10 09:49:16 +00:00
group,
2021-05-23 17:09:23 +00:00
move,
2021-06-10 09:49:16 +00:00
moveToPage,
mutate,
2021-05-31 19:13:43 +00:00
nudge,
2021-06-18 10:14:23 +00:00
paste,
resetBounds,
2021-05-26 19:20:52 +00:00
rotate,
2021-05-31 19:13:43 +00:00
rotateCcw,
2021-05-26 19:20:52 +00:00
stretch,
2021-05-26 10:34:10 +00:00
style,
2021-05-31 19:13:43 +00:00
toggle,
2021-05-26 19:20:52 +00:00
transform,
transformSingle,
translate,
2021-06-04 16:08:43 +00:00
ungroup,
2021-05-15 15:20:21 +00:00
}
2021-05-13 06:44:52 +00:00
export default commands