dev.ts 710 B

1234567891011121314151617181920212223242526272829303132333435
  1. import type { TLDocumentModel } from '@tldraw/core'
  2. import type { Shape } from '~lib'
  3. const documentModel: TLDocumentModel<Shape, any> = {
  4. currentPageId: 'page1',
  5. selectedIds: ['yt1', 'yt2'],
  6. pages: [
  7. {
  8. name: 'Page',
  9. id: 'page1',
  10. shapes: [
  11. {
  12. id: 'yt1',
  13. type: 'youtube',
  14. parentId: 'page1',
  15. point: [100, 100],
  16. size: [160, 90],
  17. embedId: '',
  18. },
  19. {
  20. id: 'yt2',
  21. type: 'youtube',
  22. parentId: 'page1',
  23. point: [300, 300],
  24. size: [160, 90],
  25. embedId: '',
  26. },
  27. ],
  28. bindings: [],
  29. },
  30. ],
  31. assets: [],
  32. }
  33. export default documentModel