@pixerate/editor 0.111.0 → 0.112.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/dist/{chunk-HHZ6ZJTW.js → chunk-CZOXTEMN.js} +1772 -456
- package/dist/chunk-CZOXTEMN.js.map +1 -0
- package/dist/{chunk-PHUMLSCW.cjs → chunk-YGIMK4NX.cjs} +1810 -494
- package/dist/chunk-YGIMK4NX.cjs.map +1 -0
- package/dist/{export-DoDhCszr.d.cts → export-DBba-buV.d.cts} +40 -13
- package/dist/{export-DBNVwb6h.d.ts → export-DNu_Jr8p.d.ts} +40 -13
- package/dist/image-editor/index.cjs +1166 -619
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +159 -3
- package/dist/image-editor/index.d.ts +159 -3
- package/dist/image-editor/index.js +554 -7
- package/dist/image-editor/index.js.map +1 -1
- package/dist/paint-editor/index.cjs +6 -6
- package/dist/paint-editor/index.d.cts +1 -1
- package/dist/paint-editor/index.d.ts +1 -1
- package/dist/paint-editor/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-HHZ6ZJTW.js.map +0 -1
- package/dist/chunk-PHUMLSCW.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as SmartFilterStack, F as SmartFilter, G as SmartObjectLayer, J as SmartContents, K as SmartDocument, M as SmartPlacement, N as FreeTransformGeometry, O as TextShaper, Q as TextFont, U as
|
|
2
|
-
export {
|
|
1
|
+
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as SmartFilterStack, F as SmartFilter, G as SmartObjectLayer, J as SmartContents, K as SmartDocument, M as SmartPlacement, N as FreeTransformGeometry, O as TextShaper, Q as TextFont, U as LiveShapeKind, V as TextAlign, W as TextStyle, X as ParagraphStyle, Y as TypeLayerInfo, Z as LayerPlacement, _ as FreeTransformMode, $ as FreeTransformResult, a0 as FreeTransformSession, a1 as FreeTransformInit, a2 as TransformAnchor } from '../export-DBba-buV.cjs';
|
|
2
|
+
export { a3 as AIResultOptions, a4 as AdjustmentLayerBase, a5 as AdjustmentLayerInit, a6 as AdjustmentLayerUpdate, a7 as AnnotationPlacement, a8 as AnnotationType, a9 as ArrowAnnotation, aa as AspectRatio, ab as BaseAnnotation, ac as BlackWhiteParams, ad as BlurFilter, ae as CircleAnnotation, af as ColorBalanceParams, ag as ColorBalanceTone, ah as ColorRangeOptions, ai as ColorRangeSample, aj as CreateAnnotationPayload, ak as CropHandle, al as CurvesParams, am as DEFAULT_ADJUSTMENTS, an as DEFAULT_AUTO_LEADING, ao as DEFAULT_DEPTH_MASK, ap as DEFAULT_MITER_LIMIT, aq as DEFAULT_REFINE_EDGE_PARAMS, ar as DEFAULT_TEXT_STYLE, as as DEFAULT_TRANSFORM, at as DeserializeContext, au as DevelopSettings, av as EMPTY_DISTANCE, aw as ExportOptions, ax as FREE_TRANSFORM_CONTENTS, ay as FREE_TRANSFORM_MODES, az as FillOptions, aA as FreeTransformContent, aB as FreeTransformHost, aC as FreeTransformPreview, aD as GUIDED_FILTER_EPS, aE as GroupLayer, aF as HISTOGRAM_BINS, aG as HistogramChannel, aH as HistoryEntryHandle, aI as HueSaturationParams, aJ as IMAGE_EDITOR_SCHEMA_VERSION, aK as ImageAnnotation, aL as ImageDimensions, aM as ImageEditorAIHooks, I as ImageEditorAssetStore, aN as ImageEditorFit, aO as ImageEditorOptions, aP as ImageEditorRenderer, aQ as ImageEditorState, aR as ImageEditorTool, aS as ImageLayerType, aT as InpaintHook, aU as InpaintOptions, aV as InvertParams, aW as LAYERED_SCHEMA_VERSION, aX as LIVE_SHAPE_KINDS, aY as LaidChar, aZ as LaidFragment, a_ as LaidLine, a$ as LayerBase, b0 as LayerBlendMode, b1 as LayerFilterKind, b2 as LayerLocation, b3 as LayerMaskProps, b4 as LayerOperationError, b5 as LayerProperties, b6 as LayerSourcesHost, b7 as LayerTarget, b8 as LegacySerializedImageEditorState, b9 as LevelsParams, ba as LineAnnotation, bb as LiveShape, bc as MagicWandOptions, bd as MixerStrokeInit, be as PARAGRAPH_STYLE_FIELDS, bf as PSD_BLEND_KEYS, bg as PaintOptions, bh as PaintStrokeResult, bi as PaintStrokeSession, bj as ParagraphRun, bk as PenAnnotation, bl as PhotoFilterParams, bm as PixelBuffer, bn as PixelLayerInit, bo as PosterizeParams, bp as PsdChannel, bq as PsdExportInput, P as PsdExportResult, br as PsdFile, bs as PsdHeader, bt as PsdImportOptions, bu as PsdImportResult, bv as PsdLayerMask, bw as PsdLayerRecord, bx as PsdLayerSummary, by as PsdRect, bz as PsdResource, bA as PsdSmartFilter, bB as PsdTaggedBlock, bC as PsdTreeNode, bD as RectAnnotation, bE as RemoveBackgroundHook, bF as RemoveBackgroundOptions, bG as RenderOptions, bH as SELECTION_MODES, bI as SELECTION_MODIFY_OPS, bJ as SHAPE_OPERATIONS, bK as SHAPE_RENDER_MARGIN, bL as SampleOptions, bM as SelectionChannel, bN as SelectionCommandOptions, bO as SelectionModifyOp, bP as SerializeContext, bQ as SerializedAdjustmentLayer, bR as SerializedAnnotationLayer, bS as SerializedGroupLayer, S as SerializedLayer, bT as SerializedLayerEffects, bU as SerializedLayeredImageEditorState, bV as SerializedPattern, bW as SerializedPixelLayer, bX as SerializedRasterMask, bY as SerializedSelection, bZ as SerializedShapeLayer, b_ as SerializedSmartContents, b$ as SerializedSmartFilter, c0 as SerializedSmartObjectLayer, c1 as SerializedTypeLayer, c2 as ShapeArrowhead, c3 as ShapeComponent, c4 as ShapeEnv, c5 as ShapeFillRule, c6 as ShapeGeometryInput, c7 as ShapeLayerData, c8 as ShapeLayerInfo, c9 as ShapeLayerInit, ca as ShapeLineCap, cb as ShapeLineJoin, cc as ShapeOperation, cd as ShapePaint, ce as ShapePsdData, cf as ShapeSelectionOptions, cg as ShapeStroke, ch as ShapeStrokeAlign, ci as ShapeStrokeInput, cj as SmartFilterKind, ck as SmartObjectInfo, cl as SmartPsdData, cm as StrokeInit, cn as StrokeTool, co as TEXT_ALIGNS, cp as TEXT_RENDER_MARGIN, cq as TEXT_STYLE_FIELDS, cr as TONE_RANGE_PRESETS, cs as TRANSFORM_ANCHORS, ct as TextAnnotation, cu as TextLayerInit, cv as TextLayout, cw as TextRun, cx as ThresholdParams, cy as ToneRangePreset, cz as TransformParams, cA as TransformReadout, cB as TypeLayerData, cC as TypePsdData, cD as VibranceParams, cE as ViewportMetrics, cF as addLayerEffect, cG as addLayerFilter, cH as adjustmentNodeAsLayer, cI as anchorPoint, cJ as annotationBlend, cK as annotationOfShape, cL as annotationOfType, cM as applyImageProjectionToContext, cN as applyParams, cO as blurFilter, cP as borderCoverage, cQ as boxMean, cR as boxPointOf, cS as buildLayerMaskPlanes, cT as calculateCropDrag, cU as canvasToImagePoint, cV as caretAt, cW as clampCropToImage, cX as colorRange, cY as combineSelections, cZ as componentPath, c_ as computeHistogram, c$ as computeSelectionBounds, d0 as contractCoverage, d1 as cornersFromMatrix, d2 as coverageToByte, d3 as createSelectionMask, d4 as createShapeLayer, d5 as createTypeLayer, d6 as decodeLayerChannel, d7 as decodeLayerMask, d8 as decodeMergedImage, d9 as decodePngDataUrl, da as decodeSelectionRle, db as defaultShapeName, dc as depthMaskAlpha, dd as describeTransform, de as deserializeEffects, df as deserializeLayer, dg as deserializeLayers, dh as deserializePatterns, di as deserializeSelection, dj as developFilter, dk as distanceTransform, dl as duplicateLayer, dm as edgeWidth, dn as ellipsePoints, dp as ellipseSelection, dq as encodeSelectionRle, dr as encodeSurface, ds as expandCoverage, dt as exportPsd, du as featherCoverage, dv as fitParagraphRuns, dw as fitRuns, dx as flipCorners, dy as fontOf, dz as fullSelection, dA as geometryHomography, dB as getAnnotationBounds, dC as getCropCursor, dD as getRotatedSize, dE as getViewportMetrics, dF as getViewportProjection, dG as globalImageCache, dH as greyMorphology, dI as groupLayers, dJ as guidePlanes, dK as guidedFilterColor, dL as hasSurface, dM as hasWarp, dN as hashMaskContent, dO as histogramPath, dP as hitTestAnnotation, dQ as hitTestCrop, dR as hueRange, dS as identityTransform, dT as imageToCanvasPoint, dU as importPsd, dV as invertSelection, dW as isActiveFilter, dX as isIdentityTransform, dY as isQuarterTurnSwapped, dZ as isRenderedLayer, d_ as isSelectionEmpty, d$ as isSelectionMode, e0 as isSpatialFilter, e1 as isTransformAnchor, e2 as isValidWarp, e3 as layerEffectsOf, e4 as layerMaskCoverage, e5 as layerMaskFromSelection, e6 as layerMaskKey, e7 as layerName, e8 as layerTree, e9 as layerTypeLabel, ea as layoutText, eb as liveComponent, ec as liveShapeSubpaths, ed as magicWand, ee as mapCropHandle, ef as mapSubpaths, eg as matrixFromCorners, eh as matrixFromParams, ei as mergeShapeComponents, ej as migrateSerializedImageEditorState, ek as migrateToLayeredState, el as modifySelection, em as moveLayer, en as newLayerId, eo as normalizeAngle, ep as normalizeFilter, eq as normalizeLayerMask, er as normalizeLiveShape, es as normalizeRect, et as normalizeRefineEdgeParams, eu as normalizeShapePaint, ev as normalizeShapeStroke, ew as normalizeStoredAdjustments, ex as normalizeSubpaths, ey as normalizeText, ez as offsetLayer, eA as offsetShape, eB as paragraphRanges, eC as parseBlend, eD as parseColor, eE as parseSelectionMode, eF as patchParagraphStyle, eG as patchTextStyle, eH as pixelLayerBounds, eI as pixelLayers, eJ as placeLayer, eK as polygonCoverage, eL as polygonSelection, eM as presetWarp, eN as previewStep, eO as projectImagePoint, eP as projectImageRect, eQ as projectMaskCoverage, eR as psdToLayers, eS as readPsd, eT as rectSelection, eU as referencePoint, eV as refineCoverage, eW as refineEdgeHalo, eX as refineSelection, eY as removeLayer, eZ as removeLayerEffect, e_ as removeLayerFilter, e$ as renderShape, f0 as renderShapeRect, f1 as renderText, f2 as replaceTextRange, f3 as requireLayer, f4 as requireOperation, f5 as requireShapeLayer, f6 as requireTypeLayer, f7 as requireUnlocked, f8 as rerenderShape, f9 as rerenderText, fa as resizePixels, fb as resizeSelection, fc as resolveExternalAssets, fd as restyleRange, fe as runLayerFilters, ff as selectionArea, fg as selectionFromCoverage, fh as selectionFromPixels, fi as selectionToCoverage, fj as selectionToPixels, fk as selectionValueAt, fl as serializeContents, fm as serializeEffects, fn as serializeLayer, fo as serializeLayers, fp as serializeLayersExternal, fq as serializePatterns, fr as serializeSelection, fs as setLayerEffects, ft as setLayerEffectsEnabled, fu as setLayerMask, fv as setLayerProperties, fw as shapeAsPixelLayer, fx as shapeFromAnnotation, fy as shapeGeometryBounds, fz as shapeLayers, fA as shapeOutline, fB as shapeRenderClip, fC as shiftCoverage, fD as smartObjectLayers, fE as smoothCoverage, fF as spliceRuns, fG as srgb8ToLab, fH as styleAt, fI as textIndexAt, fJ as textMatrix, fK as textOutlines, fL as textRange, fM as toHex, fN as toTextSpace, fO as toneRange, fP as transformHomography, fQ as transformMap, fR as transformShapeComponents, fS as transformTypeLayer, fT as transformedBox, fU as transformedPoint, fV as typeAsPixelLayer, fW as typeFrame, fX as typeFromAnnotation, fY as typeLayerName, fZ as ungroupLayer, f_ as unionRect, f$ as unprojectCanvasPoint, g0 as updateLayerEffect, g1 as updateLayerFilter, g2 as updateLayerMaskProps, g3 as updateShapeLayer, g4 as updateTypeLayer, g5 as withNewIds, g6 as writePsd } from '../export-DBba-buV.cjs';
|
|
3
3
|
import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.cjs';
|
|
4
4
|
import { B as BlendMode, b as PixelSurface, R as RasterRect } from '../surface-C8RRg_Bh.cjs';
|
|
5
5
|
export { d as BLEND_MODES, c as BlendModeInfo, M as MaskSurface, e as PAINTERLY_BLEND_MODES, h as PIGMENT_BANDS, j as PIGMENT_LAMBDA_MIN, k as PIGMENT_LAMBDA_STEP, l as PIGMENT_WAVELENGTHS, P as Pigment, m as PigmentOptions, n as PigmentRgb, o as Rgb, p as Rgba, S as SHADOW_AMBIENT, q as SurfaceDraft, r as TILE, t as TILE_SHIFT, f as Tile, T as TileKey, a as TiledSurface, u as blendChannel, v as blendImageData, w as blendLum, x as blendPixel, y as blendRgb, z as canvasCompositeOperation, A as collectTiles, C as contentBounds, D as createPigment, E as emptySurface, F as fillRect, G as finishTile, i as isBlendMode, g as isPainterlyBlendMode, H as isSeparableBlendMode, I as lerpPigment, J as lerpPigmentInto, K as mixPigment8, L as mixPigmentRgb, N as mixPigments, O as normalizeBlendMode, Q as packRgba, U as pigment8, V as readPixel, W as readRegion, X as reflectanceToRgb, Y as rgbToReflectance, Z as setLum, _ as setPigmentColor, $ as solidSurface, s as standardBlendMode, a0 as surfaceBytes, a1 as surfaceFromPixels, a2 as surfacesEqual, a3 as tileCoord, a4 as tileKey, a5 as tileRect, a6 as tilesInRect, a7 as translateSurface, a8 as uniformTile, a9 as writeRegion } from '../surface-C8RRg_Bh.cjs';
|
|
@@ -1164,6 +1164,158 @@ declare function createOutlineTextShaper(fonts: ReadonlyArray<OutlineFontFace |
|
|
|
1164
1164
|
*/
|
|
1165
1165
|
declare function createImageTypeTools(controller: ImageEditorController): AgentTool[];
|
|
1166
1166
|
|
|
1167
|
+
/**
|
|
1168
|
+
* Framework-free logic behind the shape and type tools of the React and Svelte image editors:
|
|
1169
|
+
* tool options, a drag that draws a live shape (one undo step, the layer updated live while
|
|
1170
|
+
* dragging), and on-canvas text editing (caret, selection, typing, keys, styling the selection,
|
|
1171
|
+
* the overlay to draw). The components only translate DOM events and draw `overlay()`.
|
|
1172
|
+
*/
|
|
1173
|
+
|
|
1174
|
+
/** What the shape tool draws next (and what its options bar edits on a selected shape). */
|
|
1175
|
+
interface ShapeToolOptions {
|
|
1176
|
+
kind: LiveShapeKind;
|
|
1177
|
+
/** `#rrggbb`, or `null` for no fill. */
|
|
1178
|
+
fill: string | null;
|
|
1179
|
+
/** `#rrggbb`, or `null` for no stroke. */
|
|
1180
|
+
stroke: string | null;
|
|
1181
|
+
strokeWidth: number;
|
|
1182
|
+
/** Rectangles: corner radius in pixels. */
|
|
1183
|
+
radius: number;
|
|
1184
|
+
/** Polygons: sides. */
|
|
1185
|
+
sides: number;
|
|
1186
|
+
/** Stars: points and inner radius ratio. */
|
|
1187
|
+
points: number;
|
|
1188
|
+
innerRatio: number;
|
|
1189
|
+
/** Lines: thickness in pixels and whether to add an arrowhead at the end. */
|
|
1190
|
+
weight: number;
|
|
1191
|
+
arrow: boolean;
|
|
1192
|
+
}
|
|
1193
|
+
declare const DEFAULT_SHAPE_TOOL_OPTIONS: ShapeToolOptions;
|
|
1194
|
+
declare const SHAPE_KIND_LABELS: Record<LiveShapeKind, string>;
|
|
1195
|
+
/** What the type tool sets new text in (and what its options bar edits on the selection). */
|
|
1196
|
+
interface TypeToolOptions {
|
|
1197
|
+
fontFamily: string;
|
|
1198
|
+
fontSize: number;
|
|
1199
|
+
fontWeight: number;
|
|
1200
|
+
italic: boolean;
|
|
1201
|
+
color: string;
|
|
1202
|
+
align: TextAlign;
|
|
1203
|
+
}
|
|
1204
|
+
declare const DEFAULT_TYPE_TOOL_OPTIONS: TypeToolOptions;
|
|
1205
|
+
/** A live shape for a drag from `a` to `b` (Shift: square / circle / 45° line; Alt: from the centre). */
|
|
1206
|
+
declare function liveShapeForDrag(o: ShapeToolOptions, a: ImagePoint, b: ImagePoint, mods?: {
|
|
1207
|
+
shift?: boolean;
|
|
1208
|
+
alt?: boolean;
|
|
1209
|
+
}): Record<string, unknown> | null;
|
|
1210
|
+
/**
|
|
1211
|
+
* A drag that draws a live shape: the layer is added on the first real move (one undo step) and
|
|
1212
|
+
* its component updated live (no history) until the pointer is released.
|
|
1213
|
+
*/
|
|
1214
|
+
declare class ShapeDrawGesture {
|
|
1215
|
+
private readonly controller;
|
|
1216
|
+
private readonly options;
|
|
1217
|
+
private start;
|
|
1218
|
+
private layerId;
|
|
1219
|
+
error: string | null;
|
|
1220
|
+
constructor(controller: ImageEditorController, options: () => ShapeToolOptions);
|
|
1221
|
+
get active(): boolean;
|
|
1222
|
+
/** The shape layer drawn by the last drag (until the next one starts). */
|
|
1223
|
+
get drawnLayerId(): string | null;
|
|
1224
|
+
down(p: ImagePoint): void;
|
|
1225
|
+
move(p: ImagePoint, mods?: {
|
|
1226
|
+
shift?: boolean;
|
|
1227
|
+
alt?: boolean;
|
|
1228
|
+
}): void;
|
|
1229
|
+
up(): string | null;
|
|
1230
|
+
cancel(): void;
|
|
1231
|
+
}
|
|
1232
|
+
/** Applies options-bar changes to a shape layer (fill, stroke, width, and the live shape's own fields). */
|
|
1233
|
+
declare function applyShapeOptions(controller: ImageEditorController, layerId: string, change: Partial<ShapeToolOptions>): void;
|
|
1234
|
+
/** The keys a text session understands, as DOM `KeyboardEvent`s report them. */
|
|
1235
|
+
interface TextKey {
|
|
1236
|
+
key: string;
|
|
1237
|
+
shiftKey?: boolean;
|
|
1238
|
+
metaKey?: boolean;
|
|
1239
|
+
ctrlKey?: boolean;
|
|
1240
|
+
altKey?: boolean;
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Editing one type layer on the canvas: a caret and a selection (`anchor`..`focus`, UTF-16 code
|
|
1244
|
+
* units), typing, deleting, moving, clicking and styling the selection. The first change of a
|
|
1245
|
+
* session records one undo step; the rest join it.
|
|
1246
|
+
*/
|
|
1247
|
+
declare class TextEditSession {
|
|
1248
|
+
private readonly controller;
|
|
1249
|
+
readonly layerId: string;
|
|
1250
|
+
anchor: number;
|
|
1251
|
+
focus: number;
|
|
1252
|
+
private changed;
|
|
1253
|
+
private readonly listeners;
|
|
1254
|
+
error: string | null;
|
|
1255
|
+
constructor(controller: ImageEditorController, layerId: string, index?: number);
|
|
1256
|
+
private get layer();
|
|
1257
|
+
get text(): string;
|
|
1258
|
+
get start(): number;
|
|
1259
|
+
get end(): number;
|
|
1260
|
+
/** Whether the layer still exists (it can be deleted or undone away while editing). */
|
|
1261
|
+
get alive(): boolean;
|
|
1262
|
+
subscribe(fn: () => void): () => void;
|
|
1263
|
+
private emit;
|
|
1264
|
+
private layout;
|
|
1265
|
+
private run;
|
|
1266
|
+
/** Replaces the selection with `text` (typing and pasting). */
|
|
1267
|
+
insert(text: string): void;
|
|
1268
|
+
/** Backspace: the selection, else the character before the caret. */
|
|
1269
|
+
deleteBackward(): void;
|
|
1270
|
+
/** Delete: the selection, else the character after the caret. */
|
|
1271
|
+
deleteForward(): void;
|
|
1272
|
+
/** 2 when the code unit at `i` is half of a surrogate pair (moving `dir`), else 1. */
|
|
1273
|
+
private surrogate;
|
|
1274
|
+
/** Moves the caret (Shift extends the selection). */
|
|
1275
|
+
move(to: 'left' | 'right' | 'up' | 'down' | 'home' | 'end' | 'start' | 'finish', extend?: boolean): void;
|
|
1276
|
+
selectAll(): void;
|
|
1277
|
+
/** Places the caret at a document point (Shift-click extends). */
|
|
1278
|
+
pointAt(p: ImagePoint, extend?: boolean): void;
|
|
1279
|
+
/** Handles a key; returns `true` when it was the session's (the caller then prevents the default). */
|
|
1280
|
+
handleKey(e: TextKey): boolean;
|
|
1281
|
+
/** Sets character style fields on the selection, or on the whole text when nothing is selected. */
|
|
1282
|
+
setStyle(style: Partial<TextStyle>): void;
|
|
1283
|
+
/** Sets paragraph fields on the paragraphs the selection touches. */
|
|
1284
|
+
setParagraph(style: ParagraphStyle): void;
|
|
1285
|
+
/** The style at the caret (or the selection's start), for the options bar. */
|
|
1286
|
+
styleHere(): TextStyle;
|
|
1287
|
+
info(): TypeLayerInfo;
|
|
1288
|
+
/** The caret, the selection and the frame in natural pixels, for `RenderOptions.textEdit`. */
|
|
1289
|
+
overlay(): {
|
|
1290
|
+
caret: [ImagePoint, ImagePoint] | null;
|
|
1291
|
+
selection: ImagePoint[][];
|
|
1292
|
+
frame: ImagePoint[] | null;
|
|
1293
|
+
};
|
|
1294
|
+
/** Ends editing: an empty layer made for this session is deleted (as Photoshop does). Returns whether the layer remains. */
|
|
1295
|
+
close(): boolean;
|
|
1296
|
+
}
|
|
1297
|
+
/** Where a click lands on type layers: the topmost visible type layer whose laid-out text or box contains `p`, or `null`. */
|
|
1298
|
+
declare function typeLayerAt(controller: ImageEditorController, p: ImagePoint, slop?: number): string | null;
|
|
1299
|
+
/**
|
|
1300
|
+
* The type tool: a click on type edits it at the clicked character; a click elsewhere adds point
|
|
1301
|
+
* text there (a drag adds paragraph text in the dragged box). Holds the open `TextEditSession`.
|
|
1302
|
+
*/
|
|
1303
|
+
declare class TypeToolGesture {
|
|
1304
|
+
private readonly controller;
|
|
1305
|
+
private readonly options;
|
|
1306
|
+
session: TextEditSession | null;
|
|
1307
|
+
private dragStart;
|
|
1308
|
+
error: string | null;
|
|
1309
|
+
constructor(controller: ImageEditorController, options: () => TypeToolOptions);
|
|
1310
|
+
down(p: ImagePoint, mods?: {
|
|
1311
|
+
shift?: boolean;
|
|
1312
|
+
}): void;
|
|
1313
|
+
/** Releases a click or drag that did not land on type: adds a new text layer (point text, or a box for a drag). */
|
|
1314
|
+
up(p: ImagePoint): TextEditSession | null;
|
|
1315
|
+
/** Ends the open session (an empty new layer is removed). */
|
|
1316
|
+
finish(): void;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1167
1319
|
/**
|
|
1168
1320
|
* Anti-aliased coverage of filled Bézier paths over a pixel rectangle, without a canvas. The paths
|
|
1169
1321
|
* are flattened to lines, then rasterized one of two ways:
|
|
@@ -1226,6 +1378,10 @@ declare function layerPanelRows(layers: readonly ImageLayer[], activeId: string
|
|
|
1226
1378
|
declare function layerLabel(layer: ImageLayer): string;
|
|
1227
1379
|
/** A short type badge for rows without a thumbnail. */
|
|
1228
1380
|
declare function layerBadge(layer: ImageLayer): string;
|
|
1381
|
+
/** Whether the layer's row shows a pixel thumbnail (pixel, shape and type layers; shapes and type with a badge on it). */
|
|
1382
|
+
declare function layerHasThumbnail(layer: ImageLayer): boolean;
|
|
1383
|
+
/** A warning to show on a layer's row (a type layer drawn with fallback fonts), or `null`. */
|
|
1384
|
+
declare function layerWarning(layer: ImageLayer): string | null;
|
|
1229
1385
|
/** Where a row was dropped on: the top or bottom part of the row, or the middle of a group row. */
|
|
1230
1386
|
type DropZone = 'above' | 'below' | 'inside';
|
|
1231
1387
|
/** The zone for a pointer at `fraction` (0 top .. 1 bottom) of a row's height. */
|
|
@@ -1886,4 +2042,4 @@ declare class FreeTransformTool {
|
|
|
1886
2042
|
key(e: ShortcutEvent): boolean;
|
|
1887
2043
|
}
|
|
1888
2044
|
|
|
1889
|
-
export { ADJUSTMENT_KEYS, ADJUSTMENT_KINDS, ADJUSTMENT_LAYER_CONTROLS, ADJUSTMENT_LAYER_OPACITY_CONTROL, ADJUSTMENT_LUT_SIZE, AS_SHOT_KELVIN, AdjustmentKind, type AdjustmentKindInfo, AdjustmentLayer, AdjustmentLayerMask, AdjustmentLayerNode, AdjustmentLayerOf, AdjustmentParamsMap, Annotation, AnnotationLayer, BACKGROUND_LAYER_ID, BACKGROUND_LAYER_NAME, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, BlendMode, type CanvasTextShaperOptions, type Chromaticity, ColorDistance, CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type ConvertOptions, type CoverageFillRule, CropBox, CurvePoint, D50, D65, DEFAULT_SELECTION_TOOL_OPTIONS, DEPTH_MASK_CONTROLS, DEVELOP_FILTER_ID, DepthMaskOptions, type DescValue, type Descriptor, DevelopFilter, type DropZone, type EffectControl, EffectPattern, FREE_TRANSFORM_FIELDS, FREE_TRANSFORM_MODE_OPTIONS, type FlatPath, type FreeTransformBar, type FreeTransformField, FreeTransformGeometry, FreeTransformInit, FreeTransformMode, FreeTransformResult, FreeTransformSession, FreeTransformTool, type FreeTransformToolOptions, type GestureModifiers, HUE_RANGE_LABELS, HueRange, IDENTITY_MATRIX3, IMAGE_ADJUSTMENT_CONTROLS, IMAGE_CROP_PRESETS, IMAGE_EDITOR_STATE_VERSION, IMAGE_FILTER_PRESETS, ImageAdjustments, type ImageCropPreset, ImageEditorController, type ImageEditorDocumentLoad, type ImageEditorToolProviderOptions, type ImageFilterPreset, ImageHistogram, ImageLayer, ImagePoint, type ImageProcessVersion, ImageProjection, ImageTransform, Interpolation, LATEST_PROCESS_VERSION, LAYER_EFFECT_MENU, LEGACY_PROCESS_VERSION, LUMA_709, LayerCompositor, LayerEffect, LayerEffectKind, type LayerEffectRow, LayerEffects, type LayerEffectsPanelModel, LayerFilter, type LayerMenuAction, type LayerMenuItem, type LayerPanelRow, LayerPlacement, type LayerStack, type LegacyParts, type LegacyViewResult, LevelsChannel, MAX_KELVIN, MIN_KELVIN, MIRED_PER_TEMPERATURE_UNIT, MIXER_MIXING_OPTIONS, MIXER_OPTION_CONTROLS, type Matrix3, MixerLoad, MixerSettings, type MosaicImageDataLike, type MosaicRegion, type NormalizedLayerItem, type OutlineFontEntry, type OutlineFontFace, type OutlinePathCommand, PAINT_TOOLS, PATTERN_BLOCK_KEYS, PSD_FILE_ACCEPT, PaintGesture, type PaintPointerSample, type PaintTool, type ParsedAdjustment, type ParsedLayerEffects, PixelLayer, type PixelOp, PixelSurface, type PlaneLayout, PsdError, type PsdPattern, Quad, type QuickMaskStyle, REFINE_EDGE_CONTROLS, RasterMask, RasterRect, type ReferenceItem, type RefineEdgeControl, RefineEdgeParams, type RouteInput, SELECTION_MODE_LABELS, SELECTION_TOOLS, SMART_RENDER_MARGIN, SUPPORTED_ADJUSTMENT_KEYS, SelectionGesture, SelectionMask, SelectionMode, type SelectionToolKind, type SelectionToolOptions, SerializedImageEditorState, ShapeLayer, type ShortcutEvent, type SmartCanvas, SmartContents, SmartDocument, SmartFilter, type SmartFilterRow, SmartFilterStack, SmartObjectLayer, SmartPlacement, type SmartRenderOptions, TINT_SCALE, TONE_LUT_SIZE, TextEnv, TextFont, TextShaper, TransformAnchor, type TransformHandle, type TransformModifiers, type TransformOverlay, TypeLayer, type UnitLevels, VIBRANCE_GREY, Vec2, WARP_GRID_OPTIONS, WARP_STYLE_OPTIONS, type WarpBar, WarpMesh, WarpStyle, XYZ_D50_TO_SRGB, activeAdjustmentLayers, activeSmartFilters, addSmartFilter, addToHistogram, adjustmentKindLabel, adjustmentLayersKey, adjustmentNodeFromLegacy, annotationLayerFor, annotationLayerName, annotationOfLayer, applyAdjustmentLayers, applyAdjustments, applyBoxBlur, applyDepthMask, applyLegacyAdjustments, applyMatrix3, applyOutputStage, applyProcess2Adjustments, applyRegionBlur, applyRegionMosaic, applySmartFilters, backgroundLayer, baseProjection, blackWhiteGray, boxToCurvePoint, bradfordAdaptation, buildToneLut, clampControlValue, colorBalanceChannel, compileAdjustmentLayer, contentsBox, contentsSurface, controlPosition, controlTrackBackground, convertToSmartObject, copySmartObject, coveringRect, createAdjustmentLayer, createCanvasTextShaper, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createImageShapeTools, createImageSmartObjectTools, createImageTransformTools, createImageTypeTools, createOutlineTextShaper, cssFont, cssFontFamily, curveLutFromLevels, curvePointToBox, curveSvgPath, decodePlanes, defaultAdjustmentParams, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, developFromAdjustments, developTarget, documentContents, downloadPsd, dropPlacement, dropZone, effectControlChange, emptyHistogram, encodeRle, evaluateAdjustmentLayers, extractNormalizedLayerItems, filterMaskCoverage, findAdjustmentControl, findLayerControl, flattenPath, formatControlValue, getControlPath, handlePaintShortcut, hasResampledLegacyMask, hexToRgb, hitTestCurvePoint, hslToRgb, hueRangeTables, hueRangeWeight, hueSaturation, identityCurve, identityLevels, imageEditorStateMigrations, insertCurvePoint, instancesOf, invertMatrix3, isAdjustmentKind, isContentsDecoded, isDefaultDepthMask, isLegacyShape, isPaintTool, isQuarterTurn, kelvinToTemperature, layerBadge, layerEffectControls, layerEffectsBadge, layerEffectsPanel, layerLabel, layerMenu, layerPanelRows, layersFromLegacy, legacyAdjustmentLayer, legacyMaskOf, legacyView, levelsValue, linearSrgbToXy, linearToSrgb, loadImageEditorDocument, maskSummary, mixerLoadResult, moveCurvePoint, moveSmartFilter, mulMatrix3, needsLegacyBase, neutralHueRange, newContentsId, normalizeAdjustmentLayer, normalizeAdjustmentLayers, normalizePlacement, normalizeProcessVersion, normalizeSmartFilter, offsetSmartObject, openPsdFile, parseAdjustmentBlock, parseCssColor, parseLfx2, parseLrfx, parsePatternBlock, parseVersionedDescriptor, photoFilterMatrix, placeContents, placementAt, placementBounds, placementGeometry, pointerPressure, posterizeValue, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdPatternToEffectPattern, quickMaskPixels, rangeLightness, rasterContents, rasterMaskFromLegacy, rasterizeCoverage, rasterizeSmartObject, readAdjustmentControls, removeAlpha, removeCurvePoint, removeSmartFilter, renderLayeredBase, renderSmartObject, replaceContents, requireSmartObject, rerender, resolveMosaicRegionBounds, rgbToGray, rgbToHsl, rgbUnitToHex, runLayerMenuAction, sampleLut, sampleToneLut, selectionModeFromModifiers, selectionOutline, setControlPath, setSmartFilterMask, setSmartFiltersEnabled, setSmartPlacement, smartFilterRows, splitOverlayAnnotations, srgbToLinear, sumHistograms, tempTintToXy, temperatureToKelvin, toneCurve, toneLuts, updateSmartFilter, uvToXy, versionedDescriptorBytes, vibranceLinear, vibrancePixel, wbMatrix, whiteBalanceFromSample, whiteBalanceMatrix, withFilterMaskSurface, writeAdjustmentBlock, writeLfx2, writePatternBlock, xyToTempTint, xyToUv };
|
|
2045
|
+
export { ADJUSTMENT_KEYS, ADJUSTMENT_KINDS, ADJUSTMENT_LAYER_CONTROLS, ADJUSTMENT_LAYER_OPACITY_CONTROL, ADJUSTMENT_LUT_SIZE, AS_SHOT_KELVIN, AdjustmentKind, type AdjustmentKindInfo, AdjustmentLayer, AdjustmentLayerMask, AdjustmentLayerNode, AdjustmentLayerOf, AdjustmentParamsMap, Annotation, AnnotationLayer, BACKGROUND_LAYER_ID, BACKGROUND_LAYER_NAME, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, BlendMode, type CanvasTextShaperOptions, type Chromaticity, ColorDistance, CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type ConvertOptions, type CoverageFillRule, CropBox, CurvePoint, D50, D65, DEFAULT_SELECTION_TOOL_OPTIONS, DEFAULT_SHAPE_TOOL_OPTIONS, DEFAULT_TYPE_TOOL_OPTIONS, DEPTH_MASK_CONTROLS, DEVELOP_FILTER_ID, DepthMaskOptions, type DescValue, type Descriptor, DevelopFilter, type DropZone, type EffectControl, EffectPattern, FREE_TRANSFORM_FIELDS, FREE_TRANSFORM_MODE_OPTIONS, type FlatPath, type FreeTransformBar, type FreeTransformField, FreeTransformGeometry, FreeTransformInit, FreeTransformMode, FreeTransformResult, FreeTransformSession, FreeTransformTool, type FreeTransformToolOptions, type GestureModifiers, HUE_RANGE_LABELS, HueRange, IDENTITY_MATRIX3, IMAGE_ADJUSTMENT_CONTROLS, IMAGE_CROP_PRESETS, IMAGE_EDITOR_STATE_VERSION, IMAGE_FILTER_PRESETS, ImageAdjustments, type ImageCropPreset, ImageEditorController, type ImageEditorDocumentLoad, type ImageEditorToolProviderOptions, type ImageFilterPreset, ImageHistogram, ImageLayer, ImagePoint, type ImageProcessVersion, ImageProjection, ImageTransform, Interpolation, LATEST_PROCESS_VERSION, LAYER_EFFECT_MENU, LEGACY_PROCESS_VERSION, LUMA_709, LayerCompositor, LayerEffect, LayerEffectKind, type LayerEffectRow, LayerEffects, type LayerEffectsPanelModel, LayerFilter, type LayerMenuAction, type LayerMenuItem, type LayerPanelRow, LayerPlacement, type LayerStack, type LegacyParts, type LegacyViewResult, LevelsChannel, LiveShapeKind, MAX_KELVIN, MIN_KELVIN, MIRED_PER_TEMPERATURE_UNIT, MIXER_MIXING_OPTIONS, MIXER_OPTION_CONTROLS, type Matrix3, MixerLoad, MixerSettings, type MosaicImageDataLike, type MosaicRegion, type NormalizedLayerItem, type OutlineFontEntry, type OutlineFontFace, type OutlinePathCommand, PAINT_TOOLS, PATTERN_BLOCK_KEYS, PSD_FILE_ACCEPT, PaintGesture, type PaintPointerSample, type PaintTool, ParagraphStyle, type ParsedAdjustment, type ParsedLayerEffects, PixelLayer, type PixelOp, PixelSurface, type PlaneLayout, PsdError, type PsdPattern, Quad, type QuickMaskStyle, REFINE_EDGE_CONTROLS, RasterMask, RasterRect, type ReferenceItem, type RefineEdgeControl, RefineEdgeParams, type RouteInput, SELECTION_MODE_LABELS, SELECTION_TOOLS, SHAPE_KIND_LABELS, SMART_RENDER_MARGIN, SUPPORTED_ADJUSTMENT_KEYS, SelectionGesture, SelectionMask, SelectionMode, type SelectionToolKind, type SelectionToolOptions, SerializedImageEditorState, ShapeDrawGesture, ShapeLayer, type ShapeToolOptions, type ShortcutEvent, type SmartCanvas, SmartContents, SmartDocument, SmartFilter, type SmartFilterRow, SmartFilterStack, SmartObjectLayer, SmartPlacement, type SmartRenderOptions, TINT_SCALE, TONE_LUT_SIZE, TextAlign, TextEditSession, TextEnv, TextFont, type TextKey, TextShaper, TextStyle, TransformAnchor, type TransformHandle, type TransformModifiers, type TransformOverlay, TypeLayer, TypeLayerInfo, TypeToolGesture, type TypeToolOptions, type UnitLevels, VIBRANCE_GREY, Vec2, WARP_GRID_OPTIONS, WARP_STYLE_OPTIONS, type WarpBar, WarpMesh, WarpStyle, XYZ_D50_TO_SRGB, activeAdjustmentLayers, activeSmartFilters, addSmartFilter, addToHistogram, adjustmentKindLabel, adjustmentLayersKey, adjustmentNodeFromLegacy, annotationLayerFor, annotationLayerName, annotationOfLayer, applyAdjustmentLayers, applyAdjustments, applyBoxBlur, applyDepthMask, applyLegacyAdjustments, applyMatrix3, applyOutputStage, applyProcess2Adjustments, applyRegionBlur, applyRegionMosaic, applyShapeOptions, applySmartFilters, backgroundLayer, baseProjection, blackWhiteGray, boxToCurvePoint, bradfordAdaptation, buildToneLut, clampControlValue, colorBalanceChannel, compileAdjustmentLayer, contentsBox, contentsSurface, controlPosition, controlTrackBackground, convertToSmartObject, copySmartObject, coveringRect, createAdjustmentLayer, createCanvasTextShaper, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createImageShapeTools, createImageSmartObjectTools, createImageTransformTools, createImageTypeTools, createOutlineTextShaper, cssFont, cssFontFamily, curveLutFromLevels, curvePointToBox, curveSvgPath, decodePlanes, defaultAdjustmentParams, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, developFromAdjustments, developTarget, documentContents, downloadPsd, dropPlacement, dropZone, effectControlChange, emptyHistogram, encodeRle, evaluateAdjustmentLayers, extractNormalizedLayerItems, filterMaskCoverage, findAdjustmentControl, findLayerControl, flattenPath, formatControlValue, getControlPath, handlePaintShortcut, hasResampledLegacyMask, hexToRgb, hitTestCurvePoint, hslToRgb, hueRangeTables, hueRangeWeight, hueSaturation, identityCurve, identityLevels, imageEditorStateMigrations, insertCurvePoint, instancesOf, invertMatrix3, isAdjustmentKind, isContentsDecoded, isDefaultDepthMask, isLegacyShape, isPaintTool, isQuarterTurn, kelvinToTemperature, layerBadge, layerEffectControls, layerEffectsBadge, layerEffectsPanel, layerHasThumbnail, layerLabel, layerMenu, layerPanelRows, layerWarning, layersFromLegacy, legacyAdjustmentLayer, legacyMaskOf, legacyView, levelsValue, linearSrgbToXy, linearToSrgb, liveShapeForDrag, loadImageEditorDocument, maskSummary, mixerLoadResult, moveCurvePoint, moveSmartFilter, mulMatrix3, needsLegacyBase, neutralHueRange, newContentsId, normalizeAdjustmentLayer, normalizeAdjustmentLayers, normalizePlacement, normalizeProcessVersion, normalizeSmartFilter, offsetSmartObject, openPsdFile, parseAdjustmentBlock, parseCssColor, parseLfx2, parseLrfx, parsePatternBlock, parseVersionedDescriptor, photoFilterMatrix, placeContents, placementAt, placementBounds, placementGeometry, pointerPressure, posterizeValue, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdPatternToEffectPattern, quickMaskPixels, rangeLightness, rasterContents, rasterMaskFromLegacy, rasterizeCoverage, rasterizeSmartObject, readAdjustmentControls, removeAlpha, removeCurvePoint, removeSmartFilter, renderLayeredBase, renderSmartObject, replaceContents, requireSmartObject, rerender, resolveMosaicRegionBounds, rgbToGray, rgbToHsl, rgbUnitToHex, runLayerMenuAction, sampleLut, sampleToneLut, selectionModeFromModifiers, selectionOutline, setControlPath, setSmartFilterMask, setSmartFiltersEnabled, setSmartPlacement, smartFilterRows, splitOverlayAnnotations, srgbToLinear, sumHistograms, tempTintToXy, temperatureToKelvin, toneCurve, toneLuts, typeLayerAt, updateSmartFilter, uvToXy, versionedDescriptorBytes, vibranceLinear, vibrancePixel, wbMatrix, whiteBalanceFromSample, whiteBalanceMatrix, withFilterMaskSurface, writeAdjustmentBlock, writeLfx2, writePatternBlock, xyToTempTint, xyToUv };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as SmartFilterStack, F as SmartFilter, G as SmartObjectLayer, J as SmartContents, K as SmartDocument, M as SmartPlacement, N as FreeTransformGeometry, O as TextShaper, Q as TextFont, U as
|
|
2
|
-
export {
|
|
1
|
+
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as SmartFilterStack, F as SmartFilter, G as SmartObjectLayer, J as SmartContents, K as SmartDocument, M as SmartPlacement, N as FreeTransformGeometry, O as TextShaper, Q as TextFont, U as LiveShapeKind, V as TextAlign, W as TextStyle, X as ParagraphStyle, Y as TypeLayerInfo, Z as LayerPlacement, _ as FreeTransformMode, $ as FreeTransformResult, a0 as FreeTransformSession, a1 as FreeTransformInit, a2 as TransformAnchor } from '../export-DNu_Jr8p.js';
|
|
2
|
+
export { a3 as AIResultOptions, a4 as AdjustmentLayerBase, a5 as AdjustmentLayerInit, a6 as AdjustmentLayerUpdate, a7 as AnnotationPlacement, a8 as AnnotationType, a9 as ArrowAnnotation, aa as AspectRatio, ab as BaseAnnotation, ac as BlackWhiteParams, ad as BlurFilter, ae as CircleAnnotation, af as ColorBalanceParams, ag as ColorBalanceTone, ah as ColorRangeOptions, ai as ColorRangeSample, aj as CreateAnnotationPayload, ak as CropHandle, al as CurvesParams, am as DEFAULT_ADJUSTMENTS, an as DEFAULT_AUTO_LEADING, ao as DEFAULT_DEPTH_MASK, ap as DEFAULT_MITER_LIMIT, aq as DEFAULT_REFINE_EDGE_PARAMS, ar as DEFAULT_TEXT_STYLE, as as DEFAULT_TRANSFORM, at as DeserializeContext, au as DevelopSettings, av as EMPTY_DISTANCE, aw as ExportOptions, ax as FREE_TRANSFORM_CONTENTS, ay as FREE_TRANSFORM_MODES, az as FillOptions, aA as FreeTransformContent, aB as FreeTransformHost, aC as FreeTransformPreview, aD as GUIDED_FILTER_EPS, aE as GroupLayer, aF as HISTOGRAM_BINS, aG as HistogramChannel, aH as HistoryEntryHandle, aI as HueSaturationParams, aJ as IMAGE_EDITOR_SCHEMA_VERSION, aK as ImageAnnotation, aL as ImageDimensions, aM as ImageEditorAIHooks, I as ImageEditorAssetStore, aN as ImageEditorFit, aO as ImageEditorOptions, aP as ImageEditorRenderer, aQ as ImageEditorState, aR as ImageEditorTool, aS as ImageLayerType, aT as InpaintHook, aU as InpaintOptions, aV as InvertParams, aW as LAYERED_SCHEMA_VERSION, aX as LIVE_SHAPE_KINDS, aY as LaidChar, aZ as LaidFragment, a_ as LaidLine, a$ as LayerBase, b0 as LayerBlendMode, b1 as LayerFilterKind, b2 as LayerLocation, b3 as LayerMaskProps, b4 as LayerOperationError, b5 as LayerProperties, b6 as LayerSourcesHost, b7 as LayerTarget, b8 as LegacySerializedImageEditorState, b9 as LevelsParams, ba as LineAnnotation, bb as LiveShape, bc as MagicWandOptions, bd as MixerStrokeInit, be as PARAGRAPH_STYLE_FIELDS, bf as PSD_BLEND_KEYS, bg as PaintOptions, bh as PaintStrokeResult, bi as PaintStrokeSession, bj as ParagraphRun, bk as PenAnnotation, bl as PhotoFilterParams, bm as PixelBuffer, bn as PixelLayerInit, bo as PosterizeParams, bp as PsdChannel, bq as PsdExportInput, P as PsdExportResult, br as PsdFile, bs as PsdHeader, bt as PsdImportOptions, bu as PsdImportResult, bv as PsdLayerMask, bw as PsdLayerRecord, bx as PsdLayerSummary, by as PsdRect, bz as PsdResource, bA as PsdSmartFilter, bB as PsdTaggedBlock, bC as PsdTreeNode, bD as RectAnnotation, bE as RemoveBackgroundHook, bF as RemoveBackgroundOptions, bG as RenderOptions, bH as SELECTION_MODES, bI as SELECTION_MODIFY_OPS, bJ as SHAPE_OPERATIONS, bK as SHAPE_RENDER_MARGIN, bL as SampleOptions, bM as SelectionChannel, bN as SelectionCommandOptions, bO as SelectionModifyOp, bP as SerializeContext, bQ as SerializedAdjustmentLayer, bR as SerializedAnnotationLayer, bS as SerializedGroupLayer, S as SerializedLayer, bT as SerializedLayerEffects, bU as SerializedLayeredImageEditorState, bV as SerializedPattern, bW as SerializedPixelLayer, bX as SerializedRasterMask, bY as SerializedSelection, bZ as SerializedShapeLayer, b_ as SerializedSmartContents, b$ as SerializedSmartFilter, c0 as SerializedSmartObjectLayer, c1 as SerializedTypeLayer, c2 as ShapeArrowhead, c3 as ShapeComponent, c4 as ShapeEnv, c5 as ShapeFillRule, c6 as ShapeGeometryInput, c7 as ShapeLayerData, c8 as ShapeLayerInfo, c9 as ShapeLayerInit, ca as ShapeLineCap, cb as ShapeLineJoin, cc as ShapeOperation, cd as ShapePaint, ce as ShapePsdData, cf as ShapeSelectionOptions, cg as ShapeStroke, ch as ShapeStrokeAlign, ci as ShapeStrokeInput, cj as SmartFilterKind, ck as SmartObjectInfo, cl as SmartPsdData, cm as StrokeInit, cn as StrokeTool, co as TEXT_ALIGNS, cp as TEXT_RENDER_MARGIN, cq as TEXT_STYLE_FIELDS, cr as TONE_RANGE_PRESETS, cs as TRANSFORM_ANCHORS, ct as TextAnnotation, cu as TextLayerInit, cv as TextLayout, cw as TextRun, cx as ThresholdParams, cy as ToneRangePreset, cz as TransformParams, cA as TransformReadout, cB as TypeLayerData, cC as TypePsdData, cD as VibranceParams, cE as ViewportMetrics, cF as addLayerEffect, cG as addLayerFilter, cH as adjustmentNodeAsLayer, cI as anchorPoint, cJ as annotationBlend, cK as annotationOfShape, cL as annotationOfType, cM as applyImageProjectionToContext, cN as applyParams, cO as blurFilter, cP as borderCoverage, cQ as boxMean, cR as boxPointOf, cS as buildLayerMaskPlanes, cT as calculateCropDrag, cU as canvasToImagePoint, cV as caretAt, cW as clampCropToImage, cX as colorRange, cY as combineSelections, cZ as componentPath, c_ as computeHistogram, c$ as computeSelectionBounds, d0 as contractCoverage, d1 as cornersFromMatrix, d2 as coverageToByte, d3 as createSelectionMask, d4 as createShapeLayer, d5 as createTypeLayer, d6 as decodeLayerChannel, d7 as decodeLayerMask, d8 as decodeMergedImage, d9 as decodePngDataUrl, da as decodeSelectionRle, db as defaultShapeName, dc as depthMaskAlpha, dd as describeTransform, de as deserializeEffects, df as deserializeLayer, dg as deserializeLayers, dh as deserializePatterns, di as deserializeSelection, dj as developFilter, dk as distanceTransform, dl as duplicateLayer, dm as edgeWidth, dn as ellipsePoints, dp as ellipseSelection, dq as encodeSelectionRle, dr as encodeSurface, ds as expandCoverage, dt as exportPsd, du as featherCoverage, dv as fitParagraphRuns, dw as fitRuns, dx as flipCorners, dy as fontOf, dz as fullSelection, dA as geometryHomography, dB as getAnnotationBounds, dC as getCropCursor, dD as getRotatedSize, dE as getViewportMetrics, dF as getViewportProjection, dG as globalImageCache, dH as greyMorphology, dI as groupLayers, dJ as guidePlanes, dK as guidedFilterColor, dL as hasSurface, dM as hasWarp, dN as hashMaskContent, dO as histogramPath, dP as hitTestAnnotation, dQ as hitTestCrop, dR as hueRange, dS as identityTransform, dT as imageToCanvasPoint, dU as importPsd, dV as invertSelection, dW as isActiveFilter, dX as isIdentityTransform, dY as isQuarterTurnSwapped, dZ as isRenderedLayer, d_ as isSelectionEmpty, d$ as isSelectionMode, e0 as isSpatialFilter, e1 as isTransformAnchor, e2 as isValidWarp, e3 as layerEffectsOf, e4 as layerMaskCoverage, e5 as layerMaskFromSelection, e6 as layerMaskKey, e7 as layerName, e8 as layerTree, e9 as layerTypeLabel, ea as layoutText, eb as liveComponent, ec as liveShapeSubpaths, ed as magicWand, ee as mapCropHandle, ef as mapSubpaths, eg as matrixFromCorners, eh as matrixFromParams, ei as mergeShapeComponents, ej as migrateSerializedImageEditorState, ek as migrateToLayeredState, el as modifySelection, em as moveLayer, en as newLayerId, eo as normalizeAngle, ep as normalizeFilter, eq as normalizeLayerMask, er as normalizeLiveShape, es as normalizeRect, et as normalizeRefineEdgeParams, eu as normalizeShapePaint, ev as normalizeShapeStroke, ew as normalizeStoredAdjustments, ex as normalizeSubpaths, ey as normalizeText, ez as offsetLayer, eA as offsetShape, eB as paragraphRanges, eC as parseBlend, eD as parseColor, eE as parseSelectionMode, eF as patchParagraphStyle, eG as patchTextStyle, eH as pixelLayerBounds, eI as pixelLayers, eJ as placeLayer, eK as polygonCoverage, eL as polygonSelection, eM as presetWarp, eN as previewStep, eO as projectImagePoint, eP as projectImageRect, eQ as projectMaskCoverage, eR as psdToLayers, eS as readPsd, eT as rectSelection, eU as referencePoint, eV as refineCoverage, eW as refineEdgeHalo, eX as refineSelection, eY as removeLayer, eZ as removeLayerEffect, e_ as removeLayerFilter, e$ as renderShape, f0 as renderShapeRect, f1 as renderText, f2 as replaceTextRange, f3 as requireLayer, f4 as requireOperation, f5 as requireShapeLayer, f6 as requireTypeLayer, f7 as requireUnlocked, f8 as rerenderShape, f9 as rerenderText, fa as resizePixels, fb as resizeSelection, fc as resolveExternalAssets, fd as restyleRange, fe as runLayerFilters, ff as selectionArea, fg as selectionFromCoverage, fh as selectionFromPixels, fi as selectionToCoverage, fj as selectionToPixels, fk as selectionValueAt, fl as serializeContents, fm as serializeEffects, fn as serializeLayer, fo as serializeLayers, fp as serializeLayersExternal, fq as serializePatterns, fr as serializeSelection, fs as setLayerEffects, ft as setLayerEffectsEnabled, fu as setLayerMask, fv as setLayerProperties, fw as shapeAsPixelLayer, fx as shapeFromAnnotation, fy as shapeGeometryBounds, fz as shapeLayers, fA as shapeOutline, fB as shapeRenderClip, fC as shiftCoverage, fD as smartObjectLayers, fE as smoothCoverage, fF as spliceRuns, fG as srgb8ToLab, fH as styleAt, fI as textIndexAt, fJ as textMatrix, fK as textOutlines, fL as textRange, fM as toHex, fN as toTextSpace, fO as toneRange, fP as transformHomography, fQ as transformMap, fR as transformShapeComponents, fS as transformTypeLayer, fT as transformedBox, fU as transformedPoint, fV as typeAsPixelLayer, fW as typeFrame, fX as typeFromAnnotation, fY as typeLayerName, fZ as ungroupLayer, f_ as unionRect, f$ as unprojectCanvasPoint, g0 as updateLayerEffect, g1 as updateLayerFilter, g2 as updateLayerMaskProps, g3 as updateShapeLayer, g4 as updateTypeLayer, g5 as withNewIds, g6 as writePsd } from '../export-DNu_Jr8p.js';
|
|
3
3
|
import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.js';
|
|
4
4
|
import { B as BlendMode, b as PixelSurface, R as RasterRect } from '../surface-C8RRg_Bh.js';
|
|
5
5
|
export { d as BLEND_MODES, c as BlendModeInfo, M as MaskSurface, e as PAINTERLY_BLEND_MODES, h as PIGMENT_BANDS, j as PIGMENT_LAMBDA_MIN, k as PIGMENT_LAMBDA_STEP, l as PIGMENT_WAVELENGTHS, P as Pigment, m as PigmentOptions, n as PigmentRgb, o as Rgb, p as Rgba, S as SHADOW_AMBIENT, q as SurfaceDraft, r as TILE, t as TILE_SHIFT, f as Tile, T as TileKey, a as TiledSurface, u as blendChannel, v as blendImageData, w as blendLum, x as blendPixel, y as blendRgb, z as canvasCompositeOperation, A as collectTiles, C as contentBounds, D as createPigment, E as emptySurface, F as fillRect, G as finishTile, i as isBlendMode, g as isPainterlyBlendMode, H as isSeparableBlendMode, I as lerpPigment, J as lerpPigmentInto, K as mixPigment8, L as mixPigmentRgb, N as mixPigments, O as normalizeBlendMode, Q as packRgba, U as pigment8, V as readPixel, W as readRegion, X as reflectanceToRgb, Y as rgbToReflectance, Z as setLum, _ as setPigmentColor, $ as solidSurface, s as standardBlendMode, a0 as surfaceBytes, a1 as surfaceFromPixels, a2 as surfacesEqual, a3 as tileCoord, a4 as tileKey, a5 as tileRect, a6 as tilesInRect, a7 as translateSurface, a8 as uniformTile, a9 as writeRegion } from '../surface-C8RRg_Bh.js';
|
|
@@ -1164,6 +1164,158 @@ declare function createOutlineTextShaper(fonts: ReadonlyArray<OutlineFontFace |
|
|
|
1164
1164
|
*/
|
|
1165
1165
|
declare function createImageTypeTools(controller: ImageEditorController): AgentTool[];
|
|
1166
1166
|
|
|
1167
|
+
/**
|
|
1168
|
+
* Framework-free logic behind the shape and type tools of the React and Svelte image editors:
|
|
1169
|
+
* tool options, a drag that draws a live shape (one undo step, the layer updated live while
|
|
1170
|
+
* dragging), and on-canvas text editing (caret, selection, typing, keys, styling the selection,
|
|
1171
|
+
* the overlay to draw). The components only translate DOM events and draw `overlay()`.
|
|
1172
|
+
*/
|
|
1173
|
+
|
|
1174
|
+
/** What the shape tool draws next (and what its options bar edits on a selected shape). */
|
|
1175
|
+
interface ShapeToolOptions {
|
|
1176
|
+
kind: LiveShapeKind;
|
|
1177
|
+
/** `#rrggbb`, or `null` for no fill. */
|
|
1178
|
+
fill: string | null;
|
|
1179
|
+
/** `#rrggbb`, or `null` for no stroke. */
|
|
1180
|
+
stroke: string | null;
|
|
1181
|
+
strokeWidth: number;
|
|
1182
|
+
/** Rectangles: corner radius in pixels. */
|
|
1183
|
+
radius: number;
|
|
1184
|
+
/** Polygons: sides. */
|
|
1185
|
+
sides: number;
|
|
1186
|
+
/** Stars: points and inner radius ratio. */
|
|
1187
|
+
points: number;
|
|
1188
|
+
innerRatio: number;
|
|
1189
|
+
/** Lines: thickness in pixels and whether to add an arrowhead at the end. */
|
|
1190
|
+
weight: number;
|
|
1191
|
+
arrow: boolean;
|
|
1192
|
+
}
|
|
1193
|
+
declare const DEFAULT_SHAPE_TOOL_OPTIONS: ShapeToolOptions;
|
|
1194
|
+
declare const SHAPE_KIND_LABELS: Record<LiveShapeKind, string>;
|
|
1195
|
+
/** What the type tool sets new text in (and what its options bar edits on the selection). */
|
|
1196
|
+
interface TypeToolOptions {
|
|
1197
|
+
fontFamily: string;
|
|
1198
|
+
fontSize: number;
|
|
1199
|
+
fontWeight: number;
|
|
1200
|
+
italic: boolean;
|
|
1201
|
+
color: string;
|
|
1202
|
+
align: TextAlign;
|
|
1203
|
+
}
|
|
1204
|
+
declare const DEFAULT_TYPE_TOOL_OPTIONS: TypeToolOptions;
|
|
1205
|
+
/** A live shape for a drag from `a` to `b` (Shift: square / circle / 45° line; Alt: from the centre). */
|
|
1206
|
+
declare function liveShapeForDrag(o: ShapeToolOptions, a: ImagePoint, b: ImagePoint, mods?: {
|
|
1207
|
+
shift?: boolean;
|
|
1208
|
+
alt?: boolean;
|
|
1209
|
+
}): Record<string, unknown> | null;
|
|
1210
|
+
/**
|
|
1211
|
+
* A drag that draws a live shape: the layer is added on the first real move (one undo step) and
|
|
1212
|
+
* its component updated live (no history) until the pointer is released.
|
|
1213
|
+
*/
|
|
1214
|
+
declare class ShapeDrawGesture {
|
|
1215
|
+
private readonly controller;
|
|
1216
|
+
private readonly options;
|
|
1217
|
+
private start;
|
|
1218
|
+
private layerId;
|
|
1219
|
+
error: string | null;
|
|
1220
|
+
constructor(controller: ImageEditorController, options: () => ShapeToolOptions);
|
|
1221
|
+
get active(): boolean;
|
|
1222
|
+
/** The shape layer drawn by the last drag (until the next one starts). */
|
|
1223
|
+
get drawnLayerId(): string | null;
|
|
1224
|
+
down(p: ImagePoint): void;
|
|
1225
|
+
move(p: ImagePoint, mods?: {
|
|
1226
|
+
shift?: boolean;
|
|
1227
|
+
alt?: boolean;
|
|
1228
|
+
}): void;
|
|
1229
|
+
up(): string | null;
|
|
1230
|
+
cancel(): void;
|
|
1231
|
+
}
|
|
1232
|
+
/** Applies options-bar changes to a shape layer (fill, stroke, width, and the live shape's own fields). */
|
|
1233
|
+
declare function applyShapeOptions(controller: ImageEditorController, layerId: string, change: Partial<ShapeToolOptions>): void;
|
|
1234
|
+
/** The keys a text session understands, as DOM `KeyboardEvent`s report them. */
|
|
1235
|
+
interface TextKey {
|
|
1236
|
+
key: string;
|
|
1237
|
+
shiftKey?: boolean;
|
|
1238
|
+
metaKey?: boolean;
|
|
1239
|
+
ctrlKey?: boolean;
|
|
1240
|
+
altKey?: boolean;
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Editing one type layer on the canvas: a caret and a selection (`anchor`..`focus`, UTF-16 code
|
|
1244
|
+
* units), typing, deleting, moving, clicking and styling the selection. The first change of a
|
|
1245
|
+
* session records one undo step; the rest join it.
|
|
1246
|
+
*/
|
|
1247
|
+
declare class TextEditSession {
|
|
1248
|
+
private readonly controller;
|
|
1249
|
+
readonly layerId: string;
|
|
1250
|
+
anchor: number;
|
|
1251
|
+
focus: number;
|
|
1252
|
+
private changed;
|
|
1253
|
+
private readonly listeners;
|
|
1254
|
+
error: string | null;
|
|
1255
|
+
constructor(controller: ImageEditorController, layerId: string, index?: number);
|
|
1256
|
+
private get layer();
|
|
1257
|
+
get text(): string;
|
|
1258
|
+
get start(): number;
|
|
1259
|
+
get end(): number;
|
|
1260
|
+
/** Whether the layer still exists (it can be deleted or undone away while editing). */
|
|
1261
|
+
get alive(): boolean;
|
|
1262
|
+
subscribe(fn: () => void): () => void;
|
|
1263
|
+
private emit;
|
|
1264
|
+
private layout;
|
|
1265
|
+
private run;
|
|
1266
|
+
/** Replaces the selection with `text` (typing and pasting). */
|
|
1267
|
+
insert(text: string): void;
|
|
1268
|
+
/** Backspace: the selection, else the character before the caret. */
|
|
1269
|
+
deleteBackward(): void;
|
|
1270
|
+
/** Delete: the selection, else the character after the caret. */
|
|
1271
|
+
deleteForward(): void;
|
|
1272
|
+
/** 2 when the code unit at `i` is half of a surrogate pair (moving `dir`), else 1. */
|
|
1273
|
+
private surrogate;
|
|
1274
|
+
/** Moves the caret (Shift extends the selection). */
|
|
1275
|
+
move(to: 'left' | 'right' | 'up' | 'down' | 'home' | 'end' | 'start' | 'finish', extend?: boolean): void;
|
|
1276
|
+
selectAll(): void;
|
|
1277
|
+
/** Places the caret at a document point (Shift-click extends). */
|
|
1278
|
+
pointAt(p: ImagePoint, extend?: boolean): void;
|
|
1279
|
+
/** Handles a key; returns `true` when it was the session's (the caller then prevents the default). */
|
|
1280
|
+
handleKey(e: TextKey): boolean;
|
|
1281
|
+
/** Sets character style fields on the selection, or on the whole text when nothing is selected. */
|
|
1282
|
+
setStyle(style: Partial<TextStyle>): void;
|
|
1283
|
+
/** Sets paragraph fields on the paragraphs the selection touches. */
|
|
1284
|
+
setParagraph(style: ParagraphStyle): void;
|
|
1285
|
+
/** The style at the caret (or the selection's start), for the options bar. */
|
|
1286
|
+
styleHere(): TextStyle;
|
|
1287
|
+
info(): TypeLayerInfo;
|
|
1288
|
+
/** The caret, the selection and the frame in natural pixels, for `RenderOptions.textEdit`. */
|
|
1289
|
+
overlay(): {
|
|
1290
|
+
caret: [ImagePoint, ImagePoint] | null;
|
|
1291
|
+
selection: ImagePoint[][];
|
|
1292
|
+
frame: ImagePoint[] | null;
|
|
1293
|
+
};
|
|
1294
|
+
/** Ends editing: an empty layer made for this session is deleted (as Photoshop does). Returns whether the layer remains. */
|
|
1295
|
+
close(): boolean;
|
|
1296
|
+
}
|
|
1297
|
+
/** Where a click lands on type layers: the topmost visible type layer whose laid-out text or box contains `p`, or `null`. */
|
|
1298
|
+
declare function typeLayerAt(controller: ImageEditorController, p: ImagePoint, slop?: number): string | null;
|
|
1299
|
+
/**
|
|
1300
|
+
* The type tool: a click on type edits it at the clicked character; a click elsewhere adds point
|
|
1301
|
+
* text there (a drag adds paragraph text in the dragged box). Holds the open `TextEditSession`.
|
|
1302
|
+
*/
|
|
1303
|
+
declare class TypeToolGesture {
|
|
1304
|
+
private readonly controller;
|
|
1305
|
+
private readonly options;
|
|
1306
|
+
session: TextEditSession | null;
|
|
1307
|
+
private dragStart;
|
|
1308
|
+
error: string | null;
|
|
1309
|
+
constructor(controller: ImageEditorController, options: () => TypeToolOptions);
|
|
1310
|
+
down(p: ImagePoint, mods?: {
|
|
1311
|
+
shift?: boolean;
|
|
1312
|
+
}): void;
|
|
1313
|
+
/** Releases a click or drag that did not land on type: adds a new text layer (point text, or a box for a drag). */
|
|
1314
|
+
up(p: ImagePoint): TextEditSession | null;
|
|
1315
|
+
/** Ends the open session (an empty new layer is removed). */
|
|
1316
|
+
finish(): void;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1167
1319
|
/**
|
|
1168
1320
|
* Anti-aliased coverage of filled Bézier paths over a pixel rectangle, without a canvas. The paths
|
|
1169
1321
|
* are flattened to lines, then rasterized one of two ways:
|
|
@@ -1226,6 +1378,10 @@ declare function layerPanelRows(layers: readonly ImageLayer[], activeId: string
|
|
|
1226
1378
|
declare function layerLabel(layer: ImageLayer): string;
|
|
1227
1379
|
/** A short type badge for rows without a thumbnail. */
|
|
1228
1380
|
declare function layerBadge(layer: ImageLayer): string;
|
|
1381
|
+
/** Whether the layer's row shows a pixel thumbnail (pixel, shape and type layers; shapes and type with a badge on it). */
|
|
1382
|
+
declare function layerHasThumbnail(layer: ImageLayer): boolean;
|
|
1383
|
+
/** A warning to show on a layer's row (a type layer drawn with fallback fonts), or `null`. */
|
|
1384
|
+
declare function layerWarning(layer: ImageLayer): string | null;
|
|
1229
1385
|
/** Where a row was dropped on: the top or bottom part of the row, or the middle of a group row. */
|
|
1230
1386
|
type DropZone = 'above' | 'below' | 'inside';
|
|
1231
1387
|
/** The zone for a pointer at `fraction` (0 top .. 1 bottom) of a row's height. */
|
|
@@ -1886,4 +2042,4 @@ declare class FreeTransformTool {
|
|
|
1886
2042
|
key(e: ShortcutEvent): boolean;
|
|
1887
2043
|
}
|
|
1888
2044
|
|
|
1889
|
-
export { ADJUSTMENT_KEYS, ADJUSTMENT_KINDS, ADJUSTMENT_LAYER_CONTROLS, ADJUSTMENT_LAYER_OPACITY_CONTROL, ADJUSTMENT_LUT_SIZE, AS_SHOT_KELVIN, AdjustmentKind, type AdjustmentKindInfo, AdjustmentLayer, AdjustmentLayerMask, AdjustmentLayerNode, AdjustmentLayerOf, AdjustmentParamsMap, Annotation, AnnotationLayer, BACKGROUND_LAYER_ID, BACKGROUND_LAYER_NAME, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, BlendMode, type CanvasTextShaperOptions, type Chromaticity, ColorDistance, CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type ConvertOptions, type CoverageFillRule, CropBox, CurvePoint, D50, D65, DEFAULT_SELECTION_TOOL_OPTIONS, DEPTH_MASK_CONTROLS, DEVELOP_FILTER_ID, DepthMaskOptions, type DescValue, type Descriptor, DevelopFilter, type DropZone, type EffectControl, EffectPattern, FREE_TRANSFORM_FIELDS, FREE_TRANSFORM_MODE_OPTIONS, type FlatPath, type FreeTransformBar, type FreeTransformField, FreeTransformGeometry, FreeTransformInit, FreeTransformMode, FreeTransformResult, FreeTransformSession, FreeTransformTool, type FreeTransformToolOptions, type GestureModifiers, HUE_RANGE_LABELS, HueRange, IDENTITY_MATRIX3, IMAGE_ADJUSTMENT_CONTROLS, IMAGE_CROP_PRESETS, IMAGE_EDITOR_STATE_VERSION, IMAGE_FILTER_PRESETS, ImageAdjustments, type ImageCropPreset, ImageEditorController, type ImageEditorDocumentLoad, type ImageEditorToolProviderOptions, type ImageFilterPreset, ImageHistogram, ImageLayer, ImagePoint, type ImageProcessVersion, ImageProjection, ImageTransform, Interpolation, LATEST_PROCESS_VERSION, LAYER_EFFECT_MENU, LEGACY_PROCESS_VERSION, LUMA_709, LayerCompositor, LayerEffect, LayerEffectKind, type LayerEffectRow, LayerEffects, type LayerEffectsPanelModel, LayerFilter, type LayerMenuAction, type LayerMenuItem, type LayerPanelRow, LayerPlacement, type LayerStack, type LegacyParts, type LegacyViewResult, LevelsChannel, MAX_KELVIN, MIN_KELVIN, MIRED_PER_TEMPERATURE_UNIT, MIXER_MIXING_OPTIONS, MIXER_OPTION_CONTROLS, type Matrix3, MixerLoad, MixerSettings, type MosaicImageDataLike, type MosaicRegion, type NormalizedLayerItem, type OutlineFontEntry, type OutlineFontFace, type OutlinePathCommand, PAINT_TOOLS, PATTERN_BLOCK_KEYS, PSD_FILE_ACCEPT, PaintGesture, type PaintPointerSample, type PaintTool, type ParsedAdjustment, type ParsedLayerEffects, PixelLayer, type PixelOp, PixelSurface, type PlaneLayout, PsdError, type PsdPattern, Quad, type QuickMaskStyle, REFINE_EDGE_CONTROLS, RasterMask, RasterRect, type ReferenceItem, type RefineEdgeControl, RefineEdgeParams, type RouteInput, SELECTION_MODE_LABELS, SELECTION_TOOLS, SMART_RENDER_MARGIN, SUPPORTED_ADJUSTMENT_KEYS, SelectionGesture, SelectionMask, SelectionMode, type SelectionToolKind, type SelectionToolOptions, SerializedImageEditorState, ShapeLayer, type ShortcutEvent, type SmartCanvas, SmartContents, SmartDocument, SmartFilter, type SmartFilterRow, SmartFilterStack, SmartObjectLayer, SmartPlacement, type SmartRenderOptions, TINT_SCALE, TONE_LUT_SIZE, TextEnv, TextFont, TextShaper, TransformAnchor, type TransformHandle, type TransformModifiers, type TransformOverlay, TypeLayer, type UnitLevels, VIBRANCE_GREY, Vec2, WARP_GRID_OPTIONS, WARP_STYLE_OPTIONS, type WarpBar, WarpMesh, WarpStyle, XYZ_D50_TO_SRGB, activeAdjustmentLayers, activeSmartFilters, addSmartFilter, addToHistogram, adjustmentKindLabel, adjustmentLayersKey, adjustmentNodeFromLegacy, annotationLayerFor, annotationLayerName, annotationOfLayer, applyAdjustmentLayers, applyAdjustments, applyBoxBlur, applyDepthMask, applyLegacyAdjustments, applyMatrix3, applyOutputStage, applyProcess2Adjustments, applyRegionBlur, applyRegionMosaic, applySmartFilters, backgroundLayer, baseProjection, blackWhiteGray, boxToCurvePoint, bradfordAdaptation, buildToneLut, clampControlValue, colorBalanceChannel, compileAdjustmentLayer, contentsBox, contentsSurface, controlPosition, controlTrackBackground, convertToSmartObject, copySmartObject, coveringRect, createAdjustmentLayer, createCanvasTextShaper, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createImageShapeTools, createImageSmartObjectTools, createImageTransformTools, createImageTypeTools, createOutlineTextShaper, cssFont, cssFontFamily, curveLutFromLevels, curvePointToBox, curveSvgPath, decodePlanes, defaultAdjustmentParams, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, developFromAdjustments, developTarget, documentContents, downloadPsd, dropPlacement, dropZone, effectControlChange, emptyHistogram, encodeRle, evaluateAdjustmentLayers, extractNormalizedLayerItems, filterMaskCoverage, findAdjustmentControl, findLayerControl, flattenPath, formatControlValue, getControlPath, handlePaintShortcut, hasResampledLegacyMask, hexToRgb, hitTestCurvePoint, hslToRgb, hueRangeTables, hueRangeWeight, hueSaturation, identityCurve, identityLevels, imageEditorStateMigrations, insertCurvePoint, instancesOf, invertMatrix3, isAdjustmentKind, isContentsDecoded, isDefaultDepthMask, isLegacyShape, isPaintTool, isQuarterTurn, kelvinToTemperature, layerBadge, layerEffectControls, layerEffectsBadge, layerEffectsPanel, layerLabel, layerMenu, layerPanelRows, layersFromLegacy, legacyAdjustmentLayer, legacyMaskOf, legacyView, levelsValue, linearSrgbToXy, linearToSrgb, loadImageEditorDocument, maskSummary, mixerLoadResult, moveCurvePoint, moveSmartFilter, mulMatrix3, needsLegacyBase, neutralHueRange, newContentsId, normalizeAdjustmentLayer, normalizeAdjustmentLayers, normalizePlacement, normalizeProcessVersion, normalizeSmartFilter, offsetSmartObject, openPsdFile, parseAdjustmentBlock, parseCssColor, parseLfx2, parseLrfx, parsePatternBlock, parseVersionedDescriptor, photoFilterMatrix, placeContents, placementAt, placementBounds, placementGeometry, pointerPressure, posterizeValue, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdPatternToEffectPattern, quickMaskPixels, rangeLightness, rasterContents, rasterMaskFromLegacy, rasterizeCoverage, rasterizeSmartObject, readAdjustmentControls, removeAlpha, removeCurvePoint, removeSmartFilter, renderLayeredBase, renderSmartObject, replaceContents, requireSmartObject, rerender, resolveMosaicRegionBounds, rgbToGray, rgbToHsl, rgbUnitToHex, runLayerMenuAction, sampleLut, sampleToneLut, selectionModeFromModifiers, selectionOutline, setControlPath, setSmartFilterMask, setSmartFiltersEnabled, setSmartPlacement, smartFilterRows, splitOverlayAnnotations, srgbToLinear, sumHistograms, tempTintToXy, temperatureToKelvin, toneCurve, toneLuts, updateSmartFilter, uvToXy, versionedDescriptorBytes, vibranceLinear, vibrancePixel, wbMatrix, whiteBalanceFromSample, whiteBalanceMatrix, withFilterMaskSurface, writeAdjustmentBlock, writeLfx2, writePatternBlock, xyToTempTint, xyToUv };
|
|
2045
|
+
export { ADJUSTMENT_KEYS, ADJUSTMENT_KINDS, ADJUSTMENT_LAYER_CONTROLS, ADJUSTMENT_LAYER_OPACITY_CONTROL, ADJUSTMENT_LUT_SIZE, AS_SHOT_KELVIN, AdjustmentKind, type AdjustmentKindInfo, AdjustmentLayer, AdjustmentLayerMask, AdjustmentLayerNode, AdjustmentLayerOf, AdjustmentParamsMap, Annotation, AnnotationLayer, BACKGROUND_LAYER_ID, BACKGROUND_LAYER_NAME, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, BlendMode, type CanvasTextShaperOptions, type Chromaticity, ColorDistance, CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type ConvertOptions, type CoverageFillRule, CropBox, CurvePoint, D50, D65, DEFAULT_SELECTION_TOOL_OPTIONS, DEFAULT_SHAPE_TOOL_OPTIONS, DEFAULT_TYPE_TOOL_OPTIONS, DEPTH_MASK_CONTROLS, DEVELOP_FILTER_ID, DepthMaskOptions, type DescValue, type Descriptor, DevelopFilter, type DropZone, type EffectControl, EffectPattern, FREE_TRANSFORM_FIELDS, FREE_TRANSFORM_MODE_OPTIONS, type FlatPath, type FreeTransformBar, type FreeTransformField, FreeTransformGeometry, FreeTransformInit, FreeTransformMode, FreeTransformResult, FreeTransformSession, FreeTransformTool, type FreeTransformToolOptions, type GestureModifiers, HUE_RANGE_LABELS, HueRange, IDENTITY_MATRIX3, IMAGE_ADJUSTMENT_CONTROLS, IMAGE_CROP_PRESETS, IMAGE_EDITOR_STATE_VERSION, IMAGE_FILTER_PRESETS, ImageAdjustments, type ImageCropPreset, ImageEditorController, type ImageEditorDocumentLoad, type ImageEditorToolProviderOptions, type ImageFilterPreset, ImageHistogram, ImageLayer, ImagePoint, type ImageProcessVersion, ImageProjection, ImageTransform, Interpolation, LATEST_PROCESS_VERSION, LAYER_EFFECT_MENU, LEGACY_PROCESS_VERSION, LUMA_709, LayerCompositor, LayerEffect, LayerEffectKind, type LayerEffectRow, LayerEffects, type LayerEffectsPanelModel, LayerFilter, type LayerMenuAction, type LayerMenuItem, type LayerPanelRow, LayerPlacement, type LayerStack, type LegacyParts, type LegacyViewResult, LevelsChannel, LiveShapeKind, MAX_KELVIN, MIN_KELVIN, MIRED_PER_TEMPERATURE_UNIT, MIXER_MIXING_OPTIONS, MIXER_OPTION_CONTROLS, type Matrix3, MixerLoad, MixerSettings, type MosaicImageDataLike, type MosaicRegion, type NormalizedLayerItem, type OutlineFontEntry, type OutlineFontFace, type OutlinePathCommand, PAINT_TOOLS, PATTERN_BLOCK_KEYS, PSD_FILE_ACCEPT, PaintGesture, type PaintPointerSample, type PaintTool, ParagraphStyle, type ParsedAdjustment, type ParsedLayerEffects, PixelLayer, type PixelOp, PixelSurface, type PlaneLayout, PsdError, type PsdPattern, Quad, type QuickMaskStyle, REFINE_EDGE_CONTROLS, RasterMask, RasterRect, type ReferenceItem, type RefineEdgeControl, RefineEdgeParams, type RouteInput, SELECTION_MODE_LABELS, SELECTION_TOOLS, SHAPE_KIND_LABELS, SMART_RENDER_MARGIN, SUPPORTED_ADJUSTMENT_KEYS, SelectionGesture, SelectionMask, SelectionMode, type SelectionToolKind, type SelectionToolOptions, SerializedImageEditorState, ShapeDrawGesture, ShapeLayer, type ShapeToolOptions, type ShortcutEvent, type SmartCanvas, SmartContents, SmartDocument, SmartFilter, type SmartFilterRow, SmartFilterStack, SmartObjectLayer, SmartPlacement, type SmartRenderOptions, TINT_SCALE, TONE_LUT_SIZE, TextAlign, TextEditSession, TextEnv, TextFont, type TextKey, TextShaper, TextStyle, TransformAnchor, type TransformHandle, type TransformModifiers, type TransformOverlay, TypeLayer, TypeLayerInfo, TypeToolGesture, type TypeToolOptions, type UnitLevels, VIBRANCE_GREY, Vec2, WARP_GRID_OPTIONS, WARP_STYLE_OPTIONS, type WarpBar, WarpMesh, WarpStyle, XYZ_D50_TO_SRGB, activeAdjustmentLayers, activeSmartFilters, addSmartFilter, addToHistogram, adjustmentKindLabel, adjustmentLayersKey, adjustmentNodeFromLegacy, annotationLayerFor, annotationLayerName, annotationOfLayer, applyAdjustmentLayers, applyAdjustments, applyBoxBlur, applyDepthMask, applyLegacyAdjustments, applyMatrix3, applyOutputStage, applyProcess2Adjustments, applyRegionBlur, applyRegionMosaic, applyShapeOptions, applySmartFilters, backgroundLayer, baseProjection, blackWhiteGray, boxToCurvePoint, bradfordAdaptation, buildToneLut, clampControlValue, colorBalanceChannel, compileAdjustmentLayer, contentsBox, contentsSurface, controlPosition, controlTrackBackground, convertToSmartObject, copySmartObject, coveringRect, createAdjustmentLayer, createCanvasTextShaper, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createImageShapeTools, createImageSmartObjectTools, createImageTransformTools, createImageTypeTools, createOutlineTextShaper, cssFont, cssFontFamily, curveLutFromLevels, curvePointToBox, curveSvgPath, decodePlanes, defaultAdjustmentParams, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, developFromAdjustments, developTarget, documentContents, downloadPsd, dropPlacement, dropZone, effectControlChange, emptyHistogram, encodeRle, evaluateAdjustmentLayers, extractNormalizedLayerItems, filterMaskCoverage, findAdjustmentControl, findLayerControl, flattenPath, formatControlValue, getControlPath, handlePaintShortcut, hasResampledLegacyMask, hexToRgb, hitTestCurvePoint, hslToRgb, hueRangeTables, hueRangeWeight, hueSaturation, identityCurve, identityLevels, imageEditorStateMigrations, insertCurvePoint, instancesOf, invertMatrix3, isAdjustmentKind, isContentsDecoded, isDefaultDepthMask, isLegacyShape, isPaintTool, isQuarterTurn, kelvinToTemperature, layerBadge, layerEffectControls, layerEffectsBadge, layerEffectsPanel, layerHasThumbnail, layerLabel, layerMenu, layerPanelRows, layerWarning, layersFromLegacy, legacyAdjustmentLayer, legacyMaskOf, legacyView, levelsValue, linearSrgbToXy, linearToSrgb, liveShapeForDrag, loadImageEditorDocument, maskSummary, mixerLoadResult, moveCurvePoint, moveSmartFilter, mulMatrix3, needsLegacyBase, neutralHueRange, newContentsId, normalizeAdjustmentLayer, normalizeAdjustmentLayers, normalizePlacement, normalizeProcessVersion, normalizeSmartFilter, offsetSmartObject, openPsdFile, parseAdjustmentBlock, parseCssColor, parseLfx2, parseLrfx, parsePatternBlock, parseVersionedDescriptor, photoFilterMatrix, placeContents, placementAt, placementBounds, placementGeometry, pointerPressure, posterizeValue, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdPatternToEffectPattern, quickMaskPixels, rangeLightness, rasterContents, rasterMaskFromLegacy, rasterizeCoverage, rasterizeSmartObject, readAdjustmentControls, removeAlpha, removeCurvePoint, removeSmartFilter, renderLayeredBase, renderSmartObject, replaceContents, requireSmartObject, rerender, resolveMosaicRegionBounds, rgbToGray, rgbToHsl, rgbUnitToHex, runLayerMenuAction, sampleLut, sampleToneLut, selectionModeFromModifiers, selectionOutline, setControlPath, setSmartFilterMask, setSmartFiltersEnabled, setSmartPlacement, smartFilterRows, splitOverlayAnnotations, srgbToLinear, sumHistograms, tempTintToXy, temperatureToKelvin, toneCurve, toneLuts, typeLayerAt, updateSmartFilter, uvToXy, versionedDescriptorBytes, vibranceLinear, vibrancePixel, wbMatrix, whiteBalanceFromSample, whiteBalanceMatrix, withFilterMaskSurface, writeAdjustmentBlock, writeLfx2, writePatternBlock, xyToTempTint, xyToUv };
|