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

Method refreshDeges

ui/src/workflow/common/app-node.ts:325–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323
324class AppNodeModel extends HtmlResize.model {
325 refreshDeges() {
326 // 更新节点连接边的path
327 this.incoming.edges.forEach((edge: any) => {
328 // 调用自定义的更新方案
329 edge.updatePathByAnchor()
330 })
331 this.outgoing.edges.forEach((edge: any) => {
332 edge.updatePathByAnchor()
333 })
334 }
335 set_position(position: { x?: number; y?: number }) {
336 const { x, y } = position
337 if (x) {

Callers 1

set_positionMethod · 0.95

Calls 1

updatePathByAnchorMethod · 0.45

Tested by

no test coverage detected