(height: number)
| 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 | } |
nothing calls this directly
no test coverage detected