@pixerate/editor 0.112.0 → 0.114.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +11 -0
- package/dist/animation-editor/index.cjs +60 -54
- package/dist/animation-editor/index.cjs.map +1 -1
- package/dist/animation-editor/index.d.cts +3 -3
- package/dist/animation-editor/index.d.ts +3 -3
- package/dist/animation-editor/index.js +14 -8
- package/dist/animation-editor/index.js.map +1 -1
- package/dist/builtin-CY97ppKM.d.cts +354 -0
- package/dist/builtin-CY97ppKM.d.ts +354 -0
- package/dist/canvas/index.cjs +3 -3
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.js +9 -9
- package/dist/chunk-26PGXHY7.cjs +753 -0
- package/dist/chunk-26PGXHY7.cjs.map +1 -0
- package/dist/chunk-2OJACTPR.cjs +929 -0
- package/dist/chunk-2OJACTPR.cjs.map +1 -0
- package/dist/chunk-3UFGNHSP.js +929 -0
- package/dist/chunk-3UFGNHSP.js.map +1 -0
- package/dist/{chunk-YGIMK4NX.cjs → chunk-5OVJHMZQ.cjs} +757 -825
- package/dist/chunk-5OVJHMZQ.cjs.map +1 -0
- package/dist/chunk-643B2HKC.cjs +534 -0
- package/dist/chunk-643B2HKC.cjs.map +1 -0
- package/dist/chunk-6FCKOS2B.js +534 -0
- package/dist/chunk-6FCKOS2B.js.map +1 -0
- package/dist/chunk-BRLYOPLT.js +2574 -0
- package/dist/chunk-BRLYOPLT.js.map +1 -0
- package/dist/{chunk-LQEEDHOP.js → chunk-C6C5PDKU.js} +759 -761
- package/dist/chunk-C6C5PDKU.js.map +1 -0
- package/dist/chunk-DFQEX3AM.cjs +781 -0
- package/dist/chunk-DFQEX3AM.cjs.map +1 -0
- package/dist/{chunk-CZOXTEMN.js → chunk-EUVSQ25B.js} +336 -404
- package/dist/chunk-EUVSQ25B.js.map +1 -0
- package/dist/chunk-G5NMLUVF.cjs +2574 -0
- package/dist/chunk-G5NMLUVF.cjs.map +1 -0
- package/dist/chunk-LKCYANMW.js +781 -0
- package/dist/chunk-LKCYANMW.js.map +1 -0
- package/dist/{chunk-W3GXSUSQ.cjs → chunk-LPLCWZTM.cjs} +5087 -1283
- package/dist/chunk-LPLCWZTM.cjs.map +1 -0
- package/dist/chunk-MMVHBKMM.js +753 -0
- package/dist/chunk-MMVHBKMM.js.map +1 -0
- package/dist/{chunk-POGBUYWE.cjs → chunk-ST7E3NEE.cjs} +857 -859
- package/dist/chunk-ST7E3NEE.cjs.map +1 -0
- package/dist/{chunk-7VOHOPLW.cjs → chunk-TCKIXI46.cjs} +59 -59
- package/dist/{chunk-7VOHOPLW.cjs.map → chunk-TCKIXI46.cjs.map} +1 -1
- package/dist/{chunk-XIOMMGPD.cjs → chunk-TFOPHZ3U.cjs} +1 -1
- package/dist/chunk-TFOPHZ3U.cjs.map +1 -0
- package/dist/{chunk-Z4BC6M74.js → chunk-UBIXVXPR.js} +2 -2
- package/dist/{chunk-BLWCAQCW.js → chunk-VXR7XWMF.js} +4574 -770
- package/dist/chunk-VXR7XWMF.js.map +1 -0
- package/dist/{chunk-HNS7UHCM.js → chunk-XK5LZKBD.js} +1 -1
- package/dist/chunk-XK5LZKBD.js.map +1 -0
- package/dist/cms/index.cjs +146 -0
- package/dist/cms/index.cjs.map +1 -0
- package/dist/cms/index.d.cts +51 -0
- package/dist/cms/index.d.ts +51 -0
- package/dist/cms/index.js +146 -0
- package/dist/{export-DNu_Jr8p.d.ts → export-_1dUKwpF.d.ts} +326 -195
- package/dist/{export-DBba-buV.d.cts → export-b6NjCZ5-.d.cts} +326 -195
- package/dist/image-editor/index.cjs +2377 -1291
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +149 -97
- package/dist/image-editor/index.d.ts +149 -97
- package/dist/image-editor/index.js +1343 -257
- package/dist/image-editor/index.js.map +1 -1
- package/dist/opentype-BZEOSOX3.d.ts +188 -0
- package/dist/opentype-Dpe75vL5.d.cts +188 -0
- package/dist/paint/index.cjs +63 -4
- package/dist/paint/index.cjs.map +1 -1
- package/dist/paint/index.d.cts +30 -3
- package/dist/paint/index.d.ts +30 -3
- package/dist/paint/index.js +62 -3
- package/dist/paint-editor/index.cjs +146 -145
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +9 -8
- package/dist/paint-editor/index.d.ts +9 -8
- package/dist/paint-editor/index.js +6 -5
- package/dist/paint-editor/index.js.map +1 -1
- package/dist/raster/index.cjs +53 -3
- package/dist/raster/index.cjs.map +1 -1
- package/dist/raster/index.d.cts +62 -91
- package/dist/raster/index.d.ts +62 -91
- package/dist/raster/index.js +59 -9
- package/dist/{render-BEriFuqK.d.cts → render-B1K_OoLy.d.cts} +87 -2
- package/dist/{render-tjzKaik-.d.ts → render-CrmHOgpo.d.ts} +87 -2
- package/dist/{blending-aOE6Y3UE.d.cts → retouch-Bxkuc0KH.d.cts} +219 -2
- package/dist/{blending-DXl06NSx.d.ts → retouch-Do6tBs2H.d.ts} +219 -2
- package/dist/{surface-C8RRg_Bh.d.ts → surface-Cn30xIV6.d.cts} +6 -1
- package/dist/{surface-C8RRg_Bh.d.cts → surface-Cn30xIV6.d.ts} +6 -1
- package/dist/{svg-D_cfkhlB.d.cts → svg-BnRj0q8i.d.cts} +16 -4
- package/dist/{svg-wIaKLrU0.d.ts → svg-CmmBFfGT.d.ts} +16 -4
- package/dist/{types-DtL_qLFz.d.ts → types-1SUQKDAw.d.ts} +273 -4
- package/dist/{types-DyQq-WPY.d.cts → types-yINF17Ta.d.cts} +273 -4
- package/dist/vector/index.cjs +12170 -7343
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +1579 -16
- package/dist/vector/index.d.ts +1579 -16
- package/dist/vector/index.js +6303 -1476
- package/dist/vector/index.js.map +1 -1
- package/dist/warp-B39VsOtd.d.cts +348 -0
- package/dist/warp-DMN30aY6.d.ts +348 -0
- package/dist/zlib-dxQdgHyN.d.cts +95 -0
- package/dist/zlib-dxQdgHyN.d.ts +95 -0
- package/package.json +6 -1
- package/skills/pixerate-image-editor/SKILL.md +34 -34
- package/skills/pixerate-image-editor/references/color-management.md +37 -0
- package/skills/pixerate-image-editor/references/photoshop-files.md +39 -0
- package/skills/pixerate-image-editor/references/retouching.md +36 -0
- package/skills/pixerate-vector/SKILL.md +154 -5
- package/dist/chunk-BLWCAQCW.js.map +0 -1
- package/dist/chunk-CZOXTEMN.js.map +0 -1
- package/dist/chunk-FTBZPI77.cjs +0 -1
- package/dist/chunk-FTBZPI77.cjs.map +0 -1
- package/dist/chunk-HNS7UHCM.js.map +0 -1
- package/dist/chunk-JLYX4V57.cjs +0 -2001
- package/dist/chunk-JLYX4V57.cjs.map +0 -1
- package/dist/chunk-KB2YBCVS.js +0 -2001
- package/dist/chunk-KB2YBCVS.js.map +0 -1
- package/dist/chunk-LQEEDHOP.js.map +0 -1
- package/dist/chunk-POGBUYWE.cjs.map +0 -1
- package/dist/chunk-VKK5VS2T.js +0 -1
- package/dist/chunk-W3GXSUSQ.cjs.map +0 -1
- package/dist/chunk-XIOMMGPD.cjs.map +0 -1
- package/dist/chunk-YGIMK4NX.cjs.map +0 -1
- package/dist/homography-CZ-tFjay.d.cts +0 -50
- package/dist/homography-Ctfjoc1b.d.ts +0 -50
- package/dist/warp-CWHZzE3x.d.ts +0 -118
- package/dist/warp-D5jz_tN7.d.cts +0 -118
- /package/dist/{chunk-Z4BC6M74.js.map → chunk-UBIXVXPR.js.map} +0 -0
- /package/dist/{chunk-VKK5VS2T.js.map → cms/index.js.map} +0 -0
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as SmartFilterStack, F as SmartFilter, G as SmartObjectLayer, J as SmartContents, K as SmartDocument, M as SmartPlacement, N as FreeTransformGeometry, O as
|
|
2
|
-
export {
|
|
1
|
+
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as SmartFilterStack, F as SmartFilter, G as SmartObjectLayer, J as SmartContents, K as SmartDocument, M as SmartPlacement, N as FreeTransformGeometry, O as LiveShapeKind, Q as TypeLayerInfo, U as LayerPlacement, V as FreeTransformMode, W as FreeTransformResult, X as FreeTransformSession, Y as FreeTransformInit, Z as TransformAnchor } from '../export-b6NjCZ5-.cjs';
|
|
2
|
+
export { _ as AIResultOptions, $ as AdjustmentLayerBase, a0 as AdjustmentLayerInit, a1 as AdjustmentLayerUpdate, a2 as AnnotationPlacement, a3 as AnnotationType, a4 as ArrowAnnotation, a5 as AspectRatio, a6 as BaseAnnotation, a7 as BlackWhiteParams, a8 as BlurFilter, a9 as CircleAnnotation, aa as CloneSource, ab as ColorBalanceParams, ac as ColorBalanceTone, ad as ColorRangeOptions, ae as ColorRangeSample, af as CreateAnnotationPayload, ag as CropHandle, ah as CurvesParams, ai as DEFAULT_ADJUSTMENTS, aj as DEFAULT_DEPTH_MASK, ak as DEFAULT_MITER_LIMIT, al as DEFAULT_PROOF, am as DEFAULT_REFINE_EDGE_PARAMS, an as DEFAULT_TRANSFORM, ao as DeserializeContext, ap as DevelopSettings, aq as DocumentColorProfile, ar as EMPTY_DISTANCE, as as ExportOptions, at as FREE_TRANSFORM_CONTENTS, au as FREE_TRANSFORM_MODES, av as FillOptions, aw as FreeTransformContent, ax as FreeTransformHost, ay as FreeTransformPreview, az as GUIDED_FILTER_EPS, aA as GroupLayer, aB as HISTOGRAM_BINS, aC as HistogramChannel, aD as HistoryEntryHandle, aE as HueSaturationParams, aF as IMAGE_EDITOR_SCHEMA_VERSION, aG as ImageAnnotation, aH as ImageDimensions, aI as ImageEditorAIHooks, I as ImageEditorAssetStore, aJ as ImageEditorFit, aK as ImageEditorOptions, aL as ImageEditorRenderer, aM as ImageEditorState, aN as ImageEditorTool, aO as ImageLayerType, aP as InpaintHook, aQ as InpaintOptions, aR as InvertParams, aS as LAYERED_SCHEMA_VERSION, aT as LIVE_SHAPE_KINDS, aU as LayerBase, aV as LayerBlendMode, aW as LayerFilterKind, aX as LayerLocation, aY as LayerMaskProps, aZ as LayerOperationError, a_ as LayerProperties, a$ as LayerSourcesHost, b0 as LayerTarget, b1 as LegacySerializedImageEditorState, b2 as LevelsParams, b3 as LineAnnotation, b4 as LiveShape, b5 as MagicWandOptions, b6 as MixerStrokeInit, b7 as PARAGRAPH_STYLE_FIELDS, b8 as PSD_BLEND_KEYS, b9 as PaintOptions, ba as PaintStrokeResult, bb as PaintStrokeSession, bc as PenAnnotation, bd as PhotoFilterParams, be as PixelBuffer, bf as PixelLayerInit, bg as PixelTransform, bh as PosterizeParams, bi as ProofSetup, bj as PsdChannel, bk as PsdExportInput, P as PsdExportResult, bl as PsdFile, bm as PsdHeader, bn as PsdImportOptions, bo as PsdImportResult, bp as PsdLayerMask, bq as PsdLayerRecord, br as PsdLayerSummary, bs as PsdRect, bt as PsdResource, bu as PsdSmartFilter, bv as PsdTaggedBlock, bw as PsdTreeNode, bx as RETOUCH_TOOLS, by as RectAnnotation, bz as RemoveBackgroundHook, bA as RemoveBackgroundOptions, bB as RenderOptions, bC as RetouchStrokeInit, bD as RetouchTool, bE as SELECTION_MODES, bF as SELECTION_MODIFY_OPS, bG as SHAPE_OPERATIONS, bH as SHAPE_RENDER_MARGIN, bI as SampleOptions, bJ as SelectionChannel, bK as SelectionCommandOptions, bL as SelectionModifyOp, bM as SerializeContext, bN as SerializedAdjustmentLayer, bO as SerializedAnnotationLayer, bP as SerializedColorProfile, bQ as SerializedDeepPixels, bR as SerializedGroupLayer, S as SerializedLayer, bS as SerializedLayerEffects, bT as SerializedLayeredImageEditorState, bU as SerializedPattern, bV as SerializedPixelLayer, bW as SerializedRasterMask, bX as SerializedSelection, bY as SerializedShapeLayer, bZ as SerializedSmartContents, b_ as SerializedSmartFilter, b$ as SerializedSmartObjectLayer, c0 as SerializedTypeLayer, c1 as ShapeArrowhead, c2 as ShapeComponent, c3 as ShapeEnv, c4 as ShapeFillRule, c5 as ShapeGeometryInput, c6 as ShapeLayerData, c7 as ShapeLayerInfo, c8 as ShapeLayerInit, c9 as ShapeLineCap, ca as ShapeLineJoin, cb as ShapeOperation, cc as ShapePaint, cd as ShapePsdData, ce as ShapeSelectionOptions, cf as ShapeStroke, cg as ShapeStrokeAlign, ch as ShapeStrokeInput, ci as SmartFilterKind, cj as SmartObjectInfo, ck as SmartPsdData, cl as StrokeInit, cm as StrokeTool, cn as TEXT_RENDER_MARGIN, co as TEXT_STYLE_FIELDS, cp as TONE_RANGE_PRESETS, cq as TRANSFORM_ANCHORS, cr as TextAnnotation, cs as TextLayerInit, ct as ThresholdParams, cu as ToneRangePreset, cv as TransformParams, cw as TransformReadout, cx as TypeLayerData, cy as TypePsdData, cz as VibranceParams, cA as ViewportMetrics, cB as addLayerEffect, cC as addLayerFilter, cD as adjustmentNodeAsLayer, cE as anchorPoint, cF as annotationBlend, cG as annotationOfShape, cH as annotationOfType, cI as applyImageProjectionToContext, cJ as applyParams, cK as blurFilter, cL as borderCoverage, cM as boxMean, cN as boxPointOf, cO as buildLayerMaskPlanes, cP as calculateCropDrag, cQ as canvasToImagePoint, cR as clampCropToImage, cS as colorRange, cT as combineSelections, cU as componentPath, cV as compositeDeep, cW as computeHistogram, cX as computeSelectionBounds, cY as contractCoverage, cZ as convertHex, c_ as convertSurfaceColors, c$ as cornersFromMatrix, d0 as coverageToByte, d1 as createSelectionMask, d2 as createShapeLayer, d3 as createTypeLayer, d4 as decodeDeepSurface, d5 as decodeLayerChannel, d6 as decodeLayerMask, d7 as decodeMergedImage, d8 as decodePngDataUrl, d9 as decodeSelectionRle, da as defaultShapeName, db as depthMaskAlpha, dc as describeTransform, dd as deserializeColorProfile, de as deserializeEffects, df as deserializeLayer, dg as deserializeLayers, dh as deserializePatterns, di as deserializeSelection, dj as developFilter, dk as displayTransform, dl as distanceTransform, dm as documentProfile, dn as duplicateLayer, dp as edgeWidth, dq as ellipsePoints, dr as ellipseSelection, ds as encodeDeepSurface, dt as encodeSelectionRle, du as encodeSurface, dv as expandCoverage, dw as exportPsd, dx as featherCoverage, dy as flipCorners, dz as fullSelection, dA as geometryHomography, dB as getAnnotationBounds, dC as getCropCursor, dD as getRotatedSize, dE as getViewportMetrics, dF as getViewportProjection, dG as globalImageCache, dH as greyMorphology, dI as groupLayers, dJ as guidePlanes, dK as guidedFilterColor, dL as hasSurface, dM as hasWarp, dN as hashMaskContent, dO as histogramPath, dP as hitTestAnnotation, dQ as hitTestCrop, dR as hueRange, dS as identityTransform, dT as imageToCanvasPoint, dU as importPsd, dV as invertSelection, dW as isActiveFilter, dX as isIdentityTransform, dY as isQuarterTurnSwapped, dZ as isRenderedLayer, d_ as isRetouchTool, d$ as isSelectionEmpty, e0 as isSelectionMode, e1 as isSpatialFilter, e2 as isSrgb, e3 as isTransformAnchor, e4 as isValidWarp, e5 as layerEffectsOf, e6 as layerMaskCoverage, e7 as layerMaskFromSelection, e8 as layerMaskKey, e9 as layerName, ea as layerTree, eb as layerTypeLabel, ec as liveComponent, ed as liveShapeSubpaths, ee as magicWand, ef as mapCropHandle, eg as mapSubpaths, eh as matrixFromCorners, ei as matrixFromParams, ej as mergeShapeComponents, ek as migrateSerializedImageEditorState, el as migrateToLayeredState, em as modifySelection, en as moveLayer, eo as newLayerId, ep as normalizeAngle, eq as normalizeFilter, er as normalizeLayerMask, es as normalizeLiveShape, et as normalizeRect, eu as normalizeRefineEdgeParams, ev as normalizeShapePaint, ew as normalizeShapeStroke, ex as normalizeStoredAdjustments, ey as normalizeSubpaths, ez as normalizeText, eA as offsetLayer, eB as offsetShape, eC as parseBlend, eD as parseColor, eE as parseSelectionMode, eF as patchParagraphStyle, eG as patchTextStyle, eH as pixelLayerBounds, eI as pixelLayers, eJ as placeLayer, eK as polygonCoverage, eL as polygonSelection, eM as presetWarp, eN as previewStep, eO as profileBytes, eP as projectImagePoint, eQ as projectImageRect, eR as projectMaskCoverage, eS as psdToLayers, eT as readPsd, eU as rectSelection, eV as referencePoint, eW as refineCoverage, eX as refineEdgeHalo, eY as refineSelection, eZ as removeLayer, e_ as removeLayerEffect, e$ as removeLayerFilter, f0 as renderShape, f1 as renderShapeRect, f2 as renderText, f3 as replaceTextRange, f4 as requireLayer, f5 as requireOperation, f6 as requireShapeLayer, f7 as requireTypeLayer, f8 as requireUnlocked, f9 as rerenderShape, fa as rerenderText, fb as resizePixels, fc as resizeSelection, fd as resolveExternalAssets, fe as resolveProfile, ff as runLayerFilters, fg as selectionArea, fh as selectionFromCoverage, fi as selectionFromPixels, fj as selectionToCoverage, fk as selectionToPixels, fl as selectionValueAt, fm as serializeColorProfile, fn as serializeContents, fo as serializeEffects, fp as serializeLayer, fq as serializeLayers, fr as serializeLayersExternal, fs as serializePatterns, ft as serializeSelection, fu as setLayerEffects, fv as setLayerEffectsEnabled, fw as setLayerMask, fx as setLayerProperties, fy as shapeAsPixelLayer, fz as shapeFromAnnotation, fA as shapeGeometryBounds, fB as shapeLayers, fC as shapeOutline, fD as shapeRenderClip, fE as shiftCoverage, fF as smartObjectLayers, fG as smoothCoverage, fH as srgb8ToLab, fI as textMatrix, fJ as textOutlines, fK as textRange, fL as toHex, fM as toTextSpace, fN as toneRange, fO as transformHomography, fP as transformMap, fQ as transformShapeComponents, fR as transformTypeLayer, fS as transformedBox, fT as transformedPoint, fU as typeAsPixelLayer, fV as typeFrame, fW as typeFromAnnotation, fX as typeLayerName, fY as ungroupLayer, fZ as unionRect, f_ as unprojectCanvasPoint, f$ as updateLayerEffect, g0 as updateLayerFilter, g1 as updateLayerMaskProps, g2 as updateShapeLayer, g3 as updateTypeLayer, g4 as withNewIds, g5 as writePsd } from '../export-b6NjCZ5-.cjs';
|
|
3
3
|
import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.cjs';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
4
|
+
import { a as BlendMode, c as PixelSurface, R as RasterRect } from '../surface-Cn30xIV6.cjs';
|
|
5
|
+
export { B as BLEND_MODES, b as BlendModeInfo, M as MaskSurface, P as PAINTERLY_BLEND_MODES, Z as PIGMENT_BANDS, _ as PIGMENT_LAMBDA_MIN, $ as PIGMENT_LAMBDA_STEP, a0 as PIGMENT_WAVELENGTHS, Y as Pigment, a1 as PigmentOptions, a2 as PigmentRgb, d as Rgb, e as Rgba, S as SHADOW_AMBIENT, f as SurfaceDraft, T as TILE, g as TILE_SHIFT, h as Tile, i as TileKey, j as TiledSurface, k as blendChannel, l as blendImageData, m as blendLum, n as blendPixel, o as blendRgb, p as canvasCompositeOperation, q as collectTiles, r as contentBounds, a3 as createPigment, s as emptySurface, t as fillRect, u as finishTile, v as isBlendMode, w as isPainterlyBlendMode, x as isSeparableBlendMode, a4 as lerpPigment, a5 as lerpPigmentInto, y as mixPigment8, z as mixPigmentRgb, a6 as mixPigments, A as normalizeBlendMode, C as packRgba, D as pigment8, E as readPixel, F as readRegion, a7 as reflectanceToRgb, a8 as rgbToReflectance, G as setLum, a9 as setPigmentColor, H as solidSurface, I as standardBlendMode, J as surfaceBytes, K as surfaceFromPixels, L as surfacesEqual, N as tileCoord, O as tileKey, Q as tileRect, U as tilesInRect, V as translateSurface, W as uniformTile, X as writeRegion } from '../surface-Cn30xIV6.cjs';
|
|
6
6
|
import { a as AgentToolProvider, A as AgentTool } from '../registry-BqA1AZt0.cjs';
|
|
7
|
-
import {
|
|
8
|
-
export { B as BevelContour,
|
|
7
|
+
import { S as LayerEffects, Q as LayerEffectKind, O as LayerEffect, u as EffectPattern, M as Interpolation } from '../render-B1K_OoLy.cjs';
|
|
8
|
+
export { B as BIT_DEPTHS, c as BevelContour, d as BevelEmbossEffect, e as BevelStyle, f as BevelTechnique, g as BevelTexture, h as BitDepth, i as ColorOverlayEffect, j as CompositeCallOptions, k as CompositeStats, l as CompositorOptions, m as ContourPoint, D as DEFAULT_GLOBAL_LIGHT, n as DeepSamples, o as DropShadowEffect, q as EffectContour, r as EffectFill, s as EffectGradient, v as EffectPatternRef, w as EffectRect, G as GlobalLight, x as GlowTechnique, y as GradientColorStop, z as GradientOpacityStop, A as GradientOverlayEffect, F as GradientStyle, J as INTERPOLATIONS, K as InnerGlowEffect, L as InnerShadowEffect, N as LAYER_EFFECT_KINDS, P as LayerEffectError, U as LayerLocks, V as MAX_EFFECT_REACH, W as MAX_TRANSFORM_PIXELS, X as OuterGlowEffect, Y as PatternOverlayEffect, Z as PatternPlacement, _ as PatternTile, a6 as ResampleOptions, a8 as SatinEffect, a9 as StrokeEffect, aa as StrokePosition, ab as TransformTooLargeError, ad as blendTile, af as builtinPattern, ag as builtinPatternIds, ah as changedTiles, aj as compositeSurfaceOver, al as convertSurfaceDepth, am as deepBytes, an as deepTile, ao as defaultEffectGradient, ap as defaultLayerEffect, aq as depthOf, ar as effectColorHex, at as effectReach, av as effectsFingerprint, aw as effectsMargin, ax as effectsScale, ay as findLayer, az as flattenLayers, aB as hasActiveEffects, aC as hashNoise, aD as insertLayer, aE as isBitDepth, aF as isInterpolation, aG as isLayerEffectKind, aH as isLayerLocked, aI as keysWeight, aJ as layerEffectFields, aK as layerEffectLabel, aL as mapLayer, aM as mergeLayerEffect, aN as newEffectId, aO as normalizeLayerEffects, aP as parseEffectColor, aR as proxyOf, aS as readDeepRegion, aT as reduceSurface, aU as renderLayerEffects, aV as scaleLayerEffect, aW as srgbDecode, aX as srgbEncode, aY as surfaceDepth, aZ as surfaceFromDeepPixels, a_ as tileSamples, a$ as tileSamples16, b0 as tileSamples32, b1 as to16From32, b2 as to16From8, b3 as to32From16, b4 as to32From8, b5 as to8From16, b6 as to8From32, b7 as transformSurface, b8 as transformedBounds, b9 as validateEffectGradient, ba as validateLayerEffect, bb as validateLayerEffects, bc as warpSurface, bd as writeDeepRegion } from '../render-B1K_OoLy.cjs';
|
|
9
9
|
import { b as CaptureSurface } from '../capture-DFEMFmVt.cjs';
|
|
10
|
-
export { DIRECT_GAUSSIAN_MAX_SIGMA, DecodedPng, ZlibError, adler32, base64ToBytes, bytesToBase64, curveLut, decodePng, deflate, deflateRaw, encodePng, gaussianBlur, inflate, inflateRaw, isPng, parseDataUrl, pngDataUrl } from '../
|
|
10
|
+
export { D as DIRECT_GAUSSIAN_MAX_SIGMA, a as DecodedPng, Z as ZlibError, b as adler32, c as base64ToBytes, d as bytesToBase64, e as curveLut, f as decodePng, g as deflate, h as deflateRaw, i as encodePng, j as gaussianBlur, k as inflate, l as inflateRaw, m as isPng, p as parseDataUrl, n as pngDataUrl } from '../zlib-dxQdgHyN.cjs';
|
|
11
|
+
export { C as CanvasTextShaperOptions, O as OpenTypeFont, a as OutlineFontEntry, b as OutlineFontFace, c as OutlinePathCommand, d as applyHomography, k as boxQuad, e as createCanvasTextShaper, f as createMetricTextShaper, g as createOutlineTextShaper, m as cssFont, h as cssFontFamily, n as homographyFromAffine, i as homographyFromPoints, q as invertHomography, l as loadOpenTypeFont, p as parseOpenTypeFont, r as rectToQuad } from '../opentype-Dpe75vL5.cjs';
|
|
12
|
+
import { C as TextAlign, d as TextStyle, c as ParagraphStyle } from '../warp-B39VsOtd.cjs';
|
|
13
|
+
export { D as DEFAULT_AUTO_LEADING, E as DEFAULT_TEXT_STYLE, F as LaidChar, L as LaidFragment, f as LaidLine, P as ParagraphRun, G as TEXT_ALIGNS, a as TextFont, e as TextLayout, b as TextRun, T as TextShaper, g as WARP_STYLES, h as WARP_STYLE_LABELS, W as WarpPreset, H as caretAt, i as dragWarpMeshPoint, j as evalWarpMesh, I as fitParagraphRuns, J as fitRuns, K as fontOf, t as identityWarpMesh, M as layoutText, N as paragraphRanges, p as pullWarpMesh, o as resizeWarpMesh, O as restyleRange, Q as spliceRuns, R as styleAt, S as textIndexAt, v as warpMeshEditPoints, x as warpMeshGridCurves, y as warpMeshParamAt, B as warpPresetMesh } from '../warp-B39VsOtd.cjs';
|
|
11
14
|
import { B as BezierPath } from '../bezier-BfwIbVTl.cjs';
|
|
12
|
-
import { d as MixerLoad, M as MixerSettings } from '../
|
|
13
|
-
export {
|
|
14
|
-
export { createPigmentTools } from '../paint/index.cjs';
|
|
15
|
+
import { d as MixerLoad, M as MixerSettings } from '../retouch-Bxkuc0KH.cjs';
|
|
16
|
+
export { m as BlenderScratch, b as BlenderSettings, B as BrushSettings, C as CoverageMap, n as DEFAULT_BLENDER, o as DEFAULT_BRUSH, p as DEFAULT_MIXER, q as DEFAULT_RETOUCH, r as DEFAULT_SMUDGE, D as Dab, s as DabWalker, E as EMPTY_MIXER_LOAD, t as ExchangeRates, e as MAX_BRUSH_SIZE, u as MIXER_DRAIN, v as MIXER_PICKUP_RATE, w as MIXING_MODELS, i as MixerStroke, h as MixerTarget, a as MixingModel, x as PaintExchange, y as PaintMedium, z as PaintSample, P as PaintTileTarget, A as PixelSource, F as RETOUCH_SAMPLES, G as RegionPixelSource, j as RetouchApply, H as RetouchDabEffect, I as RetouchDabStroke, k as RetouchPaint, J as RetouchSample, f as RetouchSettings, R as RgbTriple, K as SPOT_HEAL_TYPES, L as SmudgeDab, S as SmudgeSettings, N as SmudgeTip, O as SpotHealType, l as StrokeApply, g as StrokeCoverage, c as StrokePoint, T as TONE_RANGES, Q as TileMedium, U as TileMediumOptions, V as TilePixelSource, W as ToneRange, X as applyRetouchToTile, Y as applyStrokeToTile, Z as blendRadius, _ as blenderDab, $ as cleanMixer, a0 as coverageTileCoord, a1 as createBlenderScratch, a2 as dabCoverage, a3 as dabRect, a4 as dodgeBurn, a5 as dodgeBurnCurve, a6 as exchangeRates, a7 as healPixels, a8 as loadMixer, a9 as luma, aa as mixerRates, ab as normalizeBlender, ac as normalizeBrush, ad as normalizeMixer, ae as normalizeRetouch, af as normalizeSmudge, ag as perDabStrength, ah as rasterizeDab, ai as readSourceRegion, aj as rgbaViewOfGrey, ak as saturationOf, al as smoothPoints, am as smudgeEffect, an as sponge, ao as spongeEffect, ap as spotHealPixels, aq as spotHealWindow, ar as tipFalloff, as as tipReach, at as tipShape, au as toneOf, av as walkDabs } from '../retouch-Bxkuc0KH.cjs';
|
|
17
|
+
export { bestOffset, createPigmentTools, dilateMask, maskBounds, membraneFill, seamlessClone, solveMembrane } from '../paint/index.cjs';
|
|
18
|
+
import { j as Intent, b as BuiltinProfileId } from '../builtin-CY97ppKM.cjs';
|
|
19
|
+
export { a as BUILTIN_PROFILES, i as INTENTS } from '../builtin-CY97ppKM.cjs';
|
|
15
20
|
import { W as WarpStyle, a as WarpMesh, V as Vec2, Q as Quad } from '../types-CwMPoRMU.cjs';
|
|
16
21
|
export { A as AffineMatrix, H as Homography } from '../types-CwMPoRMU.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';
|
|
22
|
+
import '../types-yINF17Ta.cjs';
|
|
20
23
|
import '../schema-Di0CS6Pe.cjs';
|
|
21
24
|
import '../types-BFkYA4eF.cjs';
|
|
22
25
|
|
|
@@ -335,12 +338,14 @@ type PixelOp = (c: Rgb) => void;
|
|
|
335
338
|
* Per-channel LUTs of a Curves or Levels layer: each channel's record first, then the master.
|
|
336
339
|
* `null` for any other kind.
|
|
337
340
|
*/
|
|
338
|
-
declare function toneLuts(layer: AdjustmentLayer): [Float32Array, Float32Array, Float32Array] | null;
|
|
341
|
+
declare function toneLuts(layer: AdjustmentLayer, quantum?: number | null): [Float32Array, Float32Array, Float32Array] | null;
|
|
339
342
|
/**
|
|
340
343
|
* Compiles a layer into a pixel function, or `null` when it is the identity (neutral parameters).
|
|
341
344
|
* Pure: depends on `kind` and `params` only.
|
|
342
345
|
*/
|
|
343
|
-
declare function compileAdjustmentLayer(layer: AdjustmentLayer
|
|
346
|
+
declare function compileAdjustmentLayer(layer: AdjustmentLayer, options?: {
|
|
347
|
+
deep?: boolean;
|
|
348
|
+
}): PixelOp | null;
|
|
344
349
|
/** Layers that change pixels: enabled, visible, not the identity. */
|
|
345
350
|
declare function activeAdjustmentLayers(layers: readonly AdjustmentLayer[] | undefined): AdjustmentLayer[];
|
|
346
351
|
/**
|
|
@@ -361,6 +366,12 @@ declare function evaluateAdjustmentLayers(color: readonly number[], layers: read
|
|
|
361
366
|
declare function applyAdjustmentLayers(imageData: {
|
|
362
367
|
data: Uint8ClampedArray;
|
|
363
368
|
}, layers: readonly AdjustmentLayer[] | undefined, masks?: ReadonlyMap<string, ArrayLike<number>>): void;
|
|
369
|
+
/**
|
|
370
|
+
* `applyAdjustmentLayers` on float RGBA (sRGB-encoded 0..1, straight alpha) for high bit depth:
|
|
371
|
+
* the same per-pixel evaluation with no rounding, so 16-bit and 32-bit layers keep their
|
|
372
|
+
* precision. Colour is clamped to 0..1 only by the adjustments that clamp.
|
|
373
|
+
*/
|
|
374
|
+
declare function applyAdjustmentLayersFloat(data: Float32Array, layers: readonly AdjustmentLayer[] | undefined, masks?: ReadonlyMap<string, ArrayLike<number>>): void;
|
|
364
375
|
/** Stable cache key of a layer stack's pixel effect (for renderer caches). */
|
|
365
376
|
declare function adjustmentLayersKey(layers: readonly AdjustmentLayer[] | undefined): string;
|
|
366
377
|
|
|
@@ -498,6 +509,10 @@ interface ImageEditorToolProviderOptions {
|
|
|
498
509
|
* `createImageShapeTools`); `rasterize_layer` turns one into pixels.
|
|
499
510
|
* - Type layers: `list_fonts`, `get_text_layer`, `add_text_layer`, `set_text`, `set_text_style`,
|
|
500
511
|
* `set_paragraph_style`, `set_text_frame`, `convert_text_to_shape` (see `createImageTypeTools`).
|
|
512
|
+
* - Colour management: `get_color_profile`, `assign_profile`, `convert_to_profile`,
|
|
513
|
+
* `set_proof_setup`, `convert_colors` (see `createImageColorTools`).
|
|
514
|
+
* - Retouching: `clone_stamp`, `heal_brush`, `spot_heal`, `smudge`, `dodge`, `burn`, `sponge`,
|
|
515
|
+
* `get_retouch_options`, `set_retouch_options`, `set_clone_source` (see `createImageRetouchTools`).
|
|
501
516
|
*/
|
|
502
517
|
declare function createImageEditorToolProvider(controller: ImageEditorController, options?: ImageEditorToolProviderOptions): AgentToolProvider;
|
|
503
518
|
|
|
@@ -632,7 +647,7 @@ declare function createImageSelectionTools(controller: ImageEditorController): A
|
|
|
632
647
|
* Agent tools for the image editor's layers, geometry and history: `get_image_info`,
|
|
633
648
|
* `get_histogram`, `update_adjustment_layer`, `remove_adjustment_layer`,
|
|
634
649
|
* `move_adjustment_layer`, `set_crop`, `reset_crop`, `set_rotation`, `flip_image`,
|
|
635
|
-
* `undo_image` and `redo_image`. Each write is one undo step and returns what changed.
|
|
650
|
+
* `set_bit_depth`, `undo_image` and `redo_image`. Each write is one undo step and returns what changed.
|
|
636
651
|
*/
|
|
637
652
|
declare function createImageEditTools(controller: ImageEditorController): AgentTool[];
|
|
638
653
|
|
|
@@ -1079,83 +1094,6 @@ declare function createImageSmartObjectTools(controller: ImageEditorController):
|
|
|
1079
1094
|
*/
|
|
1080
1095
|
declare function createImageShapeTools(controller: ImageEditorController): AgentTool[];
|
|
1081
1096
|
|
|
1082
|
-
/**
|
|
1083
|
-
* Text shapers for type layers (see `TextShaper` in `text.ts`):
|
|
1084
|
-
*
|
|
1085
|
-
* - `createCanvasTextShaper`: the browser's own fonts and text drawing through Canvas 2D
|
|
1086
|
-
* (`measureText`, `fillText`). The default in browsers. It cannot give outlines.
|
|
1087
|
-
* - `createOutlineTextShaper`: glyph outlines from font objects the host loads, typed after
|
|
1088
|
-
* opentype.js's `Font` (`getPath`, `getAdvanceWidth`, `unitsPerEm`, …) without depending on it.
|
|
1089
|
-
* Pure: it renders anywhere (servers, workers, tests) and makes Convert to Shape possible.
|
|
1090
|
-
*/
|
|
1091
|
-
|
|
1092
|
-
/** A family as it goes into a CSS `font` value: generics and lists as written, other names quoted when needed. */
|
|
1093
|
-
declare function cssFontFamily(family: string): string;
|
|
1094
|
-
/** The CSS `font` shorthand for a font (`italic 700 24px Inter`). */
|
|
1095
|
-
declare function cssFont(font: TextFont, family?: string): string;
|
|
1096
|
-
interface CanvasTextShaperOptions {
|
|
1097
|
-
/** A 1 × 1 canvas for measuring (default an `OffscreenCanvas`, else a DOM canvas). */
|
|
1098
|
-
createCanvas?(width: number, height: number): HTMLCanvasElement | OffscreenCanvas;
|
|
1099
|
-
/** Family used when one is missing (default `sans-serif`). */
|
|
1100
|
-
fallbackFamily?: string;
|
|
1101
|
-
}
|
|
1102
|
-
/**
|
|
1103
|
-
* A shaper over Canvas 2D. A family is missing when text set in it measures the same as in
|
|
1104
|
-
* both `monospace` and `serif` (the browser fell back), so web fonts must be loaded before use.
|
|
1105
|
-
* Returns `null` where there is no 2D canvas.
|
|
1106
|
-
*/
|
|
1107
|
-
declare function createCanvasTextShaper(options?: CanvasTextShaperOptions): TextShaper | null;
|
|
1108
|
-
/** A path command as opentype.js returns it. */
|
|
1109
|
-
interface OutlinePathCommand {
|
|
1110
|
-
type: 'M' | 'L' | 'C' | 'Q' | 'Z';
|
|
1111
|
-
x?: number;
|
|
1112
|
-
y?: number;
|
|
1113
|
-
x1?: number;
|
|
1114
|
-
y1?: number;
|
|
1115
|
-
x2?: number;
|
|
1116
|
-
y2?: number;
|
|
1117
|
-
}
|
|
1118
|
-
/** The parts of an opentype.js `Font` the outline shaper uses. */
|
|
1119
|
-
interface OutlineFontFace {
|
|
1120
|
-
unitsPerEm: number;
|
|
1121
|
-
ascender: number;
|
|
1122
|
-
descender: number;
|
|
1123
|
-
getAdvanceWidth(text: string, fontSize: number, options?: {
|
|
1124
|
-
kerning?: boolean;
|
|
1125
|
-
}): number;
|
|
1126
|
-
getPath(text: string, x: number, y: number, fontSize: number, options?: {
|
|
1127
|
-
kerning?: boolean;
|
|
1128
|
-
}): {
|
|
1129
|
-
commands: OutlinePathCommand[];
|
|
1130
|
-
};
|
|
1131
|
-
names?: {
|
|
1132
|
-
fontFamily?: Record<string, string>;
|
|
1133
|
-
postScriptName?: Record<string, string>;
|
|
1134
|
-
};
|
|
1135
|
-
tables?: {
|
|
1136
|
-
os2?: {
|
|
1137
|
-
usWeightClass?: number;
|
|
1138
|
-
fsSelection?: number;
|
|
1139
|
-
};
|
|
1140
|
-
};
|
|
1141
|
-
}
|
|
1142
|
-
/** A face with its family, weight and style (read from the font's names when not given). */
|
|
1143
|
-
interface OutlineFontEntry {
|
|
1144
|
-
face: OutlineFontFace;
|
|
1145
|
-
family?: string;
|
|
1146
|
-
weight?: number;
|
|
1147
|
-
italic?: boolean;
|
|
1148
|
-
}
|
|
1149
|
-
/**
|
|
1150
|
-
* A shaper over outline fonts the host loads (opentype.js `Font` objects or anything with the same
|
|
1151
|
-
* methods). Fonts are matched by family (case-insensitive), then the nearest weight and the
|
|
1152
|
-
* italic flag; a missing family uses `fallback` (default the first font) and is reported missing.
|
|
1153
|
-
*/
|
|
1154
|
-
declare function createOutlineTextShaper(fonts: ReadonlyArray<OutlineFontFace | OutlineFontEntry>, options?: {
|
|
1155
|
-
fallback?: string;
|
|
1156
|
-
id?: string;
|
|
1157
|
-
}): TextShaper;
|
|
1158
|
-
|
|
1159
1097
|
/**
|
|
1160
1098
|
* Agent tools for type layers in the image editor: `list_fonts`, `get_text_layer`,
|
|
1161
1099
|
* `add_text_layer`, `set_text`, `set_text_style`, `set_paragraph_style`, `set_text_frame` and
|
|
@@ -1427,6 +1365,12 @@ interface NormalizedLayerItem {
|
|
|
1427
1365
|
* and resolved PNG data-URL thumbnails) from the controller's current V3 layer state.
|
|
1428
1366
|
*/
|
|
1429
1367
|
declare function extractNormalizedLayerItems(controller: ImageEditorController, fallbackImageUrl?: string): NormalizedLayerItem[];
|
|
1368
|
+
/** Image › Mode: the bit depths a panel offers, with their labels. */
|
|
1369
|
+
declare const BIT_DEPTH_OPTIONS: readonly {
|
|
1370
|
+
depth: 8 | 16 | 32;
|
|
1371
|
+
label: string;
|
|
1372
|
+
title: string;
|
|
1373
|
+
}[];
|
|
1430
1374
|
|
|
1431
1375
|
/**
|
|
1432
1376
|
* The layer effects section's view model, shared by the React and Svelte panels: whether a layer
|
|
@@ -1516,11 +1460,26 @@ declare function mixerLoadResult(load: MixerLoad): {
|
|
|
1516
1460
|
*/
|
|
1517
1461
|
declare function createImagePaintTools(controller: ImageEditorController): AgentTool[];
|
|
1518
1462
|
|
|
1463
|
+
/**
|
|
1464
|
+
* Agent tools for colour management: `get_color_profile` (the document's profile, Proof Setup
|
|
1465
|
+
* and the built-in profiles), `assign_profile`, `convert_to_profile` (each one undo step),
|
|
1466
|
+
* `set_proof_setup` (view state) and `convert_colors` (read-only).
|
|
1467
|
+
*/
|
|
1468
|
+
declare function createImageColorTools(controller: ImageEditorController): AgentTool[];
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Agent tools for the retouching tools, one per tool: `clone_stamp`, `heal_brush`, `spot_heal`,
|
|
1472
|
+
* `smudge`, `dodge`, `burn` and `sponge` (each one stroke, one undo step, returning the layer,
|
|
1473
|
+
* channel, changed bounds and dab count), plus the view state they share: `get_retouch_options`,
|
|
1474
|
+
* `set_retouch_options` and `set_clone_source`.
|
|
1475
|
+
*/
|
|
1476
|
+
declare function createImageRetouchTools(controller: ImageEditorController): AgentTool[];
|
|
1477
|
+
|
|
1519
1478
|
/**
|
|
1520
1479
|
* The paint tools' view model, shared by the React and Svelte editors: the brush options bar's
|
|
1521
|
-
* controls, Photoshop's shortcuts (B, Shift+B, E, V,
|
|
1522
|
-
* pointer gesture that turns pointer events into strokes (Brush, Mixer
|
|
1523
|
-
* moves (Move).
|
|
1480
|
+
* controls, Photoshop's shortcuts (B, Shift+B, E, V, S, J, Shift+J, O, Shift+O, [ ], Shift+[ ],
|
|
1481
|
+
* number keys, D, X) and a pointer gesture that turns pointer events into strokes (Brush, Mixer
|
|
1482
|
+
* Brush, Eraser and the retouching tools; Alt-click sets the clone source) or layer moves (Move).
|
|
1524
1483
|
*/
|
|
1525
1484
|
|
|
1526
1485
|
/** Controls of the brush options bar (`hardness`, `opacity`, `flow`, `smoothing` shown in %). */
|
|
@@ -1554,9 +1513,65 @@ declare const PAINT_TOOLS: readonly [{
|
|
|
1554
1513
|
readonly id: "eraser";
|
|
1555
1514
|
readonly label: "Eraser";
|
|
1556
1515
|
readonly shortcut: "E";
|
|
1516
|
+
}, {
|
|
1517
|
+
readonly id: "clone";
|
|
1518
|
+
readonly label: "Clone";
|
|
1519
|
+
readonly shortcut: "S";
|
|
1520
|
+
}, {
|
|
1521
|
+
readonly id: "heal";
|
|
1522
|
+
readonly label: "Heal";
|
|
1523
|
+
readonly shortcut: "Shift+J";
|
|
1524
|
+
}, {
|
|
1525
|
+
readonly id: "spot-heal";
|
|
1526
|
+
readonly label: "Spot Heal";
|
|
1527
|
+
readonly shortcut: "J";
|
|
1528
|
+
}, {
|
|
1529
|
+
readonly id: "smudge";
|
|
1530
|
+
readonly label: "Smudge";
|
|
1531
|
+
readonly shortcut: "";
|
|
1532
|
+
}, {
|
|
1533
|
+
readonly id: "dodge";
|
|
1534
|
+
readonly label: "Dodge";
|
|
1535
|
+
readonly shortcut: "O";
|
|
1536
|
+
}, {
|
|
1537
|
+
readonly id: "burn";
|
|
1538
|
+
readonly label: "Burn";
|
|
1539
|
+
readonly shortcut: "Shift+O";
|
|
1540
|
+
}, {
|
|
1541
|
+
readonly id: "sponge";
|
|
1542
|
+
readonly label: "Sponge";
|
|
1543
|
+
readonly shortcut: "Shift+O";
|
|
1557
1544
|
}];
|
|
1558
1545
|
type PaintTool = (typeof PAINT_TOOLS)[number]['id'];
|
|
1559
1546
|
declare const isPaintTool: (tool: string) => tool is PaintTool;
|
|
1547
|
+
/** The paint tools that retouch (their options show instead of the brush colours). */
|
|
1548
|
+
declare const isRetouchPaintTool: (tool: string) => boolean;
|
|
1549
|
+
/** Retouch sliders: dodge / burn exposure and smudge strength (shown in %). */
|
|
1550
|
+
declare const RETOUCH_OPTION_CONTROLS: readonly (ControlSpec & {
|
|
1551
|
+
id: 'exposure' | 'strength';
|
|
1552
|
+
tools: readonly PaintTool[];
|
|
1553
|
+
})[];
|
|
1554
|
+
/** Retouch choices, each a row of toggle buttons, with the tools that show it. */
|
|
1555
|
+
declare const RETOUCH_CHOICES: readonly {
|
|
1556
|
+
id: 'sample' | 'spotType' | 'range' | 'spongeMode';
|
|
1557
|
+
label: string;
|
|
1558
|
+
tools: readonly PaintTool[];
|
|
1559
|
+
options: readonly {
|
|
1560
|
+
id: string;
|
|
1561
|
+
label: string;
|
|
1562
|
+
title: string;
|
|
1563
|
+
}[];
|
|
1564
|
+
}[];
|
|
1565
|
+
/** Retouch on / off options, with the tools that show each. */
|
|
1566
|
+
declare const RETOUCH_TOGGLES: readonly {
|
|
1567
|
+
id: 'aligned' | 'protectTones' | 'vibrance';
|
|
1568
|
+
label: string;
|
|
1569
|
+
tools: readonly PaintTool[];
|
|
1570
|
+
}[];
|
|
1571
|
+
/** Sets one retouch choice from the options bar. */
|
|
1572
|
+
declare function setRetouchChoice(controller: ImageEditorController, id: (typeof RETOUCH_CHOICES)[number]['id'], value: string): void;
|
|
1573
|
+
/** What the options bar says about the clone source. */
|
|
1574
|
+
declare function cloneSourceLabel(controller: ImageEditorController): string;
|
|
1560
1575
|
/** `#rrggbb` of an sRGB triple (0..1), e.g. the Mixer Brush's reservoir. */
|
|
1561
1576
|
declare function rgbUnitToHex(c: readonly [number, number, number]): string;
|
|
1562
1577
|
interface ShortcutEvent {
|
|
@@ -1578,6 +1593,8 @@ declare function handlePaintShortcut(controller: ImageEditorController, e: Short
|
|
|
1578
1593
|
interface PaintPointerSample extends ImagePoint {
|
|
1579
1594
|
/** 0..1; a mouse is 1. */
|
|
1580
1595
|
pressure: number;
|
|
1596
|
+
/** Alt (Option) held on the press: with the Clone Stamp or Healing Brush it sets the source. */
|
|
1597
|
+
altKey?: boolean;
|
|
1581
1598
|
}
|
|
1582
1599
|
/** Pressure of a pointer event: pens report it; mice report 0.5 while pressed, which means "full". */
|
|
1583
1600
|
declare function pointerPressure(e: {
|
|
@@ -1603,6 +1620,41 @@ declare class PaintGesture {
|
|
|
1603
1620
|
cancel(): void;
|
|
1604
1621
|
}
|
|
1605
1622
|
|
|
1623
|
+
/**
|
|
1624
|
+
* The colour-management panel's view model, shared by the React and Svelte editors: the profile
|
|
1625
|
+
* choices for the working space and for Proof Setup, the rendering intents, and a snapshot of
|
|
1626
|
+
* the document's profile and proof for the panel to show.
|
|
1627
|
+
*/
|
|
1628
|
+
|
|
1629
|
+
/** Profiles a document can work in (RGB). */
|
|
1630
|
+
declare const WORKING_SPACE_OPTIONS: readonly {
|
|
1631
|
+
id: BuiltinProfileId;
|
|
1632
|
+
label: string;
|
|
1633
|
+
}[];
|
|
1634
|
+
/** Profiles to soft-proof with (any colour space). */
|
|
1635
|
+
declare const PROOF_PROFILE_OPTIONS: readonly {
|
|
1636
|
+
id: BuiltinProfileId;
|
|
1637
|
+
label: string;
|
|
1638
|
+
}[];
|
|
1639
|
+
declare const INTENT_OPTIONS: readonly {
|
|
1640
|
+
id: Intent;
|
|
1641
|
+
label: string;
|
|
1642
|
+
title: string;
|
|
1643
|
+
}[];
|
|
1644
|
+
/** What the colour panel shows. */
|
|
1645
|
+
declare function colorPanelView(controller: ImageEditorController): {
|
|
1646
|
+
profileName: string;
|
|
1647
|
+
workingSpace: BuiltinProfileId | null;
|
|
1648
|
+
proof: {
|
|
1649
|
+
id: BuiltinProfileId | null;
|
|
1650
|
+
name: string;
|
|
1651
|
+
intent: Intent;
|
|
1652
|
+
simulatePaper: boolean;
|
|
1653
|
+
gamutWarning: boolean;
|
|
1654
|
+
bpc: boolean;
|
|
1655
|
+
} | null;
|
|
1656
|
+
};
|
|
1657
|
+
|
|
1606
1658
|
/** A malformed or unsupported PSD; the message says what was wrong and where. */
|
|
1607
1659
|
declare class PsdError extends Error {
|
|
1608
1660
|
constructor(message: string);
|
|
@@ -2042,4 +2094,4 @@ declare class FreeTransformTool {
|
|
|
2042
2094
|
key(e: ShortcutEvent): boolean;
|
|
2043
2095
|
}
|
|
2044
2096
|
|
|
2045
|
-
export { ADJUSTMENT_KEYS, ADJUSTMENT_KINDS, ADJUSTMENT_LAYER_CONTROLS, ADJUSTMENT_LAYER_OPACITY_CONTROL, ADJUSTMENT_LUT_SIZE, AS_SHOT_KELVIN, AdjustmentKind, type AdjustmentKindInfo, AdjustmentLayer, AdjustmentLayerMask, AdjustmentLayerNode, AdjustmentLayerOf, AdjustmentParamsMap, Annotation, AnnotationLayer, BACKGROUND_LAYER_ID, BACKGROUND_LAYER_NAME, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, BlendMode,
|
|
2097
|
+
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, BIT_DEPTH_OPTIONS, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, BlendMode, BuiltinProfileId, type Chromaticity, ColorDistance, CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type ConvertOptions, type CoverageFillRule, CropBox, CurvePoint, D50, D65, DEFAULT_SELECTION_TOOL_OPTIONS, DEFAULT_SHAPE_TOOL_OPTIONS, DEFAULT_TYPE_TOOL_OPTIONS, DEPTH_MASK_CONTROLS, DEVELOP_FILTER_ID, DepthMaskOptions, type DescValue, type Descriptor, DevelopFilter, type DropZone, type EffectControl, EffectPattern, FREE_TRANSFORM_FIELDS, FREE_TRANSFORM_MODE_OPTIONS, type FlatPath, type FreeTransformBar, type FreeTransformField, FreeTransformGeometry, FreeTransformInit, FreeTransformMode, FreeTransformResult, FreeTransformSession, FreeTransformTool, type FreeTransformToolOptions, type GestureModifiers, HUE_RANGE_LABELS, HueRange, IDENTITY_MATRIX3, IMAGE_ADJUSTMENT_CONTROLS, IMAGE_CROP_PRESETS, IMAGE_EDITOR_STATE_VERSION, IMAGE_FILTER_PRESETS, INTENT_OPTIONS, ImageAdjustments, type ImageCropPreset, ImageEditorController, type ImageEditorDocumentLoad, type ImageEditorToolProviderOptions, type ImageFilterPreset, ImageHistogram, ImageLayer, ImagePoint, type ImageProcessVersion, ImageProjection, ImageTransform, Intent, Interpolation, LATEST_PROCESS_VERSION, LAYER_EFFECT_MENU, LEGACY_PROCESS_VERSION, LUMA_709, LayerCompositor, LayerEffect, LayerEffectKind, type LayerEffectRow, LayerEffects, type LayerEffectsPanelModel, LayerFilter, type LayerMenuAction, type LayerMenuItem, type LayerPanelRow, LayerPlacement, type LayerStack, type LegacyParts, type LegacyViewResult, LevelsChannel, LiveShapeKind, MAX_KELVIN, MIN_KELVIN, MIRED_PER_TEMPERATURE_UNIT, MIXER_MIXING_OPTIONS, MIXER_OPTION_CONTROLS, type Matrix3, MixerLoad, MixerSettings, type MosaicImageDataLike, type MosaicRegion, type NormalizedLayerItem, PAINT_TOOLS, PATTERN_BLOCK_KEYS, PROOF_PROFILE_OPTIONS, PSD_FILE_ACCEPT, PaintGesture, type PaintPointerSample, type PaintTool, ParagraphStyle, type ParsedAdjustment, type ParsedLayerEffects, PixelLayer, type PixelOp, PixelSurface, type PlaneLayout, PsdError, type PsdPattern, Quad, type QuickMaskStyle, REFINE_EDGE_CONTROLS, RETOUCH_CHOICES, RETOUCH_OPTION_CONTROLS, RETOUCH_TOGGLES, RasterMask, RasterRect, type ReferenceItem, type RefineEdgeControl, RefineEdgeParams, type RouteInput, SELECTION_MODE_LABELS, SELECTION_TOOLS, SHAPE_KIND_LABELS, SMART_RENDER_MARGIN, SUPPORTED_ADJUSTMENT_KEYS, SelectionGesture, SelectionMask, SelectionMode, type SelectionToolKind, type SelectionToolOptions, SerializedImageEditorState, ShapeDrawGesture, ShapeLayer, type ShapeToolOptions, type ShortcutEvent, type SmartCanvas, SmartContents, SmartDocument, SmartFilter, type SmartFilterRow, SmartFilterStack, SmartObjectLayer, SmartPlacement, type SmartRenderOptions, TINT_SCALE, TONE_LUT_SIZE, TextAlign, TextEditSession, TextEnv, type TextKey, TextStyle, TransformAnchor, type TransformHandle, type TransformModifiers, type TransformOverlay, TypeLayer, TypeLayerInfo, TypeToolGesture, type TypeToolOptions, type UnitLevels, VIBRANCE_GREY, Vec2, WARP_GRID_OPTIONS, WARP_STYLE_OPTIONS, WORKING_SPACE_OPTIONS, type WarpBar, WarpMesh, WarpStyle, XYZ_D50_TO_SRGB, activeAdjustmentLayers, activeSmartFilters, addSmartFilter, addToHistogram, adjustmentKindLabel, adjustmentLayersKey, adjustmentNodeFromLegacy, annotationLayerFor, annotationLayerName, annotationOfLayer, applyAdjustmentLayers, applyAdjustmentLayersFloat, applyAdjustments, applyBoxBlur, applyDepthMask, applyLegacyAdjustments, applyMatrix3, applyOutputStage, applyProcess2Adjustments, applyRegionBlur, applyRegionMosaic, applyShapeOptions, applySmartFilters, backgroundLayer, baseProjection, blackWhiteGray, boxToCurvePoint, bradfordAdaptation, buildToneLut, clampControlValue, cloneSourceLabel, colorBalanceChannel, colorPanelView, compileAdjustmentLayer, contentsBox, contentsSurface, controlPosition, controlTrackBackground, convertToSmartObject, copySmartObject, coveringRect, createAdjustmentLayer, createImageCaptureSurface, createImageColorTools, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageRetouchTools, createImageSelectionTools, createImageShapeTools, createImageSmartObjectTools, createImageTransformTools, createImageTypeTools, curveLutFromLevels, curvePointToBox, curveSvgPath, decodePlanes, defaultAdjustmentParams, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, developFromAdjustments, developTarget, documentContents, downloadPsd, dropPlacement, dropZone, effectControlChange, emptyHistogram, encodeRle, evaluateAdjustmentLayers, extractNormalizedLayerItems, filterMaskCoverage, findAdjustmentControl, findLayerControl, flattenPath, formatControlValue, getControlPath, handlePaintShortcut, hasResampledLegacyMask, hexToRgb, hitTestCurvePoint, hslToRgb, hueRangeTables, hueRangeWeight, hueSaturation, identityCurve, identityLevels, imageEditorStateMigrations, insertCurvePoint, instancesOf, invertMatrix3, isAdjustmentKind, isContentsDecoded, isDefaultDepthMask, isLegacyShape, isPaintTool, isQuarterTurn, isRetouchPaintTool, kelvinToTemperature, layerBadge, layerEffectControls, layerEffectsBadge, layerEffectsPanel, layerHasThumbnail, layerLabel, layerMenu, layerPanelRows, layerWarning, layersFromLegacy, legacyAdjustmentLayer, legacyMaskOf, legacyView, levelsValue, linearSrgbToXy, linearToSrgb, liveShapeForDrag, loadImageEditorDocument, maskSummary, mixerLoadResult, moveCurvePoint, moveSmartFilter, mulMatrix3, needsLegacyBase, neutralHueRange, newContentsId, normalizeAdjustmentLayer, normalizeAdjustmentLayers, normalizePlacement, normalizeProcessVersion, normalizeSmartFilter, offsetSmartObject, openPsdFile, parseAdjustmentBlock, parseCssColor, parseLfx2, parseLrfx, parsePatternBlock, parseVersionedDescriptor, photoFilterMatrix, placeContents, placementAt, placementBounds, placementGeometry, pointerPressure, posterizeValue, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdPatternToEffectPattern, quickMaskPixels, rangeLightness, rasterContents, rasterMaskFromLegacy, rasterizeCoverage, rasterizeSmartObject, readAdjustmentControls, removeAlpha, removeCurvePoint, removeSmartFilter, renderLayeredBase, renderSmartObject, replaceContents, requireSmartObject, rerender, resolveMosaicRegionBounds, rgbToGray, rgbToHsl, rgbUnitToHex, runLayerMenuAction, sampleLut, sampleToneLut, selectionModeFromModifiers, selectionOutline, setControlPath, setRetouchChoice, setSmartFilterMask, setSmartFiltersEnabled, setSmartPlacement, smartFilterRows, splitOverlayAnnotations, srgbToLinear, sumHistograms, tempTintToXy, temperatureToKelvin, toneCurve, toneLuts, typeLayerAt, updateSmartFilter, uvToXy, versionedDescriptorBytes, vibranceLinear, vibrancePixel, wbMatrix, whiteBalanceFromSample, whiteBalanceMatrix, withFilterMaskSurface, writeAdjustmentBlock, writeLfx2, writePatternBlock, xyToTempTint, xyToUv };
|