* Imperatively set the props with a partial subset of props to apply.
(patch: Partial<Props>)
| 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. |
no test coverage detected