@amaster.ai/pi-lark 0.1.6 → 0.1.8

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 (266) 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 +3 -3
  10. package/skills/lark-apps/SKILL.md +59 -14
  11. package/skills/lark-apps/creative-design/agents/assets/vision-probe.png +0 -0
  12. package/skills/lark-apps/creative-design/agents/fork-verifier-agent.md +71 -0
  13. package/skills/lark-apps/creative-design/agents/vision-probe-agent.md +41 -0
  14. package/skills/lark-apps/creative-design/assets/index.html +27 -0
  15. package/skills/lark-apps/creative-design/creative-design.md +239 -0
  16. package/skills/lark-apps/creative-design/references/aily.md +39 -0
  17. package/skills/lark-apps/creative-design/references/animated-video.md +34 -0
  18. package/skills/lark-apps/creative-design/references/charts.md +165 -0
  19. package/skills/lark-apps/creative-design/references/claude.md +36 -0
  20. package/skills/lark-apps/creative-design/references/codex.md +32 -0
  21. package/skills/lark-apps/creative-design/references/data-report.md +108 -0
  22. package/skills/lark-apps/creative-design/references/frontend-design.md +71 -0
  23. package/skills/lark-apps/creative-design/references/hi-fi-design.md +32 -0
  24. package/skills/lark-apps/creative-design/references/interactive-prototype.md +24 -0
  25. package/skills/lark-apps/creative-design/references/make-a-deck.md +133 -0
  26. package/skills/lark-apps/creative-design/references/visual-exposure.md +82 -0
  27. package/skills/lark-apps/creative-design/references/wireframe.md +14 -0
  28. package/skills/lark-apps/creative-design/starter-components/android-frame.jsx +188 -0
  29. package/skills/lark-apps/creative-design/starter-components/animations.jsx +773 -0
  30. package/skills/lark-apps/creative-design/starter-components/browser-window.jsx +122 -0
  31. package/skills/lark-apps/creative-design/starter-components/deck-stage.js +2483 -0
  32. package/skills/lark-apps/creative-design/starter-components/design-canvas.jsx +1432 -0
  33. package/skills/lark-apps/creative-design/starter-components/ios-frame.jsx +270 -0
  34. package/skills/lark-apps/creative-design/starter-components/macos-window.jsx +197 -0
  35. package/skills/lark-apps/creative-design/starter-components/tweaks-panel.jsx +752 -0
  36. package/skills/lark-apps/references/lark-apps-automation.md +80 -2
  37. package/skills/lark-apps/references/lark-apps-cache.md +61 -0
  38. package/skills/lark-apps/references/lark-apps-cloud-dev.md +5 -5
  39. package/skills/lark-apps/references/lark-apps-create.md +6 -4
  40. package/skills/lark-apps/references/lark-apps-db.md +1 -1
  41. package/skills/lark-apps/references/lark-apps-env-pull.md +1 -1
  42. package/skills/lark-apps/references/lark-apps-file.md +2 -2
  43. package/skills/lark-apps/references/lark-apps-get.md +1 -1
  44. package/skills/lark-apps/references/lark-apps-git-credential.md +1 -1
  45. package/skills/lark-apps/references/lark-apps-html-publish.md +4 -8
  46. package/skills/lark-apps/references/lark-apps-init.md +1 -1
  47. package/skills/lark-apps/references/lark-apps-list.md +2 -2
  48. package/skills/lark-apps/references/lark-apps-local-dev.md +80 -11
  49. package/skills/lark-apps/references/lark-apps-openapi-key.md +1 -1
  50. package/skills/lark-apps/references/lark-apps-release-create.md +2 -2
  51. package/skills/lark-apps/references/lark-apps-release-get.md +3 -3
  52. package/skills/lark-base/SKILL.md +34 -19
  53. package/skills/lark-base/references/lark-base-cell-value.md +3 -3
  54. package/skills/lark-base/references/lark-base-dashboard-block-get-data.md +17 -1
  55. package/skills/lark-base/references/lark-base-dashboard.md +17 -4
  56. package/skills/lark-base/references/lark-base-data-query-guide.md +8 -0
  57. package/skills/lark-base/references/lark-base-data-query.md +11 -4
  58. package/skills/lark-base/references/lark-base-field-create.md +21 -6
  59. package/skills/lark-base/references/lark-base-field-json.md +9 -6
  60. package/skills/lark-base/references/lark-base-field-update.md +17 -1
  61. package/skills/lark-base/references/lark-base-filter-condition.md +179 -0
  62. package/skills/lark-base/references/lark-base-form-questions-create.md +40 -7
  63. package/skills/lark-base/references/lark-base-form-questions-update.md +73 -20
  64. package/skills/lark-base/references/lark-base-form-submit.md +16 -7
  65. package/skills/lark-base/references/lark-base-record-batch-create.md +12 -10
  66. package/skills/lark-base/references/lark-base-record-batch-update.md +11 -9
  67. package/skills/lark-base/references/lark-base-record-upsert.md +1 -1
  68. package/skills/lark-base/references/lark-base-role-guide.md +11 -0
  69. package/skills/lark-base/references/lark-base-view-set-filter.md +11 -137
  70. package/skills/lark-base/references/role-config.md +31 -5
  71. package/skills/lark-calendar/SKILL.md +14 -8
  72. package/skills/lark-calendar/references/lark-calendar-create.md +6 -5
  73. package/skills/lark-calendar/references/lark-calendar-recurring.md +1 -0
  74. package/skills/lark-calendar/references/lark-calendar-room-find.md +2 -1
  75. package/skills/lark-calendar/references/lark-calendar-schedule-clear-time.md +1 -0
  76. package/skills/lark-calendar/references/lark-calendar-suggestion.md +1 -1
  77. package/skills/lark-calendar/references/lark-calendar-update.md +10 -4
  78. package/skills/lark-contact/SKILL.md +19 -3
  79. package/skills/lark-contact/references/lark-contact-search-bot.md +60 -0
  80. package/skills/lark-doc/SKILL.md +26 -61
  81. package/skills/lark-doc/references/genres/business-analysis.md +30 -0
  82. package/skills/lark-doc/references/genres/data-report.md +32 -0
  83. package/skills/lark-doc/references/genres/email.md +38 -0
  84. package/skills/lark-doc/references/genres/execution-plan.md +27 -0
  85. package/skills/lark-doc/references/genres/formal-doc.md +37 -0
  86. package/skills/lark-doc/references/genres/meeting-minutes.md +24 -0
  87. package/skills/lark-doc/references/genres/memo-brief.md +25 -0
  88. package/skills/lark-doc/references/genres/official-redhead.md +73 -0
  89. package/skills/lark-doc/references/genres/prd.md +26 -0
  90. package/skills/lark-doc/references/genres/proposal.md +24 -0
  91. package/skills/lark-doc/references/genres/research-report.md +32 -0
  92. package/skills/lark-doc/references/genres/retrospective.md +25 -0
  93. package/skills/lark-doc/references/genres/route-consumer.md +37 -0
  94. package/skills/lark-doc/references/genres/route-creative.md +36 -0
  95. package/skills/lark-doc/references/genres/route-knowledge.md +39 -0
  96. package/skills/lark-doc/references/genres/route-marketing.md +40 -0
  97. package/skills/lark-doc/references/genres/route-media.md +36 -0
  98. package/skills/lark-doc/references/genres/route-opinion.md +38 -0
  99. package/skills/lark-doc/references/genres/route-personal-brand.md +36 -0
  100. package/skills/lark-doc/references/genres/route-platform.md +9 -0
  101. package/skills/lark-doc/references/genres/route-report.md +10 -0
  102. package/skills/lark-doc/references/genres/route-workplace.md +17 -0
  103. package/skills/lark-doc/references/genres/sop-tutorial.md +41 -0
  104. package/skills/lark-doc/references/genres/technical-doc.md +39 -0
  105. package/skills/lark-doc/references/genres/wechat.md +39 -0
  106. package/skills/lark-doc/references/genres/weekly-report.md +24 -0
  107. package/skills/lark-doc/references/genres/white-paper.md +32 -0
  108. package/skills/lark-doc/references/genres/xiaohongshu.md +38 -0
  109. package/skills/lark-doc/references/lark-doc-create-workflow.md +121 -0
  110. package/skills/lark-doc/references/lark-doc-create.md +22 -48
  111. package/skills/lark-doc/references/lark-doc-fetch.md +84 -93
  112. package/skills/lark-doc/references/lark-doc-history.md +16 -15
  113. package/skills/lark-doc/references/lark-doc-md.md +5 -1
  114. package/skills/lark-doc/references/lark-doc-media-download.md +2 -1
  115. package/skills/lark-doc/references/lark-doc-script.md +76 -0
  116. package/skills/lark-doc/references/lark-doc-update.md +70 -222
  117. package/skills/lark-doc/references/lark-doc-whiteboard.md +14 -17
  118. package/skills/lark-doc/references/lark-doc-xml-extended-blocks.md +46 -0
  119. package/skills/lark-doc/references/lark-doc-xml.md +38 -166
  120. package/skills/lark-drive/SKILL.md +32 -50
  121. package/skills/lark-drive/references/lark-drive-add-comment.md +2 -4
  122. package/skills/lark-drive/references/lark-drive-add-reply.md +47 -0
  123. package/skills/lark-drive/references/lark-drive-apply-permission.md +3 -3
  124. package/skills/lark-drive/references/lark-drive-batch-query-comments.md +46 -0
  125. package/skills/lark-drive/references/lark-drive-comment-content.md +50 -0
  126. package/skills/lark-drive/references/lark-drive-comment-location.md +9 -15
  127. package/skills/lark-drive/references/lark-drive-copy.md +87 -0
  128. package/skills/lark-drive/references/lark-drive-delete-reply.md +48 -0
  129. package/skills/lark-drive/references/lark-drive-download.md +6 -1
  130. package/skills/lark-drive/references/lark-drive-export.md +3 -0
  131. package/skills/lark-drive/references/lark-drive-list-comments.md +25 -68
  132. package/skills/lark-drive/references/lark-drive-list-replies.md +54 -0
  133. package/skills/lark-drive/references/lark-drive-member-add.md +2 -2
  134. package/skills/lark-drive/references/lark-drive-member-list.md +65 -0
  135. package/skills/lark-drive/references/lark-drive-permission-get-setting.md +48 -0
  136. package/skills/lark-drive/references/lark-drive-preview.md +11 -1
  137. package/skills/lark-drive/references/lark-drive-react-reply.md +51 -0
  138. package/skills/lark-drive/references/lark-drive-reactions.md +27 -25
  139. package/skills/lark-drive/references/lark-drive-resolve-comment.md +45 -0
  140. package/skills/lark-drive/references/lark-drive-restore-comment.md +46 -0
  141. package/skills/lark-drive/references/lark-drive-search.md +7 -1
  142. package/skills/lark-drive/references/lark-drive-secure-label.md +1 -1
  143. package/skills/lark-drive/references/lark-drive-task-result.md +3 -0
  144. package/skills/lark-drive/references/lark-drive-update-reply.md +46 -0
  145. package/skills/lark-drive/references/lark-drive-update-title.md +78 -0
  146. package/skills/lark-drive/references/lark-drive-upload.md +1 -0
  147. package/skills/lark-drive/references/lark-drive-workflow-permission-governance-commands.md +38 -8
  148. package/skills/lark-drive/references/lark-drive-workflow-permission-governance-outputs.md +10 -10
  149. package/skills/lark-drive/references/lark-drive-workflow-permission-governance.md +22 -20
  150. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector-execute.md +273 -0
  151. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector-recall.md +202 -0
  152. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector-resolve-verify.md +231 -0
  153. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector-review-plan.md +248 -0
  154. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector-setup.md +174 -0
  155. package/skills/lark-drive/references/lark-drive-workflow-topic-move-collector.md +202 -0
  156. package/skills/lark-drive/references/lark-drive-workflow.md +5 -4
  157. package/skills/lark-event/SKILL.md +8 -4
  158. package/skills/lark-event/references/lark-event-application.md +38 -0
  159. package/skills/lark-event/references/lark-event-vc.md +8 -2
  160. package/skills/lark-im/SKILL.md +9 -9
  161. package/skills/lark-im/references/card/card-2.0-schema.md +1 -1
  162. package/skills/lark-im/references/card/lark-im-card-style.md +4 -4
  163. package/skills/lark-im/references/card/resource/icons.md +14 -0
  164. package/skills/lark-im/references/lark-im-chat-list.md +9 -2
  165. package/skills/lark-im/references/lark-im-chat-members-list.md +7 -4
  166. package/skills/lark-im/references/lark-im-chat-messages-list.md +10 -3
  167. package/skills/lark-im/references/lark-im-chat-search.md +9 -2
  168. package/skills/lark-im/references/lark-im-feed-group-list-item.md +2 -2
  169. package/skills/lark-im/references/lark-im-feed-group-list.md +2 -2
  170. package/skills/lark-im/references/lark-im-feed-shortcut-list.md +1 -1
  171. package/skills/lark-im/references/lark-im-flag-list.md +9 -8
  172. package/skills/lark-im/references/lark-im-message-enrichment.md +1 -1
  173. package/skills/lark-im/references/lark-im-messages-resources-download.md +19 -25
  174. package/skills/lark-im/references/lark-im-messages-search.md +4 -5
  175. package/skills/lark-im/references/lark-im-threads-messages-list.md +8 -4
  176. package/skills/lark-mail/references/lark-mail-triage.md +19 -4
  177. package/skills/lark-minutes/SKILL.md +1 -1
  178. package/skills/lark-minutes/references/lark-minutes-search.md +6 -7
  179. package/skills/lark-okr/SKILL.md +71 -26
  180. package/skills/lark-okr/references/lark-okr-batch-create.md +19 -18
  181. package/skills/lark-okr/references/lark-okr-create.md +173 -0
  182. package/skills/lark-okr/references/lark-okr-cycle-list.md +17 -7
  183. package/skills/lark-okr/references/lark-okr-entities.md +1 -0
  184. package/skills/lark-okr/references/lark-okr-indicator-update.md +3 -1
  185. package/skills/lark-okr/references/lark-okr-indicators.md +61 -12
  186. package/skills/lark-okr/references/lark-okr-progress-list.md +21 -9
  187. package/skills/lark-shared/SKILL.md +3 -3
  188. package/skills/lark-sheets/SKILL.md +83 -82
  189. package/skills/lark-sheets/references/lark-sheets-batch-update.md +13 -58
  190. package/skills/lark-sheets/references/lark-sheets-chart.md +2 -1
  191. package/skills/lark-sheets/references/lark-sheets-conditional-format.md +1 -1
  192. package/skills/lark-sheets/references/lark-sheets-range-operations.md +5 -5
  193. package/skills/lark-sheets/references/lark-sheets-read-data.md +80 -6
  194. package/skills/lark-sheets/references/lark-sheets-sheet-structure.md +21 -10
  195. package/skills/lark-sheets/references/lark-sheets-styles-put.md +93 -0
  196. package/skills/lark-sheets/references/lark-sheets-visual-standards.md +2 -2
  197. package/skills/lark-sheets/references/lark-sheets-workbook.md +4 -3
  198. package/skills/lark-sheets/references/lark-sheets-write-cells.md +40 -12
  199. package/skills/lark-sheets/scripts/lark_detect_subtables.py +593 -0
  200. package/skills/lark-sheets/scripts/lark_inspect_workbook.py +188 -0
  201. package/skills/lark-sheets/scripts/lark_profile_table.py +614 -0
  202. package/skills/lark-sheets/scripts/lark_sheet_range.py +176 -0
  203. package/skills/lark-sheets/scripts/lark_sheet_read_cli.py +184 -0
  204. package/skills/lark-sheets/scripts/sheets_df.py +21 -3
  205. package/skills/lark-slides/SKILL.md +134 -104
  206. package/skills/lark-slides/references/asset-planning.md +6 -4
  207. package/skills/lark-slides/references/iconpark.md +2 -2
  208. package/skills/lark-slides/references/lark-slides-add-slide.md +92 -0
  209. package/skills/lark-slides/references/lark-slides-create.md +86 -66
  210. package/skills/lark-slides/references/lark-slides-delete-slide.md +65 -0
  211. package/skills/lark-slides/references/lark-slides-edit-workflows.md +6 -7
  212. package/skills/lark-slides/references/lark-slides-history.md +132 -0
  213. package/skills/lark-slides/references/lark-slides-media-upload.md +4 -27
  214. package/skills/lark-slides/references/lark-slides-pptx-template-workflows.md +7 -11
  215. package/skills/lark-slides/references/lark-slides-replace-slide.md +22 -4
  216. package/skills/lark-slides/references/lark-slides-screenshot.md +33 -15
  217. package/skills/lark-slides/references/lark-slides-update-slide.md +146 -0
  218. package/skills/lark-slides/references/lark-slides-xml-presentation-slide-get.md +2 -2
  219. package/skills/lark-slides/references/lark-slides-xml-presentation-slide-replace.md +2 -3
  220. package/skills/lark-slides/references/lark-slides-xml-presentations-get.md +90 -32
  221. package/skills/lark-slides/references/planning-layer.md +11 -10
  222. package/skills/lark-slides/references/slides_chart_demo.xml +1415 -1
  223. package/skills/lark-slides/references/slides_xml_schema_definition.xml +539 -79
  224. package/skills/lark-slides/references/troubleshooting.md +26 -9
  225. package/skills/lark-slides/references/validation-checklist.md +55 -18
  226. package/skills/lark-slides/references/visual-planning.md +25 -22
  227. package/skills/lark-slides/references/xml-schema-quick-ref.md +299 -51
  228. package/skills/lark-slides/scripts/sxsd_validator.py +1052 -0
  229. package/skills/lark-slides/scripts/xml_text_overlap_lint.py +1964 -195
  230. package/skills/lark-slides/scripts/xml_text_overlap_lint_test.py +4051 -501
  231. package/skills/lark-task/SKILL.md +7 -0
  232. package/skills/lark-task/references/lark-task-complete.md +6 -2
  233. package/skills/lark-task/references/lark-task-create.md +9 -0
  234. package/skills/lark-task/references/lark-task-update.md +6 -2
  235. package/skills/lark-whiteboard/SKILL.md +21 -13
  236. package/skills/lark-whiteboard/elements/layout.md +1 -1
  237. package/skills/lark-whiteboard/elements/schema.md +2 -2
  238. package/skills/lark-whiteboard/references/{lark-whiteboard-query.md → lark-whiteboard-export.md} +17 -16
  239. package/skills/lark-whiteboard/references/lark-whiteboard-update.md +7 -7
  240. package/skills/lark-whiteboard/references/lark-whiteboard-workflow.md +23 -31
  241. package/skills/lark-whiteboard/routes/dsl.md +11 -5
  242. package/skills/lark-whiteboard/routes/mermaid.md +3 -3
  243. package/skills/lark-whiteboard/routes/svg-edit.md +9 -6
  244. package/skills/lark-whiteboard/routes/svg.md +14 -7
  245. package/skills/lark-whiteboard/scenes/bar-chart.md +1 -1
  246. package/skills/lark-whiteboard/scenes/fishbone.md +1 -1
  247. package/skills/lark-whiteboard/scenes/flywheel.md +1 -1
  248. package/skills/lark-whiteboard/scenes/line-chart.md +1 -1
  249. package/skills/lark-whiteboard/scenes/mention.md +71 -0
  250. package/skills/lark-whiteboard/scenes/treemap.md +1 -1
  251. package/skills/lark-wiki/SKILL.md +6 -3
  252. package/skills/lark-wiki/references/lark-wiki-delete-space.md +6 -3
  253. package/skills/lark-doc/references/lark-doc-word-stat.md +0 -93
  254. package/skills/lark-doc/references/style/lark-doc-create-workflow.md +0 -47
  255. package/skills/lark-doc/references/style/lark-doc-style.md +0 -68
  256. package/skills/lark-doc/references/style/lark-doc-update-workflow.md +0 -48
  257. package/skills/lark-doc/scripts/doc_word_stat.py +0 -1243
  258. package/skills/lark-drive/references/lark-drive-comments-guide.md +0 -80
  259. package/skills/lark-slides/references/examples.md +0 -91
  260. package/skills/lark-slides/references/lark-slides-replace-pages.md +0 -95
  261. package/skills/lark-slides/references/lark-slides-whiteboard.md +0 -331
  262. package/skills/lark-slides/references/lark-slides-xml-get.md +0 -100
  263. package/skills/lark-slides/references/lark-slides-xml-presentation-slide-delete.md +0 -125
  264. package/skills/lark-slides/references/slide-templates.md +0 -201
  265. package/skills/lark-slides/references/slides_demo.xml +0 -226
  266. package/skills/lark-slides/references/xml-format-guide.md +0 -433
@@ -1,8 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <xs:schema
3
3
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
- xmlns:sml="http://www.larkoffice.com/sml/2.0"
5
- targetNamespace="http://www.larkoffice.com/sml/2.0"
4
+ xmlns:sml="https://www.larkoffice.com/sml/2.0"
5
+ targetNamespace="https://www.larkoffice.com/sml/2.0"
6
6
  elementFormDefault="qualified"
7
7
  attributeFormDefault="unqualified">
8
8
  <xs:annotation>
@@ -11,7 +11,7 @@
11
11
 
12
12
  版本信息:
13
13
  - Schema 版本: 2.0.0
14
- - 命名空间: http://www.larkoffice.com/sml/2.0
14
+ - 命名空间: https://www.larkoffice.com/sml/2.0
15
15
  - 发布日期: 2025-11-03
16
16
  </xs:documentation>
17
17
  </xs:annotation>
@@ -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
892
+
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 被忽略
794
906
 
795
- 说明: 指定offset时,若预裁剪尺寸与原图比例不一致会产生拉伸变形。无法确定原图比例时,不要指定offset
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/embed/chart/undefined)
939
1056
  - note: 演讲者备注
940
1057
  </xs:documentation>
941
1058
  </xs:annotation>
@@ -959,8 +1076,8 @@
959
1076
  <xs:element ref="sml:img"/>
960
1077
  <xs:element ref="sml:table"/>
961
1078
  <xs:element ref="sml:icon"/>
1079
+ <xs:element ref="sml:embed"/>
962
1080
  <xs:element ref="sml:chart"/>
963
- <xs:element ref="sml:whiteboard"/>
964
1081
  <xs:element ref="sml:undefined"/>
965
1082
  </xs:choice>
966
1083
  </xs:complexType>
@@ -1043,6 +1160,10 @@
1043
1160
  - underline: content 级别是否下划线
1044
1161
  - list: content 级别列表类型 bullet/number
1045
1162
  - listStyle: content 级别列表样式
1163
+ - bulletColor: 列表符号颜色(纯色), 可选
1164
+ - bulletSize: 列表符号大小, 可选, 百分比字符串(相对于文本字号, 取值范围 25%-400%)如 "100%", 或绝对像素值(取值范围 6-400)如 "14"
1165
+ - autoStartAt: 有序列表起始编号, 可选, 取值范围 [1, 32767]; 作为后代段落的初始计数器, 子元素 &lt;p&gt;/&lt;ol&gt; 可通过自身 autoStartAt 重置
1166
+ - bulletChar: 自定义列表符号字符, 可选, 如 "★", "→" 等, 设置后覆盖 listStyle 的符号
1046
1167
  - anchorCenter: 控制文本对齐方式, 优先级高于 textAlign
1047
1168
  - autoFit: 控制文本编辑溢出时处理策略
1048
1169
  - baseline: 上标/下标, 相较于文本基线的偏移量
@@ -1050,6 +1171,13 @@
1050
1171
 
1051
1172
  注意:如果content子元素不指定属性, 默认继承content的属性值, 如果局部子元素指定了属性, 则使用局部属性值
1052
1173
 
1174
+ autoStartAt 运行计数器示例(显式指定重置, 未指定沿用前序计数器):
1175
+ &lt;content autoStartAt="5"&gt;
1176
+ &lt;p list="number"&gt;A&lt;/p&gt; &lt;!-- A=5, 继承 content 初始值 --&gt;
1177
+ &lt;p list="number" autoStartAt="10"&gt;B&lt;/p&gt; &lt;!-- B=10, 本段显式重置 --&gt;
1178
+ &lt;p list="number"&gt;C&lt;/p&gt; &lt;!-- C=11, 沿用前序计数器递增 --&gt;
1179
+ &lt;/content&gt;
1180
+
1053
1181
  子元素:
1054
1182
  - p: 段落元素
1055
1183
  - ul: 无序列表元素
@@ -1086,6 +1214,10 @@
1086
1214
  <xs:attribute name="underline" type="xs:boolean" />
1087
1215
  <xs:attribute name="list" type="sml:ListType" default="none"/>
1088
1216
  <xs:attribute name="listStyle" type="sml:ListStyleType" />
1217
+ <xs:attribute name="bulletColor" type="sml:SolidColor" use="optional"/>
1218
+ <xs:attribute name="bulletSize" type="sml:BulletSizeType" use="optional"/>
1219
+ <xs:attribute name="autoStartAt" type="sml:AutoStartAtType" use="optional"/>
1220
+ <xs:attribute name="bulletChar" type="sml:BulletCharType" use="optional"/>
1089
1221
  <xs:attribute name="anchorCenter" type="xs:boolean" default="false" /> <!-- 控制竖排文字是否在垂直方向保持居中 -->
1090
1222
  <xs:attribute name="autoFit" type="sml:AutoFitType" default="no-auto-fit" />
1091
1223
  <xs:attribute name="wrap" type="xs:boolean" default="true" />
@@ -1097,9 +1229,9 @@
1097
1229
  <xs:annotation>
1098
1230
  <xs:documentation>
1099
1231
  段落容器, 支持富文本内容
1100
- 可包含纯文本和内联格式元素(br/strong/em/u/span/del/a/shadow/outline)
1232
+ 可包含纯文本和内联格式元素(br/strong/em/u/span/del/a/shadow/outline/formula/field)
1101
1233
  内联元素嵌套:所有内联元素均可包含纯文本或其他内联元素,以实现复杂的格式组合
1102
- 元素自嵌套:除a元素外,其余内联元素支持自身嵌套,当shadow和outline自嵌套时,渲染效果遵循就近原则,以内层定义的样式为准
1234
+ 元素自嵌套:除a/formula元素外,其余内联元素支持自身嵌套,当shadow和outline自嵌套时,渲染效果遵循就近原则,以内层定义的样式为准
1103
1235
 
1104
1236
  空格处理规则:
1105
1237
  - 文本内的连续空格会被合并为单个空格
@@ -1120,6 +1252,8 @@
1120
1252
  - a: 超链接
1121
1253
  - shadow: 文本阴影
1122
1254
  - outline: 文本轮廓
1255
+ - formula: 科学公式(支持数学、物理等)
1256
+ - field: 动态文本字段,元素内容作为不支持动态字段时的降级文本
1123
1257
  属性说明:
1124
1258
  - textAlign: 文本对齐方式
1125
1259
  - lineSpacing: 行间距
@@ -1128,6 +1262,10 @@
1128
1262
  - level: 段落级别, 取值范围 [1,10]
1129
1263
  - list: 列表类型(bullet/number)
1130
1264
  - listStyle: 列表样式
1265
+ - bulletColor: 列表符号颜色(纯色), 可选
1266
+ - bulletSize: 列表符号大小, 可选, 百分比字符串(相对于文本字号, 取值范围 25%-400%)或绝对像素值(取值范围 6-400)
1267
+ - autoStartAt: 有序列表起始编号, 可选, 取值范围 [1, 32767]; 显式指定时从当前段落起重置计数器, 未指定时沿用同一 content 内的前序计数器
1268
+ - bulletChar: 自定义列表符号字符, 可选
1131
1269
  - marginLeft: 段落左侧缩进宽度
1132
1270
  - indent: 首行缩进宽度
1133
1271
  </xs:documentation>
@@ -1135,6 +1273,7 @@
1135
1273
  <xs:complexType mixed="true">
1136
1274
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1137
1275
  <xs:element ref="sml:br"/>
1276
+ <xs:element ref="sml:formula"/>
1138
1277
  <xs:element ref="sml:strong"/>
1139
1278
  <xs:element ref="sml:em"/>
1140
1279
  <xs:element ref="sml:u"/>
@@ -1143,6 +1282,7 @@
1143
1282
  <xs:element ref="sml:a"/>
1144
1283
  <xs:element ref="sml:shadow"/>
1145
1284
  <xs:element ref="sml:outline"/>
1285
+ <xs:element ref="sml:field"/>
1146
1286
  </xs:choice>
1147
1287
  <xs:attribute name="textAlign" type="sml:TextAlignType" />
1148
1288
  <xs:attribute name="lineSpacing" type="sml:LineSpacingType" default="multiple:1.5"/>
@@ -1152,6 +1292,10 @@
1152
1292
  <xs:attribute name="level" type="sml:LevelType" default="1"/>
1153
1293
  <xs:attribute name="list" type="sml:ListType" default="none"/>
1154
1294
  <xs:attribute name="listStyle" type="sml:ListStyleType"/>
1295
+ <xs:attribute name="bulletColor" type="sml:SolidColor" use="optional"/>
1296
+ <xs:attribute name="bulletSize" type="sml:BulletSizeType" use="optional"/>
1297
+ <xs:attribute name="autoStartAt" type="sml:AutoStartAtType" use="optional"/>
1298
+ <xs:attribute name="bulletChar" type="sml:BulletCharType" use="optional"/>
1155
1299
  <xs:attribute name="marginLeft" type="xs:double" use="optional" />
1156
1300
  <xs:attribute name="indent" type="sml:NonNegativeDouble" use="optional"/>
1157
1301
  </xs:complexType>
@@ -1161,7 +1305,14 @@
1161
1305
  <!-- 无序列表 -->
1162
1306
  <xs:element name="ul">
1163
1307
  <xs:annotation>
1164
- <xs:documentation>无序列表</xs:documentation>
1308
+ <xs:documentation>
1309
+ 无序列表
1310
+ 属性说明:
1311
+ - listStyle: 列表样式
1312
+ - bulletColor: 列表符号颜色(纯色), 可选
1313
+ - bulletSize: 列表符号大小, 可选, 百分比字符串(相对于文本字号, 取值范围 25%-400%)或绝对像素值(取值范围 6-400)
1314
+ - bulletChar: 自定义列表符号字符, 可选, 设置后覆盖 listStyle 的符号
1315
+ </xs:documentation>
1165
1316
  </xs:annotation>
1166
1317
  <xs:complexType>
1167
1318
  <xs:sequence>
@@ -1174,13 +1325,23 @@
1174
1325
  </xs:element>
1175
1326
  </xs:sequence>
1176
1327
  <xs:attribute name="listStyle" type="sml:UnorderedListStyle" default="circle-hollow-square"/>
1328
+ <xs:attribute name="bulletColor" type="sml:SolidColor" use="optional"/>
1329
+ <xs:attribute name="bulletSize" type="sml:BulletSizeType" use="optional"/>
1330
+ <xs:attribute name="bulletChar" type="sml:BulletCharType" use="optional"/>
1177
1331
  </xs:complexType>
