MCPcopy Create free account
hub / github.com/gre/gl-react / capture

Method capture

packages/gl-react/src/Bus.tsx:132–135  ·  view source on GitHub ↗

* Capture the underlying Node pixels. * NB it only works for nodes, not for content like video/canvas.

(x?: number, y?: number, w?: number, h?: number)

Source from the content-addressed store, hash-verified

130 * NB it only works for nodes, not for content like video/canvas.
131 */
132 capture(x?: number, y?: number, w?: number, h?: number): NDArray {
133 invariant(this.glNode, "Bus does not contain any Node");
134 return this.glNode!.capture(x, y, w, h);
135 }
136
137 glBusRootNode: any = null;
138 onRef = (ref: any) => {

Callers

nothing calls this directly

Calls 1

captureMethod · 0.65

Tested by

no test coverage detected