(canvas: HTMLCanvasElement, canvasSize: Size)
| 79 | } |
| 80 | |
| 81 | setCanvas(canvas: HTMLCanvasElement, canvasSize: Size) { |
| 82 | this._context = getCanvasContext( |
| 83 | canvas, |
| 84 | canvasSize.height, |
| 85 | canvasSize.width, |
| 86 | ); |
| 87 | this._canvasSize = canvasSize; |
| 88 | |
| 89 | if (this.rootView) { |
| 90 | this.rootView.setNeedsDisplay(); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | displayIfNeeded() { |
| 95 | const {rootView, _canvasSize, _context} = this; |
no test coverage detected