Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions types/photoshop/Constants.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import * as Constants from "./dom/Constants";
export default Constants;
10 changes: 10 additions & 0 deletions types/photoshop/dom/Actions.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/** @ignore */
export declare function validateActionSet(actionSet: ActionSet): void;
/**
* @ignore
*/
export declare function PSActionSet(id: number): ActionSet;
/**
* @ignore
*/
export declare function PSAction(id: number): Action;
/**
* Photoshop Actions
*
Expand Down
40 changes: 40 additions & 0 deletions types/photoshop/dom/Channel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,43 @@ export declare abstract class Channel {
*/
abstract merge(): Promise<void>;
}
/**
* @ignore
*/
export declare class ComponentChannel extends Channel {
private readonly _enumValue;
/**
* The class name of the referenced object: *"ComponentChannel"*.
* @minVersion 24.5
*/
get typename(): "ComponentChannel";
get name(): string;
set name(name: string);
get histogram(): number[];
get color(): SolidColor;
set color(color: SolidColor);
get opacity(): number;
set opacity(opacity: number);
remove(): Promise<void>;
merge(): Promise<void>;
}
/**
* @ignore
*/
export declare class AlphaChannel extends Channel {
private readonly _id;
/**
* The class name of the referenced object: *"AlphaChannel"*.
* @minVersion 24.5
*/
get typename(): "AlphaChannel";
get name(): string;
set name(name: string);
get histogram(): number[];
get color(): SolidColor;
set color(color: SolidColor);
get opacity(): number;
set opacity(opacity: number);
remove(): Promise<void>;
merge(): Promise<void>;
}
45 changes: 30 additions & 15 deletions types/photoshop/dom/Constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,23 @@ export declare enum ResampleMethod {
/**
* Changes image resolution value without affecting document dimension
*
* Currently unsupported**
* **Currently unsupported**
*/
NONE = "none",
}
/**
* The generative upscale model to use for AI-powered upscaling.
*
* Pass to [[Document.generativeUpscale]]()
*
* @minVersion 25.0
*/
export declare enum GenerativeUpscaleModel {
/**
* Adobe Firefly generative upscale model
*/
FIREFLY = "firefly",
}
/**
* The type of save operation.
* @minVersion 22.5
Expand Down Expand Up @@ -135,7 +148,7 @@ export declare enum SaveOptions {
/**
* Number of bits per channel (also called pixel depth or color depth).
*
* The number selected indicates the exponent of 2.
* The number selected indicates the exponent of 2. With 8 bits per channel, we have 256 possible colors.
* @minVersion 22.5
*/
export declare enum BMPDepthType {
Expand Down Expand Up @@ -293,15 +306,15 @@ export declare enum AnchorPosition {
*/
export declare enum TrimType {
/**
* Bottom right pixel color.
* The color of the pixel in the bottom right corner of the image.
*/
BOTTOMRIGHT = "bottom-right",
/**
* Top left pixel color.
* The color of the pixel in the top left right corner of the image.
*/
TOPLEFT = "top-left",
/**
* Transparent pixels.
* Fully transparent pixels.
*/
TRANSPARENT = "transparent",
}
Expand Down Expand Up @@ -513,31 +526,33 @@ export declare enum DocumentFill {
* @minVersion 22.5
*/
export declare enum LayerKind {
NORMAL = "pixel",
GROUP = "group",
SMARTOBJECT = "smartObject",
GRADIENTFILL = "gradientFill",
PATTERNFILL = "pattern",
SOLIDFILL = "solidColor",
TEXT = "text",
LAYER3D = "threeD",
VIDEO = "video",
BLACKANDWHITE = "blackAndWhite",
BRIGHTNESSCONTRAST = "brightnessContrast",
CHANNELMIXER = "channelMixer",
COLORBALANCE = "colorBalance",
COLORLOOKUP = "colorLookup",
CURVES = "curves",
EXPOSURE = "exposure",
GRADIENTFILL = "gradientFill",
GRADIENTMAP = "gradientMap",
HUESATURATION = "hueSaturation",
INVERSION = "inversion",
LEVELS = "levels",
NORMAL = "pixel",
PATTERNFILL = "pattern",
PHOTOFILTER = "photoFilter",
POSTERIZE = "posterize",
SELECTIVECOLOR = "selectiveColor",
SMARTOBJECT = "smartObject",
SOLIDFILL = "solidColor",
TEXT = "text",
THRESHOLD = "threshold",
LAYER3D = "threeD",
VIBRANCE = "vibrance",
VIDEO = "video",
GROUP = "group",
COLORLOOKUP = "colorLookup",
CLARITY = "clarity",
GRAIN = "grainAdjustment",
}
/**
* Placement modes for Layer.move method
Expand Down
Loading