@pixerate/editor 0.128.0 → 0.130.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-editor/index.cjs +55 -55
- package/dist/animation-editor/index.d.cts +5 -5
- package/dist/animation-editor/index.d.ts +5 -5
- package/dist/animation-editor/index.js +2 -2
- package/dist/{bezier-CvgQiYRg.d.cts → bezier-CdoGygwG.d.cts} +1 -1
- package/dist/{bezier-DP4NnJp3.d.ts → bezier-CigmusV_.d.ts} +1 -1
- package/dist/canvas/index.d.cts +7 -7
- package/dist/canvas/index.d.ts +7 -7
- package/dist/{chunk-BEGEWQHD.cjs → chunk-2PXRKMOH.cjs} +36 -36
- package/dist/{chunk-BEGEWQHD.cjs.map → chunk-2PXRKMOH.cjs.map} +1 -1
- package/dist/{chunk-F7Q2NE2Y.js → chunk-ERYGCA72.js} +2 -2
- package/dist/{chunk-A6KHMKI4.js → chunk-L5OTIYOO.js} +2 -2
- package/dist/{chunk-ORE334I6.cjs → chunk-LXGOYRPE.cjs} +366 -68
- package/dist/chunk-LXGOYRPE.cjs.map +1 -0
- package/dist/{chunk-XLUYXUBD.cjs → chunk-PMHPXCJC.cjs} +82 -82
- package/dist/{chunk-XLUYXUBD.cjs.map → chunk-PMHPXCJC.cjs.map} +1 -1
- package/dist/{chunk-ROZFX4QI.js → chunk-PRYMC442.js} +302 -4
- package/dist/chunk-PRYMC442.js.map +1 -0
- package/dist/effects/index.d.cts +4 -4
- package/dist/effects/index.d.ts +4 -4
- package/dist/{export-Cbr9IqpJ.d.cts → export-5WDKJqTy.d.cts} +1 -1
- package/dist/{export-DHrFJ8r_.d.ts → export-B4r8b9Ft.d.ts} +11 -4
- package/dist/{export-ClPKUB-v.d.ts → export-CU_ARP3A.d.ts} +1 -1
- package/dist/{export-BkYQvV56.d.cts → export-CejjC2iI.d.cts} +11 -4
- package/dist/{helpers-C5aAd44p.d.cts → helpers-CzZu51eI.d.cts} +33 -2
- package/dist/{helpers-CPWcK504.d.ts → helpers-X_rycLNJ.d.ts} +33 -2
- package/dist/image-editor/index.cjs +672 -621
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +8 -8
- package/dist/image-editor/index.d.ts +8 -8
- package/dist/image-editor/index.js +65 -14
- package/dist/image-editor/index.js.map +1 -1
- package/dist/{opentype-sQrF3Ry1.d.ts → opentype-CrHAsKh3.d.ts} +2 -2
- package/dist/{opentype-BOewaGQx.d.cts → opentype-DlRMYcCW.d.cts} +2 -2
- package/dist/paint-editor/index.cjs +7 -7
- package/dist/paint-editor/index.d.cts +5 -5
- package/dist/paint-editor/index.d.ts +5 -5
- package/dist/paint-editor/index.js +2 -2
- package/dist/{pathfinder-CnkW7zLI.d.cts → pathfinder-CKfKOVP4.d.cts} +1 -1
- package/dist/{pathfinder-BwJx0_zM.d.ts → pathfinder-Dlss70hL.d.ts} +1 -1
- package/dist/{pool-CTrtciaN.d.ts → pool-DDOo0xJH.d.ts} +1 -1
- package/dist/{pool-C7GtrL34.d.cts → pool-DKic69LD.d.cts} +1 -1
- package/dist/{svg-C4LlFnEw.d.cts → svg-BRaii3pI.d.cts} +2 -2
- package/dist/{svg-CUzZa0EO.d.ts → svg-BYVZeVo0.d.ts} +2 -2
- package/dist/{tools-BpCmUNxb.d.cts → tools-CtheDLDr.d.cts} +1 -1
- package/dist/{tools-AugT22z3.d.ts → tools-D8bZ-7YG.d.ts} +1 -1
- package/dist/vector/index.cjs +884 -874
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +53 -10
- package/dist/vector/index.d.ts +53 -10
- package/dist/vector/index.js +15 -5
- package/dist/vector/index.js.map +1 -1
- package/dist/video-editor/index.d.cts +4 -4
- package/dist/video-editor/index.d.ts +4 -4
- package/dist/{warp-D62N_5VK.d.cts → warp-BFoYxy_s.d.cts} +2 -2
- package/dist/{warp-CIsO617e.d.ts → warp-CZVC8pB5.d.ts} +2 -2
- package/package.json +1 -1
- package/skills/pixerate-image-editor/SKILL.md +1 -1
- package/skills/pixerate-image-editor/references/color-management.md +4 -3
- package/skills/pixerate-vector/SKILL.md +1 -1
- package/skills/pixerate-vector/references/commands.md +2 -0
- package/dist/chunk-ORE334I6.cjs.map +0 -1
- package/dist/chunk-ROZFX4QI.js.map +0 -1
- /package/dist/{chunk-F7Q2NE2Y.js.map → chunk-ERYGCA72.js.map} +0 -0
- /package/dist/{chunk-A6KHMKI4.js.map → chunk-L5OTIYOO.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as LiveShapeKind, F as TypeLayerInfo, G as SmartFilter, J as LayerPlacement, K as FreeTransformMode, M as FreeTransformResult, N as FreeTransformSession, O as FreeTransformInit, Q as TransformAnchor } from '../export-
|
|
2
|
-
export { U as AIResultOptions, V as AdjustmentLayerBase, W as AdjustmentLayerInit, X as AdjustmentLayerUpdate, Y as AnnotationPlacement, Z as AnnotationType, _ as ArrowAnnotation, $ as AspectRatio, a0 as BaseAnnotation, a1 as BlackWhiteParams, a2 as BlurFilter, a3 as CircleAnnotation, a4 as CloneSource, a5 as ColorBalanceParams, a6 as ColorBalanceTone, a7 as ColorRangeOptions, a8 as ColorRangeSample, a9 as ConvertOptions, 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_PROOF, ah as DEFAULT_REFINE_EDGE_PARAMS, ai as DEFAULT_TRANSFORM, aj as DeserializeContext, ak as DevelopSettings, al as DocumentColorMode, am as DocumentColorProfile, an as EMPTY_DISTANCE, ao as EffectSmartFilter, ap as ExportOptions, aq as FREE_TRANSFORM_CONTENTS, ar as FREE_TRANSFORM_MODES, as as FillOptions, at as FreeTransformContent, au as FreeTransformGeometry, av as FreeTransformHost, aw as FreeTransformPreview, ax as GUIDED_FILTER_EPS, ay as GroupLayer, az as HISTOGRAM_BINS, aA as HistogramChannel, aB as HistoryEntryHandle, aC as HueSaturationParams, aD as IMAGE_EDITOR_SCHEMA_VERSION, aE as IMAGE_EFFECT_PLACES, aF as ImageAnnotation, aG as ImageDimensions, aH as ImageEditorAIHooks, I as ImageEditorAssetStore, aI as ImageEditorFit, aJ as ImageEditorOptions, aK as ImageEditorRenderer, aL as ImageEditorState, aM as ImageEditorTool, aN as ImageEffectGenerator, aO as ImageEffectPlace, aP as ImageEffectsEngine, aQ as ImageEffectsEngineOptions, aR as ImageLayerType, aS as InpaintHook, aT as InpaintOptions, aU as InvertParams, aV as LAYERED_SCHEMA_VERSION, aW as LIVE_SHAPE_KINDS, aX as LayerBase, aY as LayerBlendMode, aZ as LayerFilterKind, a_ as LayerLocation, a$ as LayerMaskProps, b0 as LayerOperationError, b1 as LayerProperties, b2 as LayerSourcesHost, b3 as LayerTarget, b4 as LegacySerializedImageEditorState, b5 as LevelsParams, b6 as LineAnnotation, b7 as LiveShape, b8 as MagicWandOptions, b9 as MixerStrokeInit, ba as PARAGRAPH_STYLE_FIELDS, bb as PSD_BLEND_KEYS, bc as PaintOptions, bd as PaintStrokeResult, be as PaintStrokeSession, bf as PenAnnotation, bg as PhotoFilterParams, bh as PixelBuffer, bi as PixelLayerInit, bj as PixelTransform, bk as PosterizeParams, bl as ProofSetup, bm as PsdChannel, bn as PsdExportInput, P as PsdExportResult, bo as PsdFile, bp as PsdHeader, bq as PsdImportOptions, br as PsdImportResult, bs as PsdLayerMask, bt as PsdLayerRecord, bu as PsdLayerSummary, bv as PsdRect, bw as PsdResource, bx as PsdSmartFilter, by as PsdTaggedBlock, bz as PsdTreeNode, bA as RETOUCH_TOOLS, bB as RectAnnotation, bC as RemoveBackgroundHook, bD as RemoveBackgroundOptions, bE as RenderOptions, bF as RetouchStrokeInit, bG as RetouchTool, bH as SELECTION_MODES, bI as SELECTION_MODIFY_OPS, bJ as SHAPE_OPERATIONS, bK as SHAPE_RENDER_MARGIN, bL as SMART_RENDER_MARGIN, bM as SampleOptions, bN as SelectionChannel, bO as SelectionCommandOptions, bP as SelectionModifyOp, bQ as SerializeContext, bR as SerializedAdjustmentLayer, bS as SerializedAnnotationLayer, bT as SerializedColorMode, bU as SerializedColorProfile, bV as SerializedDeepPixels, bW as SerializedGroupLayer, S as SerializedLayer, bX as SerializedLayerEffects, bY as SerializedLayeredImageEditorState, bZ as SerializedPattern, b_ as SerializedPixelLayer, b$ as SerializedRasterMask, c0 as SerializedSelection, c1 as SerializedShapeLayer, c2 as SerializedSmartContents, c3 as SerializedSmartFilter, c4 as SerializedSmartObjectLayer, c5 as SerializedTypeLayer, c6 as ShapeArrowhead, c7 as ShapeComponent, c8 as ShapeEnv, c9 as ShapeFillRule, ca as ShapeGeometryInput, cb as ShapeLayerData, cc as ShapeLayerInfo, cd as ShapeLayerInit, ce as ShapeLineCap, cf as ShapeLineJoin, cg as ShapeOperation, ch as ShapePaint, ci as ShapePsdData, cj as ShapeSelectionOptions, ck as ShapeStroke, cl as ShapeStrokeAlign, cm as ShapeStrokeInput, cn as SmartCanvas, co as SmartContents, cp as SmartDocument, cq as SmartEffectResolver, cr as SmartFilterKind, cs as SmartFilterStack, ct as SmartObjectInfo, cu as SmartObjectLayer, cv as SmartPlacement, cw as SmartPsdData, cx as SmartRenderOptions, cy as StrokeInit, cz as StrokeTool, cA as TEXT_RENDER_MARGIN, cB as TEXT_STYLE_FIELDS, cC as TONE_RANGE_PRESETS, cD as TRANSFORM_ANCHORS, cE as TextAnnotation, cF as TextLayerInit, cG as ThresholdParams, cH as ToneRangePreset, cI as TransformParams, cJ as TransformReadout, cK as TypeLayerData, cL as TypePsdData, cM as VibranceParams, cN as ViewportMetrics, cO as activeEffectSmartFilters, cP as activeSmartFilters, cQ as addLayerEffect, cR as addLayerFilter, cS as addSmartFilter, cT as adjustmentNodeAsLayer, cU as anchorPoint, cV as annotationBlend, cW as annotationOfShape, cX as annotationOfType, cY as applyImageProjectionToContext, cZ as applyParams, c_ as applySmartFilters, c$ as blurFilter, d0 as borderCoverage, d1 as boxMean, d2 as boxPointOf, d3 as buildLayerMaskPlanes, d4 as calculateCropDrag, d5 as canvasToImagePoint, d6 as checkImageEffectPlace, d7 as clampCropToImage, d8 as colorModePlanes, d9 as colorRange, da as combineSelections, db as componentPath, dc as compositeDeep, dd as computeHistogram, de as computeSelectionBounds, df as contentsBox, dg as contentsSurface, dh as contractCoverage, di as convertHex, dj as convertSurfaceColors, dk as convertToSmartObject, dl as copySmartObject, dm as cornersFromMatrix, dn as coverageToByte, dp as createSelectionMask, dq as createShapeLayer, dr as createTypeLayer, ds as decodeDeepSurface, dt as decodeLayerChannel, du as decodeLayerMask, dv as decodeMergedImage, dw as decodePngDataUrl, dx as decodeSelectionRle, dy as defaultShapeName, dz as depthMaskAlpha, dA as describeTransform, dB as deserializeColorMode, dC as deserializeColorProfile, dD as deserializeEffects, dE as deserializeLayer, dF as deserializeLayers, dG as deserializePatterns, dH as deserializeSelection, dI as developFilter, dJ as displayTransform, dK as distanceTransform, dL as documentContents, dM as documentProfile, dN as duplicateLayer, dO as edgeWidth, dP as effectPixelsToSurface, dQ as effectiveProof, dR as ellipsePoints, dS as ellipseSelection, dT as encodeDeepSurface, dU as encodeSelectionRle, dV as encodeSurface, dW as expandCoverage, dX as exportPsd, dY as featherCoverage, dZ as filterMaskCoverage, d_ as flipCorners, d$ as fullSelection, e0 as geometryHomography, e1 as getAnnotationBounds, e2 as getCropCursor, e3 as getRotatedSize, e4 as getViewportMetrics, e5 as getViewportProjection, e6 as globalImageCache, e7 as greyMorphology, e8 as groupLayers, e9 as guidePlanes, ea as guidedFilterColor, eb as hasSurface, ec as hasWarp, ed as hashMaskContent, ee as histogramPath, ef as hitTestAnnotation, eg as hitTestCrop, eh as hueRange, ei as identityTransform, ej as imageToCanvasPoint, ek as importPsd, el as instancesOf, em as invertSelection, en as isActiveFilter, eo as isContentsDecoded, ep as isIdentityTransform, eq as isQuarterTurnSwapped, er as isRenderedLayer, es as isRetouchTool, et as isSelectionEmpty, eu as isSelectionMode, ev as isSmartSurfaceIncomplete, ew as isSpatialFilter, ex as isSrgb, ey as isTransformAnchor, ez as isValidWarp, eA as layerEffectsOf, eB as layerMaskCoverage, eC as layerMaskFromSelection, eD as layerMaskKey, eE as layerName, eF as layerTree, eG as layerTypeLabel, eH as liveComponent, eI as liveShapeSubpaths, eJ as magicWand, eK as mapCropHandle, eL as mapSubpaths, eM as matrixFromCorners, eN as matrixFromParams, eO as mergeShapeComponents, eP as migrateSerializedImageEditorState, eQ as migrateToLayeredState, eR as modifySelection, eS as moveLayer, eT as moveSmartFilter, eU as newContentsId, eV as newLayerId, eW as normalizeAngle, eX as normalizeFilter, eY as normalizeLayerMask, eZ as normalizeLiveShape, e_ as normalizePlacement, e$ as normalizeRect, f0 as normalizeRefineEdgeParams, f1 as normalizeShapePaint, f2 as normalizeShapeStroke, f3 as normalizeSmartFilter, f4 as normalizeStoredAdjustments, f5 as normalizeSubpaths, f6 as normalizeText, f7 as offsetLayer, f8 as offsetShape, f9 as offsetSmartObject, fa as parseBlend, fb as parseColor, fc as parseSelectionMode, fd as patchParagraphStyle, fe as patchTextStyle, ff as pixelLayerBounds, fg as pixelLayers, fh as placeContents, fi as placeLayer, fj as placementAt, fk as placementBounds, fl as placementGeometry, fm as polygonCoverage, fn as polygonSelection, fo as presetWarp, fp as previewStep, fq as profileBytes, fr as projectImagePoint, fs as projectImageRect, ft as projectMaskCoverage, fu as psdToLayers, fv as rasterContents, fw as rasterizeSmartObject, fx as readPsd, fy as rectSelection, fz as referencePoint, fA as refineCoverage, fB as refineEdgeHalo, fC as refineSelection, fD as removeLayer, fE as removeLayerEffect, fF as removeLayerFilter, fG as removeSmartFilter, fH as renderShape, fI as renderShapeRect, fJ as renderSmartObject, fK as renderText, fL as replaceContents, fM as replaceTextRange, fN as requireLayer, fO as requireOperation, fP as requireShapeLayer, fQ as requireSmartObject, fR as requireTypeLayer, fS as requireUnlocked, fT as rerender, fU as rerenderShape, fV as rerenderText, fW as resizePixels, fX as resizeSelection, fY as resolveExternalAssets, fZ as resolveProfile, f_ as runLayerFilters, f$ as runLayerFiltersFloat, g0 as selectionArea, g1 as selectionFromCoverage, g2 as selectionFromPixels, g3 as selectionToCoverage, g4 as selectionToPixels, g5 as selectionValueAt, g6 as serializeColorMode, g7 as serializeColorProfile, g8 as serializeContents, g9 as serializeEffects, ga as serializeLayer, gb as serializeLayers, gc as serializeLayersExternal, gd as serializePatterns, ge as serializeSelection, gf as setLayerEffects, gg as setLayerEffectsEnabled, gh as setLayerMask, gi as setLayerProperties, gj as setSmartFilterMask, gk as setSmartFiltersEnabled, gl as setSmartPlacement, gm as shapeAsPixelLayer, gn as shapeFromAnnotation, go as shapeGeometryBounds, gp as shapeLayers, gq as shapeOutline, gr as shapeRenderClip, gs as shiftCoverage, gt as smartObjectLayers, gu as smoothCoverage, gv as srgb8ToLab, gw as textMatrix, gx as textOutlines, gy as textRange, gz as toHex, gA as toTextSpace, gB as toneRange, gC as transformHomography, gD as transformMap, gE as transformShapeComponents, gF as transformTypeLayer, gG as transformedBox, gH as transformedPoint, gI as typeAsPixelLayer, gJ as typeFrame, gK as typeFromAnnotation, gL as typeLayerName, gM as ungroupLayer, gN as unionRect, gO as unprojectCanvasPoint, gP as updateLayerEffect, gQ as updateLayerFilter, gR as updateLayerMaskProps, gS as updateShapeLayer, gT as updateSmartFilter, gU as updateTypeLayer, gV as withFilterMaskSurface, gW as withNewIds, gX as writePsd } from '../export-BkYQvV56.cjs';
|
|
1
|
+
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, 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 LiveShapeKind, F as TypeLayerInfo, G as SmartFilter, J as LayerPlacement, K as FreeTransformMode, M as FreeTransformResult, N as FreeTransformSession, O as FreeTransformInit, Q as TransformAnchor } from '../export-CejjC2iI.cjs';
|
|
2
|
+
export { U as AIResultOptions, V as AdjustmentLayerBase, W as AdjustmentLayerInit, X as AdjustmentLayerUpdate, Y as AnnotationPlacement, Z as AnnotationType, _ as ArrowAnnotation, $ as AspectRatio, a0 as BaseAnnotation, a1 as BlackWhiteParams, a2 as BlurFilter, a3 as CircleAnnotation, a4 as CloneSource, a5 as ColorBalanceParams, a6 as ColorBalanceTone, a7 as ColorRangeOptions, a8 as ColorRangeSample, a9 as ConvertOptions, 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_PROOF, ah as DEFAULT_REFINE_EDGE_PARAMS, ai as DEFAULT_TRANSFORM, aj as DeserializeContext, ak as DevelopSettings, al as DocumentColorMode, am as DocumentColorProfile, an as EMPTY_DISTANCE, ao as EffectSmartFilter, ap as ExportOptions, aq as FREE_TRANSFORM_CONTENTS, ar as FREE_TRANSFORM_MODES, as as FillOptions, at as FreeTransformContent, au as FreeTransformGeometry, av as FreeTransformHost, aw as FreeTransformPreview, ax as GUIDED_FILTER_EPS, ay as GroupLayer, az as HISTOGRAM_BINS, aA as HistogramChannel, aB as HistoryEntryHandle, aC as HueSaturationParams, aD as IMAGE_EDITOR_SCHEMA_VERSION, aE as IMAGE_EFFECT_PLACES, aF as ImageAnnotation, aG as ImageDimensions, aH as ImageEditorAIHooks, I as ImageEditorAssetStore, aI as ImageEditorFit, aJ as ImageEditorOptions, aK as ImageEditorRenderer, aL as ImageEditorState, aM as ImageEditorTool, aN as ImageEffectGenerator, aO as ImageEffectPlace, aP as ImageEffectsEngine, aQ as ImageEffectsEngineOptions, aR as ImageLayerType, aS as InpaintHook, aT as InpaintOptions, aU as InvertParams, aV as LAYERED_SCHEMA_VERSION, aW as LIVE_SHAPE_KINDS, aX as LayerBase, aY as LayerBlendMode, aZ as LayerFilterKind, a_ as LayerLocation, a$ as LayerMaskProps, b0 as LayerOperationError, b1 as LayerProperties, b2 as LayerSourcesHost, b3 as LayerTarget, b4 as LegacySerializedImageEditorState, b5 as LevelsParams, b6 as LineAnnotation, b7 as LiveShape, b8 as MagicWandOptions, b9 as MixerStrokeInit, ba as PARAGRAPH_STYLE_FIELDS, bb as PSD_BLEND_KEYS, bc as PaintOptions, bd as PaintStrokeResult, be as PaintStrokeSession, bf as PenAnnotation, bg as PhotoFilterParams, bh as PixelBuffer, bi as PixelLayerInit, bj as PixelTransform, bk as PosterizeParams, bl as ProofSetup, bm as PsdChannel, bn as PsdExportInput, P as PsdExportResult, bo as PsdFile, bp as PsdHeader, bq as PsdImportOptions, br as PsdImportResult, bs as PsdLayerMask, bt as PsdLayerRecord, bu as PsdLayerSummary, bv as PsdRect, bw as PsdResource, bx as PsdSmartFilter, by as PsdTaggedBlock, bz as PsdTreeNode, bA as RETOUCH_TOOLS, bB as RectAnnotation, bC as RemoveBackgroundHook, bD as RemoveBackgroundOptions, bE as RenderOptions, bF as RetouchStrokeInit, bG as RetouchTool, bH as SELECTION_MODES, bI as SELECTION_MODIFY_OPS, bJ as SHAPE_OPERATIONS, bK as SHAPE_RENDER_MARGIN, bL as SMART_RENDER_MARGIN, bM as SampleOptions, bN as SelectionChannel, bO as SelectionCommandOptions, bP as SelectionModifyOp, bQ as SerializeContext, bR as SerializedAdjustmentLayer, bS as SerializedAnnotationLayer, bT as SerializedColorMode, bU as SerializedColorProfile, bV as SerializedDeepPixels, bW as SerializedGroupLayer, S as SerializedLayer, bX as SerializedLayerEffects, bY as SerializedLayeredImageEditorState, bZ as SerializedPattern, b_ as SerializedPixelLayer, b$ as SerializedRasterMask, c0 as SerializedSelection, c1 as SerializedShapeLayer, c2 as SerializedSmartContents, c3 as SerializedSmartFilter, c4 as SerializedSmartObjectLayer, c5 as SerializedTypeLayer, c6 as ShapeArrowhead, c7 as ShapeComponent, c8 as ShapeEnv, c9 as ShapeFillRule, ca as ShapeGeometryInput, cb as ShapeLayerData, cc as ShapeLayerInfo, cd as ShapeLayerInit, ce as ShapeLineCap, cf as ShapeLineJoin, cg as ShapeOperation, ch as ShapePaint, ci as ShapePsdData, cj as ShapeSelectionOptions, ck as ShapeStroke, cl as ShapeStrokeAlign, cm as ShapeStrokeInput, cn as SmartCanvas, co as SmartContents, cp as SmartDocument, cq as SmartEffectResolver, cr as SmartFilterKind, cs as SmartFilterStack, ct as SmartObjectInfo, cu as SmartObjectLayer, cv as SmartPlacement, cw as SmartPsdData, cx as SmartRenderOptions, cy as StrokeInit, cz as StrokeTool, cA as TEXT_RENDER_MARGIN, cB as TEXT_STYLE_FIELDS, cC as TONE_RANGE_PRESETS, cD as TRANSFORM_ANCHORS, cE as TextAnnotation, cF as TextLayerInit, cG as ThresholdParams, cH as ToneRangePreset, cI as TransformParams, cJ as TransformReadout, cK as TypeLayerData, cL as TypePsdData, cM as VibranceParams, cN as ViewportMetrics, cO as activeEffectSmartFilters, cP as activeSmartFilters, cQ as addLayerEffect, cR as addLayerFilter, cS as addSmartFilter, cT as adjustmentNodeAsLayer, cU as anchorPoint, cV as annotationBlend, cW as annotationOfShape, cX as annotationOfType, cY as applyImageProjectionToContext, cZ as applyParams, c_ as applySmartFilters, c$ as blurFilter, d0 as borderCoverage, d1 as boxMean, d2 as boxPointOf, d3 as buildLayerMaskPlanes, d4 as calculateCropDrag, d5 as canvasToImagePoint, d6 as checkImageEffectPlace, d7 as clampCropToImage, d8 as colorModePlanes, d9 as colorRange, da as combineSelections, db as componentPath, dc as compositeDeep, dd as computeHistogram, de as computeSelectionBounds, df as contentsBox, dg as contentsSurface, dh as contractCoverage, di as convertColorFields, dj as convertHex, dk as convertSurfaceColors, dl as convertToSmartObject, dm as copySmartObject, dn as cornersFromMatrix, dp as coverageToByte, dq as createSelectionMask, dr as createShapeLayer, ds as createTypeLayer, dt as decodeDeepSurface, du as decodeLayerChannel, dv as decodeLayerMask, dw as decodeMergedImage, dx as decodePngDataUrl, dy as decodeSelectionRle, dz as defaultShapeName, dA as depthMaskAlpha, dB as describeTransform, dC as deserializeColorMode, 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 documentContents, dN as documentProfile, dO as duplicateLayer, dP as edgeWidth, dQ as effectPixelsToSurface, dR as effectiveProof, dS as ellipsePoints, dT as ellipseSelection, dU as encodeDeepSurface, dV as encodeSelectionRle, dW as encodeSurface, dX as expandCoverage, dY as exportPsd, dZ as featherCoverage, d_ as filterMaskCoverage, d$ as flipCorners, e0 as fullSelection, e1 as geometryHomography, e2 as getAnnotationBounds, e3 as getCropCursor, e4 as getRotatedSize, e5 as getViewportMetrics, e6 as getViewportProjection, e7 as globalImageCache, e8 as greyMorphology, e9 as groupLayers, ea as guidePlanes, eb as guidedFilterColor, ec as hasSurface, ed as hasWarp, ee as hashMaskContent, ef as histogramPath, eg as hitTestAnnotation, eh as hitTestCrop, ei as hueRange, ej as identityTransform, ek as imageToCanvasPoint, el as importPsd, em as instancesOf, en as invertSelection, eo as isActiveFilter, ep as isContentsDecoded, eq as isIdentityTransform, er as isQuarterTurnSwapped, es as isRenderedLayer, et as isRetouchTool, eu as isSelectionEmpty, ev as isSelectionMode, ew as isSmartSurfaceIncomplete, ex as isSpatialFilter, ey as isSrgb, ez as isTransformAnchor, eA as isValidWarp, eB as layerEffectsOf, eC as layerMaskCoverage, eD as layerMaskFromSelection, eE as layerMaskKey, eF as layerName, eG as layerTree, eH as layerTypeLabel, eI as liveComponent, eJ as liveShapeSubpaths, eK as magicWand, eL as mapCropHandle, eM as mapSubpaths, eN as matrixFromCorners, eO as matrixFromParams, eP as mergeShapeComponents, eQ as migrateSerializedImageEditorState, eR as migrateToLayeredState, eS as modifySelection, eT as moveLayer, eU as moveSmartFilter, eV as newContentsId, eW as newLayerId, eX as normalizeAngle, eY as normalizeFilter, eZ as normalizeLayerMask, e_ as normalizeLiveShape, e$ as normalizePlacement, f0 as normalizeRect, f1 as normalizeRefineEdgeParams, f2 as normalizeShapePaint, f3 as normalizeShapeStroke, f4 as normalizeSmartFilter, f5 as normalizeStoredAdjustments, f6 as normalizeSubpaths, f7 as normalizeText, f8 as offsetLayer, f9 as offsetShape, fa as offsetSmartObject, fb as parseBlend, fc as parseColor, fd as parseSelectionMode, fe as patchParagraphStyle, ff as patchTextStyle, fg as pixelLayerBounds, fh as pixelLayers, fi as placeContents, fj as placeLayer, fk as placementAt, fl as placementBounds, fm as placementGeometry, fn as polygonCoverage, fo as polygonSelection, fp as presetWarp, fq as previewStep, fr as profileBytes, fs as projectImagePoint, ft as projectImageRect, fu as projectMaskCoverage, fv as psdToLayers, fw as rasterContents, fx as rasterizeSmartObject, fy as readPsd, fz as rectSelection, fA as referencePoint, fB as refineCoverage, fC as refineEdgeHalo, fD as refineSelection, fE as removeLayer, fF as removeLayerEffect, fG as removeLayerFilter, fH as removeSmartFilter, fI as renderShape, fJ as renderShapeRect, fK as renderSmartObject, fL as renderText, fM as replaceContents, fN as replaceTextRange, fO as requireLayer, fP as requireOperation, fQ as requireShapeLayer, fR as requireSmartObject, fS as requireTypeLayer, fT as requireUnlocked, fU as rerender, fV as rerenderShape, fW as rerenderText, fX as resizePixels, fY as resizeSelection, fZ as resolveExternalAssets, f_ as resolveProfile, f$ as runLayerFilters, g0 as runLayerFiltersFloat, g1 as selectionArea, g2 as selectionFromCoverage, g3 as selectionFromPixels, g4 as selectionToCoverage, g5 as selectionToPixels, g6 as selectionValueAt, g7 as serializeColorMode, g8 as serializeColorProfile, g9 as serializeContents, ga as serializeEffects, gb as serializeLayer, gc as serializeLayers, gd as serializeLayersExternal, ge as serializePatterns, gf as serializeSelection, gg as setLayerEffects, gh as setLayerEffectsEnabled, gi as setLayerMask, gj as setLayerProperties, gk as setSmartFilterMask, gl as setSmartFiltersEnabled, gm as setSmartPlacement, gn as shapeAsPixelLayer, go as shapeFromAnnotation, gp as shapeGeometryBounds, gq as shapeLayers, gr as shapeOutline, gs as shapeRenderClip, gt as shiftCoverage, gu as smartObjectLayers, gv as smoothCoverage, gw as srgb8ToLab, gx as textMatrix, gy as textOutlines, gz as textRange, gA as toHex, gB as toTextSpace, gC as toneRange, gD as transformHomography, gE as transformMap, gF as transformShapeComponents, gG as transformTypeLayer, gH as transformedBox, gI as transformedPoint, gJ as typeAsPixelLayer, gK as typeFrame, gL as typeFromAnnotation, gM as typeLayerName, gN as ungroupLayer, gO as unionRect, gP as unprojectCanvasPoint, gQ as updateLayerEffect, gR as updateLayerFilter, gS as updateLayerMaskProps, gT as updateShapeLayer, gU as updateSmartFilter, gV as updateTypeLayer, gW as withFilterMaskSurface, gX as withNewIds, gY as writePsd } from '../export-CejjC2iI.cjs';
|
|
3
3
|
import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.cjs';
|
|
4
4
|
import { a as BlendMode } from '../surface-1MRncXpF.cjs';
|
|
5
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, c as PixelSurface, R as RasterRect, d as Rgb, e as Rgba, S as SHADOW_AMBIENT, f as SurfaceDraft, g as TILE, h as TILE_SHIFT, i as Tile, j as TileKey, T 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-1MRncXpF.cjs';
|
|
@@ -8,10 +8,10 @@ import { S as LayerEffects, Q as LayerEffectKind, O as LayerEffect, u as EffectP
|
|
|
8
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 keepDeepSamples, aJ as keysWeight, aK as layerEffectFields, aL as layerEffectLabel, aM as mapLayer, aN as mergeLayerEffect, aO as newEffectId, aP as normalizeLayerEffects, aQ as parseEffectColor, aS as proxyOf, aT as readDeepRegion, aU as reduceSurface, aV as renderLayerEffects, aW as scaleLayerEffect, aX as srgbDecode, aY as srgbEncode, aZ as surfaceDepth, a_ as surfaceFromDeepPixels, a$ as tileSamples, b0 as tileSamples16, b1 as tileSamples32, b2 as to16From32, b3 as to16From8, b4 as to32From16, b5 as to32From8, b6 as to8From16, b7 as to8From32, b8 as transformSurface, b9 as transformedBounds, ba as validateEffectGradient, bb as validateLayerEffect, bc as validateLayerEffects, bd as warpSurface, be as writeDeepRegion } from '../deep-CcwHkQdb.cjs';
|
|
9
9
|
import { b as CaptureSurface } from '../capture-DFEMFmVt.cjs';
|
|
10
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,
|
|
12
|
-
import {
|
|
13
|
-
export { D as DEFAULT_AUTO_LEADING,
|
|
14
|
-
import { B as BezierPath } from '../bezier-
|
|
11
|
+
export { C as CanvasTextShaperOptions, O as OpenTypeFont, a as OutlineFontEntry, b as OutlineFontFace, c as OutlinePathCommand, d as applyHomography, e as boxQuad, f as createCanvasTextShaper, g as createMetricTextShaper, h as createOutlineTextShaper, i as cssFont, j as cssFontFamily, k as homographyFromAffine, l as homographyFromPoints, m as invertHomography, n as loadOpenTypeFont, p as parseOpenTypeFont, r as rectToQuad } from '../opentype-DlRMYcCW.cjs';
|
|
12
|
+
import { f as TextAlign, d as TextStyle, c as ParagraphStyle } from '../warp-BFoYxy_s.cjs';
|
|
13
|
+
export { D as DEFAULT_AUTO_LEADING, g as DEFAULT_TEXT_STYLE, h as LaidChar, L as LaidFragment, i as LaidLine, P as ParagraphRun, j as TEXT_ALIGNS, a as TextFont, e as TextLayout, b as TextRun, T as TextShaper, k as WARP_STYLES, l as WARP_STYLE_LABELS, W as WarpPreset, m as caretAt, n as dragWarpMeshPoint, o as evalWarpMesh, p as fitParagraphRuns, q as fitRuns, r as fontOf, s as identityWarpMesh, t as layoutText, u as paragraphRanges, v as pullWarpMesh, w as resizeWarpMesh, x as restyleRange, y as spliceRuns, z as styleAt, A as textIndexAt, B as warpMeshEditPoints, C as warpMeshGridCurves, E as warpMeshParamAt, F as warpPresetMesh } from '../warp-BFoYxy_s.cjs';
|
|
14
|
+
import { B as BezierPath } from '../bezier-CdoGygwG.cjs';
|
|
15
15
|
import { a as MixerLoad, M as MixerSettings } from '../rand-DTXAssW1.cjs';
|
|
16
16
|
export { au as BlenderScratch, k as BlenderSettings, B as BrushSettings, C as CoverageMap, av as DEFAULT_BLENDER, aw as DEFAULT_BRUSH, v as DEFAULT_FLOW, ax as DEFAULT_MIXER, w as DEFAULT_PAINT_GRADIENT, x as DEFAULT_PAINT_GRADIENT_MAPPING, ay as DEFAULT_RETOUCH, az as DEFAULT_SMUDGE, aA as DEFAULT_WET_PAPER, y as DEFAULT_WET_PARAMS, aB as DRY_EPS, D as Dab, aC as DabWalker, aD as EMPTY_MIXER_LOAD, aE as EX, aF as EY, aG as ExchangeRates, aH as FLAG_ALIVE, aI as FLAG_BOTTOM, aJ as FLAG_LEFT, aK as FLAG_RIGHT, aL as FLAG_TOP, aM as FLAG_WET, aN as FLAT, aO as FREE_INTERVAL, aP as MAX_BATCH, z as MAX_BRUSH_SIZE, aQ as MAX_TILT_ACCEL, aR as MAX_WET_LANES, aS as MAX_WET_SLOTS, aT as MIXER_DRAIN, aU as MIXER_PICKUP_RATE, aV as MIXING_MODELS, c as MixerStroke, b as MixerTarget, j as MixingModel, aW as OPP, A as PAINT_COLOR_JSON_SCHEMA, E as PAINT_GRADIENT_FULL_SPEED, F as PAINT_GRADIENT_JSON_SCHEMA, G as PAINT_GRADIENT_KIT, H as PAINT_GRADIENT_MAPPINGS, I as PAINT_GRADIENT_MAPPING_LABELS, J as PAINT_GRADIENT_PRESETS, K as PAINT_GRADIENT_REPEATS, L as PAINT_GRADIENT_REPEAT_LABELS, N as PAINT_GRADIENT_SPACES, O as PAINT_GRADIENT_SPACE_LABELS, Q as PAINT_SOURCE_JSON_SCHEMA, aX as PAPER_CAPACITY, aY as PARAM, aZ as PARAM_FLOATS, a_ as PIGMENT_CHANNELS, a$ as PLANE, b0 as PLANE_BYTES, b1 as P_D0, b2 as P_EDGE, b3 as P_FX, b4 as P_FY, b5 as P_H, b6 as P_P0, b7 as P_RHO, b8 as P_SW, b9 as P_UX, ba as P_UY, U as PaintColorSource, V as PaintDabParams, bb as PaintExchange, X as PaintGradientKit, Y as PaintGradientMapping, Z as PaintGradientMappingKind, _ as PaintGradientRepeat, $ as PaintGradientSample, a0 as PaintGradientSampler, i as PaintGradientSource, a1 as PaintGradientSpace, a2 as PaintGradientStop, bc as PaintMedium, bd as PaintPixels, a3 as PaintRgb, be as PaintSample, P as PaintSource, a4 as PaintSourceError, g as PaintTileTarget, bf as PixelSource, bg as RETOUCH_SAMPLES, bh as RegionPixelSource, d as RetouchApply, bi as RetouchDabEffect, bj as RetouchDabStroke, f as RetouchPaint, bk as RetouchSample, R as RetouchSettings, p as RgbTriple, bl as SET_PLANES, bm as SLOT_BYTES, bn as SLOT_PLANES, bo as SLOT_SIDE, bp as SPOT_HEAL_TYPES, bq as STRIP, br as SmudgeDab, l as SmudgeSettings, bs as SmudgeTip, bt as SpotHealType, h as StrokeApply, S as StrokeCoverage, e as StrokePoint, bu as TIP_GRADIENT_STEPS, bv as TONE_RANGES, T as TileMedium, bw as TileMediumOptions, bx as TilePixelSource, by as ToneRange, bz as U_MAX, bA as W9, a5 as WET_FLOW_KINDS, a6 as WET_PARAM_KEYS, bB as WET_TILE, s as WetBackendInfo, bC as WetFlowField, a7 as WetFlowKind, o as WetFlowSpec, bD as WetGpuEngine, bE as WetGpuJob, r as WetGpuProvider, bF as WetGpuSupport, bG as WetKernelKind, bH as WetLaneOptions, bI as WetLaneStats, bJ as WetPaper, u as WetPaperInput, n as WetParams, t as WetSnapshot, a8 as WetSupport, m as WetTilt, bK as WetWorkerLayout, bL as WetWorkerPool, W as WetWorld, bM as WetWorldError, q as WetWorldOptions, a9 as addPaintGradientStop, bN as applyRetouchToTile, bO as applyStrokeToDeepTile, bP as applyStrokeToTile, bQ as applyToneToDeepTile, bR as blendRadius, bS as blenderDab, bT as canShareMemory, bU as cleanMixer, bV as coverageTileCoord, bW as createBlenderScratch, bX as createWetGpuEngine, bY as dabCoverage, bZ as dabRect, b_ as dodgeBurn, b$ as dodgeBurnCurve, c0 as dsincos, c1 as edgeBits, c2 as exchangeRates, c3 as findWebGpu, c4 as flowField, c5 as gradientDabColor, aa as hash2, c6 as healPixels, ab as hexToPaintRgb, ac as isGradientPaint, c7 as latticeViscosity, c8 as loadMixer, c9 as loadWetKernel, ca as luma, ad as mix32, cb as mixerRates, cc as normalizeBlender, cd as normalizeBrush, ae as normalizeFlow, af as normalizeHexColor, ce as normalizeMixer, cf as normalizeRetouch, cg as normalizeSmudge, ch as normalizeTilt, ag as normalizeWetParams, ci as packWetParams, ah as paintGradientMappingFor, ai as paintSourceColor, aj as paintSourceCss, ak as parsePaintSource, cj as perDabStrength, ck as put255, al as rand01, cl as rasterizeDab, am as readPaintSource, cm as readSourceRegion, an as removePaintGradientStop, ao as resolvePaintGradient, ap as reversePaintGradient, cn as rgbaViewOfGrey, co as saturationOf, aq as scalePaintGradient, cp as smoothPoints, cq as smudgeEffect, ar as solidPaint, cr as sponge, cs as spongeEffect, ct as spotHealPixels, cu as spotHealWindow, cv as tipFalloff, cw as tipReach, cx as tipShape, cy as toneOf, as as updatePaintGradientStop, cz as walkDabs, cA as wetGpuSupport, cB as wetSimdSupported, at as wetSupport } from '../rand-DTXAssW1.cjs';
|
|
17
17
|
export { BODY_SCATTER, BrushstrokeBrush, BrushstrokeCache, BrushstrokeCanvasLike, BrushstrokeImage, BrushstrokeInput, BrushstrokeOptions, BrushstrokePaint, BrushstrokeProfilePath, BrushstrokeSample, HIDE, PIGMENT_UNIT, PaintPathOptions, PathSample, PathStrokeOptions, PathStrokePaint, PointerEventLike, PointerStrokeSample, SRGB_TO_LINEAR, WGSL_HALO, WGSL_SHADE, WGSL_STEP, WetMedium, WetMediumOptions, bestOffset, brushstrokeDataUrl, brushstrokeKey, brushstrokeSamples, brushstrokeStrokeOptions, brushstrokeToCanvas, createPigmentTools, dexp, dilateMask, dlog, dpow, expNeg, filmPixel, filmReflectance, isBrushstrokeBrush, linearToSrgb8, maskBounds, membraneFill, paintPathStroke, pathStrokeCoverage, pathStrokeDabs, pigmentColor, pigmentOf, pixelPigment, pointerPressure, pointerStrokeSample, pointerStrokeSamples, renderBrushstroke, seamlessClone, shadeTile, solveMembrane, srgbByteToLinear, stepSlotTs } from '../paint/index.cjs';
|
|
@@ -19,9 +19,9 @@ import { j as Intent, b as BuiltinProfileId } from '../builtin-CY97ppKM.cjs';
|
|
|
19
19
|
export { a as BUILTIN_PROFILES, i as INTENTS } from '../builtin-CY97ppKM.cjs';
|
|
20
20
|
import { W as WarpStyle, a as WarpMesh, V as Vec2, Q as Quad } from '../types-CwMPoRMU.cjs';
|
|
21
21
|
export { A as AffineMatrix, H as Homography } from '../types-CwMPoRMU.cjs';
|
|
22
|
-
import { A as AppliedEffectInfo } from '../tools-
|
|
22
|
+
import { A as AppliedEffectInfo } from '../tools-CtheDLDr.cjs';
|
|
23
23
|
export { B as BRUSHSTROKE_MAX_SCALE, a as BRUSHSTROKE_MIN_SCALE, b as brushstrokeScaleBucket } from '../brushstroke-scale-B6XAdPSY.cjs';
|
|
24
|
-
import '../helpers-
|
|
24
|
+
import '../helpers-CzZu51eI.cjs';
|
|
25
25
|
import '../schema-Di0CS6Pe.cjs';
|
|
26
26
|
import '../evaluate-BsxYieLN.cjs';
|
|
27
27
|
import '../easing-lM0Xo9Ni.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as LiveShapeKind, F as TypeLayerInfo, G as SmartFilter, J as LayerPlacement, K as FreeTransformMode, M as FreeTransformResult, N as FreeTransformSession, O as FreeTransformInit, Q as TransformAnchor } from '../export-
|
|
2
|
-
export { U as AIResultOptions, V as AdjustmentLayerBase, W as AdjustmentLayerInit, X as AdjustmentLayerUpdate, Y as AnnotationPlacement, Z as AnnotationType, _ as ArrowAnnotation, $ as AspectRatio, a0 as BaseAnnotation, a1 as BlackWhiteParams, a2 as BlurFilter, a3 as CircleAnnotation, a4 as CloneSource, a5 as ColorBalanceParams, a6 as ColorBalanceTone, a7 as ColorRangeOptions, a8 as ColorRangeSample, a9 as ConvertOptions, 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_PROOF, ah as DEFAULT_REFINE_EDGE_PARAMS, ai as DEFAULT_TRANSFORM, aj as DeserializeContext, ak as DevelopSettings, al as DocumentColorMode, am as DocumentColorProfile, an as EMPTY_DISTANCE, ao as EffectSmartFilter, ap as ExportOptions, aq as FREE_TRANSFORM_CONTENTS, ar as FREE_TRANSFORM_MODES, as as FillOptions, at as FreeTransformContent, au as FreeTransformGeometry, av as FreeTransformHost, aw as FreeTransformPreview, ax as GUIDED_FILTER_EPS, ay as GroupLayer, az as HISTOGRAM_BINS, aA as HistogramChannel, aB as HistoryEntryHandle, aC as HueSaturationParams, aD as IMAGE_EDITOR_SCHEMA_VERSION, aE as IMAGE_EFFECT_PLACES, aF as ImageAnnotation, aG as ImageDimensions, aH as ImageEditorAIHooks, I as ImageEditorAssetStore, aI as ImageEditorFit, aJ as ImageEditorOptions, aK as ImageEditorRenderer, aL as ImageEditorState, aM as ImageEditorTool, aN as ImageEffectGenerator, aO as ImageEffectPlace, aP as ImageEffectsEngine, aQ as ImageEffectsEngineOptions, aR as ImageLayerType, aS as InpaintHook, aT as InpaintOptions, aU as InvertParams, aV as LAYERED_SCHEMA_VERSION, aW as LIVE_SHAPE_KINDS, aX as LayerBase, aY as LayerBlendMode, aZ as LayerFilterKind, a_ as LayerLocation, a$ as LayerMaskProps, b0 as LayerOperationError, b1 as LayerProperties, b2 as LayerSourcesHost, b3 as LayerTarget, b4 as LegacySerializedImageEditorState, b5 as LevelsParams, b6 as LineAnnotation, b7 as LiveShape, b8 as MagicWandOptions, b9 as MixerStrokeInit, ba as PARAGRAPH_STYLE_FIELDS, bb as PSD_BLEND_KEYS, bc as PaintOptions, bd as PaintStrokeResult, be as PaintStrokeSession, bf as PenAnnotation, bg as PhotoFilterParams, bh as PixelBuffer, bi as PixelLayerInit, bj as PixelTransform, bk as PosterizeParams, bl as ProofSetup, bm as PsdChannel, bn as PsdExportInput, P as PsdExportResult, bo as PsdFile, bp as PsdHeader, bq as PsdImportOptions, br as PsdImportResult, bs as PsdLayerMask, bt as PsdLayerRecord, bu as PsdLayerSummary, bv as PsdRect, bw as PsdResource, bx as PsdSmartFilter, by as PsdTaggedBlock, bz as PsdTreeNode, bA as RETOUCH_TOOLS, bB as RectAnnotation, bC as RemoveBackgroundHook, bD as RemoveBackgroundOptions, bE as RenderOptions, bF as RetouchStrokeInit, bG as RetouchTool, bH as SELECTION_MODES, bI as SELECTION_MODIFY_OPS, bJ as SHAPE_OPERATIONS, bK as SHAPE_RENDER_MARGIN, bL as SMART_RENDER_MARGIN, bM as SampleOptions, bN as SelectionChannel, bO as SelectionCommandOptions, bP as SelectionModifyOp, bQ as SerializeContext, bR as SerializedAdjustmentLayer, bS as SerializedAnnotationLayer, bT as SerializedColorMode, bU as SerializedColorProfile, bV as SerializedDeepPixels, bW as SerializedGroupLayer, S as SerializedLayer, bX as SerializedLayerEffects, bY as SerializedLayeredImageEditorState, bZ as SerializedPattern, b_ as SerializedPixelLayer, b$ as SerializedRasterMask, c0 as SerializedSelection, c1 as SerializedShapeLayer, c2 as SerializedSmartContents, c3 as SerializedSmartFilter, c4 as SerializedSmartObjectLayer, c5 as SerializedTypeLayer, c6 as ShapeArrowhead, c7 as ShapeComponent, c8 as ShapeEnv, c9 as ShapeFillRule, ca as ShapeGeometryInput, cb as ShapeLayerData, cc as ShapeLayerInfo, cd as ShapeLayerInit, ce as ShapeLineCap, cf as ShapeLineJoin, cg as ShapeOperation, ch as ShapePaint, ci as ShapePsdData, cj as ShapeSelectionOptions, ck as ShapeStroke, cl as ShapeStrokeAlign, cm as ShapeStrokeInput, cn as SmartCanvas, co as SmartContents, cp as SmartDocument, cq as SmartEffectResolver, cr as SmartFilterKind, cs as SmartFilterStack, ct as SmartObjectInfo, cu as SmartObjectLayer, cv as SmartPlacement, cw as SmartPsdData, cx as SmartRenderOptions, cy as StrokeInit, cz as StrokeTool, cA as TEXT_RENDER_MARGIN, cB as TEXT_STYLE_FIELDS, cC as TONE_RANGE_PRESETS, cD as TRANSFORM_ANCHORS, cE as TextAnnotation, cF as TextLayerInit, cG as ThresholdParams, cH as ToneRangePreset, cI as TransformParams, cJ as TransformReadout, cK as TypeLayerData, cL as TypePsdData, cM as VibranceParams, cN as ViewportMetrics, cO as activeEffectSmartFilters, cP as activeSmartFilters, cQ as addLayerEffect, cR as addLayerFilter, cS as addSmartFilter, cT as adjustmentNodeAsLayer, cU as anchorPoint, cV as annotationBlend, cW as annotationOfShape, cX as annotationOfType, cY as applyImageProjectionToContext, cZ as applyParams, c_ as applySmartFilters, c$ as blurFilter, d0 as borderCoverage, d1 as boxMean, d2 as boxPointOf, d3 as buildLayerMaskPlanes, d4 as calculateCropDrag, d5 as canvasToImagePoint, d6 as checkImageEffectPlace, d7 as clampCropToImage, d8 as colorModePlanes, d9 as colorRange, da as combineSelections, db as componentPath, dc as compositeDeep, dd as computeHistogram, de as computeSelectionBounds, df as contentsBox, dg as contentsSurface, dh as contractCoverage, di as convertHex, dj as convertSurfaceColors, dk as convertToSmartObject, dl as copySmartObject, dm as cornersFromMatrix, dn as coverageToByte, dp as createSelectionMask, dq as createShapeLayer, dr as createTypeLayer, ds as decodeDeepSurface, dt as decodeLayerChannel, du as decodeLayerMask, dv as decodeMergedImage, dw as decodePngDataUrl, dx as decodeSelectionRle, dy as defaultShapeName, dz as depthMaskAlpha, dA as describeTransform, dB as deserializeColorMode, dC as deserializeColorProfile, dD as deserializeEffects, dE as deserializeLayer, dF as deserializeLayers, dG as deserializePatterns, dH as deserializeSelection, dI as developFilter, dJ as displayTransform, dK as distanceTransform, dL as documentContents, dM as documentProfile, dN as duplicateLayer, dO as edgeWidth, dP as effectPixelsToSurface, dQ as effectiveProof, dR as ellipsePoints, dS as ellipseSelection, dT as encodeDeepSurface, dU as encodeSelectionRle, dV as encodeSurface, dW as expandCoverage, dX as exportPsd, dY as featherCoverage, dZ as filterMaskCoverage, d_ as flipCorners, d$ as fullSelection, e0 as geometryHomography, e1 as getAnnotationBounds, e2 as getCropCursor, e3 as getRotatedSize, e4 as getViewportMetrics, e5 as getViewportProjection, e6 as globalImageCache, e7 as greyMorphology, e8 as groupLayers, e9 as guidePlanes, ea as guidedFilterColor, eb as hasSurface, ec as hasWarp, ed as hashMaskContent, ee as histogramPath, ef as hitTestAnnotation, eg as hitTestCrop, eh as hueRange, ei as identityTransform, ej as imageToCanvasPoint, ek as importPsd, el as instancesOf, em as invertSelection, en as isActiveFilter, eo as isContentsDecoded, ep as isIdentityTransform, eq as isQuarterTurnSwapped, er as isRenderedLayer, es as isRetouchTool, et as isSelectionEmpty, eu as isSelectionMode, ev as isSmartSurfaceIncomplete, ew as isSpatialFilter, ex as isSrgb, ey as isTransformAnchor, ez as isValidWarp, eA as layerEffectsOf, eB as layerMaskCoverage, eC as layerMaskFromSelection, eD as layerMaskKey, eE as layerName, eF as layerTree, eG as layerTypeLabel, eH as liveComponent, eI as liveShapeSubpaths, eJ as magicWand, eK as mapCropHandle, eL as mapSubpaths, eM as matrixFromCorners, eN as matrixFromParams, eO as mergeShapeComponents, eP as migrateSerializedImageEditorState, eQ as migrateToLayeredState, eR as modifySelection, eS as moveLayer, eT as moveSmartFilter, eU as newContentsId, eV as newLayerId, eW as normalizeAngle, eX as normalizeFilter, eY as normalizeLayerMask, eZ as normalizeLiveShape, e_ as normalizePlacement, e$ as normalizeRect, f0 as normalizeRefineEdgeParams, f1 as normalizeShapePaint, f2 as normalizeShapeStroke, f3 as normalizeSmartFilter, f4 as normalizeStoredAdjustments, f5 as normalizeSubpaths, f6 as normalizeText, f7 as offsetLayer, f8 as offsetShape, f9 as offsetSmartObject, fa as parseBlend, fb as parseColor, fc as parseSelectionMode, fd as patchParagraphStyle, fe as patchTextStyle, ff as pixelLayerBounds, fg as pixelLayers, fh as placeContents, fi as placeLayer, fj as placementAt, fk as placementBounds, fl as placementGeometry, fm as polygonCoverage, fn as polygonSelection, fo as presetWarp, fp as previewStep, fq as profileBytes, fr as projectImagePoint, fs as projectImageRect, ft as projectMaskCoverage, fu as psdToLayers, fv as rasterContents, fw as rasterizeSmartObject, fx as readPsd, fy as rectSelection, fz as referencePoint, fA as refineCoverage, fB as refineEdgeHalo, fC as refineSelection, fD as removeLayer, fE as removeLayerEffect, fF as removeLayerFilter, fG as removeSmartFilter, fH as renderShape, fI as renderShapeRect, fJ as renderSmartObject, fK as renderText, fL as replaceContents, fM as replaceTextRange, fN as requireLayer, fO as requireOperation, fP as requireShapeLayer, fQ as requireSmartObject, fR as requireTypeLayer, fS as requireUnlocked, fT as rerender, fU as rerenderShape, fV as rerenderText, fW as resizePixels, fX as resizeSelection, fY as resolveExternalAssets, fZ as resolveProfile, f_ as runLayerFilters, f$ as runLayerFiltersFloat, g0 as selectionArea, g1 as selectionFromCoverage, g2 as selectionFromPixels, g3 as selectionToCoverage, g4 as selectionToPixels, g5 as selectionValueAt, g6 as serializeColorMode, g7 as serializeColorProfile, g8 as serializeContents, g9 as serializeEffects, ga as serializeLayer, gb as serializeLayers, gc as serializeLayersExternal, gd as serializePatterns, ge as serializeSelection, gf as setLayerEffects, gg as setLayerEffectsEnabled, gh as setLayerMask, gi as setLayerProperties, gj as setSmartFilterMask, gk as setSmartFiltersEnabled, gl as setSmartPlacement, gm as shapeAsPixelLayer, gn as shapeFromAnnotation, go as shapeGeometryBounds, gp as shapeLayers, gq as shapeOutline, gr as shapeRenderClip, gs as shiftCoverage, gt as smartObjectLayers, gu as smoothCoverage, gv as srgb8ToLab, gw as textMatrix, gx as textOutlines, gy as textRange, gz as toHex, gA as toTextSpace, gB as toneRange, gC as transformHomography, gD as transformMap, gE as transformShapeComponents, gF as transformTypeLayer, gG as transformedBox, gH as transformedPoint, gI as typeAsPixelLayer, gJ as typeFrame, gK as typeFromAnnotation, gL as typeLayerName, gM as ungroupLayer, gN as unionRect, gO as unprojectCanvasPoint, gP as updateLayerEffect, gQ as updateLayerFilter, gR as updateLayerMaskProps, gS as updateShapeLayer, gT as updateSmartFilter, gU as updateTypeLayer, gV as withFilterMaskSurface, gW as withNewIds, gX as writePsd } from '../export-DHrFJ8r_.js';
|
|
1
|
+
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as LiveShapeKind, F as TypeLayerInfo, G as SmartFilter, J as LayerPlacement, K as FreeTransformMode, M as FreeTransformResult, N as FreeTransformSession, O as FreeTransformInit, Q as TransformAnchor } from '../export-B4r8b9Ft.js';
|
|
2
|
+
export { U as AIResultOptions, V as AdjustmentLayerBase, W as AdjustmentLayerInit, X as AdjustmentLayerUpdate, Y as AnnotationPlacement, Z as AnnotationType, _ as ArrowAnnotation, $ as AspectRatio, a0 as BaseAnnotation, a1 as BlackWhiteParams, a2 as BlurFilter, a3 as CircleAnnotation, a4 as CloneSource, a5 as ColorBalanceParams, a6 as ColorBalanceTone, a7 as ColorRangeOptions, a8 as ColorRangeSample, a9 as ConvertOptions, 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_PROOF, ah as DEFAULT_REFINE_EDGE_PARAMS, ai as DEFAULT_TRANSFORM, aj as DeserializeContext, ak as DevelopSettings, al as DocumentColorMode, am as DocumentColorProfile, an as EMPTY_DISTANCE, ao as EffectSmartFilter, ap as ExportOptions, aq as FREE_TRANSFORM_CONTENTS, ar as FREE_TRANSFORM_MODES, as as FillOptions, at as FreeTransformContent, au as FreeTransformGeometry, av as FreeTransformHost, aw as FreeTransformPreview, ax as GUIDED_FILTER_EPS, ay as GroupLayer, az as HISTOGRAM_BINS, aA as HistogramChannel, aB as HistoryEntryHandle, aC as HueSaturationParams, aD as IMAGE_EDITOR_SCHEMA_VERSION, aE as IMAGE_EFFECT_PLACES, aF as ImageAnnotation, aG as ImageDimensions, aH as ImageEditorAIHooks, I as ImageEditorAssetStore, aI as ImageEditorFit, aJ as ImageEditorOptions, aK as ImageEditorRenderer, aL as ImageEditorState, aM as ImageEditorTool, aN as ImageEffectGenerator, aO as ImageEffectPlace, aP as ImageEffectsEngine, aQ as ImageEffectsEngineOptions, aR as ImageLayerType, aS as InpaintHook, aT as InpaintOptions, aU as InvertParams, aV as LAYERED_SCHEMA_VERSION, aW as LIVE_SHAPE_KINDS, aX as LayerBase, aY as LayerBlendMode, aZ as LayerFilterKind, a_ as LayerLocation, a$ as LayerMaskProps, b0 as LayerOperationError, b1 as LayerProperties, b2 as LayerSourcesHost, b3 as LayerTarget, b4 as LegacySerializedImageEditorState, b5 as LevelsParams, b6 as LineAnnotation, b7 as LiveShape, b8 as MagicWandOptions, b9 as MixerStrokeInit, ba as PARAGRAPH_STYLE_FIELDS, bb as PSD_BLEND_KEYS, bc as PaintOptions, bd as PaintStrokeResult, be as PaintStrokeSession, bf as PenAnnotation, bg as PhotoFilterParams, bh as PixelBuffer, bi as PixelLayerInit, bj as PixelTransform, bk as PosterizeParams, bl as ProofSetup, bm as PsdChannel, bn as PsdExportInput, P as PsdExportResult, bo as PsdFile, bp as PsdHeader, bq as PsdImportOptions, br as PsdImportResult, bs as PsdLayerMask, bt as PsdLayerRecord, bu as PsdLayerSummary, bv as PsdRect, bw as PsdResource, bx as PsdSmartFilter, by as PsdTaggedBlock, bz as PsdTreeNode, bA as RETOUCH_TOOLS, bB as RectAnnotation, bC as RemoveBackgroundHook, bD as RemoveBackgroundOptions, bE as RenderOptions, bF as RetouchStrokeInit, bG as RetouchTool, bH as SELECTION_MODES, bI as SELECTION_MODIFY_OPS, bJ as SHAPE_OPERATIONS, bK as SHAPE_RENDER_MARGIN, bL as SMART_RENDER_MARGIN, bM as SampleOptions, bN as SelectionChannel, bO as SelectionCommandOptions, bP as SelectionModifyOp, bQ as SerializeContext, bR as SerializedAdjustmentLayer, bS as SerializedAnnotationLayer, bT as SerializedColorMode, bU as SerializedColorProfile, bV as SerializedDeepPixels, bW as SerializedGroupLayer, S as SerializedLayer, bX as SerializedLayerEffects, bY as SerializedLayeredImageEditorState, bZ as SerializedPattern, b_ as SerializedPixelLayer, b$ as SerializedRasterMask, c0 as SerializedSelection, c1 as SerializedShapeLayer, c2 as SerializedSmartContents, c3 as SerializedSmartFilter, c4 as SerializedSmartObjectLayer, c5 as SerializedTypeLayer, c6 as ShapeArrowhead, c7 as ShapeComponent, c8 as ShapeEnv, c9 as ShapeFillRule, ca as ShapeGeometryInput, cb as ShapeLayerData, cc as ShapeLayerInfo, cd as ShapeLayerInit, ce as ShapeLineCap, cf as ShapeLineJoin, cg as ShapeOperation, ch as ShapePaint, ci as ShapePsdData, cj as ShapeSelectionOptions, ck as ShapeStroke, cl as ShapeStrokeAlign, cm as ShapeStrokeInput, cn as SmartCanvas, co as SmartContents, cp as SmartDocument, cq as SmartEffectResolver, cr as SmartFilterKind, cs as SmartFilterStack, ct as SmartObjectInfo, cu as SmartObjectLayer, cv as SmartPlacement, cw as SmartPsdData, cx as SmartRenderOptions, cy as StrokeInit, cz as StrokeTool, cA as TEXT_RENDER_MARGIN, cB as TEXT_STYLE_FIELDS, cC as TONE_RANGE_PRESETS, cD as TRANSFORM_ANCHORS, cE as TextAnnotation, cF as TextLayerInit, cG as ThresholdParams, cH as ToneRangePreset, cI as TransformParams, cJ as TransformReadout, cK as TypeLayerData, cL as TypePsdData, cM as VibranceParams, cN as ViewportMetrics, cO as activeEffectSmartFilters, cP as activeSmartFilters, cQ as addLayerEffect, cR as addLayerFilter, cS as addSmartFilter, cT as adjustmentNodeAsLayer, cU as anchorPoint, cV as annotationBlend, cW as annotationOfShape, cX as annotationOfType, cY as applyImageProjectionToContext, cZ as applyParams, c_ as applySmartFilters, c$ as blurFilter, d0 as borderCoverage, d1 as boxMean, d2 as boxPointOf, d3 as buildLayerMaskPlanes, d4 as calculateCropDrag, d5 as canvasToImagePoint, d6 as checkImageEffectPlace, d7 as clampCropToImage, d8 as colorModePlanes, d9 as colorRange, da as combineSelections, db as componentPath, dc as compositeDeep, dd as computeHistogram, de as computeSelectionBounds, df as contentsBox, dg as contentsSurface, dh as contractCoverage, di as convertColorFields, dj as convertHex, dk as convertSurfaceColors, dl as convertToSmartObject, dm as copySmartObject, dn as cornersFromMatrix, dp as coverageToByte, dq as createSelectionMask, dr as createShapeLayer, ds as createTypeLayer, dt as decodeDeepSurface, du as decodeLayerChannel, dv as decodeLayerMask, dw as decodeMergedImage, dx as decodePngDataUrl, dy as decodeSelectionRle, dz as defaultShapeName, dA as depthMaskAlpha, dB as describeTransform, dC as deserializeColorMode, 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 documentContents, dN as documentProfile, dO as duplicateLayer, dP as edgeWidth, dQ as effectPixelsToSurface, dR as effectiveProof, dS as ellipsePoints, dT as ellipseSelection, dU as encodeDeepSurface, dV as encodeSelectionRle, dW as encodeSurface, dX as expandCoverage, dY as exportPsd, dZ as featherCoverage, d_ as filterMaskCoverage, d$ as flipCorners, e0 as fullSelection, e1 as geometryHomography, e2 as getAnnotationBounds, e3 as getCropCursor, e4 as getRotatedSize, e5 as getViewportMetrics, e6 as getViewportProjection, e7 as globalImageCache, e8 as greyMorphology, e9 as groupLayers, ea as guidePlanes, eb as guidedFilterColor, ec as hasSurface, ed as hasWarp, ee as hashMaskContent, ef as histogramPath, eg as hitTestAnnotation, eh as hitTestCrop, ei as hueRange, ej as identityTransform, ek as imageToCanvasPoint, el as importPsd, em as instancesOf, en as invertSelection, eo as isActiveFilter, ep as isContentsDecoded, eq as isIdentityTransform, er as isQuarterTurnSwapped, es as isRenderedLayer, et as isRetouchTool, eu as isSelectionEmpty, ev as isSelectionMode, ew as isSmartSurfaceIncomplete, ex as isSpatialFilter, ey as isSrgb, ez as isTransformAnchor, eA as isValidWarp, eB as layerEffectsOf, eC as layerMaskCoverage, eD as layerMaskFromSelection, eE as layerMaskKey, eF as layerName, eG as layerTree, eH as layerTypeLabel, eI as liveComponent, eJ as liveShapeSubpaths, eK as magicWand, eL as mapCropHandle, eM as mapSubpaths, eN as matrixFromCorners, eO as matrixFromParams, eP as mergeShapeComponents, eQ as migrateSerializedImageEditorState, eR as migrateToLayeredState, eS as modifySelection, eT as moveLayer, eU as moveSmartFilter, eV as newContentsId, eW as newLayerId, eX as normalizeAngle, eY as normalizeFilter, eZ as normalizeLayerMask, e_ as normalizeLiveShape, e$ as normalizePlacement, f0 as normalizeRect, f1 as normalizeRefineEdgeParams, f2 as normalizeShapePaint, f3 as normalizeShapeStroke, f4 as normalizeSmartFilter, f5 as normalizeStoredAdjustments, f6 as normalizeSubpaths, f7 as normalizeText, f8 as offsetLayer, f9 as offsetShape, fa as offsetSmartObject, fb as parseBlend, fc as parseColor, fd as parseSelectionMode, fe as patchParagraphStyle, ff as patchTextStyle, fg as pixelLayerBounds, fh as pixelLayers, fi as placeContents, fj as placeLayer, fk as placementAt, fl as placementBounds, fm as placementGeometry, fn as polygonCoverage, fo as polygonSelection, fp as presetWarp, fq as previewStep, fr as profileBytes, fs as projectImagePoint, ft as projectImageRect, fu as projectMaskCoverage, fv as psdToLayers, fw as rasterContents, fx as rasterizeSmartObject, fy as readPsd, fz as rectSelection, fA as referencePoint, fB as refineCoverage, fC as refineEdgeHalo, fD as refineSelection, fE as removeLayer, fF as removeLayerEffect, fG as removeLayerFilter, fH as removeSmartFilter, fI as renderShape, fJ as renderShapeRect, fK as renderSmartObject, fL as renderText, fM as replaceContents, fN as replaceTextRange, fO as requireLayer, fP as requireOperation, fQ as requireShapeLayer, fR as requireSmartObject, fS as requireTypeLayer, fT as requireUnlocked, fU as rerender, fV as rerenderShape, fW as rerenderText, fX as resizePixels, fY as resizeSelection, fZ as resolveExternalAssets, f_ as resolveProfile, f$ as runLayerFilters, g0 as runLayerFiltersFloat, g1 as selectionArea, g2 as selectionFromCoverage, g3 as selectionFromPixels, g4 as selectionToCoverage, g5 as selectionToPixels, g6 as selectionValueAt, g7 as serializeColorMode, g8 as serializeColorProfile, g9 as serializeContents, ga as serializeEffects, gb as serializeLayer, gc as serializeLayers, gd as serializeLayersExternal, ge as serializePatterns, gf as serializeSelection, gg as setLayerEffects, gh as setLayerEffectsEnabled, gi as setLayerMask, gj as setLayerProperties, gk as setSmartFilterMask, gl as setSmartFiltersEnabled, gm as setSmartPlacement, gn as shapeAsPixelLayer, go as shapeFromAnnotation, gp as shapeGeometryBounds, gq as shapeLayers, gr as shapeOutline, gs as shapeRenderClip, gt as shiftCoverage, gu as smartObjectLayers, gv as smoothCoverage, gw as srgb8ToLab, gx as textMatrix, gy as textOutlines, gz as textRange, gA as toHex, gB as toTextSpace, gC as toneRange, gD as transformHomography, gE as transformMap, gF as transformShapeComponents, gG as transformTypeLayer, gH as transformedBox, gI as transformedPoint, gJ as typeAsPixelLayer, gK as typeFrame, gL as typeFromAnnotation, gM as typeLayerName, gN as ungroupLayer, gO as unionRect, gP as unprojectCanvasPoint, gQ as updateLayerEffect, gR as updateLayerFilter, gS as updateLayerMaskProps, gT as updateShapeLayer, gU as updateSmartFilter, gV as updateTypeLayer, gW as withFilterMaskSurface, gX as withNewIds, gY as writePsd } from '../export-B4r8b9Ft.js';
|
|
3
3
|
import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.js';
|
|
4
4
|
import { a as BlendMode } from '../surface-1MRncXpF.js';
|
|
5
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, c as PixelSurface, R as RasterRect, d as Rgb, e as Rgba, S as SHADOW_AMBIENT, f as SurfaceDraft, g as TILE, h as TILE_SHIFT, i as Tile, j as TileKey, T 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-1MRncXpF.js';
|
|
@@ -8,10 +8,10 @@ import { S as LayerEffects, Q as LayerEffectKind, O as LayerEffect, u as EffectP
|
|
|
8
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 keepDeepSamples, aJ as keysWeight, aK as layerEffectFields, aL as layerEffectLabel, aM as mapLayer, aN as mergeLayerEffect, aO as newEffectId, aP as normalizeLayerEffects, aQ as parseEffectColor, aS as proxyOf, aT as readDeepRegion, aU as reduceSurface, aV as renderLayerEffects, aW as scaleLayerEffect, aX as srgbDecode, aY as srgbEncode, aZ as surfaceDepth, a_ as surfaceFromDeepPixels, a$ as tileSamples, b0 as tileSamples16, b1 as tileSamples32, b2 as to16From32, b3 as to16From8, b4 as to32From16, b5 as to32From8, b6 as to8From16, b7 as to8From32, b8 as transformSurface, b9 as transformedBounds, ba as validateEffectGradient, bb as validateLayerEffect, bc as validateLayerEffects, bd as warpSurface, be as writeDeepRegion } from '../deep-wwJa7aR6.js';
|
|
9
9
|
import { b as CaptureSurface } from '../capture-wwNGaW05.js';
|
|
10
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.js';
|
|
11
|
-
export { C as CanvasTextShaperOptions, O as OpenTypeFont, a as OutlineFontEntry, b as OutlineFontFace, c as OutlinePathCommand, d as applyHomography,
|
|
12
|
-
import {
|
|
13
|
-
export { D as DEFAULT_AUTO_LEADING,
|
|
14
|
-
import { B as BezierPath } from '../bezier-
|
|
11
|
+
export { C as CanvasTextShaperOptions, O as OpenTypeFont, a as OutlineFontEntry, b as OutlineFontFace, c as OutlinePathCommand, d as applyHomography, e as boxQuad, f as createCanvasTextShaper, g as createMetricTextShaper, h as createOutlineTextShaper, i as cssFont, j as cssFontFamily, k as homographyFromAffine, l as homographyFromPoints, m as invertHomography, n as loadOpenTypeFont, p as parseOpenTypeFont, r as rectToQuad } from '../opentype-CrHAsKh3.js';
|
|
12
|
+
import { f as TextAlign, d as TextStyle, c as ParagraphStyle } from '../warp-CZVC8pB5.js';
|
|
13
|
+
export { D as DEFAULT_AUTO_LEADING, g as DEFAULT_TEXT_STYLE, h as LaidChar, L as LaidFragment, i as LaidLine, P as ParagraphRun, j as TEXT_ALIGNS, a as TextFont, e as TextLayout, b as TextRun, T as TextShaper, k as WARP_STYLES, l as WARP_STYLE_LABELS, W as WarpPreset, m as caretAt, n as dragWarpMeshPoint, o as evalWarpMesh, p as fitParagraphRuns, q as fitRuns, r as fontOf, s as identityWarpMesh, t as layoutText, u as paragraphRanges, v as pullWarpMesh, w as resizeWarpMesh, x as restyleRange, y as spliceRuns, z as styleAt, A as textIndexAt, B as warpMeshEditPoints, C as warpMeshGridCurves, E as warpMeshParamAt, F as warpPresetMesh } from '../warp-CZVC8pB5.js';
|
|
14
|
+
import { B as BezierPath } from '../bezier-CigmusV_.js';
|
|
15
15
|
import { a as MixerLoad, M as MixerSettings } from '../rand-pQQ2sJTk.js';
|
|
16
16
|
export { au as BlenderScratch, k as BlenderSettings, B as BrushSettings, C as CoverageMap, av as DEFAULT_BLENDER, aw as DEFAULT_BRUSH, v as DEFAULT_FLOW, ax as DEFAULT_MIXER, w as DEFAULT_PAINT_GRADIENT, x as DEFAULT_PAINT_GRADIENT_MAPPING, ay as DEFAULT_RETOUCH, az as DEFAULT_SMUDGE, aA as DEFAULT_WET_PAPER, y as DEFAULT_WET_PARAMS, aB as DRY_EPS, D as Dab, aC as DabWalker, aD as EMPTY_MIXER_LOAD, aE as EX, aF as EY, aG as ExchangeRates, aH as FLAG_ALIVE, aI as FLAG_BOTTOM, aJ as FLAG_LEFT, aK as FLAG_RIGHT, aL as FLAG_TOP, aM as FLAG_WET, aN as FLAT, aO as FREE_INTERVAL, aP as MAX_BATCH, z as MAX_BRUSH_SIZE, aQ as MAX_TILT_ACCEL, aR as MAX_WET_LANES, aS as MAX_WET_SLOTS, aT as MIXER_DRAIN, aU as MIXER_PICKUP_RATE, aV as MIXING_MODELS, c as MixerStroke, b as MixerTarget, j as MixingModel, aW as OPP, A as PAINT_COLOR_JSON_SCHEMA, E as PAINT_GRADIENT_FULL_SPEED, F as PAINT_GRADIENT_JSON_SCHEMA, G as PAINT_GRADIENT_KIT, H as PAINT_GRADIENT_MAPPINGS, I as PAINT_GRADIENT_MAPPING_LABELS, J as PAINT_GRADIENT_PRESETS, K as PAINT_GRADIENT_REPEATS, L as PAINT_GRADIENT_REPEAT_LABELS, N as PAINT_GRADIENT_SPACES, O as PAINT_GRADIENT_SPACE_LABELS, Q as PAINT_SOURCE_JSON_SCHEMA, aX as PAPER_CAPACITY, aY as PARAM, aZ as PARAM_FLOATS, a_ as PIGMENT_CHANNELS, a$ as PLANE, b0 as PLANE_BYTES, b1 as P_D0, b2 as P_EDGE, b3 as P_FX, b4 as P_FY, b5 as P_H, b6 as P_P0, b7 as P_RHO, b8 as P_SW, b9 as P_UX, ba as P_UY, U as PaintColorSource, V as PaintDabParams, bb as PaintExchange, X as PaintGradientKit, Y as PaintGradientMapping, Z as PaintGradientMappingKind, _ as PaintGradientRepeat, $ as PaintGradientSample, a0 as PaintGradientSampler, i as PaintGradientSource, a1 as PaintGradientSpace, a2 as PaintGradientStop, bc as PaintMedium, bd as PaintPixels, a3 as PaintRgb, be as PaintSample, P as PaintSource, a4 as PaintSourceError, g as PaintTileTarget, bf as PixelSource, bg as RETOUCH_SAMPLES, bh as RegionPixelSource, d as RetouchApply, bi as RetouchDabEffect, bj as RetouchDabStroke, f as RetouchPaint, bk as RetouchSample, R as RetouchSettings, p as RgbTriple, bl as SET_PLANES, bm as SLOT_BYTES, bn as SLOT_PLANES, bo as SLOT_SIDE, bp as SPOT_HEAL_TYPES, bq as STRIP, br as SmudgeDab, l as SmudgeSettings, bs as SmudgeTip, bt as SpotHealType, h as StrokeApply, S as StrokeCoverage, e as StrokePoint, bu as TIP_GRADIENT_STEPS, bv as TONE_RANGES, T as TileMedium, bw as TileMediumOptions, bx as TilePixelSource, by as ToneRange, bz as U_MAX, bA as W9, a5 as WET_FLOW_KINDS, a6 as WET_PARAM_KEYS, bB as WET_TILE, s as WetBackendInfo, bC as WetFlowField, a7 as WetFlowKind, o as WetFlowSpec, bD as WetGpuEngine, bE as WetGpuJob, r as WetGpuProvider, bF as WetGpuSupport, bG as WetKernelKind, bH as WetLaneOptions, bI as WetLaneStats, bJ as WetPaper, u as WetPaperInput, n as WetParams, t as WetSnapshot, a8 as WetSupport, m as WetTilt, bK as WetWorkerLayout, bL as WetWorkerPool, W as WetWorld, bM as WetWorldError, q as WetWorldOptions, a9 as addPaintGradientStop, bN as applyRetouchToTile, bO as applyStrokeToDeepTile, bP as applyStrokeToTile, bQ as applyToneToDeepTile, bR as blendRadius, bS as blenderDab, bT as canShareMemory, bU as cleanMixer, bV as coverageTileCoord, bW as createBlenderScratch, bX as createWetGpuEngine, bY as dabCoverage, bZ as dabRect, b_ as dodgeBurn, b$ as dodgeBurnCurve, c0 as dsincos, c1 as edgeBits, c2 as exchangeRates, c3 as findWebGpu, c4 as flowField, c5 as gradientDabColor, aa as hash2, c6 as healPixels, ab as hexToPaintRgb, ac as isGradientPaint, c7 as latticeViscosity, c8 as loadMixer, c9 as loadWetKernel, ca as luma, ad as mix32, cb as mixerRates, cc as normalizeBlender, cd as normalizeBrush, ae as normalizeFlow, af as normalizeHexColor, ce as normalizeMixer, cf as normalizeRetouch, cg as normalizeSmudge, ch as normalizeTilt, ag as normalizeWetParams, ci as packWetParams, ah as paintGradientMappingFor, ai as paintSourceColor, aj as paintSourceCss, ak as parsePaintSource, cj as perDabStrength, ck as put255, al as rand01, cl as rasterizeDab, am as readPaintSource, cm as readSourceRegion, an as removePaintGradientStop, ao as resolvePaintGradient, ap as reversePaintGradient, cn as rgbaViewOfGrey, co as saturationOf, aq as scalePaintGradient, cp as smoothPoints, cq as smudgeEffect, ar as solidPaint, cr as sponge, cs as spongeEffect, ct as spotHealPixels, cu as spotHealWindow, cv as tipFalloff, cw as tipReach, cx as tipShape, cy as toneOf, as as updatePaintGradientStop, cz as walkDabs, cA as wetGpuSupport, cB as wetSimdSupported, at as wetSupport } from '../rand-pQQ2sJTk.js';
|
|
17
17
|
export { BODY_SCATTER, BrushstrokeBrush, BrushstrokeCache, BrushstrokeCanvasLike, BrushstrokeImage, BrushstrokeInput, BrushstrokeOptions, BrushstrokePaint, BrushstrokeProfilePath, BrushstrokeSample, HIDE, PIGMENT_UNIT, PaintPathOptions, PathSample, PathStrokeOptions, PathStrokePaint, PointerEventLike, PointerStrokeSample, SRGB_TO_LINEAR, WGSL_HALO, WGSL_SHADE, WGSL_STEP, WetMedium, WetMediumOptions, bestOffset, brushstrokeDataUrl, brushstrokeKey, brushstrokeSamples, brushstrokeStrokeOptions, brushstrokeToCanvas, createPigmentTools, dexp, dilateMask, dlog, dpow, expNeg, filmPixel, filmReflectance, isBrushstrokeBrush, linearToSrgb8, maskBounds, membraneFill, paintPathStroke, pathStrokeCoverage, pathStrokeDabs, pigmentColor, pigmentOf, pixelPigment, pointerPressure, pointerStrokeSample, pointerStrokeSamples, renderBrushstroke, seamlessClone, shadeTile, solveMembrane, srgbByteToLinear, stepSlotTs } from '../paint/index.js';
|
|
@@ -19,9 +19,9 @@ import { j as Intent, b as BuiltinProfileId } from '../builtin-CY97ppKM.js';
|
|
|
19
19
|
export { a as BUILTIN_PROFILES, i as INTENTS } from '../builtin-CY97ppKM.js';
|
|
20
20
|
import { W as WarpStyle, a as WarpMesh, V as Vec2, Q as Quad } from '../types-CwMPoRMU.js';
|
|
21
21
|
export { A as AffineMatrix, H as Homography } from '../types-CwMPoRMU.js';
|
|
22
|
-
import { A as AppliedEffectInfo } from '../tools-
|
|
22
|
+
import { A as AppliedEffectInfo } from '../tools-D8bZ-7YG.js';
|
|
23
23
|
export { B as BRUSHSTROKE_MAX_SCALE, a as BRUSHSTROKE_MIN_SCALE, b as brushstrokeScaleBucket } from '../brushstroke-scale-B6XAdPSY.js';
|
|
24
|
-
import '../helpers-
|
|
24
|
+
import '../helpers-X_rycLNJ.js';
|
|
25
25
|
import '../schema-Di0CS6Pe.js';
|
|
26
26
|
import '../evaluate-BbCeF6pt.js';
|
|
27
27
|
import '../easing-lM0Xo9Ni.js';
|
|
@@ -362,7 +362,7 @@ import {
|
|
|
362
362
|
writePsd,
|
|
363
363
|
xyToTempTint,
|
|
364
364
|
xyToUv
|
|
365
|
-
} from "../chunk-
|
|
365
|
+
} from "../chunk-ERYGCA72.js";
|
|
366
366
|
import {
|
|
367
367
|
parseCssColor
|
|
368
368
|
} from "../chunk-CTTF4KYV.js";
|
|
@@ -802,7 +802,7 @@ import {
|
|
|
802
802
|
warpMeshParamAt,
|
|
803
803
|
warpMeshRows,
|
|
804
804
|
warpPresetMesh
|
|
805
|
-
} from "../chunk-
|
|
805
|
+
} from "../chunk-PRYMC442.js";
|
|
806
806
|
import "../chunk-YGJIER2R.js";
|
|
807
807
|
import "../chunk-KHNZ6MOU.js";
|
|
808
808
|
import {
|
|
@@ -3593,6 +3593,30 @@ function convertHex(hex, from, to, intent = "relative", bpc = true) {
|
|
|
3593
3593
|
const c = (v) => Math.round(Math.min(1, Math.max(0, v)) * 255).toString(16).padStart(2, "0");
|
|
3594
3594
|
return `#${c(out[0])}${c(out[1])}${c(out[2])}`;
|
|
3595
3595
|
}
|
|
3596
|
+
function convertColorFields(value, convert) {
|
|
3597
|
+
const walk = (v, key) => {
|
|
3598
|
+
if (typeof v === "string") return /color$/i.test(key) && /^#[0-9a-f]{6}$/i.test(v) ? convert(v) : v;
|
|
3599
|
+
if (Array.isArray(v)) {
|
|
3600
|
+
let changed = false;
|
|
3601
|
+
const out = v.map((x) => {
|
|
3602
|
+
const y = walk(x, key);
|
|
3603
|
+
if (y !== x) changed = true;
|
|
3604
|
+
return y;
|
|
3605
|
+
});
|
|
3606
|
+
return changed ? out : v;
|
|
3607
|
+
}
|
|
3608
|
+
if (v && typeof v === "object" && Object.getPrototypeOf(v) === Object.prototype) {
|
|
3609
|
+
let out = null;
|
|
3610
|
+
for (const [k, x] of Object.entries(v)) {
|
|
3611
|
+
const y = walk(x, k);
|
|
3612
|
+
if (y !== x) (out ??= { ...v })[k] = y;
|
|
3613
|
+
}
|
|
3614
|
+
return out ?? v;
|
|
3615
|
+
}
|
|
3616
|
+
return v;
|
|
3617
|
+
};
|
|
3618
|
+
return walk(value, "");
|
|
3619
|
+
}
|
|
3596
3620
|
function convertSurfaceColors(surface, t) {
|
|
3597
3621
|
if (surface.channels !== 4 || t.inputs !== 3 || t.outputs !== 3) return surface;
|
|
3598
3622
|
const tiles = /* @__PURE__ */ new Map();
|
|
@@ -7665,18 +7689,44 @@ var ImageEditorController = class {
|
|
|
7665
7689
|
const t = Transform.create(resolveProfile(this.state.colorProfile), resolveProfile(doc), { intent, bpc: options.bpc ?? true });
|
|
7666
7690
|
const converted = [];
|
|
7667
7691
|
const unconverted = [];
|
|
7668
|
-
const
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7692
|
+
const memo = /* @__PURE__ */ new Map();
|
|
7693
|
+
const px2 = new Float32Array(4);
|
|
7694
|
+
const hex = (h) => {
|
|
7695
|
+
let out = memo.get(h.toLowerCase());
|
|
7696
|
+
if (out === void 0) {
|
|
7697
|
+
const n = parseInt(h.slice(1), 16);
|
|
7698
|
+
t.eval([(n >> 16 & 255) / 255, (n >> 8 & 255) / 255, (n & 255) / 255], px2);
|
|
7699
|
+
const c = (v) => Math.round(Math.min(1, Math.max(0, v)) * 255).toString(16).padStart(2, "0");
|
|
7700
|
+
out = `#${c(px2[0])}${c(px2[1])}${c(px2[2])}`;
|
|
7701
|
+
memo.set(h.toLowerCase(), out);
|
|
7677
7702
|
}
|
|
7678
|
-
|
|
7679
|
-
|
|
7703
|
+
return out;
|
|
7704
|
+
};
|
|
7705
|
+
const shapeEnv = this.shapeEnv();
|
|
7706
|
+
const textEnv = this.textEnv();
|
|
7707
|
+
const walk = (layers) => layers.map((l) => {
|
|
7708
|
+
let next2 = l;
|
|
7709
|
+
if (l.effects?.items.length) next2 = { ...next2, effects: convertColorFields(l.effects, hex) };
|
|
7710
|
+
if (l.type === "group") {
|
|
7711
|
+
if (next2 !== l) converted.push(l.id);
|
|
7712
|
+
return { ...next2, children: walk(l.children) };
|
|
7713
|
+
}
|
|
7714
|
+
if (l.type === "pixel" && l.source !== "document") next2 = { ...next2, surface: convertSurfaceColors(l.surface, t) };
|
|
7715
|
+
else if (l.type === "pixel") next2 = { ...next2, surface: convertSurfaceColors(this.surfaceOf(l), t), source: void 0 };
|
|
7716
|
+
else if (l.type === "shape") {
|
|
7717
|
+
const s = next2;
|
|
7718
|
+
next2 = rerenderShape({ ...s, fill: convertColorFields(s.fill, hex), stroke: convertColorFields(s.stroke, hex), ...s.annotation ? { annotation: convertColorFields(s.annotation, hex) } : {} }, shapeEnv);
|
|
7719
|
+
} else if (l.type === "type") {
|
|
7720
|
+
const recoloured = { ...next2, runs: convertColorFields(l.runs, hex) };
|
|
7721
|
+
try {
|
|
7722
|
+
next2 = rerenderText(recoloured, textEnv);
|
|
7723
|
+
} catch {
|
|
7724
|
+
next2 = { ...recoloured, surface: convertSurfaceColors(l.surface, t) };
|
|
7725
|
+
}
|
|
7726
|
+
} else if (l.type === "annotation") next2 = { ...next2, annotation: convertColorFields(l.annotation, hex) };
|
|
7727
|
+
if (l.type === "smart") unconverted.push(l.id);
|
|
7728
|
+
else if (next2 !== l) converted.push(l.id);
|
|
7729
|
+
return next2;
|
|
7680
7730
|
});
|
|
7681
7731
|
const next = walk(this.state.layers);
|
|
7682
7732
|
this.commitLayers(next, () => {
|
|
@@ -11020,7 +11070,7 @@ function createImageColorTools(controller) {
|
|
|
11020
11070
|
const convert = {
|
|
11021
11071
|
name: "convert_to_profile",
|
|
11022
11072
|
title: "Convert to a colour profile",
|
|
11023
|
-
description: "Edit \u203A Convert to Profile: converts every pixel layer's numbers so its colours stay the same in `profile`, then makes `profile` the document's. Colours outside the new space are mapped by `intent`. Shape and
|
|
11073
|
+
description: "Edit \u203A Convert to Profile: converts every pixel layer's numbers so its colours stay the same in `profile`, then makes `profile` the document's. Colours outside the new space are mapped by `intent`. Shape fills and strokes, text colours, layer-effect colours and annotation colours convert too (and re-render); smart objects keep their contents' numbers and are listed in unconvertedLayerIds. RGB profiles only (proof CMYK with set_proof_setup). One undo step. Returns the profile, convertedLayerIds and unconvertedLayerIds.",
|
|
11024
11074
|
inputSchema: {
|
|
11025
11075
|
type: "object",
|
|
11026
11076
|
properties: {
|
|
@@ -15108,6 +15158,7 @@ export {
|
|
|
15108
15158
|
contractCoverage,
|
|
15109
15159
|
controlPosition,
|
|
15110
15160
|
controlTrackBackground,
|
|
15161
|
+
convertColorFields,
|
|
15111
15162
|
convertHex,
|
|
15112
15163
|
convertSurfaceColors,
|
|
15113
15164
|
convertSurfaceDepth,
|