1178
1332
  </xs:element>
1179
1333
 
1180
1334
  <!-- 有序列表 -->
1181
1335
  <xs:element name="ol">
1182
1336
  <xs:annotation>
1183
- <xs:documentation>有序列表, 可指定序号</xs:documentation>
1337
+ <xs:documentation>
1338
+ 有序列表, 可指定序号
1339
+ 属性说明:
1340
+ - listStyle: 列表样式
1341
+ - bulletColor: 列表符号颜色(纯色), 可选
1342
+ - bulletSize: 列表符号大小, 可选, 百分比字符串(相对于文本字号, 取值范围 25%-400%)或绝对像素值(取值范围 6-400)
1343
+ - autoStartAt: 有序列表起始编号, 可选, 取值范围 [1, 32767]; 作用于本列表组的计数器初始值, 子元素 &lt;li@index&gt; 可覆盖单项编号
1344
+ </xs:documentation>
1184
1345
  </xs:annotation>
1185
1346
  <xs:complexType>
1186
1347
  <xs:sequence>
@@ -1194,6 +1355,9 @@
1194
1355
  </xs:element>
1195
1356
  </xs:sequence>
1196
1357
  <xs:attribute name="listStyle" type="sml:OrderedListStyle" default="number-lower-alpha-lower-roman"/>
1358
+ <xs:attribute name="bulletColor" type="sml:SolidColor" use="optional"/>
1359
+ <xs:attribute name="bulletSize" type="sml:BulletSizeType" use="optional"/>
1360
+ <xs:attribute name="autoStartAt" type="sml:AutoStartAtType" use="optional"/>
1197
1361
  </xs:complexType>
1198
1362
  </xs:element>
1199
1363
 
@@ -1384,7 +1548,7 @@
1384
1548
  alpha: 不透明度[0, 1]
1385
1549
 
1386
1550
  可选子元素:
1387
- crop: 裁剪。无标签或所有offset未设置时从左上角自适应裁到width×height
1551
+ crop: 裁剪。无标签 / 空标签 / 仅设 anchor 时按等比缩放后裁剪到 width×height; anchor 指定保留方位 (top/bottom/left/right), 不设 anchor 即居中裁剪; offset 用于精细控制
1388
1552
  reflection: 倒影。无标签代表无倒影,空标签代表使用默认样式
1389
1553
  shadow: 阴影。无标签代表无阴影,空标签代表使用默认样式
1390
1554
  border: 边框。无标签代表无边框,空标签代表使用默认样式(颜色: rgba(43, 47, 54, 1), 宽度: 2)
@@ -1459,6 +1623,49 @@
1459
1623
  </xs:complexType>
1460
1624
  </xs:element>
1461
1625
 
1626
+ <!-- 嵌入内容元素 -->
1627
+ <xs:element name="embed">
1628
+ <xs:annotation>
1629
+ <xs:documentation>
1630
+ 嵌入内容容器, 外层承载 Slides 摆放和效果属性, 内层承载外部标准内容。
1631
+ 当前内层内容为标准 SVG, 必须使用 http://www.w3.org/2000/svg 命名空间。
1632
+ 后续可扩展承载 HTML 等其他外部内容。
1633
+
1634
+ 必需属性:
1635
+ - topLeftX/topLeftY: 左上角坐标
1636
+ - width/height: 显示尺寸
1637
+
1638
+ 可选属性:
1639
+ - id: 唯一标识符
1640
+ - rotation: 旋转角度[0, 360)
1641
+ - flipX/flipY: 水平/垂直翻转
1642
+ - alpha: 不透明度[0,1]
1643
+
1644
+ 子元素:
1645
+ - svg: 标准 SVG 根元素, 仅描述嵌入内容, 不承载 Slides 布局属性
1646
+ - reflection: 倒影样式, 无reflection标签代表无倒影, 空reflection标签代表使用默认样式
1647
+ - shadow: 阴影样式, 无shadow标签代表无阴影, 空shadow标签代表使用默认样式
1648
+ </xs:documentation>
1649
+ </xs:annotation>
1650
+ <xs:complexType>
1651
+ <xs:sequence>
1652
+ <xs:any namespace="http://www.w3.org/2000/svg" processContents="lax" minOccurs="1" maxOccurs="1"/>
1653
+ <xs:element name="reflection" type="sml:ReflectionType" minOccurs="0"/>
1654
+ <xs:element name="shadow" type="sml:ShadowType" minOccurs="0"/>
1655
+ </xs:sequence>
1656
+
1657
+ <xs:attribute name="id" type="xs:string" use="optional"/>
1658
+ <xs:attribute name="topLeftX" type="sml:XType" use="required"/>
1659
+ <xs:attribute name="topLeftY" type="sml:YType" use="required"/>
1660
+ <xs:attribute name="width" type="sml:PositiveSize" use="required"/>
1661
+ <xs:attribute name="height" type="sml:PositiveSize" use="required"/>
1662
+ <xs:attribute name="rotation" type="sml:RotationType" use="optional" default="0"/>
1663
+ <xs:attribute name="flipX" type="xs:boolean" use="optional" default="false"/>
1664
+ <xs:attribute name="flipY" type="xs:boolean" use="optional" default="false"/>
1665
+ <xs:attribute name="alpha" type="sml:AlphaType" use="optional" default="1"/>
1666
+ </xs:complexType>
1667
+ </xs:element>
1668
+
1462
1669
  <!-- 表格元素 -->
1463
1670
  <xs:element name="table">
1464
1671
  <xs:annotation>
@@ -1501,7 +1708,7 @@
1501
1708
  td 子元素:
1502
1709
  - borderTop/borderRight/borderBottom/borderLeft: 单元格边框样式, 无border标签代表无边框, 空border标签代表使用默认样式(实线边框, 颜色为rgba(221, 222, 223, 1), 宽度为1)
1503
1710
  - fill: 单元格填充样式, 无fill标签代表不填充, 空fill标签代表使用默认样式(默认颜色填充, 颜色为rgba(255, 255, 255, 1))
1504
- - content: 单元格内容
1711
+ - content: 单元格内容。内容默认不反向修改表格几何尺寸; 当内容高度大于当前行高时, 需要手动修改行高
1505
1712
  </xs:documentation>
1506
1713
  </xs:annotation>
1507
1714
  <xs:complexType>
@@ -1559,6 +1766,70 @@
1559
1766
  <xs:complexType/>
1560
1767
  </xs:element>
1561
1768
 
1769
+ <xs:element name="field">
1770
+ <xs:annotation>
1771
+ <xs:documentation>
1772
+ 动态文本字段。
1773
+ type 属性描述动态语义,元素内容是静态降级文本,可包含行内样式元素。
1774
+ </xs:documentation>
1775
+ </xs:annotation>
1776
+ <xs:complexType mixed="true">
1777
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
1778
+ <xs:element ref="sml:strong"/>
1779
+ <xs:element ref="sml:em"/>
1780
+ <xs:element ref="sml:u"/>
1781
+ <xs:element ref="sml:span"/>
1782
+ <xs:element ref="sml:del"/>
1783
+ <xs:element ref="sml:a"/>
1784
+ <xs:element ref="sml:shadow"/>
1785
+ <xs:element ref="sml:outline"/>
1786
+ </xs:choice>
1787
+ <xs:attribute name="type" type="sml:FieldType" use="required"/>
1788
+ </xs:complexType>
1789
+ </xs:element>
1790
+
1791
+
1792
+
1793
+ <xs:element name="formula">
1794
+ <xs:annotation>
1795
+ <xs:documentation>
1796
+ 通用公式元素。
1797
+ 用于展示各类科学公式。
1798
+
1799
+ 结构说明:
1800
+ - 必须从支持的公式格式中选择且仅选择一种作为子元素。
1801
+ - 当前版本支持格式:&lt;latex&gt;
1802
+
1803
+ 示例:
1804
+ - 基础公式:
1805
+ &lt;formula&gt;
1806
+ &lt;latex&gt;&lt;![CDATA[ E = mc^2 ]]&gt;&lt;/latex&gt;
1807
+ &lt;/formula&gt;
1808
+ </xs:documentation>
1809
+ </xs:annotation>
1810
+ <xs:complexType>
1811
+ <xs:choice minOccurs="1" maxOccurs="1">
1812
+ <xs:element name="latex">
1813
+ <xs:annotation>
1814
+ <xs:documentation>
1815
+ LaTeX 格式的公式内容。
1816
+ 本元素包含的 LaTeX 字符串必须严格符合附件中定义的宏集范围。
1817
+
1818
+ 内容语法:
1819
+ - 语法范围:仅使用附件白名单中明确支持的宏。
1820
+ - 表达建议:优先使用基础运算符、分式(\frac)、根号(\sqrt)、矩阵(matrix)等标准数学环境。
1821
+ - 格式要求:必须使用 CDATA 包裹内容,且 CDATA 内部严禁进行 XML 转义(如 &amp;lt;, &amp;amp;)。
1822
+ - 空白处理:解析器将保留 CDATA 内的所有换行和缩进,建议利用此特性保持 LaTeX 源码的结构化和可读性。
1823
+ </xs:documentation>
1824
+ </xs:annotation>
1825
+ <xs:simpleType>
1826
+ <xs:restriction base="xs:string"/>
1827
+ </xs:simpleType>
1828
+ </xs:element>
1829
+ </xs:choice>
1830
+ </xs:complexType>
1831
+ </xs:element>
1832
+
1562
1833
  <xs:element name="strong">
1563
1834
  <xs:annotation>
1564
1835
  <xs:documentation>粗体/加重文本</xs:documentation>
@@ -1566,6 +1837,7 @@
1566
1837
  <xs:complexType mixed="true">
1567
1838
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1568
1839
  <xs:element ref="sml:br"/>
1840
+ <xs:element ref="sml:formula"/>
1569
1841
  <xs:element ref="sml:strong"/>
1570
1842
  <xs:element ref="sml:em"/>
1571
1843
  <xs:element ref="sml:u"/>
@@ -1574,6 +1846,7 @@
1574
1846
  <xs:element ref="sml:a"/>
1575
1847
  <xs:element ref="sml:shadow"/>
1576
1848
  <xs:element ref="sml:outline"/>
1849
+ <xs:element ref="sml:field"/>
1577
1850
  </xs:choice>
1578
1851
  </xs:complexType>
1579
1852
  </xs:element>
@@ -1591,6 +1864,7 @@
1591
1864
  <xs:extension base="sml:ShadowType">
1592
1865
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1593
1866
  <xs:element ref="sml:br"/>
1867
+ <xs:element ref="sml:formula"/>
1594
1868
  <xs:element ref="sml:strong"/>
1595
1869
  <xs:element ref="sml:em"/>
1596
1870
  <xs:element ref="sml:u"/>
@@ -1599,6 +1873,7 @@
1599
1873
  <xs:element ref="sml:a"/>
1600
1874
  <xs:element ref="sml:shadow"/>
1601
1875
  <xs:element ref="sml:outline"/>
1876
+ <xs:element ref="sml:field"/>
1602
1877
  </xs:choice>
1603
1878
  </xs:extension>
1604
1879
  </xs:complexContent>
@@ -1618,6 +1893,7 @@
1618
1893
  <xs:extension base="sml:OutlineType">
1619
1894
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1620
1895
  <xs:element ref="sml:br"/>
1896
+ <xs:element ref="sml:formula"/>
1621
1897
  <xs:element ref="sml:strong"/>
1622
1898
  <xs:element ref="sml:em"/>
1623
1899
  <xs:element ref="sml:u"/>
@@ -1626,6 +1902,7 @@
1626
1902
  <xs:element ref="sml:a"/>
1627
1903
  <xs:element ref="sml:shadow"/>
1628
1904
  <xs:element ref="sml:outline"/>
1905
+ <xs:element ref="sml:field"/>
1629
1906
  </xs:choice>
1630
1907
  </xs:extension>
1631
1908
  </xs:complexContent>
@@ -1639,6 +1916,7 @@
1639
1916
  <xs:complexType mixed="true">
1640
1917
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1641
1918
  <xs:element ref="sml:br"/>
1919
+ <xs:element ref="sml:formula"/>
1642
1920
  <xs:element ref="sml:strong"/>
1643
1921
  <xs:element ref="sml:em"/>
1644
1922
  <xs:element ref="sml:u"/>
@@ -1647,6 +1925,7 @@
1647
1925
  <xs:element ref="sml:a"/>
1648
1926
  <xs:element ref="sml:shadow"/>
1649
1927
  <xs:element ref="sml:outline"/>
1928
+ <xs:element ref="sml:field"/>
1650
1929
  </xs:choice>
1651
1930
  </xs:complexType>
1652
1931
  </xs:element>
@@ -1658,6 +1937,7 @@
1658
1937
  <xs:complexType mixed="true">
1659
1938
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1660
1939
  <xs:element ref="sml:br"/>
1940
+ <xs:element ref="sml:formula"/>
1661
1941
  <xs:element ref="sml:strong"/>
1662
1942
  <xs:element ref="sml:em"/>
1663
1943
  <xs:element ref="sml:u"/>
@@ -1666,6 +1946,7 @@
1666
1946
  <xs:element ref="sml:a"/>
1667
1947
  <xs:element ref="sml:shadow"/>
1668
1948
  <xs:element ref="sml:outline"/>
1949
+ <xs:element ref="sml:field"/>
1669
1950
  </xs:choice>
1670
1951
  </xs:complexType>
1671
1952
  </xs:element>
@@ -1677,6 +1958,7 @@
1677
1958
  <xs:complexType mixed="true">
1678
1959
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1679
1960
  <xs:element ref="sml:br"/>
1961
+ <xs:element ref="sml:formula"/>
1680
1962
  <xs:element ref="sml:strong"/>
1681
1963
  <xs:element ref="sml:em"/>
1682
1964
  <xs:element ref="sml:u"/>
@@ -1685,6 +1967,7 @@
1685
1967
  <xs:element ref="sml:a"/>
1686
1968
  <xs:element ref="sml:shadow"/>
1687
1969
  <xs:element ref="sml:outline"/>
1970
+ <xs:element ref="sml:field"/>
1688
1971
  </xs:choice>
1689
1972
  </xs:complexType>
1690
1973
  </xs:element>
@@ -1699,6 +1982,7 @@
1699
1982
  <xs:complexType mixed="true">
1700
1983
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1701
1984
  <xs:element ref="sml:br"/>
1985
+ <xs:element ref="sml:formula"/>
1702
1986
  <xs:element ref="sml:strong"/>
1703
1987
  <xs:element ref="sml:em"/>
1704
1988
  <xs:element ref="sml:u"/>
@@ -1707,6 +1991,7 @@
1707
1991
  <xs:element ref="sml:a"/>
1708
1992
  <xs:element ref="sml:shadow"/>
1709
1993
  <xs:element ref="sml:outline"/>
1994
+ <xs:element ref="sml:field"/>
1710
1995
  </xs:choice>
1711
1996
  <xs:attribute name="color" type="sml:Color" use="optional"/>
1712
1997
  <xs:attribute name="backgroundColor" type="sml:Color" use="optional"/>
@@ -1730,6 +2015,7 @@
1730
2015
  <xs:complexType mixed="true">
1731
2016
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1732
2017
  <xs:element ref="sml:br"/>
2018
+ <xs:element ref="sml:formula"/>
1733
2019
  <xs:element ref="sml:strong"/>
1734
2020
  <xs:element ref="sml:em"/>
1735
2021
  <xs:element ref="sml:u"/>
@@ -1737,6 +2023,7 @@
1737
2023
  <xs:element ref="sml:del"/>
1738
2024
  <xs:element ref="sml:shadow"/>
1739
2025
  <xs:element ref="sml:outline"/>
2026
+ <xs:element ref="sml:field"/>
1740
2027
  </xs:choice>
1741
2028
  <xs:attribute name="href" use="required">
1742
2029
  <xs:simpleType>
@@ -1824,36 +2111,116 @@
1824
2111
  <!-- 有序列表样式枚举 -->
1825
2112
  <xs:simpleType name="OrderedListStyle">
1826
2113
  <xs:annotation>
1827
- <xs:documentation>有序列表样式</xs:documentation>
2114
+ <xs:documentation>
2115
+ 有序列表样式
2116
+
2117
+ 分为两类:
2118
+ 1. 复合样式(按层级循环不同格式):如 number-lower-alpha-lower-roman 表示第1级用数字、第2级用小写字母、第3级用小写罗马,超过层级数后循环
2119
+ 2. 单一样式(所有层级使用同一格式,不循环):以 PPTX 标准 scheme 命名,如 alpha-lc-paren-both 表示所有层级都用 (a)(b)(c) 格式
2120
+ </xs:documentation>
1828
2121
  </xs:annotation>
1829
2122
  <xs:restriction base="xs:string">
2123
+ <!-- 复合样式(按层级循环) -->
1830
2124
  <xs:enumeration value="number-lower-alpha-lower-roman"><xs:annotation><xs:documentation>1. a. i. - 数字/小写字母/小写罗马</xs:documentation></xs:annotation></xs:enumeration>
1831
2125
  <xs:enumeration value="number-lower-alpha-lower-roman-paren"><xs:annotation><xs:documentation>1) a) i) - 带括号版本</xs:documentation></xs:annotation></xs:enumeration>
1832
2126
  <xs:enumeration value="hierarchical-number"><xs:annotation><xs:documentation>1. 1.1. 1.1.1. - 多级数字</xs:documentation></xs:annotation></xs:enumeration>
1833
2127
  <xs:enumeration value="upper-alpha-lower-alpha-lower-roman"><xs:annotation><xs:documentation>A. a. i. - 大写字母/小写字母/小写罗马</xs:documentation></xs:annotation></xs:enumeration>
1834
2128
  <xs:enumeration value="upper-roman-upper-alpha-number"><xs:annotation><xs:documentation>I. A. 1. - 大写罗马/大写字母/数字</xs:documentation></xs:annotation></xs:enumeration>
1835
2129
  <xs:enumeration value="zero-padded-lower-alpha-lower-roman"><xs:annotation><xs:documentation>01. a. i. - 补零数字/小写字母/小写罗马</xs:documentation></xs:annotation></xs:enumeration>
1836
- <xs:enumeration value="circle-number"><xs:annotation><xs:documentation> 圆圈数字</xs:documentation></xs:annotation></xs:enumeration>
2130
+ <xs:enumeration value="circle-number"><xs:annotation><xs:documentation>圆圈数字</xs:documentation></xs:annotation></xs:enumeration>
1837
2131
  <xs:enumeration value="lower-alpha-paren"><xs:annotation><xs:documentation>a) b) c) - 小写字母带括号</xs:documentation></xs:annotation></xs:enumeration>
1838
2132
  <xs:enumeration value="lower-alpha-dot"><xs:annotation><xs:documentation>a. b. c. - 小写字母带点</xs:documentation></xs:annotation></xs:enumeration>
1839
2133
  <xs:enumeration value="chinese-formal"><xs:annotation><xs:documentation>一、二、三、 - 中文数字</xs:documentation></xs:annotation></xs:enumeration>
