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

Method isPointInside

src/LGraphNode.ts:1948–1950  ·  view source on GitHub ↗

* checks if a point is inside the shape of a node

(x: number, y: number)

Source from the content-addressed store, hash-verified

1946 * checks if a point is inside the shape of a node
1947 */
1948 isPointInside(x: number, y: number): boolean {
1949 return isInRect(x, y, this.boundingRect)
1950 }
1951
1952 /**
1953 * Checks if the provided point is inside this node's collapse button area.

Callers 4

constructorMethod · 0.45
getNodeOnPosMethod · 0.45
getGroupOnPosMethod · 0.45

Calls 1

isInRectFunction · 0.90

Tested by

no test coverage detected