You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graphics/basic.md
+44-4Lines changed: 44 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,15 +21,27 @@ guid:图形 id 对象,用于唯一标识图形。
21
21
22
22
## parentIndex
23
23
24
-
父节点 id。格式同 guid。
24
+
父节点 id,以及当前节点在父节点下的位置。
25
25
26
26
fig 的数据结构是拍平的一维数组,加载时需要根据 parentIndex 还原为图形树结构。
27
27
28
+
```json
29
+
"parentIndex": {
30
+
"guid": {
31
+
"sessionID": 0,
32
+
"localID": 0
33
+
},
34
+
"position": "~"
35
+
},
36
+
```
37
+
38
+
position 使用了 [Fractional indexing](https://mp.weixin.qq.com/s?__biz=MzI0NTc2NTEyNA%3D%3D&mid=2247487763&idx=1&sn=7cb696d006d66521d4456bd4f67bec4d&chksm=e948d478de3f5d6e5f8269616453d75176bf472a6b8a6b6f1eeebce75fe0cf01f17838db7207&scene=21&cur_album_id=2965704900049485826#wechat_redirect) 的顺序一致性算法。
0 commit comments