2134
+
2135
+ <!-- 单一样式(所有层级使用同一格式,不随层级循环) -->
2136
+ <!-- 拉丁字母 Latin -->
2137
+ <xs:enumeration value="alpha-lc-paren-both"><xs:annotation><xs:documentation>(a) (b) (c) - 小写字母带双括号</xs:documentation></xs:annotation></xs:enumeration>
2138
+ <xs:enumeration value="alpha-uc-paren-both"><xs:annotation><xs:documentation>(A) (B) (C) - 大写字母带双括号</xs:documentation></xs:annotation></xs:enumeration>
2139
+ <xs:enumeration value="alpha-lc-paren-r"><xs:annotation><xs:documentation>a) b) c) - 小写字母带右括号</xs:documentation></xs:annotation></xs:enumeration>
2140
+ <xs:enumeration value="alpha-uc-paren-r"><xs:annotation><xs:documentation>A) B) C) - 大写字母带右括号</xs:documentation></xs:annotation></xs:enumeration>
2141
+ <xs:enumeration value="alpha-lc-period"><xs:annotation><xs:documentation>a. b. c. - 小写字母带点</xs:documentation></xs:annotation></xs:enumeration>
2142
+ <xs:enumeration value="alpha-uc-period"><xs:annotation><xs:documentation>A. B. C. - 大写字母带点</xs:documentation></xs:annotation></xs:enumeration>
2143
+ <!-- 阿拉伯数字 Arabic Numeral -->
2144
+ <xs:enumeration value="arabic-paren-both"><xs:annotation><xs:documentation>(1) (2) (3) - 数字带双括号</xs:documentation></xs:annotation></xs:enumeration>
2145
+ <xs:enumeration value="arabic-paren-r"><xs:annotation><xs:documentation>1) 2) 3) - 数字带右括号</xs:documentation></xs:annotation></xs:enumeration>
2146
+ <xs:enumeration value="arabic-period"><xs:annotation><xs:documentation>1. 2. 3. - 数字带点</xs:documentation></xs:annotation></xs:enumeration>
2147
+ <xs:enumeration value="arabic-plain"><xs:annotation><xs:documentation>1 2 3 - 纯数字</xs:documentation></xs:annotation></xs:enumeration>
2148
+ <xs:enumeration value="arabic-db-period"><xs:annotation><xs:documentation>1.2.3.- 全角数字带点</xs:documentation></xs:annotation></xs:enumeration>
2149
+ <xs:enumeration value="arabic-db-plain"><xs:annotation><xs:documentation>1 2 3 - 全角纯数字</xs:documentation></xs:annotation></xs:enumeration>
2150
+ <xs:enumeration value="arabic1-minus"><xs:annotation><xs:documentation>أ- ب- ت- - 阿拉伯语字母(现代序)带后横线</xs:documentation></xs:annotation></xs:enumeration>
2151
+ <xs:enumeration value="arabic2-minus"><xs:annotation><xs:documentation>-أ- -ب- -ج- - 阿拉伯语字母(Abjadi序)带双横线</xs:documentation></xs:annotation></xs:enumeration>
2152
+ <!-- 罗马数字 Roman -->
2153
+ <xs:enumeration value="roman-lc-paren-both"><xs:annotation><xs:documentation>(i) (ii) (iii) - 小写罗马带双括号</xs:documentation></xs:annotation></xs:enumeration>
2154
+ <xs:enumeration value="roman-uc-paren-both"><xs:annotation><xs:documentation>(I) (II) (III) - 大写罗马带双括号</xs:documentation></xs:annotation></xs:enumeration>
2155
+ <xs:enumeration value="roman-lc-paren-r"><xs:annotation><xs:documentation>i) ii) iii) - 小写罗马带右括号</xs:documentation></xs:annotation></xs:enumeration>
2156
+ <xs:enumeration value="roman-uc-paren-r"><xs:annotation><xs:documentation>I) II) III) - 大写罗马带右括号</xs:documentation></xs:annotation></xs:enumeration>
2157
+ <xs:enumeration value="roman-lc-period"><xs:annotation><xs:documentation>i. ii. iii. - 小写罗马带点</xs:documentation></xs:annotation></xs:enumeration>
2158
+ <xs:enumeration value="roman-uc-period"><xs:annotation><xs:documentation>I. II. III. - 大写罗马带点</xs:documentation></xs:annotation></xs:enumeration>
2159
+ <!-- 圆圈数字 Circle -->
2160
+ <xs:enumeration value="circle-num-db-plain"><xs:annotation><xs:documentation>① ② ③ - 圆圈数字</xs:documentation></xs:annotation></xs:enumeration>
2161
+ <xs:enumeration value="circle-num-wd-black-plain"><xs:annotation><xs:documentation>❶ ❷ ❸ - 实心圆圈数字</xs:documentation></xs:annotation></xs:enumeration>
2162
+ <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>
2163
+ <!-- 东亚 East Asian -->
2164
+ <xs:enumeration value="ea1-chs-period"><xs:annotation><xs:documentation>一. 二. 三. - 简体中文带点</xs:documentation></xs:annotation></xs:enumeration>
2165
+ <xs:enumeration value="ea1-chs-plain"><xs:annotation><xs:documentation>一 二 三 - 简体中文</xs:documentation></xs:annotation></xs:enumeration>
2166
+ <xs:enumeration value="ea1-cht-period"><xs:annotation><xs:documentation>一. 二. 三. - 繁体中文带点</xs:documentation></xs:annotation></xs:enumeration>
2167
+ <xs:enumeration value="ea1-cht-plain"><xs:annotation><xs:documentation>一 二 三 - 繁体中文</xs:documentation></xs:annotation></xs:enumeration>
2168
+ <xs:enumeration value="ea1-jpn-chs-db-period"><xs:annotation><xs:documentation>一.二.三.- CJK汉字数字带全角点</xs:documentation></xs:annotation></xs:enumeration>
2169
+ <xs:enumeration value="ea1-jpn-kor-plain"><xs:annotation><xs:documentation>一 二 三 - CJK汉字数字</xs:documentation></xs:annotation></xs:enumeration>
2170
+ <xs:enumeration value="ea1-jpn-kor-period"><xs:annotation><xs:documentation>一. 二. 三. - CJK汉字数字带半角点</xs:documentation></xs:annotation></xs:enumeration>
2171
+ <!-- 希伯来语 Hebrew -->
2172
+ <xs:enumeration value="hebrew2-minus"><xs:annotation><xs:documentation>א- ב- ג- - 希伯来字母带横线</xs:documentation></xs:annotation></xs:enumeration>
2173
+ <!-- 泰语 Thai -->
2174
+ <xs:enumeration value="thai-alpha-period"><xs:annotation><xs:documentation>ก. ข. ค. - 泰语字母带点(跳过 ฃ/ฅ/ฆ)</xs:documentation></xs:annotation></xs:enumeration>
2175
+ <xs:enumeration value="thai-alpha-paren-r"><xs:annotation><xs:documentation>ก) ข) ค) - 泰语字母带右括号(跳过 ฃ/ฅ/ฆ)</xs:documentation></xs:annotation></xs:enumeration>
2176
+ <xs:enumeration value="thai-alpha-paren-both"><xs:annotation><xs:documentation>(ก) (ข) (ค) - 泰语字母带双括号(跳过 ฃ/ฅ/ฆ)</xs:documentation></xs:annotation></xs:enumeration>
2177
+ <xs:enumeration value="thai-num-period"><xs:annotation><xs:documentation>๑. ๒. ๓. - 泰语数字带点</xs:documentation></xs:annotation></xs:enumeration>
2178
+ <xs:enumeration value="thai-num-paren-r"><xs:annotation><xs:documentation>๑) ๒) ๓) - 泰语数字带右括号</xs:documentation></xs:annotation></xs:enumeration>
2179
+ <xs:enumeration value="thai-num-paren-both"><xs:annotation><xs:documentation>(๑) (๒) (๓) - 泰语数字带双括号</xs:documentation></xs:annotation></xs:enumeration>
2180
+ <!-- 印地语 Hindi -->
2181
+ <xs:enumeration value="hindi-alpha-period"><xs:annotation><xs:documentation>अ. आ. इ. - 印地语元音字母带点</xs:documentation></xs:annotation></xs:enumeration>
2182
+ <xs:enumeration value="hindi-num-period"><xs:annotation><xs:documentation>१. २. ३. - 印地语数字带点</xs:documentation></xs:annotation></xs:enumeration>
2183
+ <xs:enumeration value="hindi-num-paren-r"><xs:annotation><xs:documentation>१) २) ३) - 印地语数字带右括号</xs:documentation></xs:annotation></xs:enumeration>
2184
+ <xs:enumeration value="hindi-alpha1-period"><xs:annotation><xs:documentation>क. ख. ग. - 印地语辅音字母带点</xs:documentation></xs:annotation></xs:enumeration>
1840
2185
  </xs:restriction>
1841
2186
  </xs:simpleType>
1842
2187
  <!-- 无序列表样式枚举 -->
1843
2188
  <xs:simpleType name="UnorderedListStyle">
1844
2189
  <xs:annotation>
1845
- <xs:documentation>无序列表样式</xs:documentation>
2190
+ <xs:documentation>
2191
+ 无序列表样式
2192
+
2193
+ 分为两类:
2194
+ 1. 复合样式(按层级循环不同图标):如 circle-hollow-square 表示第1级实心圆、第2级空心圆、第3级实心方形,超过层级数后循环
2195
+ 2. 单一样式(所有层级使用同一图标,不循环):以 pptx- 前缀命名,如 pptx-circle 表示所有层级都用 ● 实心圆
2196
+ </xs:documentation>
1846
2197
  </xs:annotation>
1847
2198
  <xs:restriction base="xs:string">
2199
+ <!-- 复合样式(按层级循环) -->
1848
2200
  <xs:enumeration value="circle-hollow-square"><xs:annotation><xs:documentation>实心圆 空心圆 实心方形</xs:documentation></xs:annotation></xs:enumeration>
1849
- <xs:enumeration value="diamond-triangle-square"><xs:annotation><xs:documentation>棱形 三角形 实心方形</xs:documentation></xs:annotation></xs:enumeration>
2201
+ <xs:enumeration value="diamond-triangle-square"><xs:annotation><xs:documentation>菱形 三角形 实心方形</xs:documentation></xs:annotation></xs:enumeration>
1850
2202
  <xs:enumeration value="hollow-square-all"><xs:annotation><xs:documentation>空心方形 空心方形 空心方形</xs:documentation></xs:annotation></xs:enumeration>
1851
- <xs:enumeration value="arrow-diamond-circle"><xs:annotation><xs:documentation>右箭头 实心棱形 实心圆形</xs:documentation></xs:annotation></xs:enumeration>
2203
+ <xs:enumeration value="arrow-diamond-circle"><xs:annotation><xs:documentation>右箭头 实心菱形 实心圆形</xs:documentation></xs:annotation></xs:enumeration>
1852
2204
  <xs:enumeration value="star-hollow-circle-square"><xs:annotation><xs:documentation>实心五角星 空心圆形 实心方形</xs:documentation></xs:annotation></xs:enumeration>
1853
2205
  <xs:enumeration value="triangle-hollow-circle-square"><xs:annotation><xs:documentation>三角形 空心圆形 实心方形</xs:documentation></xs:annotation></xs:enumeration>
1854
2206
  <xs:enumeration value="solid-square-all"><xs:annotation><xs:documentation>实心方形 实心方形 实心方形</xs:documentation></xs:annotation></xs:enumeration>
1855
2207
  <xs:enumeration value="solid-diamond-all"><xs:annotation><xs:documentation>实心菱形 实心菱形 实心菱形</xs:documentation></xs:annotation></xs:enumeration>
1856
2208
  <xs:enumeration value="check-all"><xs:annotation><xs:documentation>对勾 对勾 对勾</xs:documentation></xs:annotation></xs:enumeration>
