mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 15:40:10 +00:00
[CodeHealth] Apply modern standards to LGraphCanvas (#650)
- Prefer template string - Prefer explicit throw to undefined TypeError - Remove unnecessary `this` assignment
This commit is contained in:
@@ -200,7 +200,7 @@ export class LGraphGroup implements Positionable, IPinnable, IColorable {
|
||||
ctx.fill()
|
||||
|
||||
// Title
|
||||
ctx.font = font_size + "px Arial"
|
||||
ctx.font = `${font_size}px Arial`
|
||||
ctx.textAlign = "left"
|
||||
ctx.fillText(this.title + (this.pinned ? "📌" : ""), x + padding, y + font_size)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user