字体新增修改样式

This commit is contained in:
X1627315083@163.com
2026-03-25 16:52:59 +08:00
parent 61b18d67f4
commit 7991cd3879
9 changed files with 198 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ export class NodeManager {
//获取上级节点所生成的最后一个node设置位置为最后一个节点的xy 加上 节点间距
const superiorGenerateNodes = this.stateManager.getSubordNodes(superiorID)
const currentNode = superiorGenerateNodes.find((node) => {
return node.data.createIndexPosition === options?.data?.createIndexPosition
return (node.data.createIndexPosition === options?.data?.createIndexPosition && options?.data?.createIndexPosition)
})
const endGenerateNode = superiorGenerateNodes.reduce((max, current) => {
return current.data.createIndexPosition > max.data.createIndexPosition ? current : max