52 lines
1.0 KiB
JavaScript
52 lines
1.0 KiB
JavaScript
// @ts-check
|
|
|
|
/** @enum {string} */
|
|
export const GifNodeType = [
|
|
"root",
|
|
|
|
"header",
|
|
"headerSignature",
|
|
"headerVersion",
|
|
|
|
"logicalScreenDescriptor",
|
|
"logicalScreenWidth",
|
|
"logicalScreenHeight",
|
|
"logicalScreenDescriptorPackedFields",
|
|
"logicalScreenBackgroundColorIndex",
|
|
"logicalScreenPixelAspectRatio",
|
|
|
|
"globalColorTable",
|
|
"globalColorTableColor",
|
|
|
|
"imageSection",
|
|
"imageDescriptor",
|
|
"imageSeparator",
|
|
"imageDescriptorLeftPosition",
|
|
"imageDescriptorTopPosition",
|
|
"imageDescriptorWidth",
|
|
"imageDescriptorHeight",
|
|
"imageDescriptorPackedFields",
|
|
|
|
"localColorTable",
|
|
"localColorTableColor",
|
|
|
|
"imageData",
|
|
"imageDataLzwMinimumCodeSize",
|
|
"imageDataSubBlock",
|
|
"imageDataSubBlockSize",
|
|
"imageDataSubBlockData",
|
|
"imageDataTerminator",
|
|
|
|
"extensionBlockIntroducer",
|
|
"extensionBlockSize",
|
|
|
|
"unknownExtensionBlock",
|
|
"unknownExtensionBlockLabel",
|
|
"unknownExtensionBlockData",
|
|
|
|
"gifTerminator",
|
|
].reduce((result, id) => {
|
|
result[id] = id;
|
|
return result;
|
|
}, Object.create(null));
|