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)

58 lines (57 loc) 1.84 kB
/** @format */ import { PsdEffect, PsdEffectOptions } from './psd-effect.js'; /** * Interface for solid fill effect options. */ export interface PsdSolidFillEffectOptions extends PsdEffectOptions { /** Blend mode for the effect. */ blendMode: string; /** Color array for the effect. */ color: number[]; /** Opacity value for the effect. */ opacity: number; /** Native color array for the effect. */ nativeColor: number[]; } /** * Class representing a solid fill effect. */ export declare class PsdSolidFillEffect extends PsdEffect { /** @private Blend mode for the effect. */ private _blendMode; /** * Gets the blend mode. * @returns {string} The blend mode. */ get blendMode(): string; /** @private Color array for the effect. */ private _color; /** * Gets the color array. * @returns {number[]} The color array. */ get color(): number[]; /** @private Opacity value for the effect. */ private _opacity; /** * Gets the opacity value. * @returns {number} The opacity value. */ get opacity(): number; /** @private Native color array for the effect. */ private _nativeColor; /** * Gets the native color array. * @returns {number[]} The native color array. */ get nativeColor(): number[]; /** * Initializes a new instance of the PsdSolidFillEffect class. * @param {PsdSolidFillEffectOptions} opt - Options for the solid fill effect. * @param {string} opt.blendMode - Blend mode for the effect. * @param {number[]} opt.color - Color array for the effect. * @param {number} opt.opacity - Opacity value for the effect. * @param {number[]} opt.nativeColor - Native color array for the effect. */ constructor(opt: PsdSolidFillEffectOptions); }