tldraw/state/commands/index.ts

56 lines
1.2 KiB
TypeScript
Raw Normal View History

2021-05-28 20:30:27 +00:00
import align from './align'
2021-05-31 19:13:43 +00:00
import arrow from './arrow'
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 direct from './direct'
import distribute from './distribute'
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 generate from './generate'
2021-06-10 09:49:16 +00:00
import group from './group'
import handle from './handle'
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'
2021-05-31 19:13:43 +00:00
import nudge from './nudge'
2021-05-28 20:30:27 +00:00
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-05-31 19:13:43 +00:00
arrow,
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,
2021-05-17 21:27:18 +00:00
direct,
2021-05-26 19:20:52 +00:00
distribute,
2021-05-31 19:13:43 +00:00
draw,
2021-05-28 20:30:27 +00:00
duplicate,
2021-05-26 19:20:52 +00:00
generate,
2021-06-10 09:49:16 +00:00
group,
handle,
2021-05-23 17:09:23 +00:00
move,
2021-06-10 09:49:16 +00:00
moveToPage,
2021-05-31 19:13:43 +00:00
nudge,
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