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

Method refreshBranch

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

Source from the content-addressed store, hash-verified

16}
17class LoopBodyModel extends AppNodeModel {
18 refreshBranch() {
19 // 更新节点连接边的path
20 this.incoming.edges.forEach((edge: any) => {
21 // 调用自定义的更新方案
22 edge.updatePathByAnchor()
23 })
24 this.outgoing.edges.forEach((edge: any) => {
25 edge.updatePathByAnchor()
26 })
27 }
28 getDefaultAnchor() {
29 const { id, x, y, width, height } = this
30 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