I find some problems,but i am not good at this
- NO open editor Button,
WEB_DIRECTORY = "./js" # Add this line in __init__ .python
- Button open editor cant work, on my computer,i am not sure everyone has the same problems
serializeJSON() {
const groups = this.canvas.getObjects().filter(i => i.type === "group");
const keypoints = groups.map(g => {
const circles = g.getObjects().filter(i => i.type === "circle");
// circles obtain tl.x and tl.y need get the group feild
return circles.map(c => [c.group.oCoords.tl.x, c.group.oCoords.tl.y]);
})
const json = JSON.stringify({
"width": this.canvas.width,
"height": this.canvas.height,
"keypoints": keypoints
}, null, 4)
return json;
}
- cant see buttons, this panel set 1000,the dialog-footer[ div class ] is too low
class OpenPosePanel {
node = null;
canvas = null;
canvasElem = null
panel = null
undo_history = []
redo_history = []
visibleEyes = true;
flipped = false;
lockMode = false;
constructor(panel, node) {
this.panel = panel;
this.node = node;
// you can reset the size , then restart comfyUI
**** const width = 900;
**** const height = 1000;
this.panel.style.width = `${width}px`;
this.panel.style.height = `${height}px`;
this.panel.style.left = `calc(50% - ${width/4}px)`
this.panel.style.top = `calc(50% - ${height/4}px)`

The buttons shows after I set height 850 ;
BTW,How to use it, i cant edit the picture
I find some problems,but i am not good at this
WEB_DIRECTORY = "./js" # Add this line in __init__ .python