mirror of
https://github.com/photonstorm/phaser
synced 2024-09-20 06:21:54 +00:00
parent
000beb2bd0
commit
01ca4293e4
2 changed files with 20 additions and 0 deletions
|
@ -86,6 +86,16 @@ var MatterImage = new Class({
|
|||
{
|
||||
GameObject.call(this, world.scene, 'Image');
|
||||
|
||||
/**
|
||||
* The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method.
|
||||
*
|
||||
* @name Phaser.Physics.Matter.Image#_crop
|
||||
* @type {object}
|
||||
* @private
|
||||
* @since 3.24.0
|
||||
*/
|
||||
this._crop = this.resetCropObject();
|
||||
|
||||
this.setTexture(texture, frame);
|
||||
this.setSizeToFrame();
|
||||
this.setOrigin();
|
||||
|
|
|
@ -90,6 +90,16 @@ var MatterSprite = new Class({
|
|||
{
|
||||
GameObject.call(this, world.scene, 'Sprite');
|
||||
|
||||
/**
|
||||
* The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method.
|
||||
*
|
||||
* @name Phaser.Physics.Matter.Sprite#_crop
|
||||
* @type {object}
|
||||
* @private
|
||||
* @since 3.24.0
|
||||
*/
|
||||
this._crop = this.resetCropObject();
|
||||
|
||||
this.anims = new AnimationComponent(this);
|
||||
|
||||
this.setTexture(texture, frame);
|
||||
|
|
Loading…
Reference in a new issue