@flowgram.ai/document 0.2.11 → 0.2.13

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
@@ -155,8 +155,6 @@ var DEFAULT_FLOW_NODE_META = (nodeType, document) => {
155
155
  isStart: nodeType === "start",
156
156
  hidden,
157
157
  defaultExpanded: document.options.allNodesDefaultExpanded,
158
- expandedSize: { width: 520, height: 300 },
159
- // 展开后的大小
160
158
  size: DEFAULT_SIZE,
161
159
  origin: document.layout.getDefaultNodeOrigin(),
162
160
  isInlineBlocks: nodeType === "inlineBlocks" /* INLINE_BLOCKS */,
@@ -437,10 +435,9 @@ var _FlowNodeTransformData = class _FlowNodeTransformData extends EntityData2 {
437
435
  return this.entity.id;
438
436
  }
439
437
  getDefaultData() {
440
- const { size, defaultExpanded, expandedSize, hidden } = this.entity.getNodeMeta();
441
- const defaultSize = defaultExpanded ? expandedSize : size;
438
+ const { size, hidden } = this.entity.getNodeMeta();
442
439
  return {
443
- size: !hidden ? { ...defaultSize } : { width: 0, height: 0 }
440
+ size: !hidden ? { ...size } : { width: 0, height: 0 }
444
441
  };
445
442
  }
446
443
  /**