@amaster.ai/pi-lark 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/README.md +5 -1
  2. package/dist/config.d.ts +1 -1
  3. package/dist/config.d.ts.map +1 -1
  4. package/dist/config.js +2 -2
  5. package/dist/config.js.map +1 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +2 -1
  8. package/dist/index.js.map +1 -1
  9. package/package.json +4 -4
  10. package/skills/lark-approval/references/lark-approval-initiate.md +2 -5
  11. package/skills/lark-approval/references/lark-approval-instances-initiated.md +6 -0
  12. package/skills/lark-approval/references/lark-approval-tasks-query.md +9 -0
  13. package/skills/lark-approval/references/lark-approval-tasks-rollback.md +8 -2
  14. package/skills/lark-apps/SKILL.md +46 -16
  15. package/skills/lark-apps/creative-design/agents/assets/vision-probe.png +0 -0
  16. package/skills/lark-apps/creative-design/agents/fork-verifier-agent.md +71 -0
  17. package/skills/lark-apps/creative-design/agents/vision-probe-agent.md +41 -0
  18. package/skills/lark-apps/creative-design/assets/index.html +27 -0
  19. package/skills/lark-apps/creative-design/creative-design.md +239 -0
  20. package/skills/lark-apps/creative-design/references/aily.md +39 -0
  21. package/skills/lark-apps/creative-design/references/animated-video.md +34 -0
  22. package/skills/lark-apps/creative-design/references/charts.md +165 -0
  23. package/skills/lark-apps/creative-design/references/claude.md +36 -0
  24. package/skills/lark-apps/creative-design/references/codex.md +32 -0
  25. package/skills/lark-apps/creative-design/references/data-report.md +108 -0
  26. package/skills/lark-apps/creative-design/references/frontend-design.md +71 -0
  27. package/skills/lark-apps/creative-design/references/hi-fi-design.md +32 -0
  28. package/skills/lark-apps/creative-design/references/interactive-prototype.md +24 -0
  29. package/skills/lark-apps/creative-design/references/make-a-deck.md +133 -0
  30. package/skills/lark-apps/creative-design/references/visual-exposure.md +82 -0
  31. package/skills/lark-apps/creative-design/references/wireframe.md +14 -0
  32. package/skills/lark-apps/creative-design/starter-components/android-frame.jsx +188 -0
  33. package/skills/lark-apps/creative-design/starter-components/animations.jsx +773 -0
  34. package/skills/lark-apps/creative-design/starter-components/browser-window.jsx +122 -0
  35. package/skills/lark-apps/creative-design/starter-components/deck-stage.js +2483 -0
  36. package/skills/lark-apps/creative-design/starter-components/design-canvas.jsx +1432 -0
  37. package/skills/lark-apps/creative-design/starter-components/ios-frame.jsx +270 -0
  38. package/skills/lark-apps/creative-design/starter-components/macos-window.jsx +197 -0
  39. package/skills/lark-apps/creative-design/starter-components/tweaks-panel.jsx +752 -0
  40. package/skills/lark-apps/references/lark-apps-access-scope-set.md +1 -1
  41. package/skills/lark-apps/references/lark-apps-automation.md +242 -0
  42. package/skills/lark-apps/references/lark-apps-cache.md +61 -0
  43. package/skills/lark-apps/references/lark-apps-cloud-dev.md +0 -1
  44. package/skills/lark-apps/references/lark-apps-create.md +1 -2
  45. package/skills/lark-apps/references/lark-apps-db-execute.md +186 -2
  46. package/skills/lark-apps/references/lark-apps-db.md +4 -4
  47. package/skills/lark-apps/references/lark-apps-env-pull.md +1 -1
  48. package/skills/lark-apps/references/lark-apps-file.md +2 -2
  49. package/skills/lark-apps/references/lark-apps-get.md +43 -0
  50. package/skills/lark-apps/references/lark-apps-git-credential.md +1 -1
  51. package/skills/lark-apps/references/lark-apps-html-publish.md +5 -4
  52. package/skills/lark-apps/references/lark-apps-init.md +2 -3
  53. package/skills/lark-apps/references/lark-apps-list.md +1 -1
  54. package/skills/lark-apps/references/lark-apps-local-dev.md +54 -11
  55. package/skills/lark-apps/references/lark-apps-openapi-key.md +1 -1
  56. package/skills/lark-apps/references/lark-apps-release-create.md +5 -3
  57. package/skills/lark-apps/references/lark-apps-release-get.md +3 -3
  58. package/skills/lark-apps/references/lark-apps-role.md +133 -0
  59. package/skills/lark-base/SKILL.md +26 -15
  60. package/skills/lark-base/references/dashboard-block-data-config.md +28 -2
  61. package/skills/lark-base/references/lark-base-cell-value.md +12 -7
  62. package/skills/lark-base/references/lark-base-dashboard-block-get-data.md +7 -7
  63. package/skills/lark-base/references/lark-base-dashboard.md +11 -2
  64. package/skills/lark-base/references/lark-base-data-query.md +20 -11
  65. package/skills/lark-base/references/lark-base-field-create.md +8 -2
  66. package/skills/lark-base/references/lark-base-field-json.md +56 -19
  67. package/skills/lark-base/references/lark-base-field-update.md +21 -3
  68. package/skills/lark-base/references/lark-base-filter-condition.md +179 -0
  69. package/skills/lark-base/references/lark-base-form-questions-create.md +40 -7
  70. package/skills/lark-base/references/lark-base-form-questions-update.md +73 -20
  71. package/skills/lark-base/references/lark-base-form-submit.md +16 -7
  72. package/skills/lark-base/references/lark-base-record-batch-create.md +12 -10
  73. package/skills/lark-base/references/lark-base-record-batch-update.md +11 -9
  74. package/skills/lark-base/references/lark-base-record-upsert.md +1 -1
  75. package/skills/lark-base/references/lark-base-role-guide.md +11 -0
  76. package/skills/lark-base/references/lark-base-view-set-filter.md +14 -138
  77. package/skills/lark-base/references/role-config.md +31 -5
  78. package/skills/lark-calendar/SKILL.md +101 -37
  79. package/skills/lark-calendar/references/lark-calendar-create.md +13 -43
  80. package/skills/lark-calendar/references/lark-calendar-recurring.md +1 -0
  81. package/skills/lark-calendar/references/lark-calendar-room-find.md +7 -10
  82. package/skills/lark-calendar/references/lark-calendar-rsvp.md +1 -5
  83. package/skills/lark-calendar/references/lark-calendar-schedule-clear-time.md +60 -0
  84. package/skills/lark-calendar/references/lark-calendar-schedule-fuzzy-time.md +88 -0
  85. package/skills/lark-calendar/references/lark-calendar-schedule-meeting.md +67 -210
  86. package/skills/lark-calendar/references/lark-calendar-suggestion.md +2 -6
  87. package/skills/lark-calendar/references/lark-calendar-update.md +12 -11
  88. package/skills/lark-contact/SKILL.md +19 -3
  89. package/skills/lark-contact/references/lark-contact-search-bot.md +60 -0
  90. package/skills/lark-doc/SKILL.md +1 -1
  91. package/skills/lark-doc/references/lark-doc-fetch.md +14 -4
  92. package/skills/lark-doc/references/lark-doc-mindnote.md +17 -2
  93. package/skills/lark-doc/references/lark-doc-whiteboard.md +13 -8
  94. package/skills/lark-doc/references/lark-doc-xml-extended-blocks.md +76 -0
  95. package/skills/lark-doc/references/lark-doc-xml.md +6 -4
  96. package/skills/lark-drive/SKILL.md +35 -43
  97. package/skills/lark-drive/references/lark-drive-add-comment.md +2 -4
  98. package/skills/lark-drive/references/lark-drive-add-reply.md +47 -0
  99. package/skills/lark-drive/references/lark-drive-apply-permission.md +2 -2
  100. package/skills/lark-drive/references/lark-drive-batch-query-comments.md +46 -0
  101. package/skills/lark-drive/references/lark-drive-comment-content.md +50 -0
  102. package/skills/lark-drive/references/lark-drive-comment-location.md +18 -12
  103. package/skills/lark-drive/references/lark-drive-delete-reply.md +48 -0
  104. package/skills/lark-drive/references/lark-drive-delete.md +35 -11
  105. package/skills/lark-drive/references/lark-drive-download.md +5 -1
  106. package/skills/lark-drive/references/lark-drive-export.md +39 -10
  107. package/skills/lark-drive/references/lark-drive-files-list.md +27 -2
  108. package/skills/lark-drive/references/lark-drive-inspect.md +2 -0
  109. package/skills/lark-drive/references/lark-drive-list-comments.md +82 -0
  110. package/skills/lark-drive/references/lark-drive-list-replies.md +54 -0
  111. package/skills/lark-drive/references/lark-drive-member-add.md +3 -3
  112. package/skills/lark-drive/references/lark-drive-member-list.md +65 -0
  113. package/skills/lark-drive/references/lark-drive-move.md +5 -3
  114. package/skills/lark-drive/references/lark-drive-permission-get-setting.md +48 -0
  115. package/skills/lark-drive/references/lark-drive-permission-guide.md +12 -0
  116. package/skills/lark-drive/references/lark-drive-preview.md +11 -1
  117. package/skills/lark-drive/references/lark-drive-pull.md +3 -3
  118. package/skills/lark-drive/references/lark-drive-push.md +33 -6
  119. package/skills/lark-drive/references/lark-drive-react-reply.md +51 -0
  120. package/skills/lark-drive/references/lark-drive-reactions.md +27 -25
  121. package/skills/lark-drive/references/lark-drive-resolve-comment.md +45 -0
  122. package/skills/lark-drive/references/lark-drive-restore-comment.md +46 -0
  123. package/skills/lark-drive/references/lark-drive-search.md +7 -1
  124. package/skills/lark-drive/references/lark-drive-secure-label.md +1 -1
  125. package/skills/lark-drive/references/lark-drive-status.md +12 -14
  126. package/skills/lark-drive/references/lark-drive-task-result.md +58 -5
  127. package/skills/lark-drive/references/lark-drive-update-reply.md +46 -0
  128. package/skills/lark-drive/references/lark-drive-upload.md +1 -0
  129. package/skills/lark-drive/references/lark-drive-workflow-knowledge-organize.md +26 -20
  130. package/skills/lark-drive/references/lark-drive-workflow-permission-governance-commands.md +38 -8
  131. package/skills/lark-drive/references/lark-drive-workflow-permission-governance-outputs.md +10 -10
  132. package/skills/lark-drive/references/lark-drive-workflow-permission-governance.md +22 -20
  133. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector-execute.md +273 -0
  134. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector-recall.md +202 -0
  135. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector-resolve-verify.md +231 -0
  136. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector-review-plan.md +248 -0
  137. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector-setup.md +174 -0
  138. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector.md +202 -0
  139. package/skills/lark-drive/references/lark-drive-workflow.md +5 -3
  140. package/skills/lark-event/SKILL.md +3 -1
  141. package/skills/lark-event/references/lark-event-application.md +38 -0
  142. package/skills/lark-event/references/lark-event-approval.md +170 -0
  143. package/skills/lark-im/SKILL.md +6 -5
  144. package/skills/lark-im/references/card/card-2.0-schema.md +1 -1
  145. package/skills/lark-im/references/card/lark-im-card-style.md +4 -4
  146. package/skills/lark-im/references/card/resource/icons.md +14 -0
  147. package/skills/lark-im/references/lark-im-flag-list.md +8 -7
  148. package/skills/lark-im/references/lark-im-messages-reply.md +1 -1
  149. package/skills/lark-im/references/lark-im-messages-send.md +1 -1
  150. package/skills/lark-mail/SKILL.md +12 -9
  151. package/skills/lark-mail/references/lark-mail-forward.md +1 -1
  152. package/skills/lark-mail/references/lark-mail-message-modify.md +48 -0
  153. package/skills/lark-mail/references/lark-mail-message-trash.md +41 -0
  154. package/skills/lark-mail/references/lark-mail-reply-all.md +1 -1
  155. package/skills/lark-mail/references/lark-mail-reply.md +1 -1
  156. package/skills/lark-mail/references/lark-mail-watch.md +1 -1
  157. package/skills/lark-markdown/SKILL.md +3 -2
  158. package/skills/lark-markdown/references/lark-markdown-create.md +22 -2
  159. package/skills/lark-minutes/SKILL.md +19 -4
  160. package/skills/lark-minutes/references/lark-minutes-download.md +0 -2
  161. package/skills/lark-minutes/references/lark-minutes-search.md +0 -2
  162. package/skills/lark-minutes/references/lark-minutes-speaker-replace.md +0 -2
  163. package/skills/lark-minutes/references/lark-minutes-summary.md +0 -2
  164. package/skills/lark-minutes/references/lark-minutes-todo.md +2 -4
  165. package/skills/lark-minutes/references/lark-minutes-update.md +0 -2
  166. package/skills/lark-minutes/references/lark-minutes-upload.md +10 -10
  167. package/skills/lark-okr/SKILL.md +71 -26
  168. package/skills/lark-okr/references/lark-okr-batch-create.md +19 -18
  169. package/skills/lark-okr/references/lark-okr-create.md +173 -0
  170. package/skills/lark-okr/references/lark-okr-cycle-list.md +17 -7
  171. package/skills/lark-okr/references/lark-okr-entities.md +1 -0
  172. package/skills/lark-okr/references/lark-okr-indicator-update.md +3 -1
  173. package/skills/lark-okr/references/lark-okr-indicators.md +61 -12
  174. package/skills/lark-okr/references/lark-okr-progress-list.md +21 -9
  175. package/skills/lark-shared/SKILL.md +26 -8
  176. package/skills/lark-sheets/SKILL.md +98 -29
  177. package/skills/lark-sheets/references/lark-sheets-batch-update.md +18 -9
  178. package/skills/lark-sheets/references/lark-sheets-changeset.md +105 -0
  179. package/skills/lark-sheets/references/lark-sheets-chart.md +4 -2
  180. package/skills/lark-sheets/references/lark-sheets-conditional-format.md +2 -0
  181. package/skills/lark-sheets/references/lark-sheets-filter-view.md +1 -1
  182. package/skills/lark-sheets/references/lark-sheets-float-image.md +6 -6
  183. package/skills/lark-sheets/references/lark-sheets-formula-translation.md +12 -3
  184. package/skills/lark-sheets/references/lark-sheets-formula-verify.md +77 -0
  185. package/skills/lark-sheets/references/lark-sheets-history.md +93 -0
  186. package/skills/lark-sheets/references/lark-sheets-pivot-table.md +7 -2
  187. package/skills/lark-sheets/references/lark-sheets-range-operations.md +44 -14
  188. package/skills/lark-sheets/references/lark-sheets-read-data.md +3 -3
  189. package/skills/lark-sheets/references/lark-sheets-sheet-structure.md +4 -4
  190. package/skills/lark-sheets/references/lark-sheets-visual-standards.md +4 -4
  191. package/skills/lark-sheets/references/lark-sheets-workbook.md +29 -4
  192. package/skills/lark-sheets/references/lark-sheets-write-cells.md +21 -11
  193. package/skills/lark-slides/SKILL.md +121 -63
  194. package/skills/lark-slides/references/asset-planning.md +18 -5
  195. package/skills/lark-slides/references/iconpark.md +3 -3
  196. package/skills/lark-slides/references/lark-slides-create.md +30 -3
  197. package/skills/lark-slides/references/lark-slides-history.md +132 -0
  198. package/skills/lark-slides/references/lark-slides-media-upload.md +1 -3
  199. package/skills/lark-slides/references/lark-slides-pptx-template-workflows.md +85 -0
  200. package/skills/lark-slides/references/lark-slides-replace-pages.md +1 -1
  201. package/skills/lark-slides/references/lark-slides-replace-slide.md +1 -4
  202. package/skills/lark-slides/references/lark-slides-screenshot.md +11 -8
  203. package/skills/lark-slides/references/lark-slides-xml-presentation-slide-create.md +5 -6
  204. package/skills/lark-slides/references/lark-slides-xml-presentation-slide-delete.md +5 -2
  205. package/skills/lark-slides/references/lark-slides-xml-presentation-slide-get.md +5 -5
  206. package/skills/lark-slides/references/lark-slides-xml-presentation-slide-replace.md +14 -13
  207. package/skills/lark-slides/references/lark-slides-xml-presentations-get.md +67 -31
  208. package/skills/lark-slides/references/planning-layer.md +41 -10
  209. package/skills/lark-slides/references/slides_chart_demo.xml +1416 -0
  210. package/skills/lark-slides/references/slides_xml_schema_definition.xml +499 -78
  211. package/skills/lark-slides/references/troubleshooting.md +5 -5
  212. package/skills/lark-slides/references/validation-checklist.md +65 -19
  213. package/skills/lark-slides/references/visual-planning.md +26 -22
  214. package/skills/lark-slides/references/xml-schema-quick-ref.md +285 -45
  215. package/skills/lark-slides/scripts/sxsd_validator.py +908 -0
  216. package/skills/lark-slides/scripts/xml_text_overlap_lint.py +2429 -91
  217. package/skills/lark-slides/scripts/xml_text_overlap_lint_test.py +3567 -70
  218. package/skills/lark-task/SKILL.md +8 -0
  219. package/skills/lark-task/references/lark-task-complete.md +6 -2
  220. package/skills/lark-task/references/lark-task-create.md +23 -1
  221. package/skills/lark-task/references/lark-task-update.md +6 -2
  222. package/skills/lark-vc/SKILL.md +6 -3
  223. package/skills/lark-vc/references/lark-vc-recording.md +0 -2
  224. package/skills/lark-vc/references/vc-domain-boundaries.md +9 -1
  225. package/skills/lark-vc-agent/SKILL.md +25 -15
  226. package/skills/lark-vc-agent/references/lark-vc-agent-meeting-events.md +65 -37
  227. package/skills/lark-vc-agent/references/lark-vc-agent-meeting-leave.md +1 -1
  228. package/skills/lark-vc-agent/references/lark-vc-agent-meeting-list-active.md +8 -8
  229. package/skills/lark-whiteboard/SKILL.md +13 -12
  230. package/skills/lark-whiteboard/elements/layout.md +1 -1
  231. package/skills/lark-whiteboard/elements/schema.md +2 -2
  232. package/skills/lark-whiteboard/references/{lark-whiteboard-query.md → lark-whiteboard-export.md} +15 -15
  233. package/skills/lark-whiteboard/references/lark-whiteboard-update.md +3 -3
  234. package/skills/lark-whiteboard/references/lark-whiteboard-workflow.md +12 -19
  235. package/skills/lark-whiteboard/routes/dsl.md +3 -3
  236. package/skills/lark-whiteboard/routes/mermaid.md +2 -2
  237. package/skills/lark-whiteboard/routes/svg-edit.md +4 -4
  238. package/skills/lark-whiteboard/routes/svg.md +11 -6
  239. package/skills/lark-whiteboard/scenes/bar-chart.md +1 -1
  240. package/skills/lark-whiteboard/scenes/fishbone.md +1 -1
  241. package/skills/lark-whiteboard/scenes/flywheel.md +1 -1
  242. package/skills/lark-whiteboard/scenes/line-chart.md +1 -1
  243. package/skills/lark-whiteboard/scenes/treemap.md +1 -1
  244. package/skills/lark-wiki/SKILL.md +8 -3
  245. package/skills/lark-wiki/references/lark-wiki-move-to-drive.md +122 -0
  246. package/skills/lark-wiki/references/lark-wiki-move.md +5 -3
  247. package/skills/lark-wiki/references/lark-wiki-node-get.md +1 -1
  248. package/skills/lark-wiki/references/lark-wiki-node-list.md +9 -2
  249. package/skills/lark-calendar/references/lark-calendar-agenda.md +0 -78
  250. package/skills/lark-calendar/references/lark-calendar-freebusy.md +0 -124
  251. package/skills/lark-calendar/references/lark-calendar-search-event.md +0 -29
  252. package/skills/lark-drive/references/lark-drive-comments-guide.md +0 -72
  253. package/skills/lark-sheets/references/lark-sheets-core-operations.md +0 -103
  254. package/skills/lark-slides/references/examples.md +0 -261
  255. package/skills/lark-slides/references/lark-slides-whiteboard.md +0 -330
  256. package/skills/lark-slides/references/slide-templates.md +0 -201
  257. package/skills/lark-slides/references/slides_demo.xml +0 -226
  258. package/skills/lark-slides/references/xml-format-guide.md +0 -369
@@ -194,14 +194,13 @@
194
194
  <xs:simpleType name="FontSizeType">
195
195
  <xs:annotation>
196
196
  <xs:documentation>
197
- 字体大小, 使用正整数, 单位px
198
- 示例:12, 14, 16, 18, 20, 24, 28, 32 等
197
+ 字体大小, 浮点数, 范围 [1, 4000], 单位px
198
+ 示例:10, 10.5, 12, 14, 16, 18, 20, 24, 28, 32 等
199
199
  </xs:documentation>
200
200
  </xs:annotation>
201
- <xs:restriction base="xs:positiveInteger">
202
- <xs:minInclusive value="6"/>
203
- <xs:maxInclusive value="400"/>
204
- <xs:pattern value="[0-9]+"/>
201
+ <xs:restriction base="xs:double">
202
+ <xs:minInclusive value="1"/>
203
+ <xs:maxInclusive value="4000"/>
205
204
  </xs:restriction>
206
205
  </xs:simpleType>
207
206
 
@@ -211,6 +210,52 @@
211
210
  </xs:restriction>
212
211
  </xs:simpleType>
213
212
 
213
+ <xs:simpleType name="AutoStartAtType">
214
+ <xs:annotation>
215
+ <xs:documentation>
216
+ 有序列表起始编号, 取值范围 [1, 32767]
217
+ </xs:documentation>
218
+ </xs:annotation>
219
+ <xs:restriction base="xs:positiveInteger">
220
+ <xs:minInclusive value="1"/>
221
+ <xs:maxInclusive value="32767"/>
222
+ </xs:restriction>
223
+ </xs:simpleType>
224
+
225
+ <xs:simpleType name="BulletSizeType">
226
+ <xs:annotation>
227
+ <xs:documentation>
228
+ 列表符号大小, 二选一:
229
+ - 百分比字符串(相对于文本字号), 取值范围 25%-400%, 如 "100%"
230
+ - 绝对像素值, 取值范围 6-400, 如 "14"
231
+ </xs:documentation>
232
+ </xs:annotation>
233
+ <xs:union>
234
+ <xs:simpleType>
235
+ <xs:restriction base="xs:string">
236
+ <xs:pattern value="(2[5-9]|[3-9][0-9]|[1-3][0-9]{2}|400)%"/>
237
+ </xs:restriction>
238
+ </xs:simpleType>
239
+ <xs:simpleType>
240
+ <xs:restriction base="xs:string">
241
+ <xs:pattern value="[6-9]|[1-9][0-9]|[1-3][0-9]{2}|400"/>
242
+ </xs:restriction>
243
+ </xs:simpleType>
244
+ </xs:union>
245
+ </xs:simpleType>
246
+
247
+ <xs:simpleType name="BulletCharType">
248
+ <xs:annotation>
249
+ <xs:documentation>
250
+ 自定义列表符号, 如 "★", "→", "✓", "◆", 也支持 emoji
251
+ </xs:documentation>
252
+ </xs:annotation>
253
+ <xs:restriction base="xs:string">
254
+ <xs:minLength value="1"/>
255
+ <xs:maxLength value="8"/>
256
+ </xs:restriction>
257
+ </xs:simpleType>
258
+
214
259
  <!-- 文本类型枚举 -->
215
260
  <xs:simpleType name="TextType">
