Skip to content

Function: zipLayers() ​

ts
function zipLayers(layers, options?): Uint8Array;

Defined in: layers.ts:195

Packs already-converted layers into one archive.

Parameters ​

ParameterTypeDescription
layersreadonly WrittenLayer[]The result of writeLayers.
optionsPick<WriteLayersOptions, "layout" | "folder" | "level">layout, folder and level.

Returns ​

Uint8Array

The zip archive as bytes.

Throws ​

If layers is empty.

Released under the MIT License.