Use canvas.low_quality flag for DOMWidget show/hide (#2413)

This commit is contained in:
Chenlei Hu
2025-02-03 17:23:07 -08:00
committed by GitHub
parent 821816955f
commit 90914a40ba

View File

@@ -342,7 +342,7 @@ LGraphNode.prototype.addDOMWidget = function <
const { offset, scale } = app.canvas.ds
const hidden =
(!!options.hideOnZoom && scale < 0.5) ||
(!!options.hideOnZoom && app.canvas.low_quality) ||
widget.computedHeight <= 0 ||
// @ts-expect-error Used by widgetInputs.ts
widget.type === 'converted-widget' ||