@pixerate/editor 0.127.0 → 0.129.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/agent/index.cjs +2 -2
  2. package/dist/agent/index.d.cts +3 -3
  3. package/dist/agent/index.d.ts +3 -3
  4. package/dist/agent/index.js +1 -1
  5. package/dist/animation-editor/index.d.cts +3 -3
  6. package/dist/animation-editor/index.d.ts +3 -3
  7. package/dist/{arrange-BlfgJ_wt.d.ts → arrange-BUREmgD9.d.ts} +1 -1
  8. package/dist/{arrange-CD6Gh-pd.d.cts → arrange-CKXK_hf7.d.cts} +1 -1
  9. package/dist/{bezier-DBz0IgEt.d.cts → bezier-CvgQiYRg.d.cts} +1 -1
  10. package/dist/{bezier-DWI5MEkI.d.ts → bezier-DP4NnJp3.d.ts} +1 -1
  11. package/dist/{brushTypes-IG7ZZjIN.d.cts → brushTypes-C7N3EBK7.d.cts} +56 -1
  12. package/dist/{brushTypes-IG7ZZjIN.d.ts → brushTypes-C7N3EBK7.d.ts} +56 -1
  13. package/dist/{brushstrokeRender-OW6ENCZG.cjs → brushstrokeRender-JNHVEUFG.cjs} +25 -6
  14. package/dist/brushstrokeRender-JNHVEUFG.cjs.map +1 -0
  15. package/dist/{brushstrokeRender-7RUITO42.js → brushstrokeRender-SII6MG4R.js} +24 -5
  16. package/dist/brushstrokeRender-SII6MG4R.js.map +1 -0
  17. package/dist/{builtins-DMIsnNst.d.cts → builtins-Cc-bH-3U.d.cts} +3 -2
  18. package/dist/{builtins-B5-ipm5u.d.ts → builtins-ZU1GJnUA.d.ts} +3 -2
  19. package/dist/canvas/index.cjs +18 -7
  20. package/dist/canvas/index.cjs.map +1 -1
  21. package/dist/canvas/index.d.cts +22 -10
  22. package/dist/canvas/index.d.ts +22 -10
  23. package/dist/canvas/index.js +14 -3
  24. package/dist/canvas/index.js.map +1 -1
  25. package/dist/{chunk-33SO3QWP.cjs → chunk-DDSO4HS7.cjs} +7 -3
  26. package/dist/chunk-DDSO4HS7.cjs.map +1 -0
  27. package/dist/{chunk-AKU2KQ47.cjs → chunk-DFSZO2B5.cjs} +70 -3
  28. package/dist/chunk-DFSZO2B5.cjs.map +1 -0
  29. package/dist/{chunk-2SDGZAJR.js → chunk-LSXXAJG3.js} +70 -3
  30. package/dist/chunk-LSXXAJG3.js.map +1 -0
  31. package/dist/{chunk-UABQTYQF.js → chunk-SVYE5HIM.js} +6 -2
  32. package/dist/chunk-SVYE5HIM.js.map +1 -0
  33. package/dist/commands/index.cjs +2 -2
  34. package/dist/commands/index.d.cts +3 -3
  35. package/dist/commands/index.d.ts +3 -3
  36. package/dist/commands/index.js +1 -1
  37. package/dist/{export-CcldobdN.d.cts → export-DRzNhrdx.d.cts} +11 -4
  38. package/dist/{export-PGhOpDmz.d.ts → export-DotEEyXj.d.ts} +11 -4
  39. package/dist/image-editor/index.cjs +69 -18
  40. package/dist/image-editor/index.cjs.map +1 -1
  41. package/dist/image-editor/index.d.cts +9 -9
  42. package/dist/image-editor/index.d.ts +9 -9
  43. package/dist/image-editor/index.js +63 -12
  44. package/dist/image-editor/index.js.map +1 -1
  45. package/dist/{opentype-BgqvmGT-.d.cts → opentype-BOewaGQx.d.cts} +1 -1
  46. package/dist/{opentype-01rMIuQR.d.ts → opentype-sQrF3Ry1.d.ts} +1 -1
  47. package/dist/paint/index.d.cts +2 -2
  48. package/dist/paint/index.d.ts +2 -2
  49. package/dist/paint-editor/index.d.cts +6 -6
  50. package/dist/paint-editor/index.d.ts +6 -6
  51. package/dist/{pathfinder-D-h0Imus.d.ts → pathfinder-BwJx0_zM.d.ts} +2 -2
  52. package/dist/{pathfinder-DgG0Z9Lr.d.cts → pathfinder-CnkW7zLI.d.cts} +2 -2
  53. package/dist/{rand-CfinE-1c.d.cts → rand-DTXAssW1.d.cts} +4 -4
  54. package/dist/{rand-DtazXGOB.d.ts → rand-pQQ2sJTk.d.ts} +4 -4
  55. package/dist/{svg-DLBBPQP9.d.cts → svg-C4LlFnEw.d.cts} +1 -1
  56. package/dist/{svg-BRLwcibA.d.ts → svg-CUzZa0EO.d.ts} +1 -1
  57. package/dist/vector/index.d.cts +8 -8
  58. package/dist/vector/index.d.ts +8 -8
  59. package/dist/{warp-q8FK5HHi.d.ts → warp-CIsO617e.d.ts} +1 -1
  60. package/dist/{warp-C13L_GRn.d.cts → warp-D62N_5VK.d.cts} +1 -1
  61. package/package.json +1 -1
  62. package/skills/pixerate-canvas/SKILL.md +11 -2
  63. package/skills/pixerate-image-editor/SKILL.md +1 -1
  64. package/skills/pixerate-image-editor/references/color-management.md +4 -3
  65. package/skills/pixerate-vector/SKILL.md +1 -1
  66. package/skills/pixerate-vector/references/commands.md +1 -0
  67. package/dist/brushstrokeRender-7RUITO42.js.map +0 -1
  68. package/dist/brushstrokeRender-OW6ENCZG.cjs.map +0 -1
  69. package/dist/chunk-2SDGZAJR.js.map +0 -1
  70. package/dist/chunk-33SO3QWP.cjs.map +0 -1
  71. package/dist/chunk-AKU2KQ47.cjs.map +0 -1
  72. package/dist/chunk-UABQTYQF.js.map +0 -1
