mirror of
https://github.com/photonstorm/phaser
synced 2024-12-21 10:33:35 +00:00
1 line
2.2 KiB
JSON
1 line
2.2 KiB
JSON
|
{"class":{"name":"PIXI.ImageLoader","extends":"","static":false,"constructor":true,"parameters":[{"name":"url","type":["string"],"help":"The url of the image","optional":false,"default":null},{"name":"crossorigin","type":["boolean"],"help":"Whether requests should be treated as crossorigin","optional":false,"default":null}],"help":"The image loader class is responsible for loading images file formats ('jpeg', 'jpg', 'png' and 'gif')\\nOnce the image has been loaded it is stored in the PIXI texture cache and can be accessed though PIXI.Texture.fromFrame() and PIXI.Sprite.fromFrame()\\nWhen loaded this class will dispatch a 'loaded' event"},"consts":[],"methods":{"public":[{"name":"load","static":false,"returns":null,"help":"Loads image or takes it from cache","line":47,"public":true,"protected":false,"private":false,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"loadFramedSpriteSheet","static":false,"returns":null,"help":"Loads image and split it to uniform sized frames","line":78,"public":true,"protected":false,"private":false,"parameters":[{"name":"frameWidth","type":["number"],"help":"width of each frame","optional":false,"default":null},{"name":"frameHeight","type":["number"],"help":"height of each frame","optional":false,"default":null},{"name":"textureName","type":["string"],"help":"if given, the frames will be cached in <textureName>-<ord> format","optional":false,"default":null}],"inherited":false,"inheritedFrom":""}],"protected":[],"private":[{"name":"onLoaded","static":false,"returns":null,"help":"Invoked when image file is loaded or it is already cached and ready to use","line":65,"public":false,"protected":false,"private":true,"parameters":[],"inherited":false,"inheritedFrom":""}],"static":[]},"properties":{"public":[{"name":"frames","type":["array"],"help":"if the image is loaded with loadFramedSpriteSheet\\nframes will contain the sprite sheet frames","inlineHelp":"","line":34,"default":null,"public":true,"protected":false,"private":false,"readOnly":true},{"name":"texture","type":["PIXI.Texture"],"help":"The texture being loaded","inlineHelp":"","line":24,"default":null,"public":true,"protected":false,"private":false,"readOnly":false}],"protected":[],"private":[]}}
|