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)
60 lines (59 loc) • 2.39 kB
TypeScript
/** @format */
import { PsdEffect, PsdEffectOptions } from './psd-effect.js';
/**
* Interface for options to configure the outer glow effect.
*/
export interface PsdOuterGlowEffectOptions extends PsdEffectOptions {
/** The blur radius of the outer glow. */
blur: number;
/** The intensity of the outer glow. */
intensity: number;
/** The color of the outer glow as an array of RGB values. */
color: number[];
/** The blend mode used for the outer glow. */
blendMode: string;
/** The opacity of the outer glow. */
opacity: number;
/** The native color of the outer glow, if any. */
nativeColor?: number[];
}
/**
* Class representing an outer glow effect.
*/
export declare class PsdOuterGlowEffect extends PsdEffect {
/** The blur radius of the outer glow. */
private _blur;
/** Gets the blur radius of the outer glow. */
get blur(): number;
/** The intensity of the outer glow. */
private _intensity;
/** Gets the intensity of the outer glow. */
get intensity(): number;
/** The color of the outer glow as an array of RGB values. */
private _color;
/** Gets the color of the outer glow. */
get color(): number[];
/** The blend mode used for the outer glow. */
private _blendMode;
/** Gets the blend mode used for the outer glow. */
get blendMode(): string;
/** The opacity of the outer glow. */
private _opacity;
/** Gets the opacity of the outer glow. */
get opacity(): number;
/** The native color of the outer glow, if any. */
private _nativeColor;
/** Gets the native color of the outer glow, if any. */
get nativeColor(): number[] | undefined;
/**
* Initializes a new instance of the PsdOuterGlowEffect class.
* @param {PsdOuterGlowEffectOptions} opt - The options to configure the outer glow effect.
* @param {number} opt.blur - The blur radius of the outer glow.
* @param {number} opt.intensity - The intensity of the outer glow.
* @param {number[]} opt.color - The color of the outer glow as an array of RGB values.
* @param {string} opt.blendMode - The blend mode used for the outer glow.
* @param {number} opt.opacity - The opacity of the outer glow.
* @param {string} [opt.nativeColor] - The native color of the outer glow, if any.
*/
constructor(opt: PsdOuterGlowEffectOptions);
}