MCPcopy
hub / github.com/gre/gl-react / setDrawProps

Method setDrawProps

packages/gl-react/src/Node.tsx:453–461  ·  view source on GitHub ↗

* Imperatively set the props with a partial subset of props to apply.

(patch: Partial<Props>)

Source from the content-addressed store, hash-verified

451 * Imperatively set the props with a partial subset of props to apply.
452 */
453 setDrawProps(patch: Partial<Props>) {
454 const nextProps: Props = {
455 ...this.drawProps,
456 ...patch,
457 };
458 this._syncNextDrawProps(nextProps, this.context);
459 this.redraw();
460 if (nextProps.sync) this.flush();
461 }
462
463 /**
464 * Capture the node pixels.

Callers 1

all.jsFile · 0.80

Calls 3

_syncNextDrawPropsMethod · 0.95
redrawMethod · 0.80
flushMethod · 0.65

Tested by

no test coverage detected