index.ts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. import { Slide } from '@/types/slides'
  2. export const slides: Slide[] = [
  3. {
  4. id: 'xsxa123',
  5. elements: [
  6. {
  7. id: 'sdasaxsxs',
  8. type: 'chart',
  9. left: 100,
  10. top: 100,
  11. width: 400,
  12. height: 400,
  13. chartType: 'pie',
  14. data: {
  15. labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
  16. series: [
  17. [5, 2, 4, 2, 10],
  18. ],
  19. },
  20. options: {
  21. donut: true,
  22. },
  23. },
  24. {
  25. id: 'sdasaxs',
  26. type: 'chart',
  27. left: 600,
  28. top: 100,
  29. width: 300,
  30. height: 300,
  31. chartType: 'line',
  32. data: {
  33. labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
  34. series: [
  35. [5, 2, 4, 2, 10],
  36. ],
  37. },
  38. },
  39. ],
  40. },
  41. {
  42. id: 'xxx1',
  43. background: {
  44. type: 'solid',
  45. value: '#fff',
  46. },
  47. elements: [
  48. {
  49. id: 'xxx1',
  50. type: 'text',
  51. left: 190,
  52. top: 50,
  53. width: 320,
  54. height: 104,
  55. rotate: 0,
  56. shadow: {
  57. h: 1,
  58. v: 1,
  59. blur: 3,
  60. color: 'rgba(10, 10, 10, .5)'
  61. },
  62. opacity: 1,
  63. lock: false,
  64. content: '<p style=\'text-align: center;\'><span style=\'font-size: 28px;\'><span style=\'color: rgb(232, 107, 153); font-weight: bold;\'>一段测试文字</span>,字号固定为<span style=\'font-weight: bold; font-style: italic; text-decoration-line: underline;\'>28px</span></span></p>',
  65. },
  66. {
  67. id: 'xxx3',
  68. type: 'image',
  69. left: 80,
  70. top: 250,
  71. width: 180,
  72. height: 180,
  73. rotate: 0,
  74. outline: {
  75. width: 4,
  76. style: 'solid',
  77. color: '#333'
  78. },
  79. clip: {
  80. range: [[30, 0], [100, 70]],
  81. shape: 'ellipse'
  82. },
  83. fixedRatio: false,
  84. lock: false,
  85. src: 'https://img.lessonplan.cn/IMG/Show/ppt/3ab74e91-c34f-499d-9711-166e423d4dd6/1573622467064v2-7aa3ce420052983d91c6d01b47a7441d_hd.jpg',
  86. },
  87. {
  88. id: 'xxx2',
  89. type: 'image',
  90. left: 750,
  91. top: 320,
  92. width: 150,
  93. height: 150,
  94. rotate: 0,
  95. fixedRatio: true,
  96. lock: false,
  97. src: 'https://img.lessonplan.cn/IMG/Show/ppt/3ab74e91-c34f-499d-9711-166e423d4dd6/62d9adb3-e7a6-4dc4-a352-095cffb49f08/b1be1a2f-f893-47d3-a8a3-eac7d04d395f/1596159381259v2-b2c69096d25ae16bf6ca09e30add3e65_hd.jpg',
  98. },
  99. ],
  100. animations: [
  101. {
  102. elId: 'xxx1',
  103. type: 'rotateIn',
  104. duration: 1000,
  105. },
  106. {
  107. elId: 'xxx2',
  108. type: 'zoomIn',
  109. duration: 1000,
  110. },
  111. ],
  112. },
  113. {
  114. id: 'sajd172',
  115. elements: [
  116. {
  117. id: 'yyx1',
  118. type: 'text',
  119. left: 590,
  120. top: 90,
  121. width: 220,
  122. height: 188,
  123. rotate: 0,
  124. opacity: 1,
  125. lock: false,
  126. content: '<div>😀 😐 😶 😜 🔔 ⭐ ⚡ 🔥 👍 💡 🔰 🎀 🎁 🥇 🏅 🏆 🎈 🎉 💎 🚧 ⛔ 📢 ⌛ ⏰ 🕒 🧩 🎵 📎 🔒 🔑 ⛳ 📌 📍 💬 📅 📈 📋 📜 📁 📱 💻 💾 🌏 🚚 🚡 🚢💧 🌐 🧭 💰 💳 🛒</div>',
  127. },
  128. {
  129. id: 'xsfdas',
  130. type: 'line',
  131. width: 2,
  132. left: 100,
  133. top: 400,
  134. end: [0, 0],
  135. start: [300, 120],
  136. style: 'solid',
  137. color: '#888',
  138. points: ['', 'arrow'],
  139. },
  140. {
  141. id: 'xxx7',
  142. type: 'shape',
  143. left: 130,
  144. top: 50,
  145. width: 150,
  146. height: 150,
  147. rotate: 0,
  148. fill: '#eebc29',
  149. opacity: 0.9,
  150. fixedRatio: false,
  151. lock: false,
  152. viewBox: 1024,
  153. path: 'M721.35111111 475.59111111H302.64888889c-5.00622222 0-9.10222222 4.096-9.10222222 9.10222222v54.61333334c0 5.00622222 4.096 9.10222222 9.10222222 9.10222222h418.70222222c5.00622222 0 9.10222222-4.096 9.10222222-9.10222222v-54.61333334c0-5.00622222-4.096-9.10222222-9.10222222-9.10222222z M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m0 932.97777778c-233.69955555 0-423.25333333-189.55377778-423.25333333-423.25333333s189.55377778-423.25333333 423.25333333-423.25333333 423.25333333 189.55377778 423.25333333 423.25333333-189.55377778 423.25333333-423.25333333 423.25333333z',
  154. }
  155. ],
  156. animations: [
  157. {
  158. elId: 'yyx1',
  159. type: 'flipInX',
  160. duration: 1000,
  161. },
  162. ],
  163. },
  164. ]