216
261
  <xs:annotation>
@@ -232,6 +277,35 @@
232
277
  </xs:restriction>
233
278
  </xs:simpleType>
234
279
 
280
+ <!-- 动态文本字段类型枚举 -->
281
+ <xs:simpleType name="FieldType">
282
+ <xs:annotation>
283
+ <xs:documentation>
284
+ 动态文本字段类型:
285
+ - slidenum: 当前幻灯片页码
286
+ - datetime: 默认日期时间格式
287
+ - datetime1-datetime13: 预定义日期时间格式
288
+ </xs:documentation>
289
+ </xs:annotation>
290
+ <xs:restriction base="xs:string">
291
+ <xs:enumeration value="slidenum"><xs:annotation><xs:documentation>当前幻灯片页码</xs:documentation></xs:annotation></xs:enumeration>
292
+ <xs:enumeration value="datetime"><xs:annotation><xs:documentation>浏览器默认日期格式, 例如 2026/7/14</xs:documentation></xs:annotation></xs:enumeration>
293
+ <xs:enumeration value="datetime1"><xs:annotation><xs:documentation>日期格式 M/D/YYYY, 例如 10/12/2007</xs:documentation></xs:annotation></xs:enumeration>
294
+ <xs:enumeration value="datetime2"><xs:annotation><xs:documentation>日期格式 dddd, MMMM D, YYYY, 例如 Friday, October 12, 2007</xs:documentation></xs:annotation></xs:enumeration>
295
+ <xs:enumeration value="datetime3"><xs:annotation><xs:documentation>日期格式 D MMMM YYYY, 例如 12 October 2007</xs:documentation></xs:annotation></xs:enumeration>
296
+ <xs:enumeration value="datetime4"><xs:annotation><xs:documentation>日期格式 MMMM D, YYYY, 例如 October 12, 2007</xs:documentation></xs:annotation></xs:enumeration>
297
+ <xs:enumeration value="datetime5"><xs:annotation><xs:documentation>日期格式 D-MMM-YY, 例如 12-Oct-07</xs:documentation></xs:annotation></xs:enumeration>
298
+ <xs:enumeration value="datetime6"><xs:annotation><xs:documentation>日期格式 MMMM YY, 例如 October 07</xs:documentation></xs:annotation></xs:enumeration>
299
+ <xs:enumeration value="datetime7"><xs:annotation><xs:documentation>日期格式 MMM-YY, 例如 Oct-07</xs:documentation></xs:annotation></xs:enumeration>
300
+ <xs:enumeration value="datetime8"><xs:annotation><xs:documentation>日期时间格式 M/D/YYYY h:mm A, 例如 10/12/2007 4:28 PM</xs:documentation></xs:annotation></xs:enumeration>
301
+ <xs:enumeration value="datetime9"><xs:annotation><xs:documentation>日期时间格式 M/D/YYYY h:mm:ss A, 例如 10/12/2007 4:28:34 PM</xs:documentation></xs:annotation></xs:enumeration>
302
+ <xs:enumeration value="datetime10"><xs:annotation><xs:documentation>时间格式 HH:mm, 例如 16:28</xs:documentation></xs:annotation></xs:enumeration>
303
+ <xs:enumeration value="datetime11"><xs:annotation><xs:documentation>时间格式 HH:mm:ss, 例如 16:28:34</xs:documentation></xs:annotation></xs:enumeration>
304
+ <xs:enumeration value="datetime12"><xs:annotation><xs:documentation>时间格式 h:mm A, 例如 4:28 PM</xs:documentation></xs:annotation></xs:enumeration>
305
+ <xs:enumeration value="datetime13"><xs:annotation><xs:documentation>时间格式 h:mm:ss A, 例如 4:28:34 PM</xs:documentation></xs:annotation></xs:enumeration>
306
+ </xs:restriction>
307
+ </xs:simpleType>
308
+
235
309
  <!-- 文本对齐 -->
236
310
  <xs:simpleType name="TextAlignType">
237
311
  <xs:restriction base="xs:string">
@@ -781,21 +855,64 @@
781
855
  <xs:attribute name="heightScale" type="sml:ArrowScaleType" use="optional"/>
782
856
  </xs:complexType>
783
857
 
858
+ <!-- 裁剪方位枚举类型 -->
859
+ <xs:simpleType name="CropAnchorType">
860
+ <xs:annotation>
861
+ <xs:documentation>
862
+ 裁剪方位枚举, 用于指定保留原图的哪个区域
863
+
864
+ - top: 保留顶部, 裁掉底部多余部分
865
+ - bottom: 保留底部, 裁掉顶部多余部分
866
+ - left: 保留左侧, 裁掉右侧多余部分
867
+ - right: 保留右侧, 裁掉左侧多余部分
868
+
869
+ 居中场景不需要设置 anchor, 不设置 offset 即为默认居中裁剪
870
+ </xs:documentation>
871
+ </xs:annotation>
872
+ <xs:restriction base="xs:string">
873
+ <xs:enumeration value="top"><xs:annotation><xs:documentation>保留顶部, 裁掉底部多余部分</xs:documentation></xs:annotation></xs:enumeration>
874
+ <xs:enumeration value="bottom"><xs:annotation><xs:documentation>保留底部, 裁掉顶部多余部分</xs:documentation></xs:annotation></xs:enumeration>
875
+ <xs:enumeration value="left"><xs:annotation><xs:documentation>保留左侧, 裁掉右侧多余部分</xs:documentation></xs:annotation></xs:enumeration>
876
+ <xs:enumeration value="right"><xs:annotation><xs:documentation>保留右侧, 裁掉左侧多余部分</xs:documentation></xs:annotation></xs:enumeration>
877
+ </xs:restriction>
878
+ </xs:simpleType>
879
+
784
880
  <!-- 裁剪类型定义 -->
785
881
  <xs:complexType name="CropType">
786
882
  <xs:annotation>
787
883
  <xs:documentation>
788
- 裁剪配置: 原图填充到预裁剪区域,再根据offset裁出最终尺寸
884
+ 裁剪配置: 将原图裁剪到目标尺寸 (img 元素的 width × height)
789
885
 
790
886
  可选属性:
791
- type: 裁剪形状,默认rect
792
- leftOffset, rightOffset, topOffset, bottomOffset: 边缘偏移量(px)。正值向内裁剪,负值向外扩展留白,0值对齐边缘
793
- presetHandlers: 控制点配置,对应ECMA预设形状的控制点。单个或多个数字,多个用逗号分隔。示例: type="rect"且presetHandlers="60"时为圆角矩形,圆角半径60px
887
+ type: 裁剪形状, 默认 rect
888
+ anchor: 裁剪方位 (top/bottom/left/right), 参见 CropAnchorType
889
+ leftOffset / rightOffset / topOffset / bottomOffset: 四向偏移量 (px), 正值向内裁剪、负值向外扩展留白、0对齐边缘
890
+ presetHandlers: 控制点配置, 对应 ECMA 预设形状的控制点。单个或多个数字, 多个用逗号分隔。
891
+ 示例: type="rect" 且 presetHandlers="60" 时为圆角矩形, 圆角半径 60px
794
892
 
795
- 说明: 指定offset时,若预裁剪尺寸与原图比例不一致会产生拉伸变形。无法确定原图比例时,不要指定offset
893
+ 【推荐用法】使用 anchor 指定裁剪方位:
894
+ - 不设置 anchor 时: 默认按图片居中裁剪
895
+ - 设置 anchor 时: 按指定方位裁剪, 例如 anchor="top" 表示保留顶部、裁掉底部多余部分
896
+ - 使用 anchor 后, 不需要再设置 offset
897
+ - anchor 模式下原图按等比缩放后裁剪, 不会发生拉伸或压缩
898
+
899
+ 【进阶用法】使用 offset 精细控制裁剪边界:
900
+ - 适用于用户在编辑器中手动调整裁剪、或从外部协议导入的场景
901
+ - 原图先填充到预裁剪区域, 再根据 offset 从四边裁出最终尺寸
902
+ - 注意: 若预裁剪尺寸与原图比例不一致会产生拉伸变形; 无法确定原图比例时, 不要指定 offset
903
+
904
+ 【优先级】
905
+ 如果同时设置了 anchor 和 offset, 以 anchor 为准, offset 被忽略
906
+
907
+ 典型用法:
908
+ <crop/> 居中裁剪 (默认行为)
909
+ <crop anchor="top"/> 保留顶部
910
+ <crop anchor="left"/> 保留左侧
911
+ <crop type="rect" presetHandlers="60"/> 圆角矩形裁剪, 默认居中
796
912
  </xs:documentation>
797
913
  </xs:annotation>
798
914
  <xs:attribute name="type" type="sml:ShapeType" use="optional" default="rect"/>
915
+ <xs:attribute name="anchor" type="sml:CropAnchorType" use="optional"/>
799
916
  <xs:attribute name="leftOffset" type="xs:double" use="optional"/>
800
917
  <xs:attribute name="rightOffset" type="xs:double" use="optional"/>
801
918
  <xs:attribute name="topOffset" type="xs:double" use="optional"/>
@@ -935,7 +1052,7 @@
935
1052
  单页幻灯片结构
936
1053
  子元素:
937
1054
  - style: 页面样式(背景色等), style的fill默认颜色为白色rgba(255, 255, 255, 1)
938
- - data: 页面元素容器(shape/line/polyline/img/table/icon/chart/whiteboard/undefined)
1055
+ - data: 页面元素容器(shape/line/polyline/img/table/icon/chart/undefined)
939
1056
  - note: 演讲者备注
940
1057
  </xs:documentation>
941
1058
  </xs:annotation>
@@ -960,7 +1077,6 @@
960
1077
  <xs:element ref="sml:table"/>
961
1078
  <xs:element ref="sml:icon"/>
962
1079
  <xs:element ref="sml:chart"/>
963
- <xs:element ref="sml:whiteboard"/>
964
1080
  <xs:element ref="sml:undefined"/>
965
1081
  </xs:choice>
966
1082
  </xs:complexType>
@@ -1043,6 +1159,10 @@
1043
1159
  - underline: content 级别是否下划线
1044
1160
  - list: content 级别列表类型 bullet/number
1045
1161
  - listStyle: content 级别列表样式
1162
+ - bulletColor: 列表符号颜色(纯色), 可选
1163
+ - bulletSize: 列表符号大小, 可选, 百分比字符串(相对于文本字号, 取值范围 25%-400%)如 "100%", 或绝对像素值(取值范围 6-400)如 "14"
1164
+ - autoStartAt: 有序列表起始编号, 可选, 取值范围 [1, 32767]; 作为后代段落的初始计数器, 子元素 &lt;p&gt;/&lt;ol&gt; 可通过自身 autoStartAt 重置
1165
+ - bulletChar: 自定义列表符号字符, 可选, 如 "★", "→" 等, 设置后覆盖 listStyle 的符号
1046
1166
  - anchorCenter: 控制文本对齐方式, 优先级高于 textAlign
1047
1167
  - autoFit: 控制文本编辑溢出时处理策略
1048
1168
  - baseline: 上标/下标, 相较于文本基线的偏移量
@@ -1050,6 +1170,13 @@
1050
1170
 
1051
1171
  注意:如果content子元素不指定属性, 默认继承content的属性值, 如果局部子元素指定了属性, 则使用局部属性值
1052
1172
 
1173
+ autoStartAt 运行计数器示例(显式指定重置, 未指定沿用前序计数器):
1174
+ &lt;content autoStartAt="5"&gt;
1175
+ &lt;p list="number"&gt;A&lt;/p&gt; &lt;!-- A=5, 继承 content 初始值 --&gt;
1176
+ &lt;p list="number" autoStartAt="10"&gt;B&lt;/p&gt; &lt;!-- B=10, 本段显式重置 --&gt;
1177
+ &lt;p list="number"&gt;C&lt;/p&gt; &lt;!-- C=11, 沿用前序计数器递增 --&gt;
1178
+ &lt;/content&gt;
1179
+
1053
1180
  子元素:
