Lock BG compositor 4

This commit is contained in:
Lucas
2025-12-16 12:52:17 -05:00
parent 9d90ae0af3
commit b68d79b5f8
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ function isCompositor3(node) {
}
function isCompositorConfig3(node) {
return node.constructor.comfyClass == "CompositorConfig3";
return node.constructor.comfyClass == "CompositorConfig3-beyond_nodes";
}
function getCompositorWidget(node, widgetName) {
+8 -8
View File
@@ -2864,10 +2864,10 @@ const Editor = (node, fabric) => {
// Update composition border
if (compositionBorder) {
compositionBorder.set({
left: p - COMPOSITION_BORDER_SIZE,
top: p - COMPOSITION_BORDER_SIZE,
width: w + COMPOSITION_BORDER_SIZE * 2,
height: h + COMPOSITION_BORDER_SIZE * 2,
left: p + COMPOSITION_BORDER_SIZE - COMPOSITION_BORDER_SIZE / 2,
top: p + COMPOSITION_BORDER_SIZE - COMPOSITION_BORDER_SIZE / 2,
width: w + COMPOSITION_BORDER_SIZE,
height: h + COMPOSITION_BORDER_SIZE,
});
}
@@ -4411,10 +4411,10 @@ const Editor = (node, fabric) => {
// Update composition border
compositionBorder.set({
left: canvasPadding - COMPOSITION_BORDER_SIZE,
top: canvasPadding - COMPOSITION_BORDER_SIZE,
width: canvasWidth + COMPOSITION_BORDER_SIZE * 2,
height: canvasHeight + COMPOSITION_BORDER_SIZE * 2,
left: canvasPadding + COMPOSITION_BORDER_SIZE - COMPOSITION_BORDER_SIZE / 2,
top: canvasPadding + COMPOSITION_BORDER_SIZE - COMPOSITION_BORDER_SIZE / 2,
width: canvasWidth + COMPOSITION_BORDER_SIZE,
height: canvasHeight + COMPOSITION_BORDER_SIZE,
});
// Update container size