Skip to content

[Bug Report]: Snapshot导出图片边距严重异常 #2337

@Mirrors406

Description

@Mirrors406

发生了什么?

左右,上下边距不同
Image

节点越多,偏的越多
Image

我看了源码是在添加这个代码导致的节点越多越偏,这个希望修复一下 @DymoneLewis
const safetyFactor = toImageOptions.safetyFactor || 1.1 // 安全系数,增加10%的空间

并且这个额外边距也没有正确处理:
const safetyMargin = toImageOptions.safetyMargin || 40 // 额外的安全边距
Image

logicflow/core版本

2.2

logicflow/extension版本

2.2

logicflow/engine版本

No response

浏览器&环境

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions