@flowgram.ai/document 0.1.0-alpha.13 → 0.1.0-alpha.14

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 CHANGED
@@ -131,7 +131,8 @@ var DEFAULT_SPACING = {
131
131
  // block 底部留白
132
132
  INLINE_BLOCKS_PADDING_TOP: 30,
133
133
  // block list 上部留白间距
134
- [DefaultSpacingKey.INLINE_BLOCKS_PADDING_BOTTOM]: 40,
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
  // 分支间最小边距 (垂直布局)
@@ -1176,7 +1177,7 @@ var FlowDocumentTransformerEntity = class extends ConfigEntity {
1176
1177
  FlowDocumentTransformerEntity.type = "FlowDocumentTransformerEntity";
1177
1178
 
1178
1179
  // src/entities/flow-renderer-state-entity.ts
1179
- import { debounce } from "lodash";
1180
+ import { debounce } from "lodash-es";
1180
1181
  import { ConfigEntity as ConfigEntity2 } from "@flowgram.ai/core";
1181
1182
  var FlowRendererStateEntity = class extends ConfigEntity2 {
1182
1183
  getDefaultConfig() {
@@ -1237,7 +1238,7 @@ var FlowRendererStateEntity = class extends ConfigEntity2 {
1237
1238
  FlowRendererStateEntity.type = "FlowRendererStateEntity";
1238
1239
 
1239
1240
  // src/flow-document.ts
1240
- import { omit } from "lodash";
1241
+ import { omit } from "lodash-es";
1241
1242
  import { inject as inject2, injectable as injectable2, multiInject, optional as optional2, postConstruct } from "inversify";
1242
1243
  import { Emitter as Emitter5 } from "@flowgram.ai/utils";
1243
1244
  import { EntityManager } from "@flowgram.ai/core";