Frontend vueNode (node 2.0) support for mask rect area nodes (#1167)

This commit is contained in:
Terry Jia
2026-01-02 20:46:59 +09:00
committed by GitHub
parent 51b7dcdffa
commit 762fecd970
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -183,6 +183,13 @@ function showPreviewCanvas(node, app) {
widget.canvas.className = "mask-rect-area-canvas";
widget.parent = node;
widget.computeLayoutSize = function (node) {
return {
minHeight: 200,
maxHeight: 300
};
};
document.body.appendChild(widget.canvas);
node.addCustomWidget(widget);
+7
View File
@@ -176,6 +176,13 @@ function showPreviewCanvas(node, app) {
widget.canvas.className = "mask-rect-area-canvas";
widget.parent = node;
widget.computeLayoutSize = function (node) {
return {
minHeight: 200,
maxHeight: 300
};
};
document.body.appendChild(widget.canvas);
node.addCustomWidget(widget);