You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

data.ts 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import { Data, ShapeType } from "types"
  2. export const defaultDocument: Data["document"] = {
  3. pages: {
  4. page0: {
  5. id: "page0",
  6. type: "page",
  7. name: "Page 0",
  8. childIndex: 0,
  9. shapes: {
  10. shape0: {
  11. id: "shape0",
  12. type: ShapeType.Circle,
  13. name: "Shape 0",
  14. parentId: "page0",
  15. childIndex: 1,
  16. point: [100, 100],
  17. radius: 50,
  18. rotation: 0,
  19. },
  20. shape1: {
  21. id: "shape1",
  22. type: ShapeType.Rectangle,
  23. name: "Shape 1",
  24. parentId: "page0",
  25. childIndex: 1,
  26. point: [300, 300],
  27. size: [200, 200],
  28. rotation: 0,
  29. },
  30. shape2: {
  31. id: "shape2",
  32. type: ShapeType.Polyline,
  33. name: "Shape 2",
  34. parentId: "page0",
  35. childIndex: 2,
  36. point: [200, 600],
  37. points: [
  38. [0, 0],
  39. [75, 200],
  40. [100, 50],
  41. ],
  42. rotation: 0,
  43. },
  44. shape3: {
  45. id: "shape3",
  46. type: ShapeType.Dot,
  47. name: "Shape 3",
  48. parentId: "page0",
  49. childIndex: 3,
  50. point: [500, 100],
  51. rotation: 0,
  52. },
  53. },
  54. },
  55. },
  56. }