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

Method from

src/infrastructure/Rectangle.ts:29–31  ·  view source on GitHub ↗
([x, y, width, height]: ReadOnlyRect)

Source from the content-addressed store, hash-verified

27 }
28
29 static override from([x, y, width, height]: ReadOnlyRect): Rectangle {
30 return new Rectangle(x, y, width, height)
31 }
32
33 /**
34 * Creates a new rectangle positioned at the given centre, with the given width/height.

Callers 5

Subgraph.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected