Skip to content

Commit

Permalink
📝 更改设计文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Littlefean committed Jan 29, 2025
1 parent a8baff8 commit 5745b5c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs-pg/笔迹涂鸦功能设计.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
```json
{
"draw": [
"12.35,45.67,15 23.45,56.78,20 34.56,67.89,15",
"12.35,45.67,15 23.45,56.78,20 34.56,67.89,15",
"12.35,45.67,15 23.45,56.78,20 34.56,67.89,15"
"12.35,45.67,15~23.45,56.78,20~34.56,67.89,15",
"12.35,45.67,15~23.45,56.78,20~34.56,67.89,15",
"12.35,45.67,15~23.45,56.78,20~34.56,67.89,15"
]
}
```
Expand All @@ -29,7 +29,9 @@ draw字段是一个数组,数组中的每一个字符串都是一个笔画。
笔画的字符串结构如下:

```json
"x1,y1,w1 x2,y2,w2 x3,y3,w3 ..."
"x1,y1,w1~x2,y2,w2~x3,y3,w3 ..."
```

波浪号作为分隔符

其中为了保证字符串不会太长,每个坐标都保留两位小数,第三个参数w是笔画的粗细,取整处理

0 comments on commit 5745b5c

Please sign in to comment.