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.15 kB
TypeScript
/** @format */
import { PsdEffect, PsdEffectOptions } from './psd-effect.js';
/**
* Interface for the options of the PsdInnerShadowEffect.
*/
export interface PsdInnerShadowEffectOptions extends PsdEffectOptions {
/** The blur amount of the inner shadow. */
blur: number;
/** The intensity of the inner shadow. */
intensity: number;
/** The angle of the inner shadow. */
angle: number;
/** The distance of the inner shadow. */
distance: number;
/** The color of the inner shadow. */
color: number[];
/** The blend mode of the inner shadow. */
blendMode: string;
/** Whether the global angle is used. */
globalAngle: boolean;
/** The opacity of the inner shadow. */
opacity: number;
/** The native color of the inner shadow. */
nativeColor: number[];
}
/**
* Class representing an inner shadow effect in a PSD.
*/
export declare class PsdInnerShadowEffect extends PsdEffect {
/** The blur amount of the inner shadow. */
private _blur;
/** Gets the blur amount of the inner shadow. */
get blur(): number;
/** The intensity of the inner shadow. */
private _intensity;
/** Gets the intensity of the inner shadow. */
get intensity(): number;
/** The angle of the inner shadow. */
private _angle;
/** Gets the angle of the inner shadow. */
get angle(): number;
/** The distance of the inner shadow. */
private _distance;
/** Gets the distance of the inner shadow. */
get distance(): number;
/** The color of the inner shadow. */
private _color;
/** Gets the color of the inner shadow. */
get color(): number[];
/** The blend mode of the inner shadow. */
private _blendMode;
/** Gets the blend mode of the inner 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 inner shadow. */
private _opacity;
/** Gets the opacity of the inner shadow. */
get opacity(): number;
/** The native color of the inner shadow. */
private _nativeColor;
/** Gets the native color of the inner shadow. */
get nativeColor(): number[];
/**
* Initializes a new instance of the PsdInnerShadowEffect class.
*
* @param {PsdInnerShadowEffectOptions} opt - The options for the inner shadow effect.
* @param {number} opt.blur - The blur amount of the inner shadow.
* @param {number} opt.intensity - The intensity of the inner shadow.
* @param {number} opt.angle - The angle of the inner shadow.
* @param {number} opt.distance - The distance of the inner shadow.
* @param {string} opt.color - The color of the inner shadow.
* @param {string} opt.blendMode - The blend mode of the inner shadow.
* @param {boolean} opt.globalAngle - Whether the global angle is used.
* @param {number} opt.opacity - The opacity of the inner shadow.
* @param {string} opt.nativeColor - The native color of the inner shadow.
*/
constructor(opt: PsdInnerShadowEffectOptions);
}