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)

18 lines (17 loc) 830 B
/** @format */ import { InputBuffer } from '../../../common/input-buffer.js'; import { PsdLayerAdditionalData } from './psd-layer-additional-data.js'; import { PsdLayerSectionDivider } from './psd-layer-section-divider.js'; /** * Factory class for creating PSD layer data objects. */ export declare class PsdLayerDataFactory { /** * Creates a PSD layer data object based on the provided tag. * * @param {string} tag - The tag identifying the type of PSD layer data. * @param {InputBuffer<Uint8Array>} data - The input buffer containing the data for the PSD layer. * @returns {PsdLayerSectionDivider | PsdLayerAdditionalData} A new instance of a PSD layer data object. */ static createLayerData(tag: string, data: InputBuffer<Uint8Array>): PsdLayerAdditionalData | PsdLayerSectionDivider; }