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

Method pin

src/LGraphGroup.ts:133–138  ·  view source on GitHub ↗

* Prevents the group being accidentally moved or resized by mouse interaction. * Toggles pinned state if no value is provided.

(value?: boolean)

Source from the content-addressed store, hash-verified

131 * Toggles pinned state if no value is provided.
132 */
133 pin(value?: boolean): void {
134 const newState = value === undefined ? !this.pinned : value
135
136 if (newState) this.flags.pinned = true
137 else delete this.flags.pinned
138 }
139
140 unpin(): void {
141 this.pin(false)

Callers 2

unpinMethod · 0.95
getMenuOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected