defaultElement.ts 782 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. const DEFAULT_COLOR = '#41464b'
  2. export const DEFAULT_TEXT = {
  3. type: 'text',
  4. left: 0,
  5. top: 0,
  6. width: 300,
  7. height: 0,
  8. opacity: 1,
  9. lineHeight: 1.5,
  10. segmentSpacing: 5,
  11. content: '请输入内容',
  12. }
  13. export const DEFAULT_IMAGE = {
  14. type: 'image',
  15. left: 0,
  16. top: 0,
  17. lockRatio: true,
  18. }
  19. export const DEFAULT_SHAPE = {
  20. type: 'shape',
  21. fill: DEFAULT_COLOR,
  22. lockRatio: false,
  23. }
  24. export const DEFAULT_LINE = {
  25. type: 'line',
  26. style: 'solid',
  27. marker: ['', ''],
  28. width: 4,
  29. color: DEFAULT_COLOR,
  30. }
  31. export const DEFAULT_CHART = {
  32. type: 'chart',
  33. left: 0,
  34. top: 0,
  35. width: 500,
  36. height: 500,
  37. }
  38. export const DEFAULT_TABLE = {
  39. type: 'table',
  40. left: 0,
  41. top: 0,
  42. isLock: false,
  43. borderStyle: 'solid',
  44. borderWidth: 2,
  45. borderColor: DEFAULT_COLOR,
  46. }