@pixerate/editor 0.112.0 → 0.113.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 +6 -0
- package/dist/chunk-4KLT7ZYS.cjs +781 -0
- package/dist/chunk-4KLT7ZYS.cjs.map +1 -0
- package/dist/chunk-LPYOIVLA.js +781 -0
- package/dist/chunk-LPYOIVLA.js.map +1 -0
- package/dist/{export-DBba-buV.d.cts → export-CEXEzqBf.d.cts} +111 -6
- package/dist/{export-DNu_Jr8p.d.ts → export-DIkoK8-r.d.ts} +111 -6
- package/dist/image-editor/index.cjs +872 -285
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +77 -9
- package/dist/image-editor/index.d.ts +77 -9
- package/dist/image-editor/index.js +654 -67
- package/dist/image-editor/index.js.map +1 -1
- package/dist/paint/index.cjs +61 -2
- package/dist/paint/index.cjs.map +1 -1
- package/dist/paint/index.d.cts +29 -2
- package/dist/paint/index.d.ts +29 -2
- package/dist/paint/index.js +60 -1
- package/dist/paint-editor/index.d.cts +3 -3
- package/dist/paint-editor/index.d.ts +3 -3
- package/dist/{blending-DXl06NSx.d.ts → retouch-BXmeSCaB.d.ts} +218 -1
- package/dist/{blending-aOE6Y3UE.d.cts → retouch-CEIKR22W.d.cts} +218 -1
- package/package.json +1 -1
- package/skills/pixerate-image-editor/SKILL.md +30 -6
- package/skills/pixerate-image-editor/references/retouching.md +36 -0
- package/skills/pixerate-vector/SKILL.md +102 -5
- package/dist/chunk-FTBZPI77.cjs +0 -1
- package/dist/chunk-FTBZPI77.cjs.map +0 -1
- package/dist/chunk-VKK5VS2T.js +0 -1
- package/dist/chunk-VKK5VS2T.js.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 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-
|
|
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
|
|
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-CEXEzqBf.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 CloneSource, ag as ColorBalanceParams, ah as ColorBalanceTone, ai as ColorRangeOptions, aj as ColorRangeSample, ak as CreateAnnotationPayload, al as CropHandle, am as CurvesParams, an as DEFAULT_ADJUSTMENTS, ao as DEFAULT_AUTO_LEADING, ap as DEFAULT_DEPTH_MASK, aq as DEFAULT_MITER_LIMIT, ar as DEFAULT_REFINE_EDGE_PARAMS, as as DEFAULT_TEXT_STYLE, at as DEFAULT_TRANSFORM, au as DeserializeContext, av as DevelopSettings, aw as EMPTY_DISTANCE, ax as ExportOptions, ay as FREE_TRANSFORM_CONTENTS, az as FREE_TRANSFORM_MODES, aA as FillOptions, aB as FreeTransformContent, aC as FreeTransformHost, aD as FreeTransformPreview, aE as GUIDED_FILTER_EPS, aF as GroupLayer, aG as HISTOGRAM_BINS, aH as HistogramChannel, aI as HistoryEntryHandle, aJ as HueSaturationParams, aK as IMAGE_EDITOR_SCHEMA_VERSION, aL as ImageAnnotation, aM as ImageDimensions, aN as ImageEditorAIHooks, I as ImageEditorAssetStore, aO as ImageEditorFit, aP as ImageEditorOptions, aQ as ImageEditorRenderer, aR as ImageEditorState, aS as ImageEditorTool, aT as ImageLayerType, aU as InpaintHook, aV as InpaintOptions, aW as InvertParams, aX as LAYERED_SCHEMA_VERSION, aY as LIVE_SHAPE_KINDS, aZ as LaidChar, a_ as LaidFragment, a$ as LaidLine, b0 as LayerBase, b1 as LayerBlendMode, b2 as LayerFilterKind, b3 as LayerLocation, b4 as LayerMaskProps, b5 as LayerOperationError, b6 as LayerProperties, b7 as LayerSourcesHost, b8 as LayerTarget, b9 as LegacySerializedImageEditorState, ba as LevelsParams, bb as LineAnnotation, bc as LiveShape, bd as MagicWandOptions, be as MixerStrokeInit, bf as PARAGRAPH_STYLE_FIELDS, bg as PSD_BLEND_KEYS, bh as PaintOptions, bi as PaintStrokeResult, bj as PaintStrokeSession, bk as ParagraphRun, bl as PenAnnotation, bm as PhotoFilterParams, bn as PixelBuffer, bo as PixelLayerInit, bp as PosterizeParams, bq as PsdChannel, br as PsdExportInput, P as PsdExportResult, bs as PsdFile, bt as PsdHeader, bu as PsdImportOptions, bv as PsdImportResult, bw as PsdLayerMask, bx as PsdLayerRecord, by as PsdLayerSummary, bz as PsdRect, bA as PsdResource, bB as PsdSmartFilter, bC as PsdTaggedBlock, bD as PsdTreeNode, bE as RETOUCH_TOOLS, bF as RectAnnotation, bG as RemoveBackgroundHook, bH as RemoveBackgroundOptions, bI as RenderOptions, bJ as RetouchStrokeInit, bK as RetouchTool, bL as SELECTION_MODES, bM as SELECTION_MODIFY_OPS, bN as SHAPE_OPERATIONS, bO as SHAPE_RENDER_MARGIN, bP as SampleOptions, bQ as SelectionChannel, bR as SelectionCommandOptions, bS as SelectionModifyOp, bT as SerializeContext, bU as SerializedAdjustmentLayer, bV as SerializedAnnotationLayer, bW as SerializedGroupLayer, S as SerializedLayer, bX as SerializedLayerEffects, bY as SerializedLayeredImageEditorState, bZ as SerializedPattern, b_ as SerializedPixelLayer, b$ as SerializedRasterMask, c0 as SerializedSelection, c1 as SerializedShapeLayer, c2 as SerializedSmartContents, c3 as SerializedSmartFilter, c4 as SerializedSmartObjectLayer, c5 as SerializedTypeLayer, c6 as ShapeArrowhead, c7 as ShapeComponent, c8 as ShapeEnv, c9 as ShapeFillRule, ca as ShapeGeometryInput, cb as ShapeLayerData, cc as ShapeLayerInfo, cd as ShapeLayerInit, ce as ShapeLineCap, cf as ShapeLineJoin, cg as ShapeOperation, ch as ShapePaint, ci as ShapePsdData, cj as ShapeSelectionOptions, ck as ShapeStroke, cl as ShapeStrokeAlign, cm as ShapeStrokeInput, cn as SmartFilterKind, co as SmartObjectInfo, cp as SmartPsdData, cq as StrokeInit, cr as StrokeTool, cs as TEXT_ALIGNS, ct as TEXT_RENDER_MARGIN, cu as TEXT_STYLE_FIELDS, cv as TONE_RANGE_PRESETS, cw as TRANSFORM_ANCHORS, cx as TextAnnotation, cy as TextLayerInit, cz as TextLayout, cA as TextRun, cB as ThresholdParams, cC as ToneRangePreset, cD as TransformParams, cE as TransformReadout, cF as TypeLayerData, cG as TypePsdData, cH as VibranceParams, cI as ViewportMetrics, cJ as addLayerEffect, cK as addLayerFilter, cL as adjustmentNodeAsLayer, cM as anchorPoint, cN as annotationBlend, cO as annotationOfShape, cP as annotationOfType, cQ as applyImageProjectionToContext, cR as applyParams, cS as blurFilter, cT as borderCoverage, cU as boxMean, cV as boxPointOf, cW as buildLayerMaskPlanes, cX as calculateCropDrag, cY as canvasToImagePoint, cZ as caretAt, c_ as clampCropToImage, c$ as colorRange, d0 as combineSelections, d1 as componentPath, d2 as computeHistogram, d3 as computeSelectionBounds, d4 as contractCoverage, d5 as cornersFromMatrix, d6 as coverageToByte, d7 as createSelectionMask, d8 as createShapeLayer, d9 as createTypeLayer, da as decodeLayerChannel, db as decodeLayerMask, dc as decodeMergedImage, dd as decodePngDataUrl, de as decodeSelectionRle, df as defaultShapeName, dg as depthMaskAlpha, dh as describeTransform, di as deserializeEffects, dj as deserializeLayer, dk as deserializeLayers, dl as deserializePatterns, dm as deserializeSelection, dn as developFilter, dp as distanceTransform, dq as duplicateLayer, dr as edgeWidth, ds as ellipsePoints, dt as ellipseSelection, du as encodeSelectionRle, dv as encodeSurface, dw as expandCoverage, dx as exportPsd, dy as featherCoverage, dz as fitParagraphRuns, dA as fitRuns, dB as flipCorners, dC as fontOf, dD as fullSelection, dE as geometryHomography, dF as getAnnotationBounds, dG as getCropCursor, dH as getRotatedSize, dI as getViewportMetrics, dJ as getViewportProjection, dK as globalImageCache, dL as greyMorphology, dM as groupLayers, dN as guidePlanes, dO as guidedFilterColor, dP as hasSurface, dQ as hasWarp, dR as hashMaskContent, dS as histogramPath, dT as hitTestAnnotation, dU as hitTestCrop, dV as hueRange, dW as identityTransform, dX as imageToCanvasPoint, dY as importPsd, dZ as invertSelection, d_ as isActiveFilter, d$ as isIdentityTransform, e0 as isQuarterTurnSwapped, e1 as isRenderedLayer, e2 as isRetouchTool, e3 as isSelectionEmpty, e4 as isSelectionMode, e5 as isSpatialFilter, e6 as isTransformAnchor, e7 as isValidWarp, e8 as layerEffectsOf, e9 as layerMaskCoverage, ea as layerMaskFromSelection, eb as layerMaskKey, ec as layerName, ed as layerTree, ee as layerTypeLabel, ef as layoutText, eg as liveComponent, eh as liveShapeSubpaths, ei as magicWand, ej as mapCropHandle, ek as mapSubpaths, el as matrixFromCorners, em as matrixFromParams, en as mergeShapeComponents, eo as migrateSerializedImageEditorState, ep as migrateToLayeredState, eq as modifySelection, er as moveLayer, es as newLayerId, et as normalizeAngle, eu as normalizeFilter, ev as normalizeLayerMask, ew as normalizeLiveShape, ex as normalizeRect, ey as normalizeRefineEdgeParams, ez as normalizeShapePaint, eA as normalizeShapeStroke, eB as normalizeStoredAdjustments, eC as normalizeSubpaths, eD as normalizeText, eE as offsetLayer, eF as offsetShape, eG as paragraphRanges, eH as parseBlend, eI as parseColor, eJ as parseSelectionMode, eK as patchParagraphStyle, eL as patchTextStyle, eM as pixelLayerBounds, eN as pixelLayers, eO as placeLayer, eP as polygonCoverage, eQ as polygonSelection, eR as presetWarp, eS as previewStep, eT as projectImagePoint, eU as projectImageRect, eV as projectMaskCoverage, eW as psdToLayers, eX as readPsd, eY as rectSelection, eZ as referencePoint, e_ as refineCoverage, e$ as refineEdgeHalo, f0 as refineSelection, f1 as removeLayer, f2 as removeLayerEffect, f3 as removeLayerFilter, f4 as renderShape, f5 as renderShapeRect, f6 as renderText, f7 as replaceTextRange, f8 as requireLayer, f9 as requireOperation, fa as requireShapeLayer, fb as requireTypeLayer, fc as requireUnlocked, fd as rerenderShape, fe as rerenderText, ff as resizePixels, fg as resizeSelection, fh as resolveExternalAssets, fi as restyleRange, fj as runLayerFilters, fk as selectionArea, fl as selectionFromCoverage, fm as selectionFromPixels, fn as selectionToCoverage, fo as selectionToPixels, fp as selectionValueAt, fq as serializeContents, fr as serializeEffects, fs as serializeLayer, ft as serializeLayers, fu as serializeLayersExternal, fv as serializePatterns, fw as serializeSelection, fx as setLayerEffects, fy as setLayerEffectsEnabled, fz as setLayerMask, fA as setLayerProperties, fB as shapeAsPixelLayer, fC as shapeFromAnnotation, fD as shapeGeometryBounds, fE as shapeLayers, fF as shapeOutline, fG as shapeRenderClip, fH as shiftCoverage, fI as smartObjectLayers, fJ as smoothCoverage, fK as spliceRuns, fL as srgb8ToLab, fM as styleAt, fN as textIndexAt, fO as textMatrix, fP as textOutlines, fQ as textRange, fR as toHex, fS as toTextSpace, fT as toneRange, fU as transformHomography, fV as transformMap, fW as transformShapeComponents, fX as transformTypeLayer, fY as transformedBox, fZ as transformedPoint, f_ as typeAsPixelLayer, f$ as typeFrame, g0 as typeFromAnnotation, g1 as typeLayerName, g2 as ungroupLayer, g3 as unionRect, g4 as unprojectCanvasPoint, g5 as updateLayerEffect, g6 as updateLayerFilter, g7 as updateLayerMaskProps, g8 as updateShapeLayer, g9 as updateTypeLayer, ga as withNewIds, gb as writePsd } from '../export-CEXEzqBf.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';
|
|
@@ -9,9 +9,9 @@ export { B as BevelContour, o as BevelEmbossEffect, p as BevelStyle, q as BevelT
|
|
|
9
9
|
import { b as CaptureSurface } from '../capture-DFEMFmVt.cjs';
|
|
10
10
|
export { DIRECT_GAUSSIAN_MAX_SIGMA, DecodedPng, ZlibError, adler32, base64ToBytes, bytesToBase64, curveLut, decodePng, deflate, deflateRaw, encodePng, gaussianBlur, inflate, inflateRaw, isPng, parseDataUrl, pngDataUrl } from '../raster/index.cjs';
|
|
11
11
|
import { B as BezierPath } from '../bezier-BfwIbVTl.cjs';
|
|
12
|
-
import { d as MixerLoad, M as MixerSettings } from '../
|
|
13
|
-
export {
|
|
14
|
-
export { createPigmentTools } from '../paint/index.cjs';
|
|
12
|
+
import { d as MixerLoad, M as MixerSettings } from '../retouch-CEIKR22W.cjs';
|
|
13
|
+
export { m as BlenderScratch, b as BlenderSettings, B as BrushSettings, C as CoverageMap, n as DEFAULT_BLENDER, o as DEFAULT_BRUSH, p as DEFAULT_MIXER, q as DEFAULT_RETOUCH, r as DEFAULT_SMUDGE, D as Dab, s as DabWalker, E as EMPTY_MIXER_LOAD, t as ExchangeRates, e as MAX_BRUSH_SIZE, u as MIXER_DRAIN, v as MIXER_PICKUP_RATE, w as MIXING_MODELS, i as MixerStroke, h as MixerTarget, a as MixingModel, x as PaintExchange, y as PaintMedium, z as PaintSample, P as PaintTileTarget, A as PixelSource, F as RETOUCH_SAMPLES, G as RegionPixelSource, j as RetouchApply, H as RetouchDabEffect, I as RetouchDabStroke, k as RetouchPaint, J as RetouchSample, f as RetouchSettings, R as RgbTriple, K as SPOT_HEAL_TYPES, L as SmudgeDab, S as SmudgeSettings, N as SmudgeTip, O as SpotHealType, l as StrokeApply, g as StrokeCoverage, c as StrokePoint, T as TONE_RANGES, Q as TileMedium, U as TileMediumOptions, V as TilePixelSource, W as ToneRange, X as applyRetouchToTile, Y as applyStrokeToTile, Z as blendRadius, _ as blenderDab, $ as cleanMixer, a0 as coverageTileCoord, a1 as createBlenderScratch, a2 as dabCoverage, a3 as dabRect, a4 as dodgeBurn, a5 as dodgeBurnCurve, a6 as exchangeRates, a7 as healPixels, a8 as loadMixer, a9 as luma, aa as mixerRates, ab as normalizeBlender, ac as normalizeBrush, ad as normalizeMixer, ae as normalizeRetouch, af as normalizeSmudge, ag as perDabStrength, ah as rasterizeDab, ai as readSourceRegion, aj as rgbaViewOfGrey, ak as saturationOf, al as smoothPoints, am as smudgeEffect, an as sponge, ao as spongeEffect, ap as spotHealPixels, aq as spotHealWindow, ar as tipFalloff, as as tipReach, at as tipShape, au as toneOf, av as walkDabs } from '../retouch-CEIKR22W.cjs';
|
|
14
|
+
export { bestOffset, createPigmentTools, dilateMask, maskBounds, membraneFill, seamlessClone, solveMembrane } from '../paint/index.cjs';
|
|
15
15
|
import { W as WarpStyle, a as WarpMesh, V as Vec2, Q as Quad } from '../types-CwMPoRMU.cjs';
|
|
16
16
|
export { A as AffineMatrix, H as Homography } from '../types-CwMPoRMU.cjs';
|
|
17
17
|
export { a as applyHomography, c as boxQuad, d as homographyFromAffine, h as homographyFromPoints, i as invertHomography, r as rectToQuad } from '../homography-CZ-tFjay.cjs';
|
|
@@ -498,6 +498,8 @@ interface ImageEditorToolProviderOptions {
|
|
|
498
498
|
* `createImageShapeTools`); `rasterize_layer` turns one into pixels.
|
|
499
499
|
* - Type layers: `list_fonts`, `get_text_layer`, `add_text_layer`, `set_text`, `set_text_style`,
|
|
500
500
|
* `set_paragraph_style`, `set_text_frame`, `convert_text_to_shape` (see `createImageTypeTools`).
|
|
501
|
+
* - Retouching: `clone_stamp`, `heal_brush`, `spot_heal`, `smudge`, `dodge`, `burn`, `sponge`,
|
|
502
|
+
* `get_retouch_options`, `set_retouch_options`, `set_clone_source` (see `createImageRetouchTools`).
|
|
501
503
|
*/
|
|
502
504
|
declare function createImageEditorToolProvider(controller: ImageEditorController, options?: ImageEditorToolProviderOptions): AgentToolProvider;
|
|
503
505
|
|
|
@@ -1516,11 +1518,19 @@ declare function mixerLoadResult(load: MixerLoad): {
|
|
|
1516
1518
|
*/
|
|
1517
1519
|
declare function createImagePaintTools(controller: ImageEditorController): AgentTool[];
|
|
1518
1520
|
|
|
1521
|
+
/**
|
|
1522
|
+
* Agent tools for the retouching tools, one per tool: `clone_stamp`, `heal_brush`, `spot_heal`,
|
|
1523
|
+
* `smudge`, `dodge`, `burn` and `sponge` (each one stroke, one undo step, returning the layer,
|
|
1524
|
+
* channel, changed bounds and dab count), plus the view state they share: `get_retouch_options`,
|
|
1525
|
+
* `set_retouch_options` and `set_clone_source`.
|
|
1526
|
+
*/
|
|
1527
|
+
declare function createImageRetouchTools(controller: ImageEditorController): AgentTool[];
|
|
1528
|
+
|
|
1519
1529
|
/**
|
|
1520
1530
|
* The paint tools' view model, shared by the React and Svelte editors: the brush options bar's
|
|
1521
|
-
* controls, Photoshop's shortcuts (B, Shift+B, E, V,
|
|
1522
|
-
* pointer gesture that turns pointer events into strokes (Brush, Mixer
|
|
1523
|
-
* moves (Move).
|
|
1531
|
+
* controls, Photoshop's shortcuts (B, Shift+B, E, V, S, J, Shift+J, O, Shift+O, [ ], Shift+[ ],
|
|
1532
|
+
* number keys, D, X) and a pointer gesture that turns pointer events into strokes (Brush, Mixer
|
|
1533
|
+
* Brush, Eraser and the retouching tools; Alt-click sets the clone source) or layer moves (Move).
|
|
1524
1534
|
*/
|
|
1525
1535
|
|
|
1526
1536
|
/** Controls of the brush options bar (`hardness`, `opacity`, `flow`, `smoothing` shown in %). */
|
|
@@ -1554,9 +1564,65 @@ declare const PAINT_TOOLS: readonly [{
|
|
|
1554
1564
|
readonly id: "eraser";
|
|
1555
1565
|
readonly label: "Eraser";
|
|
1556
1566
|
readonly shortcut: "E";
|
|
1567
|
+
}, {
|
|
1568
|
+
readonly id: "clone";
|
|
1569
|
+
readonly label: "Clone";
|
|
1570
|
+
readonly shortcut: "S";
|
|
1571
|
+
}, {
|
|
1572
|
+
readonly id: "heal";
|
|
1573
|
+
readonly label: "Heal";
|
|
1574
|
+
readonly shortcut: "Shift+J";
|
|
1575
|
+
}, {
|
|
1576
|
+
readonly id: "spot-heal";
|
|
1577
|
+
readonly label: "Spot Heal";
|
|
1578
|
+
readonly shortcut: "J";
|
|
1579
|
+
}, {
|
|
1580
|
+
readonly id: "smudge";
|
|
1581
|
+
readonly label: "Smudge";
|
|
1582
|
+
readonly shortcut: "";
|
|
1583
|
+
}, {
|
|
1584
|
+
readonly id: "dodge";
|
|
1585
|
+
readonly label: "Dodge";
|
|
1586
|
+
readonly shortcut: "O";
|
|
1587
|
+
}, {
|
|
1588
|
+
readonly id: "burn";
|
|
1589
|
+
readonly label: "Burn";
|
|
1590
|
+
readonly shortcut: "Shift+O";
|
|
1591
|
+
}, {
|
|
1592
|
+
readonly id: "sponge";
|
|
1593
|
+
readonly label: "Sponge";
|
|
1594
|
+
readonly shortcut: "Shift+O";
|
|
1557
1595
|
}];
|
|
1558
1596
|
type PaintTool = (typeof PAINT_TOOLS)[number]['id'];
|
|
1559
1597
|
declare const isPaintTool: (tool: string) => tool is PaintTool;
|
|
1598
|
+
/** The paint tools that retouch (their options show instead of the brush colours). */
|
|
1599
|
+
declare const isRetouchPaintTool: (tool: string) => boolean;
|
|
1600
|
+
/** Retouch sliders: dodge / burn exposure and smudge strength (shown in %). */
|
|
1601
|
+
declare const RETOUCH_OPTION_CONTROLS: readonly (ControlSpec & {
|
|
1602
|
+
id: 'exposure' | 'strength';
|
|
1603
|
+
tools: readonly PaintTool[];
|
|
1604
|
+
})[];
|
|
1605
|
+
/** Retouch choices, each a row of toggle buttons, with the tools that show it. */
|
|
1606
|
+
declare const RETOUCH_CHOICES: readonly {
|
|
1607
|
+
id: 'sample' | 'spotType' | 'range' | 'spongeMode';
|
|
1608
|
+
label: string;
|
|
1609
|
+
tools: readonly PaintTool[];
|
|
1610
|
+
options: readonly {
|
|
1611
|
+
id: string;
|
|
1612
|
+
label: string;
|
|
1613
|
+
title: string;
|
|
1614
|
+
}[];
|
|
1615
|
+
}[];
|
|
1616
|
+
/** Retouch on / off options, with the tools that show each. */
|
|
1617
|
+
declare const RETOUCH_TOGGLES: readonly {
|
|
1618
|
+
id: 'aligned' | 'protectTones' | 'vibrance';
|
|
1619
|
+
label: string;
|
|
1620
|
+
tools: readonly PaintTool[];
|
|
1621
|
+
}[];
|
|
1622
|
+
/** Sets one retouch choice from the options bar. */
|
|
1623
|
+
declare function setRetouchChoice(controller: ImageEditorController, id: (typeof RETOUCH_CHOICES)[number]['id'], value: string): void;
|
|
1624
|
+
/** What the options bar says about the clone source. */
|
|
1625
|
+
declare function cloneSourceLabel(controller: ImageEditorController): string;
|
|
1560
1626
|
/** `#rrggbb` of an sRGB triple (0..1), e.g. the Mixer Brush's reservoir. */
|
|
1561
1627
|
declare function rgbUnitToHex(c: readonly [number, number, number]): string;
|
|
1562
1628
|
interface ShortcutEvent {
|
|
@@ -1578,6 +1644,8 @@ declare function handlePaintShortcut(controller: ImageEditorController, e: Short
|
|
|
1578
1644
|
interface PaintPointerSample extends ImagePoint {
|
|
1579
1645
|
/** 0..1; a mouse is 1. */
|
|
1580
1646
|
pressure: number;
|
|
1647
|
+
/** Alt (Option) held on the press: with the Clone Stamp or Healing Brush it sets the source. */
|
|
1648
|
+
altKey?: boolean;
|
|
1581
1649
|
}
|
|
1582
1650
|
/** Pressure of a pointer event: pens report it; mice report 0.5 while pressed, which means "full". */
|
|
1583
1651
|
declare function pointerPressure(e: {
|
|
@@ -2042,4 +2110,4 @@ declare class FreeTransformTool {
|
|
|
2042
2110
|
key(e: ShortcutEvent): boolean;
|
|
2043
2111
|
}
|
|
2044
2112
|
|
|
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 };
|
|
2113
|
+
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, RETOUCH_CHOICES, RETOUCH_OPTION_CONTROLS, RETOUCH_TOGGLES, 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, cloneSourceLabel, colorBalanceChannel, compileAdjustmentLayer, contentsBox, contentsSurface, controlPosition, controlTrackBackground, convertToSmartObject, copySmartObject, coveringRect, createAdjustmentLayer, createCanvasTextShaper, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageRetouchTools, 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, isRetouchPaintTool, 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, setRetouchChoice, 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 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-
|
|
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
|
|
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-DIkoK8-r.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 CloneSource, ag as ColorBalanceParams, ah as ColorBalanceTone, ai as ColorRangeOptions, aj as ColorRangeSample, ak as CreateAnnotationPayload, al as CropHandle, am as CurvesParams, an as DEFAULT_ADJUSTMENTS, ao as DEFAULT_AUTO_LEADING, ap as DEFAULT_DEPTH_MASK, aq as DEFAULT_MITER_LIMIT, ar as DEFAULT_REFINE_EDGE_PARAMS, as as DEFAULT_TEXT_STYLE, at as DEFAULT_TRANSFORM, au as DeserializeContext, av as DevelopSettings, aw as EMPTY_DISTANCE, ax as ExportOptions, ay as FREE_TRANSFORM_CONTENTS, az as FREE_TRANSFORM_MODES, aA as FillOptions, aB as FreeTransformContent, aC as FreeTransformHost, aD as FreeTransformPreview, aE as GUIDED_FILTER_EPS, aF as GroupLayer, aG as HISTOGRAM_BINS, aH as HistogramChannel, aI as HistoryEntryHandle, aJ as HueSaturationParams, aK as IMAGE_EDITOR_SCHEMA_VERSION, aL as ImageAnnotation, aM as ImageDimensions, aN as ImageEditorAIHooks, I as ImageEditorAssetStore, aO as ImageEditorFit, aP as ImageEditorOptions, aQ as ImageEditorRenderer, aR as ImageEditorState, aS as ImageEditorTool, aT as ImageLayerType, aU as InpaintHook, aV as InpaintOptions, aW as InvertParams, aX as LAYERED_SCHEMA_VERSION, aY as LIVE_SHAPE_KINDS, aZ as LaidChar, a_ as LaidFragment, a$ as LaidLine, b0 as LayerBase, b1 as LayerBlendMode, b2 as LayerFilterKind, b3 as LayerLocation, b4 as LayerMaskProps, b5 as LayerOperationError, b6 as LayerProperties, b7 as LayerSourcesHost, b8 as LayerTarget, b9 as LegacySerializedImageEditorState, ba as LevelsParams, bb as LineAnnotation, bc as LiveShape, bd as MagicWandOptions, be as MixerStrokeInit, bf as PARAGRAPH_STYLE_FIELDS, bg as PSD_BLEND_KEYS, bh as PaintOptions, bi as PaintStrokeResult, bj as PaintStrokeSession, bk as ParagraphRun, bl as PenAnnotation, bm as PhotoFilterParams, bn as PixelBuffer, bo as PixelLayerInit, bp as PosterizeParams, bq as PsdChannel, br as PsdExportInput, P as PsdExportResult, bs as PsdFile, bt as PsdHeader, bu as PsdImportOptions, bv as PsdImportResult, bw as PsdLayerMask, bx as PsdLayerRecord, by as PsdLayerSummary, bz as PsdRect, bA as PsdResource, bB as PsdSmartFilter, bC as PsdTaggedBlock, bD as PsdTreeNode, bE as RETOUCH_TOOLS, bF as RectAnnotation, bG as RemoveBackgroundHook, bH as RemoveBackgroundOptions, bI as RenderOptions, bJ as RetouchStrokeInit, bK as RetouchTool, bL as SELECTION_MODES, bM as SELECTION_MODIFY_OPS, bN as SHAPE_OPERATIONS, bO as SHAPE_RENDER_MARGIN, bP as SampleOptions, bQ as SelectionChannel, bR as SelectionCommandOptions, bS as SelectionModifyOp, bT as SerializeContext, bU as SerializedAdjustmentLayer, bV as SerializedAnnotationLayer, bW as SerializedGroupLayer, S as SerializedLayer, bX as SerializedLayerEffects, bY as SerializedLayeredImageEditorState, bZ as SerializedPattern, b_ as SerializedPixelLayer, b$ as SerializedRasterMask, c0 as SerializedSelection, c1 as SerializedShapeLayer, c2 as SerializedSmartContents, c3 as SerializedSmartFilter, c4 as SerializedSmartObjectLayer, c5 as SerializedTypeLayer, c6 as ShapeArrowhead, c7 as ShapeComponent, c8 as ShapeEnv, c9 as ShapeFillRule, ca as ShapeGeometryInput, cb as ShapeLayerData, cc as ShapeLayerInfo, cd as ShapeLayerInit, ce as ShapeLineCap, cf as ShapeLineJoin, cg as ShapeOperation, ch as ShapePaint, ci as ShapePsdData, cj as ShapeSelectionOptions, ck as ShapeStroke, cl as ShapeStrokeAlign, cm as ShapeStrokeInput, cn as SmartFilterKind, co as SmartObjectInfo, cp as SmartPsdData, cq as StrokeInit, cr as StrokeTool, cs as TEXT_ALIGNS, ct as TEXT_RENDER_MARGIN, cu as TEXT_STYLE_FIELDS, cv as TONE_RANGE_PRESETS, cw as TRANSFORM_ANCHORS, cx as TextAnnotation, cy as TextLayerInit, cz as TextLayout, cA as TextRun, cB as ThresholdParams, cC as ToneRangePreset, cD as TransformParams, cE as TransformReadout, cF as TypeLayerData, cG as TypePsdData, cH as VibranceParams, cI as ViewportMetrics, cJ as addLayerEffect, cK as addLayerFilter, cL as adjustmentNodeAsLayer, cM as anchorPoint, cN as annotationBlend, cO as annotationOfShape, cP as annotationOfType, cQ as applyImageProjectionToContext, cR as applyParams, cS as blurFilter, cT as borderCoverage, cU as boxMean, cV as boxPointOf, cW as buildLayerMaskPlanes, cX as calculateCropDrag, cY as canvasToImagePoint, cZ as caretAt, c_ as clampCropToImage, c$ as colorRange, d0 as combineSelections, d1 as componentPath, d2 as computeHistogram, d3 as computeSelectionBounds, d4 as contractCoverage, d5 as cornersFromMatrix, d6 as coverageToByte, d7 as createSelectionMask, d8 as createShapeLayer, d9 as createTypeLayer, da as decodeLayerChannel, db as decodeLayerMask, dc as decodeMergedImage, dd as decodePngDataUrl, de as decodeSelectionRle, df as defaultShapeName, dg as depthMaskAlpha, dh as describeTransform, di as deserializeEffects, dj as deserializeLayer, dk as deserializeLayers, dl as deserializePatterns, dm as deserializeSelection, dn as developFilter, dp as distanceTransform, dq as duplicateLayer, dr as edgeWidth, ds as ellipsePoints, dt as ellipseSelection, du as encodeSelectionRle, dv as encodeSurface, dw as expandCoverage, dx as exportPsd, dy as featherCoverage, dz as fitParagraphRuns, dA as fitRuns, dB as flipCorners, dC as fontOf, dD as fullSelection, dE as geometryHomography, dF as getAnnotationBounds, dG as getCropCursor, dH as getRotatedSize, dI as getViewportMetrics, dJ as getViewportProjection, dK as globalImageCache, dL as greyMorphology, dM as groupLayers, dN as guidePlanes, dO as guidedFilterColor, dP as hasSurface, dQ as hasWarp, dR as hashMaskContent, dS as histogramPath, dT as hitTestAnnotation, dU as hitTestCrop, dV as hueRange, dW as identityTransform, dX as imageToCanvasPoint, dY as importPsd, dZ as invertSelection, d_ as isActiveFilter, d$ as isIdentityTransform, e0 as isQuarterTurnSwapped, e1 as isRenderedLayer, e2 as isRetouchTool, e3 as isSelectionEmpty, e4 as isSelectionMode, e5 as isSpatialFilter, e6 as isTransformAnchor, e7 as isValidWarp, e8 as layerEffectsOf, e9 as layerMaskCoverage, ea as layerMaskFromSelection, eb as layerMaskKey, ec as layerName, ed as layerTree, ee as layerTypeLabel, ef as layoutText, eg as liveComponent, eh as liveShapeSubpaths, ei as magicWand, ej as mapCropHandle, ek as mapSubpaths, el as matrixFromCorners, em as matrixFromParams, en as mergeShapeComponents, eo as migrateSerializedImageEditorState, ep as migrateToLayeredState, eq as modifySelection, er as moveLayer, es as newLayerId, et as normalizeAngle, eu as normalizeFilter, ev as normalizeLayerMask, ew as normalizeLiveShape, ex as normalizeRect, ey as normalizeRefineEdgeParams, ez as normalizeShapePaint, eA as normalizeShapeStroke, eB as normalizeStoredAdjustments, eC as normalizeSubpaths, eD as normalizeText, eE as offsetLayer, eF as offsetShape, eG as paragraphRanges, eH as parseBlend, eI as parseColor, eJ as parseSelectionMode, eK as patchParagraphStyle, eL as patchTextStyle, eM as pixelLayerBounds, eN as pixelLayers, eO as placeLayer, eP as polygonCoverage, eQ as polygonSelection, eR as presetWarp, eS as previewStep, eT as projectImagePoint, eU as projectImageRect, eV as projectMaskCoverage, eW as psdToLayers, eX as readPsd, eY as rectSelection, eZ as referencePoint, e_ as refineCoverage, e$ as refineEdgeHalo, f0 as refineSelection, f1 as removeLayer, f2 as removeLayerEffect, f3 as removeLayerFilter, f4 as renderShape, f5 as renderShapeRect, f6 as renderText, f7 as replaceTextRange, f8 as requireLayer, f9 as requireOperation, fa as requireShapeLayer, fb as requireTypeLayer, fc as requireUnlocked, fd as rerenderShape, fe as rerenderText, ff as resizePixels, fg as resizeSelection, fh as resolveExternalAssets, fi as restyleRange, fj as runLayerFilters, fk as selectionArea, fl as selectionFromCoverage, fm as selectionFromPixels, fn as selectionToCoverage, fo as selectionToPixels, fp as selectionValueAt, fq as serializeContents, fr as serializeEffects, fs as serializeLayer, ft as serializeLayers, fu as serializeLayersExternal, fv as serializePatterns, fw as serializeSelection, fx as setLayerEffects, fy as setLayerEffectsEnabled, fz as setLayerMask, fA as setLayerProperties, fB as shapeAsPixelLayer, fC as shapeFromAnnotation, fD as shapeGeometryBounds, fE as shapeLayers, fF as shapeOutline, fG as shapeRenderClip, fH as shiftCoverage, fI as smartObjectLayers, fJ as smoothCoverage, fK as spliceRuns, fL as srgb8ToLab, fM as styleAt, fN as textIndexAt, fO as textMatrix, fP as textOutlines, fQ as textRange, fR as toHex, fS as toTextSpace, fT as toneRange, fU as transformHomography, fV as transformMap, fW as transformShapeComponents, fX as transformTypeLayer, fY as transformedBox, fZ as transformedPoint, f_ as typeAsPixelLayer, f$ as typeFrame, g0 as typeFromAnnotation, g1 as typeLayerName, g2 as ungroupLayer, g3 as unionRect, g4 as unprojectCanvasPoint, g5 as updateLayerEffect, g6 as updateLayerFilter, g7 as updateLayerMaskProps, g8 as updateShapeLayer, g9 as updateTypeLayer, ga as withNewIds, gb as writePsd } from '../export-DIkoK8-r.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';
|
|
@@ -9,9 +9,9 @@ export { B as BevelContour, o as BevelEmbossEffect, p as BevelStyle, q as BevelT
|
|
|
9
9
|
import { b as CaptureSurface } from '../capture-wwNGaW05.js';
|
|
10
10
|
export { DIRECT_GAUSSIAN_MAX_SIGMA, DecodedPng, ZlibError, adler32, base64ToBytes, bytesToBase64, curveLut, decodePng, deflate, deflateRaw, encodePng, gaussianBlur, inflate, inflateRaw, isPng, parseDataUrl, pngDataUrl } from '../raster/index.js';
|
|
11
11
|
import { B as BezierPath } from '../bezier-DYBvLgUH.js';
|
|
12
|
-
import { d as MixerLoad, M as MixerSettings } from '../
|
|
13
|
-
export {
|
|
14
|
-
export { createPigmentTools } from '../paint/index.js';
|
|
12
|
+
import { d as MixerLoad, M as MixerSettings } from '../retouch-BXmeSCaB.js';
|
|
13
|
+
export { m as BlenderScratch, b as BlenderSettings, B as BrushSettings, C as CoverageMap, n as DEFAULT_BLENDER, o as DEFAULT_BRUSH, p as DEFAULT_MIXER, q as DEFAULT_RETOUCH, r as DEFAULT_SMUDGE, D as Dab, s as DabWalker, E as EMPTY_MIXER_LOAD, t as ExchangeRates, e as MAX_BRUSH_SIZE, u as MIXER_DRAIN, v as MIXER_PICKUP_RATE, w as MIXING_MODELS, i as MixerStroke, h as MixerTarget, a as MixingModel, x as PaintExchange, y as PaintMedium, z as PaintSample, P as PaintTileTarget, A as PixelSource, F as RETOUCH_SAMPLES, G as RegionPixelSource, j as RetouchApply, H as RetouchDabEffect, I as RetouchDabStroke, k as RetouchPaint, J as RetouchSample, f as RetouchSettings, R as RgbTriple, K as SPOT_HEAL_TYPES, L as SmudgeDab, S as SmudgeSettings, N as SmudgeTip, O as SpotHealType, l as StrokeApply, g as StrokeCoverage, c as StrokePoint, T as TONE_RANGES, Q as TileMedium, U as TileMediumOptions, V as TilePixelSource, W as ToneRange, X as applyRetouchToTile, Y as applyStrokeToTile, Z as blendRadius, _ as blenderDab, $ as cleanMixer, a0 as coverageTileCoord, a1 as createBlenderScratch, a2 as dabCoverage, a3 as dabRect, a4 as dodgeBurn, a5 as dodgeBurnCurve, a6 as exchangeRates, a7 as healPixels, a8 as loadMixer, a9 as luma, aa as mixerRates, ab as normalizeBlender, ac as normalizeBrush, ad as normalizeMixer, ae as normalizeRetouch, af as normalizeSmudge, ag as perDabStrength, ah as rasterizeDab, ai as readSourceRegion, aj as rgbaViewOfGrey, ak as saturationOf, al as smoothPoints, am as smudgeEffect, an as sponge, ao as spongeEffect, ap as spotHealPixels, aq as spotHealWindow, ar as tipFalloff, as as tipReach, at as tipShape, au as toneOf, av as walkDabs } from '../retouch-BXmeSCaB.js';
|
|
14
|
+
export { bestOffset, createPigmentTools, dilateMask, maskBounds, membraneFill, seamlessClone, solveMembrane } from '../paint/index.js';
|
|
15
15
|
import { W as WarpStyle, a as WarpMesh, V as Vec2, Q as Quad } from '../types-CwMPoRMU.js';
|
|
16
16
|
export { A as AffineMatrix, H as Homography } from '../types-CwMPoRMU.js';
|
|
17
17
|
export { a as applyHomography, c as boxQuad, d as homographyFromAffine, h as homographyFromPoints, i as invertHomography, r as rectToQuad } from '../homography-Ctfjoc1b.js';
|
|
@@ -498,6 +498,8 @@ interface ImageEditorToolProviderOptions {
|
|
|
498
498
|
* `createImageShapeTools`); `rasterize_layer` turns one into pixels.
|
|
499
499
|
* - Type layers: `list_fonts`, `get_text_layer`, `add_text_layer`, `set_text`, `set_text_style`,
|
|
500
500
|
* `set_paragraph_style`, `set_text_frame`, `convert_text_to_shape` (see `createImageTypeTools`).
|
|
501
|
+
* - Retouching: `clone_stamp`, `heal_brush`, `spot_heal`, `smudge`, `dodge`, `burn`, `sponge`,
|
|
502
|
+
* `get_retouch_options`, `set_retouch_options`, `set_clone_source` (see `createImageRetouchTools`).
|
|
501
503
|
*/
|
|
502
504
|
declare function createImageEditorToolProvider(controller: ImageEditorController, options?: ImageEditorToolProviderOptions): AgentToolProvider;
|
|
503
505
|
|
|
@@ -1516,11 +1518,19 @@ declare function mixerLoadResult(load: MixerLoad): {
|
|
|
1516
1518
|
*/
|
|
1517
1519
|
declare function createImagePaintTools(controller: ImageEditorController): AgentTool[];
|
|
1518
1520
|
|
|
1521
|
+
/**
|
|
1522
|
+
* Agent tools for the retouching tools, one per tool: `clone_stamp`, `heal_brush`, `spot_heal`,
|
|
1523
|
+
* `smudge`, `dodge`, `burn` and `sponge` (each one stroke, one undo step, returning the layer,
|
|
1524
|
+
* channel, changed bounds and dab count), plus the view state they share: `get_retouch_options`,
|
|
1525
|
+
* `set_retouch_options` and `set_clone_source`.
|
|
1526
|
+
*/
|
|
1527
|
+
declare function createImageRetouchTools(controller: ImageEditorController): AgentTool[];
|
|
1528
|
+
|
|
1519
1529
|
/**
|
|
1520
1530
|
* The paint tools' view model, shared by the React and Svelte editors: the brush options bar's
|
|
1521
|
-
* controls, Photoshop's shortcuts (B, Shift+B, E, V,
|
|
1522
|
-
* pointer gesture that turns pointer events into strokes (Brush, Mixer
|
|
1523
|
-
* moves (Move).
|
|
1531
|
+
* controls, Photoshop's shortcuts (B, Shift+B, E, V, S, J, Shift+J, O, Shift+O, [ ], Shift+[ ],
|
|
1532
|
+
* number keys, D, X) and a pointer gesture that turns pointer events into strokes (Brush, Mixer
|
|
1533
|
+
* Brush, Eraser and the retouching tools; Alt-click sets the clone source) or layer moves (Move).
|
|
1524
1534
|
*/
|
|
1525
1535
|
|
|
1526
1536
|
/** Controls of the brush options bar (`hardness`, `opacity`, `flow`, `smoothing` shown in %). */
|
|
@@ -1554,9 +1564,65 @@ declare const PAINT_TOOLS: readonly [{
|
|
|
1554
1564
|
readonly id: "eraser";
|
|
1555
1565
|
readonly label: "Eraser";
|
|
1556
1566
|
readonly shortcut: "E";
|
|
1567
|
+
}, {
|
|
1568
|
+
readonly id: "clone";
|
|
1569
|
+
readonly label: "Clone";
|
|
1570
|
+
readonly shortcut: "S";
|
|
1571
|
+
}, {
|
|
1572
|
+
readonly id: "heal";
|
|
1573
|
+
readonly label: "Heal";
|
|
1574
|
+
readonly shortcut: "Shift+J";
|
|
1575
|
+
}, {
|
|
1576
|
+
readonly id: "spot-heal";
|
|
1577
|
+
readonly label: "Spot Heal";
|
|
1578
|
+
readonly shortcut: "J";
|
|
1579
|
+
}, {
|
|
1580
|
+
readonly id: "smudge";
|
|
1581
|
+
readonly label: "Smudge";
|
|
1582
|
+
readonly shortcut: "";
|
|
1583
|
+
}, {
|
|
1584
|
+
readonly id: "dodge";
|
|
1585
|
+
readonly label: "Dodge";
|
|
1586
|
+
readonly shortcut: "O";
|
|
1587
|
+
}, {
|
|
1588
|
+
readonly id: "burn";
|
|
1589
|
+
readonly label: "Burn";
|
|
1590
|
+
readonly shortcut: "Shift+O";
|
|
1591
|
+
}, {
|
|
1592
|
+
readonly id: "sponge";
|
|
1593
|
+
readonly label: "Sponge";
|
|
1594
|
+
readonly shortcut: "Shift+O";
|
|
1557
1595
|
}];
|
|
1558
1596
|
type PaintTool = (typeof PAINT_TOOLS)[number]['id'];
|
|
1559
1597
|
declare const isPaintTool: (tool: string) => tool is PaintTool;
|
|
1598
|
+
/** The paint tools that retouch (their options show instead of the brush colours). */
|
|
1599
|
+
declare const isRetouchPaintTool: (tool: string) => boolean;
|
|
1600
|
+
/** Retouch sliders: dodge / burn exposure and smudge strength (shown in %). */
|
|
1601
|
+
declare const RETOUCH_OPTION_CONTROLS: readonly (ControlSpec & {
|
|
1602
|
+
id: 'exposure' | 'strength';
|
|
1603
|
+
tools: readonly PaintTool[];
|
|
1604
|
+
})[];
|
|
1605
|
+
/** Retouch choices, each a row of toggle buttons, with the tools that show it. */
|
|
1606
|
+
declare const RETOUCH_CHOICES: readonly {
|
|
1607
|
+
id: 'sample' | 'spotType' | 'range' | 'spongeMode';
|
|
1608
|
+
label: string;
|
|
1609
|
+
tools: readonly PaintTool[];
|
|
1610
|
+
options: readonly {
|
|
1611
|
+
id: string;
|
|
1612
|
+
label: string;
|
|
1613
|
+
title: string;
|
|
1614
|
+
}[];
|
|
1615
|
+
}[];
|
|
1616
|
+
/** Retouch on / off options, with the tools that show each. */
|
|
1617
|
+
declare const RETOUCH_TOGGLES: readonly {
|
|
1618
|
+
id: 'aligned' | 'protectTones' | 'vibrance';
|
|
1619
|
+
label: string;
|
|
1620
|
+
tools: readonly PaintTool[];
|
|
1621
|
+
}[];
|
|
1622
|
+
/** Sets one retouch choice from the options bar. */
|
|
1623
|
+
declare function setRetouchChoice(controller: ImageEditorController, id: (typeof RETOUCH_CHOICES)[number]['id'], value: string): void;
|
|
1624
|
+
/** What the options bar says about the clone source. */
|
|
1625
|
+
declare function cloneSourceLabel(controller: ImageEditorController): string;
|
|
1560
1626
|
/** `#rrggbb` of an sRGB triple (0..1), e.g. the Mixer Brush's reservoir. */
|
|
1561
1627
|
declare function rgbUnitToHex(c: readonly [number, number, number]): string;
|
|
1562
1628
|
interface ShortcutEvent {
|
|
@@ -1578,6 +1644,8 @@ declare function handlePaintShortcut(controller: ImageEditorController, e: Short
|
|
|
1578
1644
|
interface PaintPointerSample extends ImagePoint {
|
|
1579
1645
|
/** 0..1; a mouse is 1. */
|
|
1580
1646
|
pressure: number;
|
|
1647
|
+
/** Alt (Option) held on the press: with the Clone Stamp or Healing Brush it sets the source. */
|
|
1648
|
+
altKey?: boolean;
|
|
1581
1649
|
}
|
|
1582
1650
|
/** Pressure of a pointer event: pens report it; mice report 0.5 while pressed, which means "full". */
|
|
1583
1651
|
declare function pointerPressure(e: {
|
|
@@ -2042,4 +2110,4 @@ declare class FreeTransformTool {
|
|
|
2042
2110
|
key(e: ShortcutEvent): boolean;
|
|
2043
2111
|
}
|
|
2044
2112
|
|
|
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 };
|
|
2113
|
+
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, RETOUCH_CHOICES, RETOUCH_OPTION_CONTROLS, RETOUCH_TOGGLES, 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, cloneSourceLabel, colorBalanceChannel, compileAdjustmentLayer, contentsBox, contentsSurface, controlPosition, controlTrackBackground, convertToSmartObject, copySmartObject, coveringRect, createAdjustmentLayer, createCanvasTextShaper, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageRetouchTools, 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, isRetouchPaintTool, 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, setRetouchChoice, 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 };
|