Merge remote-tracking branch 'refs/remotes/LLK/develop' into feature/fencing

This commit is contained in:
griffpatch 2017-02-09 08:55:32 +00:00
commit fd2b86ea7a
2 changed files with 9 additions and 2 deletions
src

View file

@ -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;
}
/**

View file

@ -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: