MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / toggleAdvanced

Method toggleAdvanced

src/LGraphNode.ts:3181–3188  ·  view source on GitHub ↗

* Toggles advanced mode of the node, showing advanced widgets

()

Source from the content-addressed store, hash-verified

3179 * Toggles advanced mode of the node, showing advanced widgets
3180 */
3181 toggleAdvanced() {
3182 if (!this.widgets?.some(w => w.advanced)) return
3183 if (!this.graph) throw new NullGraphError()
3184 this.graph._version++
3185 this.showAdvanced = !this.showAdvanced
3186 this.expandToFitContent()
3187 this.setDirtyCanvas(true, true)
3188 }
3189
3190 get pinned() {
3191 return !!this.flags.pinned

Callers 1

fApplyMultiNodeMethod · 0.80

Calls 2

expandToFitContentMethod · 0.95
setDirtyCanvasMethod · 0.95

Tested by

no test coverage detected