Better SVG support (#2614)
* Better SVG support

* Images are loaded using canvas which enables pre-scaled textures
* Scaling is done by providing an extra parameter `sourceScale` to the `fromImage` method
* Size of the original SVG source is checked with an extra XHR (necessary step for the canvas API to work)
* Supports data URI based SVG

* Fixed brace-style.

* Added util tests.

* Rebased to latest dev. Added 'px' support.
1 parent 77fd692 commit 4bcacc57bb764782cb307f10ee2048f7d4a4fddd
@Juha Rantanen Juha Rantanen authored on 25 Sep 2016
Chad Engler committed on 25 Sep 2016
Showing 5 changed files
View
src/core/const.js
View
src/core/textures/BaseTexture.js
View
src/core/textures/Texture.js
View
src/core/utils/index.js
View
test/core/util.js