Sprite.SizeMode 枚举
模块: cc
精灵尺寸调整模式
索引
CUSTOMTRIMMEDRAW
Details
CUSTOM
使用节点预设的尺寸
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCSprite.js:88 |
TRIMMED
自动适配为精灵裁剪后的尺寸
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCSprite.js:94 |
RAW
自动适配为精灵原图尺寸
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCSprite.js:100 |