index.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import type { TLReactShapeConstructor } from '@tldraw/react'
  2. import { BoxShape } from './BoxShape'
  3. import { DotShape } from './DotShape'
  4. import { EllipseShape } from './EllipseShape'
  5. import { HighlighterShape } from './HighlighterShape'
  6. import { HTMLShape } from './HTMLShape'
  7. import { ImageShape } from './ImageShape'
  8. import { VideoShape } from './VideoShape'
  9. import { IFrameShape } from './IFrameShape'
  10. import { LineShape } from './LineShape'
  11. import { LogseqPortalShape } from './LogseqPortalShape'
  12. import { PencilShape } from './PencilShape'
  13. import { PolygonShape } from './PolygonShape'
  14. import { TextShape } from './TextShape'
  15. import { YouTubeShape } from './YouTubeShape'
  16. import type { PenShape } from './PenShape'
  17. export type Shape =
  18. | BoxShape
  19. | DotShape
  20. | EllipseShape
  21. | HighlighterShape
  22. | ImageShape
  23. | VideoShape
  24. | LineShape
  25. | PenShape
  26. | PencilShape
  27. | PolygonShape
  28. | TextShape
  29. | YouTubeShape
  30. | IFrameShape
  31. | HTMLShape
  32. | LogseqPortalShape
  33. export * from './BoxShape'
  34. export * from './DotShape'
  35. export * from './EllipseShape'
  36. export * from './HighlighterShape'
  37. export * from './HTMLShape'
  38. export * from './ImageShape'
  39. export * from './VideoShape'
  40. export * from './IFrameShape'
  41. export * from './LineShape'
  42. export * from './LogseqPortalShape'
  43. export * from './PencilShape'
  44. export * from './PolygonShape'
  45. export * from './TextShape'
  46. export * from './YouTubeShape'
  47. export const shapes: TLReactShapeConstructor<Shape>[] = [
  48. BoxShape,
  49. DotShape,
  50. EllipseShape,
  51. HighlighterShape,
  52. ImageShape,
  53. VideoShape,
  54. LineShape,
  55. PencilShape,
  56. PolygonShape,
  57. TextShape,
  58. YouTubeShape,
  59. IFrameShape,
  60. HTMLShape,
  61. LogseqPortalShape,
  62. ]
  63. export type SizeLevel = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'