@@ -74,7 +74,7 @@ function profileAlongPolyline(points, values, count = 32) {
74
74
  var round3 = (v) => Math.round(v * 1e3) / 1e3;
75
75
  var loading = null;
76
76
  function loadCanvasBrushstrokeRenderer() {
77
- loading ??= import("./brushstrokeRender-7RUITO42.js").catch((error) => {
77
+ loading ??= import("./brushstrokeRender-SII6MG4R.js").catch((error) => {
78
78
  loading = null;
79
79
  throw error;
80
80
  });
@@ -86,6 +86,9 @@ async function listCanvasBrushes() {
86
86
  async function validateCanvasBrush(brush) {
87
87
  (await loadCanvasBrushstrokeRenderer()).resolveCanvasBrush(brush, 1);
88
88
  }
89
+ async function validateCanvasBrushPaint(paint) {
90
+ (await loadCanvasBrushstrokeRenderer()).resolveCanvasPaint(paint);
91
+ }
89
92
  async function renderShapeBrushstroke(shape, options = {}) {
90
93
  if (!isBrushedShape(shape)) return null;
91
94
  return (await loadCanvasBrushstrokeRenderer()).renderShapeBrushstrokeNow(shape, options.scale ?? 1);
@@ -102,7 +105,8 @@ export {
102
105
  loadCanvasBrushstrokeRenderer,
103
106
  listCanvasBrushes,
104
107
  validateCanvasBrush,
108
+ validateCanvasBrushPaint,
105
109
  renderShapeBrushstroke,
106
110
  getBrushedShapeSvg
107
111
  };
108
- //# sourceMappingURL=chunk-UABQTYQF.js.map
112
+ //# sourceMappingURL=chunk-SVYE5HIM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/canvas/brushstroke.ts"],"sourcesContent":["/**\n * Brushed freehand strokes: a path shape with a `brush` keeps its path (selection, editing, eraser\n * hit-testing, grouping and export work as for any path) and is drawn with the paint engine's\n * dry brushstroke renderer instead of an SVG stroke. The renderer, the paint presets and the colour\n * parser live in a separate chunk, loaded the first time a brushed stroke is drawn, so canvases\n * without brushes never load the paint engine.\n */\nimport { brushstrokeScaleBucket } from '../paint/brushstroke-scale.js';\nimport { parseSvgPath, type PathShape, type ShapeDescription, type ShapeSize } from './shapeGeometry.js';\nimport type { Point } from './types.js';\nimport type { CanvasBrush, CanvasBrushPaint, CanvasBrushPreset, CanvasBrushstroke } from './brushTypes.js';\n\nexport type { CanvasBrush, CanvasBrushPaint, CanvasBrushPaintMapping, CanvasBrushPaintStop, CanvasBrushPreset, CanvasBrushSettings, CanvasBrushstroke } from './brushTypes.js';\n\nexport { brushstrokeScaleBucket };\n\n/** A brushed stroke's image, placed in the path's coordinates (the shape's view box). */\nexport interface CanvasBrushstrokeImage {\n\t/** PNG data URL. */\n\thref: string;\n\tx: number;\n\ty: number;\n\twidth: number;\n\theight: number;\n\t/** Image pixels per path unit. */\n\tscale: number;\n}\n\n/** A path shape with a brush. */\nexport type BrushedPathShape = PathShape & { brush: CanvasBrushstroke };\n\n/** Whether a shape is a brushed stroke. */\nexport function isBrushedShape(shape: ShapeDescription | null | undefined): shape is BrushedPathShape {\n\treturn !!shape && shape.kind === 'path' && !!shape.brush && typeof shape.brush === 'object' && shape.brush.brush != null;\n}\n\n/**\n * The open polyline of a path's first subpath, in path coordinates: lines kept, curves sampled\n * every `step` units or so. Brushed strokes are drawn along it.\n */\nexport function pathDataToPolyline(d: string, step = 2): Point[] {\n\tconst out: Point[] = [];\n\tlet x = 0;\n\tlet y = 0;\n\tlet started = false;\n\tconst push = (px: number, py: number) => {\n\t\tconst last = out[out.length - 1];\n\t\tif (!last || last[0] !== px || last[1] !== py) out.push([px, py]);\n\t};\n\tfor (const c of parseSvgPath(d)) {\n\t\tif (c.type === 'M') {\n\t\t\tif (started) break;\n\t\t\tstarted = true;\n\t\t\tx = c.x;\n\t\t\ty = c.y;\n\t\t\tpush(x, y);\n\t\t} else if (c.type === 'Z') {\n\t\t\tif (out.length) push(out[0][0], out[0][1]);\n\t\t\tbreak;\n\t\t} else if (c.type === 'C' || c.type === 'Q') {\n\t\t\tconst pts = c.type === 'C' ? [[x, y], [c.x1, c.y1], [c.x2, c.y2], [c.x, c.y]] : [[x, y], [c.x1, c.y1], [c.x, c.y]];\n\t\t\tlet hull = 0;\n\t\t\tfor (let i = 1; i < pts.length; i++) hull += Math.hypot(pts[i][0] - pts[i - 1][0], pts[i][1] - pts[i - 1][1]);\n\t\t\tconst n = Math.max(1, Math.min(256, Math.ceil(hull / Math.max(0.25, step))));\n\t\t\tfor (let k = 1; k <= n; k++) {\n\t\t\t\tconst t = k / n;\n\t\t\t\tconst u = 1 - t;\n\t\t\t\tif (c.type === 'C') {\n\t\t\t\t\tpush(\n\t\t\t\t\t\tu * u * u * x + 3 * u * u * t * c.x1 + 3 * u * t * t * c.x2 + t * t * t * c.x,\n\t\t\t\t\t\tu * u * u * y + 3 * u * u * t * c.y1 + 3 * u * t * t * c.y2 + t * t * t * c.y\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\tpush(u * u * x + 2 * u * t * c.x1 + t * t * c.x, u * u * y + 2 * u * t * c.y1 + t * t * c.y);\n\t\t\t\t}\n\t\t\t}\n\t\t\tx = c.x;\n\t\t\ty = c.y;\n\t\t} else {\n\t\t\t// Lines, and arcs as their chords (freehand paths have none).\n\t\t\tx = c.x;\n\t\t\ty = c.y;\n\t\t\tpush(x, y);\n\t\t}\n\t}\n\treturn out;\n}\n\n/**\n * Resamples per-point values into `count` values spread evenly along the polyline's length (the\n * profile a brushed stroke stores). Values are rounded to three decimals.\n */\nexport function profileAlongPolyline(points: readonly Point[], values: readonly number[], count = 32): number[] {\n\tconst n = Math.min(points.length, values.length);\n\tif (n === 0) return [];\n\tif (n === 1) return [round3(values[0])];\n\tconst lengths = [0];\n\tfor (let i = 1; i < n; i++) lengths.push(lengths[i - 1] + Math.hypot(points[i][0] - points[i - 1][0], points[i][1] - points[i - 1][1]));\n\tconst total = lengths[n - 1];\n\tconst m = Math.max(2, Math.min(count, n));\n\tconst out: number[] = [];\n\tlet j = 0;\n\tfor (let k = 0; k < m; k++) {\n\t\tconst at = total > 0 ? (total * k) / (m - 1) : 0;\n\t\twhile (j < n - 2 && lengths[j + 1] < at) j++;\n\t\tconst span = lengths[j + 1] - lengths[j];\n\t\tconst f = span > 0 ? Math.min(1, Math.max(0, (at - lengths[j]) / span)) : 0;\n\t\tout.push(round3(values[j] + (values[j + 1] - values[j]) * f));\n\t}\n\treturn out;\n}\n\nconst round3 = (v: number) => Math.round(v * 1000) / 1000;\n\n// ---------------------------------------------------------------------------\n// The lazily loaded renderer\n// ---------------------------------------------------------------------------\n\n/** The renderer chunk (`./brushstrokeRender.ts`). */\nexport interface CanvasBrushstrokeRenderer {\n\tlistCanvasBrushes(): CanvasBrushPreset[];\n\t/** Throws for an unknown or non-dry brush; the result is the paint engine's brush. */\n\tresolveCanvasBrush(brush: CanvasBrush, width: number): unknown;\n\t/** Throws for paint that is not a colour or gradient paint a canvas stroke can use; the result is the paint engine's `PaintSource`. */\n\tresolveCanvasPaint(paint: unknown): unknown;\n\trenderShapeBrushstrokeNow(shape: BrushedPathShape, scale: number): CanvasBrushstrokeImage | null;\n\tbrushedShapeSvgNow(shape: BrushedPathShape, size: ShapeSize, scale: number): string;\n}\n\nlet loading: Promise<CanvasBrushstrokeRenderer> | null = null;\n\n/**\n * Loads the brushstroke renderer (the paint engine's dry brushes, the paint presets and a CSS\n * colour parser). Called for you by the functions below; call it early to warm up.\n */\nexport function loadCanvasBrushstrokeRenderer(): Promise<CanvasBrushstrokeRenderer> {\n\tloading ??= (import('./brushstrokeRender.js') as Promise<CanvasBrushstrokeRenderer>).catch((error) => {\n\t\tloading = null;\n\t\tthrow error;\n\t});\n\treturn loading;\n}\n\n/** The dry paint presets a freehand stroke can use (wet, mixer, blender, smudge and eraser presets are left out). */\nexport async function listCanvasBrushes(): Promise<CanvasBrushPreset[]> {\n\treturn (await loadCanvasBrushstrokeRenderer()).listCanvasBrushes();\n}\n\n/**\n * Checks a brush: an unknown preset id, a wet (or other non-dry) preset, or settings that are not\n * an object throw an error saying which presets can be used.\n */\nexport async function validateCanvasBrush(brush: CanvasBrush): Promise<void> {\n\t(await loadCanvasBrushstrokeRenderer()).resolveCanvasBrush(brush, 1);\n}\n\n/**\n * Checks a brushed stroke's `paint` (a colour or gradient paint): bad stops, an unknown mapping,\n * or a mapping that needs timed samples (`velocity`, `time`) throw an error saying what to use.\n */\nexport async function validateCanvasBrushPaint(paint: CanvasBrushPaint): Promise<void> {\n\t(await loadCanvasBrushstrokeRenderer()).resolveCanvasPaint(paint);\n}\n\nexport interface RenderShapeBrushstrokeOptions {\n\t/** Image pixels per path unit; pass `brushstrokeScaleBucket(zoom × node scale, devicePixelRatio)` (default 1). */\n\tscale?: number;\n}\n\n/**\n * Renders a brushed path shape to a cached PNG placed in path coordinates, or null for a shape\n * without a brush or an empty path. Throws for an unknown or non-dry brush.\n */\nexport async function renderShapeBrushstroke(shape: ShapeDescription, options: RenderShapeBrushstrokeOptions = {}): Promise<CanvasBrushstrokeImage | null> {\n\tif (!isBrushedShape(shape)) return null;\n\treturn (await loadCanvasBrushstrokeRenderer()).renderShapeBrushstrokeNow(shape, options.scale ?? 1);\n}\n\n/**\n * The brushed stroke as a standalone SVG document of `size` (the node box), with the image\n * embedded as a PNG data URL: what an SVG export writes for the node. Shapes without a brush give\n * null (export them as paths).\n */\nexport async function getBrushedShapeSvg(shape: ShapeDescription, size: ShapeSize, options: RenderShapeBrushstrokeOptions = {}): Promise<string | null> {\n\tif (!isBrushedShape(shape)) return null;\n\treturn (await loadCanvasBrushstrokeRenderer()).brushedShapeSvgNow(shape, size, options.scale ?? 2);\n}\n"],"mappings":"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","names":[]}
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkAKU2KQ47cjs = require('../chunk-AKU2KQ47.cjs');
11
+ var _chunkDFSZO2B5cjs = require('../chunk-DFSZO2B5.cjs');
12
12
 
13
13
 
14
14
 
@@ -982,5 +982,5 @@ function createCanvasAnimationCommands(controller, options = {}) {
982
982
 
983
983
 
984
984
 
985
- exports.CommandRegistry = CommandRegistry; exports.CommandRegistryError = CommandRegistryError; exports.DEFAULT_HISTORY_SHORTCUTS = _chunkAKU2KQ47cjs.DEFAULT_HISTORY_SHORTCUTS; exports.DEFAULT_RECENT_LIMIT = DEFAULT_RECENT_LIMIT; exports.PLATFORMS = _chunk26BVFKHUcjs.PLATFORMS; exports.ShortcutMap = _chunk26BVFKHUcjs.ShortcutMap; exports.chordToString = _chunk26BVFKHUcjs.chordToString; exports.codeFromKey = _chunk26BVFKHUcjs.codeFromKey; exports.codeToKeyText = _chunk26BVFKHUcjs.codeToKeyText; exports.createArrangeCommands = _chunkAKU2KQ47cjs.createArrangeCommands; exports.createCanvasAnimationCommands = createCanvasAnimationCommands; exports.createCommandPaletteController = createCommandPaletteController; exports.createCommandRegistry = createCommandRegistry; exports.createCommandToolProvider = createCommandToolProvider; exports.createComponentCommands = _chunkAKU2KQ47cjs.createComponentCommands; exports.createDrawCommands = _chunkAKU2KQ47cjs.createDrawCommands; exports.createHistoryCommands = _chunkAKU2KQ47cjs.createHistoryCommands; exports.createShapeCommands = _chunkAKU2KQ47cjs.createShapeCommands; exports.createSpreadsheetCommands = _chunkAKU2KQ47cjs.createSpreadsheetCommands; exports.defineCommand = defineCommand; exports.detectPlatform = _chunk26BVFKHUcjs.detectPlatform; exports.effectiveChord = _chunk26BVFKHUcjs.effectiveChord; exports.effectiveChordKey = _chunk26BVFKHUcjs.effectiveChordKey; exports.eventCode = _chunk26BVFKHUcjs.eventCode; exports.exactBonus = exactBonus; exports.formatShortcut = _chunk26BVFKHUcjs.formatShortcut; exports.fuzzyMatch = fuzzyMatch; exports.fuzzyScore = fuzzyScore; exports.hasVariantCommands = _chunkAKU2KQ47cjs.hasVariantCommands; exports.isEditableEventTarget = _chunk26BVFKHUcjs.isEditableEventTarget; exports.keyToCode = _chunk26BVFKHUcjs.keyToCode; exports.matchHistoryShortcut = _chunkAKU2KQ47cjs.matchHistoryShortcut; exports.matchPaletteHotkey = matchPaletteHotkey; exports.normalizeChord = _chunk26BVFKHUcjs.normalizeChord; exports.parseChord = _chunk26BVFKHUcjs.parseChord; exports.pushRecent = pushRecent; exports.rankCommands = rankCommands; exports.shortcutCode = _chunk26BVFKHUcjs.shortcutCode; exports.toShortcutBindings = _chunk26BVFKHUcjs.toShortcutBindings;
985
+ exports.CommandRegistry = CommandRegistry; exports.CommandRegistryError = CommandRegistryError; exports.DEFAULT_HISTORY_SHORTCUTS = _chunkDFSZO2B5cjs.DEFAULT_HISTORY_SHORTCUTS; exports.DEFAULT_RECENT_LIMIT = DEFAULT_RECENT_LIMIT; exports.PLATFORMS = _chunk26BVFKHUcjs.PLATFORMS; exports.ShortcutMap = _chunk26BVFKHUcjs.ShortcutMap; exports.chordToString = _chunk26BVFKHUcjs.chordToString; exports.codeFromKey = _chunk26BVFKHUcjs.codeFromKey; exports.codeToKeyText = _chunk26BVFKHUcjs.codeToKeyText; exports.createArrangeCommands = _chunkDFSZO2B5cjs.createArrangeCommands; exports.createCanvasAnimationCommands = createCanvasAnimationCommands; exports.createCommandPaletteController = createCommandPaletteController; exports.createCommandRegistry = createCommandRegistry; exports.createCommandToolProvider = createCommandToolProvider; exports.createComponentCommands = _chunkDFSZO2B5cjs.createComponentCommands; exports.createDrawCommands = _chunkDFSZO2B5cjs.createDrawCommands; exports.createHistoryCommands = _chunkDFSZO2B5cjs.createHistoryCommands; exports.createShapeCommands = _chunkDFSZO2B5cjs.createShapeCommands; exports.createSpreadsheetCommands = _chunkDFSZO2B5cjs.createSpreadsheetCommands; exports.defineCommand = defineCommand; exports.detectPlatform = _chunk26BVFKHUcjs.detectPlatform; exports.effectiveChord = _chunk26BVFKHUcjs.effectiveChord; exports.effectiveChordKey = _chunk26BVFKHUcjs.effectiveChordKey; exports.eventCode = _chunk26BVFKHUcjs.eventCode; exports.exactBonus = exactBonus; exports.formatShortcut = _chunk26BVFKHUcjs.formatShortcut; exports.fuzzyMatch = fuzzyMatch; exports.fuzzyScore = fuzzyScore; exports.hasVariantCommands = _chunkDFSZO2B5cjs.hasVariantCommands; exports.isEditableEventTarget = _chunk26BVFKHUcjs.isEditableEventTarget; exports.keyToCode = _chunk26BVFKHUcjs.keyToCode; exports.matchHistoryShortcut = _chunkDFSZO2B5cjs.matchHistoryShortcut; exports.matchPaletteHotkey = matchPaletteHotkey; exports.normalizeChord = _chunk26BVFKHUcjs.normalizeChord; exports.parseChord = _chunk26BVFKHUcjs.parseChord; exports.pushRecent = pushRecent; exports.rankCommands = rankCommands; exports.shortcutCode = _chunk26BVFKHUcjs.shortcutCode; exports.toShortcutBindings = _chunk26BVFKHUcjs.toShortcutBindings;
986
986
  //# sourceMappingURL=index.cjs.map
@@ -1,11 +1,11 @@
1
1
  import { a as CommandRegistry, P as Platform, b as CommandResult, c as CommandEntry, K as KeyboardEventLike, C as CommandSpec } from '../registry-CaR7LC6W.cjs';
2
2
  export { d as Chord, e as CommandErrorCode, f as CommandHistoryTarget, g as CommandListOptions, h as CommandParamsSchema, i as CommandRegistryError, j as CommandRegistryOptions, E as EffectiveChord, k as PLATFORMS, S as ShortcutBinding, l as ShortcutConflict, m as ShortcutInput, n as ShortcutMap, o as ShortcutMapOptions, p as ShortcutMatch, q as ShortcutResolveOptions, r as chordToString, s as codeFromKey, t as codeToKeyText, u as createCommandRegistry, v as defineCommand, w as detectPlatform, x as effectiveChord, y as effectiveChordKey, z as eventCode, A as formatShortcut, B as isEditableEventTarget, D as keyToCode, F as normalizeChord, G as parseChord, H as shortcutCode, I as toShortcutBindings } from '../registry-CaR7LC6W.cjs';
3
3
  import { a as AgentToolProvider } from '../registry-BqA1AZt0.cjs';
4
- export { A as ArrangeCommandOptions, a as ArrangeCommandTarget, C as ComponentCommandOptions, b as ComponentCommandTarget, D as DEFAULT_HISTORY_SHORTCUTS, c as DrawCommandOptions, d as DrawCommandTarget, H as HistoryCommandOptions, e as HistoryCommandTarget, S as ShapeCommandOptions, f as ShapeCommandTarget, g as SpreadsheetCommandOptions, h as SpreadsheetCommandTarget, i as createArrangeCommands, j as createComponentCommands, k as createDrawCommands, l as createHistoryCommands, m as createShapeCommands, n as createSpreadsheetCommands, o as hasVariantCommands, p as matchHistoryShortcut } from '../builtins-DMIsnNst.cjs';
4
+ export { A as ArrangeCommandOptions, a as ArrangeCommandTarget, C as ComponentCommandOptions, b as ComponentCommandTarget, D as DEFAULT_HISTORY_SHORTCUTS, c as DrawCommandOptions, d as DrawCommandTarget, H as HistoryCommandOptions, e as HistoryCommandTarget, S as ShapeCommandOptions, f as ShapeCommandTarget, g as SpreadsheetCommandOptions, h as SpreadsheetCommandTarget, i as createArrangeCommands, j as createComponentCommands, k as createDrawCommands, l as createHistoryCommands, m as createShapeCommands, n as createSpreadsheetCommands, o as hasVariantCommands, p as matchHistoryShortcut } from '../builtins-Cc-bH-3U.cjs';
5
5
  import '../schema-Di0CS6Pe.cjs';
6
6
  import '../types-DsiXGmjo.cjs';
7
- import '../arrange-CD6Gh-pd.cjs';
8
- import '../brushTypes-IG7ZZjIN.cjs';
7
+ import '../arrange-CKXK_hf7.cjs';
8
+ import '../brushTypes-C7N3EBK7.cjs';
9
9
 
10
10
  /** The fields `rankCommands` searches (a `CommandEntry` satisfies it). */
11
11
  interface RankableCommand {
@@ -1,11 +1,11 @@
1
1
  import { a as CommandRegistry, P as Platform, b as CommandResult, c as CommandEntry, K as KeyboardEventLike, C as CommandSpec } from '../registry-rVtFJjRM.js';
2
2
  export { d as Chord, e as CommandErrorCode, f as CommandHistoryTarget, g as CommandListOptions, h as CommandParamsSchema, i as CommandRegistryError, j as CommandRegistryOptions, E as EffectiveChord, k as PLATFORMS, S as ShortcutBinding, l as ShortcutConflict, m as ShortcutInput, n as ShortcutMap, o as ShortcutMapOptions, p as ShortcutMatch, q as ShortcutResolveOptions, r as chordToString, s as codeFromKey, t as codeToKeyText, u as createCommandRegistry, v as defineCommand, w as detectPlatform, x as effectiveChord, y as effectiveChordKey, z as eventCode, A as formatShortcut, B as isEditableEventTarget, D as keyToCode, F as normalizeChord, G as parseChord, H as shortcutCode, I as toShortcutBindings } from '../registry-rVtFJjRM.js';
3
3
  import { a as AgentToolProvider } from '../registry-D-4fit9C.js';
4
- export { A as ArrangeCommandOptions, a as ArrangeCommandTarget, C as ComponentCommandOptions, b as ComponentCommandTarget, D as DEFAULT_HISTORY_SHORTCUTS, c as DrawCommandOptions, d as DrawCommandTarget, H as HistoryCommandOptions, e as HistoryCommandTarget, S as ShapeCommandOptions, f as ShapeCommandTarget, g as SpreadsheetCommandOptions, h as SpreadsheetCommandTarget, i as createArrangeCommands, j as createComponentCommands, k as createDrawCommands, l as createHistoryCommands, m as createShapeCommands, n as createSpreadsheetCommands, o as hasVariantCommands, p as matchHistoryShortcut } from '../builtins-B5-ipm5u.js';
4
+ export { A as ArrangeCommandOptions, a as ArrangeCommandTarget, C as ComponentCommandOptions, b as ComponentCommandTarget, D as DEFAULT_HISTORY_SHORTCUTS, c as DrawCommandOptions, d as DrawCommandTarget, H as HistoryCommandOptions, e as HistoryCommandTarget, S as ShapeCommandOptions, f as ShapeCommandTarget, g as SpreadsheetCommandOptions, h as SpreadsheetCommandTarget, i as createArrangeCommands, j as createComponentCommands, k as createDrawCommands, l as createHistoryCommands, m as createShapeCommands, n as createSpreadsheetCommands, o as hasVariantCommands, p as matchHistoryShortcut } from '../builtins-ZU1GJnUA.js';
5
5
  import '../schema-Di0CS6Pe.js';
6
6
  import '../types-DsiXGmjo.js';
7
- import '../arrange-BlfgJ_wt.js';
8
- import '../brushTypes-IG7ZZjIN.js';
7
+ import '../arrange-BUREmgD9.js';
8
+ import '../brushTypes-C7N3EBK7.js';
9
9
 
10
10
  /** The fields `rankCommands` searches (a `CommandEntry` satisfies it). */
11
11
  interface RankableCommand {
@@ -8,7 +8,7 @@ import {
8
8
  createSpreadsheetCommands,
9
9
  hasVariantCommands,
10
10
  matchHistoryShortcut
11
- } from "../chunk-2SDGZAJR.js";
11
+ } from "../chunk-LSXXAJG3.js";
12
12
  import {
13
13
  PLATFORMS,
14
14
  ShortcutMap,
@@ -2,10 +2,10 @@ import { a2 as RasterLayerBase, a3 as RasterMask$1, a5 as RasterPixelLayer, H as
2
2
  import { c as PixelSurface, a as BlendMode, T as TiledSurface, R as RasterRect } from './surface-1MRncXpF.cjs';
3
3
  import { b as BuiltinProfileId, j as Intent, P as Profile, T as Transform, d as ColorSpace } from './builtin-CY97ppKM.cjs';
4
4
  import { A as AffineMatrix, Q as Quad, a as WarpMesh, V as Vec2, H as Homography } from './types-CwMPoRMU.cjs';
5
- import { B as BezierPath } from './bezier-DBz0IgEt.cjs';
6
- import { b as TextRun, P as ParagraphRun, T as TextShaper, c as ParagraphStyle, d as TextStyle, L as LaidFragment, W as WarpPreset, e as TextLayout } from './warp-C13L_GRn.cjs';
5
+ import { B as BezierPath } from './bezier-CvgQiYRg.cjs';
6
+ import { b as TextRun, P as ParagraphRun, T as TextShaper, c as ParagraphStyle, d as TextStyle, L as LaidFragment, W as WarpPreset, e as TextLayout } from './warp-D62N_5VK.cjs';
7
7
  import { e as EffectValue, a3 as VectorSubpath, v as EffectsSlot, E as EffectProvider, b as EffectPixels, f as EffectDescription, X as Vec2$1 } from './helpers-C5aAd44p.cjs';
8
- import { B as BrushSettings, P as PaintSource, M as MixerSettings, a as MixerLoad, R as RetouchSettings, S as StrokeCoverage, b as MixerTarget, c as MixerStroke, d as RetouchApply, e as StrokePoint, f as RetouchPaint, C as CoverageMap, g as PaintTileTarget, h as StrokeApply } from './rand-CfinE-1c.cjs';
8
+ import { B as BrushSettings, P as PaintSource, M as MixerSettings, a as MixerLoad, R as RetouchSettings, S as StrokeCoverage, b as MixerTarget, c as MixerStroke, d as RetouchApply, e as StrokePoint, f as RetouchPaint, C as CoverageMap, g as PaintTileTarget, h as StrokeApply } from './rand-DTXAssW1.cjs';
9
9
 
10
10
  /**
11
11
  * A selection: one 8-bit coverage value per image pixel (0 = not selected, 255 = fully
@@ -665,6 +665,13 @@ type PixelTransform = (rgba: Uint8ClampedArray) => void;
665
665
  declare function displayTransform(doc: DocumentColorProfile | null | undefined, proof: ProofSetup | null | undefined): PixelTransform | null;
666
666
  /** A `#rrggbb` colour converted between two profiles. */
667
667
  declare function convertHex(hex: string, from: Profile, to: Profile, intent?: Intent, bpc?: boolean): string;
668
+ /**
669
+ * A copy of `value` (layer settings: effects, a shape's paint, text runs, an annotation) with
670
+ * every `#rrggbb` colour converted by `convert`. Colours are the string fields whose key ends in
671
+ * "color" (`color`, `strokeColor`, `highlightColor`, …), including gradient stops; text and other
672
+ * strings are left alone. Plain objects and arrays are copied only where something changed.
673
+ */
674
+ declare function convertColorFields<T>(value: T, convert: (hex: string) => string): T;
668
675
  /**
669
676
  * A layer surface with every pixel's colour converted through `t` (an RGB → RGB transform):
670
677
  * 8-bit tiles through its tables, 16-bit tiles at 16 bits, 32-bit (linear) tiles through the
@@ -4725,4 +4732,4 @@ interface PsdExportResult {
4725
4732
  /** Writes the prepared stack as PSD (or PSB) bytes. */
4726
4733
  declare function exportPsd(input: PsdExportInput): PsdExportResult;
4727
4734
 
4728
- export { type AspectRatio as $, type AdjustmentKind as A, LayerCompositor as B, type CurvePoint as C, type DepthMaskOptions as D, type LiveShapeKind as E, type TypeLayerInfo as F, type SmartFilter as G, type HueRange as H, type ImageEditorAssetStore as I, type LayerPlacement as J, type FreeTransformMode as K, type LevelsChannel as L, type FreeTransformResult as M, FreeTransformSession as N, type FreeTransformInit as O, type PsdExportResult as P, type TransformAnchor as Q, type RefineEdgeParams as R, type SerializedLayer as S, type TextEnv as T, type AIResultOptions as U, type AdjustmentLayerBase as V, type AdjustmentLayerInit as W, type AdjustmentLayerUpdate as X, type AnnotationPlacement as Y, type AnnotationType as Z, type ArrowAnnotation as _, type ImageAdjustments as a, type LayerMaskProps as a$, type BaseAnnotation as a0, type BlackWhiteParams as a1, type BlurFilter as a2, type CircleAnnotation as a3, type CloneSource as a4, type ColorBalanceParams as a5, type ColorBalanceTone as a6, type ColorRangeOptions as a7, type ColorRangeSample as a8, type ConvertOptions as a9, type HistogramChannel as aA, type HistoryEntryHandle as aB, type HueSaturationParams as aC, IMAGE_EDITOR_SCHEMA_VERSION as aD, IMAGE_EFFECT_PLACES as aE, type ImageAnnotation as aF, type ImageDimensions as aG, type ImageEditorAIHooks as aH, type ImageEditorFit as aI, type ImageEditorOptions as aJ, ImageEditorRenderer as aK, type ImageEditorState as aL, type ImageEditorTool as aM, type ImageEffectGenerator as aN, type ImageEffectPlace as aO, ImageEffectsEngine as aP, type ImageEffectsEngineOptions as aQ, type ImageLayerType as aR, type InpaintHook as aS, type InpaintOptions as aT, type InvertParams as aU, LAYERED_SCHEMA_VERSION as aV, LIVE_SHAPE_KINDS as aW, type LayerBase as aX, type LayerBlendMode as aY, type LayerFilterKind as aZ, type LayerLocation as a_, type CreateAnnotationPayload as aa, type CropHandle as ab, type CurvesParams as ac, DEFAULT_ADJUSTMENTS as ad, DEFAULT_DEPTH_MASK as ae, DEFAULT_MITER_LIMIT as af, DEFAULT_PROOF as ag, DEFAULT_REFINE_EDGE_PARAMS as ah, DEFAULT_TRANSFORM as ai, type DeserializeContext as aj, type DevelopSettings as ak, type DocumentColorMode as al, type DocumentColorProfile as am, EMPTY_DISTANCE as an, type EffectSmartFilter as ao, type ExportOptions as ap, FREE_TRANSFORM_CONTENTS as aq, FREE_TRANSFORM_MODES as ar, type FillOptions as as, type FreeTransformContent as at, type FreeTransformGeometry as au, type FreeTransformHost as av, type FreeTransformPreview as aw, GUIDED_FILTER_EPS as ax, type GroupLayer as ay, HISTOGRAM_BINS as az, type SerializedImageEditorState as b, type SerializedRasterMask as b$, LayerOperationError as b0, type LayerProperties as b1, type LayerSourcesHost as b2, type LayerTarget as b3, type LegacySerializedImageEditorState as b4, type LevelsParams as b5, type LineAnnotation as b6, type LiveShape as b7, type MagicWandOptions as b8, type MixerStrokeInit as b9, RETOUCH_TOOLS as bA, type RectAnnotation as bB, type RemoveBackgroundHook as bC, type RemoveBackgroundOptions as bD, type RenderOptions as bE, type RetouchStrokeInit as bF, type RetouchTool as bG, SELECTION_MODES as bH, SELECTION_MODIFY_OPS as bI, SHAPE_OPERATIONS as bJ, SHAPE_RENDER_MARGIN as bK, SMART_RENDER_MARGIN as bL, type SampleOptions as bM, type SelectionChannel as bN, type SelectionCommandOptions as bO, type SelectionModifyOp as bP, type SerializeContext as bQ, type SerializedAdjustmentLayer as bR, type SerializedAnnotationLayer as bS, type SerializedColorMode as bT, type SerializedColorProfile as bU, type SerializedDeepPixels as bV, type SerializedGroupLayer as bW, type SerializedLayerEffects as bX, type SerializedLayeredImageEditorState as bY, type SerializedPattern as bZ, type SerializedPixelLayer as b_, PARAGRAPH_STYLE_FIELDS as ba, PSD_BLEND_KEYS as bb, type PaintOptions as bc, type PaintStrokeResult as bd, PaintStrokeSession as be, type PenAnnotation as bf, type PhotoFilterParams as bg, type PixelBuffer as bh, type PixelLayerInit as bi, type PixelTransform as bj, type PosterizeParams as bk, type ProofSetup as bl, type PsdChannel as bm, type PsdExportInput as bn, type PsdFile as bo, type PsdHeader as bp, type PsdImportOptions as bq, type PsdImportResult as br, type PsdLayerMask as bs, type PsdLayerRecord as bt, type PsdLayerSummary as bu, type PsdRect as bv, type PsdResource as bw, type PsdSmartFilter as bx, type PsdTaggedBlock as by, type PsdTreeNode as bz, type AdjustmentLayer as c, blurFilter as c$, type SerializedSelection as c0, type SerializedShapeLayer as c1, type SerializedSmartContents as c2, type SerializedSmartFilter as c3, type SerializedSmartObjectLayer as c4, type SerializedTypeLayer as c5, type ShapeArrowhead as c6, type ShapeComponent as c7, type ShapeEnv as c8, type ShapeFillRule as c9, TEXT_RENDER_MARGIN as cA, TEXT_STYLE_FIELDS as cB, TONE_RANGE_PRESETS as cC, TRANSFORM_ANCHORS as cD, type TextAnnotation as cE, type TextLayerInit as cF, type ThresholdParams as cG, type ToneRangePreset as cH, type TransformParams as cI, type TransformReadout as cJ, type TypeLayerData as cK, type TypePsdData as cL, type VibranceParams as cM, type ViewportMetrics as cN, activeEffectSmartFilters as cO, activeSmartFilters as cP, addLayerEffect as cQ, addLayerFilter as cR, addSmartFilter as cS, adjustmentNodeAsLayer as cT, anchorPoint as cU, annotationBlend as cV, annotationOfShape as cW, annotationOfType as cX, applyImageProjectionToContext as cY, applyParams as cZ, applySmartFilters as c_, type ShapeGeometryInput as ca, type ShapeLayerData as cb, type ShapeLayerInfo as cc, type ShapeLayerInit as cd, type ShapeLineCap as ce, type ShapeLineJoin as cf, type ShapeOperation as cg, type ShapePaint as ch, type ShapePsdData as ci, type ShapeSelectionOptions as cj, type ShapeStroke as ck, type ShapeStrokeAlign as cl, type ShapeStrokeInput as cm, type SmartCanvas as cn, type SmartContents as co, type SmartDocument as cp, type SmartEffectResolver as cq, type SmartFilterKind as cr, type SmartFilterStack as cs, type SmartObjectInfo as ct, type SmartObjectLayer as cu, type SmartPlacement as cv, type SmartPsdData as cw, type SmartRenderOptions as cx, type StrokeInit as cy, type StrokeTool as cz, type AdjustmentParamsMap as d, fullSelection as d$, borderCoverage as d0, boxMean as d1, boxPointOf as d2, buildLayerMaskPlanes as d3, calculateCropDrag as d4, canvasToImagePoint as d5, checkImageEffectPlace as d6, clampCropToImage as d7, colorModePlanes as d8, colorRange as d9, describeTransform as dA, deserializeColorMode as dB, deserializeColorProfile as dC, deserializeEffects as dD, deserializeLayer as dE, deserializeLayers as dF, deserializePatterns as dG, deserializeSelection as dH, developFilter as dI, displayTransform as dJ, distanceTransform as dK, documentContents as dL, documentProfile as dM, duplicateLayer as dN, edgeWidth as dO, effectPixelsToSurface as dP, effectiveProof as dQ, ellipsePoints as dR, ellipseSelection as dS, encodeDeepSurface as dT, encodeSelectionRle as dU, encodeSurface as dV, expandCoverage as dW, exportPsd as dX, featherCoverage as dY, filterMaskCoverage as dZ, flipCorners as d_, combineSelections as da, componentPath as db, compositeDeep as dc, computeHistogram as dd, computeSelectionBounds as de, contentsBox as df, contentsSurface as dg, contractCoverage as dh, convertHex as di, convertSurfaceColors as dj, convertToSmartObject as dk, copySmartObject as dl, cornersFromMatrix as dm, coverageToByte as dn, createSelectionMask as dp, createShapeLayer as dq, createTypeLayer as dr, decodeDeepSurface as ds, decodeLayerChannel as dt, decodeLayerMask as du, decodeMergedImage as dv, decodePngDataUrl as dw, decodeSelectionRle as dx, defaultShapeName as dy, depthMaskAlpha as dz, type AdjustmentLayerMask as e, normalizeRect as e$, geometryHomography as e0, getAnnotationBounds as e1, getCropCursor as e2, getRotatedSize as e3, getViewportMetrics as e4, getViewportProjection as e5, globalImageCache as e6, greyMorphology as e7, groupLayers as e8, guidePlanes as e9, layerEffectsOf as eA, layerMaskCoverage as eB, layerMaskFromSelection as eC, layerMaskKey as eD, layerName as eE, layerTree as eF, layerTypeLabel as eG, liveComponent as eH, liveShapeSubpaths as eI, magicWand as eJ, mapCropHandle as eK, mapSubpaths as eL, matrixFromCorners as eM, matrixFromParams as eN, mergeShapeComponents as eO, migrateSerializedImageEditorState as eP, migrateToLayeredState as eQ, modifySelection as eR, moveLayer as eS, moveSmartFilter as eT, newContentsId as eU, newLayerId as eV, normalizeAngle as eW, normalizeFilter as eX, normalizeLayerMask as eY, normalizeLiveShape as eZ, normalizePlacement as e_, guidedFilterColor as ea, hasSurface as eb, hasWarp as ec, hashMaskContent as ed, histogramPath as ee, hitTestAnnotation as ef, hitTestCrop as eg, hueRange as eh, identityTransform as ei, imageToCanvasPoint as ej, importPsd as ek, instancesOf as el, invertSelection as em, isActiveFilter as en, isContentsDecoded as eo, isIdentityTransform as ep, isQuarterTurnSwapped as eq, isRenderedLayer as er, isRetouchTool as es, isSelectionEmpty as et, isSelectionMode as eu, isSmartSurfaceIncomplete as ev, isSpatialFilter as ew, isSrgb as ex, isTransformAnchor as ey, isValidWarp as ez, type AdjustmentLayerOf as f, runLayerFiltersFloat as f$, normalizeRefineEdgeParams as f0, normalizeShapePaint as f1, normalizeShapeStroke as f2, normalizeSmartFilter as f3, normalizeStoredAdjustments as f4, normalizeSubpaths as f5, normalizeText as f6, offsetLayer as f7, offsetShape as f8, offsetSmartObject as f9, refineCoverage as fA, refineEdgeHalo as fB, refineSelection as fC, removeLayer as fD, removeLayerEffect as fE, removeLayerFilter as fF, removeSmartFilter as fG, renderShape as fH, renderShapeRect as fI, renderSmartObject as fJ, renderText as fK, replaceContents as fL, replaceTextRange as fM, requireLayer as fN, requireOperation as fO, requireShapeLayer as fP, requireSmartObject as fQ, requireTypeLayer as fR, requireUnlocked as fS, rerender as fT, rerenderShape as fU, rerenderText as fV, resizePixels as fW, resizeSelection as fX, resolveExternalAssets as fY, resolveProfile as fZ, runLayerFilters as f_, parseBlend as fa, parseColor as fb, parseSelectionMode as fc, patchParagraphStyle as fd, patchTextStyle as fe, pixelLayerBounds as ff, pixelLayers as fg, placeContents as fh, placeLayer as fi, placementAt as fj, placementBounds as fk, placementGeometry as fl, polygonCoverage as fm, polygonSelection as fn, presetWarp as fo, previewStep as fp, profileBytes as fq, projectImagePoint as fr, projectImageRect as fs, projectMaskCoverage as ft, psdToLayers as fu, rasterContents as fv, rasterizeSmartObject as fw, readPsd as fx, rectSelection as fy, referencePoint as fz, ImageEditorController as g, selectionArea as g0, selectionFromCoverage as g1, selectionFromPixels as g2, selectionToCoverage as g3, selectionToPixels as g4, selectionValueAt as g5, serializeColorMode as g6, serializeColorProfile as g7, serializeContents as g8, serializeEffects as g9, toTextSpace as gA, toneRange as gB, transformHomography as gC, transformMap as gD, transformShapeComponents as gE, transformTypeLayer as gF, transformedBox as gG, transformedPoint as gH, typeAsPixelLayer as gI, typeFrame as gJ, typeFromAnnotation as gK, typeLayerName as gL, ungroupLayer as gM, unionRect as gN, unprojectCanvasPoint as gO, updateLayerEffect as gP, updateLayerFilter as gQ, updateLayerMaskProps as gR, updateShapeLayer as gS, updateSmartFilter as gT, updateTypeLayer as gU, withFilterMaskSurface as gV, withNewIds as gW, writePsd as gX, serializeLayer as ga, serializeLayers as gb, serializeLayersExternal as gc, serializePatterns as gd, serializeSelection as ge, setLayerEffects as gf, setLayerEffectsEnabled as gg, setLayerMask as gh, setLayerProperties as gi, setSmartFilterMask as gj, setSmartFiltersEnabled as gk, setSmartPlacement as gl, shapeAsPixelLayer as gm, shapeFromAnnotation as gn, shapeGeometryBounds as go, shapeLayers as gp, shapeOutline as gq, shapeRenderClip as gr, shiftCoverage as gs, smartObjectLayers as gt, smoothCoverage as gu, srgb8ToLab as gv, textMatrix as gw, textOutlines as gx, textRange as gy, toHex as gz, type SelectionMask as h, type SelectionMode as i, type ColorDistance as j, type ImagePoint as k, type ImageLayer as l, type CropBox as m, type RasterMask as n, type Annotation as o, type AdjustmentLayerNode as p, type AnnotationLayer as q, type ShapeLayer as r, type TypeLayer as s, type LayerFilter as t, type PixelLayer as u, type DevelopFilter as v, type ImageTransform as w, type ImageHistogram as x, type ImageProjection as y, type CompositorSources as z };
4735
+ export { type AspectRatio as $, type AdjustmentKind as A, LayerCompositor as B, type CurvePoint as C, type DepthMaskOptions as D, type LiveShapeKind as E, type TypeLayerInfo as F, type SmartFilter as G, type HueRange as H, type ImageEditorAssetStore as I, type LayerPlacement as J, type FreeTransformMode as K, type LevelsChannel as L, type FreeTransformResult as M, FreeTransformSession as N, type FreeTransformInit as O, type PsdExportResult as P, type TransformAnchor as Q, type RefineEdgeParams as R, type SerializedLayer as S, type TextEnv as T, type AIResultOptions as U, type AdjustmentLayerBase as V, type AdjustmentLayerInit as W, type AdjustmentLayerUpdate as X, type AnnotationPlacement as Y, type AnnotationType as Z, type ArrowAnnotation as _, type ImageAdjustments as a, type LayerMaskProps as a$, type BaseAnnotation as a0, type BlackWhiteParams as a1, type BlurFilter as a2, type CircleAnnotation as a3, type CloneSource as a4, type ColorBalanceParams as a5, type ColorBalanceTone as a6, type ColorRangeOptions as a7, type ColorRangeSample as a8, type ConvertOptions as a9, type HistogramChannel as aA, type HistoryEntryHandle as aB, type HueSaturationParams as aC, IMAGE_EDITOR_SCHEMA_VERSION as aD, IMAGE_EFFECT_PLACES as aE, type ImageAnnotation as aF, type ImageDimensions as aG, type ImageEditorAIHooks as aH, type ImageEditorFit as aI, type ImageEditorOptions as aJ, ImageEditorRenderer as aK, type ImageEditorState as aL, type ImageEditorTool as aM, type ImageEffectGenerator as aN, type ImageEffectPlace as aO, ImageEffectsEngine as aP, type ImageEffectsEngineOptions as aQ, type ImageLayerType as aR, type InpaintHook as aS, type InpaintOptions as aT, type InvertParams as aU, LAYERED_SCHEMA_VERSION as aV, LIVE_SHAPE_KINDS as aW, type LayerBase as aX, type LayerBlendMode as aY, type LayerFilterKind as aZ, type LayerLocation as a_, type CreateAnnotationPayload as aa, type CropHandle as ab, type CurvesParams as ac, DEFAULT_ADJUSTMENTS as ad, DEFAULT_DEPTH_MASK as ae, DEFAULT_MITER_LIMIT as af, DEFAULT_PROOF as ag, DEFAULT_REFINE_EDGE_PARAMS as ah, DEFAULT_TRANSFORM as ai, type DeserializeContext as aj, type DevelopSettings as ak, type DocumentColorMode as al, type DocumentColorProfile as am, EMPTY_DISTANCE as an, type EffectSmartFilter as ao, type ExportOptions as ap, FREE_TRANSFORM_CONTENTS as aq, FREE_TRANSFORM_MODES as ar, type FillOptions as as, type FreeTransformContent as at, type FreeTransformGeometry as au, type FreeTransformHost as av, type FreeTransformPreview as aw, GUIDED_FILTER_EPS as ax, type GroupLayer as ay, HISTOGRAM_BINS as az, type SerializedImageEditorState as b, type SerializedRasterMask as b$, LayerOperationError as b0, type LayerProperties as b1, type LayerSourcesHost as b2, type LayerTarget as b3, type LegacySerializedImageEditorState as b4, type LevelsParams as b5, type LineAnnotation as b6, type LiveShape as b7, type MagicWandOptions as b8, type MixerStrokeInit as b9, RETOUCH_TOOLS as bA, type RectAnnotation as bB, type RemoveBackgroundHook as bC, type RemoveBackgroundOptions as bD, type RenderOptions as bE, type RetouchStrokeInit as bF, type RetouchTool as bG, SELECTION_MODES as bH, SELECTION_MODIFY_OPS as bI, SHAPE_OPERATIONS as bJ, SHAPE_RENDER_MARGIN as bK, SMART_RENDER_MARGIN as bL, type SampleOptions as bM, type SelectionChannel as bN, type SelectionCommandOptions as bO, type SelectionModifyOp as bP, type SerializeContext as bQ, type SerializedAdjustmentLayer as bR, type SerializedAnnotationLayer as bS, type SerializedColorMode as bT, type SerializedColorProfile as bU, type SerializedDeepPixels as bV, type SerializedGroupLayer as bW, type SerializedLayerEffects as bX, type SerializedLayeredImageEditorState as bY, type SerializedPattern as bZ, type SerializedPixelLayer as b_, PARAGRAPH_STYLE_FIELDS as ba, PSD_BLEND_KEYS as bb, type PaintOptions as bc, type PaintStrokeResult as bd, PaintStrokeSession as be, type PenAnnotation as bf, type PhotoFilterParams as bg, type PixelBuffer as bh, type PixelLayerInit as bi, type PixelTransform as bj, type PosterizeParams as bk, type ProofSetup as bl, type PsdChannel as bm, type PsdExportInput as bn, type PsdFile as bo, type PsdHeader as bp, type PsdImportOptions as bq, type PsdImportResult as br, type PsdLayerMask as bs, type PsdLayerRecord as bt, type PsdLayerSummary as bu, type PsdRect as bv, type PsdResource as bw, type PsdSmartFilter as bx, type PsdTaggedBlock as by, type PsdTreeNode as bz, type AdjustmentLayer as c, blurFilter as c$, type SerializedSelection as c0, type SerializedShapeLayer as c1, type SerializedSmartContents as c2, type SerializedSmartFilter as c3, type SerializedSmartObjectLayer as c4, type SerializedTypeLayer as c5, type ShapeArrowhead as c6, type ShapeComponent as c7, type ShapeEnv as c8, type ShapeFillRule as c9, TEXT_RENDER_MARGIN as cA, TEXT_STYLE_FIELDS as cB, TONE_RANGE_PRESETS as cC, TRANSFORM_ANCHORS as cD, type TextAnnotation as cE, type TextLayerInit as cF, type ThresholdParams as cG, type ToneRangePreset as cH, type TransformParams as cI, type TransformReadout as cJ, type TypeLayerData as cK, type TypePsdData as cL, type VibranceParams as cM, type ViewportMetrics as cN, activeEffectSmartFilters as cO, activeSmartFilters as cP, addLayerEffect as cQ, addLayerFilter as cR, addSmartFilter as cS, adjustmentNodeAsLayer as cT, anchorPoint as cU, annotationBlend as cV, annotationOfShape as cW, annotationOfType as cX, applyImageProjectionToContext as cY, applyParams as cZ, applySmartFilters as c_, type ShapeGeometryInput as ca, type ShapeLayerData as cb, type ShapeLayerInfo as cc, type ShapeLayerInit as cd, type ShapeLineCap as ce, type ShapeLineJoin as cf, type ShapeOperation as cg, type ShapePaint as ch, type ShapePsdData as ci, type ShapeSelectionOptions as cj, type ShapeStroke as ck, type ShapeStrokeAlign as cl, type ShapeStrokeInput as cm, type SmartCanvas as cn, type SmartContents as co, type SmartDocument as cp, type SmartEffectResolver as cq, type SmartFilterKind as cr, type SmartFilterStack as cs, type SmartObjectInfo as ct, type SmartObjectLayer as cu, type SmartPlacement as cv, type SmartPsdData as cw, type SmartRenderOptions as cx, type StrokeInit as cy, type StrokeTool as cz, type AdjustmentParamsMap as d, flipCorners as d$, borderCoverage as d0, boxMean as d1, boxPointOf as d2, buildLayerMaskPlanes as d3, calculateCropDrag as d4, canvasToImagePoint as d5, checkImageEffectPlace as d6, clampCropToImage as d7, colorModePlanes as d8, colorRange as d9, depthMaskAlpha as dA, describeTransform as dB, deserializeColorMode as dC, deserializeColorProfile as dD, deserializeEffects as dE, deserializeLayer as dF, deserializeLayers as dG, deserializePatterns as dH, deserializeSelection as dI, developFilter as dJ, displayTransform as dK, distanceTransform as dL, documentContents as dM, documentProfile as dN, duplicateLayer as dO, edgeWidth as dP, effectPixelsToSurface as dQ, effectiveProof as dR, ellipsePoints as dS, ellipseSelection as dT, encodeDeepSurface as dU, encodeSelectionRle as dV, encodeSurface as dW, expandCoverage as dX, exportPsd as dY, featherCoverage as dZ, filterMaskCoverage as d_, combineSelections as da, componentPath as db, compositeDeep as dc, computeHistogram as dd, computeSelectionBounds as de, contentsBox as df, contentsSurface as dg, contractCoverage as dh, convertColorFields as di, convertHex as dj, convertSurfaceColors as dk, convertToSmartObject as dl, copySmartObject as dm, cornersFromMatrix as dn, coverageToByte as dp, createSelectionMask as dq, createShapeLayer as dr, createTypeLayer as ds, decodeDeepSurface as dt, decodeLayerChannel as du, decodeLayerMask as dv, decodeMergedImage as dw, decodePngDataUrl as dx, decodeSelectionRle as dy, defaultShapeName as dz, type AdjustmentLayerMask as e, normalizePlacement as e$, fullSelection as e0, geometryHomography as e1, getAnnotationBounds as e2, getCropCursor as e3, getRotatedSize as e4, getViewportMetrics as e5, getViewportProjection as e6, globalImageCache as e7, greyMorphology as e8, groupLayers as e9, isValidWarp as eA, layerEffectsOf as eB, layerMaskCoverage as eC, layerMaskFromSelection as eD, layerMaskKey as eE, layerName as eF, layerTree as eG, layerTypeLabel as eH, liveComponent as eI, liveShapeSubpaths as eJ, magicWand as eK, mapCropHandle as eL, mapSubpaths as eM, matrixFromCorners as eN, matrixFromParams as eO, mergeShapeComponents as eP, migrateSerializedImageEditorState as eQ, migrateToLayeredState as eR, modifySelection as eS, moveLayer as eT, moveSmartFilter as eU, newContentsId as eV, newLayerId as eW, normalizeAngle as eX, normalizeFilter as eY, normalizeLayerMask as eZ, normalizeLiveShape as e_, guidePlanes as ea, guidedFilterColor as eb, hasSurface as ec, hasWarp as ed, hashMaskContent as ee, histogramPath as ef, hitTestAnnotation as eg, hitTestCrop as eh, hueRange as ei, identityTransform as ej, imageToCanvasPoint as ek, importPsd as el, instancesOf as em, invertSelection as en, isActiveFilter as eo, isContentsDecoded as ep, isIdentityTransform as eq, isQuarterTurnSwapped as er, isRenderedLayer as es, isRetouchTool as et, isSelectionEmpty as eu, isSelectionMode as ev, isSmartSurfaceIncomplete as ew, isSpatialFilter as ex, isSrgb as ey, isTransformAnchor as ez, type AdjustmentLayerOf as f, runLayerFilters as f$, normalizeRect as f0, normalizeRefineEdgeParams as f1, normalizeShapePaint as f2, normalizeShapeStroke as f3, normalizeSmartFilter as f4, normalizeStoredAdjustments as f5, normalizeSubpaths as f6, normalizeText as f7, offsetLayer as f8, offsetShape as f9, referencePoint as fA, refineCoverage as fB, refineEdgeHalo as fC, refineSelection as fD, removeLayer as fE, removeLayerEffect as fF, removeLayerFilter as fG, removeSmartFilter as fH, renderShape as fI, renderShapeRect as fJ, renderSmartObject as fK, renderText as fL, replaceContents as fM, replaceTextRange as fN, requireLayer as fO, requireOperation as fP, requireShapeLayer as fQ, requireSmartObject as fR, requireTypeLayer as fS, requireUnlocked as fT, rerender as fU, rerenderShape as fV, rerenderText as fW, resizePixels as fX, resizeSelection as fY, resolveExternalAssets as fZ, resolveProfile as f_, offsetSmartObject as fa, parseBlend as fb, parseColor as fc, parseSelectionMode as fd, patchParagraphStyle as fe, patchTextStyle as ff, pixelLayerBounds as fg, pixelLayers as fh, placeContents as fi, placeLayer as fj, placementAt as fk, placementBounds as fl, placementGeometry as fm, polygonCoverage as fn, polygonSelection as fo, presetWarp as fp, previewStep as fq, profileBytes as fr, projectImagePoint as fs, projectImageRect as ft, projectMaskCoverage as fu, psdToLayers as fv, rasterContents as fw, rasterizeSmartObject as fx, readPsd as fy, rectSelection as fz, ImageEditorController as g, runLayerFiltersFloat as g0, selectionArea as g1, selectionFromCoverage as g2, selectionFromPixels as g3, selectionToCoverage as g4, selectionToPixels as g5, selectionValueAt as g6, serializeColorMode as g7, serializeColorProfile as g8, serializeContents as g9, toHex as gA, toTextSpace as gB, toneRange as gC, transformHomography as gD, transformMap as gE, transformShapeComponents as gF, transformTypeLayer as gG, transformedBox as gH, transformedPoint as gI, typeAsPixelLayer as gJ, typeFrame as gK, typeFromAnnotation as gL, typeLayerName as gM, ungroupLayer as gN, unionRect as gO, unprojectCanvasPoint as gP, updateLayerEffect as gQ, updateLayerFilter as gR, updateLayerMaskProps as gS, updateShapeLayer as gT, updateSmartFilter as gU, updateTypeLayer as gV, withFilterMaskSurface as gW, withNewIds as gX, writePsd as gY, serializeEffects as ga, serializeLayer as gb, serializeLayers as gc, serializeLayersExternal as gd, serializePatterns as ge, serializeSelection as gf, setLayerEffects as gg, setLayerEffectsEnabled as gh, setLayerMask as gi, setLayerProperties as gj, setSmartFilterMask as gk, setSmartFiltersEnabled as gl, setSmartPlacement as gm, shapeAsPixelLayer as gn, shapeFromAnnotation as go, shapeGeometryBounds as gp, shapeLayers as gq, shapeOutline as gr, shapeRenderClip as gs, shiftCoverage as gt, smartObjectLayers as gu, smoothCoverage as gv, srgb8ToLab as gw, textMatrix as gx, textOutlines as gy, textRange as gz, type SelectionMask as h, type SelectionMode as i, type ColorDistance as j, type ImagePoint as k, type ImageLayer as l, type CropBox as m, type RasterMask as n, type Annotation as o, type AdjustmentLayerNode as p, type AnnotationLayer as q, type ShapeLayer as r, type TypeLayer as s, type LayerFilter as t, type PixelLayer as u, type DevelopFilter as v, type ImageTransform as w, type ImageHistogram as x, type ImageProjection as y, type CompositorSources as z };
@@ -2,10 +2,10 @@ import { a2 as RasterLayerBase, a3 as RasterMask$1, a5 as RasterPixelLayer, H as
2
2
  import { c as PixelSurface, a as BlendMode, T as TiledSurface, R as RasterRect } from './surface-1MRncXpF.js';
3
3
  import { b as BuiltinProfileId, j as Intent, P as Profile, T as Transform, d as ColorSpace } from './builtin-CY97ppKM.js';
4
4
  import { A as AffineMatrix, Q as Quad, a as WarpMesh, V as Vec2, H as Homography } from './types-CwMPoRMU.js';
5
- import { B as BezierPath } from './bezier-DWI5MEkI.js';
6
- import { b as TextRun, P as ParagraphRun, T as TextShaper, c as ParagraphStyle, d as TextStyle, L as LaidFragment, W as WarpPreset, e as TextLayout } from './warp-q8FK5HHi.js';
5
+ import { B as BezierPath } from './bezier-DP4NnJp3.js';
6
+ import { b as TextRun, P as ParagraphRun, T as TextShaper, c as ParagraphStyle, d as TextStyle, L as LaidFragment, W as WarpPreset, e as TextLayout } from './warp-CIsO617e.js';
7
7
  import { e as EffectValue, a3 as VectorSubpath, v as EffectsSlot, E as EffectProvider, b as EffectPixels, f as EffectDescription, X as Vec2$1 } from './helpers-CPWcK504.js';
8
- import { B as BrushSettings, P as PaintSource, M as MixerSettings, a as MixerLoad, R as RetouchSettings, S as StrokeCoverage, b as MixerTarget, c as MixerStroke, d as RetouchApply, e as StrokePoint, f as RetouchPaint, C as CoverageMap, g as PaintTileTarget, h as StrokeApply } from './rand-DtazXGOB.js';
8
+ import { B as BrushSettings, P as PaintSource, M as MixerSettings, a as MixerLoad, R as RetouchSettings, S as StrokeCoverage, b as MixerTarget, c as MixerStroke, d as RetouchApply, e as StrokePoint, f as RetouchPaint, C as CoverageMap, g as PaintTileTarget, h as StrokeApply } from './rand-pQQ2sJTk.js';
9
9
 
10
10
  /**
11
11
  * A selection: one 8-bit coverage value per image pixel (0 = not selected, 255 = fully
@@ -665,6 +665,13 @@ type PixelTransform = (rgba: Uint8ClampedArray) => void;
665
665
  declare function displayTransform(doc: DocumentColorProfile | null | undefined, proof: ProofSetup | null | undefined): PixelTransform | null;
666
666
  /** A `#rrggbb` colour converted between two profiles. */
667
667
  declare function convertHex(hex: string, from: Profile, to: Profile, intent?: Intent, bpc?: boolean): string;
668
+ /**
669
+ * A copy of `value` (layer settings: effects, a shape's paint, text runs, an annotation) with
670
+ * every `#rrggbb` colour converted by `convert`. Colours are the string fields whose key ends in
671
+ * "color" (`color`, `strokeColor`, `highlightColor`, …), including gradient stops; text and other
672
+ * strings are left alone. Plain objects and arrays are copied only where something changed.
673
+ */
674
+ declare function convertColorFields<T>(value: T, convert: (hex: string) => string): T;
668
675
  /**
669
676
  * A layer surface with every pixel's colour converted through `t` (an RGB → RGB transform):
670
677
  * 8-bit tiles through its tables, 16-bit tiles at 16 bits, 32-bit (linear) tiles through the
@@ -4725,4 +4732,4 @@ interface PsdExportResult {
4725
4732
  /** Writes the prepared stack as PSD (or PSB) bytes. */
4726
4733
  declare function exportPsd(input: PsdExportInput): PsdExportResult;
4727
4734
 
4728
- export { type AspectRatio as $, type AdjustmentKind as A, LayerCompositor as B, type CurvePoint as C, type DepthMaskOptions as D, type LiveShapeKind as E, type TypeLayerInfo as F, type SmartFilter as G, type HueRange as H, type ImageEditorAssetStore as I, type LayerPlacement as J, type FreeTransformMode as K, type LevelsChannel as L, type FreeTransformResult as M, FreeTransformSession as N, type FreeTransformInit as O, type PsdExportResult as P, type TransformAnchor as Q, type RefineEdgeParams as R, type SerializedLayer as S, type TextEnv as T, type AIResultOptions as U, type AdjustmentLayerBase as V, type AdjustmentLayerInit as W, type AdjustmentLayerUpdate as X, type AnnotationPlacement as Y, type AnnotationType as Z, type ArrowAnnotation as _, type ImageAdjustments as a, type LayerMaskProps as a$, type BaseAnnotation as a0, type BlackWhiteParams as a1, type BlurFilter as a2, type CircleAnnotation as a3, type CloneSource as a4, type ColorBalanceParams as a5, type ColorBalanceTone as a6, type ColorRangeOptions as a7, type ColorRangeSample as a8, type ConvertOptions as a9, type HistogramChannel as aA, type HistoryEntryHandle as aB, type HueSaturationParams as aC, IMAGE_EDITOR_SCHEMA_VERSION as aD, IMAGE_EFFECT_PLACES as aE, type ImageAnnotation as aF, type ImageDimensions as aG, type ImageEditorAIHooks as aH, type ImageEditorFit as aI, type ImageEditorOptions as aJ, ImageEditorRenderer as aK, type ImageEditorState as aL, type ImageEditorTool as aM, type ImageEffectGenerator as aN, type ImageEffectPlace as aO, ImageEffectsEngine as aP, type ImageEffectsEngineOptions as aQ, type ImageLayerType as aR, type InpaintHook as aS, type InpaintOptions as aT, type InvertParams as aU, LAYERED_SCHEMA_VERSION as aV, LIVE_SHAPE_KINDS as aW, type LayerBase as aX, type LayerBlendMode as aY, type LayerFilterKind as aZ, type LayerLocation as a_, type CreateAnnotationPayload as aa, type CropHandle as ab, type CurvesParams as ac, DEFAULT_ADJUSTMENTS as ad, DEFAULT_DEPTH_MASK as ae, DEFAULT_MITER_LIMIT as af, DEFAULT_PROOF as ag, DEFAULT_REFINE_EDGE_PARAMS as ah, DEFAULT_TRANSFORM as ai, type DeserializeContext as aj, type DevelopSettings as ak, type DocumentColorMode as al, type DocumentColorProfile as am, EMPTY_DISTANCE as an, type EffectSmartFilter as ao, type ExportOptions as ap, FREE_TRANSFORM_CONTENTS as aq, FREE_TRANSFORM_MODES as ar, type FillOptions as as, type FreeTransformContent as at, type FreeTransformGeometry as au, type FreeTransformHost as av, type FreeTransformPreview as aw, GUIDED_FILTER_EPS as ax, type GroupLayer as ay, HISTOGRAM_BINS as az, type SerializedImageEditorState as b, type SerializedRasterMask as b$, LayerOperationError as b0, type LayerProperties as b1, type LayerSourcesHost as b2, type LayerTarget as b3, type LegacySerializedImageEditorState as b4, type LevelsParams as b5, type LineAnnotation as b6, type LiveShape as b7, type MagicWandOptions as b8, type MixerStrokeInit as b9, RETOUCH_TOOLS as bA, type RectAnnotation as bB, type RemoveBackgroundHook as bC, type RemoveBackgroundOptions as bD, type RenderOptions as bE, type RetouchStrokeInit as bF, type RetouchTool as bG, SELECTION_MODES as bH, SELECTION_MODIFY_OPS as bI, SHAPE_OPERATIONS as bJ, SHAPE_RENDER_MARGIN as bK, SMART_RENDER_MARGIN as bL, type SampleOptions as bM, type SelectionChannel as bN, type SelectionCommandOptions as bO, type SelectionModifyOp as bP, type SerializeContext as bQ, type SerializedAdjustmentLayer as bR, type SerializedAnnotationLayer as bS, type SerializedColorMode as bT, type SerializedColorProfile as bU, type SerializedDeepPixels as bV, type SerializedGroupLayer as bW, type SerializedLayerEffects as bX, type SerializedLayeredImageEditorState as bY, type SerializedPattern as bZ, type SerializedPixelLayer as b_, PARAGRAPH_STYLE_FIELDS as ba, PSD_BLEND_KEYS as bb, type PaintOptions as bc, type PaintStrokeResult as bd, PaintStrokeSession as be, type PenAnnotation as bf, type PhotoFilterParams as bg, type PixelBuffer as bh, type PixelLayerInit as bi, type PixelTransform as bj, type PosterizeParams as bk, type ProofSetup as bl, type PsdChannel as bm, type PsdExportInput as bn, type PsdFile as bo, type PsdHeader as bp, type PsdImportOptions as bq, type PsdImportResult as br, type PsdLayerMask as bs, type PsdLayerRecord as bt, type PsdLayerSummary as bu, type PsdRect as bv, type PsdResource as bw, type PsdSmartFilter as bx, type PsdTaggedBlock as by, type PsdTreeNode as bz, type AdjustmentLayer as c, blurFilter as c$, type SerializedSelection as c0, type SerializedShapeLayer as c1, type SerializedSmartContents as c2, type SerializedSmartFilter as c3, type SerializedSmartObjectLayer as c4, type SerializedTypeLayer as c5, type ShapeArrowhead as c6, type ShapeComponent as c7, type ShapeEnv as c8, type ShapeFillRule as c9, TEXT_RENDER_MARGIN as cA, TEXT_STYLE_FIELDS as cB, TONE_RANGE_PRESETS as cC, TRANSFORM_ANCHORS as cD, type TextAnnotation as cE, type TextLayerInit as cF, type ThresholdParams as cG, type ToneRangePreset as cH, type TransformParams as cI, type TransformReadout as cJ, type TypeLayerData as cK, type TypePsdData as cL, type VibranceParams as cM, type ViewportMetrics as cN, activeEffectSmartFilters as cO, activeSmartFilters as cP, addLayerEffect as cQ, addLayerFilter as cR, addSmartFilter as cS, adjustmentNodeAsLayer as cT, anchorPoint as cU, annotationBlend as cV, annotationOfShape as cW, annotationOfType as cX, applyImageProjectionToContext as cY, applyParams as cZ, applySmartFilters as c_, type ShapeGeometryInput as ca, type ShapeLayerData as cb, type ShapeLayerInfo as cc, type ShapeLayerInit as cd, type ShapeLineCap as ce, type ShapeLineJoin as cf, type ShapeOperation as cg, type ShapePaint as ch, type ShapePsdData as ci, type ShapeSelectionOptions as cj, type ShapeStroke as ck, type ShapeStrokeAlign as cl, type ShapeStrokeInput as cm, type SmartCanvas as cn, type SmartContents as co, type SmartDocument as cp, type SmartEffectResolver as cq, type SmartFilterKind as cr, type SmartFilterStack as cs, type SmartObjectInfo as ct, type SmartObjectLayer as cu, type SmartPlacement as cv, type SmartPsdData as cw, type SmartRenderOptions as cx, type StrokeInit as cy, type StrokeTool as cz, type AdjustmentParamsMap as d, fullSelection as d$, borderCoverage as d0, boxMean as d1, boxPointOf as d2, buildLayerMaskPlanes as d3, calculateCropDrag as d4, canvasToImagePoint as d5, checkImageEffectPlace as d6, clampCropToImage as d7, colorModePlanes as d8, colorRange as d9, describeTransform as dA, deserializeColorMode as dB, deserializeColorProfile as dC, deserializeEffects as dD, deserializeLayer as dE, deserializeLayers as dF, deserializePatterns as dG, deserializeSelection as dH, developFilter as dI, displayTransform as dJ, distanceTransform as dK, documentContents as dL, documentProfile as dM, duplicateLayer as dN, edgeWidth as dO, effectPixelsToSurface as dP, effectiveProof as dQ, ellipsePoints as dR, ellipseSelection as dS, encodeDeepSurface as dT, encodeSelectionRle as dU, encodeSurface as dV, expandCoverage as dW, exportPsd as dX, featherCoverage as dY, filterMaskCoverage as dZ, flipCorners as d_, combineSelections as da, componentPath as db, compositeDeep as dc, computeHistogram as dd, computeSelectionBounds as de, contentsBox as df, contentsSurface as dg, contractCoverage as dh, convertHex as di, convertSurfaceColors as dj, convertToSmartObject as dk, copySmartObject as dl, cornersFromMatrix as dm, coverageToByte as dn, createSelectionMask as dp, createShapeLayer as dq, createTypeLayer as dr, decodeDeepSurface as ds, decodeLayerChannel as dt, decodeLayerMask as du, decodeMergedImage as dv, decodePngDataUrl as dw, decodeSelectionRle as dx, defaultShapeName as dy, depthMaskAlpha as dz, type AdjustmentLayerMask as e, normalizeRect as e$, geometryHomography as e0, getAnnotationBounds as e1, getCropCursor as e2, getRotatedSize as e3, getViewportMetrics as e4, getViewportProjection as e5, globalImageCache as e6, greyMorphology as e7, groupLayers as e8, guidePlanes as e9, layerEffectsOf as eA, layerMaskCoverage as eB, layerMaskFromSelection as eC, layerMaskKey as eD, layerName as eE, layerTree as eF, layerTypeLabel as eG, liveComponent as eH, liveShapeSubpaths as eI, magicWand as eJ, mapCropHandle as eK, mapSubpaths as eL, matrixFromCorners as eM, matrixFromParams as eN, mergeShapeComponents as eO, migrateSerializedImageEditorState as eP, migrateToLayeredState as eQ, modifySelection as eR, moveLayer as eS, moveSmartFilter as eT, newContentsId as eU, newLayerId as eV, normalizeAngle as eW, normalizeFilter as eX, normalizeLayerMask as eY, normalizeLiveShape as eZ, normalizePlacement as e_, guidedFilterColor as ea, hasSurface as eb, hasWarp as ec, hashMaskContent as ed, histogramPath as ee, hitTestAnnotation as ef, hitTestCrop as eg, hueRange as eh, identityTransform as ei, imageToCanvasPoint as ej, importPsd as ek, instancesOf as el, invertSelection as em, isActiveFilter as en, isContentsDecoded as eo, isIdentityTransform as ep, isQuarterTurnSwapped as eq, isRenderedLayer as er, isRetouchTool as es, isSelectionEmpty as et, isSelectionMode as eu, isSmartSurfaceIncomplete as ev, isSpatialFilter as ew, isSrgb as ex, isTransformAnchor as ey, isValidWarp as ez, type AdjustmentLayerOf as f, runLayerFiltersFloat as f$, normalizeRefineEdgeParams as f0, normalizeShapePaint as f1, normalizeShapeStroke as f2, normalizeSmartFilter as f3, normalizeStoredAdjustments as f4, normalizeSubpaths as f5, normalizeText as f6, offsetLayer as f7, offsetShape as f8, offsetSmartObject as f9, refineCoverage as fA, refineEdgeHalo as fB, refineSelection as fC, removeLayer as fD, removeLayerEffect as fE, removeLayerFilter as fF, removeSmartFilter as fG, renderShape as fH, renderShapeRect as fI, renderSmartObject as fJ, renderText as fK, replaceContents as fL, replaceTextRange as fM, requireLayer as fN, requireOperation as fO, requireShapeLayer as fP, requireSmartObject as fQ, requireTypeLayer as fR, requireUnlocked as fS, rerender as fT, rerenderShape as fU, rerenderText as fV, resizePixels as fW, resizeSelection as fX, resolveExternalAssets as fY, resolveProfile as fZ, runLayerFilters as f_, parseBlend as fa, parseColor as fb, parseSelectionMode as fc, patchParagraphStyle as fd, patchTextStyle as fe, pixelLayerBounds as ff, pixelLayers as fg, placeContents as fh, placeLayer as fi, placementAt as fj, placementBounds as fk, placementGeometry as fl, polygonCoverage as fm, polygonSelection as fn, presetWarp as fo, previewStep as fp, profileBytes as fq, projectImagePoint as fr, projectImageRect as fs, projectMaskCoverage as ft, psdToLayers as fu, rasterContents as fv, rasterizeSmartObject as fw, readPsd as fx, rectSelection as fy, referencePoint as fz, ImageEditorController as g, selectionArea as g0, selectionFromCoverage as g1, selectionFromPixels as g2, selectionToCoverage as g3, selectionToPixels as g4, selectionValueAt as g5, serializeColorMode as g6, serializeColorProfile as g7, serializeContents as g8, serializeEffects as g9, toTextSpace as gA, toneRange as gB, transformHomography as gC, transformMap as gD, transformShapeComponents as gE, transformTypeLayer as gF, transformedBox as gG, transformedPoint as gH, typeAsPixelLayer as gI, typeFrame as gJ, typeFromAnnotation as gK, typeLayerName as gL, ungroupLayer as gM, unionRect as gN, unprojectCanvasPoint as gO, updateLayerEffect as gP, updateLayerFilter as gQ, updateLayerMaskProps as gR, updateShapeLayer as gS, updateSmartFilter as gT, updateTypeLayer as gU, withFilterMaskSurface as gV, withNewIds as gW, writePsd as gX, serializeLayer as ga, serializeLayers as gb, serializeLayersExternal as gc, serializePatterns as gd, serializeSelection as ge, setLayerEffects as gf, setLayerEffectsEnabled as gg, setLayerMask as gh, setLayerProperties as gi, setSmartFilterMask as gj, setSmartFiltersEnabled as gk, setSmartPlacement as gl, shapeAsPixelLayer as gm, shapeFromAnnotation as gn, shapeGeometryBounds as go, shapeLayers as gp, shapeOutline as gq, shapeRenderClip as gr, shiftCoverage as gs, smartObjectLayers as gt, smoothCoverage as gu, srgb8ToLab as gv, textMatrix as gw, textOutlines as gx, textRange as gy, toHex as gz, type SelectionMask as h, type SelectionMode as i, type ColorDistance as j, type ImagePoint as k, type ImageLayer as l, type CropBox as m, type RasterMask as n, type Annotation as o, type AdjustmentLayerNode as p, type AnnotationLayer as q, type ShapeLayer as r, type TypeLayer as s, type LayerFilter as t, type PixelLayer as u, type DevelopFilter as v, type ImageTransform as w, type ImageHistogram as x, type ImageProjection as y, type CompositorSources as z };
4735
+ export { type AspectRatio as $, type AdjustmentKind as A, LayerCompositor as B, type CurvePoint as C, type DepthMaskOptions as D, type LiveShapeKind as E, type TypeLayerInfo as F, type SmartFilter as G, type HueRange as H, type ImageEditorAssetStore as I, type LayerPlacement as J, type FreeTransformMode as K, type LevelsChannel as L, type FreeTransformResult as M, FreeTransformSession as N, type FreeTransformInit as O, type PsdExportResult as P, type TransformAnchor as Q, type RefineEdgeParams as R, type SerializedLayer as S, type TextEnv as T, type AIResultOptions as U, type AdjustmentLayerBase as V, type AdjustmentLayerInit as W, type AdjustmentLayerUpdate as X, type AnnotationPlacement as Y, type AnnotationType as Z, type ArrowAnnotation as _, type ImageAdjustments as a, type LayerMaskProps as a$, type BaseAnnotation as a0, type BlackWhiteParams as a1, type BlurFilter as a2, type CircleAnnotation as a3, type CloneSource as a4, type ColorBalanceParams as a5, type ColorBalanceTone as a6, type ColorRangeOptions as a7, type ColorRangeSample as a8, type ConvertOptions as a9, type HistogramChannel as aA, type HistoryEntryHandle as aB, type HueSaturationParams as aC, IMAGE_EDITOR_SCHEMA_VERSION as aD, IMAGE_EFFECT_PLACES as aE, type ImageAnnotation as aF, type ImageDimensions as aG, type ImageEditorAIHooks as aH, type ImageEditorFit as aI, type ImageEditorOptions as aJ, ImageEditorRenderer as aK, type ImageEditorState as aL, type ImageEditorTool as aM, type ImageEffectGenerator as aN, type ImageEffectPlace as aO, ImageEffectsEngine as aP, type ImageEffectsEngineOptions as aQ, type ImageLayerType as aR, type InpaintHook as aS, type InpaintOptions as aT, type InvertParams as aU, LAYERED_SCHEMA_VERSION as aV, LIVE_SHAPE_KINDS as aW, type LayerBase as aX, type LayerBlendMode as aY, type LayerFilterKind as aZ, type LayerLocation as a_, type CreateAnnotationPayload as aa, type CropHandle as ab, type CurvesParams as ac, DEFAULT_ADJUSTMENTS as ad, DEFAULT_DEPTH_MASK as ae, DEFAULT_MITER_LIMIT as af, DEFAULT_PROOF as ag, DEFAULT_REFINE_EDGE_PARAMS as ah, DEFAULT_TRANSFORM as ai, type DeserializeContext as aj, type DevelopSettings as ak, type DocumentColorMode as al, type DocumentColorProfile as am, EMPTY_DISTANCE as an, type EffectSmartFilter as ao, type ExportOptions as ap, FREE_TRANSFORM_CONTENTS as aq, FREE_TRANSFORM_MODES as ar, type FillOptions as as, type FreeTransformContent as at, type FreeTransformGeometry as au, type FreeTransformHost as av, type FreeTransformPreview as aw, GUIDED_FILTER_EPS as ax, type GroupLayer as ay, HISTOGRAM_BINS as az, type SerializedImageEditorState as b, type SerializedRasterMask as b$, LayerOperationError as b0, type LayerProperties as b1, type LayerSourcesHost as b2, type LayerTarget as b3, type LegacySerializedImageEditorState as b4, type LevelsParams as b5, type LineAnnotation as b6, type LiveShape as b7, type MagicWandOptions as b8, type MixerStrokeInit as b9, RETOUCH_TOOLS as bA, type RectAnnotation as bB, type RemoveBackgroundHook as bC, type RemoveBackgroundOptions as bD, type RenderOptions as bE, type RetouchStrokeInit as bF, type RetouchTool as bG, SELECTION_MODES as bH, SELECTION_MODIFY_OPS as bI, SHAPE_OPERATIONS as bJ, SHAPE_RENDER_MARGIN as bK, SMART_RENDER_MARGIN as bL, type SampleOptions as bM, type SelectionChannel as bN, type SelectionCommandOptions as bO, type SelectionModifyOp as bP, type SerializeContext as bQ, type SerializedAdjustmentLayer as bR, type SerializedAnnotationLayer as bS, type SerializedColorMode as bT, type SerializedColorProfile as bU, type SerializedDeepPixels as bV, type SerializedGroupLayer as bW, type SerializedLayerEffects as bX, type SerializedLayeredImageEditorState as bY, type SerializedPattern as bZ, type SerializedPixelLayer as b_, PARAGRAPH_STYLE_FIELDS as ba, PSD_BLEND_KEYS as bb, type PaintOptions as bc, type PaintStrokeResult as bd, PaintStrokeSession as be, type PenAnnotation as bf, type PhotoFilterParams as bg, type PixelBuffer as bh, type PixelLayerInit as bi, type PixelTransform as bj, type PosterizeParams as bk, type ProofSetup as bl, type PsdChannel as bm, type PsdExportInput as bn, type PsdFile as bo, type PsdHeader as bp, type PsdImportOptions as bq, type PsdImportResult as br, type PsdLayerMask as bs, type PsdLayerRecord as bt, type PsdLayerSummary as bu, type PsdRect as bv, type PsdResource as bw, type PsdSmartFilter as bx, type PsdTaggedBlock as by, type PsdTreeNode as bz, type AdjustmentLayer as c, blurFilter as c$, type SerializedSelection as c0, type SerializedShapeLayer as c1, type SerializedSmartContents as c2, type SerializedSmartFilter as c3, type SerializedSmartObjectLayer as c4, type SerializedTypeLayer as c5, type ShapeArrowhead as c6, type ShapeComponent as c7, type ShapeEnv as c8, type ShapeFillRule as c9, TEXT_RENDER_MARGIN as cA, TEXT_STYLE_FIELDS as cB, TONE_RANGE_PRESETS as cC, TRANSFORM_ANCHORS as cD, type TextAnnotation as cE, type TextLayerInit as cF, type ThresholdParams as cG, type ToneRangePreset as cH, type TransformParams as cI, type TransformReadout as cJ, type TypeLayerData as cK, type TypePsdData as cL, type VibranceParams as cM, type ViewportMetrics as cN, activeEffectSmartFilters as cO, activeSmartFilters as cP, addLayerEffect as cQ, addLayerFilter as cR, addSmartFilter as cS, adjustmentNodeAsLayer as cT, anchorPoint as cU, annotationBlend as cV, annotationOfShape as cW, annotationOfType as cX, applyImageProjectionToContext as cY, applyParams as cZ, applySmartFilters as c_, type ShapeGeometryInput as ca, type ShapeLayerData as cb, type ShapeLayerInfo as cc, type ShapeLayerInit as cd, type ShapeLineCap as ce, type ShapeLineJoin as cf, type ShapeOperation as cg, type ShapePaint as ch, type ShapePsdData as ci, type ShapeSelectionOptions as cj, type ShapeStroke as ck, type ShapeStrokeAlign as cl, type ShapeStrokeInput as cm, type SmartCanvas as cn, type SmartContents as co, type SmartDocument as cp, type SmartEffectResolver as cq, type SmartFilterKind as cr, type SmartFilterStack as cs, type SmartObjectInfo as ct, type SmartObjectLayer as cu, type SmartPlacement as cv, type SmartPsdData as cw, type SmartRenderOptions as cx, type StrokeInit as cy, type StrokeTool as cz, type AdjustmentParamsMap as d, flipCorners as d$, borderCoverage as d0, boxMean as d1, boxPointOf as d2, buildLayerMaskPlanes as d3, calculateCropDrag as d4, canvasToImagePoint as d5, checkImageEffectPlace as d6, clampCropToImage as d7, colorModePlanes as d8, colorRange as d9, depthMaskAlpha as dA, describeTransform as dB, deserializeColorMode as dC, deserializeColorProfile as dD, deserializeEffects as dE, deserializeLayer as dF, deserializeLayers as dG, deserializePatterns as dH, deserializeSelection as dI, developFilter as dJ, displayTransform as dK, distanceTransform as dL, documentContents as dM, documentProfile as dN, duplicateLayer as dO, edgeWidth as dP, effectPixelsToSurface as dQ, effectiveProof as dR, ellipsePoints as dS, ellipseSelection as dT, encodeDeepSurface as dU, encodeSelectionRle as dV, encodeSurface as dW, expandCoverage as dX, exportPsd as dY, featherCoverage as dZ, filterMaskCoverage as d_, combineSelections as da, componentPath as db, compositeDeep as dc, computeHistogram as dd, computeSelectionBounds as de, contentsBox as df, contentsSurface as dg, contractCoverage as dh, convertColorFields as di, convertHex as dj, convertSurfaceColors as dk, convertToSmartObject as dl, copySmartObject as dm, cornersFromMatrix as dn, coverageToByte as dp, createSelectionMask as dq, createShapeLayer as dr, createTypeLayer as ds, decodeDeepSurface as dt, decodeLayerChannel as du, decodeLayerMask as dv, decodeMergedImage as dw, decodePngDataUrl as dx, decodeSelectionRle as dy, defaultShapeName as dz, type AdjustmentLayerMask as e, normalizePlacement as e$, fullSelection as e0, geometryHomography as e1, getAnnotationBounds as e2, getCropCursor as e3, getRotatedSize as e4, getViewportMetrics as e5, getViewportProjection as e6, globalImageCache as e7, greyMorphology as e8, groupLayers as e9, isValidWarp as eA, layerEffectsOf as eB, layerMaskCoverage as eC, layerMaskFromSelection as eD, layerMaskKey as eE, layerName as eF, layerTree as eG, layerTypeLabel as eH, liveComponent as eI, liveShapeSubpaths as eJ, magicWand as eK, mapCropHandle as eL, mapSubpaths as eM, matrixFromCorners as eN, matrixFromParams as eO, mergeShapeComponents as eP, migrateSerializedImageEditorState as eQ, migrateToLayeredState as eR, modifySelection as eS, moveLayer as eT, moveSmartFilter as eU, newContentsId as eV, newLayerId as eW, normalizeAngle as eX, normalizeFilter as eY, normalizeLayerMask as eZ, normalizeLiveShape as e_, guidePlanes as ea, guidedFilterColor as eb, hasSurface as ec, hasWarp as ed, hashMaskContent as ee, histogramPath as ef, hitTestAnnotation as eg, hitTestCrop as eh, hueRange as ei, identityTransform as ej, imageToCanvasPoint as ek, importPsd as el, instancesOf as em, invertSelection as en, isActiveFilter as eo, isContentsDecoded as ep, isIdentityTransform as eq, isQuarterTurnSwapped as er, isRenderedLayer as es, isRetouchTool as et, isSelectionEmpty as eu, isSelectionMode as ev, isSmartSurfaceIncomplete as ew, isSpatialFilter as ex, isSrgb as ey, isTransformAnchor as ez, type AdjustmentLayerOf as f, runLayerFilters as f$, normalizeRect as f0, normalizeRefineEdgeParams as f1, normalizeShapePaint as f2, normalizeShapeStroke as f3, normalizeSmartFilter as f4, normalizeStoredAdjustments as f5, normalizeSubpaths as f6, normalizeText as f7, offsetLayer as f8, offsetShape as f9, referencePoint as fA, refineCoverage as fB, refineEdgeHalo as fC, refineSelection as fD, removeLayer as fE, removeLayerEffect as fF, removeLayerFilter as fG, removeSmartFilter as fH, renderShape as fI, renderShapeRect as fJ, renderSmartObject as fK, renderText as fL, replaceContents as fM, replaceTextRange as fN, requireLayer as fO, requireOperation as fP, requireShapeLayer as fQ, requireSmartObject as fR, requireTypeLayer as fS, requireUnlocked as fT, rerender as fU, rerenderShape as fV, rerenderText as fW, resizePixels as fX, resizeSelection as fY, resolveExternalAssets as fZ, resolveProfile as f_, offsetSmartObject as fa, parseBlend as fb, parseColor as fc, parseSelectionMode as fd, patchParagraphStyle as fe, patchTextStyle as ff, pixelLayerBounds as fg, pixelLayers as fh, placeContents as fi, placeLayer as fj, placementAt as fk, placementBounds as fl, placementGeometry as fm, polygonCoverage as fn, polygonSelection as fo, presetWarp as fp, previewStep as fq, profileBytes as fr, projectImagePoint as fs, projectImageRect as ft, projectMaskCoverage as fu, psdToLayers as fv, rasterContents as fw, rasterizeSmartObject as fx, readPsd as fy, rectSelection as fz, ImageEditorController as g, runLayerFiltersFloat as g0, selectionArea as g1, selectionFromCoverage as g2, selectionFromPixels as g3, selectionToCoverage as g4, selectionToPixels as g5, selectionValueAt as g6, serializeColorMode as g7, serializeColorProfile as g8, serializeContents as g9, toHex as gA, toTextSpace as gB, toneRange as gC, transformHomography as gD, transformMap as gE, transformShapeComponents as gF, transformTypeLayer as gG, transformedBox as gH, transformedPoint as gI, typeAsPixelLayer as gJ, typeFrame as gK, typeFromAnnotation as gL, typeLayerName as gM, ungroupLayer as gN, unionRect as gO, unprojectCanvasPoint as gP, updateLayerEffect as gQ, updateLayerFilter as gR, updateLayerMaskProps as gS, updateShapeLayer as gT, updateSmartFilter as gU, updateTypeLayer as gV, withFilterMaskSurface as gW, withNewIds as gX, writePsd as gY, serializeEffects as ga, serializeLayer as gb, serializeLayers as gc, serializeLayersExternal as gd, serializePatterns as ge, serializeSelection as gf, setLayerEffects as gg, setLayerEffectsEnabled as gh, setLayerMask as gi, setLayerProperties as gj, setSmartFilterMask as gk, setSmartFiltersEnabled as gl, setSmartPlacement as gm, shapeAsPixelLayer as gn, shapeFromAnnotation as go, shapeGeometryBounds as gp, shapeLayers as gq, shapeOutline as gr, shapeRenderClip as gs, shiftCoverage as gt, smartObjectLayers as gu, smoothCoverage as gv, srgb8ToLab as gw, textMatrix as gx, textOutlines as gy, textRange as gz, type SelectionMask as h, type SelectionMode as i, type ColorDistance as j, type ImagePoint as k, type ImageLayer as l, type CropBox as m, type RasterMask as n, type Annotation as o, type AdjustmentLayerNode as p, type AnnotationLayer as q, type ShapeLayer as r, type TypeLayer as s, type LayerFilter as t, type PixelLayer as u, type DevelopFilter as v, type ImageTransform as w, type ImageHistogram as x, type ImageProjection as y, type CompositorSources as z };