@pixerate/editor 0.111.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.
Files changed (38) hide show
  1. package/THIRD_PARTY_NOTICES.md +6 -0
  2. package/dist/chunk-4KLT7ZYS.cjs +781 -0
  3. package/dist/chunk-4KLT7ZYS.cjs.map +1 -0
  4. package/dist/{chunk-HHZ6ZJTW.js → chunk-CZOXTEMN.js} +1772 -456
  5. package/dist/chunk-CZOXTEMN.js.map +1 -0
  6. package/dist/chunk-LPYOIVLA.js +781 -0
  7. package/dist/chunk-LPYOIVLA.js.map +1 -0
  8. package/dist/{chunk-PHUMLSCW.cjs → chunk-YGIMK4NX.cjs} +1810 -494
  9. package/dist/chunk-YGIMK4NX.cjs.map +1 -0
  10. package/dist/{export-DoDhCszr.d.cts → export-CEXEzqBf.d.cts} +150 -18
  11. package/dist/{export-DBNVwb6h.d.ts → export-DIkoK8-r.d.ts} +150 -18
  12. package/dist/image-editor/index.cjs +1922 -788
  13. package/dist/image-editor/index.cjs.map +1 -1
  14. package/dist/image-editor/index.d.cts +233 -9
  15. package/dist/image-editor/index.d.ts +233 -9
  16. package/dist/image-editor/index.js +1208 -74
  17. package/dist/image-editor/index.js.map +1 -1
  18. package/dist/paint/index.cjs +61 -2
  19. package/dist/paint/index.cjs.map +1 -1
  20. package/dist/paint/index.d.cts +29 -2
  21. package/dist/paint/index.d.ts +29 -2
  22. package/dist/paint/index.js +60 -1
  23. package/dist/paint-editor/index.cjs +6 -6
  24. package/dist/paint-editor/index.d.cts +3 -3
  25. package/dist/paint-editor/index.d.ts +3 -3
  26. package/dist/paint-editor/index.js +1 -1
  27. package/dist/{blending-DXl06NSx.d.ts → retouch-BXmeSCaB.d.ts} +218 -1
  28. package/dist/{blending-aOE6Y3UE.d.cts → retouch-CEIKR22W.d.cts} +218 -1
  29. package/package.json +1 -1
  30. package/skills/pixerate-image-editor/SKILL.md +30 -6
  31. package/skills/pixerate-image-editor/references/retouching.md +36 -0
  32. package/skills/pixerate-vector/SKILL.md +102 -5
  33. package/dist/chunk-FTBZPI77.cjs +0 -1
  34. package/dist/chunk-FTBZPI77.cjs.map +0 -1
  35. package/dist/chunk-HHZ6ZJTW.js.map +0 -1
  36. package/dist/chunk-PHUMLSCW.cjs.map +0 -1
  37. package/dist/chunk-VKK5VS2T.js +0 -1
  38. 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 LayerPlacement, V as FreeTransformMode, W as FreeTransformResult, X as FreeTransformSession, Y as FreeTransformInit, Z as TransformAnchor } from '../export-DBNVwb6h.js';
