Skip to content

Commit c4bfc94

Browse files
R0bynZhuclaude
andcommitted
feat(slides): fill xml-schema-quick-ref gaps that forced XSD fallback
From EVAL-07-22-02-53 (42 convos), agents fell back to the full XSD for: - shape type enum + presetHandlers (rounded corners) - polyline (bounding-box positioning, required border, connector type) - table merged cells (colspan / rowspan) Add compact coverage for each, sized to real usage (shape/polyline type lists trimmed to what actually appears in generations). Chart gaps deferred. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 67015ee commit c4bfc94

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

skills/lark-slides/references/xml-schema-quick-ref.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ XSD 中的 `title`、`headline`、`sub-headline`、`body`、`caption` 主要出
188188
- `<shadow>`
189189
- `<content>`
190190

191+
`type` 常用取值:`text`(文本框)、`rect``round-rect`(圆角矩形)、`ellipse`(椭圆/圆)、`triangle``diamond``parallelogram``trapezoid``custom`(配合 `path` 属性写 SVG 路径串)。箭头、星形、标注气泡、`chevron``flow-chart-*` 等更多形状见 XSD `ShapeType` 枚举。
192+
193+
其它可选属性:
194+
195+
- `presetHandlers`:控制点,用于圆角等。例如 `<shape type="rect" presetHandlers="60">` = 圆角半径 60px 的圆角矩形;多个控制点用逗号分隔。
196+
- `path`:仅 `type="custom"` 时使用,SVG 路径串。
197+
191198
### line
192199

193200
```xml
@@ -198,6 +205,16 @@ XSD 中的 `title`、`headline`、`sub-headline`、`body`、`caption` 主要出
198205

199206
`line` 使用的是 `startX` / `startY` / `endX` / `endY`,不是 `x1` / `y1` / `x2` / `y2`
200207

208+
### polyline
209+
210+
折线 / 曲线连接线,用外接矩形定位(`topLeftX` / `topLeftY` / `width` / `height`),不是端点坐标;`<border>` 必填(无 border 不可见)。`type` 默认 `bent-connector2`(可选 `bent-connector2-5` 折线 / `curved-connector2-5` 曲线)。
211+
212+
```xml
213+
<polyline topLeftX="120" topLeftY="120" width="200" height="100">
214+
<border color="rgb(43, 47, 54)" width="2"/>
215+
</polyline>
216+
```
217+
201218
### img
202219

203220
```xml
@@ -238,6 +255,7 @@ XSD 中的 `title`、`headline`、`sub-headline`、`body`、`caption` 主要出
238255
- `<colgroup>` 直接子元素只有 `<col width="...">`,width 定义列宽,默认 110。
239256
- `<tr height="...">` 直接子元素只有 `<td>`,height 定义行高,默认 37。
240257
- `<td>` 直接子元素只有 `<fill>`(背景)、`<content>`(文字)和边框配置(一般不用),不能嵌套 `<shape>``<img>``<icon>`
258+
- 合并单元格:`<td>` 上用 `colspan`(跨列,默认 1)和 `rowspan`(跨行,默认 1);被合并覆盖的单元格不再写对应 `<td>`
241259

242260
表头默认的白底白字视觉效果极差,必须设置背景和文字颜色,需在首行每个 `<td>` 上加 `<fill>`(配合 `bold` 与对比文字色)与正文行区分。
243261

0 commit comments

Comments
 (0)