1054
1181
  - p: 段落元素
1055
1182
  - ul: 无序列表元素
@@ -1086,6 +1213,10 @@
1086
1213
  <xs:attribute name="underline" type="xs:boolean" />
1087
1214
  <xs:attribute name="list" type="sml:ListType" default="none"/>
1088
1215
  <xs:attribute name="listStyle" type="sml:ListStyleType" />
1216
+ <xs:attribute name="bulletColor" type="sml:SolidColor" use="optional"/>
1217
+ <xs:attribute name="bulletSize" type="sml:BulletSizeType" use="optional"/>
1218
+ <xs:attribute name="autoStartAt" type="sml:AutoStartAtType" use="optional"/>
1219
+ <xs:attribute name="bulletChar" type="sml:BulletCharType" use="optional"/>
1089
1220
  <xs:attribute name="anchorCenter" type="xs:boolean" default="false" /> <!-- 控制竖排文字是否在垂直方向保持居中 -->
1090
1221
  <xs:attribute name="autoFit" type="sml:AutoFitType" default="no-auto-fit" />
1091
1222
  <xs:attribute name="wrap" type="xs:boolean" default="true" />
@@ -1097,9 +1228,9 @@
1097
1228
  <xs:annotation>
1098
1229
  <xs:documentation>
1099
1230
  段落容器, 支持富文本内容
1100
- 可包含纯文本和内联格式元素(br/strong/em/u/span/del/a/shadow/outline)
1231
+ 可包含纯文本和内联格式元素(br/strong/em/u/span/del/a/shadow/outline/formula/field)
1101
1232
  内联元素嵌套:所有内联元素均可包含纯文本或其他内联元素,以实现复杂的格式组合
1102
- 元素自嵌套:除a元素外,其余内联元素支持自身嵌套,当shadow和outline自嵌套时,渲染效果遵循就近原则,以内层定义的样式为准
1233
+ 元素自嵌套:除a/formula元素外,其余内联元素支持自身嵌套,当shadow和outline自嵌套时,渲染效果遵循就近原则,以内层定义的样式为准
1103
1234
 
1104
1235
  空格处理规则:
1105
1236
  - 文本内的连续空格会被合并为单个空格
@@ -1120,6 +1251,8 @@
1120
1251
  - a: 超链接
1121
1252
  - shadow: 文本阴影
1122
1253
  - outline: 文本轮廓
1254
+ - formula: 科学公式(支持数学、物理等)
1255
+ - field: 动态文本字段,元素内容作为不支持动态字段时的降级文本
1123
1256
  属性说明:
1124
1257
  - textAlign: 文本对齐方式
1125
1258
  - lineSpacing: 行间距
@@ -1128,6 +1261,10 @@
1128
1261
  - level: 段落级别, 取值范围 [1,10]
1129
1262
  - list: 列表类型(bullet/number)
1130
1263
  - listStyle: 列表样式
1264
+ - bulletColor: 列表符号颜色(纯色), 可选
1265
+ - bulletSize: 列表符号大小, 可选, 百分比字符串(相对于文本字号, 取值范围 25%-400%)或绝对像素值(取值范围 6-400)
1266
+ - autoStartAt: 有序列表起始编号, 可选, 取值范围 [1, 32767]; 显式指定时从当前段落起重置计数器, 未指定时沿用同一 content 内的前序计数器
1267
+ - bulletChar: 自定义列表符号字符, 可选
1131
1268
  - marginLeft: 段落左侧缩进宽度
1132
1269
  - indent: 首行缩进宽度
1133
1270
  </xs:documentation>
@@ -1135,6 +1272,7 @@
1135
1272
  <xs:complexType mixed="true">
1136
1273
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1137
1274
  <xs:element ref="sml:br"/>
1275
+ <xs:element ref="sml:formula"/>
1138
1276
  <xs:element ref="sml:strong"/>
1139
1277
  <xs:element ref="sml:em"/>
1140
1278
  <xs:element ref="sml:u"/>
@@ -1143,6 +1281,7 @@
1143
1281
  <xs:element ref="sml:a"/>
1144
1282
  <xs:element ref="sml:shadow"/>
1145
1283
  <xs:element ref="sml:outline"/>
1284
+ <xs:element ref="sml:field"/>
1146
1285
  </xs:choice>
1147
1286
  <xs:attribute name="textAlign" type="sml:TextAlignType" />
1148
1287
  <xs:attribute name="lineSpacing" type="sml:LineSpacingType" default="multiple:1.5"/>
@@ -1152,6 +1291,10 @@
1152
1291
  <xs:attribute name="level" type="sml:LevelType" default="1"/>
1153
1292
  <xs:attribute name="list" type="sml:ListType" default="none"/>
1154
1293
  <xs:attribute name="listStyle" type="sml:ListStyleType"/>
1294
+ <xs:attribute name="bulletColor" type="sml:SolidColor" use="optional"/>
1295
+ <xs:attribute name="bulletSize" type="sml:BulletSizeType" use="optional"/>
1296
+ <xs:attribute name="autoStartAt" type="sml:AutoStartAtType" use="optional"/>
1297
+ <xs:attribute name="bulletChar" type="sml:BulletCharType" use="optional"/>
1155
1298
  <xs:attribute name="marginLeft" type="xs:double" use="optional" />
1156
1299
  <xs:attribute name="indent" type="sml:NonNegativeDouble" use="optional"/>
1157
1300
  </xs:complexType>
@@ -1161,7 +1304,14 @@
1161
1304
  <!-- 无序列表 -->
1162
1305
  <xs:element name="ul">
1163
1306
  <xs:annotation>
1164
- <xs:documentation>无序列表</xs:documentation>
1307
+ <xs:documentation>
1308
+ 无序列表
1309
+ 属性说明:
1310
+ - listStyle: 列表样式
1311
+ - bulletColor: 列表符号颜色(纯色), 可选
1312
+ - bulletSize: 列表符号大小, 可选, 百分比字符串(相对于文本字号, 取值范围 25%-400%)或绝对像素值(取值范围 6-400)
1313
+ - bulletChar: 自定义列表符号字符, 可选, 设置后覆盖 listStyle 的符号
1314
+ </xs:documentation>
1165
1315
  </xs:annotation>
1166
1316
  <xs:complexType>
1167
1317
  <xs:sequence>
@@ -1174,13 +1324,23 @@
1174
1324
  </xs:element>
1175
1325
  </xs:sequence>
1176
1326
  <xs:attribute name="listStyle" type="sml:UnorderedListStyle" default="circle-hollow-square"/>
1327
+ <xs:attribute name="bulletColor" type="sml:SolidColor" use="optional"/>
1328
+ <xs:attribute name="bulletSize" type="sml:BulletSizeType" use="optional"/>
1329
+ <xs:attribute name="bulletChar" type="sml:BulletCharType" use="optional"/>
1177
1330
  </xs:complexType>
1178
1331
  </xs:element>
1179
1332
 
1180
1333
  <!-- 有序列表 -->
1181
1334
  <xs:element name="ol">
1182
1335
  <xs:annotation>
1183
- <xs:documentation>有序列表, 可指定序号</xs:documentation>
1336
+ <xs:documentation>
1337
+ 有序列表, 可指定序号
1338
+ 属性说明:
1339
+ - listStyle: 列表样式
1340
+ - bulletColor: 列表符号颜色(纯色), 可选
1341
+ - bulletSize: 列表符号大小, 可选, 百分比字符串(相对于文本字号, 取值范围 25%-400%)或绝对像素值(取值范围 6-400)
1342
+ - autoStartAt: 有序列表起始编号, 可选, 取值范围 [1, 32767]; 作用于本列表组的计数器初始值, 子元素 &lt;li@index&gt; 可覆盖单项编号
1343
+ </xs:documentation>
1184
1344
  </xs:annotation>
1185
1345
  <xs:complexType>
1186
1346
  <xs:sequence>
@@ -1194,6 +1354,9 @@
1194
1354
  </xs:element>
1195
1355
  </xs:sequence>
1196
1356
  <xs:attribute name="listStyle" type="sml:OrderedListStyle" default="number-lower-alpha-lower-roman"/>
1357
+ <xs:attribute name="bulletColor" type="sml:SolidColor" use="optional"/>
1358
+ <xs:attribute name="bulletSize" type="sml:BulletSizeType" use="optional"/>
1359
+ <xs:attribute name="autoStartAt" type="sml:AutoStartAtType" use="optional"/>
1197
1360
  </xs:complexType>
1198
1361
  </xs:element>
1199
1362
 
@@ -1384,7 +1547,7 @@
1384
1547
  alpha: 不透明度[0, 1]
1385
1548
 
1386
1549
  可选子元素:
1387
- crop: 裁剪。无标签或所有offset未设置时从左上角自适应裁到width×height
1550
+ crop: 裁剪。无标签 / 空标签 / 仅设 anchor 时按等比缩放后裁剪到 width×height; anchor 指定保留方位 (top/bottom/left/right), 不设 anchor 即居中裁剪; offset 用于精细控制
1388
1551
  reflection: 倒影。无标签代表无倒影,空标签代表使用默认样式
1389
1552
  shadow: 阴影。无标签代表无阴影,空标签代表使用默认样式
1390
1553
  border: 边框。无标签代表无边框,空标签代表使用默认样式(颜色: rgba(43, 47, 54, 1), 宽度: 2)
@@ -1464,6 +1627,7 @@
1464
1627
  <xs:annotation>
1465
1628
  <xs:documentation>
1466
1629
  表格元素, 用于展示结构化数据
1630
+ 宽高分配规则参考 HTML table 的整体值 / 子项值处理逻辑, 但在 SXSD 中做确定化约束, 以保证跨端实现一致。
1467
1631
  边框规则:
1468
1632
  - 后设置优先:相邻单元格线条只有一个颜色, 如果均设置, 则右下单元格的设置覆盖左上单元格
1469
1633
  - 不设置边框属性时使用默认样式
@@ -1476,6 +1640,8 @@
1476
1640
  - id: 表格唯一标识符(可选)
1477
1641
  - topLeftX/topLeftY: 左上角坐标
1478
1642
  - flipX/flipY: 水平/垂直翻转
1643
+ - width: 表格目标总宽度(可选)。若设置, 优先用于为未填写列宽的列分配剩余宽度; 当所有列宽均为空时, 所有列均分该值; 当所有列均已填写且该值大于已填写列宽总和时, 多出空间继续分配给现有列, 默认按各列当前宽度作为权重分配; 当已填写列宽之和超过或无法容纳该值时, 保留已填写列宽, 并以最终列宽总和回写 table.width
1644
+ - height: 表格目标总高度(可选)。若设置, 优先用于为未填写行高的行分配剩余高度; 当所有行高均为空时, 所有行均分该值; 当所有行均已填写且该值大于已填写行高总和时, 多出空间继续分配给现有行, 默认按各行当前高度作为权重分配; 当已填写行高之和超过或无法容纳该值时, 保留已填写行高, 并以最终行高总和回写 table.height
1479
1645
  table 子元素:
1480
1646
  - colgroup: 列组元素, 用于定义列的宽度
1481
1647
  - tr: 行元素, 包含多个单元格
@@ -1484,10 +1650,10 @@
1484
1650
  - col: 列元素
1485
1651
  col 属性:
1486
1652
  - span: 列跨数, 默认为1, 可选
1487
- - width: 列宽度, 默认值为110, 可选
1653
+ - width: 列宽度输入值, 默认值为110, 可选。无 table.width 时, 已填写列保持原值, 空列使用默认值; 有 table.width 时, 已填写列保持原值, 空列优先均分剩余宽度; 若不存在空列且 table.width 大于已填写列宽总和, 则多出空间按各列当前宽度作为权重分配到所有列; 若剩余宽度不足则空列回退为默认值, 并以最终列宽总和作为 table.width
1488
1654
 
1489
1655
  tr 属性:
