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

Method arrange

src/LGraphNode.ts:3830–3835  ·  view source on GitHub ↗

* Arranges node elements in preparation for rendering (slots & widgets).

()

Source from the content-addressed store, hash-verified

3828 * Arranges node elements in preparation for rendering (slots & widgets).
3829 */
3830 arrange(): void {
3831 const slotsBounds = this.#measureSlots()
3832 const widgetStartY = slotsBounds ? slotsBounds[1] + slotsBounds[3] - this.pos[1] : 0
3833 this.#arrangeWidgets(widgetStartY)
3834 this.#arrangeWidgetInputSlots()
3835 }
3836
3837 /**
3838 * Draws a progress bar on the node.

Callers

nothing calls this directly

Calls 3

#measureSlotsMethod · 0.95
#arrangeWidgetsMethod · 0.95

Tested by

no test coverage detected