mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-14 15:29:17 -04:00
Initialize Measurement
This commit is contained in:
parent
35803dcfc9
commit
dc53feaf41
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ class SvgRenderer {
|
|||
constructor (canvas) {
|
||||
this._canvas = canvas || document.createElement('canvas');
|
||||
this._context = this._canvas.getContext('2d');
|
||||
this._measurements = {x: 0, y: 0, width: 0, height: 0};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue