@flowgram.ai/document 0.3.6 → 0.4.1
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.
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -131,7 +131,8 @@ var DEFAULT_SPACING = {
|
|
|
131
131
|
// block 底部留白
|
|
132
132
|
INLINE_BLOCKS_PADDING_TOP: 30,
|
|
133
133
|
// block list 上部留白间距
|
|
134
|
-
|
|
134
|
+
// JS 浮点数有误差,1046.6 -1006.6 = 39.9999999,会导致 间距/20 < 2 导致布局计算问题,因此需要额外增加 0.1 像素
|
|
135
|
+
[DefaultSpacingKey.INLINE_BLOCKS_PADDING_BOTTOM]: 40.1,
|
|
135
136
|
// block lit 下部留白间距,因为有两个拐弯,所以翻一倍
|
|
136
137
|
MIN_INLINE_BLOCK_SPACING: 200,
|
|
137
138
|
// 分支间最小边距 (垂直布局)
|