1490
- - height: 行高, 默认为单元格高度
1656
+ - height: 行高输入值, 默认值为37, 可选。无 table.height 时, 已填写行保持原值, 空行使用默认值; 有 table.height 时, 已填写行保持原值, 空行优先均分剩余高度; 若不存在空行且 table.height 大于已填写行高总和, 则多出空间按各行当前高度作为权重分配到所有行; 若剩余高度不足则空行回退为默认值, 并以最终行高总和作为 table.height。若行高低于内容高度, 需要手动修改行高
1491
1657
  tr 子元素:
1492
1658
  - td: 单元格元素, 用于显示数据
1493
1659
 
@@ -1498,7 +1664,7 @@
1498
1664
  td 子元素:
1499
1665
  - borderTop/borderRight/borderBottom/borderLeft: 单元格边框样式, 无border标签代表无边框, 空border标签代表使用默认样式(实线边框, 颜色为rgba(221, 222, 223, 1), 宽度为1)
1500
1666
  - fill: 单元格填充样式, 无fill标签代表不填充, 空fill标签代表使用默认样式(默认颜色填充, 颜色为rgba(255, 255, 255, 1))
1501
- - content: 单元格内容
1667
+ - content: 单元格内容。内容默认不反向修改表格几何尺寸; 当内容高度大于当前行高时, 需要手动修改行高
1502
1668
  </xs:documentation>
1503
1669
  </xs:annotation>
1504
1670
  <xs:complexType>
@@ -1543,6 +1709,8 @@
1543
1709
  <xs:attribute name="topLeftY" type="sml:YType" use="required"/>
1544
1710
  <xs:attribute name="flipX" type="xs:boolean" use="optional" default="false"/>
1545
1711
  <xs:attribute name="flipY" type="xs:boolean" use="optional" default="false"/>
1712
+ <xs:attribute name="width" type="sml:PositiveSize" use="optional"/>
1713
+ <xs:attribute name="height" type="sml:PositiveSize" use="optional"/>
1546
1714
  </xs:complexType>
1547
1715
  </xs:element>
1548
1716
 
@@ -1554,6 +1722,70 @@
1554
1722
  <xs:complexType/>
1555
1723
  </xs:element>
1556
1724
 
1725
+ <xs:element name="field">
1726
+ <xs:annotation>
1727
+ <xs:documentation>
1728
+ 动态文本字段。
1729
+ type 属性描述动态语义,元素内容是静态降级文本,可包含行内样式元素。
1730
+ </xs:documentation>
1731
+ </xs:annotation>
1732
+ <xs:complexType mixed="true">
1733
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
1734
+ <xs:element ref="sml:strong"/>
1735
+ <xs:element ref="sml:em"/>
1736
+ <xs:element ref="sml:u"/>
1737
+ <xs:element ref="sml:span"/>
1738
+ <xs:element ref="sml:del"/>
1739
+ <xs:element ref="sml:a"/>
1740
+ <xs:element ref="sml:shadow"/>
1741
+ <xs:element ref="sml:outline"/>
1742
+ </xs:choice>
1743
+ <xs:attribute name="type" type="sml:FieldType" use="required"/>
1744
+ </xs:complexType>
1745
+ </xs:element>
1746
+
1747
+
1748
+
1749
+ <xs:element name="formula">
1750
+ <xs:annotation>
1751
+ <xs:documentation>
1752
+ 通用公式元素。
1753
+ 用于展示各类科学公式。
1754
+
1755
+ 结构说明:
1756
+ - 必须从支持的公式格式中选择且仅选择一种作为子元素。
1757
+ - 当前版本支持格式:&lt;latex&gt;
1758
+
1759
+ 示例:
1760
+ - 基础公式:
1761
+ &lt;formula&gt;
1762
+ &lt;latex&gt;&lt;![CDATA[ E = mc^2 ]]&gt;&lt;/latex&gt;
1763
+ &lt;/formula&gt;
1764
+ </xs:documentation>
1765
+ </xs:annotation>
1766
+ <xs:complexType>
1767
+ <xs:choice minOccurs="1" maxOccurs="1">
1768
+ <xs:element name="latex">
1769
+ <xs:annotation>
1770
+ <xs:documentation>
1771
+ LaTeX 格式的公式内容。
1772
+ 本元素包含的 LaTeX 字符串必须严格符合附件中定义的宏集范围。
1773
+
1774
+ 内容语法:
1775
+ - 语法范围:仅使用附件白名单中明确支持的宏。
1776
+ - 表达建议:优先使用基础运算符、分式(\frac)、根号(\sqrt)、矩阵(matrix)等标准数学环境。
1777
+ - 格式要求:必须使用 CDATA 包裹内容,且 CDATA 内部严禁进行 XML 转义(如 &amp;lt;, &amp;amp;)。
1778
+ - 空白处理:解析器将保留 CDATA 内的所有换行和缩进,建议利用此特性保持 LaTeX 源码的结构化和可读性。
1779
+ </xs:documentation>
1780
+ </xs:annotation>
1781
+ <xs:simpleType>
1782
+ <xs:restriction base="xs:string"/>
1783
+ </xs:simpleType>
1784
+ </xs:element>
1785
+ </xs:choice>
1786
+ </xs:complexType>
1787
+ </xs:element>
1788
+
1557
1789
  <xs:element name="strong">
1558
1790
  <xs:annotation>
1559
1791
  <xs:documentation>粗体/加重文本</xs:documentation>
@@ -1561,6 +1793,7 @@
1561
1793
  <xs:complexType mixed="true">
1562
1794
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1563
1795
  <xs:element ref="sml:br"/>
1796
+ <xs:element ref="sml:formula"/>
1564
1797
  <xs:element ref="sml:strong"/>
1565
1798
  <xs:element ref="sml:em"/>
1566
1799
  <xs:element ref="sml:u"/>
@@ -1569,6 +1802,7 @@
1569
1802
  <xs:element ref="sml:a"/>
1570
1803
  <xs:element ref="sml:shadow"/>
1571
1804
  <xs:element ref="sml:outline"/>
1805
+ <xs:element ref="sml:field"/>
1572
1806
  </xs:choice>
1573
1807
  </xs:complexType>
1574
1808
  </xs:element>
@@ -1586,6 +1820,7 @@
1586
1820
  <xs:extension base="sml:ShadowType">
1587
1821
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1588
1822
  <xs:element ref="sml:br"/>
1823
+ <xs:element ref="sml:formula"/>
1589
1824
  <xs:element ref="sml:strong"/>
1590
1825
  <xs:element ref="sml:em"/>
1591
1826
  <xs:element ref="sml:u"/>
@@ -1594,6 +1829,7 @@
1594
1829
  <xs:element ref="sml:a"/>
1595
1830
  <xs:element ref="sml:shadow"/>
1596
1831
  <xs:element ref="sml:outline"/>
1832
+ <xs:element ref="sml:field"/>
1597
1833
  </xs:choice>
1598
1834
  </xs:extension>
1599
1835
  </xs:complexContent>
@@ -1613,6 +1849,7 @@
1613
1849
  <xs:extension base="sml:OutlineType">
1614
1850
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1615
1851
  <xs:element ref="sml:br"/>
1852
+ <xs:element ref="sml:formula"/>
1616
1853
  <xs:element ref="sml:strong"/>
1617
1854
  <xs:element ref="sml:em"/>
1618
1855
  <xs:element ref="sml:u"/>
@@ -1621,6 +1858,7 @@
1621
1858
  <xs:element ref="sml:a"/>
1622
1859
  <xs:element ref="sml:shadow"/>
1623
1860
  <xs:element ref="sml:outline"/>
1861
+ <xs:element ref="sml:field"/>
1624
1862
  </xs:choice>
1625
1863
  </xs:extension>
1626
1864
  </xs:complexContent>
@@ -1634,6 +1872,7 @@
1634
1872
  <xs:complexType mixed="true">
1635
1873
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1636
1874
  <xs:element ref="sml:br"/>
1875
+ <xs:element ref="sml:formula"/>
1637
1876
  <xs:element ref="sml:strong"/>
1638
1877
  <xs:element ref="sml:em"/>
1639
1878
  <xs:element ref="sml:u"/>
@@ -1642,6 +1881,7 @@
1642
1881
  <xs:element ref="sml:a"/>
1643
1882
  <xs:element ref="sml:shadow"/>
1644
1883
  <xs:element ref="sml:outline"/>
1884
+ <xs:element ref="sml:field"/>
1645
1885
  </xs:choice>
1646
1886
  </xs:complexType>
1647
1887
  </xs:element>
@@ -1653,6 +1893,7 @@
1653
1893
  <xs:complexType mixed="true">
1654
1894
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1655
1895
  <xs:element ref="sml:br"/>
1896
+ <xs:element ref="sml:formula"/>
1656
1897
  <xs:element ref="sml:strong"/>
1657
1898
  <xs:element ref="sml:em"/>
1658
1899
  <xs:element ref="sml:u"/>
@@ -1661,6 +1902,7 @@
1661
1902
  <xs:element ref="sml:a"/>
1662
1903
  <xs:element ref="sml:shadow"/>
1663
1904
  <xs:element ref="sml:outline"/>
1905
+ <xs:element ref="sml:field"/>
1664
1906
  </xs:choice>
1665
1907
  </xs:complexType>
1666
1908
  </xs:element>
@@ -1672,6 +1914,7 @@
1672
1914
  <xs:complexType mixed="true">
1673
1915
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1674
1916
  <xs:element ref="sml:br"/>
1917
+ <xs:element ref="sml:formula"/>
1675
1918
  <xs:element ref="sml:strong"/>
1676
1919
  <xs:element ref="sml:em"/>
1677
1920
  <xs:element ref="sml:u"/>
@@ -1680,6 +1923,7 @@
1680
1923
  <xs:element ref="sml:a"/>
1681
1924
  <xs:element ref="sml:shadow"/>
1682
1925
  <xs:element ref="sml:outline"/>
1926
+ <xs:element ref="sml:field"/>
1683
1927
  </xs:choice>
1684
1928
  </xs:complexType>
1685
1929
  </xs:element>
@@ -1694,6 +1938,7 @@
1694
1938
  <xs:complexType mixed="true">
1695
1939
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1696
1940
  <xs:element ref="sml:br"/>
1941
+ <xs:element ref="sml:formula"/>
1697
1942
  <xs:element ref="sml:strong"/>
1698
1943
  <xs:element ref="sml:em"/>
1699
1944
  <xs:element ref="sml:u"/>
@@ -1702,6 +1947,7 @@
1702
1947
  <xs:element ref="sml:a"/>
1703
1948
  <xs:element ref="sml:shadow"/>
1704
1949
  <xs:element ref="sml:outline"/>
1950
+ <xs:element ref="sml:field"/>
1705
1951
  </xs:choice>
1706
1952
  <xs:attribute name="color" type="sml:Color" use="optional"/>
1707
1953
  <xs:attribute name="backgroundColor" type="sml:Color" use="optional"/>
@@ -1725,6 +1971,7 @@
1725
1971
  <xs:complexType mixed="true">
1726
1972
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1727
1973
  <xs:element ref="sml:br"/>
1974
+ <xs:element ref="sml:formula"/>
1728
1975
  <xs:element ref="sml:strong"/>
1729
1976
  <xs:element ref="sml:em"/>
1730
1977
  <xs:element ref="sml:u"/>
@@ -1732,6 +1979,7 @@
1732
1979
  <xs:element ref="sml:del"/>
1733
1980
  <xs:element ref="sml:shadow"/>
1734
1981
  <xs:element ref="sml:outline"/>
1982
+ <xs:element ref="sml:field"/>
1735
1983
  </xs:choice>
1736
1984
  <xs:attribute name="href" use="required">
1737
1985
  <xs:simpleType>
@@ -1819,36 +2067,116 @@
1819
2067
  <!-- 有序列表样式枚举 -->
1820
2068
  <xs:simpleType name="OrderedListStyle">
1821
2069
  <xs:annotation>
1822
- <xs:documentation>有序列表样式</xs:documentation>
2070
+ <xs:documentation>
2071
+ 有序列表样式
2072
+
2073
+ 分为两类:
2074
+ 1. 复合样式(按层级循环不同格式):如 number-lower-alpha-lower-roman 表示第1级用数字、第2级用小写字母、第3级用小写罗马,超过层级数后循环
2075
+ 2. 单一样式(所有层级使用同一格式,不循环):以 PPTX 标准 scheme 命名,如 alpha-lc-paren-both 表示所有层级都用 (a)(b)(c) 格式
2076
+ </xs:documentation>
1823
2077
  </xs:annotation>
1824
2078
  <xs:restriction base="xs:string">
2079
+ <!-- 复合样式(按层级循环) -->
1825
2080
  <xs:enumeration value="number-lower-alpha-lower-roman"><xs:annotation><xs:documentation>1. a. i. - 数字/小写字母/小写罗马</xs:documentation></xs:annotation></xs:enumeration>
1826
2081
  <xs:enumeration value="number-lower-alpha-lower-roman-paren"><xs:annotation><xs:documentation>1) a) i) - 带括号版本</xs:documentation></xs:annotation></xs:enumeration>
1827
2082
  <xs:enumeration value="hierarchical-number"><xs:annotation><xs:documentation>1. 1.1. 1.1.1. - 多级数字</xs:documentation></xs:annotation></xs:enumeration>
1828
2083
  <xs:enumeration value="upper-alpha-lower-alpha-lower-roman"><xs:annotation><xs:documentation>A. a. i. - 大写字母/小写字母/小写罗马</xs:documentation></xs:annotation></xs:enumeration>
1829
2084
  <xs:enumeration value="upper-roman-upper-alpha-number"><xs:annotation><xs:documentation>I. A. 1. - 大写罗马/大写字母/数字</xs:documentation></xs:annotation></xs:enumeration>
1830
2085
  <xs:enumeration value="zero-padded-lower-alpha-lower-roman"><xs:annotation><xs:documentation>01. a. i. - 补零数字/小写字母/小写罗马</xs:documentation></xs:annotation></xs:enumeration>
1831
- <xs:enumeration value="circle-number"><xs:annotation><xs:documentation> 圆圈数字</xs:documentation></xs:annotation></xs:enumeration>
2086
+ <xs:enumeration value="circle-number"><xs:annotation><xs:documentation>圆圈数字</xs:documentation></xs:annotation></xs:enumeration>
1832
2087
  <xs:enumeration value="lower-alpha-paren"><xs:annotation><xs:documentation>a) b) c) - 小写字母带括号</xs:documentation></xs:annotation></xs:enumeration>
1833
2088
  <xs:enumeration value="lower-alpha-dot"><xs:annotation><xs:documentation>a. b. c. - 小写字母带点</xs:documentation></xs:annotation></xs:enumeration>
1834
2089
  <xs:enumeration value="chinese-formal"><xs:annotation><xs:documentation>一、二、三、 - 中文数字</xs:documentation></xs:annotation></xs:enumeration>
2090
+
2091
+ <!-- 单一样式(所有层级使用同一格式,不随层级循环) -->
2092
+ <!-- 拉丁字母 Latin -->
2093
+ <xs:enumeration value="alpha-lc-paren-both"><xs:annotation><xs:documentation>(a) (b) (c) - 小写字母带双括号</xs:documentation></xs:annotation></xs:enumeration>
2094
+ <xs:enumeration value="alpha-uc-paren-both"><xs:annotation><xs:documentation>(A) (B) (C) - 大写字母带双括号</xs:documentation></xs:annotation></xs:enumeration>
2095
+ <xs:enumeration value="alpha-lc-paren-r"><xs:annotation><xs:documentation>a) b) c) - 小写字母带右括号</xs:documentation></xs:annotation></xs:enumeration>
2096
+ <xs:enumeration value="alpha-uc-paren-r"><xs:annotation><xs:documentation>A) B) C) - 大写字母带右括号</xs:documentation></xs:annotation></xs:enumeration>
2097
+ <xs:enumeration value="alpha-lc-period"><xs:annotation><xs:documentation>a. b. c. - 小写字母带点</xs:documentation></xs:annotation></xs:enumeration>
2098
+ <xs:enumeration value="alpha-uc-period"><xs:annotation><xs:documentation>A. B. C. - 大写字母带点</xs:documentation></xs:annotation></xs:enumeration>
2099
+ <!-- 阿拉伯数字 Arabic Numeral -->
2100
+ <xs:enumeration value="arabic-paren-both"><xs:annotation><xs:documentation>(1) (2) (3) - 数字带双括号</xs:documentation></xs:annotation></xs:enumeration>
2101
+ <xs:enumeration value="arabic-paren-r"><xs:annotation><xs:documentation>1) 2) 3) - 数字带右括号</xs:documentation></xs:annotation></xs:enumeration>
2102
+ <xs:enumeration value="arabic-period"><xs:annotation><xs:documentation>1. 2. 3. - 数字带点</xs:documentation></xs:annotation></xs:enumeration>
2103
+ <xs:enumeration value="arabic-plain"><xs:annotation><xs:documentation>1 2 3 - 纯数字</xs:documentation></xs:annotation></xs:enumeration>
2104
+ <xs:enumeration value="arabic-db-period"><xs:annotation><xs:documentation>1.2.3.- 全角数字带点</xs:documentation></xs:annotation></xs:enumeration>
2105
+ <xs:enumeration value="arabic-db-plain"><xs:annotation><xs:documentation>1 2 3 - 全角纯数字</xs:documentation></xs:annotation></xs:enumeration>
2106
+ <xs:enumeration value="arabic1-minus"><xs:annotation><xs:documentation>أ- ب- ت- - 阿拉伯语字母(现代序)带后横线</xs:documentation></xs:annotation></xs:enumeration>
2107
+ <xs:enumeration value="arabic2-minus"><xs:annotation><xs:documentation>-أ- -ب- -ج- - 阿拉伯语字母(Abjadi序)带双横线</xs:documentation></xs:annotation></xs:enumeration>
2108
+ <!-- 罗马数字 Roman -->
2109
+ <xs:enumeration value="roman-lc-paren-both"><xs:annotation><xs:documentation>(i) (ii) (iii) - 小写罗马带双括号</xs:documentation></xs:annotation></xs:enumeration>
2110
+ <xs:enumeration value="roman-uc-paren-both"><xs:annotation><xs:documentation>(I) (II) (III) - 大写罗马带双括号</xs:documentation></xs:annotation></xs:enumeration>
2111
+ <xs:enumeration value="roman-lc-paren-r"><xs:annotation><xs:documentation>i) ii) iii) - 小写罗马带右括号</xs:documentation></xs:annotation></xs:enumeration>
2112
+ <xs:enumeration value="roman-uc-paren-r"><xs:annotation><xs:documentation>I) II) III) - 大写罗马带右括号</xs:documentation></xs:annotation></xs:enumeration>
2113
+ <xs:enumeration value="roman-lc-period"><xs:annotation><xs:documentation>i. ii. iii. - 小写罗马带点</xs:documentation></xs:annotation></xs:enumeration>
2114
+ <xs:enumeration value="roman-uc-period"><xs:annotation><xs:documentation>I. II. III. - 大写罗马带点</xs:documentation></xs:annotation></xs:enumeration>
2115
+ <!-- 圆圈数字 Circle -->
2116
+ <xs:enumeration value="circle-num-db-plain"><xs:annotation><xs:documentation>① ② ③ - 圆圈数字</xs:documentation></xs:annotation></xs:enumeration>
2117
+ <xs:enumeration value="circle-num-wd-black-plain"><xs:annotation><xs:documentation>❶ ❷ ❸ - 实心圆圈数字</xs:documentation></xs:annotation></xs:enumeration>
2118
+ <xs:enumeration value="circle-num-wd-white-plain"><xs:annotation><xs:documentation>① ② ③ - 圆圈数字(1-10 循环, 字形与 circle-num-db-plain 相同但超过 10 后不降级为纯数字)</xs:documentation></xs:annotation></xs:enumeration>
2119
+ <!-- 东亚 East Asian -->
2120
+ <xs:enumeration value="ea1-chs-period"><xs:annotation><xs:documentation>一. 二. 三. - 简体中文带点</xs:documentation></xs:annotation></xs:enumeration>
2121
+ <xs:enumeration value="ea1-chs-plain"><xs:annotation><xs:documentation>一 二 三 - 简体中文</xs:documentation></xs:annotation></xs:enumeration>
2122
+ <xs:enumeration value="ea1-cht-period"><xs:annotation><xs:documentation>一. 二. 三. - 繁体中文带点</xs:documentation></xs:annotation></xs:enumeration>
2123
+ <xs:enumeration value="ea1-cht-plain"><xs:annotation><xs:documentation>一 二 三 - 繁体中文</xs:documentation></xs:annotation></xs:enumeration>
2124
+ <xs:enumeration value="ea1-jpn-chs-db-period"><xs:annotation><xs:documentation>一.二.三.- CJK汉字数字带全角点</xs:documentation></xs:annotation></xs:enumeration>
2125
+ <xs:enumeration value="ea1-jpn-kor-plain"><xs:annotation><xs:documentation>一 二 三 - CJK汉字数字</xs:documentation></xs:annotation></xs:enumeration>
2126
+ <xs:enumeration value="ea1-jpn-kor-period"><xs:annotation><xs:documentation>一. 二. 三. - CJK汉字数字带半角点</xs:documentation></xs:annotation></xs:enumeration>
2127
+ <!-- 希伯来语 Hebrew -->
2128
+ <xs:enumeration value="hebrew2-minus"><xs:annotation><xs:documentation>א- ב- ג- - 希伯来字母带横线</xs:documentation></xs:annotation></xs:enumeration>
2129
+ <!-- 泰语 Thai -->
2130
+ <xs:enumeration value="thai-alpha-period"><xs:annotation><xs:documentation>ก. ข. ค. - 泰语字母带点(跳过 ฃ/ฅ/ฆ)</xs:documentation></xs:annotation></xs:enumeration>
2131
+ <xs:enumeration value="thai-alpha-paren-r"><xs:annotation><xs:documentation>ก) ข) ค) - 泰语字母带右括号(跳过 ฃ/ฅ/ฆ)</xs:documentation></xs:annotation></xs:enumeration>
2132
+ <xs:enumeration value="thai-alpha-paren-both"><xs:annotation><xs:documentation>(ก) (ข) (ค) - 泰语字母带双括号(跳过 ฃ/ฅ/ฆ)</xs:documentation></xs:annotation></xs:enumeration>
2133
+ <xs:enumeration value="thai-num-period"><xs:annotation><xs:documentation>๑. ๒. ๓. - 泰语数字带点</xs:documentation></xs:annotation></xs:enumeration>
2134
+ <xs:enumeration value="thai-num-paren-r"><xs:annotation><xs:documentation>๑) ๒) ๓) - 泰语数字带右括号</xs:documentation></xs:annotation></xs:enumeration>
2135
+ <xs:enumeration value="thai-num-paren-both"><xs:annotation><xs:documentation>(๑) (๒) (๓) - 泰语数字带双括号</xs:documentation></xs:annotation></xs:enumeration>
2136
+ <!-- 印地语 Hindi -->
2137
+ <xs:enumeration value="hindi-alpha-period"><xs:annotation><xs:documentation>अ. आ. इ. - 印地语元音字母带点</xs:documentation></xs:annotation></xs:enumeration>
2138
+ <xs:enumeration value="hindi-num-period"><xs:annotation><xs:documentation>१. २. ३. - 印地语数字带点</xs:documentation></xs:annotation></xs:enumeration>
2139
+ <xs:enumeration value="hindi-num-paren-r"><xs:annotation><xs:documentation>१) २) ३) - 印地语数字带右括号</xs:documentation></xs:annotation></xs:enumeration>
2140
+ <xs:enumeration value="hindi-alpha1-period"><xs:annotation><xs:documentation>क. ख. ग. - 印地语辅音字母带点</xs:documentation></xs:annotation></xs:enumeration>
1835
2141
  </xs:restriction>
