[i18n] Add INodeSlot.localized_name field (#376)

* [i18n] Add INodeSlot.localized_name field

* nit
This commit is contained in:
Chenlei Hu
2024-12-13 12:01:21 -08:00
committed by GitHub
parent 1c1241bdb1
commit 0048b5a0fe
4 changed files with 21 additions and 5 deletions

View File

@@ -3348,7 +3348,7 @@ export class LGraphCanvas {
// TODO: Find a cheap way to measure text, and do it on node label change instead of here
// Input icon width + text approximation
const width =
20 + ((input.label?.length ?? input.name?.length) || 3) * 7
20 + ((input.label?.length ?? input.localized_name?.length ?? input.name?.length) || 3) * 7
is_inside = isInRectangle(
canvasx,
canvasy,