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)
71 lines (70 loc) • 1.94 kB
TypeScript
/** @format */
import { InputBuffer } from '../../../common/input-buffer.js';
import { PsdLayerData } from './psd-layer-data.js';
/**
* Represents a PSD Layer Section Divider.
*/
export declare class PsdLayerSectionDivider extends PsdLayerData {
/**
* The tag name for the section divider.
*/
static readonly tagName = "lsct";
/**
* Normal section type.
*/
static readonly normal = 0;
/**
* Open folder section type.
*/
static readonly openFolder = 1;
/**
* Closed folder section type.
*/
static readonly closedFolder = 2;
/**
* Section divider type.
*/
static readonly sectionDivider = 3;
/**
* Normal sub-type.
*/
static readonly subTypeNormal = 0;
/**
* Group sub-type.
*/
static readonly subTypeGroup = 1;
/**
* The type of the section divider.
*/
private _type;
/**
* Gets the type of the section divider.
* @returns {number} The type of the section divider.
*/
get type(): number;
/**
* The key of the section divider.
*/
private _key;
/**
* Gets the key of the section divider.
* @returns {string | undefined} The key of the section divider.
*/
get key(): string | undefined;
/**
* The sub-type of the section divider.
*/
private _subType;
/**
* Gets the sub-type of the section divider.
* @returns {number} The sub-type of the section divider.
*/
get subType(): number;
/**
* Initializes a new instance of the PsdLayerSectionDivider class.
* @param {string} tag - The tag associated with the section divider.
* @param {InputBuffer<Uint8Array>} data - The input buffer containing the section divider data.
* @throws {LibError} Throws an error if the key in layer additional data is invalid.
*/
constructor(tag: string, data: InputBuffer<Uint8Array>);
}