adobe-firefly-sdk
    Preparing search index...

    Type Alias DocumentOperationLayer

    DocumentOperationLayer

    type DocumentOperationLayer = {
        add?: LayerPosition;
        adjustments?: AdjustmentDetails;
        blendOptions?: BlendDetails & unknown;
        bounds?: Bounds;
        children?: ChildrenLayerDetails[];
        delete: DeleteDetails;
        edit?: { [key: string]: unknown };
        fill?: FillDetails;
        fillToCanvas?: boolean;
        horizontalAlign?: HorizontalAlignType;
        id: number;
        index?: number;
        input?: StorageDetails;
        locked?: boolean;
        mask?: MaskDetails;
        move?: MoveDetails;
        name?: string;
        smartObject?: SmartObject & unknown;
        text?: TextLayerDetails & unknown;
        type?: LayerType;
        verticalAlign?: VerticalAlignType;
        visible?: boolean;
    }
    Index

    Properties

    adjustments?: AdjustmentDetails
    blendOptions?: BlendDetails & unknown
    bounds?: Bounds

    A tree of layer objects representing the PSD layer structure extracted from the PSD document.

    edit?: { [key: string]: unknown }

    Indicates the layer to edit, by it's ID or name. Note the object is currently empty but leaves room for further enhancements. The layer block should contain changes from the original manifest. If you apply it to a group layer, you will be affecting the attributes of the group layer itself, not the child layers. This edit is supported for layer type smartObject and fillLayer only.

    fillToCanvas?: boolean

    Indicates if the pixels need to proportionally fill into the entire canvas of the document.

    horizontalAlign?: HorizontalAlignType
    id: number

    The layer ID.

    index?: number

    The layer index. Required when deleting a layer, otherwise not used.

    locked?: boolean

    is the layer locked

    name?: string
    smartObject?: SmartObject & unknown
    text?: TextLayerDetails & unknown
    type?: LayerType
    verticalAlign?: VerticalAlignType
    visible?: boolean

    is the layer visible