Closed huchenlei closed 2 months ago
@huchenlei Do you think it's a good idea to use Primevue icon? Since the font is already loaded and the icons are mapped to unicode sequences.
ctx.textAlign = "left";
ctx.fillText(
title,
title_height,
LiteGraph.NODE_TITLE_TEXT_Y - title_height
);
if (node22.pinned) {
ctx.font = `${this.title_text_font.split(" ")[0]} PrimeIcons`
ctx.fillText(
"\uea25",
title_height + ctx.measureText(title).width + 8,
LiteGraph.NODE_TITLE_TEXT_Y - title_height
)
}