初始化画布设置panning: { enabled: true },添加元素将元素拖动到可是区域外,toSVG导出的图片就不完整了 #3340
-
初始化画布设置panning: { enabled: true },添加元素将元素拖动到可是区域外,toSVG导出的图片就不完整了 |
Beta Was this translation helpful? Give feedback.
Answered by
NewByVector
Mar 12, 2023
Replies: 1 comment 2 replies
-
可以通过设置 viewBox 属性解决。 const rect = this.graph.getContentArea().inflate(24)
this.exportInstance.exportSVG('scroller', {
viewBox: rect
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
NewByVector
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以通过设置 viewBox 属性解决。