mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-13 23:11:46 -04:00
Merge remote-tracking branch 'refs/remotes/LLK/develop' into feature/fencing
This commit is contained in:
commit
fd2b86ea7a
2 changed files with 9 additions and 2 deletions
src
|
@ -34,10 +34,10 @@ class SVGSkin extends Skin {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {[number,number]} the "native" size, in texels, of this skin.
|
||||
* @return {[number,number]} the natural size, in Scratch units, of this skin.
|
||||
*/
|
||||
get size () {
|
||||
return [this._svgRenderer.canvas.width, this._svgRenderer.canvas.height];
|
||||
return this._svgRenderer.size;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -72,6 +72,13 @@ class SvgRenderer {
|
|||
this._draw();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {[number,number]} the natural size, in Scratch units, of this SVG.
|
||||
*/
|
||||
get size () {
|
||||
return [this._measurements.width, this._measurements.height];
|
||||
}
|
||||
|
||||
/**
|
||||
* Transforms an SVG's text elements for Scratch 2.0 quirks.
|
||||
* These quirks include:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue