[nit] Move labelPosition to NodeSlot.draw (#497)

This commit is contained in:
Chenlei Hu
2025-02-08 22:39:32 -05:00
committed by GitHub
parent 64fddc078c
commit 7472d1d9a1
2 changed files with 5 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ import {
isInRect,
snapPoint,
} from "./measure"
import { LabelPosition, strokeShape } from "./draw"
import { strokeShape } from "./draw"
import { DragAndScale } from "./DragAndScale"
import { LinkReleaseContextExtended, LiteGraph } from "./litegraph"
import { stringOrEmpty, stringOrNull } from "./strings"
@@ -4736,7 +4736,6 @@ export class LGraphCanvas implements ConnectionColorContext {
pos,
colorContext: this,
labelColor: label_color,
labelPosition: LabelPosition.Right,
horizontal,
lowQuality: low_quality,
renderText: render_text,
@@ -4771,7 +4770,6 @@ export class LGraphCanvas implements ConnectionColorContext {
pos,
colorContext: this,
labelColor: label_color,
labelPosition: LabelPosition.Left,
horizontal,
lowQuality: low_quality,
renderText: render_text,