rgthree-comfy icon indicating copy to clipboard operation
rgthree-comfy copied to clipboard

Add stayOnTop property to Label node

Open UrzasLegacy opened this issue 1 year ago • 0 comments

I added a boolean property to the Label node to set whether the Label should stay in front of other nodes by modifying LGraphCanvas.prototype.draw to call __LGraphCanvas.bringToFront after drawing nodes.

I am very new to the Javascript side, I just wanted the labels to stay on top D: Changes are minimal and it works, but I was flying by the seat of my pants so please review for bad practices and/or a better method to do this.

stayOnTop.webm

UrzasLegacy avatar Sep 01 '24 21:09 UrzasLegacy