HighlighterTool.tsx 374 B

1234567891011
  1. import { TLDrawTool } from '@tldraw/core'
  2. import type { TLReactEventMap } from '@tldraw/react'
  3. import { HighlighterShape, type Shape } from '../shapes'
  4. export class HighlighterTool extends TLDrawTool<HighlighterShape, Shape, TLReactEventMap> {
  5. static id = 'highlighter'
  6. static shortcut = ['m']
  7. Shape = HighlighterShape
  8. simplify = true
  9. simplifyTolerance = 0.618
  10. }