Add `updateTexture` & some shortcuts in Sprite; Cosmetic (#4000)
* Add `updateText` and some shortcuts for texture * Add `updateText`. If a sprite is create by a canvas , when the canvas's changed , user could call `updateText` for updating sprite. * Add some shortcuts for accessing some properties of sprite._texture. * Cosmetic, for DRY Just define some local vars for accessing properties of `this` , for DRY. * remove the changing of Sprite |
---|
|
src/core/text/Text.js |
---|