exportSprite (targetId, optZipType) {
        this.emit('exportSprite*');
        const sb3 = require('./serialization/sb3');

        const soundDescs = serializeSounds(this.runtime, targetId);
        const costumeDescs = serializeCostumes(this.runtime, targetId);
        const spriteJson = StringUtil.stringify(sb3.serialize(this.runtime, targetId));

        const zip = new JSZip();
        zip.file('sprite.json', spriteJson);
        this._addFileDescsToZip(soundDescs.concat(costumeDescs), zip);

        return zip.generateAsync({
            type: typeof optZipType === 'string' ? optZipType : 'blob',
            mimeType: 'application/x.scratch.sprite3',
            compression: 'DEFLATE',
            compressionOptions: {
                level: 6
            }
        });
    }
/**
     * Exports a sprite in the sprite3 format.
     * @param {string} targetId ID of the target to export
     * @param {string=} optZipType Optional type that the resulting
     * zip should be outputted in. Options are: base64, binarystring,
     * array, uint8array, arraybuffer, blob, or nodebuffer. Defaults to
     * blob if argument not provided.
     * See https://stuk.github.io/jszip/documentation/api_jszip/generate_async.html#type-option
     * for more information about these options.
     * @return {object} A generated zip of the sprite and its assets in the format
     * specified by optZipType or blob by default.
     */
Exports a sprite in the sprite3 format.
@param {string} targetId ID of the target to export
@param {string=} optZipType Optional type that the resulting
zip should be outputted in. Options are: base64, binarystring,
array, uint8array, arraybuffer, blob, or nodebuffer. Defaults to
blob if argument not provided.
Exports a sprite in the sprite3 format . @param { string } targetId ID of the target to export @param { string = } optZipType Optional type that the resulting zip should be outputted in . Options are : base64 binarystring array uint8array arraybuffer blob or nodebuffer . Defaults to blob if argument not provided .
exportSprite (targetId, optZipType) {
        this.emit('exportSprite*');
        const sb3 = require('./serialization/sb3');
        const soundDescs = serializeSounds(this.runtime, targetId);
        const costumeDescs = serializeCostumes(this.runtime, targetId);
        const spriteJson = StringUtil.stringify(sb3.serialize(this.runtime, targetId));
        const zip = new JSZip();
        zip.file('sprite.json', spriteJson);
        this._addFileDescsToZip(soundDescs.concat(costumeDescs), zip);
        return zip.generateAsync({
            type: typeof optZipType === 'string' ? optZipType : 'blob',
            mimeType: 'application/x.scratch.sprite3',
            compression: 'DEFLATE',
            compressionOptions: {
                level: 6
            }
        });
    }
exportSprite ( targetId , optZipType ) { this . emit ( 'exportSprite*' ) ; const sb3 = require ( './serialization/sb3' ) ; const soundDescs = serializeSounds ( this . runtime , targetId ) ; const costumeDescs = serializeCostumes ( this . runtime , targetId ) ; const spriteJson = StringUtil . stringify ( sb3 . serialize ( this . runtime , targetId ) ) ; const zip = new JSZip ( ) ; zip . file ( 'sprite.json' , spriteJson ) ; this . _addFileDescsToZip ( soundDescs . concat ( costumeDescs ) , zip ) ; return zip . generateAsync ( { type : typeof optZipType === 'string' ? optZipType : 'blob' , mimeType : 'application/x.scratch.sprite3' , compression : 'DEFLATE' , compressionOptions : { level : 6 } } ) ; }
Exports a sprite in the sprite3 format.
Exports a sprite in the sprite3 format .