@pixerate/editor 0.108.0 → 0.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation/index.cjs +5 -5
- package/dist/animation/index.cjs.map +1 -1
- package/dist/animation/index.js +9 -9
- package/dist/animation-editor/index.cjs +59 -59
- package/dist/animation-editor/index.cjs.map +1 -1
- package/dist/animation-editor/index.d.cts +2 -1
- package/dist/animation-editor/index.d.ts +2 -1
- package/dist/animation-editor/index.js +29 -29
- package/dist/canvas/index.cjs +27 -27
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.js +11 -11
- package/dist/{chunk-2FGRTYJN.cjs → chunk-477UVMNR.cjs} +3 -3
- package/dist/{chunk-2FGRTYJN.cjs.map → chunk-477UVMNR.cjs.map} +1 -1
- package/dist/{chunk-T3QZ6S47.cjs → chunk-AZTZRLDI.cjs} +40 -2
- package/dist/chunk-AZTZRLDI.cjs.map +1 -0
- package/dist/{chunk-HUQ7EHVI.js → chunk-BLWCAQCW.js} +723 -1975
- package/dist/chunk-BLWCAQCW.js.map +1 -0
- package/dist/{chunk-G4BIYE6R.js → chunk-CFMWALBM.js} +39 -1
- package/dist/chunk-CFMWALBM.js.map +1 -0
- package/dist/{chunk-FRD3FUXI.cjs → chunk-D37BX2ZA.cjs} +2081 -460
- package/dist/chunk-D37BX2ZA.cjs.map +1 -0
- package/dist/chunk-JLYX4V57.cjs +2001 -0
- package/dist/chunk-JLYX4V57.cjs.map +1 -0
- package/dist/chunk-KB2YBCVS.js +2001 -0
- package/dist/chunk-KB2YBCVS.js.map +1 -0
- package/dist/{chunk-SOROZ2BF.js → chunk-RE77QYUF.js} +1938 -317
- package/dist/chunk-RE77QYUF.js.map +1 -0
- package/dist/{chunk-UTEVPQTS.cjs → chunk-W3GXSUSQ.cjs} +746 -1998
- package/dist/chunk-W3GXSUSQ.cjs.map +1 -0
- package/dist/{chunk-JK6M6V7G.js → chunk-Z3YWVUWT.js} +4 -4
- package/dist/{export-a9bnF7Cl.d.ts → export-BLPLaE6Z.d.ts} +417 -16
- package/dist/{export-JGWQEPJn.d.cts → export-DSUc4fQD.d.cts} +417 -16
- package/dist/image-editor/index.cjs +1527 -1001
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +73 -9
- package/dist/image-editor/index.d.ts +73 -9
- package/dist/image-editor/index.js +814 -288
- package/dist/image-editor/index.js.map +1 -1
- package/dist/paint-editor/index.cjs +56 -53
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +5 -2
- package/dist/paint-editor/index.d.ts +5 -2
- package/dist/paint-editor/index.js +6 -3
- package/dist/paint-editor/index.js.map +1 -1
- package/dist/raster/index.cjs +4 -2
- package/dist/raster/index.cjs.map +1 -1
- package/dist/raster/index.d.cts +3 -129
- package/dist/raster/index.d.ts +3 -129
- package/dist/raster/index.js +3 -1
- package/dist/{compositor-D92URMlm.d.cts → render-C-fO_mes.d.cts} +135 -1
- package/dist/{compositor-Kt_M4ruo.d.ts → render-OLIMk_v0.d.ts} +135 -1
- package/dist/{svg-SseJTIrA.d.ts → svg-D_cfkhlB.d.cts} +3 -629
- package/dist/{svg-ClVIG4T7.d.cts → svg-wIaKLrU0.d.ts} +3 -629
- package/dist/types-DtL_qLFz.d.ts +630 -0
- package/dist/types-DyQq-WPY.d.cts +630 -0
- package/dist/vector/index.cjs +563 -563
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +4 -2
- package/dist/vector/index.d.ts +4 -2
- package/dist/vector/index.js +69 -69
- package/dist/video-editor/index.cjs +3 -3
- package/dist/video-editor/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-DWGZUSES.cjs +0 -694
- package/dist/chunk-DWGZUSES.cjs.map +0 -1
- package/dist/chunk-FRD3FUXI.cjs.map +0 -1
- package/dist/chunk-G4BIYE6R.js.map +0 -1
- package/dist/chunk-HUQ7EHVI.js.map +0 -1
- package/dist/chunk-KKREERP2.js +0 -694
- package/dist/chunk-KKREERP2.js.map +0 -1
- package/dist/chunk-SOROZ2BF.js.map +0 -1
- package/dist/chunk-T3QZ6S47.cjs.map +0 -1
- package/dist/chunk-UTEVPQTS.cjs.map +0 -1
- /package/dist/{chunk-JK6M6V7G.js.map → chunk-Z3YWVUWT.js.map} +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
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
|
|
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, 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-DSUc4fQD.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-DSUc4fQD.cjs';
|
|
3
3
|
import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.cjs';
|
|
4
4
|
import { B as BlendMode, P as PixelSurface, R as RasterRect } from '../surface-CkKOHGPm.cjs';
|
|
5
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';
|
|
6
6
|
import { a as AgentToolProvider, A as AgentTool } from '../registry-BqA1AZt0.cjs';
|
|
7
|
-
import {
|
|
8
|
-
export { B as BevelContour,
|
|
7
|
+
import { k as LayerEffects, m as LayerEffectKind, j as LayerEffect, h as EffectPattern, I as Interpolation } from '../render-C-fO_mes.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-C-fO_mes.cjs';
|
|
9
9
|
import { b as CaptureSurface } from '../capture-DFEMFmVt.cjs';
|
|
10
|
-
export { DIRECT_GAUSSIAN_MAX_SIGMA, DecodedPng,
|
|
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';
|
|
11
12
|
import { a as MixerLoad, M as MixerSettings } from '../mixer-5ziHU8OS.cjs';
|
|
12
13
|
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
14
|
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';
|
|
@@ -15,7 +16,9 @@ import { W as WarpStyle, a as WarpMesh, V as Vec2, Q as Quad } from '../types-Cw
|
|
|
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
|
|
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
|
-
|
|
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
|
|
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,13 +1,14 @@
|
|
|
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
|
|
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, 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-BLPLaE6Z.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-BLPLaE6Z.js';
|
|
3
3
|
import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.js';
|
|
4
4
|
import { B as BlendMode, P as PixelSurface, R as RasterRect } from '../surface-CkKOHGPm.js';
|
|
5
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';
|
|
6
6
|
import { a as AgentToolProvider, A as AgentTool } from '../registry-D-4fit9C.js';
|
|
7
|
-
import {
|
|
8
|
-
export { B as BevelContour,
|
|
7
|
+
import { k as LayerEffects, m as LayerEffectKind, j as LayerEffect, h as EffectPattern, I as Interpolation } from '../render-OLIMk_v0.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-OLIMk_v0.js';
|
|
9
9
|
import { b as CaptureSurface } from '../capture-wwNGaW05.js';
|
|
10
|
-
export { DIRECT_GAUSSIAN_MAX_SIGMA, DecodedPng,
|
|
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';
|
|
11
12
|
import { a as MixerLoad, M as MixerSettings } from '../mixer-DNqiYXYQ.js';
|
|
12
13
|
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
14
|
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';
|
|
@@ -15,7 +16,9 @@ import { W as WarpStyle, a as WarpMesh, V as Vec2, Q as Quad } from '../types-Cw
|
|
|
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
|
|
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
|
-
|
|
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
|
|
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 };
|