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)

68 lines (67 loc) 2.89 kB
/** @format */ import { PsdEffect, PsdEffectOptions } from './psd-effect.js'; /** * Interface for options specific to the inner glow effect. */ export interface PsdInnerGlowEffectOptions extends PsdEffectOptions { /** The blur radius of the inner glow effect. */ blur: number; /** The intensity of the inner glow effect. */ intensity: number; /** The color of the inner glow effect as an array of numbers. */ color: number[]; /** The blend mode of the inner glow effect. */ blendMode: string; /** The opacity of the inner glow effect. */ opacity: number; /** Optional flag to invert the inner glow effect. */ invert?: boolean; /** Optional native color of the inner glow effect as an array of numbers. */ nativeColor?: number[]; } /** * Class representing an inner glow effect. */ export declare class PsdInnerGlowEffect extends PsdEffect { /** The blur radius of the inner glow effect. */ private _blur; /** Gets the blur radius of the inner glow effect. */ get blur(): number; /** The intensity of the inner glow effect. */ private _intensity; /** Gets the intensity of the inner glow effect. */ get intensity(): number; /** The color of the inner glow effect. */ private _color; /** Gets the color of the inner glow effect. */ get color(): number[]; /** The blend mode of the inner glow effect. */ private _blendMode; /** Gets the blend mode of the inner glow effect. */ get blendMode(): string; /** The opacity of the inner glow effect. */ private _opacity; /** Gets the opacity of the inner glow effect. */ get opacity(): number; /** Optional flag to invert the inner glow effect. */ private _invert; /** Gets the optional flag to invert the inner glow effect. */ get invert(): boolean | undefined; /** Optional native color of the inner glow effect. */ private _nativeColor; /** Gets the optional native color of the inner glow effect. */ get nativeColor(): number[] | undefined; /** * Initializes a new instance of the PsdInnerGlowEffect class. * * @param {PsdInnerGlowEffectOptions} opt - The options for the inner glow effect. * @param {number} opt.blur - The blur radius of the inner glow effect. * @param {number} opt.intensity - The intensity of the inner glow effect. * @param {number[]} opt.color - The color of the inner glow effect as an array of numbers. * @param {string} opt.blendMode - The blend mode of the inner glow effect. * @param {number} opt.opacity - The opacity of the inner glow effect. * @param {boolean} [opt.invert] - Optional flag to invert the inner glow effect. * @param {number[]} [opt.nativeColor] - Optional native color of the inner glow effect as an array of numbers. */ constructor(opt: PsdInnerGlowEffectOptions); }