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)

95 lines (94 loc) 2.58 kB
/** @format */ import { InputBuffer } from '../../common/input-buffer.js'; /** * Represents a PSD mask with properties for its boundaries and attributes. */ export declare class PsdMask { /** * The top boundary of the mask. */ private _top; /** * Gets the top boundary of the mask. * @returns {number} The top boundary. */ get top(): number; /** * The left boundary of the mask. */ private _left; /** * Gets the left boundary of the mask. * @returns {number} The left boundary. */ get left(): number; /** * The right boundary of the mask. */ private _right; /** * Gets the right boundary of the mask. * @returns {number} The right boundary. */ get right(): number; /** * The bottom boundary of the mask. */ private _bottom; /** * Gets the bottom boundary of the mask. * @returns {number} The bottom boundary. */ get bottom(): number; /** * The default color of the mask. */ private _defaultColor; /** * Gets the default color of the mask. * @returns {number} The default color. */ get defaultColor(): number; /** * The flags representing various attributes of the mask. */ private _flags; /** * Gets the flags representing various attributes of the mask. * @returns {number} The flags. */ get flags(): number; /** * Additional parameters for the mask. */ private _params; /** * Gets the additional parameters for the mask. * @returns {number} The parameters. */ get params(): number; /** * Checks if the mask is relative. * @returns {boolean} True if the mask is relative, otherwise false. */ get relative(): boolean; /** * Checks if the mask is disabled. * @returns {boolean} True if the mask is disabled, otherwise false. */ get disabled(): boolean; /** * Checks if the mask is inverted. * @returns {boolean} True if the mask is inverted, otherwise false. */ get invert(): boolean; /** * Initializes a new instance of the PsdMask class. * @param {InputBuffer<Uint8Array>} input - The input buffer to read mask data from. * - length: The length of the input buffer. * - readUint32: Reads a 32-bit unsigned integer from the buffer. * - read: Reads a byte from the buffer. * - skip: Skips a specified number of bytes in the buffer. */ constructor(input: InputBuffer<Uint8Array>); }