mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
[nit] Remove IDrawOptions.showText (#879)
`showText` is essentially an alias of `!lowQuality`. Removing it from the interface.
This commit is contained in:
@@ -3551,7 +3551,6 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
|
||||
colorContext,
|
||||
labelColor,
|
||||
lowQuality,
|
||||
renderText: !lowQuality,
|
||||
highlight,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ interface IDrawOptions {
|
||||
labelColor?: CanvasColour
|
||||
labelPosition?: LabelPosition
|
||||
lowQuality?: boolean
|
||||
renderText?: boolean
|
||||
doStroke?: boolean
|
||||
highlight?: boolean
|
||||
}
|
||||
@@ -149,7 +148,6 @@ export abstract class NodeSlot implements INodeSlot {
|
||||
labelColor = "#AAA",
|
||||
labelPosition = LabelPosition.Right,
|
||||
lowQuality = false,
|
||||
renderText = true,
|
||||
highlight = false,
|
||||
} = options
|
||||
let { doStroke = false } = options
|
||||
@@ -216,7 +214,7 @@ export abstract class NodeSlot implements INodeSlot {
|
||||
if (!lowQuality && doStroke) ctx.stroke()
|
||||
|
||||
// render slot label
|
||||
if (renderText) {
|
||||
if (!lowQuality) {
|
||||
const text = this.renderingLabel
|
||||
if (text) {
|
||||
// TODO: Finish impl. Highlight text on mouseover unless we're connecting links.
|
||||
|
||||
Reference in New Issue
Block a user