@pixerate/editor 0.110.0 → 0.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +3 -0
- package/dist/{chunk-DMRSJBJF.js → chunk-HHZ6ZJTW.js} +878 -84
- package/dist/chunk-HHZ6ZJTW.js.map +1 -0
- package/dist/{chunk-MGL4U5WA.cjs → chunk-PHUMLSCW.cjs} +951 -157
- package/dist/chunk-PHUMLSCW.cjs.map +1 -0
- package/dist/{export-CO2ryu3I.d.ts → export-DBNVwb6h.d.ts} +518 -9
- package/dist/{export-DRiLzP_j.d.cts → export-DoDhCszr.d.cts} +518 -9
- package/dist/image-editor/index.cjs +1381 -677
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +97 -9
- package/dist/image-editor/index.d.ts +97 -9
- package/dist/image-editor/index.js +746 -42
- package/dist/image-editor/index.js.map +1 -1
- package/dist/paint-editor/index.cjs +6 -6
- package/dist/paint-editor/index.d.cts +2 -2
- package/dist/paint-editor/index.d.ts +2 -2
- package/dist/paint-editor/index.js +1 -1
- package/package.json +1 -1
- package/skills/pixerate-image-editor/SKILL.md +27 -30
- package/skills/pixerate-image-editor/references/shapes-and-type.md +60 -0
- package/dist/chunk-DMRSJBJF.js.map +0 -1
- package/dist/chunk-MGL4U5WA.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, q as AnnotationLayer, r as ShapeLayer, s as
|
|
2
|
-
export {
|
|
1
|
+
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as SmartFilterStack, F as SmartFilter, G as SmartObjectLayer, J as SmartContents, K as SmartDocument, M as SmartPlacement, N as FreeTransformGeometry, O as TextShaper, Q as TextFont, U as LayerPlacement, V as FreeTransformMode, W as FreeTransformResult, X as FreeTransformSession, Y as FreeTransformInit, Z as TransformAnchor } from '../export-DoDhCszr.cjs';
|
|
2
|
+
export { _ as AIResultOptions, $ as AdjustmentLayerBase, a0 as AdjustmentLayerInit, a1 as AdjustmentLayerUpdate, a2 as AnnotationPlacement, a3 as AnnotationType, a4 as ArrowAnnotation, a5 as AspectRatio, a6 as BaseAnnotation, a7 as BlackWhiteParams, a8 as BlurFilter, a9 as CircleAnnotation, aa as ColorBalanceParams, ab as ColorBalanceTone, ac as ColorRangeOptions, ad as ColorRangeSample, ae as CreateAnnotationPayload, af as CropHandle, ag as CurvesParams, ah as DEFAULT_ADJUSTMENTS, ai as DEFAULT_AUTO_LEADING, aj as DEFAULT_DEPTH_MASK, ak as DEFAULT_MITER_LIMIT, al as DEFAULT_REFINE_EDGE_PARAMS, am as DEFAULT_TEXT_STYLE, an as DEFAULT_TRANSFORM, ao as DeserializeContext, ap as DevelopSettings, aq as EMPTY_DISTANCE, ar as ExportOptions, as as FREE_TRANSFORM_CONTENTS, at as FREE_TRANSFORM_MODES, au as FillOptions, av as FreeTransformContent, aw as FreeTransformHost, ax as FreeTransformPreview, ay as GUIDED_FILTER_EPS, az as GroupLayer, aA as HISTOGRAM_BINS, aB as HistogramChannel, aC as HistoryEntryHandle, aD as HueSaturationParams, aE as IMAGE_EDITOR_SCHEMA_VERSION, aF as ImageAnnotation, aG as ImageDimensions, aH as ImageEditorAIHooks, I as ImageEditorAssetStore, aI as ImageEditorFit, aJ as ImageEditorOptions, aK as ImageEditorRenderer, aL as ImageEditorState, aM as ImageEditorTool, aN as ImageLayerType, aO as InpaintHook, aP as InpaintOptions, aQ as InvertParams, aR as LAYERED_SCHEMA_VERSION, aS as LIVE_SHAPE_KINDS, aT as LaidChar, aU as LaidFragment, aV as LaidLine, aW as LayerBase, aX as LayerBlendMode, aY as LayerFilterKind, aZ as LayerLocation, a_ as LayerMaskProps, a$ as LayerOperationError, b0 as LayerProperties, b1 as LayerSourcesHost, b2 as LayerTarget, b3 as LegacySerializedImageEditorState, b4 as LevelsParams, b5 as LineAnnotation, b6 as LiveShape, b7 as LiveShapeKind, b8 as MagicWandOptions, b9 as MixerStrokeInit, ba as PARAGRAPH_STYLE_FIELDS, bb as PSD_BLEND_KEYS, bc as PaintOptions, bd as PaintStrokeResult, be as PaintStrokeSession, bf as ParagraphRun, bg as ParagraphStyle, bh as PenAnnotation, bi as PhotoFilterParams, bj as PixelBuffer, bk as PixelLayerInit, bl as PosterizeParams, bm as PsdChannel, bn as PsdExportInput, P as PsdExportResult, bo as PsdFile, bp as PsdHeader, bq as PsdImportOptions, br as PsdImportResult, bs as PsdLayerMask, bt as PsdLayerRecord, bu as PsdLayerSummary, bv as PsdRect, bw as PsdResource, bx as PsdSmartFilter, by as PsdTaggedBlock, bz as PsdTreeNode, bA as RectAnnotation, bB as RemoveBackgroundHook, bC as RemoveBackgroundOptions, bD as RenderOptions, bE as SELECTION_MODES, bF as SELECTION_MODIFY_OPS, bG as SHAPE_OPERATIONS, bH as SHAPE_RENDER_MARGIN, bI as SampleOptions, bJ as SelectionChannel, bK as SelectionCommandOptions, bL as SelectionModifyOp, bM as SerializeContext, bN as SerializedAdjustmentLayer, bO as SerializedAnnotationLayer, bP as SerializedGroupLayer, S as SerializedLayer, bQ as SerializedLayerEffects, bR as SerializedLayeredImageEditorState, bS as SerializedPattern, bT as SerializedPixelLayer, bU as SerializedRasterMask, bV as SerializedSelection, bW as SerializedShapeLayer, bX as SerializedSmartContents, bY as SerializedSmartFilter, bZ as SerializedSmartObjectLayer, b_ as SerializedTypeLayer, b$ as ShapeArrowhead, c0 as ShapeComponent, c1 as ShapeEnv, c2 as ShapeFillRule, c3 as ShapeGeometryInput, c4 as ShapeLayerData, c5 as ShapeLayerInfo, c6 as ShapeLayerInit, c7 as ShapeLineCap, c8 as ShapeLineJoin, c9 as ShapeOperation, ca as ShapePaint, cb as ShapePsdData, cc as ShapeSelectionOptions, cd as ShapeStroke, ce as ShapeStrokeAlign, cf as SmartFilterKind, cg as SmartObjectInfo, ch as SmartPsdData, ci as StrokeInit, cj as StrokeTool, ck as TEXT_ALIGNS, cl as TEXT_RENDER_MARGIN, cm as TEXT_STYLE_FIELDS, cn as TONE_RANGE_PRESETS, co as TRANSFORM_ANCHORS, cp as TextAlign, cq as TextAnnotation, cr as TextLayerInit, cs as TextLayout, ct as TextRun, cu as TextStyle, cv as ThresholdParams, cw as ToneRangePreset, cx as TransformParams, cy as TransformReadout, cz as TypeLayerData, cA as TypeLayerInfo, cB as TypePsdData, cC as VibranceParams, cD as ViewportMetrics, cE as addLayerEffect, cF as addLayerFilter, cG as adjustmentNodeAsLayer, cH as anchorPoint, cI as annotationBlend, cJ as annotationOfShape, cK as annotationOfType, cL as applyImageProjectionToContext, cM as applyParams, cN as blurFilter, cO as borderCoverage, cP as boxMean, cQ as boxPointOf, cR as buildLayerMaskPlanes, cS as calculateCropDrag, cT as canvasToImagePoint, cU as caretAt, cV as clampCropToImage, cW as colorRange, cX as combineSelections, cY as componentPath, cZ as computeHistogram, c_ as computeSelectionBounds, c$ as contractCoverage, d0 as cornersFromMatrix, d1 as coverageToByte, d2 as createSelectionMask, d3 as createShapeLayer, d4 as createTypeLayer, d5 as decodeLayerChannel, d6 as decodeLayerMask, d7 as decodeMergedImage, d8 as decodePngDataUrl, d9 as decodeSelectionRle, da as defaultShapeName, db as depthMaskAlpha, dc as describeTransform, dd as deserializeEffects, de as deserializeLayer, df as deserializeLayers, dg as deserializePatterns, dh as deserializeSelection, di as developFilter, dj as distanceTransform, dk as duplicateLayer, dl as edgeWidth, dm as ellipsePoints, dn as ellipseSelection, dp as encodeSelectionRle, dq as encodeSurface, dr as expandCoverage, ds as exportPsd, dt as featherCoverage, du as fitParagraphRuns, dv as fitRuns, dw as flipCorners, dx as fontOf, dy as fullSelection, dz as geometryHomography, dA as getAnnotationBounds, dB as getCropCursor, dC as getRotatedSize, dD as getViewportMetrics, dE as getViewportProjection, dF as globalImageCache, dG as greyMorphology, dH as groupLayers, dI as guidePlanes, dJ as guidedFilterColor, dK as hasSurface, dL as hasWarp, dM as hashMaskContent, dN as histogramPath, dO as hitTestAnnotation, dP as hitTestCrop, dQ as hueRange, dR as identityTransform, dS as imageToCanvasPoint, dT as importPsd, dU as invertSelection, dV as isActiveFilter, dW as isIdentityTransform, dX as isQuarterTurnSwapped, dY as isRenderedLayer, dZ as isSelectionEmpty, d_ as isSelectionMode, d$ as isSpatialFilter, e0 as isTransformAnchor, e1 as isValidWarp, e2 as layerEffectsOf, e3 as layerMaskCoverage, e4 as layerMaskFromSelection, e5 as layerMaskKey, e6 as layerName, e7 as layerTree, e8 as layerTypeLabel, e9 as layoutText, ea as liveComponent, eb as liveShapeSubpaths, ec as magicWand, ed as mapCropHandle, ee as mapSubpaths, ef as matrixFromCorners, eg as matrixFromParams, eh as mergeShapeComponents, ei as migrateSerializedImageEditorState, ej as migrateToLayeredState, ek as modifySelection, el as moveLayer, em as newLayerId, en as normalizeAngle, eo as normalizeFilter, ep as normalizeLayerMask, eq as normalizeLiveShape, er as normalizeRect, es as normalizeRefineEdgeParams, et as normalizeShapePaint, eu as normalizeShapeStroke, ev as normalizeStoredAdjustments, ew as normalizeSubpaths, ex as normalizeText, ey as offsetLayer, ez as offsetShape, eA as paragraphRanges, eB as parseBlend, eC as parseColor, eD as parseSelectionMode, eE as patchParagraphStyle, eF as patchTextStyle, eG as pixelLayerBounds, eH as pixelLayers, eI as placeLayer, eJ as polygonCoverage, eK as polygonSelection, eL as presetWarp, eM as previewStep, eN as projectImagePoint, eO as projectImageRect, eP as projectMaskCoverage, eQ as psdToLayers, eR as readPsd, eS as rectSelection, eT as referencePoint, eU as refineCoverage, eV as refineEdgeHalo, eW as refineSelection, eX as removeLayer, eY as removeLayerEffect, eZ as removeLayerFilter, e_ as renderShape, e$ as renderShapeRect, f0 as renderText, f1 as replaceTextRange, f2 as requireLayer, f3 as requireOperation, f4 as requireShapeLayer, f5 as requireTypeLayer, f6 as requireUnlocked, f7 as rerenderShape, f8 as rerenderText, f9 as resizePixels, fa as resizeSelection, fb as resolveExternalAssets, fc as restyleRange, fd as runLayerFilters, fe as selectionArea, ff as selectionFromCoverage, fg as selectionFromPixels, fh as selectionToCoverage, fi as selectionToPixels, fj as selectionValueAt, fk as serializeContents, fl as serializeEffects, fm as serializeLayer, fn as serializeLayers, fo as serializeLayersExternal, fp as serializePatterns, fq as serializeSelection, fr as setLayerEffects, fs as setLayerEffectsEnabled, ft as setLayerMask, fu as setLayerProperties, fv as shapeAsPixelLayer, fw as shapeFromAnnotation, fx as shapeGeometryBounds, fy as shapeLayers, fz as shapeOutline, fA as shapeRenderClip, fB as shiftCoverage, fC as smartObjectLayers, fD as smoothCoverage, fE as spliceRuns, fF as srgb8ToLab, fG as styleAt, fH as textIndexAt, fI as textMatrix, fJ as textOutlines, fK as textRange, fL as toHex, fM as toTextSpace, fN as toneRange, fO as transformHomography, fP as transformMap, fQ as transformShapeComponents, fR as transformTypeLayer, fS as transformedBox, fT as transformedPoint, fU as typeAsPixelLayer, fV as typeFrame, fW as typeFromAnnotation, fX as typeLayerName, fY as ungroupLayer, fZ as unionRect, f_ as unprojectCanvasPoint, f$ as updateLayerEffect, g0 as updateLayerFilter, g1 as updateLayerMaskProps, g2 as updateShapeLayer, g3 as updateTypeLayer, g4 as withNewIds, g5 as writePsd } from '../export-DoDhCszr.cjs';
|
|
3
3
|
import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.cjs';
|
|
4
4
|
import { B as BlendMode, b as PixelSurface, R as RasterRect } from '../surface-C8RRg_Bh.cjs';
|
|
5
5
|
export { d as BLEND_MODES, c as BlendModeInfo, M as MaskSurface, e as PAINTERLY_BLEND_MODES, h as PIGMENT_BANDS, j as PIGMENT_LAMBDA_MIN, k as PIGMENT_LAMBDA_STEP, l as PIGMENT_WAVELENGTHS, P as Pigment, m as PigmentOptions, n as PigmentRgb, o as Rgb, p as Rgba, S as SHADOW_AMBIENT, q as SurfaceDraft, r as TILE, t as TILE_SHIFT, f as Tile, T as TileKey, a as TiledSurface, u as blendChannel, v as blendImageData, w as blendLum, x as blendPixel, y as blendRgb, z as canvasCompositeOperation, A as collectTiles, C as contentBounds, D as createPigment, E as emptySurface, F as fillRect, G as finishTile, i as isBlendMode, g as isPainterlyBlendMode, H as isSeparableBlendMode, I as lerpPigment, J as lerpPigmentInto, K as mixPigment8, L as mixPigmentRgb, N as mixPigments, O as normalizeBlendMode, Q as packRgba, U as pigment8, V as readPixel, W as readRegion, X as reflectanceToRgb, Y as rgbToReflectance, Z as setLum, _ as setPigmentColor, $ as solidSurface, s as standardBlendMode, a0 as surfaceBytes, a1 as surfaceFromPixels, a2 as surfacesEqual, a3 as tileCoord, a4 as tileKey, a5 as tileRect, a6 as tilesInRect, a7 as translateSurface, a8 as uniformTile, a9 as writeRegion } from '../surface-C8RRg_Bh.cjs';
|
|
@@ -496,6 +496,8 @@ interface ImageEditorToolProviderOptions {
|
|
|
496
496
|
* - Shape layers: `get_shape_layer`, `add_shape_layer`, `update_shape`, `set_shape_component`,
|
|
497
497
|
* `add_shape_component`, `remove_shape_component`, `merge_shape_components` (see
|
|
498
498
|
* `createImageShapeTools`); `rasterize_layer` turns one into pixels.
|
|
499
|
+
* - Type layers: `list_fonts`, `get_text_layer`, `add_text_layer`, `set_text`, `set_text_style`,
|
|
500
|
+
* `set_paragraph_style`, `set_text_frame`, `convert_text_to_shape` (see `createImageTypeTools`).
|
|
499
501
|
*/
|
|
500
502
|
declare function createImageEditorToolProvider(controller: ImageEditorController, options?: ImageEditorToolProviderOptions): AgentToolProvider;
|
|
501
503
|
|
|
@@ -768,14 +770,15 @@ declare function developFromAdjustments(adjustments: ImageAdjustments): DevelopF
|
|
|
768
770
|
/** The default name of an annotation layer. */
|
|
769
771
|
declare function annotationLayerName(annotation: Annotation): string;
|
|
770
772
|
/**
|
|
771
|
-
* The layer an annotation becomes
|
|
772
|
-
* line, arrow
|
|
773
|
-
* a colour
|
|
773
|
+
* The layer an annotation becomes, for a `canvas` of that size: a shape layer (pen, rectangle,
|
|
774
|
+
* ellipse, line, arrow) or a type layer (text; drawn with `canvas.shaper`, or kept undrawn until
|
|
775
|
+
* one can) that remembers it, else an annotation layer (image, or a colour we can't read). Without
|
|
776
|
+
* a canvas nothing is migrated.
|
|
774
777
|
*/
|
|
775
778
|
declare function annotationLayerFor(annotation: Annotation, canvas?: {
|
|
776
779
|
width: number;
|
|
777
780
|
height: number;
|
|
778
|
-
}): AnnotationLayer | ShapeLayer;
|
|
781
|
+
} & Partial<TextEnv>): AnnotationLayer | ShapeLayer | TypeLayer;
|
|
779
782
|
/** The annotation a layer still is (an annotation layer, or a shape layer migrated from one), or `null`. */
|
|
780
783
|
declare function annotationOfLayer(layer: ImageLayer): Annotation | null;
|
|
781
784
|
declare function adjustmentNodeFromLegacy(layer: AdjustmentLayer, width: number, height: number): AdjustmentLayerNode;
|
|
@@ -860,8 +863,8 @@ declare function needsLegacyBase(input: RouteInput): boolean;
|
|
|
860
863
|
/**
|
|
861
864
|
* Splits the stack into what the compositor rasterizes and the annotation layers at the top that
|
|
862
865
|
* draw as crisp vectors over the result (as annotations always did): the trailing run of plain
|
|
863
|
-
* top-level annotation layers and shape layers that still are the annotation they were
|
|
864
|
-
* from (given as annotation views; hidden ones are skipped).
|
|
866
|
+
* top-level annotation layers and shape and type layers that still are the annotation they were
|
|
867
|
+
* migrated from (given as annotation views; hidden ones are skipped).
|
|
865
868
|
*/
|
|
866
869
|
declare function splitOverlayAnnotations(layers: readonly ImageLayer[]): {
|
|
867
870
|
composite: ImageLayer[];
|
|
@@ -1076,6 +1079,91 @@ declare function createImageSmartObjectTools(controller: ImageEditorController):
|
|
|
1076
1079
|
*/
|
|
1077
1080
|
declare function createImageShapeTools(controller: ImageEditorController): AgentTool[];
|
|
1078
1081
|
|
|
1082
|
+
/**
|
|
1083
|
+
* Text shapers for type layers (see `TextShaper` in `text.ts`):
|
|
1084
|
+
*
|
|
1085
|
+
* - `createCanvasTextShaper`: the browser's own fonts and text drawing through Canvas 2D
|
|
1086
|
+
* (`measureText`, `fillText`). The default in browsers. It cannot give outlines.
|
|
1087
|
+
* - `createOutlineTextShaper`: glyph outlines from font objects the host loads, typed after
|
|
1088
|
+
* opentype.js's `Font` (`getPath`, `getAdvanceWidth`, `unitsPerEm`, …) without depending on it.
|
|
1089
|
+
* Pure: it renders anywhere (servers, workers, tests) and makes Convert to Shape possible.
|
|
1090
|
+
*/
|
|
1091
|
+
|
|
1092
|
+
/** A family as it goes into a CSS `font` value: generics and lists as written, other names quoted when needed. */
|
|
1093
|
+
declare function cssFontFamily(family: string): string;
|
|
1094
|
+
/** The CSS `font` shorthand for a font (`italic 700 24px Inter`). */
|
|
1095
|
+
declare function cssFont(font: TextFont, family?: string): string;
|
|
1096
|
+
interface CanvasTextShaperOptions {
|
|
1097
|
+
/** A 1 × 1 canvas for measuring (default an `OffscreenCanvas`, else a DOM canvas). */
|
|
1098
|
+
createCanvas?(width: number, height: number): HTMLCanvasElement | OffscreenCanvas;
|
|
1099
|
+
/** Family used when one is missing (default `sans-serif`). */
|
|
1100
|
+
fallbackFamily?: string;
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* A shaper over Canvas 2D. A family is missing when text set in it measures the same as in
|
|
1104
|
+
* both `monospace` and `serif` (the browser fell back), so web fonts must be loaded before use.
|
|
1105
|
+
* Returns `null` where there is no 2D canvas.
|
|
1106
|
+
*/
|
|
1107
|
+
declare function createCanvasTextShaper(options?: CanvasTextShaperOptions): TextShaper | null;
|
|
1108
|
+
/** A path command as opentype.js returns it. */
|
|
1109
|
+
interface OutlinePathCommand {
|
|
1110
|
+
type: 'M' | 'L' | 'C' | 'Q' | 'Z';
|
|
1111
|
+
x?: number;
|
|
1112
|
+
y?: number;
|
|
1113
|
+
x1?: number;
|
|
1114
|
+
y1?: number;
|
|
1115
|
+
x2?: number;
|
|
1116
|
+
y2?: number;
|
|
1117
|
+
}
|
|
1118
|
+
/** The parts of an opentype.js `Font` the outline shaper uses. */
|
|
1119
|
+
interface OutlineFontFace {
|
|
1120
|
+
unitsPerEm: number;
|
|
1121
|
+
ascender: number;
|
|
1122
|
+
descender: number;
|
|
1123
|
+
getAdvanceWidth(text: string, fontSize: number, options?: {
|
|
1124
|
+
kerning?: boolean;
|
|
1125
|
+
}): number;
|
|
1126
|
+
getPath(text: string, x: number, y: number, fontSize: number, options?: {
|
|
1127
|
+
kerning?: boolean;
|
|
1128
|
+
}): {
|
|
1129
|
+
commands: OutlinePathCommand[];
|
|
1130
|
+
};
|
|
1131
|
+
names?: {
|
|
1132
|
+
fontFamily?: Record<string, string>;
|
|
1133
|
+
postScriptName?: Record<string, string>;
|
|
1134
|
+
};
|
|
1135
|
+
tables?: {
|
|
1136
|
+
os2?: {
|
|
1137
|
+
usWeightClass?: number;
|
|
1138
|
+
fsSelection?: number;
|
|
1139
|
+
};
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
/** A face with its family, weight and style (read from the font's names when not given). */
|
|
1143
|
+
interface OutlineFontEntry {
|
|
1144
|
+
face: OutlineFontFace;
|
|
1145
|
+
family?: string;
|
|
1146
|
+
weight?: number;
|
|
1147
|
+
italic?: boolean;
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* A shaper over outline fonts the host loads (opentype.js `Font` objects or anything with the same
|
|
1151
|
+
* methods). Fonts are matched by family (case-insensitive), then the nearest weight and the
|
|
1152
|
+
* italic flag; a missing family uses `fallback` (default the first font) and is reported missing.
|
|
1153
|
+
*/
|
|
1154
|
+
declare function createOutlineTextShaper(fonts: ReadonlyArray<OutlineFontFace | OutlineFontEntry>, options?: {
|
|
1155
|
+
fallback?: string;
|
|
1156
|
+
id?: string;
|
|
1157
|
+
}): TextShaper;
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* Agent tools for type layers in the image editor: `list_fonts`, `get_text_layer`,
|
|
1161
|
+
* `add_text_layer`, `set_text`, `set_text_style`, `set_paragraph_style`, `set_text_frame` and
|
|
1162
|
+
* `convert_text_to_shape`. Every write is one undo step, validates first and returns the layer as
|
|
1163
|
+
* it is afterwards (with any missing fonts).
|
|
1164
|
+
*/
|
|
1165
|
+
declare function createImageTypeTools(controller: ImageEditorController): AgentTool[];
|
|
1166
|
+
|
|
1079
1167
|
/**
|
|
1080
1168
|
* Anti-aliased coverage of filled Bézier paths over a pixel rectangle, without a canvas. The paths
|
|
1081
1169
|
* are flattened to lines, then rasterized one of two ways:
|
|
@@ -1798,4 +1886,4 @@ declare class FreeTransformTool {
|
|
|
1798
1886
|
key(e: ShortcutEvent): boolean;
|
|
1799
1887
|
}
|
|
1800
1888
|
|
|
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 };
|
|
1889
|
+
export { ADJUSTMENT_KEYS, ADJUSTMENT_KINDS, ADJUSTMENT_LAYER_CONTROLS, ADJUSTMENT_LAYER_OPACITY_CONTROL, ADJUSTMENT_LUT_SIZE, AS_SHOT_KELVIN, AdjustmentKind, type AdjustmentKindInfo, AdjustmentLayer, AdjustmentLayerMask, AdjustmentLayerNode, AdjustmentLayerOf, AdjustmentParamsMap, Annotation, AnnotationLayer, BACKGROUND_LAYER_ID, BACKGROUND_LAYER_NAME, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, BlendMode, type CanvasTextShaperOptions, type Chromaticity, ColorDistance, CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type ConvertOptions, type CoverageFillRule, CropBox, CurvePoint, D50, D65, DEFAULT_SELECTION_TOOL_OPTIONS, DEPTH_MASK_CONTROLS, DEVELOP_FILTER_ID, DepthMaskOptions, type DescValue, type Descriptor, DevelopFilter, type DropZone, type EffectControl, EffectPattern, FREE_TRANSFORM_FIELDS, FREE_TRANSFORM_MODE_OPTIONS, type FlatPath, type FreeTransformBar, type FreeTransformField, FreeTransformGeometry, FreeTransformInit, FreeTransformMode, FreeTransformResult, FreeTransformSession, FreeTransformTool, type FreeTransformToolOptions, type GestureModifiers, HUE_RANGE_LABELS, HueRange, IDENTITY_MATRIX3, IMAGE_ADJUSTMENT_CONTROLS, IMAGE_CROP_PRESETS, IMAGE_EDITOR_STATE_VERSION, IMAGE_FILTER_PRESETS, ImageAdjustments, type ImageCropPreset, ImageEditorController, type ImageEditorDocumentLoad, type ImageEditorToolProviderOptions, type ImageFilterPreset, ImageHistogram, ImageLayer, ImagePoint, type ImageProcessVersion, ImageProjection, ImageTransform, Interpolation, LATEST_PROCESS_VERSION, LAYER_EFFECT_MENU, LEGACY_PROCESS_VERSION, LUMA_709, LayerCompositor, LayerEffect, LayerEffectKind, type LayerEffectRow, LayerEffects, type LayerEffectsPanelModel, LayerFilter, type LayerMenuAction, type LayerMenuItem, type LayerPanelRow, LayerPlacement, type LayerStack, type LegacyParts, type LegacyViewResult, LevelsChannel, MAX_KELVIN, MIN_KELVIN, MIRED_PER_TEMPERATURE_UNIT, MIXER_MIXING_OPTIONS, MIXER_OPTION_CONTROLS, type Matrix3, MixerLoad, MixerSettings, type MosaicImageDataLike, type MosaicRegion, type NormalizedLayerItem, type OutlineFontEntry, type OutlineFontFace, type OutlinePathCommand, PAINT_TOOLS, PATTERN_BLOCK_KEYS, PSD_FILE_ACCEPT, PaintGesture, type PaintPointerSample, type PaintTool, type ParsedAdjustment, type ParsedLayerEffects, PixelLayer, type PixelOp, PixelSurface, type PlaneLayout, PsdError, type PsdPattern, Quad, type QuickMaskStyle, REFINE_EDGE_CONTROLS, RasterMask, RasterRect, type ReferenceItem, type RefineEdgeControl, RefineEdgeParams, type RouteInput, SELECTION_MODE_LABELS, SELECTION_TOOLS, SMART_RENDER_MARGIN, SUPPORTED_ADJUSTMENT_KEYS, SelectionGesture, SelectionMask, SelectionMode, type SelectionToolKind, type SelectionToolOptions, SerializedImageEditorState, ShapeLayer, type ShortcutEvent, type SmartCanvas, SmartContents, SmartDocument, SmartFilter, type SmartFilterRow, SmartFilterStack, SmartObjectLayer, SmartPlacement, type SmartRenderOptions, TINT_SCALE, TONE_LUT_SIZE, TextEnv, TextFont, TextShaper, TransformAnchor, type TransformHandle, type TransformModifiers, type TransformOverlay, TypeLayer, type UnitLevels, VIBRANCE_GREY, Vec2, WARP_GRID_OPTIONS, WARP_STYLE_OPTIONS, type WarpBar, WarpMesh, WarpStyle, XYZ_D50_TO_SRGB, activeAdjustmentLayers, activeSmartFilters, addSmartFilter, addToHistogram, adjustmentKindLabel, adjustmentLayersKey, adjustmentNodeFromLegacy, annotationLayerFor, annotationLayerName, annotationOfLayer, applyAdjustmentLayers, applyAdjustments, applyBoxBlur, applyDepthMask, applyLegacyAdjustments, applyMatrix3, applyOutputStage, applyProcess2Adjustments, applyRegionBlur, applyRegionMosaic, applySmartFilters, backgroundLayer, baseProjection, blackWhiteGray, boxToCurvePoint, bradfordAdaptation, buildToneLut, clampControlValue, colorBalanceChannel, compileAdjustmentLayer, contentsBox, contentsSurface, controlPosition, controlTrackBackground, convertToSmartObject, copySmartObject, coveringRect, createAdjustmentLayer, createCanvasTextShaper, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createImageShapeTools, createImageSmartObjectTools, createImageTransformTools, createImageTypeTools, createOutlineTextShaper, cssFont, cssFontFamily, curveLutFromLevels, curvePointToBox, curveSvgPath, decodePlanes, defaultAdjustmentParams, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, developFromAdjustments, developTarget, documentContents, downloadPsd, dropPlacement, dropZone, effectControlChange, emptyHistogram, encodeRle, evaluateAdjustmentLayers, extractNormalizedLayerItems, filterMaskCoverage, findAdjustmentControl, findLayerControl, flattenPath, formatControlValue, getControlPath, handlePaintShortcut, hasResampledLegacyMask, hexToRgb, hitTestCurvePoint, hslToRgb, hueRangeTables, hueRangeWeight, hueSaturation, identityCurve, identityLevels, imageEditorStateMigrations, insertCurvePoint, instancesOf, invertMatrix3, isAdjustmentKind, isContentsDecoded, isDefaultDepthMask, isLegacyShape, isPaintTool, isQuarterTurn, kelvinToTemperature, layerBadge, layerEffectControls, layerEffectsBadge, layerEffectsPanel, layerLabel, layerMenu, layerPanelRows, layersFromLegacy, legacyAdjustmentLayer, legacyMaskOf, legacyView, levelsValue, linearSrgbToXy, linearToSrgb, loadImageEditorDocument, maskSummary, mixerLoadResult, moveCurvePoint, moveSmartFilter, mulMatrix3, needsLegacyBase, neutralHueRange, newContentsId, normalizeAdjustmentLayer, normalizeAdjustmentLayers, normalizePlacement, normalizeProcessVersion, normalizeSmartFilter, offsetSmartObject, openPsdFile, parseAdjustmentBlock, parseCssColor, parseLfx2, parseLrfx, parsePatternBlock, parseVersionedDescriptor, photoFilterMatrix, placeContents, placementAt, placementBounds, placementGeometry, pointerPressure, posterizeValue, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdPatternToEffectPattern, quickMaskPixels, rangeLightness, rasterContents, rasterMaskFromLegacy, rasterizeCoverage, rasterizeSmartObject, readAdjustmentControls, removeAlpha, removeCurvePoint, removeSmartFilter, renderLayeredBase, renderSmartObject, replaceContents, requireSmartObject, rerender, resolveMosaicRegionBounds, rgbToGray, rgbToHsl, rgbUnitToHex, runLayerMenuAction, sampleLut, sampleToneLut, selectionModeFromModifiers, selectionOutline, setControlPath, setSmartFilterMask, setSmartFiltersEnabled, setSmartPlacement, smartFilterRows, splitOverlayAnnotations, srgbToLinear, sumHistograms, tempTintToXy, temperatureToKelvin, toneCurve, toneLuts, updateSmartFilter, uvToXy, versionedDescriptorBytes, vibranceLinear, vibrancePixel, wbMatrix, whiteBalanceFromSample, whiteBalanceMatrix, withFilterMaskSurface, writeAdjustmentBlock, writeLfx2, writePatternBlock, xyToTempTint, xyToUv };
|
|
@@ -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, q as AnnotationLayer, r as ShapeLayer, s as
|
|
2
|
-
export {
|
|
1
|
+
import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as SmartFilterStack, F as SmartFilter, G as SmartObjectLayer, J as SmartContents, K as SmartDocument, M as SmartPlacement, N as FreeTransformGeometry, O as TextShaper, Q as TextFont, U as LayerPlacement, V as FreeTransformMode, W as FreeTransformResult, X as FreeTransformSession, Y as FreeTransformInit, Z as TransformAnchor } from '../export-DBNVwb6h.js';
|
|
2
|
+
export { _ as AIResultOptions, $ as AdjustmentLayerBase, a0 as AdjustmentLayerInit, a1 as AdjustmentLayerUpdate, a2 as AnnotationPlacement, a3 as AnnotationType, a4 as ArrowAnnotation, a5 as AspectRatio, a6 as BaseAnnotation, a7 as BlackWhiteParams, a8 as BlurFilter, a9 as CircleAnnotation, aa as ColorBalanceParams, ab as ColorBalanceTone, ac as ColorRangeOptions, ad as ColorRangeSample, ae as CreateAnnotationPayload, af as CropHandle, ag as CurvesParams, ah as DEFAULT_ADJUSTMENTS, ai as DEFAULT_AUTO_LEADING, aj as DEFAULT_DEPTH_MASK, ak as DEFAULT_MITER_LIMIT, al as DEFAULT_REFINE_EDGE_PARAMS, am as DEFAULT_TEXT_STYLE, an as DEFAULT_TRANSFORM, ao as DeserializeContext, ap as DevelopSettings, aq as EMPTY_DISTANCE, ar as ExportOptions, as as FREE_TRANSFORM_CONTENTS, at as FREE_TRANSFORM_MODES, au as FillOptions, av as FreeTransformContent, aw as FreeTransformHost, ax as FreeTransformPreview, ay as GUIDED_FILTER_EPS, az as GroupLayer, aA as HISTOGRAM_BINS, aB as HistogramChannel, aC as HistoryEntryHandle, aD as HueSaturationParams, aE as IMAGE_EDITOR_SCHEMA_VERSION, aF as ImageAnnotation, aG as ImageDimensions, aH as ImageEditorAIHooks, I as ImageEditorAssetStore, aI as ImageEditorFit, aJ as ImageEditorOptions, aK as ImageEditorRenderer, aL as ImageEditorState, aM as ImageEditorTool, aN as ImageLayerType, aO as InpaintHook, aP as InpaintOptions, aQ as InvertParams, aR as LAYERED_SCHEMA_VERSION, aS as LIVE_SHAPE_KINDS, aT as LaidChar, aU as LaidFragment, aV as LaidLine, aW as LayerBase, aX as LayerBlendMode, aY as LayerFilterKind, aZ as LayerLocation, a_ as LayerMaskProps, a$ as LayerOperationError, b0 as LayerProperties, b1 as LayerSourcesHost, b2 as LayerTarget, b3 as LegacySerializedImageEditorState, b4 as LevelsParams, b5 as LineAnnotation, b6 as LiveShape, b7 as LiveShapeKind, b8 as MagicWandOptions, b9 as MixerStrokeInit, ba as PARAGRAPH_STYLE_FIELDS, bb as PSD_BLEND_KEYS, bc as PaintOptions, bd as PaintStrokeResult, be as PaintStrokeSession, bf as ParagraphRun, bg as ParagraphStyle, bh as PenAnnotation, bi as PhotoFilterParams, bj as PixelBuffer, bk as PixelLayerInit, bl as PosterizeParams, bm as PsdChannel, bn as PsdExportInput, P as PsdExportResult, bo as PsdFile, bp as PsdHeader, bq as PsdImportOptions, br as PsdImportResult, bs as PsdLayerMask, bt as PsdLayerRecord, bu as PsdLayerSummary, bv as PsdRect, bw as PsdResource, bx as PsdSmartFilter, by as PsdTaggedBlock, bz as PsdTreeNode, bA as RectAnnotation, bB as RemoveBackgroundHook, bC as RemoveBackgroundOptions, bD as RenderOptions, bE as SELECTION_MODES, bF as SELECTION_MODIFY_OPS, bG as SHAPE_OPERATIONS, bH as SHAPE_RENDER_MARGIN, bI as SampleOptions, bJ as SelectionChannel, bK as SelectionCommandOptions, bL as SelectionModifyOp, bM as SerializeContext, bN as SerializedAdjustmentLayer, bO as SerializedAnnotationLayer, bP as SerializedGroupLayer, S as SerializedLayer, bQ as SerializedLayerEffects, bR as SerializedLayeredImageEditorState, bS as SerializedPattern, bT as SerializedPixelLayer, bU as SerializedRasterMask, bV as SerializedSelection, bW as SerializedShapeLayer, bX as SerializedSmartContents, bY as SerializedSmartFilter, bZ as SerializedSmartObjectLayer, b_ as SerializedTypeLayer, b$ as ShapeArrowhead, c0 as ShapeComponent, c1 as ShapeEnv, c2 as ShapeFillRule, c3 as ShapeGeometryInput, c4 as ShapeLayerData, c5 as ShapeLayerInfo, c6 as ShapeLayerInit, c7 as ShapeLineCap, c8 as ShapeLineJoin, c9 as ShapeOperation, ca as ShapePaint, cb as ShapePsdData, cc as ShapeSelectionOptions, cd as ShapeStroke, ce as ShapeStrokeAlign, cf as SmartFilterKind, cg as SmartObjectInfo, ch as SmartPsdData, ci as StrokeInit, cj as StrokeTool, ck as TEXT_ALIGNS, cl as TEXT_RENDER_MARGIN, cm as TEXT_STYLE_FIELDS, cn as TONE_RANGE_PRESETS, co as TRANSFORM_ANCHORS, cp as TextAlign, cq as TextAnnotation, cr as TextLayerInit, cs as TextLayout, ct as TextRun, cu as TextStyle, cv as ThresholdParams, cw as ToneRangePreset, cx as TransformParams, cy as TransformReadout, cz as TypeLayerData, cA as TypeLayerInfo, cB as TypePsdData, cC as VibranceParams, cD as ViewportMetrics, cE as addLayerEffect, cF as addLayerFilter, cG as adjustmentNodeAsLayer, cH as anchorPoint, cI as annotationBlend, cJ as annotationOfShape, cK as annotationOfType, cL as applyImageProjectionToContext, cM as applyParams, cN as blurFilter, cO as borderCoverage, cP as boxMean, cQ as boxPointOf, cR as buildLayerMaskPlanes, cS as calculateCropDrag, cT as canvasToImagePoint, cU as caretAt, cV as clampCropToImage, cW as colorRange, cX as combineSelections, cY as componentPath, cZ as computeHistogram, c_ as computeSelectionBounds, c$ as contractCoverage, d0 as cornersFromMatrix, d1 as coverageToByte, d2 as createSelectionMask, d3 as createShapeLayer, d4 as createTypeLayer, d5 as decodeLayerChannel, d6 as decodeLayerMask, d7 as decodeMergedImage, d8 as decodePngDataUrl, d9 as decodeSelectionRle, da as defaultShapeName, db as depthMaskAlpha, dc as describeTransform, dd as deserializeEffects, de as deserializeLayer, df as deserializeLayers, dg as deserializePatterns, dh as deserializeSelection, di as developFilter, dj as distanceTransform, dk as duplicateLayer, dl as edgeWidth, dm as ellipsePoints, dn as ellipseSelection, dp as encodeSelectionRle, dq as encodeSurface, dr as expandCoverage, ds as exportPsd, dt as featherCoverage, du as fitParagraphRuns, dv as fitRuns, dw as flipCorners, dx as fontOf, dy as fullSelection, dz as geometryHomography, dA as getAnnotationBounds, dB as getCropCursor, dC as getRotatedSize, dD as getViewportMetrics, dE as getViewportProjection, dF as globalImageCache, dG as greyMorphology, dH as groupLayers, dI as guidePlanes, dJ as guidedFilterColor, dK as hasSurface, dL as hasWarp, dM as hashMaskContent, dN as histogramPath, dO as hitTestAnnotation, dP as hitTestCrop, dQ as hueRange, dR as identityTransform, dS as imageToCanvasPoint, dT as importPsd, dU as invertSelection, dV as isActiveFilter, dW as isIdentityTransform, dX as isQuarterTurnSwapped, dY as isRenderedLayer, dZ as isSelectionEmpty, d_ as isSelectionMode, d$ as isSpatialFilter, e0 as isTransformAnchor, e1 as isValidWarp, e2 as layerEffectsOf, e3 as layerMaskCoverage, e4 as layerMaskFromSelection, e5 as layerMaskKey, e6 as layerName, e7 as layerTree, e8 as layerTypeLabel, e9 as layoutText, ea as liveComponent, eb as liveShapeSubpaths, ec as magicWand, ed as mapCropHandle, ee as mapSubpaths, ef as matrixFromCorners, eg as matrixFromParams, eh as mergeShapeComponents, ei as migrateSerializedImageEditorState, ej as migrateToLayeredState, ek as modifySelection, el as moveLayer, em as newLayerId, en as normalizeAngle, eo as normalizeFilter, ep as normalizeLayerMask, eq as normalizeLiveShape, er as normalizeRect, es as normalizeRefineEdgeParams, et as normalizeShapePaint, eu as normalizeShapeStroke, ev as normalizeStoredAdjustments, ew as normalizeSubpaths, ex as normalizeText, ey as offsetLayer, ez as offsetShape, eA as paragraphRanges, eB as parseBlend, eC as parseColor, eD as parseSelectionMode, eE as patchParagraphStyle, eF as patchTextStyle, eG as pixelLayerBounds, eH as pixelLayers, eI as placeLayer, eJ as polygonCoverage, eK as polygonSelection, eL as presetWarp, eM as previewStep, eN as projectImagePoint, eO as projectImageRect, eP as projectMaskCoverage, eQ as psdToLayers, eR as readPsd, eS as rectSelection, eT as referencePoint, eU as refineCoverage, eV as refineEdgeHalo, eW as refineSelection, eX as removeLayer, eY as removeLayerEffect, eZ as removeLayerFilter, e_ as renderShape, e$ as renderShapeRect, f0 as renderText, f1 as replaceTextRange, f2 as requireLayer, f3 as requireOperation, f4 as requireShapeLayer, f5 as requireTypeLayer, f6 as requireUnlocked, f7 as rerenderShape, f8 as rerenderText, f9 as resizePixels, fa as resizeSelection, fb as resolveExternalAssets, fc as restyleRange, fd as runLayerFilters, fe as selectionArea, ff as selectionFromCoverage, fg as selectionFromPixels, fh as selectionToCoverage, fi as selectionToPixels, fj as selectionValueAt, fk as serializeContents, fl as serializeEffects, fm as serializeLayer, fn as serializeLayers, fo as serializeLayersExternal, fp as serializePatterns, fq as serializeSelection, fr as setLayerEffects, fs as setLayerEffectsEnabled, ft as setLayerMask, fu as setLayerProperties, fv as shapeAsPixelLayer, fw as shapeFromAnnotation, fx as shapeGeometryBounds, fy as shapeLayers, fz as shapeOutline, fA as shapeRenderClip, fB as shiftCoverage, fC as smartObjectLayers, fD as smoothCoverage, fE as spliceRuns, fF as srgb8ToLab, fG as styleAt, fH as textIndexAt, fI as textMatrix, fJ as textOutlines, fK as textRange, fL as toHex, fM as toTextSpace, fN as toneRange, fO as transformHomography, fP as transformMap, fQ as transformShapeComponents, fR as transformTypeLayer, fS as transformedBox, fT as transformedPoint, fU as typeAsPixelLayer, fV as typeFrame, fW as typeFromAnnotation, fX as typeLayerName, fY as ungroupLayer, fZ as unionRect, f_ as unprojectCanvasPoint, f$ as updateLayerEffect, g0 as updateLayerFilter, g1 as updateLayerMaskProps, g2 as updateShapeLayer, g3 as updateTypeLayer, g4 as withNewIds, g5 as writePsd } from '../export-DBNVwb6h.js';
|
|
3
3
|
import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.js';
|
|
4
4
|
import { B as BlendMode, b as PixelSurface, R as RasterRect } from '../surface-C8RRg_Bh.js';
|
|
5
5
|
export { d as BLEND_MODES, c as BlendModeInfo, M as MaskSurface, e as PAINTERLY_BLEND_MODES, h as PIGMENT_BANDS, j as PIGMENT_LAMBDA_MIN, k as PIGMENT_LAMBDA_STEP, l as PIGMENT_WAVELENGTHS, P as Pigment, m as PigmentOptions, n as PigmentRgb, o as Rgb, p as Rgba, S as SHADOW_AMBIENT, q as SurfaceDraft, r as TILE, t as TILE_SHIFT, f as Tile, T as TileKey, a as TiledSurface, u as blendChannel, v as blendImageData, w as blendLum, x as blendPixel, y as blendRgb, z as canvasCompositeOperation, A as collectTiles, C as contentBounds, D as createPigment, E as emptySurface, F as fillRect, G as finishTile, i as isBlendMode, g as isPainterlyBlendMode, H as isSeparableBlendMode, I as lerpPigment, J as lerpPigmentInto, K as mixPigment8, L as mixPigmentRgb, N as mixPigments, O as normalizeBlendMode, Q as packRgba, U as pigment8, V as readPixel, W as readRegion, X as reflectanceToRgb, Y as rgbToReflectance, Z as setLum, _ as setPigmentColor, $ as solidSurface, s as standardBlendMode, a0 as surfaceBytes, a1 as surfaceFromPixels, a2 as surfacesEqual, a3 as tileCoord, a4 as tileKey, a5 as tileRect, a6 as tilesInRect, a7 as translateSurface, a8 as uniformTile, a9 as writeRegion } from '../surface-C8RRg_Bh.js';
|
|
@@ -496,6 +496,8 @@ interface ImageEditorToolProviderOptions {
|
|
|
496
496
|
* - Shape layers: `get_shape_layer`, `add_shape_layer`, `update_shape`, `set_shape_component`,
|
|
497
497
|
* `add_shape_component`, `remove_shape_component`, `merge_shape_components` (see
|
|
498
498
|
* `createImageShapeTools`); `rasterize_layer` turns one into pixels.
|
|
499
|
+
* - Type layers: `list_fonts`, `get_text_layer`, `add_text_layer`, `set_text`, `set_text_style`,
|
|
500
|
+
* `set_paragraph_style`, `set_text_frame`, `convert_text_to_shape` (see `createImageTypeTools`).
|
|
499
501
|
*/
|
|
500
502
|
declare function createImageEditorToolProvider(controller: ImageEditorController, options?: ImageEditorToolProviderOptions): AgentToolProvider;
|
|
501
503
|
|
|
@@ -768,14 +770,15 @@ declare function developFromAdjustments(adjustments: ImageAdjustments): DevelopF
|
|
|
768
770
|
/** The default name of an annotation layer. */
|
|
769
771
|
declare function annotationLayerName(annotation: Annotation): string;
|
|
770
772
|
/**
|
|
771
|
-
* The layer an annotation becomes
|
|
772
|
-
* line, arrow
|
|
773
|
-
* a colour
|
|
773
|
+
* The layer an annotation becomes, for a `canvas` of that size: a shape layer (pen, rectangle,
|
|
774
|
+
* ellipse, line, arrow) or a type layer (text; drawn with `canvas.shaper`, or kept undrawn until
|
|
775
|
+
* one can) that remembers it, else an annotation layer (image, or a colour we can't read). Without
|
|
776
|
+
* a canvas nothing is migrated.
|
|
774
777
|
*/
|
|
775
778
|
declare function annotationLayerFor(annotation: Annotation, canvas?: {
|
|
776
779
|
width: number;
|
|
777
780
|
height: number;
|
|
778
|
-
}): AnnotationLayer | ShapeLayer;
|
|
781
|
+
} & Partial<TextEnv>): AnnotationLayer | ShapeLayer | TypeLayer;
|
|
779
782
|
/** The annotation a layer still is (an annotation layer, or a shape layer migrated from one), or `null`. */
|
|
780
783
|
declare function annotationOfLayer(layer: ImageLayer): Annotation | null;
|
|
781
784
|
declare function adjustmentNodeFromLegacy(layer: AdjustmentLayer, width: number, height: number): AdjustmentLayerNode;
|
|
@@ -860,8 +863,8 @@ declare function needsLegacyBase(input: RouteInput): boolean;
|
|
|
860
863
|
/**
|
|
861
864
|
* Splits the stack into what the compositor rasterizes and the annotation layers at the top that
|
|
862
865
|
* draw as crisp vectors over the result (as annotations always did): the trailing run of plain
|
|
863
|
-
* top-level annotation layers and shape layers that still are the annotation they were
|
|
864
|
-
* from (given as annotation views; hidden ones are skipped).
|
|
866
|
+
* top-level annotation layers and shape and type layers that still are the annotation they were
|
|
867
|
+
* migrated from (given as annotation views; hidden ones are skipped).
|
|
865
868
|
*/
|
|
866
869
|
declare function splitOverlayAnnotations(layers: readonly ImageLayer[]): {
|
|
867
870
|
composite: ImageLayer[];
|
|
@@ -1076,6 +1079,91 @@ declare function createImageSmartObjectTools(controller: ImageEditorController):
|
|
|
1076
1079
|
*/
|
|
1077
1080
|
declare function createImageShapeTools(controller: ImageEditorController): AgentTool[];
|
|
1078
1081
|
|
|
1082
|
+
/**
|
|
1083
|
+
* Text shapers for type layers (see `TextShaper` in `text.ts`):
|
|
1084
|
+
*
|
|
1085
|
+
* - `createCanvasTextShaper`: the browser's own fonts and text drawing through Canvas 2D
|
|
1086
|
+
* (`measureText`, `fillText`). The default in browsers. It cannot give outlines.
|
|
1087
|
+
* - `createOutlineTextShaper`: glyph outlines from font objects the host loads, typed after
|
|
1088
|
+
* opentype.js's `Font` (`getPath`, `getAdvanceWidth`, `unitsPerEm`, …) without depending on it.
|
|
1089
|
+
* Pure: it renders anywhere (servers, workers, tests) and makes Convert to Shape possible.
|
|
1090
|
+
*/
|
|
1091
|
+
|
|
1092
|
+
/** A family as it goes into a CSS `font` value: generics and lists as written, other names quoted when needed. */
|
|
1093
|
+
declare function cssFontFamily(family: string): string;
|
|
1094
|
+
/** The CSS `font` shorthand for a font (`italic 700 24px Inter`). */
|
|
1095
|
+
declare function cssFont(font: TextFont, family?: string): string;
|
|
1096
|
+
interface CanvasTextShaperOptions {
|
|
1097
|
+
/** A 1 × 1 canvas for measuring (default an `OffscreenCanvas`, else a DOM canvas). */
|
|
1098
|
+
createCanvas?(width: number, height: number): HTMLCanvasElement | OffscreenCanvas;
|
|
1099
|
+
/** Family used when one is missing (default `sans-serif`). */
|
|
1100
|
+
fallbackFamily?: string;
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* A shaper over Canvas 2D. A family is missing when text set in it measures the same as in
|
|
1104
|
+
* both `monospace` and `serif` (the browser fell back), so web fonts must be loaded before use.
|
|
1105
|
+
* Returns `null` where there is no 2D canvas.
|
|
1106
|
+
*/
|
|
1107
|
+
declare function createCanvasTextShaper(options?: CanvasTextShaperOptions): TextShaper | null;
|
|
1108
|
+
/** A path command as opentype.js returns it. */
|
|
1109
|
+
interface OutlinePathCommand {
|
|
1110
|
+
type: 'M' | 'L' | 'C' | 'Q' | 'Z';
|
|
1111
|
+
x?: number;
|
|
1112
|
+
y?: number;
|
|
1113
|
+
x1?: number;
|
|
1114
|
+
y1?: number;
|
|
1115
|
+
x2?: number;
|
|
1116
|
+
y2?: number;
|
|
1117
|
+
}
|
|
1118
|
+
/** The parts of an opentype.js `Font` the outline shaper uses. */
|
|
1119
|
+
interface OutlineFontFace {
|
|
1120
|
+
unitsPerEm: number;
|
|
1121
|
+
ascender: number;
|
|
1122
|
+
descender: number;
|
|
1123
|
+
getAdvanceWidth(text: string, fontSize: number, options?: {
|
|
1124
|
+
kerning?: boolean;
|
|
1125
|
+
}): number;
|
|
1126
|
+
getPath(text: string, x: number, y: number, fontSize: number, options?: {
|
|
1127
|
+
kerning?: boolean;
|
|
1128
|
+
}): {
|
|
1129
|
+
commands: OutlinePathCommand[];
|
|
1130
|
+
};
|
|
1131
|
+
names?: {
|
|
1132
|
+
fontFamily?: Record<string, string>;
|
|
1133
|
+
postScriptName?: Record<string, string>;
|
|
1134
|
+
};
|
|
1135
|
+
tables?: {
|
|
1136
|
+
os2?: {
|
|
1137
|
+
usWeightClass?: number;
|
|
1138
|
+
fsSelection?: number;
|
|
1139
|
+
};
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
/** A face with its family, weight and style (read from the font's names when not given). */
|
|
1143
|
+
interface OutlineFontEntry {
|
|
1144
|
+
face: OutlineFontFace;
|
|
1145
|
+
family?: string;
|
|
1146
|
+
weight?: number;
|
|
1147
|
+
italic?: boolean;
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* A shaper over outline fonts the host loads (opentype.js `Font` objects or anything with the same
|
|
1151
|
+
* methods). Fonts are matched by family (case-insensitive), then the nearest weight and the
|
|
1152
|
+
* italic flag; a missing family uses `fallback` (default the first font) and is reported missing.
|
|
1153
|
+
*/
|
|
1154
|
+
declare function createOutlineTextShaper(fonts: ReadonlyArray<OutlineFontFace | OutlineFontEntry>, options?: {
|
|
1155
|
+
fallback?: string;
|
|
1156
|
+
id?: string;
|
|
1157
|
+
}): TextShaper;
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* Agent tools for type layers in the image editor: `list_fonts`, `get_text_layer`,
|
|
1161
|
+
* `add_text_layer`, `set_text`, `set_text_style`, `set_paragraph_style`, `set_text_frame` and
|
|
1162
|
+
* `convert_text_to_shape`. Every write is one undo step, validates first and returns the layer as
|
|
1163
|
+
* it is afterwards (with any missing fonts).
|
|
1164
|
+
*/
|
|
1165
|
+
declare function createImageTypeTools(controller: ImageEditorController): AgentTool[];
|
|
1166
|
+
|
|
1079
1167
|
/**
|
|
1080
1168
|
* Anti-aliased coverage of filled Bézier paths over a pixel rectangle, without a canvas. The paths
|
|
1081
1169
|
* are flattened to lines, then rasterized one of two ways:
|
|
@@ -1798,4 +1886,4 @@ declare class FreeTransformTool {
|
|
|
1798
1886
|
key(e: ShortcutEvent): boolean;
|
|
1799
1887
|
}
|
|
1800
1888
|
|
|
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 };
|
|
1889
|
+
export { ADJUSTMENT_KEYS, ADJUSTMENT_KINDS, ADJUSTMENT_LAYER_CONTROLS, ADJUSTMENT_LAYER_OPACITY_CONTROL, ADJUSTMENT_LUT_SIZE, AS_SHOT_KELVIN, AdjustmentKind, type AdjustmentKindInfo, AdjustmentLayer, AdjustmentLayerMask, AdjustmentLayerNode, AdjustmentLayerOf, AdjustmentParamsMap, Annotation, AnnotationLayer, BACKGROUND_LAYER_ID, BACKGROUND_LAYER_NAME, BLUR_FILTER_ID, BRUSH_OPTION_CONTROLS, BlendMode, type CanvasTextShaperOptions, type Chromaticity, ColorDistance, CompositorSources, type ControlSection, type ControlSpec, type ControlTrack, type ConvertOptions, type CoverageFillRule, CropBox, CurvePoint, D50, D65, DEFAULT_SELECTION_TOOL_OPTIONS, DEPTH_MASK_CONTROLS, DEVELOP_FILTER_ID, DepthMaskOptions, type DescValue, type Descriptor, DevelopFilter, type DropZone, type EffectControl, EffectPattern, FREE_TRANSFORM_FIELDS, FREE_TRANSFORM_MODE_OPTIONS, type FlatPath, type FreeTransformBar, type FreeTransformField, FreeTransformGeometry, FreeTransformInit, FreeTransformMode, FreeTransformResult, FreeTransformSession, FreeTransformTool, type FreeTransformToolOptions, type GestureModifiers, HUE_RANGE_LABELS, HueRange, IDENTITY_MATRIX3, IMAGE_ADJUSTMENT_CONTROLS, IMAGE_CROP_PRESETS, IMAGE_EDITOR_STATE_VERSION, IMAGE_FILTER_PRESETS, ImageAdjustments, type ImageCropPreset, ImageEditorController, type ImageEditorDocumentLoad, type ImageEditorToolProviderOptions, type ImageFilterPreset, ImageHistogram, ImageLayer, ImagePoint, type ImageProcessVersion, ImageProjection, ImageTransform, Interpolation, LATEST_PROCESS_VERSION, LAYER_EFFECT_MENU, LEGACY_PROCESS_VERSION, LUMA_709, LayerCompositor, LayerEffect, LayerEffectKind, type LayerEffectRow, LayerEffects, type LayerEffectsPanelModel, LayerFilter, type LayerMenuAction, type LayerMenuItem, type LayerPanelRow, LayerPlacement, type LayerStack, type LegacyParts, type LegacyViewResult, LevelsChannel, MAX_KELVIN, MIN_KELVIN, MIRED_PER_TEMPERATURE_UNIT, MIXER_MIXING_OPTIONS, MIXER_OPTION_CONTROLS, type Matrix3, MixerLoad, MixerSettings, type MosaicImageDataLike, type MosaicRegion, type NormalizedLayerItem, type OutlineFontEntry, type OutlineFontFace, type OutlinePathCommand, PAINT_TOOLS, PATTERN_BLOCK_KEYS, PSD_FILE_ACCEPT, PaintGesture, type PaintPointerSample, type PaintTool, type ParsedAdjustment, type ParsedLayerEffects, PixelLayer, type PixelOp, PixelSurface, type PlaneLayout, PsdError, type PsdPattern, Quad, type QuickMaskStyle, REFINE_EDGE_CONTROLS, RasterMask, RasterRect, type ReferenceItem, type RefineEdgeControl, RefineEdgeParams, type RouteInput, SELECTION_MODE_LABELS, SELECTION_TOOLS, SMART_RENDER_MARGIN, SUPPORTED_ADJUSTMENT_KEYS, SelectionGesture, SelectionMask, SelectionMode, type SelectionToolKind, type SelectionToolOptions, SerializedImageEditorState, ShapeLayer, type ShortcutEvent, type SmartCanvas, SmartContents, SmartDocument, SmartFilter, type SmartFilterRow, SmartFilterStack, SmartObjectLayer, SmartPlacement, type SmartRenderOptions, TINT_SCALE, TONE_LUT_SIZE, TextEnv, TextFont, TextShaper, TransformAnchor, type TransformHandle, type TransformModifiers, type TransformOverlay, TypeLayer, type UnitLevels, VIBRANCE_GREY, Vec2, WARP_GRID_OPTIONS, WARP_STYLE_OPTIONS, type WarpBar, WarpMesh, WarpStyle, XYZ_D50_TO_SRGB, activeAdjustmentLayers, activeSmartFilters, addSmartFilter, addToHistogram, adjustmentKindLabel, adjustmentLayersKey, adjustmentNodeFromLegacy, annotationLayerFor, annotationLayerName, annotationOfLayer, applyAdjustmentLayers, applyAdjustments, applyBoxBlur, applyDepthMask, applyLegacyAdjustments, applyMatrix3, applyOutputStage, applyProcess2Adjustments, applyRegionBlur, applyRegionMosaic, applySmartFilters, backgroundLayer, baseProjection, blackWhiteGray, boxToCurvePoint, bradfordAdaptation, buildToneLut, clampControlValue, colorBalanceChannel, compileAdjustmentLayer, contentsBox, contentsSurface, controlPosition, controlTrackBackground, convertToSmartObject, copySmartObject, coveringRect, createAdjustmentLayer, createCanvasTextShaper, createImageCaptureSurface, createImageEditTools, createImageEditorToolProvider, createImageEffectTools, createImageLayerTools, createImagePaintTools, createImagePsdTools, createImageSelectionTools, createImageShapeTools, createImageSmartObjectTools, createImageTransformTools, createImageTypeTools, createOutlineTextShaper, cssFont, cssFontFamily, curveLutFromLevels, curvePointToBox, curveSvgPath, decodePlanes, defaultAdjustmentParams, depthRasterMask, describeLayer, describeLayerEffects, describeSelection, developFromAdjustments, developTarget, documentContents, downloadPsd, dropPlacement, dropZone, effectControlChange, emptyHistogram, encodeRle, evaluateAdjustmentLayers, extractNormalizedLayerItems, filterMaskCoverage, findAdjustmentControl, findLayerControl, flattenPath, formatControlValue, getControlPath, handlePaintShortcut, hasResampledLegacyMask, hexToRgb, hitTestCurvePoint, hslToRgb, hueRangeTables, hueRangeWeight, hueSaturation, identityCurve, identityLevels, imageEditorStateMigrations, insertCurvePoint, instancesOf, invertMatrix3, isAdjustmentKind, isContentsDecoded, isDefaultDepthMask, isLegacyShape, isPaintTool, isQuarterTurn, kelvinToTemperature, layerBadge, layerEffectControls, layerEffectsBadge, layerEffectsPanel, layerLabel, layerMenu, layerPanelRows, layersFromLegacy, legacyAdjustmentLayer, legacyMaskOf, legacyView, levelsValue, linearSrgbToXy, linearToSrgb, loadImageEditorDocument, maskSummary, mixerLoadResult, moveCurvePoint, moveSmartFilter, mulMatrix3, needsLegacyBase, neutralHueRange, newContentsId, normalizeAdjustmentLayer, normalizeAdjustmentLayers, normalizePlacement, normalizeProcessVersion, normalizeSmartFilter, offsetSmartObject, openPsdFile, parseAdjustmentBlock, parseCssColor, parseLfx2, parseLrfx, parsePatternBlock, parseVersionedDescriptor, photoFilterMatrix, placeContents, placementAt, placementBounds, placementGeometry, pointerPressure, posterizeValue, projectQuarterTurn, psdBytesFromBase64, psdFileName, psdPatternToEffectPattern, quickMaskPixels, rangeLightness, rasterContents, rasterMaskFromLegacy, rasterizeCoverage, rasterizeSmartObject, readAdjustmentControls, removeAlpha, removeCurvePoint, removeSmartFilter, renderLayeredBase, renderSmartObject, replaceContents, requireSmartObject, rerender, resolveMosaicRegionBounds, rgbToGray, rgbToHsl, rgbUnitToHex, runLayerMenuAction, sampleLut, sampleToneLut, selectionModeFromModifiers, selectionOutline, setControlPath, setSmartFilterMask, setSmartFiltersEnabled, setSmartPlacement, smartFilterRows, splitOverlayAnnotations, srgbToLinear, sumHistograms, tempTintToXy, temperatureToKelvin, toneCurve, toneLuts, updateSmartFilter, uvToXy, versionedDescriptorBytes, vibranceLinear, vibrancePixel, wbMatrix, whiteBalanceFromSample, whiteBalanceMatrix, withFilterMaskSurface, writeAdjustmentBlock, writeLfx2, writePatternBlock, xyToTempTint, xyToUv };
|