UNPKG

image-in-browser

Version:

Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)

41 lines 1.55 kB
export class GifInfo { get width() { return this._width; } get height() { return this._height; } get backgroundColor() { return this._backgroundColor; } get frames() { return this._frames; } get colorResolution() { return this._colorResolution; } get globalColorMap() { return this._globalColorMap; } get isGif89() { return this._isGif89; } get numFrames() { return this.frames.length; } constructor(opt) { var _a, _b, _c, _d, _e; this._width = 0; this._height = 0; this._backgroundColor = undefined; this._isGif89 = false; this._width = (_a = opt === null || opt === void 0 ? void 0 : opt.width) !== null && _a !== void 0 ? _a : 0; this._height = (_b = opt === null || opt === void 0 ? void 0 : opt.height) !== null && _b !== void 0 ? _b : 0; this._backgroundColor = opt === null || opt === void 0 ? void 0 : opt.backgroundColor; this._frames = (_c = opt === null || opt === void 0 ? void 0 : opt.frames) !== null && _c !== void 0 ? _c : new Array(); this._colorResolution = (_d = opt === null || opt === void 0 ? void 0 : opt.colorResolution) !== null && _d !== void 0 ? _d : 0; this._globalColorMap = opt === null || opt === void 0 ? void 0 : opt.globalColorMap; this._isGif89 = (_e = opt === null || opt === void 0 ? void 0 : opt.isGif89) !== null && _e !== void 0 ? _e : false; } } //# sourceMappingURL=gif-info.js.map