docs: 同步 template 文档

This commit is contained in:
AncTe committed 2025-10-15 16:28:08 +08:00
1 parent b782aee922
commit 9e6d2e9924
23 files changed
+1306 -245

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ type ElementLocator = [
- `w` `h`: 元素的长宽,描述了在没有缩放时元素的矩形长宽,默认是没有放缩的。
- `ax` `ay`: 元素的锚点位置,描述了元素参考点的位置,所有位置变换等将以此点作为参考点。0 表示元素最左侧或最上侧,1 表示最右侧或最下侧,可以填不在 0-1 范围内的值,例如 `[-1, 1]` 表示锚点横坐标在元素左侧一个元素宽度的位置,纵坐标在元素下边缘的位置。
![锚点图示](./img/image.png)
![锚点图示](../img/image.png)
示例如下: