@pixerate/editor 0.95.0 → 0.97.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +1 -0
- package/dist/{chunk-T6H3JDGA.cjs → chunk-4AB5BHYK.cjs} +254 -63
- package/dist/chunk-4AB5BHYK.cjs.map +1 -0
- package/dist/{chunk-E2ILRYTJ.js → chunk-OEVSVA6V.js} +231 -40
- package/dist/chunk-OEVSVA6V.js.map +1 -0
- package/dist/image-editor/index.cjs +1559 -385
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +172 -5
- package/dist/image-editor/index.d.ts +172 -5
- package/dist/image-editor/index.js +1329 -155
- package/dist/image-editor/index.js.map +1 -1
- package/dist/paint/index.d.cts +1 -1
- package/dist/paint/index.d.ts +1 -1
- package/dist/raster/index.cjs +4 -2
- package/dist/raster/index.cjs.map +1 -1
- package/dist/raster/index.d.cts +839 -5
- package/dist/raster/index.d.ts +839 -5
- package/dist/raster/index.js +3 -1
- package/dist/{surface-CgAiXVI3.d.cts → surface-DIA-XatS.d.cts} +1 -1
- package/dist/{surface-CgAiXVI3.d.ts → surface-DIA-XatS.d.ts} +1 -1
- package/package.json +1 -1
- package/skills/pixerate-image-editor/SKILL.md +13 -4
- package/dist/chunk-E2ILRYTJ.js.map +0 -1
- package/dist/chunk-T6H3JDGA.cjs.map +0 -1
- package/dist/zlib-B3LIoxF-.d.cts +0 -796
- package/dist/zlib-eiTEEj1z.d.ts +0 -796
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { P as PixelSurface,
|
|
4
|
-
export { a as BLEND_MODES, b as BlendModeInfo, M as MaskSurface, R as RasterRect, c as Rgb, d as Rgba, S as SurfaceDraft,
|
|
1
|
+
import { RasterLayerBase, RasterMask as RasterMask$1, RasterPixelLayer, GroupBlendMode, LayerLocation as LayerLocation$1, LayerLocks, LayerEffect, GlobalLight, LayerEffects, EffectPattern, RasterSources, RasterCompositor, CompositorOptions, LayerEffectKind } from '../raster/index.cjs';
|
|
2
|
+
export { BevelContour, BevelEmbossEffect, BevelStyle, BevelTechnique, BevelTexture, ColorOverlayEffect, CompositeCallOptions, CompositeStats, ContourPoint, DEFAULT_GLOBAL_LIGHT, DIRECT_GAUSSIAN_MAX_SIGMA, DecodedPng, DropShadowEffect, EffectContour, EffectFill, EffectGradient, EffectPatternRef, EffectRect, GlowTechnique, GradientColorStop, GradientOpacityStop, GradientOverlayEffect, GradientStyle, InnerGlowEffect, InnerShadowEffect, LAYER_EFFECT_KINDS, LayerEffectError, MAX_EFFECT_REACH, OuterGlowEffect, PatternOverlayEffect, PatternPlacement, PatternTile, SatinEffect, StrokeEffect, StrokePosition, ZlibError, adler32, base64ToBytes, blendTile, builtinPattern, builtinPatternIds, bytesToBase64, changedTiles, curveLut, decodePng, defaultEffectGradient, defaultLayerEffect, deflate, deflateRaw, effectColorHex, effectReach, effectsFingerprint, effectsMargin, effectsScale, encodePng, findLayer, flattenLayers, gaussianBlur, hasActiveEffects, hashNoise, inflate, inflateRaw, insertLayer, isLayerEffectKind, isLayerLocked, isPng, layerEffectFields, layerEffectLabel, mapLayer, mergeLayerEffect, newEffectId, normalizeLayerEffects, parseDataUrl, parseEffectColor, pngDataUrl, renderLayerEffects, scaleLayerEffect, validateEffectGradient, validateLayerEffect, validateLayerEffects } from '../raster/index.cjs';
|
|
3
|
+
import { P as PixelSurface, T as TiledSurface, B as BlendMode } from '../surface-DIA-XatS.cjs';
|
|
4
|
+
export { a as BLEND_MODES, b as BlendModeInfo, M as MaskSurface, R as RasterRect, c as Rgb, d as Rgba, S as SurfaceDraft, e as TILE, f as TILE_SHIFT, g as Tile, h as TileKey, i as blendChannel, j as blendImageData, k as blendLum, l as blendPixel, m as blendRgb, n as canvasCompositeOperation, o as collectTiles, p as contentBounds, q as emptySurface, r as fillRect, s as finishTile, t as isBlendMode, u as isSeparableBlendMode, v as mixPigment8, w as mixPigmentRgb, x as normalizeBlendMode, y as packRgba, z as readPixel, A as readRegion, C as setLum, D as solidSurface, E as surfaceBytes, F as surfaceFromPixels, G as surfacesEqual, H as tileCoord, I as tileKey, J as tileRect, K as tilesInRect, L as translateSurface, N as uniformTile, O as writeRegion } from '../surface-DIA-XatS.cjs';
|
|
5
5
|
import { BrushSettings, MixerSettings, MixerLoad, StrokeCoverage, MixerTarget, MixerStroke, StrokeApply, StrokePoint } from '../paint/index.cjs';
|
|
6
6
|
export { CoverageMap, DEFAULT_BRUSH, DEFAULT_MIXER, Dab, DabWalker, EMPTY_MIXER_LOAD, MAX_BRUSH_SIZE, MIXER_DRAIN, MIXER_PICKUP_RATE, MIXING_MODELS, MixingModel, PIGMENT_BANDS, PIGMENT_LAMBDA_MIN, PIGMENT_LAMBDA_STEP, PIGMENT_WAVELENGTHS, Pigment, PigmentOptions, PigmentRgb, applyStrokeToTile, cleanMixer, coverageTileCoord, createPigment, createPigmentTools, dabCoverage, dabRect, lerpPigment, lerpPigmentInto, loadMixer, mixPigments, normalizeBrush, normalizeMixer, rasterizeDab, reflectanceToRgb, rgbToReflectance, setPigmentColor, smoothPoints, tipFalloff, tipReach, tipShape, walkDabs } from '../paint/index.cjs';
|
|
7
7
|
import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.cjs';
|
|
@@ -286,7 +286,17 @@ interface SerializedLayeredImageEditorState {
|
|
|
286
286
|
selection?: SerializedSelection;
|
|
287
287
|
/** Global light for layer effects (missing = 120°, 30°). */
|
|
288
288
|
globalLight?: GlobalLight;
|
|
289
|
+
/** The document's patterns for pattern effects, each an RGBA PNG data URL. */
|
|
290
|
+
patterns?: SerializedPattern[];
|
|
289
291
|
}
|
|
292
|
+
interface SerializedPattern {
|
|
293
|
+
id: string;
|
|
294
|
+
name: string;
|
|
295
|
+
png: string;
|
|
296
|
+
}
|
|
297
|
+
declare function serializePatterns(patterns: readonly EffectPattern[]): SerializedPattern[];
|
|
298
|
+
/** Reads stored patterns, skipping (and reporting in `problems`) any that cannot be decoded. */
|
|
299
|
+
declare function deserializePatterns(raw: unknown, problems?: string[]): EffectPattern[];
|
|
290
300
|
interface EncodedSurface {
|
|
291
301
|
url: string;
|
|
292
302
|
x: number;
|
|
@@ -1174,6 +1184,10 @@ interface PsdImportResult {
|
|
|
1174
1184
|
summary: PsdLayerSummary[];
|
|
1175
1185
|
/** Pixels per inch, when the file says. */
|
|
1176
1186
|
resolution?: number;
|
|
1187
|
+
/** The patterns embedded in the file (`Patt` / `Pat2` / `Pat3`), which pattern effects use. */
|
|
1188
|
+
patterns: EffectPattern[];
|
|
1189
|
+
/** The global light (image resources 1037 and 1049), when the file has one. */
|
|
1190
|
+
globalLight?: GlobalLight;
|
|
1177
1191
|
info: {
|
|
1178
1192
|
psb: boolean;
|
|
1179
1193
|
depth: number;
|
|
@@ -1614,6 +1628,11 @@ declare class ImageEditorController {
|
|
|
1614
1628
|
setLayerEffectsEnabled(id: string, enabled: boolean, scale?: number, commitToHistory?: boolean): LayerEffects;
|
|
1615
1629
|
/** Replaces a layer's effects (one undo step; `null` removes them). Returns the effects. */
|
|
1616
1630
|
setLayerEffects(id: string, effects: LayerEffects | null, commitToHistory?: boolean): LayerEffects;
|
|
1631
|
+
private patternIds;
|
|
1632
|
+
/** Changes whenever the document's pattern list is replaced (the compositor then drops its caches). */
|
|
1633
|
+
private patternsVersion;
|
|
1634
|
+
/** The document's patterns (from an opened PSD), besides the built-in ones. */
|
|
1635
|
+
getDocumentPatterns(): EffectPattern[];
|
|
1617
1636
|
/** The light effects with "use global light" follow. */
|
|
1618
1637
|
getGlobalLight(): GlobalLight;
|
|
1619
1638
|
/** Sets the global light (one undo step). `angle` -360..360°, `altitude` 0..90°. Returns it. */
|
|
@@ -2314,6 +2333,11 @@ interface ImageEditorState {
|
|
|
2314
2333
|
* missing = angle 120°, altitude 30°. Recorded in undo history and saved in `toJSON()`.
|
|
2315
2334
|
*/
|
|
2316
2335
|
globalLight?: GlobalLight;
|
|
2336
|
+
/**
|
|
2337
|
+
* The document's patterns (from an opened PSD), which pattern effects use by id besides the
|
|
2338
|
+
* built-in ones. Recorded in undo history and saved in `toJSON()`.
|
|
2339
|
+
*/
|
|
2340
|
+
patterns?: EffectPattern[];
|
|
2317
2341
|
}
|
|
2318
2342
|
/**
|
|
2319
2343
|
* A stored editor state in the document-level schema (versions 1 and 2). Documents whose layer
|
|
@@ -3224,6 +3248,80 @@ declare function layerMenu(controller: ImageEditorController): LayerMenuItem[];
|
|
|
3224
3248
|
/** Runs a menu action on the active layer. Resolves to the error message when it was refused. */
|
|
3225
3249
|
declare function runLayerMenuAction(controller: ImageEditorController, action: LayerMenuAction): Promise<string | null>;
|
|
3226
3250
|
|
|
3251
|
+
/**
|
|
3252
|
+
* The layer effects section's view model, shared by the React and Svelte panels: whether a layer
|
|
3253
|
+
* can take effects, its effect rows, the menu of kinds to add, and per effect a flat list of
|
|
3254
|
+
* controls (sliders, colours, toggles, choices) with how a change maps to `updateLayerEffect`.
|
|
3255
|
+
*/
|
|
3256
|
+
|
|
3257
|
+
interface LayerEffectRow {
|
|
3258
|
+
id: string;
|
|
3259
|
+
kind: LayerEffectKind;
|
|
3260
|
+
label: string;
|
|
3261
|
+
enabled: boolean;
|
|
3262
|
+
}
|
|
3263
|
+
interface LayerEffectsPanelModel {
|
|
3264
|
+
/** Whether the layer can carry effects (adjustment layers cannot; a fully locked layer refuses changes). */
|
|
3265
|
+
available: boolean;
|
|
3266
|
+
/** Why not, when unavailable or read-only. */
|
|
3267
|
+
reason?: string;
|
|
3268
|
+
readOnly: boolean;
|
|
3269
|
+
enabled: boolean;
|
|
3270
|
+
/** Scale Effects, 1 = 100 %. */
|
|
3271
|
+
scale: number;
|
|
3272
|
+
rows: LayerEffectRow[];
|
|
3273
|
+
}
|
|
3274
|
+
/** The effects section for `layer`. */
|
|
3275
|
+
declare function layerEffectsPanel(layer: ImageLayer | null | undefined): LayerEffectsPanelModel;
|
|
3276
|
+
/** The fx badge of a layer row: `on` (effects render), `off` (effects but switched off), or `null`. */
|
|
3277
|
+
declare function layerEffectsBadge(layer: ImageLayer): 'on' | 'off' | null;
|
|
3278
|
+
/** The kinds the "Add effect" menu offers, in the Layer Style dialog's order. */
|
|
3279
|
+
declare const LAYER_EFFECT_MENU: ReadonlyArray<{
|
|
3280
|
+
kind: LayerEffectKind;
|
|
3281
|
+
label: string;
|
|
3282
|
+
}>;
|
|
3283
|
+
type EffectControl = {
|
|
3284
|
+
key: string;
|
|
3285
|
+
label: string;
|
|
3286
|
+
type: 'range';
|
|
3287
|
+
min: number;
|
|
3288
|
+
max: number;
|
|
3289
|
+
step: number;
|
|
3290
|
+
value: number; /** Shown and edited as percent (value × 100). */
|
|
3291
|
+
percent?: boolean;
|
|
3292
|
+
unit?: string;
|
|
3293
|
+
} | {
|
|
3294
|
+
key: string;
|
|
3295
|
+
label: string;
|
|
3296
|
+
type: 'color';
|
|
3297
|
+
value: string;
|
|
3298
|
+
} | {
|
|
3299
|
+
key: string;
|
|
3300
|
+
label: string;
|
|
3301
|
+
type: 'checkbox';
|
|
3302
|
+
value: boolean;
|
|
3303
|
+
} | {
|
|
3304
|
+
key: string;
|
|
3305
|
+
label: string;
|
|
3306
|
+
type: 'select';
|
|
3307
|
+
value: string;
|
|
3308
|
+
options: Array<{
|
|
3309
|
+
value: string;
|
|
3310
|
+
label: string;
|
|
3311
|
+
}>;
|
|
3312
|
+
};
|
|
3313
|
+
/**
|
|
3314
|
+
* The controls for one effect, in the Layer Style dialog's order. `patterns` are the document's
|
|
3315
|
+
* patterns (the built-in ones are always offered).
|
|
3316
|
+
*/
|
|
3317
|
+
declare function layerEffectControls(e: LayerEffect, patterns?: readonly EffectPattern[]): EffectControl[];
|
|
3318
|
+
/**
|
|
3319
|
+
* The `updateLayerEffect` settings for setting control `key` of `effect` to `value` (a nested
|
|
3320
|
+
* object such as `fill` or `gradient` is replaced whole, with the one field changed). Values are
|
|
3321
|
+
* in the effect's own units (fractions for percent controls).
|
|
3322
|
+
*/
|
|
3323
|
+
declare function effectControlChange(effect: LayerEffect, key: string, value: unknown, patterns?: readonly EffectPattern[]): Record<string, unknown>;
|
|
3324
|
+
|
|
3227
3325
|
/** A Mixer Brush load as tool output: hex colours and the amount left. */
|
|
3228
3326
|
declare function mixerLoadResult(load: MixerLoad): {
|
|
3229
3327
|
reservoir: string | null;
|
|
@@ -3455,16 +3553,85 @@ interface PsdExportInput {
|
|
|
3455
3553
|
merged: ArrayLike<number>;
|
|
3456
3554
|
/** Pixels per inch (default 72). */
|
|
3457
3555
|
resolution?: number;
|
|
3556
|
+
/** The document's patterns; those the effects use are embedded (built-in ones too). */
|
|
3557
|
+
patterns?: readonly EffectPattern[];
|
|
3558
|
+
/** Written as image resources 1037 and 1049. */
|
|
3559
|
+
globalLight?: GlobalLight;
|
|
3458
3560
|
}
|
|
3459
3561
|
interface PsdExportResult {
|
|
3460
3562
|
bytes: Uint8Array;
|
|
3461
3563
|
psb: boolean;
|
|
3462
3564
|
/** Layer records written (group folders and dividers included). */
|
|
3463
3565
|
records: number;
|
|
3566
|
+
/** One sentence per loss, naming the layers. */
|
|
3567
|
+
warnings: string[];
|
|
3464
3568
|
}
|
|
3465
3569
|
/** Writes the prepared stack as PSD (or PSB) bytes. */
|
|
3466
3570
|
declare function exportPsd(input: PsdExportInput): PsdExportResult;
|
|
3467
3571
|
|
|
3572
|
+
interface ParsedLayerEffects {
|
|
3573
|
+
effects: LayerEffects;
|
|
3574
|
+
/** What could not be held exactly (empty when the mapping is exact). */
|
|
3575
|
+
notes: string[];
|
|
3576
|
+
}
|
|
3577
|
+
/**
|
|
3578
|
+
* Parses `lfx2` / `lfxs` / `lmfx` block data (u32 version 0, then a versioned descriptor).
|
|
3579
|
+
* Effects marked `present: false` are left out. Returns `null` when the data is not a descriptor.
|
|
3580
|
+
*/
|
|
3581
|
+
declare function parseLfx2(data: Uint8Array): ParsedLayerEffects | null;
|
|
3582
|
+
/**
|
|
3583
|
+
* Writes effects as `lfx2` block data, Scale Effects baked into the sizes (Photoshop's `Scl ` is
|
|
3584
|
+
* written as 100 %). Several instances of one kind go into its multi key
|
|
3585
|
+
* (`dropShadowMulti`, `frameFXMulti` …); kinds without one keep only the first instance.
|
|
3586
|
+
* Returns the data and how many instances had to be left out.
|
|
3587
|
+
*/
|
|
3588
|
+
declare function writeLfx2(effects: LayerEffects): {
|
|
3589
|
+
data: Uint8Array;
|
|
3590
|
+
dropped: number;
|
|
3591
|
+
};
|
|
3592
|
+
/** Parses legacy `lrFX` effects: drop / inner shadows, outer / inner glows and solid fill. Bevels are skipped. */
|
|
3593
|
+
declare function parseLrfx(data: Uint8Array): ParsedLayerEffects | null;
|
|
3594
|
+
|
|
3595
|
+
/**
|
|
3596
|
+
* Patterns: the global `Patt` / `Pat2` / `Pat3` tagged blocks (8 / 16 / 32-bit documents), which
|
|
3597
|
+
* pattern overlays, pattern strokes and bevel textures refer to by id.
|
|
3598
|
+
*
|
|
3599
|
+
* ```text
|
|
3600
|
+
* pattern := version u32 (1), image mode u32, height u16, width u16,
|
|
3601
|
+
* name (Unicode string), unique id (Pascal string, unpadded),
|
|
3602
|
+
* [indexed: 768-byte palette], virtual memory array list
|
|
3603
|
+
* VMA list := version u32 (3), length u32, rect (top, left, bottom, right i32),
|
|
3604
|
+
* channel count u32, then count + 2 arrays (user mask, sheet mask)
|
|
3605
|
+
* array := written u32 (0 = absent), length u32 (0 = absent), depth u32, rect,
|
|
3606
|
+
* depth u16, compression u8 (0 raw, 1 PackBits), data
|
|
3607
|
+
* ```
|
|
3608
|
+
*
|
|
3609
|
+
* Each pattern in a block is prefixed by its u32 length and padded to 4 bytes. Photoshop writes
|
|
3610
|
+
* the channel count as 24 and marks only the real channels as written; the first written arrays
|
|
3611
|
+
* are the colour channels and the next one is transparency.
|
|
3612
|
+
*/
|
|
3613
|
+
|
|
3614
|
+
/** Pattern block keys, by document depth. */
|
|
3615
|
+
declare const PATTERN_BLOCK_KEYS: string[];
|
|
3616
|
+
/** One pattern tile as stored: planar samples. */
|
|
3617
|
+
interface PsdPattern {
|
|
3618
|
+
mode: number;
|
|
3619
|
+
width: number;
|
|
3620
|
+
height: number;
|
|
3621
|
+
name: string;
|
|
3622
|
+
id: string;
|
|
3623
|
+
palette?: Uint8Array;
|
|
3624
|
+
depth: number;
|
|
3625
|
+
channels: Uint8Array[];
|
|
3626
|
+
alpha?: Uint8Array;
|
|
3627
|
+
}
|
|
3628
|
+
/** The patterns of a `Patt` / `Pat2` / `Pat3` block. Throws `PsdError` on malformed data. */
|
|
3629
|
+
declare function parsePatternBlock(data: Uint8Array): PsdPattern[];
|
|
3630
|
+
/** A stored pattern as straight 8-bit sRGB RGBA, for rendering. */
|
|
3631
|
+
declare function psdPatternToEffectPattern(p: PsdPattern): EffectPattern;
|
|
3632
|
+
/** Writes 8-bit RGB(A) patterns as `Patt` block data (PackBits channels, transparency in the user mask slot). */
|
|
3633
|
+
declare function writePatternBlock(patterns: readonly EffectPattern[]): Uint8Array;
|
|
3634
|
+
|
|
3468
3635
|
/** Framework-free helpers behind the PSD buttons of the React and Svelte layer panels. */
|
|
3469
3636
|
|
|
3470
3637
|
/** Types the file pickers accept. */
|
|
@@ -3490,4 +3657,4 @@ declare function psdBytesFromBase64(data: unknown): Uint8Array;
|
|
|
3490
3657
|
*/
|
|
3491
3658
|
declare function createImagePsdTools(controller: ImageEditorController): AgentTool[];
|
|
3492
3659
|
|
|
3493
|
-
export { ADJUSTMENT_KEYS, ADJUSTMENT_KINDS, ADJUSTMENT_LAYER_CONTROLS, ADJUSTMENT_LAYER_OPACITY_CONTROL, ADJUSTMENT_LUT_SIZE, type AIResultOptions, AS_SHOT_KELVIN, type AdjustmentKind, type AdjustmentKindInfo, type AdjustmentLayer, type AdjustmentLayerBase, type AdjustmentLayerInit, type AdjustmentLayerMask, type AdjustmentLayerNode, type AdjustmentLayerOf, type AdjustmentLayerUpdate, type AdjustmentParamsMap, type Annotation, type AnnotationLayer, type AnnotationPlacement, type AnnotationType, type ArrowAnnotation, type AspectRatio, BACKGROUND_LAYER_ID, BACKGROUND_LAYER_NAME, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, type BaseAnnotation, type BlackWhiteParams, BlendMode, type BlurFilter, BrushSettings, type Chromaticity, type CircleAnnotation, type ColorBalanceParams, type ColorBalanceTone, type ColorDistance, type ColorRangeOptions, type ColorRangeSample, CompositorOptions, type CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type CreateAnnotationPayload, type CropBox, type CropHandle, type CurvePoint, type CurvesParams, D50, D65, DEFAULT_ADJUSTMENTS, DEFAULT_DEPTH_MASK, DEFAULT_REFINE_EDGE_PARAMS, DEFAULT_SELECTION_TOOL_OPTIONS, DEFAULT_TRANSFORM, DEVELOP_FILTER_ID, type DepthMaskOptions, type DescValue, type Descriptor, type DeserializeContext, type DevelopFilter, type DevelopSettings, type DropZone, EMPTY_DISTANCE, type ExportOptions, type FillOptions, GUIDED_FILTER_EPS, type GestureModifiers, type GroupLayer, HISTOGRAM_BINS, HUE_RANGE_LABELS, type HistogramChannel, type HistoryEntryHandle, type HueRange, type HueSaturationParams, IDENTITY_MATRIX3, IMAGE_ADJUSTMENT_CONTROLS, IMAGE_EDITOR_SCHEMA_VERSION, IMAGE_EDITOR_STATE_VERSION, type ImageAdjustments, type ImageAnnotation, type ImageDimensions, type ImageEditorAIHooks, type ImageEditorAssetStore, ImageEditorController, type ImageEditorDocumentLoad, type ImageEditorFit, type ImageEditorOptions, ImageEditorRenderer, type ImageEditorState, type ImageEditorTool, type ImageEditorToolProviderOptions, type ImageHistogram, type ImageLayer, type ImageLayerType, type ImagePoint, type ImageProcessVersion, type ImageProjection, type ImageTransform, type InpaintHook, type InpaintOptions, type InvertParams, LATEST_PROCESS_VERSION, LAYERED_SCHEMA_VERSION, LEGACY_PROCESS_VERSION, LUMA_709, type LayerBase, type LayerBlendMode, LayerCompositor, type LayerFilter, type LayerFilterKind, type LayerLocation, LayerLocks, type LayerMaskProps, type LayerMenuAction, type LayerMenuItem, LayerOperationError, type LayerPanelRow, type LayerPlacement, type LayerProperties, type LayerSourcesHost, type LayerStack, type LayerTarget, type LegacyParts, type LegacySerializedImageEditorState, type LegacyViewResult, type LevelsChannel, type LevelsParams, type LineAnnotation, MAX_KELVIN, MIN_KELVIN, MIRED_PER_TEMPERATURE_UNIT, MIXER_MIXING_OPTIONS, MIXER_OPTION_CONTROLS, type MagicWandOptions, type Matrix3, MixerLoad, MixerSettings, MixerStroke, type MixerStrokeInit, MixerTarget, type MosaicImageDataLike, type MosaicRegion, PAINT_TOOLS, PSD_BLEND_KEYS, PSD_FILE_ACCEPT, PaintGesture, type PaintOptions, type PaintPointerSample, type PaintStrokeResult, PaintStrokeSession, type PaintTool, type ParsedAdjustment, type PenAnnotation, type PhotoFilterParams, type PixelBuffer, type PixelLayer, type PixelLayerInit, type PixelOp, PixelSurface, type PlaneLayout, type PosterizeParams, type PsdChannel, PsdError, type PsdExportInput, type PsdExportResult, type PsdFile, type PsdHeader, type PsdImportOptions, type PsdImportResult, type PsdLayerMask, type PsdLayerRecord, type PsdLayerSummary, type PsdRect, type PsdResource, type PsdTaggedBlock, type PsdTreeNode, type QuickMaskStyle, REFINE_EDGE_CONTROLS, type RasterMask, type RectAnnotation, type ReferenceItem, type RefineEdgeControl, type RefineEdgeParams, type RemoveBackgroundHook, type RemoveBackgroundOptions, type RenderOptions, type RouteInput, SELECTION_MODES, SELECTION_MODE_LABELS, SELECTION_MODIFY_OPS, SELECTION_TOOLS, SUPPORTED_ADJUSTMENT_KEYS, type SampleOptions, type SelectionChannel, type SelectionCommandOptions, SelectionGesture, type SelectionMask, type SelectionMode, type SelectionModifyOp, type SelectionToolKind, type SelectionToolOptions, type SerializeContext, type SerializedAdjustmentLayer, type SerializedAnnotationLayer, type SerializedGroupLayer, type SerializedImageEditorState, type SerializedLayer, type SerializedLayerEffects, type SerializedLayeredImageEditorState, type SerializedPixelLayer, type SerializedRasterMask, type SerializedSelection, type ShapeSelectionOptions, type ShortcutEvent, StrokeApply, StrokeCoverage, type StrokeInit, StrokePoint, type StrokeTool, TINT_SCALE, TONE_LUT_SIZE, TONE_RANGE_PRESETS, type TextAnnotation, type ThresholdParams, TiledSurface, type ToneRangePreset, type UnitLevels, VIBRANCE_GREY, type VibranceParams, type ViewportMetrics, XYZ_D50_TO_SRGB, activeAdjustmentLayers, addLayerEffect, addLayerFilter, addToHistogram, adjustmentKindLabel, adjustmentLayersKey, adjustmentNodeAsLayer, adjustmentNodeFromLegacy, annotationLayerFor, annotationLayerName, applyAdjustmentLayers, applyAdjustments, applyBoxBlur, applyDepthMask, applyImageProjectionToContext, applyLegacyAdjustments, applyMatrix3, applyOutputStage, applyProcess2Adjustments, applyRegionBlur, applyRegionMosaic, backgroundLayer, baseProjection, blackWhiteGray, blurFilter, borderCoverage, boxMean, boxToCurvePoint, bradfordAdaptation, buildLayerMaskPlanes, buildToneLut, calculateCropDrag, canvasToImagePoint, clampControlValue, clampCropToImage, colorBalanceChannel, colorRange, combineSelections, compileAdjustmentLayer, computeHistogram, computeSelectionBounds, contractCoverage, controlPosition, controlTrackBackground, coverageToByte, coveringRect, createAdjustmentLayer, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createSelectionMask, curveLutFromLevels, curvePointToBox, curveSvgPath, decodeLayerChannel, decodeLayerMask, decodeMergedImage, decodePlanes, decodePngDataUrl, decodeSelectionRle, defaultAdjustmentParams, depthMaskAlpha, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, deserializeEffects, deserializeLayer, deserializeLayers, deserializeSelection, developFilter, developFromAdjustments, developTarget, distanceTransform, downloadPsd, dropPlacement, dropZone, duplicateLayer, edgeWidth, ellipsePoints, ellipseSelection, emptyHistogram, encodeRle, encodeSelectionRle, encodeSurface, evaluateAdjustmentLayers, expandCoverage, exportPsd, featherCoverage, findAdjustmentControl, findLayerControl, formatControlValue, fullSelection, getAnnotationBounds, getControlPath, getCropCursor, getRotatedSize, getViewportMetrics, getViewportProjection, globalImageCache, greyMorphology, groupLayers, guidePlanes, guidedFilterColor, handlePaintShortcut, hasResampledLegacyMask, hashMaskContent, hexToRgb, histogramPath, hitTestAnnotation, hitTestCrop, hitTestCurvePoint, hslToRgb, hueRange, hueRangeTables, hueRangeWeight, hueSaturation, identityCurve, identityLevels, imageEditorStateMigrations, imageToCanvasPoint, importPsd, insertCurvePoint, invertMatrix3, invertSelection, isActiveFilter, isAdjustmentKind, isDefaultDepthMask, isLegacyShape, isPaintTool, isQuarterTurn, isQuarterTurnSwapped, isSelectionEmpty, isSelectionMode, isSpatialFilter, kelvinToTemperature, layerBadge, layerEffectsOf, layerLabel, layerMaskCoverage, layerMaskFromSelection, layerMaskKey, layerMenu, layerName, layerPanelRows, layerTree, layerTypeLabel, layersFromLegacy, legacyAdjustmentLayer, legacyMaskOf, legacyView, levelsValue, linearSrgbToXy, linearToSrgb, loadImageEditorDocument, magicWand, mapCropHandle, maskSummary, migrateSerializedImageEditorState, migrateToLayeredState, mixerLoadResult, modifySelection, moveCurvePoint, moveLayer, mulMatrix3, needsLegacyBase, neutralHueRange, newLayerId, normalizeAdjustmentLayer, normalizeAdjustmentLayers, normalizeAngle, normalizeFilter, normalizeLayerMask, normalizeProcessVersion, normalizeRect, normalizeRefineEdgeParams, normalizeStoredAdjustments, offsetLayer, openPsdFile, parseAdjustmentBlock, parseBlend, parseColor, parseSelectionMode, parseVersionedDescriptor, photoFilterMatrix, pixelLayerBounds, pixelLayers, placeLayer, pointerPressure, polygonCoverage, polygonSelection, posterizeValue, projectImagePoint, projectImageRect, projectMaskCoverage, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdToLayers, quickMaskPixels, rangeLightness, rasterMaskFromLegacy, readAdjustmentControls, readPsd, rectSelection, refineCoverage, refineEdgeHalo, refineSelection, removeAlpha, removeCurvePoint, removeLayer, removeLayerEffect, removeLayerFilter, renderLayeredBase, requireLayer, requireUnlocked, resizePixels, resizeSelection, resolveExternalAssets, resolveMosaicRegionBounds, rgbToGray, rgbToHsl, rgbUnitToHex, runLayerMenuAction, sampleLut, sampleToneLut, selectionArea, selectionFromCoverage, selectionFromPixels, selectionModeFromModifiers, selectionOutline, selectionToCoverage, selectionToPixels, selectionValueAt, serializeEffects, serializeLayer, serializeLayers, serializeLayersExternal, serializeSelection, setControlPath, setLayerEffects, setLayerEffectsEnabled, setLayerMask, setLayerProperties, shiftCoverage, smoothCoverage, splitOverlayAnnotations, srgb8ToLab, srgbToLinear, sumHistograms, tempTintToXy, temperatureToKelvin, toHex, toneCurve, toneLuts, toneRange, ungroupLayer, unionRect, unprojectCanvasPoint, updateLayerEffect, updateLayerFilter, updateLayerMaskProps, uvToXy, versionedDescriptorBytes, vibranceLinear, vibrancePixel, wbMatrix, whiteBalanceFromSample, whiteBalanceMatrix, withNewIds, writeAdjustmentBlock, writePsd, xyToTempTint, xyToUv };
|
|
3660
|
+
export { ADJUSTMENT_KEYS, ADJUSTMENT_KINDS, ADJUSTMENT_LAYER_CONTROLS, ADJUSTMENT_LAYER_OPACITY_CONTROL, ADJUSTMENT_LUT_SIZE, type AIResultOptions, AS_SHOT_KELVIN, type AdjustmentKind, type AdjustmentKindInfo, type AdjustmentLayer, type AdjustmentLayerBase, type AdjustmentLayerInit, type AdjustmentLayerMask, type AdjustmentLayerNode, type AdjustmentLayerOf, type AdjustmentLayerUpdate, type AdjustmentParamsMap, type Annotation, type AnnotationLayer, type AnnotationPlacement, type AnnotationType, type ArrowAnnotation, type AspectRatio, BACKGROUND_LAYER_ID, BACKGROUND_LAYER_NAME, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, type BaseAnnotation, type BlackWhiteParams, BlendMode, type BlurFilter, BrushSettings, type Chromaticity, type CircleAnnotation, type ColorBalanceParams, type ColorBalanceTone, type ColorDistance, type ColorRangeOptions, type ColorRangeSample, CompositorOptions, type CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type CreateAnnotationPayload, type CropBox, type CropHandle, type CurvePoint, type CurvesParams, D50, D65, DEFAULT_ADJUSTMENTS, DEFAULT_DEPTH_MASK, DEFAULT_REFINE_EDGE_PARAMS, DEFAULT_SELECTION_TOOL_OPTIONS, DEFAULT_TRANSFORM, DEVELOP_FILTER_ID, type DepthMaskOptions, type DescValue, type Descriptor, type DeserializeContext, type DevelopFilter, type DevelopSettings, type DropZone, EMPTY_DISTANCE, type EffectControl, EffectPattern, type ExportOptions, type FillOptions, GUIDED_FILTER_EPS, type GestureModifiers, GlobalLight, type GroupLayer, HISTOGRAM_BINS, HUE_RANGE_LABELS, type HistogramChannel, type HistoryEntryHandle, type HueRange, type HueSaturationParams, IDENTITY_MATRIX3, IMAGE_ADJUSTMENT_CONTROLS, IMAGE_EDITOR_SCHEMA_VERSION, IMAGE_EDITOR_STATE_VERSION, type ImageAdjustments, type ImageAnnotation, type ImageDimensions, type ImageEditorAIHooks, type ImageEditorAssetStore, ImageEditorController, type ImageEditorDocumentLoad, type ImageEditorFit, type ImageEditorOptions, ImageEditorRenderer, type ImageEditorState, type ImageEditorTool, type ImageEditorToolProviderOptions, type ImageHistogram, type ImageLayer, type ImageLayerType, type ImagePoint, type ImageProcessVersion, type ImageProjection, type ImageTransform, type InpaintHook, type InpaintOptions, type InvertParams, LATEST_PROCESS_VERSION, LAYERED_SCHEMA_VERSION, LAYER_EFFECT_MENU, LEGACY_PROCESS_VERSION, LUMA_709, type LayerBase, type LayerBlendMode, LayerCompositor, LayerEffect, LayerEffectKind, type LayerEffectRow, LayerEffects, type LayerEffectsPanelModel, type LayerFilter, type LayerFilterKind, type LayerLocation, LayerLocks, type LayerMaskProps, type LayerMenuAction, type LayerMenuItem, LayerOperationError, type LayerPanelRow, type LayerPlacement, type LayerProperties, type LayerSourcesHost, type LayerStack, type LayerTarget, type LegacyParts, type LegacySerializedImageEditorState, type LegacyViewResult, type LevelsChannel, type LevelsParams, type LineAnnotation, MAX_KELVIN, MIN_KELVIN, MIRED_PER_TEMPERATURE_UNIT, MIXER_MIXING_OPTIONS, MIXER_OPTION_CONTROLS, type MagicWandOptions, type Matrix3, MixerLoad, MixerSettings, MixerStroke, type MixerStrokeInit, MixerTarget, type MosaicImageDataLike, type MosaicRegion, PAINT_TOOLS, PATTERN_BLOCK_KEYS, PSD_BLEND_KEYS, PSD_FILE_ACCEPT, PaintGesture, type PaintOptions, type PaintPointerSample, type PaintStrokeResult, PaintStrokeSession, type PaintTool, type ParsedAdjustment, type ParsedLayerEffects, type PenAnnotation, type PhotoFilterParams, type PixelBuffer, type PixelLayer, type PixelLayerInit, type PixelOp, PixelSurface, type PlaneLayout, type PosterizeParams, type PsdChannel, PsdError, type PsdExportInput, type PsdExportResult, type PsdFile, type PsdHeader, type PsdImportOptions, type PsdImportResult, type PsdLayerMask, type PsdLayerRecord, type PsdLayerSummary, type PsdPattern, type PsdRect, type PsdResource, type PsdTaggedBlock, type PsdTreeNode, type QuickMaskStyle, REFINE_EDGE_CONTROLS, type RasterMask, type RectAnnotation, type ReferenceItem, type RefineEdgeControl, type RefineEdgeParams, type RemoveBackgroundHook, type RemoveBackgroundOptions, type RenderOptions, type RouteInput, SELECTION_MODES, SELECTION_MODE_LABELS, SELECTION_MODIFY_OPS, SELECTION_TOOLS, SUPPORTED_ADJUSTMENT_KEYS, type SampleOptions, type SelectionChannel, type SelectionCommandOptions, SelectionGesture, type SelectionMask, type SelectionMode, type SelectionModifyOp, type SelectionToolKind, type SelectionToolOptions, type SerializeContext, type SerializedAdjustmentLayer, type SerializedAnnotationLayer, type SerializedGroupLayer, type SerializedImageEditorState, type SerializedLayer, type SerializedLayerEffects, type SerializedLayeredImageEditorState, type SerializedPattern, type SerializedPixelLayer, type SerializedRasterMask, type SerializedSelection, type ShapeSelectionOptions, type ShortcutEvent, StrokeApply, StrokeCoverage, type StrokeInit, StrokePoint, type StrokeTool, TINT_SCALE, TONE_LUT_SIZE, TONE_RANGE_PRESETS, type TextAnnotation, type ThresholdParams, TiledSurface, type ToneRangePreset, type UnitLevels, VIBRANCE_GREY, type VibranceParams, type ViewportMetrics, XYZ_D50_TO_SRGB, activeAdjustmentLayers, addLayerEffect, addLayerFilter, addToHistogram, adjustmentKindLabel, adjustmentLayersKey, adjustmentNodeAsLayer, adjustmentNodeFromLegacy, annotationLayerFor, annotationLayerName, applyAdjustmentLayers, applyAdjustments, applyBoxBlur, applyDepthMask, applyImageProjectionToContext, applyLegacyAdjustments, applyMatrix3, applyOutputStage, applyProcess2Adjustments, applyRegionBlur, applyRegionMosaic, backgroundLayer, baseProjection, blackWhiteGray, blurFilter, borderCoverage, boxMean, boxToCurvePoint, bradfordAdaptation, buildLayerMaskPlanes, buildToneLut, calculateCropDrag, canvasToImagePoint, clampControlValue, clampCropToImage, colorBalanceChannel, colorRange, combineSelections, compileAdjustmentLayer, computeHistogram, computeSelectionBounds, contractCoverage, controlPosition, controlTrackBackground, coverageToByte, coveringRect, createAdjustmentLayer, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createSelectionMask, curveLutFromLevels, curvePointToBox, curveSvgPath, decodeLayerChannel, decodeLayerMask, decodeMergedImage, decodePlanes, decodePngDataUrl, decodeSelectionRle, defaultAdjustmentParams, depthMaskAlpha, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, deserializeEffects, deserializeLayer, deserializeLayers, deserializePatterns, deserializeSelection, developFilter, developFromAdjustments, developTarget, distanceTransform, downloadPsd, dropPlacement, dropZone, duplicateLayer, edgeWidth, effectControlChange, ellipsePoints, ellipseSelection, emptyHistogram, encodeRle, encodeSelectionRle, encodeSurface, evaluateAdjustmentLayers, expandCoverage, exportPsd, featherCoverage, findAdjustmentControl, findLayerControl, formatControlValue, fullSelection, getAnnotationBounds, getControlPath, getCropCursor, getRotatedSize, getViewportMetrics, getViewportProjection, globalImageCache, greyMorphology, groupLayers, guidePlanes, guidedFilterColor, handlePaintShortcut, hasResampledLegacyMask, hashMaskContent, hexToRgb, histogramPath, hitTestAnnotation, hitTestCrop, hitTestCurvePoint, hslToRgb, hueRange, hueRangeTables, hueRangeWeight, hueSaturation, identityCurve, identityLevels, imageEditorStateMigrations, imageToCanvasPoint, importPsd, insertCurvePoint, invertMatrix3, invertSelection, isActiveFilter, isAdjustmentKind, isDefaultDepthMask, isLegacyShape, isPaintTool, isQuarterTurn, isQuarterTurnSwapped, isSelectionEmpty, isSelectionMode, isSpatialFilter, kelvinToTemperature, layerBadge, layerEffectControls, layerEffectsBadge, layerEffectsOf, layerEffectsPanel, layerLabel, layerMaskCoverage, layerMaskFromSelection, layerMaskKey, layerMenu, layerName, layerPanelRows, layerTree, layerTypeLabel, layersFromLegacy, legacyAdjustmentLayer, legacyMaskOf, legacyView, levelsValue, linearSrgbToXy, linearToSrgb, loadImageEditorDocument, magicWand, mapCropHandle, maskSummary, migrateSerializedImageEditorState, migrateToLayeredState, mixerLoadResult, modifySelection, moveCurvePoint, moveLayer, mulMatrix3, needsLegacyBase, neutralHueRange, newLayerId, normalizeAdjustmentLayer, normalizeAdjustmentLayers, normalizeAngle, normalizeFilter, normalizeLayerMask, normalizeProcessVersion, normalizeRect, normalizeRefineEdgeParams, normalizeStoredAdjustments, offsetLayer, openPsdFile, parseAdjustmentBlock, parseBlend, parseColor, parseLfx2, parseLrfx, parsePatternBlock, parseSelectionMode, parseVersionedDescriptor, photoFilterMatrix, pixelLayerBounds, pixelLayers, placeLayer, pointerPressure, polygonCoverage, polygonSelection, posterizeValue, projectImagePoint, projectImageRect, projectMaskCoverage, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdPatternToEffectPattern, psdToLayers, quickMaskPixels, rangeLightness, rasterMaskFromLegacy, readAdjustmentControls, readPsd, rectSelection, refineCoverage, refineEdgeHalo, refineSelection, removeAlpha, removeCurvePoint, removeLayer, removeLayerEffect, removeLayerFilter, renderLayeredBase, requireLayer, requireUnlocked, resizePixels, resizeSelection, resolveExternalAssets, resolveMosaicRegionBounds, rgbToGray, rgbToHsl, rgbUnitToHex, runLayerMenuAction, sampleLut, sampleToneLut, selectionArea, selectionFromCoverage, selectionFromPixels, selectionModeFromModifiers, selectionOutline, selectionToCoverage, selectionToPixels, selectionValueAt, serializeEffects, serializeLayer, serializeLayers, serializeLayersExternal, serializePatterns, serializeSelection, setControlPath, setLayerEffects, setLayerEffectsEnabled, setLayerMask, setLayerProperties, shiftCoverage, smoothCoverage, splitOverlayAnnotations, srgb8ToLab, srgbToLinear, sumHistograms, tempTintToXy, temperatureToKelvin, toHex, toneCurve, toneLuts, toneRange, ungroupLayer, unionRect, unprojectCanvasPoint, updateLayerEffect, updateLayerFilter, updateLayerMaskProps, uvToXy, versionedDescriptorBytes, vibranceLinear, vibrancePixel, wbMatrix, whiteBalanceFromSample, whiteBalanceMatrix, withNewIds, writeAdjustmentBlock, writeLfx2, writePatternBlock, writePsd, xyToTempTint, xyToUv };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { P as PixelSurface,
|
|
4
|
-
export { a as BLEND_MODES, b as BlendModeInfo, M as MaskSurface, R as RasterRect, c as Rgb, d as Rgba, S as SurfaceDraft,
|
|
1
|
+
import { RasterLayerBase, RasterMask as RasterMask$1, RasterPixelLayer, GroupBlendMode, LayerLocation as LayerLocation$1, LayerLocks, LayerEffect, GlobalLight, LayerEffects, EffectPattern, RasterSources, RasterCompositor, CompositorOptions, LayerEffectKind } from '../raster/index.js';
|
|
2
|
+
export { BevelContour, BevelEmbossEffect, BevelStyle, BevelTechnique, BevelTexture, ColorOverlayEffect, CompositeCallOptions, CompositeStats, ContourPoint, DEFAULT_GLOBAL_LIGHT, DIRECT_GAUSSIAN_MAX_SIGMA, DecodedPng, DropShadowEffect, EffectContour, EffectFill, EffectGradient, EffectPatternRef, EffectRect, GlowTechnique, GradientColorStop, GradientOpacityStop, GradientOverlayEffect, GradientStyle, InnerGlowEffect, InnerShadowEffect, LAYER_EFFECT_KINDS, LayerEffectError, MAX_EFFECT_REACH, OuterGlowEffect, PatternOverlayEffect, PatternPlacement, PatternTile, SatinEffect, StrokeEffect, StrokePosition, ZlibError, adler32, base64ToBytes, blendTile, builtinPattern, builtinPatternIds, bytesToBase64, changedTiles, curveLut, decodePng, defaultEffectGradient, defaultLayerEffect, deflate, deflateRaw, effectColorHex, effectReach, effectsFingerprint, effectsMargin, effectsScale, encodePng, findLayer, flattenLayers, gaussianBlur, hasActiveEffects, hashNoise, inflate, inflateRaw, insertLayer, isLayerEffectKind, isLayerLocked, isPng, layerEffectFields, layerEffectLabel, mapLayer, mergeLayerEffect, newEffectId, normalizeLayerEffects, parseDataUrl, parseEffectColor, pngDataUrl, renderLayerEffects, scaleLayerEffect, validateEffectGradient, validateLayerEffect, validateLayerEffects } from '../raster/index.js';
|
|
3
|
+
import { P as PixelSurface, T as TiledSurface, B as BlendMode } from '../surface-DIA-XatS.js';
|
|
4
|
+
export { a as BLEND_MODES, b as BlendModeInfo, M as MaskSurface, R as RasterRect, c as Rgb, d as Rgba, S as SurfaceDraft, e as TILE, f as TILE_SHIFT, g as Tile, h as TileKey, i as blendChannel, j as blendImageData, k as blendLum, l as blendPixel, m as blendRgb, n as canvasCompositeOperation, o as collectTiles, p as contentBounds, q as emptySurface, r as fillRect, s as finishTile, t as isBlendMode, u as isSeparableBlendMode, v as mixPigment8, w as mixPigmentRgb, x as normalizeBlendMode, y as packRgba, z as readPixel, A as readRegion, C as setLum, D as solidSurface, E as surfaceBytes, F as surfaceFromPixels, G as surfacesEqual, H as tileCoord, I as tileKey, J as tileRect, K as tilesInRect, L as translateSurface, N as uniformTile, O as writeRegion } from '../surface-DIA-XatS.js';
|
|
5
5
|
import { BrushSettings, MixerSettings, MixerLoad, StrokeCoverage, MixerTarget, MixerStroke, StrokeApply, StrokePoint } from '../paint/index.js';
|
|
6
6
|
export { CoverageMap, DEFAULT_BRUSH, DEFAULT_MIXER, Dab, DabWalker, EMPTY_MIXER_LOAD, MAX_BRUSH_SIZE, MIXER_DRAIN, MIXER_PICKUP_RATE, MIXING_MODELS, MixingModel, PIGMENT_BANDS, PIGMENT_LAMBDA_MIN, PIGMENT_LAMBDA_STEP, PIGMENT_WAVELENGTHS, Pigment, PigmentOptions, PigmentRgb, applyStrokeToTile, cleanMixer, coverageTileCoord, createPigment, createPigmentTools, dabCoverage, dabRect, lerpPigment, lerpPigmentInto, loadMixer, mixPigments, normalizeBrush, normalizeMixer, rasterizeDab, reflectanceToRgb, rgbToReflectance, setPigmentColor, smoothPoints, tipFalloff, tipReach, tipShape, walkDabs } from '../paint/index.js';
|
|
7
7
|
import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.js';
|
|
@@ -286,7 +286,17 @@ interface SerializedLayeredImageEditorState {
|
|
|
286
286
|
selection?: SerializedSelection;
|
|
287
287
|
/** Global light for layer effects (missing = 120°, 30°). */
|
|
288
288
|
globalLight?: GlobalLight;
|
|
289
|
+
/** The document's patterns for pattern effects, each an RGBA PNG data URL. */
|
|
290
|
+
patterns?: SerializedPattern[];
|
|
289
291
|
}
|
|
292
|
+
interface SerializedPattern {
|
|
293
|
+
id: string;
|
|
294
|
+
name: string;
|
|
295
|
+
png: string;
|
|
296
|
+
}
|
|
297
|
+
declare function serializePatterns(patterns: readonly EffectPattern[]): SerializedPattern[];
|
|
298
|
+
/** Reads stored patterns, skipping (and reporting in `problems`) any that cannot be decoded. */
|
|
299
|
+
declare function deserializePatterns(raw: unknown, problems?: string[]): EffectPattern[];
|
|
290
300
|
interface EncodedSurface {
|
|
291
301
|
url: string;
|
|
292
302
|
x: number;
|
|
@@ -1174,6 +1184,10 @@ interface PsdImportResult {
|
|
|
1174
1184
|
summary: PsdLayerSummary[];
|
|
1175
1185
|
/** Pixels per inch, when the file says. */
|
|
1176
1186
|
resolution?: number;
|
|
1187
|
+
/** The patterns embedded in the file (`Patt` / `Pat2` / `Pat3`), which pattern effects use. */
|
|
1188
|
+
patterns: EffectPattern[];
|
|
1189
|
+
/** The global light (image resources 1037 and 1049), when the file has one. */
|
|
1190
|
+
globalLight?: GlobalLight;
|
|
1177
1191
|
info: {
|
|
1178
1192
|
psb: boolean;
|
|
1179
1193
|
depth: number;
|
|
@@ -1614,6 +1628,11 @@ declare class ImageEditorController {
|
|
|
1614
1628
|
setLayerEffectsEnabled(id: string, enabled: boolean, scale?: number, commitToHistory?: boolean): LayerEffects;
|
|
1615
1629
|
/** Replaces a layer's effects (one undo step; `null` removes them). Returns the effects. */
|
|
1616
1630
|
setLayerEffects(id: string, effects: LayerEffects | null, commitToHistory?: boolean): LayerEffects;
|
|
1631
|
+
private patternIds;
|
|
1632
|
+
/** Changes whenever the document's pattern list is replaced (the compositor then drops its caches). */
|
|
1633
|
+
private patternsVersion;
|
|
1634
|
+
/** The document's patterns (from an opened PSD), besides the built-in ones. */
|
|
1635
|
+
getDocumentPatterns(): EffectPattern[];
|
|
1617
1636
|
/** The light effects with "use global light" follow. */
|
|
1618
1637
|
getGlobalLight(): GlobalLight;
|
|
1619
1638
|
/** Sets the global light (one undo step). `angle` -360..360°, `altitude` 0..90°. Returns it. */
|
|
@@ -2314,6 +2333,11 @@ interface ImageEditorState {
|
|
|
2314
2333
|
* missing = angle 120°, altitude 30°. Recorded in undo history and saved in `toJSON()`.
|
|
2315
2334
|
*/
|
|
2316
2335
|
globalLight?: GlobalLight;
|
|
2336
|
+
/**
|
|
2337
|
+
* The document's patterns (from an opened PSD), which pattern effects use by id besides the
|
|
2338
|
+
* built-in ones. Recorded in undo history and saved in `toJSON()`.
|
|
2339
|
+
*/
|
|
2340
|
+
patterns?: EffectPattern[];
|
|
2317
2341
|
}
|
|
2318
2342
|
/**
|
|
2319
2343
|
* A stored editor state in the document-level schema (versions 1 and 2). Documents whose layer
|
|
@@ -3224,6 +3248,80 @@ declare function layerMenu(controller: ImageEditorController): LayerMenuItem[];
|
|
|
3224
3248
|
/** Runs a menu action on the active layer. Resolves to the error message when it was refused. */
|
|
3225
3249
|
declare function runLayerMenuAction(controller: ImageEditorController, action: LayerMenuAction): Promise<string | null>;
|
|
3226
3250
|
|
|
3251
|
+
/**
|
|
3252
|
+
* The layer effects section's view model, shared by the React and Svelte panels: whether a layer
|
|
3253
|
+
* can take effects, its effect rows, the menu of kinds to add, and per effect a flat list of
|
|
3254
|
+
* controls (sliders, colours, toggles, choices) with how a change maps to `updateLayerEffect`.
|
|
3255
|
+
*/
|
|
3256
|
+
|
|
3257
|
+
interface LayerEffectRow {
|
|
3258
|
+
id: string;
|
|
3259
|
+
kind: LayerEffectKind;
|
|
3260
|
+
label: string;
|
|
3261
|
+
enabled: boolean;
|
|
3262
|
+
}
|
|
3263
|
+
interface LayerEffectsPanelModel {
|
|
3264
|
+
/** Whether the layer can carry effects (adjustment layers cannot; a fully locked layer refuses changes). */
|
|
3265
|
+
available: boolean;
|
|
3266
|
+
/** Why not, when unavailable or read-only. */
|
|
3267
|
+
reason?: string;
|
|
3268
|
+
readOnly: boolean;
|
|
3269
|
+
enabled: boolean;
|
|
3270
|
+
/** Scale Effects, 1 = 100 %. */
|
|
3271
|
+
scale: number;
|
|
3272
|
+
rows: LayerEffectRow[];
|
|
3273
|
+
}
|
|
3274
|
+
/** The effects section for `layer`. */
|
|
3275
|
+
declare function layerEffectsPanel(layer: ImageLayer | null | undefined): LayerEffectsPanelModel;
|
|
3276
|
+
/** The fx badge of a layer row: `on` (effects render), `off` (effects but switched off), or `null`. */
|
|
3277
|
+
declare function layerEffectsBadge(layer: ImageLayer): 'on' | 'off' | null;
|
|
3278
|
+
/** The kinds the "Add effect" menu offers, in the Layer Style dialog's order. */
|
|
3279
|
+
declare const LAYER_EFFECT_MENU: ReadonlyArray<{
|
|
3280
|
+
kind: LayerEffectKind;
|
|
3281
|
+
label: string;
|
|
3282
|
+
}>;
|
|
3283
|
+
type EffectControl = {
|
|
3284
|
+
key: string;
|
|
3285
|
+
label: string;
|
|
3286
|
+
type: 'range';
|
|
3287
|
+
min: number;
|
|
3288
|
+
max: number;
|
|
3289
|
+
step: number;
|
|
3290
|
+
value: number; /** Shown and edited as percent (value × 100). */
|
|
3291
|
+
percent?: boolean;
|
|
3292
|
+
unit?: string;
|
|
3293
|
+
} | {
|
|
3294
|
+
key: string;
|
|
3295
|
+
label: string;
|
|
3296
|
+
type: 'color';
|
|
3297
|
+
value: string;
|
|
3298
|
+
} | {
|
|
3299
|
+
key: string;
|
|
3300
|
+
label: string;
|
|
3301
|
+
type: 'checkbox';
|
|
3302
|
+
value: boolean;
|
|
3303
|
+
} | {
|
|
3304
|
+
key: string;
|
|
3305
|
+
label: string;
|
|
3306
|
+
type: 'select';
|
|
3307
|
+
value: string;
|
|
3308
|
+
options: Array<{
|
|
3309
|
+
value: string;
|
|
3310
|
+
label: string;
|
|
3311
|
+
}>;
|
|
3312
|
+
};
|
|
3313
|
+
/**
|
|
3314
|
+
* The controls for one effect, in the Layer Style dialog's order. `patterns` are the document's
|
|
3315
|
+
* patterns (the built-in ones are always offered).
|
|
3316
|
+
*/
|
|
3317
|
+
declare function layerEffectControls(e: LayerEffect, patterns?: readonly EffectPattern[]): EffectControl[];
|
|
3318
|
+
/**
|
|
3319
|
+
* The `updateLayerEffect` settings for setting control `key` of `effect` to `value` (a nested
|
|
3320
|
+
* object such as `fill` or `gradient` is replaced whole, with the one field changed). Values are
|
|
3321
|
+
* in the effect's own units (fractions for percent controls).
|
|
3322
|
+
*/
|
|
3323
|
+
declare function effectControlChange(effect: LayerEffect, key: string, value: unknown, patterns?: readonly EffectPattern[]): Record<string, unknown>;
|
|
3324
|
+
|
|
3227
3325
|
/** A Mixer Brush load as tool output: hex colours and the amount left. */
|
|
3228
3326
|
declare function mixerLoadResult(load: MixerLoad): {
|
|
3229
3327
|
reservoir: string | null;
|
|
@@ -3455,16 +3553,85 @@ interface PsdExportInput {
|
|
|
3455
3553
|
merged: ArrayLike<number>;
|
|
3456
3554
|
/** Pixels per inch (default 72). */
|
|
3457
3555
|
resolution?: number;
|
|
3556
|
+
/** The document's patterns; those the effects use are embedded (built-in ones too). */
|
|
3557
|
+
patterns?: readonly EffectPattern[];
|
|
3558
|
+
/** Written as image resources 1037 and 1049. */
|
|
3559
|
+
globalLight?: GlobalLight;
|
|
3458
3560
|
}
|
|
3459
3561
|
interface PsdExportResult {
|
|
3460
3562
|
bytes: Uint8Array;
|
|
3461
3563
|
psb: boolean;
|
|
3462
3564
|
/** Layer records written (group folders and dividers included). */
|
|
3463
3565
|
records: number;
|
|
3566
|
+
/** One sentence per loss, naming the layers. */
|
|
3567
|
+
warnings: string[];
|
|
3464
3568
|
}
|
|
3465
3569
|
/** Writes the prepared stack as PSD (or PSB) bytes. */
|
|
3466
3570
|
declare function exportPsd(input: PsdExportInput): PsdExportResult;
|
|
3467
3571
|
|
|
3572
|
+
interface ParsedLayerEffects {
|
|
3573
|
+
effects: LayerEffects;
|
|
3574
|
+
/** What could not be held exactly (empty when the mapping is exact). */
|
|
3575
|
+
notes: string[];
|
|
3576
|
+
}
|
|
3577
|
+
/**
|
|
3578
|
+
* Parses `lfx2` / `lfxs` / `lmfx` block data (u32 version 0, then a versioned descriptor).
|
|
3579
|
+
* Effects marked `present: false` are left out. Returns `null` when the data is not a descriptor.
|
|
3580
|
+
*/
|
|
3581
|
+
declare function parseLfx2(data: Uint8Array): ParsedLayerEffects | null;
|
|
3582
|
+
/**
|
|
3583
|
+
* Writes effects as `lfx2` block data, Scale Effects baked into the sizes (Photoshop's `Scl ` is
|
|
3584
|
+
* written as 100 %). Several instances of one kind go into its multi key
|
|
3585
|
+
* (`dropShadowMulti`, `frameFXMulti` …); kinds without one keep only the first instance.
|
|
3586
|
+
* Returns the data and how many instances had to be left out.
|
|
3587
|
+
*/
|
|
3588
|
+
declare function writeLfx2(effects: LayerEffects): {
|
|
3589
|
+
data: Uint8Array;
|
|
3590
|
+
dropped: number;
|
|
3591
|
+
};
|
|
3592
|
+
/** Parses legacy `lrFX` effects: drop / inner shadows, outer / inner glows and solid fill. Bevels are skipped. */
|
|
3593
|
+
declare function parseLrfx(data: Uint8Array): ParsedLayerEffects | null;
|
|
3594
|
+
|
|
3595
|
+
/**
|
|
3596
|
+
* Patterns: the global `Patt` / `Pat2` / `Pat3` tagged blocks (8 / 16 / 32-bit documents), which
|
|
3597
|
+
* pattern overlays, pattern strokes and bevel textures refer to by id.
|
|
3598
|
+
*
|
|
3599
|
+
* ```text
|
|
3600
|
+
* pattern := version u32 (1), image mode u32, height u16, width u16,
|
|
3601
|
+
* name (Unicode string), unique id (Pascal string, unpadded),
|
|
3602
|
+
* [indexed: 768-byte palette], virtual memory array list
|
|
3603
|
+
* VMA list := version u32 (3), length u32, rect (top, left, bottom, right i32),
|
|
3604
|
+
* channel count u32, then count + 2 arrays (user mask, sheet mask)
|
|
3605
|
+
* array := written u32 (0 = absent), length u32 (0 = absent), depth u32, rect,
|
|
3606
|
+
* depth u16, compression u8 (0 raw, 1 PackBits), data
|
|
3607
|
+
* ```
|
|
3608
|
+
*
|
|
3609
|
+
* Each pattern in a block is prefixed by its u32 length and padded to 4 bytes. Photoshop writes
|
|
3610
|
+
* the channel count as 24 and marks only the real channels as written; the first written arrays
|
|
3611
|
+
* are the colour channels and the next one is transparency.
|
|
3612
|
+
*/
|
|
3613
|
+
|
|
3614
|
+
/** Pattern block keys, by document depth. */
|
|
3615
|
+
declare const PATTERN_BLOCK_KEYS: string[];
|
|
3616
|
+
/** One pattern tile as stored: planar samples. */
|
|
3617
|
+
interface PsdPattern {
|
|
3618
|
+
mode: number;
|
|
3619
|
+
width: number;
|
|
3620
|
+
height: number;
|
|
3621
|
+
name: string;
|
|
3622
|
+
id: string;
|
|
3623
|
+
palette?: Uint8Array;
|
|
3624
|
+
depth: number;
|
|
3625
|
+
channels: Uint8Array[];
|
|
3626
|
+
alpha?: Uint8Array;
|
|
3627
|
+
}
|
|
3628
|
+
/** The patterns of a `Patt` / `Pat2` / `Pat3` block. Throws `PsdError` on malformed data. */
|
|
3629
|
+
declare function parsePatternBlock(data: Uint8Array): PsdPattern[];
|
|
3630
|
+
/** A stored pattern as straight 8-bit sRGB RGBA, for rendering. */
|
|
3631
|
+
declare function psdPatternToEffectPattern(p: PsdPattern): EffectPattern;
|
|
3632
|
+
/** Writes 8-bit RGB(A) patterns as `Patt` block data (PackBits channels, transparency in the user mask slot). */
|
|
3633
|
+
declare function writePatternBlock(patterns: readonly EffectPattern[]): Uint8Array;
|
|
3634
|
+
|
|
3468
3635
|
/** Framework-free helpers behind the PSD buttons of the React and Svelte layer panels. */
|
|
3469
3636
|
|
|
3470
3637
|
/** Types the file pickers accept. */
|
|
@@ -3490,4 +3657,4 @@ declare function psdBytesFromBase64(data: unknown): Uint8Array;
|
|
|
3490
3657
|
*/
|
|
3491
3658
|
declare function createImagePsdTools(controller: ImageEditorController): AgentTool[];
|
|
3492
3659
|
|
|
3493
|
-
export { ADJUSTMENT_KEYS, ADJUSTMENT_KINDS, ADJUSTMENT_LAYER_CONTROLS, ADJUSTMENT_LAYER_OPACITY_CONTROL, ADJUSTMENT_LUT_SIZE, type AIResultOptions, AS_SHOT_KELVIN, type AdjustmentKind, type AdjustmentKindInfo, type AdjustmentLayer, type AdjustmentLayerBase, type AdjustmentLayerInit, type AdjustmentLayerMask, type AdjustmentLayerNode, type AdjustmentLayerOf, type AdjustmentLayerUpdate, type AdjustmentParamsMap, type Annotation, type AnnotationLayer, type AnnotationPlacement, type AnnotationType, type ArrowAnnotation, type AspectRatio, BACKGROUND_LAYER_ID, BACKGROUND_LAYER_NAME, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, type BaseAnnotation, type BlackWhiteParams, BlendMode, type BlurFilter, BrushSettings, type Chromaticity, type CircleAnnotation, type ColorBalanceParams, type ColorBalanceTone, type ColorDistance, type ColorRangeOptions, type ColorRangeSample, CompositorOptions, type CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type CreateAnnotationPayload, type CropBox, type CropHandle, type CurvePoint, type CurvesParams, D50, D65, DEFAULT_ADJUSTMENTS, DEFAULT_DEPTH_MASK, DEFAULT_REFINE_EDGE_PARAMS, DEFAULT_SELECTION_TOOL_OPTIONS, DEFAULT_TRANSFORM, DEVELOP_FILTER_ID, type DepthMaskOptions, type DescValue, type Descriptor, type DeserializeContext, type DevelopFilter, type DevelopSettings, type DropZone, EMPTY_DISTANCE, type ExportOptions, type FillOptions, GUIDED_FILTER_EPS, type GestureModifiers, type GroupLayer, HISTOGRAM_BINS, HUE_RANGE_LABELS, type HistogramChannel, type HistoryEntryHandle, type HueRange, type HueSaturationParams, IDENTITY_MATRIX3, IMAGE_ADJUSTMENT_CONTROLS, IMAGE_EDITOR_SCHEMA_VERSION, IMAGE_EDITOR_STATE_VERSION, type ImageAdjustments, type ImageAnnotation, type ImageDimensions, type ImageEditorAIHooks, type ImageEditorAssetStore, ImageEditorController, type ImageEditorDocumentLoad, type ImageEditorFit, type ImageEditorOptions, ImageEditorRenderer, type ImageEditorState, type ImageEditorTool, type ImageEditorToolProviderOptions, type ImageHistogram, type ImageLayer, type ImageLayerType, type ImagePoint, type ImageProcessVersion, type ImageProjection, type ImageTransform, type InpaintHook, type InpaintOptions, type InvertParams, LATEST_PROCESS_VERSION, LAYERED_SCHEMA_VERSION, LEGACY_PROCESS_VERSION, LUMA_709, type LayerBase, type LayerBlendMode, LayerCompositor, type LayerFilter, type LayerFilterKind, type LayerLocation, LayerLocks, type LayerMaskProps, type LayerMenuAction, type LayerMenuItem, LayerOperationError, type LayerPanelRow, type LayerPlacement, type LayerProperties, type LayerSourcesHost, type LayerStack, type LayerTarget, type LegacyParts, type LegacySerializedImageEditorState, type LegacyViewResult, type LevelsChannel, type LevelsParams, type LineAnnotation, MAX_KELVIN, MIN_KELVIN, MIRED_PER_TEMPERATURE_UNIT, MIXER_MIXING_OPTIONS, MIXER_OPTION_CONTROLS, type MagicWandOptions, type Matrix3, MixerLoad, MixerSettings, MixerStroke, type MixerStrokeInit, MixerTarget, type MosaicImageDataLike, type MosaicRegion, PAINT_TOOLS, PSD_BLEND_KEYS, PSD_FILE_ACCEPT, PaintGesture, type PaintOptions, type PaintPointerSample, type PaintStrokeResult, PaintStrokeSession, type PaintTool, type ParsedAdjustment, type PenAnnotation, type PhotoFilterParams, type PixelBuffer, type PixelLayer, type PixelLayerInit, type PixelOp, PixelSurface, type PlaneLayout, type PosterizeParams, type PsdChannel, PsdError, type PsdExportInput, type PsdExportResult, type PsdFile, type PsdHeader, type PsdImportOptions, type PsdImportResult, type PsdLayerMask, type PsdLayerRecord, type PsdLayerSummary, type PsdRect, type PsdResource, type PsdTaggedBlock, type PsdTreeNode, type QuickMaskStyle, REFINE_EDGE_CONTROLS, type RasterMask, type RectAnnotation, type ReferenceItem, type RefineEdgeControl, type RefineEdgeParams, type RemoveBackgroundHook, type RemoveBackgroundOptions, type RenderOptions, type RouteInput, SELECTION_MODES, SELECTION_MODE_LABELS, SELECTION_MODIFY_OPS, SELECTION_TOOLS, SUPPORTED_ADJUSTMENT_KEYS, type SampleOptions, type SelectionChannel, type SelectionCommandOptions, SelectionGesture, type SelectionMask, type SelectionMode, type SelectionModifyOp, type SelectionToolKind, type SelectionToolOptions, type SerializeContext, type SerializedAdjustmentLayer, type SerializedAnnotationLayer, type SerializedGroupLayer, type SerializedImageEditorState, type SerializedLayer, type SerializedLayerEffects, type SerializedLayeredImageEditorState, type SerializedPixelLayer, type SerializedRasterMask, type SerializedSelection, type ShapeSelectionOptions, type ShortcutEvent, StrokeApply, StrokeCoverage, type StrokeInit, StrokePoint, type StrokeTool, TINT_SCALE, TONE_LUT_SIZE, TONE_RANGE_PRESETS, type TextAnnotation, type ThresholdParams, TiledSurface, type ToneRangePreset, type UnitLevels, VIBRANCE_GREY, type VibranceParams, type ViewportMetrics, XYZ_D50_TO_SRGB, activeAdjustmentLayers, addLayerEffect, addLayerFilter, addToHistogram, adjustmentKindLabel, adjustmentLayersKey, adjustmentNodeAsLayer, adjustmentNodeFromLegacy, annotationLayerFor, annotationLayerName, applyAdjustmentLayers, applyAdjustments, applyBoxBlur, applyDepthMask, applyImageProjectionToContext, applyLegacyAdjustments, applyMatrix3, applyOutputStage, applyProcess2Adjustments, applyRegionBlur, applyRegionMosaic, backgroundLayer, baseProjection, blackWhiteGray, blurFilter, borderCoverage, boxMean, boxToCurvePoint, bradfordAdaptation, buildLayerMaskPlanes, buildToneLut, calculateCropDrag, canvasToImagePoint, clampControlValue, clampCropToImage, colorBalanceChannel, colorRange, combineSelections, compileAdjustmentLayer, computeHistogram, computeSelectionBounds, contractCoverage, controlPosition, controlTrackBackground, coverageToByte, coveringRect, createAdjustmentLayer, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createSelectionMask, curveLutFromLevels, curvePointToBox, curveSvgPath, decodeLayerChannel, decodeLayerMask, decodeMergedImage, decodePlanes, decodePngDataUrl, decodeSelectionRle, defaultAdjustmentParams, depthMaskAlpha, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, deserializeEffects, deserializeLayer, deserializeLayers, deserializeSelection, developFilter, developFromAdjustments, developTarget, distanceTransform, downloadPsd, dropPlacement, dropZone, duplicateLayer, edgeWidth, ellipsePoints, ellipseSelection, emptyHistogram, encodeRle, encodeSelectionRle, encodeSurface, evaluateAdjustmentLayers, expandCoverage, exportPsd, featherCoverage, findAdjustmentControl, findLayerControl, formatControlValue, fullSelection, getAnnotationBounds, getControlPath, getCropCursor, getRotatedSize, getViewportMetrics, getViewportProjection, globalImageCache, greyMorphology, groupLayers, guidePlanes, guidedFilterColor, handlePaintShortcut, hasResampledLegacyMask, hashMaskContent, hexToRgb, histogramPath, hitTestAnnotation, hitTestCrop, hitTestCurvePoint, hslToRgb, hueRange, hueRangeTables, hueRangeWeight, hueSaturation, identityCurve, identityLevels, imageEditorStateMigrations, imageToCanvasPoint, importPsd, insertCurvePoint, invertMatrix3, invertSelection, isActiveFilter, isAdjustmentKind, isDefaultDepthMask, isLegacyShape, isPaintTool, isQuarterTurn, isQuarterTurnSwapped, isSelectionEmpty, isSelectionMode, isSpatialFilter, kelvinToTemperature, layerBadge, layerEffectsOf, layerLabel, layerMaskCoverage, layerMaskFromSelection, layerMaskKey, layerMenu, layerName, layerPanelRows, layerTree, layerTypeLabel, layersFromLegacy, legacyAdjustmentLayer, legacyMaskOf, legacyView, levelsValue, linearSrgbToXy, linearToSrgb, loadImageEditorDocument, magicWand, mapCropHandle, maskSummary, migrateSerializedImageEditorState, migrateToLayeredState, mixerLoadResult, modifySelection, moveCurvePoint, moveLayer, mulMatrix3, needsLegacyBase, neutralHueRange, newLayerId, normalizeAdjustmentLayer, normalizeAdjustmentLayers, normalizeAngle, normalizeFilter, normalizeLayerMask, normalizeProcessVersion, normalizeRect, normalizeRefineEdgeParams, normalizeStoredAdjustments, offsetLayer, openPsdFile, parseAdjustmentBlock, parseBlend, parseColor, parseSelectionMode, parseVersionedDescriptor, photoFilterMatrix, pixelLayerBounds, pixelLayers, placeLayer, pointerPressure, polygonCoverage, polygonSelection, posterizeValue, projectImagePoint, projectImageRect, projectMaskCoverage, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdToLayers, quickMaskPixels, rangeLightness, rasterMaskFromLegacy, readAdjustmentControls, readPsd, rectSelection, refineCoverage, refineEdgeHalo, refineSelection, removeAlpha, removeCurvePoint, removeLayer, removeLayerEffect, removeLayerFilter, renderLayeredBase, requireLayer, requireUnlocked, resizePixels, resizeSelection, resolveExternalAssets, resolveMosaicRegionBounds, rgbToGray, rgbToHsl, rgbUnitToHex, runLayerMenuAction, sampleLut, sampleToneLut, selectionArea, selectionFromCoverage, selectionFromPixels, selectionModeFromModifiers, selectionOutline, selectionToCoverage, selectionToPixels, selectionValueAt, serializeEffects, serializeLayer, serializeLayers, serializeLayersExternal, serializeSelection, setControlPath, setLayerEffects, setLayerEffectsEnabled, setLayerMask, setLayerProperties, shiftCoverage, smoothCoverage, splitOverlayAnnotations, srgb8ToLab, srgbToLinear, sumHistograms, tempTintToXy, temperatureToKelvin, toHex, toneCurve, toneLuts, toneRange, ungroupLayer, unionRect, unprojectCanvasPoint, updateLayerEffect, updateLayerFilter, updateLayerMaskProps, uvToXy, versionedDescriptorBytes, vibranceLinear, vibrancePixel, wbMatrix, whiteBalanceFromSample, whiteBalanceMatrix, withNewIds, writeAdjustmentBlock, writePsd, xyToTempTint, xyToUv };
|
|
3660
|
+
export { ADJUSTMENT_KEYS, ADJUSTMENT_KINDS, ADJUSTMENT_LAYER_CONTROLS, ADJUSTMENT_LAYER_OPACITY_CONTROL, ADJUSTMENT_LUT_SIZE, type AIResultOptions, AS_SHOT_KELVIN, type AdjustmentKind, type AdjustmentKindInfo, type AdjustmentLayer, type AdjustmentLayerBase, type AdjustmentLayerInit, type AdjustmentLayerMask, type AdjustmentLayerNode, type AdjustmentLayerOf, type AdjustmentLayerUpdate, type AdjustmentParamsMap, type Annotation, type AnnotationLayer, type AnnotationPlacement, type AnnotationType, type ArrowAnnotation, type AspectRatio, BACKGROUND_LAYER_ID, BACKGROUND_LAYER_NAME, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, type BaseAnnotation, type BlackWhiteParams, BlendMode, type BlurFilter, BrushSettings, type Chromaticity, type CircleAnnotation, type ColorBalanceParams, type ColorBalanceTone, type ColorDistance, type ColorRangeOptions, type ColorRangeSample, CompositorOptions, type CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type CreateAnnotationPayload, type CropBox, type CropHandle, type CurvePoint, type CurvesParams, D50, D65, DEFAULT_ADJUSTMENTS, DEFAULT_DEPTH_MASK, DEFAULT_REFINE_EDGE_PARAMS, DEFAULT_SELECTION_TOOL_OPTIONS, DEFAULT_TRANSFORM, DEVELOP_FILTER_ID, type DepthMaskOptions, type DescValue, type Descriptor, type DeserializeContext, type DevelopFilter, type DevelopSettings, type DropZone, EMPTY_DISTANCE, type EffectControl, EffectPattern, type ExportOptions, type FillOptions, GUIDED_FILTER_EPS, type GestureModifiers, GlobalLight, type GroupLayer, HISTOGRAM_BINS, HUE_RANGE_LABELS, type HistogramChannel, type HistoryEntryHandle, type HueRange, type HueSaturationParams, IDENTITY_MATRIX3, IMAGE_ADJUSTMENT_CONTROLS, IMAGE_EDITOR_SCHEMA_VERSION, IMAGE_EDITOR_STATE_VERSION, type ImageAdjustments, type ImageAnnotation, type ImageDimensions, type ImageEditorAIHooks, type ImageEditorAssetStore, ImageEditorController, type ImageEditorDocumentLoad, type ImageEditorFit, type ImageEditorOptions, ImageEditorRenderer, type ImageEditorState, type ImageEditorTool, type ImageEditorToolProviderOptions, type ImageHistogram, type ImageLayer, type ImageLayerType, type ImagePoint, type ImageProcessVersion, type ImageProjection, type ImageTransform, type InpaintHook, type InpaintOptions, type InvertParams, LATEST_PROCESS_VERSION, LAYERED_SCHEMA_VERSION, LAYER_EFFECT_MENU, LEGACY_PROCESS_VERSION, LUMA_709, type LayerBase, type LayerBlendMode, LayerCompositor, LayerEffect, LayerEffectKind, type LayerEffectRow, LayerEffects, type LayerEffectsPanelModel, type LayerFilter, type LayerFilterKind, type LayerLocation, LayerLocks, type LayerMaskProps, type LayerMenuAction, type LayerMenuItem, LayerOperationError, type LayerPanelRow, type LayerPlacement, type LayerProperties, type LayerSourcesHost, type LayerStack, type LayerTarget, type LegacyParts, type LegacySerializedImageEditorState, type LegacyViewResult, type LevelsChannel, type LevelsParams, type LineAnnotation, MAX_KELVIN, MIN_KELVIN, MIRED_PER_TEMPERATURE_UNIT, MIXER_MIXING_OPTIONS, MIXER_OPTION_CONTROLS, type MagicWandOptions, type Matrix3, MixerLoad, MixerSettings, MixerStroke, type MixerStrokeInit, MixerTarget, type MosaicImageDataLike, type MosaicRegion, PAINT_TOOLS, PATTERN_BLOCK_KEYS, PSD_BLEND_KEYS, PSD_FILE_ACCEPT, PaintGesture, type PaintOptions, type PaintPointerSample, type PaintStrokeResult, PaintStrokeSession, type PaintTool, type ParsedAdjustment, type ParsedLayerEffects, type PenAnnotation, type PhotoFilterParams, type PixelBuffer, type PixelLayer, type PixelLayerInit, type PixelOp, PixelSurface, type PlaneLayout, type PosterizeParams, type PsdChannel, PsdError, type PsdExportInput, type PsdExportResult, type PsdFile, type PsdHeader, type PsdImportOptions, type PsdImportResult, type PsdLayerMask, type PsdLayerRecord, type PsdLayerSummary, type PsdPattern, type PsdRect, type PsdResource, type PsdTaggedBlock, type PsdTreeNode, type QuickMaskStyle, REFINE_EDGE_CONTROLS, type RasterMask, type RectAnnotation, type ReferenceItem, type RefineEdgeControl, type RefineEdgeParams, type RemoveBackgroundHook, type RemoveBackgroundOptions, type RenderOptions, type RouteInput, SELECTION_MODES, SELECTION_MODE_LABELS, SELECTION_MODIFY_OPS, SELECTION_TOOLS, SUPPORTED_ADJUSTMENT_KEYS, type SampleOptions, type SelectionChannel, type SelectionCommandOptions, SelectionGesture, type SelectionMask, type SelectionMode, type SelectionModifyOp, type SelectionToolKind, type SelectionToolOptions, type SerializeContext, type SerializedAdjustmentLayer, type SerializedAnnotationLayer, type SerializedGroupLayer, type SerializedImageEditorState, type SerializedLayer, type SerializedLayerEffects, type SerializedLayeredImageEditorState, type SerializedPattern, type SerializedPixelLayer, type SerializedRasterMask, type SerializedSelection, type ShapeSelectionOptions, type ShortcutEvent, StrokeApply, StrokeCoverage, type StrokeInit, StrokePoint, type StrokeTool, TINT_SCALE, TONE_LUT_SIZE, TONE_RANGE_PRESETS, type TextAnnotation, type ThresholdParams, TiledSurface, type ToneRangePreset, type UnitLevels, VIBRANCE_GREY, type VibranceParams, type ViewportMetrics, XYZ_D50_TO_SRGB, activeAdjustmentLayers, addLayerEffect, addLayerFilter, addToHistogram, adjustmentKindLabel, adjustmentLayersKey, adjustmentNodeAsLayer, adjustmentNodeFromLegacy, annotationLayerFor, annotationLayerName, applyAdjustmentLayers, applyAdjustments, applyBoxBlur, applyDepthMask, applyImageProjectionToContext, applyLegacyAdjustments, applyMatrix3, applyOutputStage, applyProcess2Adjustments, applyRegionBlur, applyRegionMosaic, backgroundLayer, baseProjection, blackWhiteGray, blurFilter, borderCoverage, boxMean, boxToCurvePoint, bradfordAdaptation, buildLayerMaskPlanes, buildToneLut, calculateCropDrag, canvasToImagePoint, clampControlValue, clampCropToImage, colorBalanceChannel, colorRange, combineSelections, compileAdjustmentLayer, computeHistogram, computeSelectionBounds, contractCoverage, controlPosition, controlTrackBackground, coverageToByte, coveringRect, createAdjustmentLayer, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createSelectionMask, curveLutFromLevels, curvePointToBox, curveSvgPath, decodeLayerChannel, decodeLayerMask, decodeMergedImage, decodePlanes, decodePngDataUrl, decodeSelectionRle, defaultAdjustmentParams, depthMaskAlpha, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, deserializeEffects, deserializeLayer, deserializeLayers, deserializePatterns, deserializeSelection, developFilter, developFromAdjustments, developTarget, distanceTransform, downloadPsd, dropPlacement, dropZone, duplicateLayer, edgeWidth, effectControlChange, ellipsePoints, ellipseSelection, emptyHistogram, encodeRle, encodeSelectionRle, encodeSurface, evaluateAdjustmentLayers, expandCoverage, exportPsd, featherCoverage, findAdjustmentControl, findLayerControl, formatControlValue, fullSelection, getAnnotationBounds, getControlPath, getCropCursor, getRotatedSize, getViewportMetrics, getViewportProjection, globalImageCache, greyMorphology, groupLayers, guidePlanes, guidedFilterColor, handlePaintShortcut, hasResampledLegacyMask, hashMaskContent, hexToRgb, histogramPath, hitTestAnnotation, hitTestCrop, hitTestCurvePoint, hslToRgb, hueRange, hueRangeTables, hueRangeWeight, hueSaturation, identityCurve, identityLevels, imageEditorStateMigrations, imageToCanvasPoint, importPsd, insertCurvePoint, invertMatrix3, invertSelection, isActiveFilter, isAdjustmentKind, isDefaultDepthMask, isLegacyShape, isPaintTool, isQuarterTurn, isQuarterTurnSwapped, isSelectionEmpty, isSelectionMode, isSpatialFilter, kelvinToTemperature, layerBadge, layerEffectControls, layerEffectsBadge, layerEffectsOf, layerEffectsPanel, layerLabel, layerMaskCoverage, layerMaskFromSelection, layerMaskKey, layerMenu, layerName, layerPanelRows, layerTree, layerTypeLabel, layersFromLegacy, legacyAdjustmentLayer, legacyMaskOf, legacyView, levelsValue, linearSrgbToXy, linearToSrgb, loadImageEditorDocument, magicWand, mapCropHandle, maskSummary, migrateSerializedImageEditorState, migrateToLayeredState, mixerLoadResult, modifySelection, moveCurvePoint, moveLayer, mulMatrix3, needsLegacyBase, neutralHueRange, newLayerId, normalizeAdjustmentLayer, normalizeAdjustmentLayers, normalizeAngle, normalizeFilter, normalizeLayerMask, normalizeProcessVersion, normalizeRect, normalizeRefineEdgeParams, normalizeStoredAdjustments, offsetLayer, openPsdFile, parseAdjustmentBlock, parseBlend, parseColor, parseLfx2, parseLrfx, parsePatternBlock, parseSelectionMode, parseVersionedDescriptor, photoFilterMatrix, pixelLayerBounds, pixelLayers, placeLayer, pointerPressure, polygonCoverage, polygonSelection, posterizeValue, projectImagePoint, projectImageRect, projectMaskCoverage, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdPatternToEffectPattern, psdToLayers, quickMaskPixels, rangeLightness, rasterMaskFromLegacy, readAdjustmentControls, readPsd, rectSelection, refineCoverage, refineEdgeHalo, refineSelection, removeAlpha, removeCurvePoint, removeLayer, removeLayerEffect, removeLayerFilter, renderLayeredBase, requireLayer, requireUnlocked, resizePixels, resizeSelection, resolveExternalAssets, resolveMosaicRegionBounds, rgbToGray, rgbToHsl, rgbUnitToHex, runLayerMenuAction, sampleLut, sampleToneLut, selectionArea, selectionFromCoverage, selectionFromPixels, selectionModeFromModifiers, selectionOutline, selectionToCoverage, selectionToPixels, selectionValueAt, serializeEffects, serializeLayer, serializeLayers, serializeLayersExternal, serializePatterns, serializeSelection, setControlPath, setLayerEffects, setLayerEffectsEnabled, setLayerMask, setLayerProperties, shiftCoverage, smoothCoverage, splitOverlayAnnotations, srgb8ToLab, srgbToLinear, sumHistograms, tempTintToXy, temperatureToKelvin, toHex, toneCurve, toneLuts, toneRange, ungroupLayer, unionRect, unprojectCanvasPoint, updateLayerEffect, updateLayerFilter, updateLayerMaskProps, uvToXy, versionedDescriptorBytes, vibranceLinear, vibrancePixel, wbMatrix, whiteBalanceFromSample, whiteBalanceMatrix, withNewIds, writeAdjustmentBlock, writeLfx2, writePatternBlock, writePsd, xyToTempTint, xyToUv };
|