Skip to content

Commit fe89be8

Browse files
committed
🐛 复制时支持svg和传送门实体大小的判断
1 parent 417b399 commit fe89be8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/core/service/dataManageService/copyEngine/copyEngine.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ export function getRectangleFromSerializedEntities(serializedEntities: Serialize
191191
Serialized.isSection(node) ||
192192
Serialized.isImageNode(node) ||
193193
Serialized.isUrlNode(node) ||
194-
Serialized.isPortalNode(node)
194+
Serialized.isPortalNode(node) ||
195+
Serialized.isSvgNode(node)
195196
) {
196197
// 比较常规的矩形
197198
rectangles.push(new Rectangle(new Vector(...node.location), new Vector(...node.size)));

0 commit comments

Comments
 (0)