Sprite.SizeMode Enum
Module: cc
Sprite Size can track trimmed size, raw size or none.
Index
CUSTOMTRIMMEDRAW
Details
CUSTOM
Use the customized node size.
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCSprite.js:88 |
TRIMMED
Match the trimmed size of the sprite frame automatically.
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCSprite.js:94 |
RAW
Match the raw size of the sprite frame automatically.
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCSprite.js:100 |