Files
JiboOs/docs/rendering/tasks/ShapesTask.js
2026-03-16 13:53:01 +02:00

32 lines
1.1 KiB
JavaScript

/**
* Loads a shapes manifest file and sets it up for PixiAnimate.
* @class ShapesTask
* @memberof jibo.loader
* @private
* @param {String} asset.type Must be "shapes" to signify that this asset should be parsed
* specifically for PixiAnimate.
* @param {String} [asset.src] The texture image path.
* @param {Boolean} [asset.cache=false] `true` to cache the result.
* @param {String} [asset.id] The ID of the task.
* @param {Function} [asset.complete] The callback to call when the load is completed.
*/
/**
* Tests if an asset should be loaded.
* @method jibo.loader.ShapesTask.test
* @static
* @param {Object} asset The asset to test.
* @return {Boolean} `true` if the asset qualifies for this task.
*/
/**
* The atlas source path.
* @name jibo.loader.ShapesTask#src
* @type {String}
*/
/**
* Starts the load.
* @method jibo.loader.ShapesTask#start
* @param {jibo.loader.Task~completeCallback} callback Callback to call when the load is done.
*/