formats.exposed/public/gif/constants.js

24 lines
460 B
JavaScript

// @ts-check
/** @enum {string} */
export const GifNodeType = [
"root",
"header",
"headerSignature",
"headerVersion",
"logicalScreenDescriptor",
"logicalScreenWidth",
"logicalScreenHeight",
"logicalScreenDescriptorPackedFields",
"logicalScreenBackgroundColorIndex",
"logicalScreenPixelAspectRatio",
"globalColorTable",
"globalColorTableColor",
].reduce((result, id) => {
result[id] = id;
return result;
}, Object.create(null));