Skip to content

Commit

Permalink
docs: update todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xachary committed Nov 5, 2024
1 parent 8d35632 commit e3fb4b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Render/draws/LinkDraw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,11 @@ export class LinkDraw extends Types.BaseDraw implements Types.Draw {
this.render.emit('link-type-change', this.state.linkType)
}

// TODO: 优化
// *思路:此 draw 弃用“整体 redraw”的方式,改为“局部更新”的方式:
// 循环 pair 的时候查找 link-line、manualing-line、link-manual-point 等实例是否存在
// 不存在 -> 新建并事件绑定
// 存在 -> 更新
override draw() {
this.clear()

Expand Down

0 comments on commit e3fb4b6

Please sign in to comment.