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)
82 lines (81 loc) • 3.2 kB
TypeScript
/** @format */
import { PsdEffect, PsdEffectOptions } from './psd-effect.js';
/**
* Interface representing the options for a drop shadow effect.
*/
export interface PsdDropShadowEffectOptions extends PsdEffectOptions {
/** The blur radius of the shadow. */
blur: number;
/** The intensity of the shadow. */
intensity: number;
/** The angle of the shadow. */
angle: number;
/** The distance of the shadow from the object. */
distance: number;
/** The color of the shadow as an array of numbers. */
color: number[];
/** The blend mode of the shadow. */
blendMode: string;
/** Whether the global angle is used. */
globalAngle: boolean;
/** The opacity of the shadow. */
opacity: number;
/** The native color of the shadow as an array of numbers. */
nativeColor: number[];
}
/**
* Class representing a drop shadow effect.
*/
export declare class PsdDropShadowEffect extends PsdEffect {
/** The blur radius of the shadow. */
private _blur;
/** Gets the blur radius of the shadow. */
get blur(): number;
/** The intensity of the shadow. */
private _intensity;
/** Gets the intensity of the shadow. */
get intensity(): number;
/** The angle of the shadow. */
private _angle;
/** Gets the angle of the shadow. */
get angle(): number;
/** The distance of the shadow from the object. */
private _distance;
/** Gets the distance of the shadow from the object. */
get distance(): number;
/** The color of the shadow as an array of numbers. */
private _color;
/** Gets the color of the shadow as an array of numbers. */
get color(): number[];
/** The blend mode of the shadow. */
private _blendMode;
/** Gets the blend mode of the shadow. */
get blendMode(): string;
/** Whether the global angle is used. */
private _globalAngle;
/** Gets whether the global angle is used. */
get globalAngle(): boolean;
/** The opacity of the shadow. */
private _opacity;
/** Gets the opacity of the shadow. */
get opacity(): number;
/** The native color of the shadow as an array of numbers. */
private _nativeColor;
/** Gets the native color of the shadow as an array of numbers. */
get nativeColor(): number[];
/**
* Initializes a new instance of the PsdDropShadowEffect class.
*
* @param {PsdDropShadowEffectOptions} opt - The options for the drop shadow effect.
* @param {number} opt.blur - The blur radius of the shadow.
* @param {number} opt.intensity - The intensity of the shadow.
* @param {number} opt.angle - The angle of the shadow.
* @param {number} opt.distance - The distance of the shadow from the object.
* @param {number[]} opt.color - The color of the shadow as an array of numbers.
* @param {string} opt.blendMode - The blend mode of the shadow.
* @param {boolean} opt.globalAngle - Whether the global angle is used.
* @param {number} opt.opacity - The opacity of the shadow.
* @param {number[]} opt.nativeColor - The native color of the shadow as an array of numbers.
*/
constructor(opt: PsdDropShadowEffectOptions);
}