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 (40 loc) 1.16 kB
/** @format */ import { PvrColorRgbCore } from './pvr-color-rgb-core.js'; /** * Type representing a PvrColor. */ export type PvrColor = PvrColorRgbCore<PvrColor>; /** * Class representing a bounding box for PvrColor. */ export declare class PvrColorBoundingBox { /** * The minimum PvrColor value in the bounding box. */ private _min; /** * Gets the minimum PvrColor value in the bounding box. * @returns {PvrColor} The minimum PvrColor value. */ get min(): PvrColor; /** * The maximum PvrColor value in the bounding box. */ private _max; /** * Gets the maximum PvrColor value in the bounding box. * @returns {PvrColor} The maximum PvrColor value. */ get max(): PvrColor; /** * Creates an instance of PvrColorBoundingBox. * @param {PvrColor} min - The minimum PvrColor value. * @param {PvrColor} max - The maximum PvrColor value. */ constructor(min: PvrColor, max: PvrColor); /** * Adds a PvrColor to the bounding box, updating the min and max values. * @param {PvrColor} c - The PvrColor to add. */ add(c: PvrColor): void; }