1836
2142
  </xs:simpleType>
1837
2143
  <!-- 无序列表样式枚举 -->
1838
2144
  <xs:simpleType name="UnorderedListStyle">
1839
2145
  <xs:annotation>
1840
- <xs:documentation>无序列表样式</xs:documentation>
2146
+ <xs:documentation>
2147
+ 无序列表样式
2148
+
2149
+ 分为两类:
2150
+ 1. 复合样式(按层级循环不同图标):如 circle-hollow-square 表示第1级实心圆、第2级空心圆、第3级实心方形,超过层级数后循环
2151
+ 2. 单一样式(所有层级使用同一图标,不循环):以 pptx- 前缀命名,如 pptx-circle 表示所有层级都用 ● 实心圆
2152
+ </xs:documentation>
1841
2153
  </xs:annotation>
1842
2154
  <xs:restriction base="xs:string">
2155
+ <!-- 复合样式(按层级循环) -->
1843
2156
  <xs:enumeration value="circle-hollow-square"><xs:annotation><xs:documentation>实心圆 空心圆 实心方形</xs:documentation></xs:annotation></xs:enumeration>
1844
- <xs:enumeration value="diamond-triangle-square"><xs:annotation><xs:documentation>棱形 三角形 实心方形</xs:documentation></xs:annotation></xs:enumeration>
2157
+ <xs:enumeration value="diamond-triangle-square"><xs:annotation><xs:documentation>菱形 三角形 实心方形</xs:documentation></xs:annotation></xs:enumeration>
1845
2158
  <xs:enumeration value="hollow-square-all"><xs:annotation><xs:documentation>空心方形 空心方形 空心方形</xs:documentation></xs:annotation></xs:enumeration>
1846
- <xs:enumeration value="arrow-diamond-circle"><xs:annotation><xs:documentation>右箭头 实心棱形 实心圆形</xs:documentation></xs:annotation></xs:enumeration>
2159
+ <xs:enumeration value="arrow-diamond-circle"><xs:annotation><xs:documentation>右箭头 实心菱形 实心圆形</xs:documentation></xs:annotation></xs:enumeration>
1847
2160
  <xs:enumeration value="star-hollow-circle-square"><xs:annotation><xs:documentation>实心五角星 空心圆形 实心方形</xs:documentation></xs:annotation></xs:enumeration>
1848
2161
  <xs:enumeration value="triangle-hollow-circle-square"><xs:annotation><xs:documentation>三角形 空心圆形 实心方形</xs:documentation></xs:annotation></xs:enumeration>
1849
2162
  <xs:enumeration value="solid-square-all"><xs:annotation><xs:documentation>实心方形 实心方形 实心方形</xs:documentation></xs:annotation></xs:enumeration>
1850
2163
  <xs:enumeration value="solid-diamond-all"><xs:annotation><xs:documentation>实心菱形 实心菱形 实心菱形</xs:documentation></xs:annotation></xs:enumeration>
1851
2164
  <xs:enumeration value="check-all"><xs:annotation><xs:documentation>对勾 对勾 对勾</xs:documentation></xs:annotation></xs:enumeration>
