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)
117 lines (116 loc) • 4.71 kB
TypeScript
/** @format */
import { PsdEffect, PsdEffectOptions } from './psd-effect.js';
/**
* Interface for Bevel Effect options.
*/
export interface PsdBevelEffectOptions extends PsdEffectOptions {
/** The angle of the bevel effect. */
angle: number;
/** The strength of the bevel effect. */
strength: number;
/** The blur radius of the bevel effect. */
blur: number;
/** The blend mode for the highlight. */
highlightBlendMode: string;
/** The blend mode for the shadow. */
shadowBlendMode: string;
/** The color of the highlight. */
highlightColor: number[];
/** The color of the shadow. */
shadowColor: number[];
/** The style of the bevel. */
bevelStyle: number;
/** The opacity of the highlight. */
highlightOpacity: number;
/** The opacity of the shadow. */
shadowOpacity: number;
/** Whether to use the global angle. */
globalAngle: boolean;
/** Direction of the bevel effect, up or down. */
upOrDown: number;
/** The real color of the highlight (optional). */
realHighlightColor?: number[];
/** The real color of the shadow (optional). */
realShadowColor?: number[];
}
/**
* Class representing a Bevel Effect.
*/
export declare class PsdBevelEffect extends PsdEffect {
/** The angle of the bevel effect. */
private _angle;
/** Gets the angle of the bevel effect. */
get angle(): number;
/** The strength of the bevel effect. */
private _strength;
/** Gets the strength of the bevel effect. */
get strength(): number;
/** The blur radius of the bevel effect. */
private _blur;
/** Gets the blur radius of the bevel effect. */
get blur(): number;
/** The blend mode for the highlight. */
private _highlightBlendMode;
/** Gets the blend mode for the highlight. */
get highlightBlendMode(): string;
/** The blend mode for the shadow. */
private _shadowBlendMode;
/** Gets the blend mode for the shadow. */
get shadowBlendMode(): string;
/** The color of the highlight. */
private _highlightColor;
/** Gets the color of the highlight. */
get highlightColor(): number[];
/** The color of the shadow. */
private _shadowColor;
/** Gets the color of the shadow. */
get shadowColor(): number[];
/** The style of the bevel. */
private _bevelStyle;
/** Gets the style of the bevel. */
get bevelStyle(): number;
/** The opacity of the highlight. */
private _highlightOpacity;
/** Gets the opacity of the highlight. */
get highlightOpacity(): number;
/** The opacity of the shadow. */
private _shadowOpacity;
/** Gets the opacity of the shadow. */
get shadowOpacity(): number;
/** Whether to use the global angle. */
private _globalAngle;
/** Gets whether to use the global angle. */
get globalAngle(): boolean;
/** Direction of the bevel effect, up or down. */
private _upOrDown;
/** Gets the direction of the bevel effect, up or down. */
get upOrDown(): number;
/** The real color of the highlight (optional). */
private _realHighlightColor;
/** Gets the real color of the highlight (optional). */
get realHighlightColor(): number[] | undefined;
/** The real color of the shadow (optional). */
private _realShadowColor;
/** Gets the real color of the shadow (optional). */
get realShadowColor(): number[] | undefined;
/**
* Initializes a new instance of the PsdBevelEffect class.
*
* @param {PsdBevelEffectOptions} opt - The options for the bevel effect.
* @param {number} opt.angle - The angle of the bevel effect.
* @param {number} opt.strength - The strength of the bevel effect.
* @param {number} opt.blur - The blur radius of the bevel effect.
* @param {string} opt.highlightBlendMode - The blend mode for the highlight.
* @param {string} opt.shadowBlendMode - The blend mode for the shadow.
* @param {string} opt.highlightColor - The color of the highlight.
* @param {string} opt.shadowColor - The color of the shadow.
* @param {string} opt.bevelStyle - The style of the bevel.
* @param {number} opt.highlightOpacity - The opacity of the highlight.
* @param {number} opt.shadowOpacity - The opacity of the shadow.
* @param {boolean} opt.globalAngle - Whether to use the global angle.
* @param {string} opt.upOrDown - Direction of the bevel effect, up or down.
* @param {string} [opt.realHighlightColor] - The real color of the highlight (optional).
* @param {string} [opt.realShadowColor] - The real color of the shadow (optional).
*/
constructor(opt: PsdBevelEffectOptions);
}