MCPcopy Create free account
hub / github.com/1Panel-dev/MaxKB / refreshBranch

Method refreshBranch

ui/src/workflow/nodes/loop-node/index.ts:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11}
12class LoopModel extends AppNodeModel {
13 refreshBranch() {
14 // 更新节点连接边的path
15 this.incoming.edges.forEach((edge: any) => {
16 // 调用自定义的更新方案
17 edge.updatePathByAnchor()
18 })
19 this.outgoing.edges.forEach((edge: any) => {
20 edge.updatePathByAnchor()
21 })
22 }
23 getDefaultAnchor() {
24 const { id, x, y, width, height } = this
25 const showNode = this.properties.showNode === undefined ? true : this.properties.showNode

Callers

nothing calls this directly

Calls 1

updatePathByAnchorMethod · 0.45

Tested by

no test coverage detected