2
- export { _ as AIResultOptions, $ as AdjustmentLayerBase, a0 as AdjustmentLayerInit, a1 as AdjustmentLayerUpdate, a2 as AnnotationPlacement, a3 as AnnotationType, a4 as ArrowAnnotation, a5 as AspectRatio, a6 as BaseAnnotation, a7 as BlackWhiteParams, a8 as BlurFilter, a9 as CircleAnnotation, aa as ColorBalanceParams, ab as ColorBalanceTone, ac as ColorRangeOptions, ad as ColorRangeSample, ae as CreateAnnotationPayload, af as CropHandle, ag as CurvesParams, ah as DEFAULT_ADJUSTMENTS, ai as DEFAULT_AUTO_LEADING, aj as DEFAULT_DEPTH_MASK, ak as DEFAULT_MITER_LIMIT, al as DEFAULT_REFINE_EDGE_PARAMS, am as DEFAULT_TEXT_STYLE, an as DEFAULT_TRANSFORM, ao as DeserializeContext, ap as DevelopSettings, aq as EMPTY_DISTANCE, ar as ExportOptions, as as FREE_TRANSFORM_CONTENTS, at as FREE_TRANSFORM_MODES, au as FillOptions, av as FreeTransformContent, aw as FreeTransformHost, ax as FreeTransformPreview, ay as GUIDED_FILTER_EPS, az as GroupLayer, aA as HISTOGRAM_BINS, aB as HistogramChannel, aC as HistoryEntryHandle, aD as HueSaturationParams, aE as IMAGE_EDITOR_SCHEMA_VERSION, aF as ImageAnnotation, aG as ImageDimensions, aH as ImageEditorAIHooks, I as ImageEditorAssetStore, aI as ImageEditorFit, aJ as ImageEditorOptions, aK as ImageEditorRenderer, aL as ImageEditorState, aM as ImageEditorTool, aN as ImageLayerType, aO as InpaintHook, aP as InpaintOptions, aQ as InvertParams, aR as LAYERED_SCHEMA_VERSION, aS as LIVE_SHAPE_KINDS, aT as LaidChar, aU as LaidFragment, aV as LaidLine, aW as LayerBase, aX as LayerBlendMode, aY as LayerFilterKind, aZ as LayerLocation, a_ as LayerMaskProps, a$ as LayerOperationError, b0 as LayerProperties, b1 as LayerSourcesHost, b2 as LayerTarget, b3 as LegacySerializedImageEditorState, b4 as LevelsParams, b5 as LineAnnotation, b6 as LiveShape, b7 as LiveShapeKind, b8 as MagicWandOptions, b9 as MixerStrokeInit, ba as PARAGRAPH_STYLE_FIELDS, bb as PSD_BLEND_KEYS, bc as PaintOptions, bd as PaintStrokeResult, be as PaintStrokeSession, bf as ParagraphRun, bg as ParagraphStyle, bh as PenAnnotation, bi as PhotoFilterParams, bj as PixelBuffer, bk as PixelLayerInit, bl as PosterizeParams, bm as PsdChannel, bn as PsdExportInput, P as PsdExportResult, bo as PsdFile, bp as PsdHeader, bq as PsdImportOptions, br as PsdImportResult, bs as PsdLayerMask, bt as PsdLayerRecord, bu as PsdLayerSummary, bv as PsdRect, bw as PsdResource, bx as PsdSmartFilter, by as PsdTaggedBlock, bz as PsdTreeNode, bA as RectAnnotation, bB as RemoveBackgroundHook, bC as RemoveBackgroundOptions, bD as RenderOptions, bE as SELECTION_MODES, bF as SELECTION_MODIFY_OPS, bG as SHAPE_OPERATIONS, bH as SHAPE_RENDER_MARGIN, bI as SampleOptions, bJ as SelectionChannel, bK as SelectionCommandOptions, bL as SelectionModifyOp, bM as SerializeContext, bN as SerializedAdjustmentLayer, bO as SerializedAnnotationLayer, bP as SerializedGroupLayer, S as SerializedLayer, bQ as SerializedLayerEffects, bR as SerializedLayeredImageEditorState, bS as SerializedPattern, bT as SerializedPixelLayer, bU as SerializedRasterMask, bV as SerializedSelection, bW as SerializedShapeLayer, bX as SerializedSmartContents, bY as SerializedSmartFilter, bZ as SerializedSmartObjectLayer, b_ as SerializedTypeLayer, b$ as ShapeArrowhead, c0 as ShapeComponent, c1 as ShapeEnv, c2 as ShapeFillRule, c3 as ShapeGeometryInput, c4 as ShapeLayerData, c5 as ShapeLayerInfo, c6 as ShapeLayerInit, c7 as ShapeLineCap, c8 as ShapeLineJoin, c9 as ShapeOperation, ca as ShapePaint, cb as ShapePsdData, cc as ShapeSelectionOptions, cd as ShapeStroke, ce as ShapeStrokeAlign, cf as SmartFilterKind, cg as SmartObjectInfo, ch as SmartPsdData, ci as StrokeInit, cj as StrokeTool, ck as TEXT_ALIGNS, cl as TEXT_RENDER_MARGIN, cm as TEXT_STYLE_FIELDS, cn as TONE_RANGE_PRESETS, co as TRANSFORM_ANCHORS, cp as TextAlign, cq as TextAnnotation, cr as TextLayerInit, cs as TextLayout, ct as TextRun, cu as TextStyle, cv as ThresholdParams, cw as ToneRangePreset, cx as TransformParams, cy as TransformReadout, cz as TypeLayerData, cA as TypeLayerInfo, cB as TypePsdData, cC as VibranceParams, cD as ViewportMetrics, cE as addLayerEffect, cF as addLayerFilter, cG as adjustmentNodeAsLayer, cH as anchorPoint, cI as annotationBlend, cJ as annotationOfShape, cK as annotationOfType, cL as applyImageProjectionToContext, cM as applyParams, cN as blurFilter, cO as borderCoverage, cP as boxMean, cQ as boxPointOf, cR as buildLayerMaskPlanes, cS as calculateCropDrag, cT as canvasToImagePoint, cU as caretAt, cV as clampCropToImage, cW as colorRange, cX as combineSelections, cY as componentPath, cZ as computeHistogram, c_ as computeSelectionBounds, c$ as contractCoverage, d0 as cornersFromMatrix, d1 as coverageToByte, d2 as createSelectionMask, d3 as createShapeLayer, d4 as createTypeLayer, d5 as decodeLayerChannel, d6 as decodeLayerMask, d7 as decodeMergedImage, d8 as decodePngDataUrl, d9 as decodeSelectionRle, da as defaultShapeName, db as depthMaskAlpha, dc as describeTransform, dd as deserializeEffects, de as deserializeLayer, df as deserializeLayers, dg as deserializePatterns, dh as deserializeSelection, di as developFilter, dj as distanceTransform, dk as duplicateLayer, dl as edgeWidth, dm as ellipsePoints, dn as ellipseSelection, dp as encodeSelectionRle, dq as encodeSurface, dr as expandCoverage, ds as exportPsd, dt as featherCoverage, du as fitParagraphRuns, dv as fitRuns, dw as flipCorners, dx as fontOf, dy as fullSelection, dz as geometryHomography, dA as getAnnotationBounds, dB as getCropCursor, dC as getRotatedSize, dD as getViewportMetrics, dE as getViewportProjection, dF as globalImageCache, dG as greyMorphology, dH as groupLayers, dI as guidePlanes, dJ as guidedFilterColor, dK as hasSurface, dL as hasWarp, dM as hashMaskContent, dN as histogramPath, dO as hitTestAnnotation, dP as hitTestCrop, dQ as hueRange, dR as identityTransform, dS as imageToCanvasPoint, dT as importPsd, dU as invertSelection, dV as isActiveFilter, dW as isIdentityTransform, dX as isQuarterTurnSwapped, dY as isRenderedLayer, dZ as isSelectionEmpty, d_ as isSelectionMode, d$ as isSpatialFilter, e0 as isTransformAnchor, e1 as isValidWarp, e2 as layerEffectsOf, e3 as layerMaskCoverage, e4 as layerMaskFromSelection, e5 as layerMaskKey, e6 as layerName, e7 as layerTree, e8 as layerTypeLabel, e9 as layoutText, ea as liveComponent, eb as liveShapeSubpaths, ec as magicWand, ed as mapCropHandle, ee as mapSubpaths, ef as matrixFromCorners, eg as matrixFromParams, eh as mergeShapeComponents, ei as migrateSerializedImageEditorState, ej as migrateToLayeredState, ek as modifySelection, el as moveLayer, em as newLayerId, en as normalizeAngle, eo as normalizeFilter, ep as normalizeLayerMask, eq as normalizeLiveShape, er as normalizeRect, es as normalizeRefineEdgeParams, et as normalizeShapePaint, eu as normalizeShapeStroke, ev as normalizeStoredAdjustments, ew as normalizeSubpaths, ex as normalizeText, ey as offsetLayer, ez as offsetShape, eA as paragraphRanges, eB as parseBlend, eC as parseColor, eD as parseSelectionMode, eE as patchParagraphStyle, eF as patchTextStyle, eG as pixelLayerBounds, eH as pixelLayers, eI as placeLayer, eJ as polygonCoverage, eK as polygonSelection, eL as presetWarp, eM as previewStep, eN as projectImagePoint, eO as projectImageRect, eP as projectMaskCoverage, eQ as psdToLayers, eR as readPsd, eS as rectSelection, eT as referencePoint, eU as refineCoverage, eV as refineEdgeHalo, eW as refineSelection, eX as removeLayer, eY as removeLayerEffect, eZ as removeLayerFilter, e_ as renderShape, e$ as renderShapeRect, f0 as renderText, f1 as replaceTextRange, f2 as requireLayer, f3 as requireOperation, f4 as requireShapeLayer, f5 as requireTypeLayer, f6 as requireUnlocked, f7 as rerenderShape, f8 as rerenderText, f9 as resizePixels, fa as resizeSelection, fb as resolveExternalAssets, fc as restyleRange, fd as runLayerFilters, fe as selectionArea, ff as selectionFromCoverage, fg as selectionFromPixels, fh as selectionToCoverage, fi as selectionToPixels, fj as selectionValueAt, fk as serializeContents, fl as serializeEffects, fm as serializeLayer, fn as serializeLayers, fo as serializeLayersExternal, fp as serializePatterns, fq as serializeSelection, fr as setLayerEffects, fs as setLayerEffectsEnabled, ft as setLayerMask, fu as setLayerProperties, fv as shapeAsPixelLayer, fw as shapeFromAnnotation, fx as shapeGeometryBounds, fy as shapeLayers, fz as shapeOutline, fA as shapeRenderClip, fB as shiftCoverage, fC as smartObjectLayers, fD as smoothCoverage, fE as spliceRuns, fF as srgb8ToLab, fG as styleAt, fH as textIndexAt, fI as textMatrix, fJ as textOutlines, fK as textRange, fL as toHex, fM as toTextSpace, fN as toneRange, fO as transformHomography, fP as transformMap, fQ as transformShapeComponents, fR as transformTypeLayer, fS as transformedBox, fT as transformedPoint, fU as typeAsPixelLayer, fV as typeFrame, fW as typeFromAnnotation, fX as typeLayerName, fY as ungroupLayer, fZ as unionRect, f_ as unprojectCanvasPoint, f$ as updateLayerEffect, g0 as updateLayerFilter, g1 as updateLayerMaskProps, g2 as updateShapeLayer, g3 as updateTypeLayer, g4 as withNewIds, g5 as writePsd } from '../export-DBNVwb6h.js';
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 '../blending-DXl06NSx.js';
13
- export { j as BlenderScratch, b as BlenderSettings, B as BrushSettings, C as CoverageMap, k as DEFAULT_BLENDER, l as DEFAULT_BRUSH, m as DEFAULT_MIXER, n as DEFAULT_SMUDGE, D as Dab, o as DabWalker, E as EMPTY_MIXER_LOAD, p as ExchangeRates, e as MAX_BRUSH_SIZE, q as MIXER_DRAIN, r as MIXER_PICKUP_RATE, s as MIXING_MODELS, h as MixerStroke, g as MixerTarget, a as MixingModel, t as PaintExchange, u as PaintMedium, v as PaintSample, P as PaintTileTarget, R as RgbTriple, w as SmudgeDab, S as SmudgeSettings, x as SmudgeTip, i as StrokeApply, f as StrokeCoverage, c as StrokePoint, T as TileMedium, y as TileMediumOptions, z as applyStrokeToTile, A as blendRadius, F as blenderDab, G as cleanMixer, H as coverageTileCoord, I as createBlenderScratch, J as dabCoverage, K as dabRect, L as exchangeRates, N as loadMixer, O as mixerRates, Q as normalizeBlender, U as normalizeBrush, V as normalizeMixer, W as normalizeSmudge, X as rasterizeDab, Y as smoothPoints, Z as tipFalloff, _ as tipReach, $ as tipShape, a0 as walkDabs } from '../blending-DXl06NSx.js';
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
 
@@ -1164,6 +1166,158 @@ declare function createOutlineTextShaper(fonts: ReadonlyArray<OutlineFontFace |
1164
1166
  */
1165
1167
  declare function createImageTypeTools(controller: ImageEditorController): AgentTool[];
1166
1168
 
1169
+ /**
1170
+ * Framework-free logic behind the shape and type tools of the React and Svelte image editors:
1171
+ * tool options, a drag that draws a live shape (one undo step, the layer updated live while
1172
+ * dragging), and on-canvas text editing (caret, selection, typing, keys, styling the selection,
1173
+ * the overlay to draw). The components only translate DOM events and draw `overlay()`.
1174
+ */
1175
+
1176
+ /** What the shape tool draws next (and what its options bar edits on a selected shape). */
1177
+ interface ShapeToolOptions {
1178
+ kind: LiveShapeKind;
1179
+ /** `#rrggbb`, or `null` for no fill. */
1180
+ fill: string | null;
1181
+ /** `#rrggbb`, or `null` for no stroke. */
1182
+ stroke: string | null;
1183
+ strokeWidth: number;
1184
+ /** Rectangles: corner radius in pixels. */
1185
+ radius: number;
1186
+ /** Polygons: sides. */
1187
+ sides: number;
1188
+ /** Stars: points and inner radius ratio. */
1189
+ points: number;
1190
+ innerRatio: number;
1191
+ /** Lines: thickness in pixels and whether to add an arrowhead at the end. */
1192
+ weight: number;
1193
+ arrow: boolean;
1194
+ }
1195
+ declare const DEFAULT_SHAPE_TOOL_OPTIONS: ShapeToolOptions;
1196
+ declare const SHAPE_KIND_LABELS: Record<LiveShapeKind, string>;
1197
+ /** What the type tool sets new text in (and what its options bar edits on the selection). */
1198
+ interface TypeToolOptions {
1199
+ fontFamily: string;
1200
+ fontSize: number;
1201
+ fontWeight: number;
1202
+ italic: boolean;
1203
+ color: string;
1204
+ align: TextAlign;
1205
+ }
1206
+ declare const DEFAULT_TYPE_TOOL_OPTIONS: TypeToolOptions;
1207
+ /** A live shape for a drag from `a` to `b` (Shift: square / circle / 45° line; Alt: from the centre). */
1208
+ declare function liveShapeForDrag(o: ShapeToolOptions, a: ImagePoint, b: ImagePoint, mods?: {
1209
+ shift?: boolean;
1210
+ alt?: boolean;
1211
+ }): Record<string, unknown> | null;
1212
+ /**
1213
+ * A drag that draws a live shape: the layer is added on the first real move (one undo step) and
1214
+ * its component updated live (no history) until the pointer is released.
1215
+ */
1216
+ declare class ShapeDrawGesture {
1217
+ private readonly controller;
1218
+ private readonly options;
1219
+ private start;
1220
+ private layerId;
1221
+ error: string | null;
1222
+ constructor(controller: ImageEditorController, options: () => ShapeToolOptions);
1223
+ get active(): boolean;
1224
+ /** The shape layer drawn by the last drag (until the next one starts). */
1225
+ get drawnLayerId(): string | null;
1226
+ down(p: ImagePoint): void;
1227
+ move(p: ImagePoint, mods?: {
1228
+ shift?: boolean;
1229
+ alt?: boolean;
1230
+ }): void;
1231
+ up(): string | null;
1232
+ cancel(): void;
1233
+ }
1234
+ /** Applies options-bar changes to a shape layer (fill, stroke, width, and the live shape's own fields). */
1235
+ declare function applyShapeOptions(controller: ImageEditorController, layerId: string, change: Partial<ShapeToolOptions>): void;
1236
+ /** The keys a text session understands, as DOM `KeyboardEvent`s report them. */
1237
+ interface TextKey {
1238
+ key: string;
1239
+ shiftKey?: boolean;
1240
+ metaKey?: boolean;
1241
+ ctrlKey?: boolean;
1242
+ altKey?: boolean;
1243
+ }
1244
+ /**
1245
+ * Editing one type layer on the canvas: a caret and a selection (`anchor`..`focus`, UTF-16 code
1246
+ * units), typing, deleting, moving, clicking and styling the selection. The first change of a
1247
+ * session records one undo step; the rest join it.
1248
+ */
1249
+ declare class TextEditSession {
1250
+ private readonly controller;
1251
+ readonly layerId: string;
1252
+ anchor: number;
1253
+ focus: number;
1254
+ private changed;
1255
+ private readonly listeners;
1256
+ error: string | null;
1257
+ constructor(controller: ImageEditorController, layerId: string, index?: number);
1258
+ private get layer();
1259
+ get text(): string;
1260
+ get start(): number;
1261
+ get end(): number;
1262
+ /** Whether the layer still exists (it can be deleted or undone away while editing). */
1263
+ get alive(): boolean;
1264
+ subscribe(fn: () => void): () => void;
1265
+ private emit;
1266
+ private layout;
1267
+ private run;
1268
+ /** Replaces the selection with `text` (typing and pasting). */
1269
+ insert(text: string): void;
1270
+ /** Backspace: the selection, else the character before the caret. */
1271
+ deleteBackward(): void;
1272
+ /** Delete: the selection, else the character after the caret. */
1273
+ deleteForward(): void;
1274
+ /** 2 when the code unit at `i` is half of a surrogate pair (moving `dir`), else 1. */
1275
+ private surrogate;
1276
+ /** Moves the caret (Shift extends the selection). */
1277
+ move(to: 'left' | 'right' | 'up' | 'down' | 'home' | 'end' | 'start' | 'finish', extend?: boolean): void;
1278
+ selectAll(): void;
1279
+ /** Places the caret at a document point (Shift-click extends). */
1280
+ pointAt(p: ImagePoint, extend?: boolean): void;
1281
+ /** Handles a key; returns `true` when it was the session's (the caller then prevents the default). */
1282
+ handleKey(e: TextKey): boolean;
1283
+ /** Sets character style fields on the selection, or on the whole text when nothing is selected. */
1284
+ setStyle(style: Partial<TextStyle>): void;
1285
+ /** Sets paragraph fields on the paragraphs the selection touches. */
1286
+ setParagraph(style: ParagraphStyle): void;
1287
+ /** The style at the caret (or the selection's start), for the options bar. */
1288
+ styleHere(): TextStyle;
1289
+ info(): TypeLayerInfo;
1290
+ /** The caret, the selection and the frame in natural pixels, for `RenderOptions.textEdit`. */
1291
+ overlay(): {
1292
+ caret: [ImagePoint, ImagePoint] | null;
1293
+ selection: ImagePoint[][];
1294
+ frame: ImagePoint[] | null;
1295
+ };
1296
+ /** Ends editing: an empty layer made for this session is deleted (as Photoshop does). Returns whether the layer remains. */
1297
+ close(): boolean;
1298
+ }
1299
+ /** Where a click lands on type layers: the topmost visible type layer whose laid-out text or box contains `p`, or `null`. */
1300
+ declare function typeLayerAt(controller: ImageEditorController, p: ImagePoint, slop?: number): string | null;
1301
+ /**
1302
+ * The type tool: a click on type edits it at the clicked character; a click elsewhere adds point
1303
+ * text there (a drag adds paragraph text in the dragged box). Holds the open `TextEditSession`.
1304
+ */
1305
+ declare class TypeToolGesture {
1306
+ private readonly controller;
1307
+ private readonly options;
1308
+ session: TextEditSession | null;
1309
+ private dragStart;
1310
+ error: string | null;
1311
+ constructor(controller: ImageEditorController, options: () => TypeToolOptions);
1312
+ down(p: ImagePoint, mods?: {
1313
+ shift?: boolean;
1314
+ }): void;
1315
+ /** Releases a click or drag that did not land on type: adds a new text layer (point text, or a box for a drag). */
1316
+ up(p: ImagePoint): TextEditSession | null;
1317
+ /** Ends the open session (an empty new layer is removed). */
1318
+ finish(): void;
1319
+ }
1320
+
1167
1321
  /**
1168
1322
  * Anti-aliased coverage of filled Bézier paths over a pixel rectangle, without a canvas. The paths
1169
1323
  * are flattened to lines, then rasterized one of two ways:
@@ -1226,6 +1380,10 @@ declare function layerPanelRows(layers: readonly ImageLayer[], activeId: string
1226
1380
  declare function layerLabel(layer: ImageLayer): string;
1227
1381
  /** A short type badge for rows without a thumbnail. */
1228
1382
  declare function layerBadge(layer: ImageLayer): string;
1383
+ /** Whether the layer's row shows a pixel thumbnail (pixel, shape and type layers; shapes and type with a badge on it). */
1384
+ declare function layerHasThumbnail(layer: ImageLayer): boolean;
1385
+ /** A warning to show on a layer's row (a type layer drawn with fallback fonts), or `null`. */
1386
+ declare function layerWarning(layer: ImageLayer): string | null;
1229
1387
  /** Where a row was dropped on: the top or bottom part of the row, or the middle of a group row. */
1230
1388
  type DropZone = 'above' | 'below' | 'inside';
1231
1389
  /** The zone for a pointer at `fraction` (0 top .. 1 bottom) of a row's height. */
@@ -1360,11 +1518,19 @@ declare function mixerLoadResult(load: MixerLoad): {
1360
1518
  */
1361
1519
  declare function createImagePaintTools(controller: ImageEditorController): AgentTool[];
1362
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
+
1363
1529
  /**
1364
1530
  * The paint tools' view model, shared by the React and Svelte editors: the brush options bar's
1365
- * controls, Photoshop's shortcuts (B, Shift+B, E, V, [ ], Shift+[ ], number keys, D, X) and a
1366
- * pointer gesture that turns pointer events into strokes (Brush, Mixer Brush, Eraser) or layer
1367
- * 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).
1368
1534
  */
1369
1535
 
1370
1536
  /** Controls of the brush options bar (`hardness`, `opacity`, `flow`, `smoothing` shown in %). */
@@ -1398,9 +1564,65 @@ declare const PAINT_TOOLS: readonly [{
1398
1564
  readonly id: "eraser";
1399
1565
  readonly label: "Eraser";
1400
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";
1401
1595
  }];
1402
1596
  type PaintTool = (typeof PAINT_TOOLS)[number]['id'];
1403
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;
1404
1626
  /** `#rrggbb` of an sRGB triple (0..1), e.g. the Mixer Brush's reservoir. */
1405
1627
  declare function rgbUnitToHex(c: readonly [number, number, number]): string;
1406
1628
  interface ShortcutEvent {
@@ -1422,6 +1644,8 @@ declare function handlePaintShortcut(controller: ImageEditorController, e: Short
1422
1644
  interface PaintPointerSample extends ImagePoint {
1423
1645
  /** 0..1; a mouse is 1. */
1424
1646
  pressure: number;
1647
+ /** Alt (Option) held on the press: with the Clone Stamp or Healing Brush it sets the source. */
1648
+ altKey?: boolean;
1425
1649
  }
1426
1650
  /** Pressure of a pointer event: pens report it; mice report 0.5 while pressed, which means "full". */
1427
1651
  declare function pointerPressure(e: {
@@ -1886,4 +2110,4 @@ declare class FreeTransformTool {
1886
2110
  key(e: ShortcutEvent): boolean;
1887
2111
  }
1888
2112
 
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 };
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 };