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

Method setHeight

ui/src/workflow/common/app-node.ts:383–397  ·  view source on GitHub ↗
(height: number)

Source from the content-addressed store, hash-verified

381 }
382
383 setHeight(height: number) {
384 const sourceHeight = this.height
385 const targetHeight = height + 100
386 this.height = targetHeight
387 this.properties['height'] = targetHeight
388 this.move(0, (targetHeight - sourceHeight) / 2)
389 this.outgoing.edges.forEach((edge: any) => {
390 // 调用自定义的更新方案
391 edge.updatePathByAnchor()
392 })
393 this.incoming.edges.forEach((edge: any) => {
394 // 调用自定义的更新方案
395 edge.updatePathByAnchor()
396 })
397 }
398 get_width() {
399 return this.properties?.width || 340
400 }

Callers

nothing calls this directly

Calls 2

moveMethod · 0.80
updatePathByAnchorMethod · 0.45

Tested by

no test coverage detected