MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / isWidgetVisible

Method isWidgetVisible

src/LGraphNode.ts:3536–3543  ·  view source on GitHub ↗

* Returns `true` if the widget is visible, otherwise `false`.

(widget: IBaseWidget)

Source from the content-addressed store, hash-verified

3534 * Returns `true` if the widget is visible, otherwise `false`.
3535 */
3536 isWidgetVisible(widget: IBaseWidget): boolean {
3537 const isHidden = (
3538 this.collapsed ||
3539 widget.hidden ||
3540 (widget.advanced && !this.showAdvanced)
3541 )
3542 return !isHidden
3543 }
3544
3545 drawWidgets(ctx: CanvasRenderingContext2D, {
3546 lowQuality = false,

Callers 3

computeSizeMethod · 0.95
getWidgetOnPosMethod · 0.95
drawWidgetsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected