@pixerate/editor 0.108.0 → 0.110.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 (105) hide show
  1. package/dist/animation/index.cjs +5 -5
  2. package/dist/animation/index.cjs.map +1 -1
  3. package/dist/animation/index.js +9 -9
  4. package/dist/animation-editor/index.cjs +59 -59
  5. package/dist/animation-editor/index.cjs.map +1 -1
  6. package/dist/animation-editor/index.d.cts +2 -1
  7. package/dist/animation-editor/index.d.ts +2 -1
  8. package/dist/animation-editor/index.js +29 -29
  9. package/dist/blending-DXl06NSx.d.ts +486 -0
  10. package/dist/blending-aOE6Y3UE.d.cts +486 -0
  11. package/dist/canvas/index.cjs +27 -27
  12. package/dist/canvas/index.cjs.map +1 -1
  13. package/dist/canvas/index.js +11 -11
  14. package/dist/{chunk-2FGRTYJN.cjs → chunk-477UVMNR.cjs} +3 -3
  15. package/dist/{chunk-2FGRTYJN.cjs.map → chunk-477UVMNR.cjs.map} +1 -1
  16. package/dist/chunk-7VOHOPLW.cjs +1136 -0
  17. package/dist/chunk-7VOHOPLW.cjs.map +1 -0
  18. package/dist/{chunk-HUQ7EHVI.js → chunk-BLWCAQCW.js} +723 -1975
  19. package/dist/chunk-BLWCAQCW.js.map +1 -0
  20. package/dist/{chunk-SOROZ2BF.js → chunk-DMRSJBJF.js} +1939 -318
  21. package/dist/chunk-DMRSJBJF.js.map +1 -0
  22. package/dist/chunk-FTBZPI77.cjs +1 -0
  23. package/dist/chunk-FTBZPI77.cjs.map +1 -0
  24. package/dist/{chunk-WMBIJCHA.js → chunk-HNS7UHCM.js} +5 -1
  25. package/dist/{chunk-WMBIJCHA.js.map → chunk-HNS7UHCM.js.map} +1 -1
  26. package/dist/chunk-JLYX4V57.cjs +2001 -0
  27. package/dist/chunk-JLYX4V57.cjs.map +1 -0
  28. package/dist/chunk-KB2YBCVS.js +2001 -0
  29. package/dist/chunk-KB2YBCVS.js.map +1 -0
  30. package/dist/{chunk-G4BIYE6R.js → chunk-LQEEDHOP.js} +40 -2
  31. package/dist/chunk-LQEEDHOP.js.map +1 -0
  32. package/dist/{chunk-FRD3FUXI.cjs → chunk-MGL4U5WA.cjs} +2144 -523
  33. package/dist/chunk-MGL4U5WA.cjs.map +1 -0
  34. package/dist/{chunk-T3QZ6S47.cjs → chunk-POGBUYWE.cjs} +131 -93
  35. package/dist/chunk-POGBUYWE.cjs.map +1 -0
  36. package/dist/chunk-VKK5VS2T.js +1 -0
  37. package/dist/{chunk-UTEVPQTS.cjs → chunk-W3GXSUSQ.cjs} +746 -1998
  38. package/dist/chunk-W3GXSUSQ.cjs.map +1 -0
  39. package/dist/{chunk-SZ6KMZNM.cjs → chunk-XIOMMGPD.cjs} +6 -2
  40. package/dist/chunk-XIOMMGPD.cjs.map +1 -0
  41. package/dist/{chunk-JK6M6V7G.js → chunk-Z3YWVUWT.js} +4 -4
  42. package/dist/{chunk-3PHA3UKI.js → chunk-Z4BC6M74.js} +523 -121
  43. package/dist/chunk-Z4BC6M74.js.map +1 -0
  44. package/dist/{export-a9bnF7Cl.d.ts → export-CO2ryu3I.d.ts} +419 -18
  45. package/dist/{export-JGWQEPJn.d.cts → export-DRiLzP_j.d.cts} +419 -18
  46. package/dist/image-editor/index.cjs +1665 -1113
  47. package/dist/image-editor/index.cjs.map +1 -1
  48. package/dist/image-editor/index.d.cts +78 -14
  49. package/dist/image-editor/index.d.ts +78 -14
  50. package/dist/image-editor/index.js +843 -291
  51. package/dist/image-editor/index.js.map +1 -1
  52. package/dist/paint/index.cjs +28 -4
  53. package/dist/paint/index.cjs.map +1 -1
  54. package/dist/paint/index.d.cts +3 -89
  55. package/dist/paint/index.d.ts +3 -89
  56. package/dist/paint/index.js +27 -3
  57. package/dist/paint-editor/index.cjs +1056 -287
  58. package/dist/paint-editor/index.cjs.map +1 -1
  59. package/dist/paint-editor/index.d.cts +304 -22
  60. package/dist/paint-editor/index.d.ts +304 -22
  61. package/dist/paint-editor/index.js +852 -83
  62. package/dist/paint-editor/index.js.map +1 -1
  63. package/dist/raster/index.cjs +7 -3
  64. package/dist/raster/index.cjs.map +1 -1
  65. package/dist/raster/index.d.cts +3 -129
  66. package/dist/raster/index.d.ts +3 -129
  67. package/dist/raster/index.js +6 -2
  68. package/dist/{compositor-D92URMlm.d.cts → render-BEriFuqK.d.cts} +136 -2
  69. package/dist/{compositor-Kt_M4ruo.d.ts → render-tjzKaik-.d.ts} +136 -2
  70. package/dist/{surface-CkKOHGPm.d.cts → surface-C8RRg_Bh.d.cts} +109 -1
  71. package/dist/{surface-CkKOHGPm.d.ts → surface-C8RRg_Bh.d.ts} +109 -1
  72. package/dist/{svg-SseJTIrA.d.ts → svg-D_cfkhlB.d.cts} +3 -629
  73. package/dist/{svg-ClVIG4T7.d.cts → svg-wIaKLrU0.d.ts} +3 -629
  74. package/dist/types-DtL_qLFz.d.ts +630 -0
  75. package/dist/types-DyQq-WPY.d.cts +630 -0
  76. package/dist/vector/index.cjs +563 -563
  77. package/dist/vector/index.cjs.map +1 -1
  78. package/dist/vector/index.d.cts +4 -2
  79. package/dist/vector/index.d.ts +4 -2
  80. package/dist/vector/index.js +69 -69
  81. package/dist/video-editor/index.cjs +3 -3
  82. package/dist/video-editor/index.js +2 -2
  83. package/package.json +1 -1
  84. package/skills/pixerate-paint-editor/SKILL.md +49 -13
  85. package/dist/chunk-3PHA3UKI.js.map +0 -1
  86. package/dist/chunk-6BU5WU4R.cjs +0 -1
  87. package/dist/chunk-6BU5WU4R.cjs.map +0 -1
  88. package/dist/chunk-DWGZUSES.cjs +0 -694
  89. package/dist/chunk-DWGZUSES.cjs.map +0 -1
  90. package/dist/chunk-FRD3FUXI.cjs.map +0 -1
  91. package/dist/chunk-G4BIYE6R.js.map +0 -1
  92. package/dist/chunk-HUFQD4CB.cjs +0 -734
  93. package/dist/chunk-HUFQD4CB.cjs.map +0 -1
  94. package/dist/chunk-HUQ7EHVI.js.map +0 -1
  95. package/dist/chunk-KKREERP2.js +0 -694
  96. package/dist/chunk-KKREERP2.js.map +0 -1
  97. package/dist/chunk-SOROZ2BF.js.map +0 -1
  98. package/dist/chunk-SZ6KMZNM.cjs.map +0 -1
  99. package/dist/chunk-T3QZ6S47.cjs.map +0 -1
  100. package/dist/chunk-UTEVPQTS.cjs.map +0 -1
  101. package/dist/chunk-XYBJKUAU.js +0 -1
  102. package/dist/mixer-5ziHU8OS.d.cts +0 -282
  103. package/dist/mixer-DNqiYXYQ.d.ts +0 -282
  104. /package/dist/{chunk-XYBJKUAU.js.map → chunk-VKK5VS2T.js.map} +0 -0
  105. /package/dist/{chunk-JK6M6V7G.js.map → chunk-Z3YWVUWT.js.map} +0 -0
@@ -1,21 +1,24 @@
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, q as AnnotationLayer, r as LayerFilter, s as PixelLayer, t as DevelopFilter, u as ImageTransform, v as ImageHistogram, w as ImageProjection, x as CompositorSources, y as LayerCompositor, z as SmartFilterStack, B as SmartFilter, E as SmartObjectLayer, F as SmartContents, G as SmartDocument, J as SmartPlacement, K as FreeTransformGeometry, M as LayerPlacement, N as FreeTransformMode, O as FreeTransformResult, Q as FreeTransformSession, T as FreeTransformInit, U as TransformAnchor } from '../export-JGWQEPJn.cjs';
2
- export { V as AIResultOptions, W as AdjustmentLayerBase, X as AdjustmentLayerInit, Y as AdjustmentLayerUpdate, Z as AnnotationPlacement, _ as AnnotationType, $ as ArrowAnnotation, a0 as AspectRatio, a1 as BaseAnnotation, a2 as BlackWhiteParams, a3 as BlurFilter, a4 as CircleAnnotation, a5 as ColorBalanceParams, a6 as ColorBalanceTone, a7 as ColorRangeOptions, a8 as ColorRangeSample, a9 as CreateAnnotationPayload, aa as CropHandle, ab as CurvesParams, ac as DEFAULT_ADJUSTMENTS, ad as DEFAULT_DEPTH_MASK, ae as DEFAULT_REFINE_EDGE_PARAMS, af as DEFAULT_TRANSFORM, ag as DeserializeContext, ah as DevelopSettings, ai as EMPTY_DISTANCE, aj as ExportOptions, ak as FREE_TRANSFORM_CONTENTS, al as FREE_TRANSFORM_MODES, am as FillOptions, an as FreeTransformContent, ao as FreeTransformHost, ap as FreeTransformPreview, aq as GUIDED_FILTER_EPS, ar as GroupLayer, as as HISTOGRAM_BINS, at as HistogramChannel, au as HistoryEntryHandle, av as HueSaturationParams, aw as IMAGE_EDITOR_SCHEMA_VERSION, ax as ImageAnnotation, ay as ImageDimensions, az as ImageEditorAIHooks, I as ImageEditorAssetStore, aA as ImageEditorFit, aB as ImageEditorOptions, aC as ImageEditorRenderer, aD as ImageEditorState, aE as ImageEditorTool, aF as ImageLayerType, aG as InpaintHook, aH as InpaintOptions, aI as InvertParams, aJ as LAYERED_SCHEMA_VERSION, aK as LayerBase, aL as LayerBlendMode, aM as LayerFilterKind, aN as LayerLocation, aO as LayerMaskProps, aP as LayerOperationError, aQ as LayerProperties, aR as LayerSourcesHost, aS as LayerTarget, aT as LegacySerializedImageEditorState, aU as LevelsParams, aV as LineAnnotation, aW as MagicWandOptions, aX as MixerStrokeInit, aY as PSD_BLEND_KEYS, aZ as PaintOptions, a_ as PaintStrokeResult, a$ as PaintStrokeSession, b0 as PenAnnotation, b1 as PhotoFilterParams, b2 as PixelBuffer, b3 as PixelLayerInit, b4 as PosterizeParams, b5 as PsdChannel, b6 as PsdExportInput, P as PsdExportResult, b7 as PsdFile, b8 as PsdHeader, b9 as PsdImportOptions, ba as PsdImportResult, bb as PsdLayerMask, bc as PsdLayerRecord, bd as PsdLayerSummary, be as PsdRect, bf as PsdResource, bg as PsdSmartFilter, bh as PsdTaggedBlock, bi as PsdTreeNode, bj as RectAnnotation, bk as RemoveBackgroundHook, bl as RemoveBackgroundOptions, bm as RenderOptions, bn as SELECTION_MODES, bo as SELECTION_MODIFY_OPS, 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, bA as SerializedPixelLayer, bB as SerializedRasterMask, bC as SerializedSelection, bD as SerializedSmartContents, bE as SerializedSmartFilter, bF as SerializedSmartObjectLayer, bG as ShapeSelectionOptions, bH as SmartFilterKind, bI as SmartObjectInfo, bJ as SmartPsdData, bK as StrokeInit, bL as StrokeTool, bM as TONE_RANGE_PRESETS, bN as TRANSFORM_ANCHORS, bO as TextAnnotation, bP as ThresholdParams, bQ as ToneRangePreset, bR as TransformParams, bS as TransformReadout, bT as VibranceParams, bU as ViewportMetrics, bV as addLayerEffect, bW as addLayerFilter, bX as adjustmentNodeAsLayer, bY as anchorPoint, bZ as applyImageProjectionToContext, b_ as applyParams, b$ as blurFilter, c0 as borderCoverage, c1 as boxMean, c2 as boxPointOf, c3 as buildLayerMaskPlanes, c4 as calculateCropDrag, c5 as canvasToImagePoint, c6 as clampCropToImage, c7 as colorRange, c8 as combineSelections, c9 as computeHistogram, ca as computeSelectionBounds, cb as contractCoverage, cc as cornersFromMatrix, cd as coverageToByte, ce as createSelectionMask, cf as decodeLayerChannel, cg as decodeLayerMask, ch as decodeMergedImage, ci as decodePngDataUrl, cj as decodeSelectionRle, ck as depthMaskAlpha, cl as describeTransform, cm as deserializeEffects, cn as deserializeLayer, co as deserializeLayers, cp as deserializePatterns, cq as deserializeSelection, cr as developFilter, cs as distanceTransform, ct as duplicateLayer, cu as edgeWidth, cv as ellipsePoints, cw as ellipseSelection, cx as encodeSelectionRle, cy as encodeSurface, cz as expandCoverage, cA as exportPsd, cB as featherCoverage, cC as flipCorners, cD as fullSelection, cE as geometryHomography, cF as getAnnotationBounds, cG as getCropCursor, cH as getRotatedSize, cI as getViewportMetrics, cJ as getViewportProjection, cK as globalImageCache, cL as greyMorphology, cM as groupLayers, cN as guidePlanes, cO as guidedFilterColor, cP as hasSurface, cQ as hasWarp, cR as hashMaskContent, cS as histogramPath, cT as hitTestAnnotation, cU as hitTestCrop, cV as hueRange, cW as identityTransform, cX as imageToCanvasPoint, cY as importPsd, cZ as invertSelection, c_ as isActiveFilter, c$ as isIdentityTransform, d0 as isQuarterTurnSwapped, d1 as isSelectionEmpty, d2 as isSelectionMode, d3 as isSpatialFilter, d4 as isTransformAnchor, d5 as isValidWarp, d6 as layerEffectsOf, d7 as layerMaskCoverage, d8 as layerMaskFromSelection, d9 as layerMaskKey, da as layerName, db as layerTree, dc as layerTypeLabel, dd as magicWand, de as mapCropHandle, df as matrixFromCorners, dg as matrixFromParams, dh as migrateSerializedImageEditorState, di as migrateToLayeredState, dj as modifySelection, dk as moveLayer, dl as newLayerId, dm as normalizeAngle, dn as normalizeFilter, dp as normalizeLayerMask, dq as normalizeRect, dr as normalizeRefineEdgeParams, ds as normalizeStoredAdjustments, dt as offsetLayer, du as parseBlend, dv as parseColor, dw as parseSelectionMode, dx as pixelLayerBounds, dy as pixelLayers, dz as placeLayer, dA as polygonCoverage, dB as polygonSelection, dC as presetWarp, dD as previewStep, dE as projectImagePoint, dF as projectImageRect, dG as projectMaskCoverage, dH as psdToLayers, dI as readPsd, dJ as rectSelection, dK as referencePoint, dL as refineCoverage, dM as refineEdgeHalo, dN as refineSelection, dO as removeLayer, dP as removeLayerEffect, dQ as removeLayerFilter, dR as requireLayer, dS as requireUnlocked, dT as resizePixels, dU as resizeSelection, dV as resolveExternalAssets, dW as runLayerFilters, dX as selectionArea, dY as selectionFromCoverage, dZ as selectionFromPixels, d_ as selectionToCoverage, d$ as selectionToPixels, e0 as selectionValueAt, e1 as serializeContents, e2 as serializeEffects, e3 as serializeLayer, e4 as serializeLayers, e5 as serializeLayersExternal, e6 as serializePatterns, e7 as serializeSelection, e8 as setLayerEffects, e9 as setLayerEffectsEnabled, ea as setLayerMask, eb as setLayerProperties, ec as shiftCoverage, ed as smartObjectLayers, ee as smoothCoverage, ef as srgb8ToLab, eg as toHex, eh as toneRange, ei as transformHomography, ej as transformMap, ek as transformedBox, el as transformedPoint, em as ungroupLayer, en as unionRect, eo as unprojectCanvasPoint, ep as updateLayerEffect, eq as updateLayerFilter, er as updateLayerMaskProps, es as withNewIds, et as writePsd } from '../export-JGWQEPJn.cjs';
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, q as AnnotationLayer, r as ShapeLayer, s as LayerFilter, t as PixelLayer, u as DevelopFilter, v as ImageTransform, w as ImageHistogram, x as ImageProjection, y as CompositorSources, z as LayerCompositor, B as SmartFilterStack, E as SmartFilter, F as SmartObjectLayer, G as SmartContents, J as SmartDocument, K as SmartPlacement, M as FreeTransformGeometry, N as LayerPlacement, O as FreeTransformMode, Q as FreeTransformResult, T as FreeTransformSession, U as FreeTransformInit, V as TransformAnchor } from '../export-DRiLzP_j.cjs';
2
+ export { W as AIResultOptions, X as AdjustmentLayerBase, Y as AdjustmentLayerInit, Z as AdjustmentLayerUpdate, _ as AnnotationPlacement, $ as AnnotationType, a0 as ArrowAnnotation, a1 as AspectRatio, a2 as BaseAnnotation, a3 as BlackWhiteParams, a4 as BlurFilter, a5 as CircleAnnotation, a6 as ColorBalanceParams, a7 as ColorBalanceTone, a8 as ColorRangeOptions, a9 as ColorRangeSample, aa as CreateAnnotationPayload, ab as CropHandle, ac as CurvesParams, ad as DEFAULT_ADJUSTMENTS, ae as DEFAULT_DEPTH_MASK, af as DEFAULT_MITER_LIMIT, ag as DEFAULT_REFINE_EDGE_PARAMS, ah as DEFAULT_TRANSFORM, ai as DeserializeContext, aj as DevelopSettings, ak as EMPTY_DISTANCE, al as ExportOptions, am as FREE_TRANSFORM_CONTENTS, an as FREE_TRANSFORM_MODES, ao as FillOptions, ap as FreeTransformContent, aq as FreeTransformHost, ar as FreeTransformPreview, as as GUIDED_FILTER_EPS, at as GroupLayer, au as HISTOGRAM_BINS, av as HistogramChannel, aw as HistoryEntryHandle, ax as HueSaturationParams, ay as IMAGE_EDITOR_SCHEMA_VERSION, az as ImageAnnotation, aA as ImageDimensions, aB as ImageEditorAIHooks, I as ImageEditorAssetStore, aC as ImageEditorFit, aD as ImageEditorOptions, aE as ImageEditorRenderer, aF as ImageEditorState, aG as ImageEditorTool, aH as ImageLayerType, aI as InpaintHook, aJ as InpaintOptions, aK as InvertParams, aL as LAYERED_SCHEMA_VERSION, aM as LIVE_SHAPE_KINDS, aN as LayerBase, aO as LayerBlendMode, aP as LayerFilterKind, aQ as LayerLocation, aR as LayerMaskProps, aS as LayerOperationError, aT as LayerProperties, aU as LayerSourcesHost, aV as LayerTarget, aW as LegacySerializedImageEditorState, aX as LevelsParams, aY as LineAnnotation, aZ as LiveShape, a_ as LiveShapeKind, a$ as MagicWandOptions, b0 as MixerStrokeInit, b1 as PSD_BLEND_KEYS, b2 as PaintOptions, b3 as PaintStrokeResult, b4 as PaintStrokeSession, b5 as PenAnnotation, b6 as PhotoFilterParams, b7 as PixelBuffer, b8 as PixelLayerInit, b9 as PosterizeParams, ba as PsdChannel, bb as PsdExportInput, P as PsdExportResult, bc as PsdFile, bd as PsdHeader, be as PsdImportOptions, bf as PsdImportResult, bg as PsdLayerMask, bh as PsdLayerRecord, bi as PsdLayerSummary, bj as PsdRect, bk as PsdResource, bl as PsdSmartFilter, bm as PsdTaggedBlock, bn as PsdTreeNode, bo as RectAnnotation, bp as RemoveBackgroundHook, bq as RemoveBackgroundOptions, br as RenderOptions, bs as SELECTION_MODES, bt as SELECTION_MODIFY_OPS, bu as SHAPE_OPERATIONS, bv as SHAPE_RENDER_MARGIN, bw as SampleOptions, bx as SelectionChannel, by as SelectionCommandOptions, bz as SelectionModifyOp, bA as SerializeContext, bB as SerializedAdjustmentLayer, bC as SerializedAnnotationLayer, bD as SerializedGroupLayer, S as SerializedLayer, bE as SerializedLayerEffects, bF as SerializedLayeredImageEditorState, bG as SerializedPattern, bH as SerializedPixelLayer, bI as SerializedRasterMask, bJ as SerializedSelection, bK as SerializedShapeLayer, bL as SerializedSmartContents, bM as SerializedSmartFilter, bN as SerializedSmartObjectLayer, bO as ShapeArrowhead, bP as ShapeComponent, bQ as ShapeEnv, bR as ShapeFillRule, bS as ShapeGeometryInput, bT as ShapeLayerData, bU as ShapeLayerInfo, bV as ShapeLayerInit, bW as ShapeLineCap, bX as ShapeLineJoin, bY as ShapeOperation, bZ as ShapePaint, b_ as ShapePsdData, b$ as ShapeSelectionOptions, c0 as ShapeStroke, c1 as ShapeStrokeAlign, c2 as SmartFilterKind, c3 as SmartObjectInfo, c4 as SmartPsdData, c5 as StrokeInit, c6 as StrokeTool, c7 as TONE_RANGE_PRESETS, c8 as TRANSFORM_ANCHORS, c9 as TextAnnotation, ca as ThresholdParams, cb as ToneRangePreset, cc as TransformParams, cd as TransformReadout, ce as VibranceParams, cf as ViewportMetrics, cg as addLayerEffect, ch as addLayerFilter, ci as adjustmentNodeAsLayer, cj as anchorPoint, ck as annotationBlend, cl as annotationOfShape, cm as applyImageProjectionToContext, cn as applyParams, co as blurFilter, cp as borderCoverage, cq as boxMean, cr as boxPointOf, cs as buildLayerMaskPlanes, ct as calculateCropDrag, cu as canvasToImagePoint, cv as clampCropToImage, cw as colorRange, cx as combineSelections, cy as componentPath, cz as computeHistogram, cA as computeSelectionBounds, cB as contractCoverage, cC as cornersFromMatrix, cD as coverageToByte, cE as createSelectionMask, cF as createShapeLayer, cG as decodeLayerChannel, cH as decodeLayerMask, cI as decodeMergedImage, cJ as decodePngDataUrl, cK as decodeSelectionRle, cL as defaultShapeName, cM as depthMaskAlpha, cN as describeTransform, cO as deserializeEffects, cP as deserializeLayer, cQ as deserializeLayers, cR as deserializePatterns, cS as deserializeSelection, cT as developFilter, cU as distanceTransform, cV as duplicateLayer, cW as edgeWidth, cX as ellipsePoints, cY as ellipseSelection, cZ as encodeSelectionRle, c_ as encodeSurface, c$ as expandCoverage, d0 as exportPsd, d1 as featherCoverage, d2 as flipCorners, d3 as fullSelection, d4 as geometryHomography, d5 as getAnnotationBounds, d6 as getCropCursor, d7 as getRotatedSize, d8 as getViewportMetrics, d9 as getViewportProjection, da as globalImageCache, db as greyMorphology, dc as groupLayers, dd as guidePlanes, de as guidedFilterColor, df as hasSurface, dg as hasWarp, dh as hashMaskContent, di as histogramPath, dj as hitTestAnnotation, dk as hitTestCrop, dl as hueRange, dm as identityTransform, dn as imageToCanvasPoint, dp as importPsd, dq as invertSelection, dr as isActiveFilter, ds as isIdentityTransform, dt as isQuarterTurnSwapped, du as isRenderedLayer, dv as isSelectionEmpty, dw as isSelectionMode, dx as isSpatialFilter, dy as isTransformAnchor, dz as isValidWarp, dA as layerEffectsOf, dB as layerMaskCoverage, dC as layerMaskFromSelection, dD as layerMaskKey, dE as layerName, dF as layerTree, dG as layerTypeLabel, dH as liveComponent, dI as liveShapeSubpaths, dJ as magicWand, dK as mapCropHandle, dL as mapSubpaths, dM as matrixFromCorners, dN as matrixFromParams, dO as mergeShapeComponents, dP as migrateSerializedImageEditorState, dQ as migrateToLayeredState, dR as modifySelection, dS as moveLayer, dT as newLayerId, dU as normalizeAngle, dV as normalizeFilter, dW as normalizeLayerMask, dX as normalizeLiveShape, dY as normalizeRect, dZ as normalizeRefineEdgeParams, d_ as normalizeShapePaint, d$ as normalizeShapeStroke, e0 as normalizeStoredAdjustments, e1 as normalizeSubpaths, e2 as offsetLayer, e3 as offsetShape, e4 as parseBlend, e5 as parseColor, e6 as parseSelectionMode, e7 as pixelLayerBounds, e8 as pixelLayers, e9 as placeLayer, ea as polygonCoverage, eb as polygonSelection, ec as presetWarp, ed as previewStep, ee as projectImagePoint, ef as projectImageRect, eg as projectMaskCoverage, eh as psdToLayers, ei as readPsd, ej as rectSelection, ek as referencePoint, el as refineCoverage, em as refineEdgeHalo, en as refineSelection, eo as removeLayer, ep as removeLayerEffect, eq as removeLayerFilter, er as renderShape, es as renderShapeRect, et as requireLayer, eu as requireOperation, ev as requireShapeLayer, ew as requireUnlocked, ex as rerenderShape, ey as resizePixels, ez as resizeSelection, eA as resolveExternalAssets, eB as runLayerFilters, eC as selectionArea, eD as selectionFromCoverage, eE as selectionFromPixels, eF as selectionToCoverage, eG as selectionToPixels, eH as selectionValueAt, eI as serializeContents, eJ as serializeEffects, eK as serializeLayer, eL as serializeLayers, eM as serializeLayersExternal, eN as serializePatterns, eO as serializeSelection, eP as setLayerEffects, eQ as setLayerEffectsEnabled, eR as setLayerMask, eS as setLayerProperties, eT as shapeAsPixelLayer, eU as shapeFromAnnotation, eV as shapeGeometryBounds, eW as shapeLayers, eX as shapeOutline, eY as shapeRenderClip, eZ as shiftCoverage, e_ as smartObjectLayers, e$ as smoothCoverage, f0 as srgb8ToLab, f1 as toHex, f2 as toneRange, f3 as transformHomography, f4 as transformMap, f5 as transformShapeComponents, f6 as transformedBox, f7 as transformedPoint, f8 as ungroupLayer, f9 as unionRect, fa as unprojectCanvasPoint, fb as updateLayerEffect, fc as updateLayerFilter, fd as updateLayerMaskProps, fe as updateShapeLayer, ff as withNewIds, fg as writePsd } from '../export-DRiLzP_j.cjs';
3
3
  import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.cjs';
4
- import { B as BlendMode, P as PixelSurface, R as RasterRect } from '../surface-CkKOHGPm.cjs';
5
- export { c as BLEND_MODES, b as BlendModeInfo, M as MaskSurface, d as PAINTERLY_BLEND_MODES, g as Rgb, h as Rgba, S as SHADOW_AMBIENT, j as SurfaceDraft, k as TILE, l as TILE_SHIFT, e as Tile, T as TileKey, a as TiledSurface, m as blendChannel, n as blendImageData, o as blendLum, p as blendPixel, q as blendRgb, r as canvasCompositeOperation, t as collectTiles, u as contentBounds, v as emptySurface, w as fillRect, x as finishTile, i as isBlendMode, f as isPainterlyBlendMode, y as isSeparableBlendMode, z as mixPigment8, A as mixPigmentRgb, C as normalizeBlendMode, D as packRgba, E as readPixel, F as readRegion, G as setLum, H as solidSurface, s as standardBlendMode, I as surfaceBytes, J as surfaceFromPixels, K as surfacesEqual, L as tileCoord, N as tileKey, O as tileRect, Q as tilesInRect, U as translateSurface, V as uniformTile, W as writeRegion } from '../surface-CkKOHGPm.cjs';
4
+ import { B as BlendMode, b as PixelSurface, R as RasterRect } from '../surface-C8RRg_Bh.cjs';
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';
6
6
  import { a as AgentToolProvider, A as AgentTool } from '../registry-BqA1AZt0.cjs';
7
- import { j as LayerEffects, l as LayerEffectKind, i as LayerEffect, E as EffectPattern, I as Interpolation } from '../compositor-D92URMlm.cjs';
8
- export { B as BevelContour, m as BevelEmbossEffect, n as BevelStyle, o as BevelTechnique, p as BevelTexture, q as ColorOverlayEffect, r as CompositeCallOptions, s as CompositeStats, k as CompositorOptions, t as ContourPoint, D as DEFAULT_GLOBAL_LIGHT, u as DropShadowEffect, v as EffectContour, w as EffectFill, x as EffectGradient, y as EffectPatternRef, g as GlobalLight, z as GlowTechnique, A as GradientColorStop, F as GradientOpacityStop, H as GradientOverlayEffect, J as GradientStyle, K as INTERPOLATIONS, M as InnerGlowEffect, N as InnerShadowEffect, O as LAYER_EFFECT_KINDS, P as LayerEffectError, L as LayerLocks, Q as MAX_EFFECT_REACH, S as MAX_TRANSFORM_PIXELS, T as OuterGlowEffect, U as PatternOverlayEffect, V as PatternPlacement, W as PatternTile, X as ResampleOptions, Y as SatinEffect, Z as StrokeEffect, _ as StrokePosition, $ as TransformTooLargeError, a0 as blendTile, a1 as builtinPattern, a2 as builtinPatternIds, a3 as changedTiles, a4 as compositeSurfaceOver, a5 as defaultEffectGradient, a6 as defaultLayerEffect, a7 as effectColorHex, a8 as effectReach, a9 as effectsFingerprint, aa as effectsMargin, ab as effectsScale, ac as findLayer, ad as flattenLayers, ae as hasActiveEffects, af as hashNoise, ag as insertLayer, ah as isInterpolation, ai as isLayerEffectKind, aj as isLayerLocked, ak as keysWeight, al as layerEffectFields, am as layerEffectLabel, an as mapLayer, ao as mergeLayerEffect, ap as newEffectId, aq as normalizeLayerEffects, ar as parseEffectColor, as as reduceSurface, at as scaleLayerEffect, au as transformSurface, av as transformedBounds, aw as validateEffectGradient, ax as validateLayerEffect, ay as validateLayerEffects, az as warpSurface } from '../compositor-D92URMlm.cjs';
7
+ import { k as LayerEffects, m as LayerEffectKind, j as LayerEffect, h as EffectPattern, I as Interpolation } from '../render-BEriFuqK.cjs';
8
+ export { B as BevelContour, o as BevelEmbossEffect, p as BevelStyle, q as BevelTechnique, r as BevelTexture, s as ColorOverlayEffect, t as CompositeCallOptions, u as CompositeStats, l as CompositorOptions, v as ContourPoint, D as DEFAULT_GLOBAL_LIGHT, w as DropShadowEffect, x as EffectContour, E as EffectFill, y as EffectGradient, z as EffectPatternRef, A as EffectRect, g as GlobalLight, F as GlowTechnique, H as GradientColorStop, J as GradientOpacityStop, K as GradientOverlayEffect, M as GradientStyle, N as INTERPOLATIONS, O as InnerGlowEffect, P as InnerShadowEffect, Q as LAYER_EFFECT_KINDS, S as LayerEffectError, L as LayerLocks, T as MAX_EFFECT_REACH, U as MAX_TRANSFORM_PIXELS, V as OuterGlowEffect, W as PatternOverlayEffect, X as PatternPlacement, Y as PatternTile, Z as ResampleOptions, _ as SatinEffect, $ as StrokeEffect, a0 as StrokePosition, a1 as TransformTooLargeError, a2 as blendTile, a3 as builtinPattern, a4 as builtinPatternIds, a5 as changedTiles, a6 as compositeSurfaceOver, a7 as defaultEffectGradient, a8 as defaultLayerEffect, a9 as effectColorHex, aa as effectReach, ab as effectsFingerprint, ac as effectsMargin, ad as effectsScale, ae as findLayer, af as flattenLayers, ag as hasActiveEffects, ah as hashNoise, ai as insertLayer, aj as isInterpolation, ak as isLayerEffectKind, al as isLayerLocked, am as keysWeight, an as layerEffectFields, ao as layerEffectLabel, ap as mapLayer, aq as mergeLayerEffect, ar as newEffectId, as as normalizeLayerEffects, at as parseEffectColor, au as reduceSurface, av as renderLayerEffects, aw as scaleLayerEffect, ax as transformSurface, ay as transformedBounds, az as validateEffectGradient, aA as validateLayerEffect, aB as validateLayerEffects, aC as warpSurface } from '../render-BEriFuqK.cjs';
9
9
  import { b as CaptureSurface } from '../capture-DFEMFmVt.cjs';
10
- export { DIRECT_GAUSSIAN_MAX_SIGMA, DecodedPng, EffectRect, ZlibError, adler32, base64ToBytes, bytesToBase64, curveLut, decodePng, deflate, deflateRaw, encodePng, gaussianBlur, inflate, inflateRaw, isPng, parseDataUrl, pngDataUrl, renderLayerEffects } from '../raster/index.cjs';
11
- import { a as MixerLoad, M as MixerSettings } from '../mixer-5ziHU8OS.cjs';
12
- export { B as BrushSettings, C as CoverageMap, g as DEFAULT_BRUSH, h as DEFAULT_MIXER, D as Dab, i as DabWalker, E as EMPTY_MIXER_LOAD, b as MAX_BRUSH_SIZE, j as MIXER_DRAIN, k as MIXER_PICKUP_RATE, l as MIXING_MODELS, e as MixerStroke, d as MixerTarget, m as MixingModel, f as StrokeApply, c as StrokeCoverage, S as StrokePoint, n as applyStrokeToTile, o as cleanMixer, p as coverageTileCoord, q as dabCoverage, r as dabRect, s as loadMixer, t as normalizeBrush, u as normalizeMixer, v as rasterizeDab, w as smoothPoints, x as tipFalloff, y as tipReach, z as tipShape, A as walkDabs } from '../mixer-5ziHU8OS.cjs';
13
- export { PIGMENT_BANDS, PIGMENT_LAMBDA_MIN, PIGMENT_LAMBDA_STEP, PIGMENT_WAVELENGTHS, Pigment, PigmentOptions, PigmentRgb, createPigment, createPigmentTools, lerpPigment, lerpPigmentInto, mixPigments, reflectanceToRgb, rgbToReflectance, setPigmentColor } from '../paint/index.cjs';
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
+ import { B as BezierPath } from '../bezier-BfwIbVTl.cjs';
12
+ import { d as MixerLoad, M as MixerSettings } from '../blending-aOE6Y3UE.cjs';
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-aOE6Y3UE.cjs';
14
+ export { createPigmentTools } from '../paint/index.cjs';
14
15
  import { W as WarpStyle, a as WarpMesh, V as Vec2, Q as Quad } from '../types-CwMPoRMU.cjs';
15
16
  export { A as AffineMatrix, H as Homography } from '../types-CwMPoRMU.cjs';
16
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';
17
18
  export { a as WARP_STYLES, b as WARP_STYLE_LABELS, W as WarpPreset, d as dragWarpMeshPoint, e as evalWarpMesh, j as identityWarpMesh, p as pullWarpMesh, g as resizeWarpMesh, l as warpMeshEditPoints, n as warpMeshGridCurves, o as warpMeshParamAt, u as warpPresetMesh } from '../warp-D5jz_tN7.cjs';
19
+ import '../types-DyQq-WPY.cjs';
18
20
  import '../schema-Di0CS6Pe.cjs';
21
+ import '../types-BFkYA4eF.cjs';
19
22
 
20
23
  interface PlaneLayout {
21
24
  planes: number;
@@ -490,6 +493,9 @@ interface ImageEditorToolProviderOptions {
490
493
  * `close_smart_object_contents`, `add_smart_filter`, `update_smart_filter`, `remove_smart_filter`,
491
494
  * `move_smart_filter`, `set_smart_filters_enabled`, `set_smart_filter_mask` (see
492
495
  * `createImageSmartObjectTools`).
496
+ * - Shape layers: `get_shape_layer`, `add_shape_layer`, `update_shape`, `set_shape_component`,
497
+ * `add_shape_component`, `remove_shape_component`, `merge_shape_components` (see
498
+ * `createImageShapeTools`); `rasterize_layer` turns one into pixels.
493
499
  */
494
500
  declare function createImageEditorToolProvider(controller: ImageEditorController, options?: ImageEditorToolProviderOptions): AgentToolProvider;
495
501
 
@@ -720,7 +726,8 @@ declare function createImageCaptureSurface(controller: ImageEditorController): C
720
726
  *
721
727
  * - `layersFromLegacy` lifts a v1 / v2 state into layers: the source becomes the Background
722
728
  * pixel layer carrying the base sliders as its `develop` filter and the depth mask as its
723
- * parametric mask; adjustment layers go above it, annotations on top in their order. Blur
729
+ * parametric mask; adjustment layers go above it, annotations on top in their order (pen,
730
+ * rectangle, ellipse, line and arrow annotations as shape layers that remember them). Blur
724
731
  * becomes a `blur` filter on the Background, or `legacyOutputBlur` when adjustment layers
725
732
  * exist (blur used to run after them).
726
733
  * - `legacyView` reads the stack back as `adjustments` / `depthMask` / `annotations` (the
@@ -760,7 +767,17 @@ declare function isDefaultDepthMask(mask: DepthMaskOptions | undefined): boolean
760
767
  declare function developFromAdjustments(adjustments: ImageAdjustments): DevelopFilter;
761
768
  /** The default name of an annotation layer. */
762
769
  declare function annotationLayerName(annotation: Annotation): string;
763
- declare function annotationLayerFor(annotation: Annotation): AnnotationLayer;
770
+ /**
771
+ * The layer an annotation becomes: a shape layer that remembers it (pen, rectangle, ellipse,
772
+ * line, arrow; rendered for a `canvas` of that size), else an annotation layer (text, image, or
773
+ * a colour a shape can't hold).
774
+ */
775
+ declare function annotationLayerFor(annotation: Annotation, canvas?: {
776
+ width: number;
777
+ height: number;
778
+ }): AnnotationLayer | ShapeLayer;
779
+ /** The annotation a layer still is (an annotation layer, or a shape layer migrated from one), or `null`. */
780
+ declare function annotationOfLayer(layer: ImageLayer): Annotation | null;
764
781
  declare function adjustmentNodeFromLegacy(layer: AdjustmentLayer, width: number, height: number): AdjustmentLayerNode;
765
782
  /** The Background layer of an opened image (its pixels are the document source). */
766
783
  declare function backgroundLayer(filters?: LayerFilter[], mask?: RasterMask): PixelLayer;
@@ -843,7 +860,8 @@ declare function needsLegacyBase(input: RouteInput): boolean;
843
860
  /**
844
861
  * Splits the stack into what the compositor rasterizes and the annotation layers at the top that
845
862
  * draw as crisp vectors over the result (as annotations always did): the trailing run of plain
846
- * top-level annotation layers (hidden ones are skipped).
863
+ * top-level annotation layers and shape layers that still are the annotation they were migrated
864
+ * from (given as annotation views; hidden ones are skipped).
847
865
  */
848
866
  declare function splitOverlayAnnotations(layers: readonly ImageLayer[]): {
849
867
  composite: ImageLayer[];
@@ -1050,6 +1068,52 @@ declare function placementBounds(layer: Pick<SmartObjectLayer, 'contents' | 'pla
1050
1068
  */
1051
1069
  declare function createImageSmartObjectTools(controller: ImageEditorController): AgentTool[];
1052
1070
 
1071
+ /**
1072
+ * Agent tools for shape layers in the image editor: `get_shape_layer`, `add_shape_layer`,
1073
+ * `update_shape` (fill, stroke, fill rule), `set_shape_component`, `add_shape_component`,
1074
+ * `remove_shape_component` and `merge_shape_components`. Every write is one undo step, validates
1075
+ * first and returns the shape as it is afterwards.
1076
+ */
1077
+ declare function createImageShapeTools(controller: ImageEditorController): AgentTool[];
1078
+
1079
+ /**
1080
+ * Anti-aliased coverage of filled Bézier paths over a pixel rectangle, without a canvas. The paths
1081
+ * are flattened to lines, then rasterized one of two ways:
1082
+ *
1083
+ * - `exact` (default): each line adds its signed area to a running-sum buffer (the accumulation
1084
+ * rasterizer of font-rs, extended with clipping on every side). A pixel's coverage is the exact
1085
+ * area of the path inside it as long as the path does not overlap itself; where it does, the fill
1086
+ * rule is applied to the accumulated winding, which over-counts pixels that two overlapping
1087
+ * parts' edges both cross.
1088
+ * - `sampled`: 16 sub-rows per pixel row, each with exact horizontal coverage of the spans the
1089
+ * fill rule keeps, so overlapping parts (stroke outlines, a line's bar and arrowhead) count once.
1090
+ * Edges are within 1/32 of a pixel vertically.
1091
+ *
1092
+ * Coordinates are document pixels; pixel (x, y) covers [x, x + 1) × [y, y + 1).
1093
+ */
1094
+
1095
+ type CoverageFillRule = 'nonzero' | 'evenodd';
1096
+ /** A path as polylines (closed implicitly), document pixels: `[x0, y0, x1, y1, …]` per contour. */
1097
+ type FlatPath = Float64Array[];
1098
+ /** Flattens Bézier commands into closed polylines (every subpath is filled, so open ones close). */
1099
+ declare function flattenPath(path: BezierPath, tolerance?: number): FlatPath;
1100
+ /**
1101
+ * Coverage (0..1 per pixel, `rect.width × rect.height`, row by row) of `flat` filled with `rule`
1102
+ * over `rect`. Returns `null` when nothing in the rect is covered.
1103
+ */
1104
+ declare function rasterizeCoverage(flat: FlatPath, rect: CropBox, rule?: CoverageFillRule): Float32Array | null;
1105
+
1106
+ /**
1107
+ * CSS colours as `#rrggbb` plus alpha: hex (`#rgb`, `#rgba`, `#rrggbb`, `#rrggbbaa`), `rgb()` /
1108
+ * `rgba()`, `hsl()` / `hsla()`, `transparent` and the named colours. Annotations stored any CSS
1109
+ * colour; shape and type layers paint with hex colours and an opacity.
1110
+ */
1111
+ /** A CSS colour as `{ hex: '#rrggbb', alpha }`, or `null` when it is not one we read. */
1112
+ declare function parseCssColor(value: unknown): {
1113
+ hex: string;
1114
+ alpha: number;
1115
+ } | null;
1116
+
1053
1117
  /**
1054
1118
  * The layers panel's view model, shared by the React and Svelte panels: the rows to show (top of
1055
1119
  * the stack first, groups indented, collapsed groups hiding their children), where a drop lands,
@@ -1734,4 +1798,4 @@ declare class FreeTransformTool {
1734
1798
  key(e: ShortcutEvent): boolean;
1735
1799
  }
1736
1800
 
1737
- 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 Chromaticity, ColorDistance, CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type ConvertOptions, 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 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, 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, type ShortcutEvent, type SmartCanvas, SmartContents, SmartDocument, SmartFilter, type SmartFilterRow, SmartFilterStack, SmartObjectLayer, SmartPlacement, type SmartRenderOptions, TINT_SCALE, TONE_LUT_SIZE, TransformAnchor, type TransformHandle, type TransformModifiers, type TransformOverlay, 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, 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, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createImageSmartObjectTools, createImageTransformTools, curveLutFromLevels, curvePointToBox, curveSvgPath, decodePlanes, defaultAdjustmentParams, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, developFromAdjustments, developTarget, documentContents, downloadPsd, dropPlacement, dropZone, effectControlChange, emptyHistogram, encodeRle, evaluateAdjustmentLayers, extractNormalizedLayerItems, filterMaskCoverage, findAdjustmentControl, findLayerControl, 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, parseLfx2, parseLrfx, parsePatternBlock, parseVersionedDescriptor, photoFilterMatrix, placeContents, placementAt, placementBounds, placementGeometry, pointerPressure, posterizeValue, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdPatternToEffectPattern, quickMaskPixels, rangeLightness, rasterContents, rasterMaskFromLegacy, 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 };
1801
+ 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 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, 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, TransformAnchor, type TransformHandle, type TransformModifiers, type TransformOverlay, 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, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createImageShapeTools, createImageSmartObjectTools, createImageTransformTools, 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 };
@@ -1,21 +1,24 @@
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, q as AnnotationLayer, r as LayerFilter, s as PixelLayer, t as DevelopFilter, u as ImageTransform, v as ImageHistogram, w as ImageProjection, x as CompositorSources, y as LayerCompositor, z as SmartFilterStack, B as SmartFilter, E as SmartObjectLayer, F as SmartContents, G as SmartDocument, J as SmartPlacement, K as FreeTransformGeometry, M as LayerPlacement, N as FreeTransformMode, O as FreeTransformResult, Q as FreeTransformSession, T as FreeTransformInit, U as TransformAnchor } from '../export-a9bnF7Cl.js';
2
- export { V as AIResultOptions, W as AdjustmentLayerBase, X as AdjustmentLayerInit, Y as AdjustmentLayerUpdate, Z as AnnotationPlacement, _ as AnnotationType, $ as ArrowAnnotation, a0 as AspectRatio, a1 as BaseAnnotation, a2 as BlackWhiteParams, a3 as BlurFilter, a4 as CircleAnnotation, a5 as ColorBalanceParams, a6 as ColorBalanceTone, a7 as ColorRangeOptions, a8 as ColorRangeSample, a9 as CreateAnnotationPayload, aa as CropHandle, ab as CurvesParams, ac as DEFAULT_ADJUSTMENTS, ad as DEFAULT_DEPTH_MASK, ae as DEFAULT_REFINE_EDGE_PARAMS, af as DEFAULT_TRANSFORM, ag as DeserializeContext, ah as DevelopSettings, ai as EMPTY_DISTANCE, aj as ExportOptions, ak as FREE_TRANSFORM_CONTENTS, al as FREE_TRANSFORM_MODES, am as FillOptions, an as FreeTransformContent, ao as FreeTransformHost, ap as FreeTransformPreview, aq as GUIDED_FILTER_EPS, ar as GroupLayer, as as HISTOGRAM_BINS, at as HistogramChannel, au as HistoryEntryHandle, av as HueSaturationParams, aw as IMAGE_EDITOR_SCHEMA_VERSION, ax as ImageAnnotation, ay as ImageDimensions, az as ImageEditorAIHooks, I as ImageEditorAssetStore, aA as ImageEditorFit, aB as ImageEditorOptions, aC as ImageEditorRenderer, aD as ImageEditorState, aE as ImageEditorTool, aF as ImageLayerType, aG as InpaintHook, aH as InpaintOptions, aI as InvertParams, aJ as LAYERED_SCHEMA_VERSION, aK as LayerBase, aL as LayerBlendMode, aM as LayerFilterKind, aN as LayerLocation, aO as LayerMaskProps, aP as LayerOperationError, aQ as LayerProperties, aR as LayerSourcesHost, aS as LayerTarget, aT as LegacySerializedImageEditorState, aU as LevelsParams, aV as LineAnnotation, aW as MagicWandOptions, aX as MixerStrokeInit, aY as PSD_BLEND_KEYS, aZ as PaintOptions, a_ as PaintStrokeResult, a$ as PaintStrokeSession, b0 as PenAnnotation, b1 as PhotoFilterParams, b2 as PixelBuffer, b3 as PixelLayerInit, b4 as PosterizeParams, b5 as PsdChannel, b6 as PsdExportInput, P as PsdExportResult, b7 as PsdFile, b8 as PsdHeader, b9 as PsdImportOptions, ba as PsdImportResult, bb as PsdLayerMask, bc as PsdLayerRecord, bd as PsdLayerSummary, be as PsdRect, bf as PsdResource, bg as PsdSmartFilter, bh as PsdTaggedBlock, bi as PsdTreeNode, bj as RectAnnotation, bk as RemoveBackgroundHook, bl as RemoveBackgroundOptions, bm as RenderOptions, bn as SELECTION_MODES, bo as SELECTION_MODIFY_OPS, 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, bA as SerializedPixelLayer, bB as SerializedRasterMask, bC as SerializedSelection, bD as SerializedSmartContents, bE as SerializedSmartFilter, bF as SerializedSmartObjectLayer, bG as ShapeSelectionOptions, bH as SmartFilterKind, bI as SmartObjectInfo, bJ as SmartPsdData, bK as StrokeInit, bL as StrokeTool, bM as TONE_RANGE_PRESETS, bN as TRANSFORM_ANCHORS, bO as TextAnnotation, bP as ThresholdParams, bQ as ToneRangePreset, bR as TransformParams, bS as TransformReadout, bT as VibranceParams, bU as ViewportMetrics, bV as addLayerEffect, bW as addLayerFilter, bX as adjustmentNodeAsLayer, bY as anchorPoint, bZ as applyImageProjectionToContext, b_ as applyParams, b$ as blurFilter, c0 as borderCoverage, c1 as boxMean, c2 as boxPointOf, c3 as buildLayerMaskPlanes, c4 as calculateCropDrag, c5 as canvasToImagePoint, c6 as clampCropToImage, c7 as colorRange, c8 as combineSelections, c9 as computeHistogram, ca as computeSelectionBounds, cb as contractCoverage, cc as cornersFromMatrix, cd as coverageToByte, ce as createSelectionMask, cf as decodeLayerChannel, cg as decodeLayerMask, ch as decodeMergedImage, ci as decodePngDataUrl, cj as decodeSelectionRle, ck as depthMaskAlpha, cl as describeTransform, cm as deserializeEffects, cn as deserializeLayer, co as deserializeLayers, cp as deserializePatterns, cq as deserializeSelection, cr as developFilter, cs as distanceTransform, ct as duplicateLayer, cu as edgeWidth, cv as ellipsePoints, cw as ellipseSelection, cx as encodeSelectionRle, cy as encodeSurface, cz as expandCoverage, cA as exportPsd, cB as featherCoverage, cC as flipCorners, cD as fullSelection, cE as geometryHomography, cF as getAnnotationBounds, cG as getCropCursor, cH as getRotatedSize, cI as getViewportMetrics, cJ as getViewportProjection, cK as globalImageCache, cL as greyMorphology, cM as groupLayers, cN as guidePlanes, cO as guidedFilterColor, cP as hasSurface, cQ as hasWarp, cR as hashMaskContent, cS as histogramPath, cT as hitTestAnnotation, cU as hitTestCrop, cV as hueRange, cW as identityTransform, cX as imageToCanvasPoint, cY as importPsd, cZ as invertSelection, c_ as isActiveFilter, c$ as isIdentityTransform, d0 as isQuarterTurnSwapped, d1 as isSelectionEmpty, d2 as isSelectionMode, d3 as isSpatialFilter, d4 as isTransformAnchor, d5 as isValidWarp, d6 as layerEffectsOf, d7 as layerMaskCoverage, d8 as layerMaskFromSelection, d9 as layerMaskKey, da as layerName, db as layerTree, dc as layerTypeLabel, dd as magicWand, de as mapCropHandle, df as matrixFromCorners, dg as matrixFromParams, dh as migrateSerializedImageEditorState, di as migrateToLayeredState, dj as modifySelection, dk as moveLayer, dl as newLayerId, dm as normalizeAngle, dn as normalizeFilter, dp as normalizeLayerMask, dq as normalizeRect, dr as normalizeRefineEdgeParams, ds as normalizeStoredAdjustments, dt as offsetLayer, du as parseBlend, dv as parseColor, dw as parseSelectionMode, dx as pixelLayerBounds, dy as pixelLayers, dz as placeLayer, dA as polygonCoverage, dB as polygonSelection, dC as presetWarp, dD as previewStep, dE as projectImagePoint, dF as projectImageRect, dG as projectMaskCoverage, dH as psdToLayers, dI as readPsd, dJ as rectSelection, dK as referencePoint, dL as refineCoverage, dM as refineEdgeHalo, dN as refineSelection, dO as removeLayer, dP as removeLayerEffect, dQ as removeLayerFilter, dR as requireLayer, dS as requireUnlocked, dT as resizePixels, dU as resizeSelection, dV as resolveExternalAssets, dW as runLayerFilters, dX as selectionArea, dY as selectionFromCoverage, dZ as selectionFromPixels, d_ as selectionToCoverage, d$ as selectionToPixels, e0 as selectionValueAt, e1 as serializeContents, e2 as serializeEffects, e3 as serializeLayer, e4 as serializeLayers, e5 as serializeLayersExternal, e6 as serializePatterns, e7 as serializeSelection, e8 as setLayerEffects, e9 as setLayerEffectsEnabled, ea as setLayerMask, eb as setLayerProperties, ec as shiftCoverage, ed as smartObjectLayers, ee as smoothCoverage, ef as srgb8ToLab, eg as toHex, eh as toneRange, ei as transformHomography, ej as transformMap, ek as transformedBox, el as transformedPoint, em as ungroupLayer, en as unionRect, eo as unprojectCanvasPoint, ep as updateLayerEffect, eq as updateLayerFilter, er as updateLayerMaskProps, es as withNewIds, et as writePsd } from '../export-a9bnF7Cl.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, q as AnnotationLayer, r as ShapeLayer, s as LayerFilter, t as PixelLayer, u as DevelopFilter, v as ImageTransform, w as ImageHistogram, x as ImageProjection, y as CompositorSources, z as LayerCompositor, B as SmartFilterStack, E as SmartFilter, F as SmartObjectLayer, G as SmartContents, J as SmartDocument, K as SmartPlacement, M as FreeTransformGeometry, N as LayerPlacement, O as FreeTransformMode, Q as FreeTransformResult, T as FreeTransformSession, U as FreeTransformInit, V as TransformAnchor } from '../export-CO2ryu3I.js';
2
+ export { W as AIResultOptions, X as AdjustmentLayerBase, Y as AdjustmentLayerInit, Z as AdjustmentLayerUpdate, _ as AnnotationPlacement, $ as AnnotationType, a0 as ArrowAnnotation, a1 as AspectRatio, a2 as BaseAnnotation, a3 as BlackWhiteParams, a4 as BlurFilter, a5 as CircleAnnotation, a6 as ColorBalanceParams, a7 as ColorBalanceTone, a8 as ColorRangeOptions, a9 as ColorRangeSample, aa as CreateAnnotationPayload, ab as CropHandle, ac as CurvesParams, ad as DEFAULT_ADJUSTMENTS, ae as DEFAULT_DEPTH_MASK, af as DEFAULT_MITER_LIMIT, ag as DEFAULT_REFINE_EDGE_PARAMS, ah as DEFAULT_TRANSFORM, ai as DeserializeContext, aj as DevelopSettings, ak as EMPTY_DISTANCE, al as ExportOptions, am as FREE_TRANSFORM_CONTENTS, an as FREE_TRANSFORM_MODES, ao as FillOptions, ap as FreeTransformContent, aq as FreeTransformHost, ar as FreeTransformPreview, as as GUIDED_FILTER_EPS, at as GroupLayer, au as HISTOGRAM_BINS, av as HistogramChannel, aw as HistoryEntryHandle, ax as HueSaturationParams, ay as IMAGE_EDITOR_SCHEMA_VERSION, az as ImageAnnotation, aA as ImageDimensions, aB as ImageEditorAIHooks, I as ImageEditorAssetStore, aC as ImageEditorFit, aD as ImageEditorOptions, aE as ImageEditorRenderer, aF as ImageEditorState, aG as ImageEditorTool, aH as ImageLayerType, aI as InpaintHook, aJ as InpaintOptions, aK as InvertParams, aL as LAYERED_SCHEMA_VERSION, aM as LIVE_SHAPE_KINDS, aN as LayerBase, aO as LayerBlendMode, aP as LayerFilterKind, aQ as LayerLocation, aR as LayerMaskProps, aS as LayerOperationError, aT as LayerProperties, aU as LayerSourcesHost, aV as LayerTarget, aW as LegacySerializedImageEditorState, aX as LevelsParams, aY as LineAnnotation, aZ as LiveShape, a_ as LiveShapeKind, a$ as MagicWandOptions, b0 as MixerStrokeInit, b1 as PSD_BLEND_KEYS, b2 as PaintOptions, b3 as PaintStrokeResult, b4 as PaintStrokeSession, b5 as PenAnnotation, b6 as PhotoFilterParams, b7 as PixelBuffer, b8 as PixelLayerInit, b9 as PosterizeParams, ba as PsdChannel, bb as PsdExportInput, P as PsdExportResult, bc as PsdFile, bd as PsdHeader, be as PsdImportOptions, bf as PsdImportResult, bg as PsdLayerMask, bh as PsdLayerRecord, bi as PsdLayerSummary, bj as PsdRect, bk as PsdResource, bl as PsdSmartFilter, bm as PsdTaggedBlock, bn as PsdTreeNode, bo as RectAnnotation, bp as RemoveBackgroundHook, bq as RemoveBackgroundOptions, br as RenderOptions, bs as SELECTION_MODES, bt as SELECTION_MODIFY_OPS, bu as SHAPE_OPERATIONS, bv as SHAPE_RENDER_MARGIN, bw as SampleOptions, bx as SelectionChannel, by as SelectionCommandOptions, bz as SelectionModifyOp, bA as SerializeContext, bB as SerializedAdjustmentLayer, bC as SerializedAnnotationLayer, bD as SerializedGroupLayer, S as SerializedLayer, bE as SerializedLayerEffects, bF as SerializedLayeredImageEditorState, bG as SerializedPattern, bH as SerializedPixelLayer, bI as SerializedRasterMask, bJ as SerializedSelection, bK as SerializedShapeLayer, bL as SerializedSmartContents, bM as SerializedSmartFilter, bN as SerializedSmartObjectLayer, bO as ShapeArrowhead, bP as ShapeComponent, bQ as ShapeEnv, bR as ShapeFillRule, bS as ShapeGeometryInput, bT as ShapeLayerData, bU as ShapeLayerInfo, bV as ShapeLayerInit, bW as ShapeLineCap, bX as ShapeLineJoin, bY as ShapeOperation, bZ as ShapePaint, b_ as ShapePsdData, b$ as ShapeSelectionOptions, c0 as ShapeStroke, c1 as ShapeStrokeAlign, c2 as SmartFilterKind, c3 as SmartObjectInfo, c4 as SmartPsdData, c5 as StrokeInit, c6 as StrokeTool, c7 as TONE_RANGE_PRESETS, c8 as TRANSFORM_ANCHORS, c9 as TextAnnotation, ca as ThresholdParams, cb as ToneRangePreset, cc as TransformParams, cd as TransformReadout, ce as VibranceParams, cf as ViewportMetrics, cg as addLayerEffect, ch as addLayerFilter, ci as adjustmentNodeAsLayer, cj as anchorPoint, ck as annotationBlend, cl as annotationOfShape, cm as applyImageProjectionToContext, cn as applyParams, co as blurFilter, cp as borderCoverage, cq as boxMean, cr as boxPointOf, cs as buildLayerMaskPlanes, ct as calculateCropDrag, cu as canvasToImagePoint, cv as clampCropToImage, cw as colorRange, cx as combineSelections, cy as componentPath, cz as computeHistogram, cA as computeSelectionBounds, cB as contractCoverage, cC as cornersFromMatrix, cD as coverageToByte, cE as createSelectionMask, cF as createShapeLayer, cG as decodeLayerChannel, cH as decodeLayerMask, cI as decodeMergedImage, cJ as decodePngDataUrl, cK as decodeSelectionRle, cL as defaultShapeName, cM as depthMaskAlpha, cN as describeTransform, cO as deserializeEffects, cP as deserializeLayer, cQ as deserializeLayers, cR as deserializePatterns, cS as deserializeSelection, cT as developFilter, cU as distanceTransform, cV as duplicateLayer, cW as edgeWidth, cX as ellipsePoints, cY as ellipseSelection, cZ as encodeSelectionRle, c_ as encodeSurface, c$ as expandCoverage, d0 as exportPsd, d1 as featherCoverage, d2 as flipCorners, d3 as fullSelection, d4 as geometryHomography, d5 as getAnnotationBounds, d6 as getCropCursor, d7 as getRotatedSize, d8 as getViewportMetrics, d9 as getViewportProjection, da as globalImageCache, db as greyMorphology, dc as groupLayers, dd as guidePlanes, de as guidedFilterColor, df as hasSurface, dg as hasWarp, dh as hashMaskContent, di as histogramPath, dj as hitTestAnnotation, dk as hitTestCrop, dl as hueRange, dm as identityTransform, dn as imageToCanvasPoint, dp as importPsd, dq as invertSelection, dr as isActiveFilter, ds as isIdentityTransform, dt as isQuarterTurnSwapped, du as isRenderedLayer, dv as isSelectionEmpty, dw as isSelectionMode, dx as isSpatialFilter, dy as isTransformAnchor, dz as isValidWarp, dA as layerEffectsOf, dB as layerMaskCoverage, dC as layerMaskFromSelection, dD as layerMaskKey, dE as layerName, dF as layerTree, dG as layerTypeLabel, dH as liveComponent, dI as liveShapeSubpaths, dJ as magicWand, dK as mapCropHandle, dL as mapSubpaths, dM as matrixFromCorners, dN as matrixFromParams, dO as mergeShapeComponents, dP as migrateSerializedImageEditorState, dQ as migrateToLayeredState, dR as modifySelection, dS as moveLayer, dT as newLayerId, dU as normalizeAngle, dV as normalizeFilter, dW as normalizeLayerMask, dX as normalizeLiveShape, dY as normalizeRect, dZ as normalizeRefineEdgeParams, d_ as normalizeShapePaint, d$ as normalizeShapeStroke, e0 as normalizeStoredAdjustments, e1 as normalizeSubpaths, e2 as offsetLayer, e3 as offsetShape, e4 as parseBlend, e5 as parseColor, e6 as parseSelectionMode, e7 as pixelLayerBounds, e8 as pixelLayers, e9 as placeLayer, ea as polygonCoverage, eb as polygonSelection, ec as presetWarp, ed as previewStep, ee as projectImagePoint, ef as projectImageRect, eg as projectMaskCoverage, eh as psdToLayers, ei as readPsd, ej as rectSelection, ek as referencePoint, el as refineCoverage, em as refineEdgeHalo, en as refineSelection, eo as removeLayer, ep as removeLayerEffect, eq as removeLayerFilter, er as renderShape, es as renderShapeRect, et as requireLayer, eu as requireOperation, ev as requireShapeLayer, ew as requireUnlocked, ex as rerenderShape, ey as resizePixels, ez as resizeSelection, eA as resolveExternalAssets, eB as runLayerFilters, eC as selectionArea, eD as selectionFromCoverage, eE as selectionFromPixels, eF as selectionToCoverage, eG as selectionToPixels, eH as selectionValueAt, eI as serializeContents, eJ as serializeEffects, eK as serializeLayer, eL as serializeLayers, eM as serializeLayersExternal, eN as serializePatterns, eO as serializeSelection, eP as setLayerEffects, eQ as setLayerEffectsEnabled, eR as setLayerMask, eS as setLayerProperties, eT as shapeAsPixelLayer, eU as shapeFromAnnotation, eV as shapeGeometryBounds, eW as shapeLayers, eX as shapeOutline, eY as shapeRenderClip, eZ as shiftCoverage, e_ as smartObjectLayers, e$ as smoothCoverage, f0 as srgb8ToLab, f1 as toHex, f2 as toneRange, f3 as transformHomography, f4 as transformMap, f5 as transformShapeComponents, f6 as transformedBox, f7 as transformedPoint, f8 as ungroupLayer, f9 as unionRect, fa as unprojectCanvasPoint, fb as updateLayerEffect, fc as updateLayerFilter, fd as updateLayerMaskProps, fe as updateShapeLayer, ff as withNewIds, fg as writePsd } from '../export-CO2ryu3I.js';
3
3
  import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.js';
4
- import { B as BlendMode, P as PixelSurface, R as RasterRect } from '../surface-CkKOHGPm.js';
5
- export { c as BLEND_MODES, b as BlendModeInfo, M as MaskSurface, d as PAINTERLY_BLEND_MODES, g as Rgb, h as Rgba, S as SHADOW_AMBIENT, j as SurfaceDraft, k as TILE, l as TILE_SHIFT, e as Tile, T as TileKey, a as TiledSurface, m as blendChannel, n as blendImageData, o as blendLum, p as blendPixel, q as blendRgb, r as canvasCompositeOperation, t as collectTiles, u as contentBounds, v as emptySurface, w as fillRect, x as finishTile, i as isBlendMode, f as isPainterlyBlendMode, y as isSeparableBlendMode, z as mixPigment8, A as mixPigmentRgb, C as normalizeBlendMode, D as packRgba, E as readPixel, F as readRegion, G as setLum, H as solidSurface, s as standardBlendMode, I as surfaceBytes, J as surfaceFromPixels, K as surfacesEqual, L as tileCoord, N as tileKey, O as tileRect, Q as tilesInRect, U as translateSurface, V as uniformTile, W as writeRegion } from '../surface-CkKOHGPm.js';
4
+ import { B as BlendMode, b as PixelSurface, R as RasterRect } from '../surface-C8RRg_Bh.js';
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';
6
6
  import { a as AgentToolProvider, A as AgentTool } from '../registry-D-4fit9C.js';
7
- import { j as LayerEffects, l as LayerEffectKind, i as LayerEffect, E as EffectPattern, I as Interpolation } from '../compositor-Kt_M4ruo.js';
8
- export { B as BevelContour, m as BevelEmbossEffect, n as BevelStyle, o as BevelTechnique, p as BevelTexture, q as ColorOverlayEffect, r as CompositeCallOptions, s as CompositeStats, k as CompositorOptions, t as ContourPoint, D as DEFAULT_GLOBAL_LIGHT, u as DropShadowEffect, v as EffectContour, w as EffectFill, x as EffectGradient, y as EffectPatternRef, g as GlobalLight, z as GlowTechnique, A as GradientColorStop, F as GradientOpacityStop, H as GradientOverlayEffect, J as GradientStyle, K as INTERPOLATIONS, M as InnerGlowEffect, N as InnerShadowEffect, O as LAYER_EFFECT_KINDS, P as LayerEffectError, L as LayerLocks, Q as MAX_EFFECT_REACH, S as MAX_TRANSFORM_PIXELS, T as OuterGlowEffect, U as PatternOverlayEffect, V as PatternPlacement, W as PatternTile, X as ResampleOptions, Y as SatinEffect, Z as StrokeEffect, _ as StrokePosition, $ as TransformTooLargeError, a0 as blendTile, a1 as builtinPattern, a2 as builtinPatternIds, a3 as changedTiles, a4 as compositeSurfaceOver, a5 as defaultEffectGradient, a6 as defaultLayerEffect, a7 as effectColorHex, a8 as effectReach, a9 as effectsFingerprint, aa as effectsMargin, ab as effectsScale, ac as findLayer, ad as flattenLayers, ae as hasActiveEffects, af as hashNoise, ag as insertLayer, ah as isInterpolation, ai as isLayerEffectKind, aj as isLayerLocked, ak as keysWeight, al as layerEffectFields, am as layerEffectLabel, an as mapLayer, ao as mergeLayerEffect, ap as newEffectId, aq as normalizeLayerEffects, ar as parseEffectColor, as as reduceSurface, at as scaleLayerEffect, au as transformSurface, av as transformedBounds, aw as validateEffectGradient, ax as validateLayerEffect, ay as validateLayerEffects, az as warpSurface } from '../compositor-Kt_M4ruo.js';
7
+ import { k as LayerEffects, m as LayerEffectKind, j as LayerEffect, h as EffectPattern, I as Interpolation } from '../render-tjzKaik-.js';
8
+ export { B as BevelContour, o as BevelEmbossEffect, p as BevelStyle, q as BevelTechnique, r as BevelTexture, s as ColorOverlayEffect, t as CompositeCallOptions, u as CompositeStats, l as CompositorOptions, v as ContourPoint, D as DEFAULT_GLOBAL_LIGHT, w as DropShadowEffect, x as EffectContour, E as EffectFill, y as EffectGradient, z as EffectPatternRef, A as EffectRect, g as GlobalLight, F as GlowTechnique, H as GradientColorStop, J as GradientOpacityStop, K as GradientOverlayEffect, M as GradientStyle, N as INTERPOLATIONS, O as InnerGlowEffect, P as InnerShadowEffect, Q as LAYER_EFFECT_KINDS, S as LayerEffectError, L as LayerLocks, T as MAX_EFFECT_REACH, U as MAX_TRANSFORM_PIXELS, V as OuterGlowEffect, W as PatternOverlayEffect, X as PatternPlacement, Y as PatternTile, Z as ResampleOptions, _ as SatinEffect, $ as StrokeEffect, a0 as StrokePosition, a1 as TransformTooLargeError, a2 as blendTile, a3 as builtinPattern, a4 as builtinPatternIds, a5 as changedTiles, a6 as compositeSurfaceOver, a7 as defaultEffectGradient, a8 as defaultLayerEffect, a9 as effectColorHex, aa as effectReach, ab as effectsFingerprint, ac as effectsMargin, ad as effectsScale, ae as findLayer, af as flattenLayers, ag as hasActiveEffects, ah as hashNoise, ai as insertLayer, aj as isInterpolation, ak as isLayerEffectKind, al as isLayerLocked, am as keysWeight, an as layerEffectFields, ao as layerEffectLabel, ap as mapLayer, aq as mergeLayerEffect, ar as newEffectId, as as normalizeLayerEffects, at as parseEffectColor, au as reduceSurface, av as renderLayerEffects, aw as scaleLayerEffect, ax as transformSurface, ay as transformedBounds, az as validateEffectGradient, aA as validateLayerEffect, aB as validateLayerEffects, aC as warpSurface } from '../render-tjzKaik-.js';
9
9
  import { b as CaptureSurface } from '../capture-wwNGaW05.js';
10
- export { DIRECT_GAUSSIAN_MAX_SIGMA, DecodedPng, EffectRect, ZlibError, adler32, base64ToBytes, bytesToBase64, curveLut, decodePng, deflate, deflateRaw, encodePng, gaussianBlur, inflate, inflateRaw, isPng, parseDataUrl, pngDataUrl, renderLayerEffects } from '../raster/index.js';
11
- import { a as MixerLoad, M as MixerSettings } from '../mixer-DNqiYXYQ.js';
12
- export { B as BrushSettings, C as CoverageMap, g as DEFAULT_BRUSH, h as DEFAULT_MIXER, D as Dab, i as DabWalker, E as EMPTY_MIXER_LOAD, b as MAX_BRUSH_SIZE, j as MIXER_DRAIN, k as MIXER_PICKUP_RATE, l as MIXING_MODELS, e as MixerStroke, d as MixerTarget, m as MixingModel, f as StrokeApply, c as StrokeCoverage, S as StrokePoint, n as applyStrokeToTile, o as cleanMixer, p as coverageTileCoord, q as dabCoverage, r as dabRect, s as loadMixer, t as normalizeBrush, u as normalizeMixer, v as rasterizeDab, w as smoothPoints, x as tipFalloff, y as tipReach, z as tipShape, A as walkDabs } from '../mixer-DNqiYXYQ.js';
13
- export { PIGMENT_BANDS, PIGMENT_LAMBDA_MIN, PIGMENT_LAMBDA_STEP, PIGMENT_WAVELENGTHS, Pigment, PigmentOptions, PigmentRgb, createPigment, createPigmentTools, lerpPigment, lerpPigmentInto, mixPigments, reflectanceToRgb, rgbToReflectance, setPigmentColor } from '../paint/index.js';
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
+ 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';
14
15
  import { W as WarpStyle, a as WarpMesh, V as Vec2, Q as Quad } from '../types-CwMPoRMU.js';
15
16
  export { A as AffineMatrix, H as Homography } from '../types-CwMPoRMU.js';
16
17
  export { a as applyHomography, c as boxQuad, d as homographyFromAffine, h as homographyFromPoints, i as invertHomography, r as rectToQuad } from '../homography-Ctfjoc1b.js';
17
18
  export { a as WARP_STYLES, b as WARP_STYLE_LABELS, W as WarpPreset, d as dragWarpMeshPoint, e as evalWarpMesh, j as identityWarpMesh, p as pullWarpMesh, g as resizeWarpMesh, l as warpMeshEditPoints, n as warpMeshGridCurves, o as warpMeshParamAt, u as warpPresetMesh } from '../warp-CWHZzE3x.js';
19
+ import '../types-DtL_qLFz.js';
18
20
  import '../schema-Di0CS6Pe.js';
21
+ import '../types-BFkYA4eF.js';
19
22
 
20
23
  interface PlaneLayout {
21
24
  planes: number;
@@ -490,6 +493,9 @@ interface ImageEditorToolProviderOptions {
490
493
  * `close_smart_object_contents`, `add_smart_filter`, `update_smart_filter`, `remove_smart_filter`,
491
494
  * `move_smart_filter`, `set_smart_filters_enabled`, `set_smart_filter_mask` (see
492
495
  * `createImageSmartObjectTools`).
496
+ * - Shape layers: `get_shape_layer`, `add_shape_layer`, `update_shape`, `set_shape_component`,
497
+ * `add_shape_component`, `remove_shape_component`, `merge_shape_components` (see
498
+ * `createImageShapeTools`); `rasterize_layer` turns one into pixels.
493
499
  */
494
500
  declare function createImageEditorToolProvider(controller: ImageEditorController, options?: ImageEditorToolProviderOptions): AgentToolProvider;
495
501
 
@@ -720,7 +726,8 @@ declare function createImageCaptureSurface(controller: ImageEditorController): C
720
726
  *
721
727
  * - `layersFromLegacy` lifts a v1 / v2 state into layers: the source becomes the Background
722
728
  * pixel layer carrying the base sliders as its `develop` filter and the depth mask as its
723
- * parametric mask; adjustment layers go above it, annotations on top in their order. Blur
729
+ * parametric mask; adjustment layers go above it, annotations on top in their order (pen,
730
+ * rectangle, ellipse, line and arrow annotations as shape layers that remember them). Blur
724
731
  * becomes a `blur` filter on the Background, or `legacyOutputBlur` when adjustment layers
725
732
  * exist (blur used to run after them).
726
733
  * - `legacyView` reads the stack back as `adjustments` / `depthMask` / `annotations` (the
@@ -760,7 +767,17 @@ declare function isDefaultDepthMask(mask: DepthMaskOptions | undefined): boolean
760
767
  declare function developFromAdjustments(adjustments: ImageAdjustments): DevelopFilter;
761
768
  /** The default name of an annotation layer. */
762
769
  declare function annotationLayerName(annotation: Annotation): string;
763
- declare function annotationLayerFor(annotation: Annotation): AnnotationLayer;
770
+ /**
771
+ * The layer an annotation becomes: a shape layer that remembers it (pen, rectangle, ellipse,
772
+ * line, arrow; rendered for a `canvas` of that size), else an annotation layer (text, image, or
773
+ * a colour a shape can't hold).
774
+ */
775
+ declare function annotationLayerFor(annotation: Annotation, canvas?: {
776
+ width: number;
777
+ height: number;
778
+ }): AnnotationLayer | ShapeLayer;
779
+ /** The annotation a layer still is (an annotation layer, or a shape layer migrated from one), or `null`. */
780
+ declare function annotationOfLayer(layer: ImageLayer): Annotation | null;
764
781
  declare function adjustmentNodeFromLegacy(layer: AdjustmentLayer, width: number, height: number): AdjustmentLayerNode;
765
782
  /** The Background layer of an opened image (its pixels are the document source). */
766
783
  declare function backgroundLayer(filters?: LayerFilter[], mask?: RasterMask): PixelLayer;
@@ -843,7 +860,8 @@ declare function needsLegacyBase(input: RouteInput): boolean;
843
860
  /**
844
861
  * Splits the stack into what the compositor rasterizes and the annotation layers at the top that
845
862
  * draw as crisp vectors over the result (as annotations always did): the trailing run of plain
846
- * top-level annotation layers (hidden ones are skipped).
863
+ * top-level annotation layers and shape layers that still are the annotation they were migrated
864
+ * from (given as annotation views; hidden ones are skipped).
847
865
  */
848
866
  declare function splitOverlayAnnotations(layers: readonly ImageLayer[]): {
849
867
  composite: ImageLayer[];
@@ -1050,6 +1068,52 @@ declare function placementBounds(layer: Pick<SmartObjectLayer, 'contents' | 'pla
1050
1068
  */
1051
1069
  declare function createImageSmartObjectTools(controller: ImageEditorController): AgentTool[];
1052
1070
 
1071
+ /**
1072
+ * Agent tools for shape layers in the image editor: `get_shape_layer`, `add_shape_layer`,
1073
+ * `update_shape` (fill, stroke, fill rule), `set_shape_component`, `add_shape_component`,
1074
+ * `remove_shape_component` and `merge_shape_components`. Every write is one undo step, validates
1075
+ * first and returns the shape as it is afterwards.
1076
+ */
1077
+ declare function createImageShapeTools(controller: ImageEditorController): AgentTool[];
1078
+
1079
+ /**
1080
+ * Anti-aliased coverage of filled Bézier paths over a pixel rectangle, without a canvas. The paths
1081
+ * are flattened to lines, then rasterized one of two ways:
1082
+ *
1083
+ * - `exact` (default): each line adds its signed area to a running-sum buffer (the accumulation
1084
+ * rasterizer of font-rs, extended with clipping on every side). A pixel's coverage is the exact
1085
+ * area of the path inside it as long as the path does not overlap itself; where it does, the fill
1086
+ * rule is applied to the accumulated winding, which over-counts pixels that two overlapping
1087
+ * parts' edges both cross.
1088
+ * - `sampled`: 16 sub-rows per pixel row, each with exact horizontal coverage of the spans the
1089
+ * fill rule keeps, so overlapping parts (stroke outlines, a line's bar and arrowhead) count once.
1090
+ * Edges are within 1/32 of a pixel vertically.
1091
+ *
1092
+ * Coordinates are document pixels; pixel (x, y) covers [x, x + 1) × [y, y + 1).
1093
+ */
1094
+
1095
+ type CoverageFillRule = 'nonzero' | 'evenodd';
1096
+ /** A path as polylines (closed implicitly), document pixels: `[x0, y0, x1, y1, …]` per contour. */
1097
+ type FlatPath = Float64Array[];
1098
+ /** Flattens Bézier commands into closed polylines (every subpath is filled, so open ones close). */
1099
+ declare function flattenPath(path: BezierPath, tolerance?: number): FlatPath;
1100
+ /**
1101
+ * Coverage (0..1 per pixel, `rect.width × rect.height`, row by row) of `flat` filled with `rule`
1102
+ * over `rect`. Returns `null` when nothing in the rect is covered.
1103
+ */
1104
+ declare function rasterizeCoverage(flat: FlatPath, rect: CropBox, rule?: CoverageFillRule): Float32Array | null;
1105
+
1106
+ /**
1107
+ * CSS colours as `#rrggbb` plus alpha: hex (`#rgb`, `#rgba`, `#rrggbb`, `#rrggbbaa`), `rgb()` /
1108
+ * `rgba()`, `hsl()` / `hsla()`, `transparent` and the named colours. Annotations stored any CSS
1109
+ * colour; shape and type layers paint with hex colours and an opacity.
1110
+ */
1111
+ /** A CSS colour as `{ hex: '#rrggbb', alpha }`, or `null` when it is not one we read. */
1112
+ declare function parseCssColor(value: unknown): {
1113
+ hex: string;
1114
+ alpha: number;
1115
+ } | null;
1116
+
1053
1117
  /**
1054
1118
  * The layers panel's view model, shared by the React and Svelte panels: the rows to show (top of
1055
1119
  * the stack first, groups indented, collapsed groups hiding their children), where a drop lands,
@@ -1734,4 +1798,4 @@ declare class FreeTransformTool {
1734
1798
  key(e: ShortcutEvent): boolean;
1735
1799
  }
1736
1800
 
1737
- 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 Chromaticity, ColorDistance, CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type ConvertOptions, 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 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, 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, type ShortcutEvent, type SmartCanvas, SmartContents, SmartDocument, SmartFilter, type SmartFilterRow, SmartFilterStack, SmartObjectLayer, SmartPlacement, type SmartRenderOptions, TINT_SCALE, TONE_LUT_SIZE, TransformAnchor, type TransformHandle, type TransformModifiers, type TransformOverlay, 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, 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, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createImageSmartObjectTools, createImageTransformTools, curveLutFromLevels, curvePointToBox, curveSvgPath, decodePlanes, defaultAdjustmentParams, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, developFromAdjustments, developTarget, documentContents, downloadPsd, dropPlacement, dropZone, effectControlChange, emptyHistogram, encodeRle, evaluateAdjustmentLayers, extractNormalizedLayerItems, filterMaskCoverage, findAdjustmentControl, findLayerControl, 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, parseLfx2, parseLrfx, parsePatternBlock, parseVersionedDescriptor, photoFilterMatrix, placeContents, placementAt, placementBounds, placementGeometry, pointerPressure, posterizeValue, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdPatternToEffectPattern, quickMaskPixels, rangeLightness, rasterContents, rasterMaskFromLegacy, 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 };
1801
+ 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 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, 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, TransformAnchor, type TransformHandle, type TransformModifiers, type TransformOverlay, 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, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createImageShapeTools, createImageSmartObjectTools, createImageTransformTools, 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 };