Add compare node frontend viewer
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
export function isVueNodes() {
|
||||
return !!window.LiteGraph?.vueNodesMode;
|
||||
}
|
||||
|
||||
export function applyAdaptiveCanvasOnly(widget) {
|
||||
if (!widget || !widget.options) return widget;
|
||||
try {
|
||||
Object.defineProperty(widget.options, "canvasOnly", {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
get() {
|
||||
return !window.LiteGraph?.vueNodesMode;
|
||||
},
|
||||
});
|
||||
} catch (_error) {
|
||||
widget.options.canvasOnly = !window.LiteGraph?.vueNodesMode;
|
||||
}
|
||||
return widget;
|
||||
}
|
||||
Reference in New Issue
Block a user