2209
+
2210
+ <!-- 单一样式(所有层级使用同一图标,不随层级循环) -->
2211
+ <xs:enumeration value="pptx-circle"><xs:annotation><xs:documentation>● 实心圆(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2212
+ <xs:enumeration value="pptx-square"><xs:annotation><xs:documentation>■ 方块(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2213
+ <xs:enumeration value="pptx-diamond"><xs:annotation><xs:documentation>◆ 菱形(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2214
+ <xs:enumeration value="pptx-square-empty"><xs:annotation><xs:documentation>□ 空心方框(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2215
+ <xs:enumeration value="pptx-check"><xs:annotation><xs:documentation>✓ 对勾(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2216
+ <xs:enumeration value="pptx-triangle"><xs:annotation><xs:documentation>► 右三角(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2217
+ <xs:enumeration value="pptx-bullet"><xs:annotation><xs:documentation>• 小圆点(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2218
+
2219
+ <xs:enumeration value="pptx-circle-empty"><xs:annotation><xs:documentation>○ 空心圆(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2220
+ <xs:enumeration value="pptx-diamond-empty"><xs:annotation><xs:documentation>◇ 空心菱形(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2221
+ <xs:enumeration value="pptx-arrow-right"><xs:annotation><xs:documentation>➔ 右箭头(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2222
+ <xs:enumeration value="pptx-star"><xs:annotation><xs:documentation>★ 星形(所有层级)</xs:documentation></xs:annotation></xs:enumeration>
2223
+ <xs:enumeration value="pptx-square-shadow"><xs:annotation><xs:documentation>❑ 带右下阴影的 3D 方框(所有层级,对应 PPTX Wingdings 'q')</xs:documentation></xs:annotation></xs:enumeration>
1857
2224
  </xs:restriction>
1858
2225
  </xs:simpleType>
1859
2226
 
@@ -2097,6 +2464,19 @@
2097
2464
  </xs:restriction>
2098
2465
  </xs:simpleType>
2099
2466
 
2467
+ <xs:simpleType name="ChartGradientKindType">
2468
+ <xs:annotation>
2469
+ <xs:documentation>
2470
+ 图表渐变类型
2471
+ 可选值: linear(线性渐变) | radial(径向渐变)
2472
+ </xs:documentation>
2473
+ </xs:annotation>
2474
+ <xs:restriction base="xs:string">
2475
+ <xs:enumeration value="linear"/>
2476
+ <xs:enumeration value="radial"/>
2477
+ </xs:restriction>
2478
+ </xs:simpleType>
2479
+
2100
2480
  <xs:simpleType name="ChartRadarShapeType">
2101
2481
  <xs:annotation>
2102
2482
  <xs:documentation>
@@ -2218,6 +2598,7 @@
2218
2598
 
2219
2599
  属性:
2220
2600
  - textAlign: 文本对齐方式(left|center|right), 默认left
2601
+ - fontFamily: 字体族名称,仅图表根级主标题/副标题支持;坐标轴标题不支持
2221
2602
  - fontSize: 字号大小
2222
2603
  - bold: 是否加粗
2223
2604
  - italic: 是否斜体, 默认false
@@ -2231,6 +2612,7 @@
2231
2612
  <xs:complexContent>
2232
2613
  <xs:extension base="sml:ChartFontStyleType">
2233
2614
  <xs:attribute name="textAlign" type="sml:ChartTextAlignType" use="optional" default="left"/>
2615
+ <xs:attribute name="fontFamily" type="sml:FontFamilyType" use="optional"/>
2234
2616
  </xs:extension>
2235
2617
  </xs:complexContent>
2236
2618
  </xs:complexType>
@@ -2299,10 +2681,10 @@
2299
2681
  图表背景配置
2300
2682
 
2301
2683
  属性:
2302
- - color: 背景颜色, 默认透明 rgba(0,0,0,0)
2684
+ - color: 背景颜色,省略时使用图表默认背景;无填充可使用透明色 rgba(0,0,0,0)
2303
2685
  </xs:documentation>
2304
2686
  </xs:annotation>
2305
- <xs:attribute name="color" type="sml:SolidColor" use="optional" default="rgb(255, 255, 255)"/>
2687
+ <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
2306
2688
  </xs:complexType>
2307
2689
 
2308
2690
  <xs:complexType name="ChartBorderType">
@@ -2312,7 +2694,7 @@
2312
2694
 
2313
2695
  属性:
2314
2696
  - color: 边框颜色,默认 rgb(222, 224, 227)
2315
- - width: 边框宽度(像素), 默认 1
2697
+ - width: 边框宽度(像素), 默认 1;无边框可设置为0,或不设置chartBorder
2316
2698
  - style: 边框样式(solid|dashed|dotted), 默认 solid
2317
2699
  - radius: 圆角半径(像素), 默认 6
2318
2700
  </xs:documentation>
@@ -2323,6 +2705,61 @@
2323
2705
  <xs:attribute name="radius" type="xs:nonNegativeInteger" use="optional" />
2324
2706
  </xs:complexType>
2325
2707
 
2708
+ <xs:complexType name="ChartGradientStopType">
2709
+ <xs:annotation>
2710
+ <xs:documentation>
2711
+ 图表渐变色标
2712
+
2713
+ 属性:
2714
+ - offset: 色标位置比例[0,1]
2715
+ - color: 色标颜色
2716
+ - opacity: 色标透明度[0,1]
2717
+ </xs:documentation>
2718
+ </xs:annotation>
2719
+ <xs:attribute name="offset" type="sml:RatioType" use="required"/>
2720
+ <xs:attribute name="color" type="sml:SolidColor" use="required"/>
2721
+ <xs:attribute name="opacity" type="sml:RatioType" use="optional"/>
2722
+ </xs:complexType>
2723
+
2724
+ <xs:complexType name="ChartGradientStopsType">
2725
+ <xs:annotation>
2726
+ <xs:documentation>
2727
+ 图表渐变色标列表,至少需要2个色标
2728
+ </xs:documentation>
2729
+ </xs:annotation>
2730
+ <xs:sequence>
2731
+ <xs:element name="stop" type="sml:ChartGradientStopType" minOccurs="2" maxOccurs="unbounded"/>
2732
+ </xs:sequence>
2733
+ </xs:complexType>
2734
+
2735
+ <xs:complexType name="ChartGradientType">
2736
+ <xs:annotation>
2737
+ <xs:documentation>
2738
+ 图表渐变配置
2739
+
2740
+ 属性:
2741
+ - type: 渐变类型(linear|radial)
2742
+ - x0/y0/x1/y1: 线性渐变起止点坐标
2743
+ - r0/r1: 径向渐变半径
2744
+ - gradientMethod: 渐变算法/插值方式
2745
+
2746
+ 子元素:
2747
+ - stops: 渐变色标列表
2748
+ </xs:documentation>
2749
+ </xs:annotation>
2750
+ <xs:sequence>
2751
+ <xs:element name="stops" type="sml:ChartGradientStopsType" minOccurs="1"/>
2752
+ </xs:sequence>
2753
+ <xs:attribute name="type" type="sml:ChartGradientKindType" use="required"/>
2754
+ <xs:attribute name="x0" type="xs:double" use="optional"/>
2755
+ <xs:attribute name="y0" type="xs:double" use="optional"/>
2756
+ <xs:attribute name="x1" type="xs:double" use="optional"/>
2757
+ <xs:attribute name="y1" type="xs:double" use="optional"/>
2758
+ <xs:attribute name="r0" type="xs:double" use="optional"/>
2759
+ <xs:attribute name="r1" type="xs:double" use="optional"/>
2760
+ <xs:attribute name="gradientMethod" type="xs:string" use="optional"/>
2761
+ </xs:complexType>
2762
+
2326
2763
  <xs:complexType name="ChartColorThemeType">
2327
2764
  <xs:annotation>
2328
2765
  <xs:documentation>
@@ -2432,12 +2869,16 @@
2432
2869
  - size: 该系列所有点的大小
2433
2870
 
2434
2871
  子元素:
2872
+ - fillGradient: 该系列所有点的填充渐变(可选)
2873
+ - strokeGradient: 该系列所有点的边框/描边渐变(可选)
2435
2874
  - chartPoint: 单个数据点配置(可选, 多个), 用于覆盖特定点的样式
2436
2875
  </xs:documentation>
2437
2876
  </xs:annotation>
2438
2877
  <xs:complexContent>
2439
2878
  <xs:extension base="sml:ChartGlobalPointsType">
2440
2879
  <xs:sequence>
2880
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
2881
+ <xs:element name="strokeGradient" type="sml:ChartGradientType" minOccurs="0"/>
2441
2882
  <xs:element name="chartPoint" minOccurs="0" maxOccurs="unbounded">
2442
2883
  <xs:complexType>
2443
2884
  <xs:annotation>
@@ -2449,8 +2890,14 @@
2449
2890
  - color: 该点的颜色
2450
2891
  - shape: 该点的形状(circle|square|triangle|diamond|rect)
2451
2892
  - size: 该点的大小(像素)
2893
+
2894
+ 子元素:
2895
+ - fillGradient: 该点填充渐变(可选)
2452
2896
  </xs:documentation>
2453
2897
  </xs:annotation>
2898
+ <xs:sequence>
2899
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
2900
+ </xs:sequence>
2454
2901
  <xs:attribute name="index" type="xs:positiveInteger" use="required"/>
2455
2902
  <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
2456
2903
  <xs:attribute name="shape" type="sml:ChartPointShapeType" use="optional"/>
@@ -2463,7 +2910,7 @@
2463
2910
  </xs:complexType>
2464
2911
 
2465
2912
  <!-- 线条配置 -->
2466
- <xs:complexType name="ChartLineType">
2913
+ <xs:complexType name="ChartGlobalLineType">
2467
2914
  <xs:annotation>
2468
2915
  <xs:documentation>
2469
2916
  图表全局线条配置(第一层:所有系列的默认样式)
@@ -2480,8 +2927,27 @@
2480
2927
  <xs:attribute name="style" type="sml:ChartLineStyleType" use="optional" default="solid"/>
2481
2928
  </xs:complexType>
2482
2929
 
2930
+ <xs:complexType name="ChartSeriesLineType">
2931
+ <xs:annotation>
2932
+ <xs:documentation>
2933
+ 图表系列线条配置(第二层:单系列统一配置)
2934
+ 继承ChartGlobalLineType的所有属性
2935
+
2936
+ 子元素:
2937
+ - strokeGradient: 该系列线条渐变(可选)
2938
+ </xs:documentation>
2939
+ </xs:annotation>
2940
+ <xs:complexContent>
2941
+ <xs:extension base="sml:ChartGlobalLineType">
2942
+ <xs:sequence>
2943
+ <xs:element name="strokeGradient" type="sml:ChartGradientType" minOccurs="0"/>
2944
+ </xs:sequence>
2945
+ </xs:extension>
2946
+ </xs:complexContent>
2947
+ </xs:complexType>
2948
+
2483
2949
  <!-- 面积配置 -->
2484
- <xs:complexType name="ChartAreaType">
2950
+ <xs:complexType name="ChartGlobalAreaType">
2485
2951
  <xs:annotation>
2486
2952
  <xs:documentation>
2487
2953
  图表全局面积配置(第一层:所有系列的默认填充样式)
@@ -2494,6 +2960,25 @@
2494
2960
  <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
2495
2961
  </xs:complexType>
2496
2962
 
2963
+ <xs:complexType name="ChartSeriesAreaType">
2964
+ <xs:annotation>
2965
+ <xs:documentation>
2966
+ 图表系列面积配置(第二层:单系列统一配置)
2967
+ 继承ChartGlobalAreaType的所有属性
2968
+
2969
+ 子元素:
2970
+ - fillGradient: 该系列面积填充渐变(可选)
2971
+ </xs:documentation>
2972
+ </xs:annotation>
2973
+ <xs:complexContent>
2974
+ <xs:extension base="sml:ChartGlobalAreaType">
2975
+ <xs:sequence>
2976
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
2977
+ </xs:sequence>
2978
+ </xs:extension>
2979
+ </xs:complexContent>
2980
+ </xs:complexType>
2981
+
2497
2982
  <!-- 柱子配置 -->
2498
2983
  <xs:complexType name="ChartGlobalBarsType">
2499
2984
  <xs:annotation>
@@ -2534,12 +3019,16 @@
2534
3019
  - borderStyle: 该系列所有柱子的边框样式
2535
3020
 
2536
3021
  子元素:
3022
+ - fillGradient: 该系列所有柱子的填充渐变(可选)
3023
+ - strokeGradient: 该系列所有柱子的边框渐变(可选)
2537
3024
  - chartBar: 单个柱子配置(可选, 多个), 用于覆盖特定柱子的样式
2538
3025
  </xs:documentation>
2539
3026
  </xs:annotation>
2540
3027
  <xs:complexContent>
2541
3028
  <xs:extension base="sml:ChartGlobalBarsType">
2542
3029
  <xs:sequence>
3030
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
3031
+ <xs:element name="strokeGradient" type="sml:ChartGradientType" minOccurs="0"/>
2543
3032
  <xs:element name="chartBar" minOccurs="0" maxOccurs="unbounded">
2544
3033
  <xs:complexType>
2545
3034
  <xs:annotation>
@@ -2552,8 +3041,14 @@
2552
3041
  - borderColor: 该柱子的边框颜色
2553
3042
  - borderWidth: 该柱子的边框宽度(像素)
2554
3043
  - borderStyle: 该柱子的边框样式(solid|dashed|dotted)
3044
+
3045
+ 子元素:
3046
+ - fillGradient: 该柱子的填充渐变(可选)
2555
3047
  </xs:documentation>
2556
3048
  </xs:annotation>
3049
+ <xs:sequence>
3050
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
3051
+ </xs:sequence>
2557
3052
  <xs:attribute name="index" type="xs:positiveInteger" use="required"/>
2558
3053
  <xs:attribute name="color" type="sml:SolidColor" use="optional"/>
2559
3054
  <xs:attribute name="borderColor" type="sml:SolidColor" use="optional"/>
@@ -2578,8 +3073,14 @@
2578
3073
  - offsetRadius: 扇区径向偏移比例[0,1], 用于突出显示
2579
3074
  - borderColor: 扇区边框颜色
2580
3075
  - color: 扇区填充颜色
3076
+
3077
+ 子元素:
3078
+ - fillGradient: 扇区填充渐变(可选)
2581
3079
  </xs:documentation>
2582
3080
  </xs:annotation>
3081
+ <xs:sequence>
3082
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
3083
+ </xs:sequence>
2583
3084
  <xs:attribute name="index" type="xs:positiveInteger" use="required"/>
2584
3085
  <xs:attribute name="offsetRadius" type="sml:RatioType" use="optional"/>
2585
3086
  <xs:attribute name="borderColor" type="sml:SolidColor" use="optional"/>
@@ -2599,10 +3100,12 @@
2599
3100
  - startAngle: 起始角度[0,360), 控制第一个扇区的起始位置, 默认0
2600
3101
 
2601
3102
  子元素:
3103
+ - fillGradient: 所有扇区的统一填充渐变(可选)
2602
3104
  - chartSector: 单个扇区配置(可选, 多个), 用于定制特定扇区
2603
3105
  </xs:documentation>
2604
3106
  </xs:annotation>
2605
3107
  <xs:sequence>
3108
+ <xs:element name="fillGradient" type="sml:ChartGradientType" minOccurs="0"/>
2606
3109
  <xs:element name="chartSector" type="sml:ChartSectorType" minOccurs="0" maxOccurs="unbounded"/>
2607
3110
  </xs:sequence>
2608
3111
  <xs:attribute name="borderColor" type="sml:SolidColor" use="optional"/>
@@ -2649,8 +3152,8 @@
2649
3152
  </xs:annotation>
2650
3153
  <xs:sequence>
2651
3154
  <xs:element name="chartPoints" type="sml:ChartSeriesPointsType" minOccurs="0"/>
2652
- <xs:element name="chartLine" type="sml:ChartLineType" minOccurs="0"/>
2653
- <xs:element name="chartArea" type="sml:ChartAreaType" minOccurs="0"/>
3155
+ <xs:element name="chartLine" type="sml:ChartSeriesLineType" minOccurs="0"/>
3156
+ <xs:element name="chartArea" type="sml:ChartSeriesAreaType" minOccurs="0"/>
2654
3157
  <xs:element name="chartBars" type="sml:ChartSeriesBarsType" minOccurs="0"/>
2655
3158
  <xs:element name="chartSectors" type="sml:ChartSectorsType" minOccurs="0"/>
2656
3159
  <xs:element name="chartLabels" type="sml:ChartDataLabelsType" minOccurs="0"/>
@@ -2851,8 +3354,8 @@
2851
3354
  </xs:annotation>
2852
3355
  <xs:all>
2853
3356
  <xs:element name="chartPoints" type="sml:ChartGlobalPointsType" minOccurs="0"/>
2854
- <xs:element name="chartLines" type="sml:ChartLineType" minOccurs="0"/>
2855
- <xs:element name="chartAreas" type="sml:ChartAreaType" minOccurs="0"/>
3357
+ <xs:element name="chartLines" type="sml:ChartGlobalLineType" minOccurs="0"/>
3358
+ <xs:element name="chartAreas" type="sml:ChartGlobalAreaType" minOccurs="0"/>
2856
3359
  <xs:element name="chartBars" type="sml:ChartGlobalBarsType" minOccurs="0"/>
2857
3360
  <xs:element name="chartLabels" type="sml:ChartDataLabelsType" minOccurs="0"/>
2858
3361
  <xs:element name="chartSeriesList" type="sml:ChartSeriesListType" minOccurs="0"/>
@@ -3008,47 +3511,4 @@
3008
3511
  </xs:complexType>
3009
3512
  </xs:element>
3010
3513
 
3011
- <!-- 画板元素 -->
3012
- <xs:element name="whiteboard">
3013
- <xs:annotation>
3014
- <xs:documentation>
3015
- 画板元素, 用于在幻灯片中嵌入 Mermaid 或 SVG 绘制内容。
3016
-
3017
- 属性说明:
3018
- - id: 画板唯一标识符(可选)
3019
- - topLeftX/topLeftY: 左上角坐标, 必须
3020
- - width/height: 宽高尺寸, 必须
3021
- - flipX/flipY: 水平/垂直翻转
3022
- - alpha: 不透明度[0,1]
3023
-
3024
- 子元素(mermaid 与 svg 二选一):
3025
- - mermaid: Mermaid 源码文本, 可使用 CDATA 包裹
3026
- 适用场景: 流程图、时序图、思维导图、类图、甘特图、ER 图、用户旅程等结构图
3027
- 特点: 用简短的文本声明描述图表逻辑, 由渲染引擎自动布局, 无需手动计算坐标
3028
- 示例: &lt;mermaid&gt;&lt;![CDATA[flowchart TD\n A[开始] --&gt; B[结束]]]&gt;&lt;/mermaid&gt;
3029
- - svg: SVG 内容
3030
- 适用场景: 需要精确控制坐标、配色、路径的自定义图形
3031
- 特点: 像素级精确定位,支持 rect/circle/path/text/polygon/g/linearGradient 等元素;radialGradient/filter/clipPath/mask/pattern 不支持,需手动计算所有坐标
3032
- 示例: &lt;svg xmlns="http://www.w3.org/2000/svg"&gt;...&lt;/svg&gt;(xmlns 必填;width/height/viewBox 不影响渲染,仅百分比属性值场景需声明 viewBox)
3033
- - border: 边框样式, 可选, 无border标签代表无边框, 空border标签代表使用默认样式
3034
- </xs:documentation>
3035
- </xs:annotation>
3036
- <xs:complexType>
3037
- <xs:sequence>
3038
- <xs:choice>
3039
- <xs:element name="mermaid" type="xs:string" />
3040
- <xs:any namespace="http://www.w3.org/2000/svg" processContents="skip"/>
3041
- </xs:choice>
3042
- <xs:element name="border" type="sml:BorderType" minOccurs="0"/>
3043
- </xs:sequence>
3044
- <xs:attribute name="id" type="xs:string" use="optional"/>
3045
- <xs:attribute name="topLeftX" type="sml:XType" use="required"/>
3046
- <xs:attribute name="topLeftY" type="sml:YType" use="required"/>
3047
- <xs:attribute name="width" type="sml:PositiveSize" use="required"/>
3048
- <xs:attribute name="height" type="sml:PositiveSize" use="required"/>
3049
- <xs:attribute name="flipX" type="xs:boolean" use="optional" default="false"/>
3050
- <xs:attribute name="flipY" type="xs:boolean" use="optional" default="false"/>
3051
- <xs:attribute name="alpha" type="sml:AlphaType" use="optional" default="1"/>
3052
- </xs:complexType>
3053
- </xs:element>
3054
3514
  </xs:schema>