formats.exposed/public/gif/constants.js

52 lines
1.0 KiB
JavaScript
Raw Normal View History

// @ts-check
/** @enum {string} */
2023-11-09 15:30:29 +00:00
export const GifNodeType = [
"root",
"header",
"headerSignature",
"headerVersion",
2023-08-16 15:46:31 +00:00
"logicalScreenDescriptor",
"logicalScreenWidth",
"logicalScreenHeight",
"logicalScreenDescriptorPackedFields",
"logicalScreenBackgroundColorIndex",
"logicalScreenPixelAspectRatio",
2023-08-16 16:59:33 +00:00
"globalColorTable",
"globalColorTableColor",
"imageSection",
"imageDescriptor",
"imageSeparator",
"imageDescriptorLeftPosition",
"imageDescriptorTopPosition",
"imageDescriptorWidth",
"imageDescriptorHeight",
"imageDescriptorPackedFields",
"localColorTable",
"localColorTableColor",
"imageData",
"imageDataLzwMinimumCodeSize",
"imageDataSubBlock",
"imageDataSubBlockSize",
"imageDataSubBlockData",
"imageDataTerminator",
"extensionBlockIntroducer",
"extensionBlockSize",
"unknownExtensionBlock",
"unknownExtensionBlockLabel",
"unknownExtensionBlockData",
2023-11-09 15:20:48 +00:00
"gifTerminator",
].reduce((result, id) => {
result[id] = id;
return result;
}, Object.create(null));