function ArrayResource(source, options) {
        var _this = this;
        var _a = options || {}, width = _a.width, height = _a.height;
        var urls;
        var length;
        if (Array.isArray(source)) {
            urls = source;
            length = source.length;
        }
        else {
            length = source;
        }
        _this = _super.call(this, length, { width: width, height: height }) || this;
        if (urls) {
            _this.initFromArray(urls, options);
        }
        return _this;
    }
@param source - Number of items in array or the collection
       of image URLs to use. Can also be resources, image elements, canvas, etc.
@param options - Options to apply to {@link PIXI.autoDetectResource}
@param {number} [options.width] - Width of the resource
@param {number} [options.height] - Height of the resource