LineTool.tsx 373 B

1234567891011
  1. import { TLLineTool } from '@tldraw/core'
  2. import type { TLReactEventMap } from '@tldraw/react'
  3. import { LineShape, type Shape } from '../shapes'
  4. // @ts-expect-error maybe later
  5. export class LineTool extends TLLineTool<LineShape, Shape, TLReactEventMap> {
  6. static id = 'line'
  7. // not sure why "c" is not working in Logseq?
  8. static shortcut = ['6']
  9. Shape = LineShape
  10. }