2165
+
2166
+ <!-- 单一样式(所有层级使用同一图标,不随层级循环) -->
2167
+ <xs:enumeration value="pptx-circle"><xs:annotation><xs:documentation>● 实心圆(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2168
+ <xs:enumeration value="pptx-square"><xs:annotation><xs:documentation>■ 方块(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2169
+ <xs:enumeration value="pptx-diamond"><xs:annotation><xs:documentation>◆ 菱形(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2170
+ <xs:enumeration value="pptx-square-empty"><xs:annotation><xs:documentation>□ 空心方框(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2171
+ <xs:enumeration value="pptx-check"><xs:annotation><xs:documentation>✓ 对勾(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2172
+ <xs:enumeration value="pptx-triangle"><xs:annotation><xs:documentation>► 右三角(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2173
+ <xs:enumeration value="pptx-bullet"><xs:annotation><xs:documentation>• 小圆点(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2174
+
2175
+ <xs:enumeration value="pptx-circle-empty"><xs:annotation><xs:documentation>○ 空心圆(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2176
+ <xs:enumeration value="pptx-diamond-empty"><xs:annotation><xs:documentation>◇ 空心菱形(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2177
+ <xs:enumeration value="pptx-arrow-right"><xs:annotation><xs:documentation>➔ 右箭头(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2178
+ <xs:enumeration value="pptx-star"><xs:annotation><xs:documentation>★ 星形(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2179
+ <xs:enumeration value="pptx-square-shadow"><xs:annotation><xs:documentation>❑ 带右下阴影的 3D 方框(所有层级,对应 PPTX Wingdings 'q')</xs:documentation></xs:annotation></xs:enumeration>
1852
2180
  </xs:restriction>
1853
2181
  </xs:simpleType>
1854
2182
 
@@ -2092,6 +2420,19 @@
2092
2420
  </xs:restriction>
2093
2421
  </xs:simpleType>
2094
2422
 
2423
+ <xs:simpleType name="ChartGradientKindType">
2424
+ <xs:annotation>
2425
+ <xs:documentation>
2426
+ 图表渐变类型
2427
+ 可选值: linear(线性渐变) | radial(径向渐变)
2428
+ </xs:documentation>
2429
+ </xs:annotation>
2430
+ <xs:restriction base="xs:string">
2431
+ <xs:enumeration value="linear"/>
2432
+ <xs:enumeration value="radial"/>
2433
+ </xs:restriction>
2434
+ </xs:simpleType>
2435
+
2095
2436
  <xs:simpleType name="ChartRadarShapeType">
2096
2437
  <xs:annotation>
2097
2438
  <xs:documentation>
@@ -2213,6 +2554,7 @@
2213
2554
 
2214
2555
  属性:
2215
2556
  - textAlign: 文本对齐方式(left|center|right), 默认left
2557
+ - fontFamily: 字体族名称,仅图表根级主标题/副标题支持;坐标轴标题不支持
2216
2558
  - fontSize: 字号大小
2217
2559
  - bold: 是否加粗
2218
2560
  - italic: 是否斜体, 默认false
@@ -2226,6 +2568,7 @@
2226
2568
  <xs:complexContent>
2227
2569
  <xs:extension base="sml:ChartFontStyleType">
2228
2570
  <xs:attribute name="textAlign" type="sml:ChartTextAlignType" use="optional" default="left"/>
2571
+ <xs:attribute name="fontFamily" type="sml:FontFamilyType" use="optional"/>
2229
2572
  </xs:extension>
2230
2573
  </xs:complexContent>
2231
2574
  </xs:complexType>
@@ -2294,10 +2637,10 @@
2294
2637
  图表背景配置
2295
2638
 
2296
2639
  属性:
2297
- - color: 背景颜色, 默认透明 rgba(0,0,0,0)
2640
+ - color: 背景颜色,省略时使用图表默认背景;无填充可使用透明色 rgba(0,0,0,0)
2298
2641
  </xs:documentation>
2299
2642
  </xs:annotation>
2300
- <xs:attribute name="color" type="sml:SolidColor" use="optional" default="rgb(255, 255, 255)"/>
2643
+ <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
2301
2644
  </xs:complexType>
2302
2645
 
2303
2646
  <xs:complexType name="ChartBorderType">
@@ -2307,7 +2650,7 @@
2307
2650
 
2308
2651
  属性:
2309
2652
  - color: 边框颜色,默认 rgb(222, 224, 227)
2310
- - width: 边框宽度(像素), 默认 1
2653
+ - width: 边框宽度(像素), 默认 1;无边框可设置为0,或不设置chartBorder
2311
2654
  - style: 边框样式(solid|dashed|dotted), 默认 solid
2312
2655
  - radius: 圆角半径(像素), 默认 6
2313
2656
  </xs:documentation>
@@ -2318,6 +2661,61 @@
2318
2661
  <xs:attribute name="radius" type="xs:nonNegativeInteger" use="optional" />
2319
2662
  </xs:complexType>
2320
2663
 
2664
+ <xs:complexType name="ChartGradientStopType">
2665
+ <xs:annotation>
2666
+ <xs:documentation>
2667
+ 图表渐变色标
2668
+
2669
+ 属性:
2670
+ - offset: 色标位置比例[0,1]
2671
+ - color: 色标颜色
2672
+ - opacity: 色标透明度[0,1]
2673
+ </xs:documentation>
2674
+ </xs:annotation>
2675
+ <xs:attribute name="offset" type="sml:RatioType" use="required"/>
2676
+ <xs:attribute name="color" type="sml:SolidColor" use="required"/>
2677
+ <xs:attribute name="opacity" type="sml:RatioType" use="optional"/>
2678
+ </xs:complexType>
2679
+
2680
+ <xs:complexType name="ChartGradientStopsType">
2681
+ <xs:annotation>
2682
+ <xs:documentation>
2683
+ 图表渐变色标列表,至少需要2个色标
2684
+ </xs:documentation>
2685
+ </xs:annotation>
2686
+ <xs:sequence>
2687
+ <xs:element name="stop" type="sml:ChartGradientStopType" minOccurs="2" maxOccurs="unbounded"/>
2688
+ </xs:sequence>
2689
+ </xs:complexType>
2690
+
2691
+ <xs:complexType name="ChartGradientType">
2692
+ <xs:annotation>
2693
+ <xs:documentation>
2694
+ 图表渐变配置
2695
+
2696
+ 属性:
2697
+ - type: 渐变类型(linear|radial)
2698
+ - x0/y0/x1/y1: 线性渐变起止点坐标
2699
+ - r0/r1: 径向渐变半径
2700
+ - gradientMethod: 渐变算法/插值方式
2701
+
2702
+ 子元素:
2703
+ - stops: 渐变色标列表
2704
+ </xs:documentation>
2705
+ </xs:annotation>
2706
+ <xs:sequence>
2707
+ <xs:element name="stops" type="sml:ChartGradientStopsType" minOccurs="1"/>
2708
+ </xs:sequence>
2709
+ <xs:attribute name="type" type="sml:ChartGradientKindType" use="required"/>
2710
+ <xs:attribute name="x0" type="xs:double" use="optional"/>
2711
+ <xs:attribute name="y0" type="xs:double" use="optional"/>
2712
+ <xs:attribute name="x1" type="xs:double" use="optional"/>
2713
+ <xs:attribute name="y1" type="xs:double" use="optional"/>
2714
+ <xs:attribute name="r0" type="xs:double" use="optional"/>
2715
+ <xs:attribute name="r1" type="xs:double" use="optional"/>
2716
+ <xs:attribute name="gradientMethod" type="xs:string" use="optional"/>
2717
+ </xs:complexType>
2718
+
2321
2719
  <xs:complexType name="ChartColorThemeType">
2322
2720
  <xs:annotation>
2323
2721
  <xs:documentation>
@@ -2427,12 +2825,16 @@
2427
2825
  - size: 该系列所有点的大小
2428
2826
 
2429
2827
  子元素:
2828
+ - fillGradient: 该系列所有点的填充渐变(可选)
2829
+ - strokeGradient: 该系列所有点的边框/描边渐变(可选)
2430
2830
  - chartPoint: 单个数据点配置(可选, 多个), 用于覆盖特定点的样式
2431
2831
  </xs:documentation>
2432
2832
  </xs:annotation>
2433
2833
  <xs:complexContent>
2434
2834
  <xs:extension base="sml:ChartGlobalPointsType">
2435
2835
  <xs:sequence>
2836
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
2837
+ <xs:element name="strokeGradient" type="sml:ChartGradientType" minOccurs="0"/>
2436
2838
  <xs:element name="chartPoint" minOccurs="0" maxOccurs="unbounded">
2437
2839
  <xs:complexType>
2438
2840
  <xs:annotation>
@@ -2444,8 +2846,14 @@
2444
2846
  - color: 该点的颜色
2445
2847
  - shape: 该点的形状(circle|square|triangle|diamond|rect)
2446
2848
  - size: 该点的大小(像素)
2849
+
2850
+ 子元素:
2851
+ - fillGradient: 该点填充渐变(可选)
2447
2852
  </xs:documentation>
2448
2853
  </xs:annotation>
2854
+ <xs:sequence>
2855
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
2856
+ </xs:sequence>
2449
2857
  <xs:attribute name="index" type="xs:positiveInteger" use="required"/>
2450
2858
  <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
2451
2859
  <xs:attribute name="shape" type="sml:ChartPointShapeType" use="optional"/>
@@ -2458,7 +2866,7 @@
2458
2866
  </xs:complexType>
2459
2867
 
2460
2868
  <!-- 线条配置 -->
2461
- <xs:complexType name="ChartLineType">
2869
+ <xs:complexType name="ChartGlobalLineType">
2462
2870
  <xs:annotation>
2463
2871
  <xs:documentation>
2464
2872
  图表全局线条配置(第一层:所有系列的默认样式)
@@ -2475,8 +2883,27 @@
2475
2883
  <xs:attribute name="style" type="sml:ChartLineStyleType" use="optional" default="solid"/>
2476
2884
  </xs:complexType>
2477
2885
 
2886
+ <xs:complexType name="ChartSeriesLineType">
2887
+ <xs:annotation>
2888
+ <xs:documentation>
2889
+ 图表系列线条配置(第二层:单系列统一配置)
2890
+ 继承ChartGlobalLineType的所有属性
2891
+
2892
+ 子元素:
2893
+ - strokeGradient: 该系列线条渐变(可选)
2894
+ </xs:documentation>
2895
+ </xs:annotation>
2896
+ <xs:complexContent>
2897
+ <xs:extension base="sml:ChartGlobalLineType">
2898
+ <xs:sequence>
2899
+ <xs:element name="strokeGradient" type="sml:ChartGradientType" minOccurs="0"/>
2900
+ </xs:sequence>
2901
+ </xs:extension>
2902
+ </xs:complexContent>
2903
+ </xs:complexType>
2904
+
2478
2905
  <!-- 面积配置 -->
2479
- <xs:complexType name="ChartAreaType">
2906
+ <xs:complexType name="ChartGlobalAreaType">
2480
2907
  <xs:annotation>
2481
2908
  <xs:documentation>
2482
2909
  图表全局面积配置(第一层:所有系列的默认填充样式)
@@ -2489,6 +2916,25 @@
2489
2916
  <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
2490
2917
  </xs:complexType>
2491
2918
 
2919
+ <xs:complexType name="ChartSeriesAreaType">
2920
+ <xs:annotation>
2921
+ <xs:documentation>
2922
+ 图表系列面积配置(第二层:单系列统一配置)
2923
+ 继承ChartGlobalAreaType的所有属性
2924
+
2925
+ 子元素:
2926
+ - fillGradient: 该系列面积填充渐变(可选)
2927
+ </xs:documentation>
2928
+ </xs:annotation>
2929
+ <xs:complexContent>
2930
+ <xs:extension base="sml:ChartGlobalAreaType">
2931
+ <xs:sequence>
2932
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
2933
+ </xs:sequence>
2934
+ </xs:extension>
2935
+ </xs:complexContent>
2936
+ </xs:complexType>
2937
+
2492
2938
  <!-- 柱子配置 -->
2493
2939
  <xs:complexType name="ChartGlobalBarsType">
2494
2940
  <xs:annotation>
@@ -2529,12 +2975,16 @@
2529
2975
  - borderStyle: 该系列所有柱子的边框样式
2530
2976
 
2531
2977
  子元素:
2978
+ - fillGradient: 该系列所有柱子的填充渐变(可选)
2979
+ - strokeGradient: 该系列所有柱子的边框渐变(可选)
2532
2980
  - chartBar: 单个柱子配置(可选, 多个), 用于覆盖特定柱子的样式
2533
2981
  </xs:documentation>
2534
2982
  </xs:annotation>
2535
2983
  <xs:complexContent>
2536
2984
  <xs:extension base="sml:ChartGlobalBarsType">
2537
2985
  <xs:sequence>
2986
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
2987
+ <xs:element name="strokeGradient" type="sml:ChartGradientType" minOccurs="0"/>
2538
2988
  <xs:element name="chartBar" minOccurs="0" maxOccurs="unbounded">
2539
2989
  <xs:complexType>
2540
2990
  <xs:annotation>
@@ -2547,8 +2997,14 @@
2547
2997
  - borderColor: 该柱子的边框颜色
2548
2998
  - borderWidth: 该柱子的边框宽度(像素)
2549
2999
  - borderStyle: 该柱子的边框样式(solid|dashed|dotted)
3000
+
3001
+ 子元素:
3002
+ - fillGradient: 该柱子的填充渐变(可选)
2550
3003
  </xs:documentation>
2551
3004
  </xs:annotation>
3005
+ <xs:sequence>
3006
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
3007
+ </xs:sequence>
2552
3008
  <xs:attribute name="index" type="xs:positiveInteger" use="required"/>
2553
3009
  <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
2554
3010
  <xs:attribute name="borderColor" type="sml:SolidColor" use="optional"/>
@@ -2573,8 +3029,14 @@
2573
3029
  - offsetRadius: 扇区径向偏移比例[0,1], 用于突出显示
2574
3030
  - borderColor: 扇区边框颜色
2575
3031
  - color: 扇区填充颜色
3032
+
3033
+ 子元素:
3034
+ - fillGradient: 扇区填充渐变(可选)
2576
3035
  </xs:documentation>
2577
3036
  </xs:annotation>
3037
+ <xs:sequence>
3038
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
3039
+ </xs:sequence>
2578
3040
  <xs:attribute name="index" type="xs:positiveInteger" use="required"/>
2579
3041
  <xs:attribute name="offsetRadius" type="sml:RatioType" use="optional"/>
2580
3042
  <xs:attribute name="borderColor" type="sml:SolidColor" use="optional"/>
@@ -2594,10 +3056,12 @@
2594
3056
  - startAngle: 起始角度[0,360), 控制第一个扇区的起始位置, 默认0
2595
3057
 
2596
3058
  子元素:
3059
+ - fillGradient: 所有扇区的统一填充渐变(可选)
2597
3060
  - chartSector: 单个扇区配置(可选, 多个), 用于定制特定扇区
2598
3061
  </xs:documentation>
2599
3062
  </xs:annotation>
2600
3063
  <xs:sequence>
3064
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
2601
3065
  <xs:element name="chartSector" type="sml:ChartSectorType" minOccurs="0" maxOccurs="unbounded"/>
2602
3066
  </xs:sequence>
2603
3067
  <xs:attribute name="borderColor" type="sml:SolidColor" use="optional"/>
@@ -2644,8 +3108,8 @@
2644
3108
  </xs:annotation>
2645
3109
  <xs:sequence>
2646
3110
  <xs:element name="chartPoints" type="sml:ChartSeriesPointsType" minOccurs="0"/>
2647
- <xs:element name="chartLine" type="sml:ChartLineType" minOccurs="0"/>
2648
- <xs:element name="chartArea" type="sml:ChartAreaType" minOccurs="0"/>
3111
+ <xs:element name="chartLine" type="sml:ChartSeriesLineType" minOccurs="0"/>
3112
+ <xs:element name="chartArea" type="sml:ChartSeriesAreaType" minOccurs="0"/>
2649
3113
  <xs:element name="chartBars" type="sml:ChartSeriesBarsType" minOccurs="0"/>
2650
3114
  <xs:element name="chartSectors" type="sml:ChartSectorsType" minOccurs="0"/>
2651
3115
  <xs:element name="chartLabels" type="sml:ChartDataLabelsType" minOccurs="0"/>
@@ -2846,8 +3310,8 @@
2846
3310
  </xs:annotation>
2847
3311
  <xs:all>
2848
3312
  <xs:element name="chartPoints" type="sml:ChartGlobalPointsType" minOccurs="0"/>
2849
- <xs:element name="chartLines" type="sml:ChartLineType" minOccurs="0"/>
2850
- <xs:element name="chartAreas" type="sml:ChartAreaType" minOccurs="0"/>
3313
+ <xs:element name="chartLines" type="sml:ChartGlobalLineType" minOccurs="0"/>
3314
+ <xs:element name="chartAreas" type="sml:ChartGlobalAreaType" minOccurs="0"/>
2851
3315
  <xs:element name="chartBars" type="sml:ChartGlobalBarsType" minOccurs="0"/>
2852
3316
  <xs:element name="chartLabels" type="sml:ChartDataLabelsType" minOccurs="0"/>
2853
3317
  <xs:element name="chartSeriesList" type="sml:ChartSeriesListType" minOccurs="0"/>
@@ -3003,47 +3467,4 @@
3003
3467
  </xs:complexType>
3004
3468
  </xs:element>
3005
3469
 
3006
- <!-- 画板元素 -->
3007
- <xs:element name="whiteboard">
3008
- <xs:annotation>
3009
- <xs:documentation>
3010
- 画板元素, 用于在幻灯片中嵌入 Mermaid 或 SVG 绘制内容。
3011
-
3012
- 属性说明:
3013
- - id: 画板唯一标识符(可选)
3014
- - topLeftX/topLeftY: 左上角坐标, 必须
3015
- - width/height: 宽高尺寸, 必须
3016
- - flipX/flipY: 水平/垂直翻转
3017
- - alpha: 不透明度[0,1]
3018
-
3019
- 子元素(mermaid 与 svg 二选一):
3020
- - mermaid: Mermaid 源码文本, 可使用 CDATA 包裹
3021
- 适用场景: 流程图、时序图、思维导图、类图、甘特图、饼图等结构化图表
3022
- 特点: 用简短的文本声明描述图表逻辑, 由渲染引擎自动布局, 无需手动计算坐标
3023
- 示例: &lt;mermaid&gt;&lt;![CDATA[flowchart TD\n A[开始] --&gt; B[结束]]]&gt;&lt;/mermaid&gt;
3024
- - svg: SVG 内容
3025
- 适用场景: 需要精确控制坐标、配色、路径的自定义图形
3026
- 特点: 像素级精确定位,支持 rect/circle/path/text/polygon/g/linearGradient 等元素;radialGradient/filter/clipPath/mask/pattern 不支持,需手动计算所有坐标
3027
- 示例: &lt;svg xmlns="http://www.w3.org/2000/svg"&gt;...&lt;/svg&gt;(xmlns 必填;width/height/viewBox 不影响渲染,仅百分比属性值场景需声明 viewBox)
3028
- - border: 边框样式, 可选, 无border标签代表无边框, 空border标签代表使用默认样式
3029
- </xs:documentation>
3030
- </xs:annotation>
3031
- <xs:complexType>
3032
- <xs:sequence>
3033
- <xs:choice>
3034
- <xs:element name="mermaid" type="xs:string" />
3035
- <xs:any namespace="http://www.w3.org/2000/svg" processContents="skip"/>
3036
- </xs:choice>
3037
- <xs:element name="border" type="sml:BorderType" minOccurs="0"/>
3038
- </xs:sequence>
3039
- <xs:attribute name="id" type="xs:string" use="optional"/>
3040
- <xs:attribute name="topLeftX" type="sml:XType" use="required"/>
3041
- <xs:attribute name="topLeftY" type="sml:YType" use="required"/>
3042
- <xs:attribute name="width" type="sml:PositiveSize" use="required"/>
3043
- <xs:attribute name="height" type="sml:PositiveSize" use="required"/>
3044
- <xs:attribute name="flipX" type="xs:boolean" use="optional" default="false"/>
3045
- <xs:attribute name="flipY" type="xs:boolean" use="optional" default="false"/>
3046
- <xs:attribute name="alpha" type="sml:AlphaType" use="optional" default="1"/>
3047
- </xs:complexType>
3048
- </xs:element>
3049
3470
  </xs:schema>