@pixerate/editor 0.132.0 → 0.134.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 (90) hide show
  1. package/dist/animation-editor/index.cjs +55 -55
  2. package/dist/animation-editor/index.d.cts +4 -4
  3. package/dist/animation-editor/index.d.ts +4 -4
  4. package/dist/animation-editor/index.js +2 -2
  5. package/dist/{bezier-oCBfrGDG.d.cts → bezier-J8i4uqSH.d.cts} +1 -1
  6. package/dist/{bezier-0IHDCvv_.d.ts → bezier-lNEOp0Jx.d.ts} +1 -1
  7. package/dist/canvas/index.d.cts +7 -7
  8. package/dist/canvas/index.d.ts +7 -7
  9. package/dist/{chunk-MZXQTKUM.cjs → chunk-24ATT2PE.cjs} +10 -6
  10. package/dist/chunk-24ATT2PE.cjs.map +1 -0
  11. package/dist/{chunk-AHUYMDYW.js → chunk-2HC4DRF4.js} +10 -6
  12. package/dist/chunk-2HC4DRF4.js.map +1 -0
  13. package/dist/{chunk-YRZ6NVE3.js → chunk-6CTZAGZ2.js} +235 -4
  14. package/dist/chunk-6CTZAGZ2.js.map +1 -0
  15. package/dist/{chunk-ECVI5QRE.js → chunk-7RJ6P7MI.js} +2 -2
  16. package/dist/{chunk-G5FX56KX.js → chunk-ESIWZMMK.js} +51 -11
  17. package/dist/chunk-ESIWZMMK.js.map +1 -0
  18. package/dist/{chunk-IEYXYMRQ.js → chunk-HHTCDFZC.js} +99 -5
  19. package/dist/chunk-HHTCDFZC.js.map +1 -0
  20. package/dist/{chunk-W6M7C7R3.cjs → chunk-NVTHUPJ6.cjs} +236 -5
  21. package/dist/chunk-NVTHUPJ6.cjs.map +1 -0
  22. package/dist/{chunk-OYPJGGF3.cjs → chunk-T6TV6HY6.cjs} +36 -36
  23. package/dist/{chunk-OYPJGGF3.cjs.map → chunk-T6TV6HY6.cjs.map} +1 -1
  24. package/dist/{chunk-55UEZIU4.cjs → chunk-YAFS2QFZ.cjs} +231 -191
  25. package/dist/chunk-YAFS2QFZ.cjs.map +1 -0
  26. package/dist/{chunk-YYJKIESX.cjs → chunk-Z2H7KECK.cjs} +153 -59
  27. package/dist/chunk-Z2H7KECK.cjs.map +1 -0
  28. package/dist/effects/index.d.cts +4 -4
  29. package/dist/effects/index.d.ts +4 -4
  30. package/dist/{export-D-gkjBkB.d.cts → export-BGdT02aL.d.cts} +10 -10
  31. package/dist/{export-CfAogLEr.d.cts → export-DMeG6E06.d.ts} +1 -1
  32. package/dist/{export-ByJvAvR7.d.ts → export-Dng22YB8.d.ts} +10 -10
  33. package/dist/{export-Crl82sbE.d.ts → export-KzubBKo7.d.cts} +1 -1
  34. package/dist/{helpers-BCd2-PAR.d.ts → helpers-Coa4e2j_.d.ts} +35 -1
  35. package/dist/{helpers-CoIeXQnW.d.cts → helpers-DHl28yLO.d.cts} +35 -1
  36. package/dist/image-editor/index.cjs +983 -874
  37. package/dist/image-editor/index.cjs.map +1 -1
  38. package/dist/image-editor/index.d.cts +32 -13
  39. package/dist/image-editor/index.d.ts +32 -13
  40. package/dist/image-editor/index.js +124 -15
  41. package/dist/image-editor/index.js.map +1 -1
  42. package/dist/{opentype-BDahNRTe.d.cts → opentype-BWR7Qv8W.d.cts} +1 -1
  43. package/dist/{opentype-BQFEvy-t.d.ts → opentype-Dfcx6wFx.d.ts} +1 -1
  44. package/dist/paint/index.cjs +8 -2
  45. package/dist/paint/index.cjs.map +1 -1
  46. package/dist/paint/index.d.cts +14 -3
  47. package/dist/paint/index.d.ts +14 -3
  48. package/dist/paint/index.js +7 -1
  49. package/dist/paint-editor/index.cjs +78 -78
  50. package/dist/paint-editor/index.d.cts +7 -7
  51. package/dist/paint-editor/index.d.ts +7 -7
  52. package/dist/paint-editor/index.js +3 -3
  53. package/dist/{pathfinder-DaVdT8jq.d.ts → pathfinder-Celbi3e6.d.ts} +1 -1
  54. package/dist/{pathfinder-01ZgAwqV.d.cts → pathfinder-D8KQ6blQ.d.cts} +1 -1
  55. package/dist/{pool-D2A3WTt9.d.ts → pool-8JZGWHvR.d.ts} +1 -1
  56. package/dist/{pool-D6a45MoE.d.cts → pool-BfuxBKTd.d.cts} +1 -1
  57. package/dist/{rand-pQQ2sJTk.d.ts → rand-BaqEOs1Y.d.ts} +17 -4
  58. package/dist/{rand-DTXAssW1.d.cts → rand-DdpFzCo6.d.cts} +17 -4
  59. package/dist/raster/index.cjs +2 -2
  60. package/dist/raster/index.d.cts +4 -4
  61. package/dist/raster/index.d.ts +4 -4
  62. package/dist/raster/index.js +1 -1
  63. package/dist/{svg-DELNVerw.d.ts → svg-CxxqG3_W.d.ts} +2 -2
  64. package/dist/{svg-CcDz7Zq2.d.cts → svg-pwXWq6s2.d.cts} +2 -2
  65. package/dist/{tools-BFvkFnRj.d.cts → tools-3EBjR91b.d.cts} +1 -1
  66. package/dist/{tools-D7ws-OKL.d.ts → tools-y1M6O3UT.d.ts} +1 -1
  67. package/dist/vector/index.cjs +1642 -1046
  68. package/dist/vector/index.cjs.map +1 -1
  69. package/dist/vector/index.d.cts +275 -93
  70. package/dist/vector/index.d.ts +275 -93
  71. package/dist/vector/index.js +607 -11
  72. package/dist/vector/index.js.map +1 -1
  73. package/dist/video-editor/index.d.cts +4 -4
  74. package/dist/video-editor/index.d.ts +4 -4
  75. package/dist/{warp-2N9wkOkL.d.ts → warp-C1gwu2G_.d.ts} +1 -1
  76. package/dist/{warp-DErXW5rz.d.cts → warp-Ceqdz7kj.d.cts} +1 -1
  77. package/package.json +1 -1
  78. package/skills/pixerate-image-editor/SKILL.md +1 -1
  79. package/skills/pixerate-image-editor/references/retouching.md +3 -2
  80. package/skills/pixerate-vector/SKILL.md +12 -53
  81. package/skills/pixerate-vector/references/pitfalls.md +62 -0
  82. package/dist/chunk-55UEZIU4.cjs.map +0 -1
  83. package/dist/chunk-AHUYMDYW.js.map +0 -1
  84. package/dist/chunk-G5FX56KX.js.map +0 -1
  85. package/dist/chunk-IEYXYMRQ.js.map +0 -1
  86. package/dist/chunk-MZXQTKUM.cjs.map +0 -1
  87. package/dist/chunk-W6M7C7R3.cjs.map +0 -1
  88. package/dist/chunk-YRZ6NVE3.js.map +0 -1
  89. package/dist/chunk-YYJKIESX.cjs.map +0 -1
  90. /package/dist/{chunk-ECVI5QRE.js.map → chunk-7RJ6P7MI.js.map} +0 -0
@@ -1,9 +1,9 @@
1
- import { E as EffectProvider, d as EffectProviderCapabilities, a as EffectRenderRequest, c as EffectUse, e as EffectValue, f as EffectDescription, b as EffectPixels, g as EffectSummary } from '../helpers-CoIeXQnW.cjs';
2
- export { h as EFFECT_KINDS, i as EFFECT_USES, j as EffectControlSchema, k as EffectImageSource, l as EffectInputSpec, m as EffectKind, n as EffectPreset, o as EffectRenderer, p as EffectRendererOptions, q as EffectSearchOptions, r as EffectSvgAnimation, s as EffectValues, t as EffectVectorMotion, u as EffectVectorTarget, v as EffectsSlot, w as applyEffectMask, x as createEffectPixels, y as effectValueErrors, z as encodeEffectFloat, A as isEffectPixels, B as linearToSrgb, D as resolveEffectValues, F as searchEffectSummaries, G as srgbToLinear } from '../helpers-CoIeXQnW.cjs';
1
+ import { E as EffectProvider, d as EffectProviderCapabilities, a as EffectRenderRequest, c as EffectUse, e as EffectValue, f as EffectDescription, b as EffectPixels, g as EffectSummary } from '../helpers-DHl28yLO.cjs';
2
+ export { h as EFFECT_KINDS, i as EFFECT_USES, j as EffectControlSchema, k as EffectImageSource, l as EffectInputSpec, m as EffectKind, n as EffectPreset, o as EffectRenderer, p as EffectRendererOptions, q as EffectSearchOptions, r as EffectSvgAnimation, s as EffectValues, t as EffectVectorMotion, u as EffectVectorTarget, v as EffectsSlot, w as applyEffectMask, x as createEffectPixels, y as effectValueErrors, z as encodeEffectFloat, A as isEffectPixels, B as linearToSrgb, D as resolveEffectValues, F as searchEffectSummaries, G as srgbToLinear } from '../helpers-DHl28yLO.cjs';
3
3
  import { S as SchemaValidationError, J as JsonSchema } from '../schema-Di0CS6Pe.cjs';
4
- export { A as AppliedEffectInfo, E as EffectChangeResult, a as EffectTargetEffects, b as EffectToolContext, c as EffectToolHost, d as createEffectToolProvider } from '../tools-BFvkFnRj.cjs';
4
+ export { A as AppliedEffectInfo, E as EffectChangeResult, a as EffectTargetEffects, b as EffectToolContext, c as EffectToolHost, d as createEffectToolProvider } from '../tools-3EBjR91b.cjs';
5
5
  import { P as ParameterField, a as ParameterValue } from '../types-DMcf_z4J.cjs';
6
- export { E as EffectRendererPool, a as EffectRendererPoolOptions } from '../pool-D6a45MoE.cjs';
6
+ export { E as EffectRendererPool, a as EffectRendererPoolOptions } from '../pool-BfuxBKTd.cjs';
7
7
  import '../evaluate-BsxYieLN.cjs';
8
8
  import '../easing-lM0Xo9Ni.cjs';
9
9
  import '../types-CwMPoRMU.cjs';
@@ -1,9 +1,9 @@
1
- import { E as EffectProvider, d as EffectProviderCapabilities, a as EffectRenderRequest, c as EffectUse, e as EffectValue, f as EffectDescription, b as EffectPixels, g as EffectSummary } from '../helpers-BCd2-PAR.js';
2
- export { h as EFFECT_KINDS, i as EFFECT_USES, j as EffectControlSchema, k as EffectImageSource, l as EffectInputSpec, m as EffectKind, n as EffectPreset, o as EffectRenderer, p as EffectRendererOptions, q as EffectSearchOptions, r as EffectSvgAnimation, s as EffectValues, t as EffectVectorMotion, u as EffectVectorTarget, v as EffectsSlot, w as applyEffectMask, x as createEffectPixels, y as effectValueErrors, z as encodeEffectFloat, A as isEffectPixels, B as linearToSrgb, D as resolveEffectValues, F as searchEffectSummaries, G as srgbToLinear } from '../helpers-BCd2-PAR.js';
1
+ import { E as EffectProvider, d as EffectProviderCapabilities, a as EffectRenderRequest, c as EffectUse, e as EffectValue, f as EffectDescription, b as EffectPixels, g as EffectSummary } from '../helpers-Coa4e2j_.js';
2
+ export { h as EFFECT_KINDS, i as EFFECT_USES, j as EffectControlSchema, k as EffectImageSource, l as EffectInputSpec, m as EffectKind, n as EffectPreset, o as EffectRenderer, p as EffectRendererOptions, q as EffectSearchOptions, r as EffectSvgAnimation, s as EffectValues, t as EffectVectorMotion, u as EffectVectorTarget, v as EffectsSlot, w as applyEffectMask, x as createEffectPixels, y as effectValueErrors, z as encodeEffectFloat, A as isEffectPixels, B as linearToSrgb, D as resolveEffectValues, F as searchEffectSummaries, G as srgbToLinear } from '../helpers-Coa4e2j_.js';
3
3
  import { S as SchemaValidationError, J as JsonSchema } from '../schema-Di0CS6Pe.js';
4
- export { A as AppliedEffectInfo, E as EffectChangeResult, a as EffectTargetEffects, b as EffectToolContext, c as EffectToolHost, d as createEffectToolProvider } from '../tools-D7ws-OKL.js';
4
+ export { A as AppliedEffectInfo, E as EffectChangeResult, a as EffectTargetEffects, b as EffectToolContext, c as EffectToolHost, d as createEffectToolProvider } from '../tools-y1M6O3UT.js';
5
5
  import { P as ParameterField, a as ParameterValue } from '../types-D3-J3TFf.js';
6
- export { E as EffectRendererPool, a as EffectRendererPoolOptions } from '../pool-D2A3WTt9.js';
6
+ export { E as EffectRendererPool, a as EffectRendererPoolOptions } from '../pool-8JZGWHvR.js';
7
7
  import '../evaluate-BbCeF6pt.js';
8
8
  import '../easing-lM0Xo9Ni.js';
9
9
  import '../types-CwMPoRMU.js';
@@ -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-oCBfrGDG.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-DErXW5rz.cjs';
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-CoIeXQnW.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';
5
+ import { B as BezierPath } from './bezier-J8i4uqSH.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-Ceqdz7kj.cjs';
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-DHl28yLO.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-DdpFzCo6.cjs';
9
9
 
10
10
  /**
11
11
  * A selection: one 8-bit coverage value per image pixel (0 = not selected, 255 = fully
@@ -1178,8 +1178,7 @@ declare function depthMaskAlpha(depth: number, options: DepthMaskOptions): numbe
1178
1178
  declare function runLayerFilters(data: Uint8ClampedArray, width: number, height: number, filters: readonly LayerFilter[]): void;
1179
1179
  /**
1180
1180
  * `runLayerFilters` on float RGBA for high bit depth (sRGB-encoded 0..1, or linear light when
1181
- * `linear`). Develop filters on the current process and blurs keep full precision; a develop
1182
- * filter on a legacy process runs on the 8-bit rendering.
1181
+ * `linear`). Develop filters (current and legacy process) and blurs keep full precision.
1183
1182
  */
1184
1183
  declare function runLayerFiltersFloat(data: Float32Array, width: number, height: number, filters: readonly LayerFilter[], linear: boolean): void;
1185
1184
  /** The per-tile compositor for image editor layer stacks (see the raster module for the caches). */
@@ -1189,8 +1188,7 @@ declare class LayerCompositor extends RasterCompositor<ImageLayer, CompositorSou
1189
1188
  /**
1190
1189
  * The composite of an image editor stack at 16 or 32 bits (see `raster/deep-compositor`): float
1191
1190
  * RGBA over `rect`, sRGB-encoded 0..1 at 16 bits, linear light at 32. Adjustment layers, layer
1192
- * filters and layer effects run in float; groups with effects, legacy-process develop filters and
1193
- * annotation layers are drawn at 8 bits.
1191
+ * filters and layer effects (groups' included) run in float; annotation layers are drawn at 8 bits.
1194
1192
  */
1195
1193
  declare function compositeDeep(layers: readonly ImageLayer[], rect: RasterRect, sources: CompositorSources, depth: 16 | 32): Float32Array;
1196
1194
 
@@ -2944,7 +2942,7 @@ interface TypeLayerInfo {
2944
2942
  annotationId?: string;
2945
2943
  }
2946
2944
  /** The retouching tools (see `@pixerate/editor/paint`'s retouch module). */
2947
- type RetouchTool = 'clone' | 'heal' | 'spot-heal' | 'smudge' | 'dodge' | 'burn' | 'sponge';
2945
+ type RetouchTool = 'clone' | 'heal' | 'spot-heal' | 'smudge' | 'dodge' | 'burn' | 'sponge' | 'blur' | 'sharpen' | 'history';
2948
2946
  declare const RETOUCH_TOOLS: readonly RetouchTool[];
2949
2947
  declare const isRetouchTool: (tool: unknown) => tool is RetouchTool;
2950
2948
  /** Paint tools a stroke can use. */
@@ -4549,8 +4547,10 @@ interface ImageAnnotation extends BaseAnnotation {
4549
4547
  type Annotation = PenAnnotation | RectAnnotation | CircleAnnotation | ArrowAnnotation | LineAnnotation | TextAnnotation | ImageAnnotation;
4550
4548
  type CreateAnnotationPayload = Omit<PenAnnotation, 'id'> | Omit<RectAnnotation, 'id'> | Omit<CircleAnnotation, 'id'> | Omit<ArrowAnnotation, 'id'> | Omit<LineAnnotation, 'id'> | Omit<TextAnnotation, 'id'> | Omit<ImageAnnotation, 'id'>;
4551
4549
  type ImageEditorTool = 'select' | 'crop' | 'pen' | 'rect' | 'circle' | 'arrow' | 'line' | 'text' | 'watermark' | 'move' | 'brush' | 'eraser' | 'mixer'
4552
- /** Retouching (see `RetouchTool`): Clone Stamp, Healing Brush, Spot Healing, Smudge, Dodge, Burn, Sponge. */
4550
+ /** Retouching (see `RetouchTool`): Clone Stamp, Healing Brush, Spot Healing, Smudge, Dodge, Burn, Sponge, Blur, Sharpen, History Brush. */
4553
4551
  | 'clone' | 'heal' | 'spot-heal' | 'smudge' | 'dodge' | 'burn' | 'sponge'
4552
+ /** Blur, Sharpen and the History Brush (retouching tools too). */
4553
+ | 'blur' | 'sharpen' | 'history'
4554
4554
  /** Live shape layers (see `ShapeDrawGesture`). */
4555
4555
  | 'shape'
4556
4556
  /** Live type layers, edited on the canvas (see `TypeToolGesture`). */
@@ -1,4 +1,4 @@
1
- import { e as EffectValue, v as EffectsSlot, b as EffectPixels, E as EffectProvider, f as EffectDescription } from './helpers-CoIeXQnW.cjs';
1
+ import { e as EffectValue, v as EffectsSlot, b as EffectPixels, E as EffectProvider, f as EffectDescription } from './helpers-Coa4e2j_.js';
2
2
 
3
3
  /**
4
4
  * Keyframes for a clip's opacity, volume and transform. A property is either a plain number or
@@ -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-0IHDCvv_.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-2N9wkOkL.js';
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-BCd2-PAR.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';
5
+ import { B as BezierPath } from './bezier-lNEOp0Jx.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-C1gwu2G_.js';
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-Coa4e2j_.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-BaqEOs1Y.js';
9
9
 
10
10
  /**
11
11
  * A selection: one 8-bit coverage value per image pixel (0 = not selected, 255 = fully
@@ -1178,8 +1178,7 @@ declare function depthMaskAlpha(depth: number, options: DepthMaskOptions): numbe
1178
1178
  declare function runLayerFilters(data: Uint8ClampedArray, width: number, height: number, filters: readonly LayerFilter[]): void;
1179
1179
  /**
1180
1180
  * `runLayerFilters` on float RGBA for high bit depth (sRGB-encoded 0..1, or linear light when
1181
- * `linear`). Develop filters on the current process and blurs keep full precision; a develop
1182
- * filter on a legacy process runs on the 8-bit rendering.
1181
+ * `linear`). Develop filters (current and legacy process) and blurs keep full precision.
1183
1182
  */
1184
1183
  declare function runLayerFiltersFloat(data: Float32Array, width: number, height: number, filters: readonly LayerFilter[], linear: boolean): void;
1185
1184
  /** The per-tile compositor for image editor layer stacks (see the raster module for the caches). */
@@ -1189,8 +1188,7 @@ declare class LayerCompositor extends RasterCompositor<ImageLayer, CompositorSou
1189
1188
  /**
1190
1189
  * The composite of an image editor stack at 16 or 32 bits (see `raster/deep-compositor`): float
1191
1190
  * RGBA over `rect`, sRGB-encoded 0..1 at 16 bits, linear light at 32. Adjustment layers, layer
1192
- * filters and layer effects run in float; groups with effects, legacy-process develop filters and
1193
- * annotation layers are drawn at 8 bits.
1191
+ * filters and layer effects (groups' included) run in float; annotation layers are drawn at 8 bits.
1194
1192
  */
1195
1193
  declare function compositeDeep(layers: readonly ImageLayer[], rect: RasterRect, sources: CompositorSources, depth: 16 | 32): Float32Array;
1196
1194
 
@@ -2944,7 +2942,7 @@ interface TypeLayerInfo {
2944
2942
  annotationId?: string;
2945
2943
  }
2946
2944
  /** The retouching tools (see `@pixerate/editor/paint`'s retouch module). */
2947
- type RetouchTool = 'clone' | 'heal' | 'spot-heal' | 'smudge' | 'dodge' | 'burn' | 'sponge';
2945
+ type RetouchTool = 'clone' | 'heal' | 'spot-heal' | 'smudge' | 'dodge' | 'burn' | 'sponge' | 'blur' | 'sharpen' | 'history';
2948
2946
  declare const RETOUCH_TOOLS: readonly RetouchTool[];
2949
2947
  declare const isRetouchTool: (tool: unknown) => tool is RetouchTool;
2950
2948
  /** Paint tools a stroke can use. */
@@ -4549,8 +4547,10 @@ interface ImageAnnotation extends BaseAnnotation {
4549
4547
  type Annotation = PenAnnotation | RectAnnotation | CircleAnnotation | ArrowAnnotation | LineAnnotation | TextAnnotation | ImageAnnotation;
4550
4548
  type CreateAnnotationPayload = Omit<PenAnnotation, 'id'> | Omit<RectAnnotation, 'id'> | Omit<CircleAnnotation, 'id'> | Omit<ArrowAnnotation, 'id'> | Omit<LineAnnotation, 'id'> | Omit<TextAnnotation, 'id'> | Omit<ImageAnnotation, 'id'>;
4551
4549
  type ImageEditorTool = 'select' | 'crop' | 'pen' | 'rect' | 'circle' | 'arrow' | 'line' | 'text' | 'watermark' | 'move' | 'brush' | 'eraser' | 'mixer'
4552
- /** Retouching (see `RetouchTool`): Clone Stamp, Healing Brush, Spot Healing, Smudge, Dodge, Burn, Sponge. */
4550
+ /** Retouching (see `RetouchTool`): Clone Stamp, Healing Brush, Spot Healing, Smudge, Dodge, Burn, Sponge, Blur, Sharpen, History Brush. */
4553
4551
  | 'clone' | 'heal' | 'spot-heal' | 'smudge' | 'dodge' | 'burn' | 'sponge'
4552
+ /** Blur, Sharpen and the History Brush (retouching tools too). */
4553
+ | 'blur' | 'sharpen' | 'history'
4554
4554
  /** Live shape layers (see `ShapeDrawGesture`). */
4555
4555
  | 'shape'
4556
4556
  /** Live type layers, edited on the canvas (see `TypeToolGesture`). */
@@ -1,4 +1,4 @@
1
- import { e as EffectValue, v as EffectsSlot, b as EffectPixels, E as EffectProvider, f as EffectDescription } from './helpers-BCd2-PAR.js';
1
+ import { e as EffectValue, v as EffectsSlot, b as EffectPixels, E as EffectProvider, f as EffectDescription } from './helpers-DHl28yLO.cjs';
2
2
 
3
3
  /**
4
4
  * Keyframes for a clip's opacity, volume and transform. A property is either a plain number or
@@ -814,6 +814,13 @@ interface VectorFrame {
814
814
  fill?: VectorPaint;
815
815
  /** Clip the children to the frame (default true). */
816
816
  clip?: boolean;
817
+ /**
818
+ * A top-level frame with `master` set is a master page: it is not a page itself (not numbered
819
+ * or exported as one), and its children are drawn on every page that uses it.
820
+ */
821
+ master?: boolean;
822
+ /** The master page (a top-level master frame's id) this page draws under its own art, or null. */
823
+ masterId?: string | null;
817
824
  }
818
825
  /** A shape made of one or more subpaths (holes and compound shapes included). */
819
826
  interface VectorPathNode extends VectorNodeBase, VectorStyle {
@@ -971,6 +978,11 @@ interface VectorGroupNode extends VectorNodeBase {
971
978
  * when resized. Ignored on blends, live booleans and mask groups.
972
979
  */
973
980
  frame?: VectorFrame | null;
981
+ /**
982
+ * Derived, not stored: a page's master art (its master page's children laid out on it), brought
983
+ * up to date after every edit (`resolveVectorMasterPages`) and drawn under the page's children.
984
+ */
985
+ masterArt?: VectorNode[];
974
986
  /**
975
987
  * Makes the group a live symmetry group: it draws its children and their mirrored (or rotated)
976
988
  * copies, regenerated whenever a child changes. Ignored on blends, live booleans, mask groups
@@ -1142,7 +1154,29 @@ interface VectorDocument {
1142
1154
  constraints?: VectorConstraint[];
1143
1155
  /** Named values the constraints' expressions use. */
1144
1156
  parameters?: VectorParameter[];
1157
+ /** The perspective grid art can be drawn on or attached to (see `VectorPerspective`). */
1158
+ perspective?: VectorPerspective | null;
1159
+ }
1160
+ /**
1161
+ * A perspective grid (CorelDRAW's Perspective Drawing): 1, 2 or 3 vanishing points and the
1162
+ * grid's origin (where its planes meet, on the ground in front of the viewer). With one point
1163
+ * the planes are the `floor`, a `side` wall receding to it and the `front`; with two, the `floor`
1164
+ * and the `left` and `right` walls, receding to the first and second points; a third point is
1165
+ * where the walls' verticals meet (a bird's or worm's eye view).
1166
+ */
1167
+ interface VectorPerspective {
1168
+ vanishingPoints: Vec2[];
1169
+ origin: Vec2;
1170
+ /** Grid cell size at the origin, in document units (default 20). */
1171
+ gridSize?: number;
1172
+ /** Cells drawn out from the origin along each axis (default 12). */
1173
+ extent?: number;
1174
+ /** Whether the grid is shown on the canvas (default true). */
1175
+ visible?: boolean;
1145
1176
  }
1177
+ /** A plane of a perspective grid. */
1178
+ type VectorPerspectivePlane = 'floor' | 'left' | 'right' | 'side' | 'front';
1179
+ declare const VECTOR_PERSPECTIVE_PLANES: readonly VectorPerspectivePlane[];
1146
1180
  /**
1147
1181
  * Constraint kinds (CAD-style parametric drawing). Geometric: `coincident` (two points, a point on
1148
1182
  * a segment's line, or a point on a circle), `collinear` (two segments on one line), `concentric`
@@ -2133,4 +2167,4 @@ declare class EffectsSlot {
2133
2167
  subscribe(listener: (provider: EffectProvider | null) => void): () => void;
2134
2168
  }
2135
2169
 
2136
- export { type VectorPaint as $, isEffectPixels as A, linearToSrgb as B, type CanvasGradientDef as C, resolveEffectValues as D, type EffectProvider as E, searchEffectSummaries as F, srgbToLinear as G, type VectorEffectParamsMap as H, type VectorPathNode as I, type VectorFillRule as J, type VectorBooleanOperation as K, type VectorNode as L, type VectorEffect as M, type VectorGroupNode as N, type VectorBounds as O, type VectorWarpMesh as P, type VectorInstanceNode as Q, type VectorFilterType as R, type SvgGradientDef as S, type VectorFilterParamsMap as T, type VectorFilter as U, type VectorEffectType as V, type VectorGradient as W, type Vec2 as X, type VectorGradientUnits as Y, type VectorGradientSpread as Z, type VectorGradientType as _, type EffectRenderRequest as a, type MotionEffectCommand as a$, type VectorMatrix as a0, type VectorGradientStop as a1, type VectorStrokeAlign as a2, type VectorSubpath as a3, type VectorDocument as a4, type VectorWidthPoint as a5, type MotionCommand as a6, type MotionShot as a7, type MotionScene as a8, type MotionDirection as a9, FLAIR_EXPORT_VERSION as aA, type FlairEase as aB, type FlairEaseName as aC, type FlairSpringEase as aD, type FlairSvgAnimation as aE, MOTION_BLENDS as aF, MOTION_CAMERA_MS as aG, MOTION_CASCADES as aH, MOTION_CLIP_TARGET as aI, MOTION_COMMAND_TYPES as aJ, MOTION_DEFAULT_DURATIONS as aK, MOTION_DEFAULT_HOLD as aL, MOTION_DIRECTIONS as aM, MOTION_DRAW_MS_PER_UNIT as aN, MOTION_DRAW_RANGE as aO, MOTION_DRIVEN_PROPERTIES as aP, MOTION_ENTER_STYLES as aQ, MOTION_EXIT_STYLES as aR, MOTION_IRIS_SHAPES as aS, MOTION_REPEAT_MODES as aT, MOTION_SPLIT_ORIENTATIONS as aU, MOTION_TEXT_UNITS as aV, MOTION_TRIGGERS as aW, type MotionColorPulseCommand as aX, type MotionCommandBase as aY, type MotionDrawCommand as aZ, type MotionDrawOrder as a_, type MotionIrisShape as aa, type MotionSplitOrientation as ab, type MotionDriver as ac, type MotionDrivenProperty as ad, type MotionRect as ae, type MotionBeatGrid as af, type MotionCue as ag, type MotionCamera as ah, type MotionTextUnit as ai, type MotionCascade as aj, type MotionBlur as ak, type MotionControl as al, type MotionPreset as am, type MotionClip as an, type FlairSvgMotion as ao, type FlairVectorEffect as ap, type MotionEffectSource as aq, type FlairExportOptions as ar, type FlairMotionExport as as, type FlairEffectOptions as at, type FlairEffectDocument as au, type MotionEnterStyle as av, type MotionExitStyle as aw, type MotionCommandType as ax, type MotionNarration as ay, FLAIR_EASES as az, type EffectPixels as b, type VectorLens as b$, type MotionEnterCommand as b0, type MotionExitCommand as b1, type MotionFadeCommand as b2, type MotionFollowCommand as b3, type MotionMatchCommand as b4, type MotionMorphCommand as b5, type MotionMoveCommand as b6, type MotionPlayCommand as b7, type MotionPulseCommand as b8, type MotionRotateCommand as b9, type VectorCharacterStyle as bA, type VectorTextRun as bB, type VectorParagraphStyle as bC, type VectorTextFrame as bD, type VectorTransformHandle as bE, type VectorAnchorRef as bF, type VectorPathfinderOperation as bG, type VectorTool as bH, type VectorDefaults as bI, type VectorTextAlign as bJ, type VectorStyle as bK, type VectorHandleRef as bL, type VectorSegmentRef as bM, type VectorBlendOptions as bN, type VectorModifiers as bO, type VectorProviderEffect as bP, type VectorBlendMode as bQ, type VectorAlign as bR, type VectorDistribute as bS, type VectorArrange as bT, type VectorMaskType as bU, type VectorSymmetryMode as bV, type VectorSymmetry as bW, type VectorFreeformPoint as bX, type VectorMeshGradient as bY, type VectorFreeformGradient as bZ, type VectorArrowhead as b_, type MotionScaleCommand as ba, type MotionShakeCommand as bb, type MotionStyleCommand as bc, type MotionTeeterCommand as bd, type MotionTrigger as be, type MotionWaitCommand as bf, type MotionWaveCommand as bg, type MotionWiggleCommand as bh, flairAtLeast as bi, flairCurveFor as bj, flairEaseFor as bk, motionFlairPrimitive as bl, toFlairEffectDocument as bm, toFlairSvgMotion as bn, toFlairVectorEffect as bo, type VectorAnchor as bp, type VectorTextNode as bq, type VectorAnchorType as br, type VectorCornerKind as bs, type VectorViewport as bt, type VectorConnectorRoute as bu, type VectorConnectorSide as bv, type VectorConnectorEnd as bw, type VectorConnector as bx, type VectorConstraintKind as by, type VectorConstraint as bz, type EffectUse as c, type VectorResizing as c0, type VectorFrame as c1, type VectorHorizontalResizing as c2, type VectorVerticalResizing as c3, type VectorMask as c4, type VectorAverageAxis as c5, type VectorSymbol as c6, type VectorParameter as c7, type VectorBlendSpacing as c8, type VectorGradientInterpolation as c9, VECTOR_PATHFINDER_OPERATIONS as cA, VECTOR_PATH_TEXT_BASELINES as cB, VECTOR_STROKE_GRADIENT_MODES as cC, VECTOR_SYMMETRY_MODES as cD, VECTOR_TEXT_ALIGNS as cE, VECTOR_TOOLS as cF, VECTOR_TRANSFORM_HANDLES as cG, VECTOR_VERTICAL_RESIZING as cH, type VectorCorner as cI, type VectorGeomRef as cJ, type VectorLineCap as cK, type VectorPathTextBaseline as cL, type VectorStrokeLayerKind as cM, type VectorTextRunStyle as cN, type VectorWarpStyle as cO, CANVAS_GRADIENT_PRESETS as cP, type CanvasLinearGradient as cQ, type CanvasRadialGradient as cR, type GradientStop as cS, PIXERATE_BRAND_GRADIENT as cT, type SvgGradientStop as cU, angleToSvgLinearCoords as cV, gradientToSvgDef as cW, isCanvasGradient as cX, parseCssGradient as cY, resolveCanvasGradient as cZ, type VectorStrokeGradientMode as ca, type VectorArrowAlign as cb, type VectorPaintLayer as cc, type VectorStrokeLayer as cd, type VectorBlend as ce, type VectorMergeMode as cf, type VectorLineJoin as cg, type VectorLensType as ch, type VectorStrokeSettings as ci, type VectorInstanceOverrides as cj, VECTOR_ARROWHEADS as ck, VECTOR_BLEND_MODES as cl, VECTOR_BLEND_SPACINGS as cm, VECTOR_CONNECTOR_ROUTES as cn, VECTOR_CONNECTOR_SIDES as co, VECTOR_CONSTRAINT_KINDS as cp, VECTOR_CORNER_KINDS as cq, VECTOR_EFFECT_TYPES as cr, VECTOR_FILTER_TYPES as cs, VECTOR_GRADIENT_INTERPOLATIONS as ct, VECTOR_GRADIENT_SPREADS as cu, VECTOR_GRADIENT_TYPES as cv, VECTOR_HORIZONTAL_RESIZING as cw, VECTOR_LENS_TYPES as cx, VECTOR_MASK_TYPES as cy, VECTOR_MERGE_MODES as cz, type EffectProviderCapabilities as d, type EffectValue as e, type EffectDescription as f, type EffectSummary as g, EFFECT_KINDS as h, EFFECT_USES as i, type EffectControlSchema as j, type EffectImageSource as k, type EffectInputSpec as l, type EffectKind as m, type EffectPreset as n, type EffectRenderer as o, type EffectRendererOptions as p, type EffectSearchOptions as q, type EffectSvgAnimation as r, type EffectValues as s, type EffectVectorMotion as t, type EffectVectorTarget as u, EffectsSlot as v, applyEffectMask as w, createEffectPixels as x, effectValueErrors as y, encodeEffectFloat as z };
2170
+ export { type VectorPaint as $, isEffectPixels as A, linearToSrgb as B, type CanvasGradientDef as C, resolveEffectValues as D, type EffectProvider as E, searchEffectSummaries as F, srgbToLinear as G, type VectorEffectParamsMap as H, type VectorPathNode as I, type VectorFillRule as J, type VectorBooleanOperation as K, type VectorNode as L, type VectorEffect as M, type VectorGroupNode as N, type VectorBounds as O, type VectorWarpMesh as P, type VectorInstanceNode as Q, type VectorFilterType as R, type SvgGradientDef as S, type VectorFilterParamsMap as T, type VectorFilter as U, type VectorEffectType as V, type VectorGradient as W, type Vec2 as X, type VectorGradientUnits as Y, type VectorGradientSpread as Z, type VectorGradientType as _, type EffectRenderRequest as a, type MotionEffectCommand as a$, type VectorMatrix as a0, type VectorGradientStop as a1, type VectorStrokeAlign as a2, type VectorSubpath as a3, type VectorDocument as a4, type VectorWidthPoint as a5, type MotionCommand as a6, type MotionShot as a7, type MotionScene as a8, type MotionDirection as a9, FLAIR_EXPORT_VERSION as aA, type FlairEase as aB, type FlairEaseName as aC, type FlairSpringEase as aD, type FlairSvgAnimation as aE, MOTION_BLENDS as aF, MOTION_CAMERA_MS as aG, MOTION_CASCADES as aH, MOTION_CLIP_TARGET as aI, MOTION_COMMAND_TYPES as aJ, MOTION_DEFAULT_DURATIONS as aK, MOTION_DEFAULT_HOLD as aL, MOTION_DIRECTIONS as aM, MOTION_DRAW_MS_PER_UNIT as aN, MOTION_DRAW_RANGE as aO, MOTION_DRIVEN_PROPERTIES as aP, MOTION_ENTER_STYLES as aQ, MOTION_EXIT_STYLES as aR, MOTION_IRIS_SHAPES as aS, MOTION_REPEAT_MODES as aT, MOTION_SPLIT_ORIENTATIONS as aU, MOTION_TEXT_UNITS as aV, MOTION_TRIGGERS as aW, type MotionColorPulseCommand as aX, type MotionCommandBase as aY, type MotionDrawCommand as aZ, type MotionDrawOrder as a_, type MotionIrisShape as aa, type MotionSplitOrientation as ab, type MotionDriver as ac, type MotionDrivenProperty as ad, type MotionRect as ae, type MotionBeatGrid as af, type MotionCue as ag, type MotionCamera as ah, type MotionTextUnit as ai, type MotionCascade as aj, type MotionBlur as ak, type MotionControl as al, type MotionPreset as am, type MotionClip as an, type FlairSvgMotion as ao, type FlairVectorEffect as ap, type MotionEffectSource as aq, type FlairExportOptions as ar, type FlairMotionExport as as, type FlairEffectOptions as at, type FlairEffectDocument as au, type MotionEnterStyle as av, type MotionExitStyle as aw, type MotionCommandType as ax, type MotionNarration as ay, FLAIR_EASES as az, type EffectPixels as b, type VectorFreeformGradient as b$, type MotionEnterCommand as b0, type MotionExitCommand as b1, type MotionFadeCommand as b2, type MotionFollowCommand as b3, type MotionMatchCommand as b4, type MotionMorphCommand as b5, type MotionMoveCommand as b6, type MotionPlayCommand as b7, type MotionPulseCommand as b8, type MotionRotateCommand as b9, type VectorCharacterStyle as bA, type VectorTextRun as bB, type VectorParagraphStyle as bC, type VectorTextFrame as bD, type VectorTransformHandle as bE, type VectorAnchorRef as bF, type VectorPathfinderOperation as bG, type VectorTool as bH, type VectorDefaults as bI, type VectorTextAlign as bJ, type VectorStyle as bK, type VectorHandleRef as bL, type VectorSegmentRef as bM, type VectorBlendOptions as bN, type VectorPerspectivePlane as bO, type VectorModifiers as bP, type VectorProviderEffect as bQ, type VectorBlendMode as bR, type VectorAlign as bS, type VectorDistribute as bT, type VectorArrange as bU, type VectorMaskType as bV, type VectorSymmetryMode as bW, type VectorSymmetry as bX, type VectorPerspective as bY, type VectorFreeformPoint as bZ, type VectorMeshGradient as b_, type MotionScaleCommand as ba, type MotionShakeCommand as bb, type MotionStyleCommand as bc, type MotionTeeterCommand as bd, type MotionTrigger as be, type MotionWaitCommand as bf, type MotionWaveCommand as bg, type MotionWiggleCommand as bh, flairAtLeast as bi, flairCurveFor as bj, flairEaseFor as bk, motionFlairPrimitive as bl, toFlairEffectDocument as bm, toFlairSvgMotion as bn, toFlairVectorEffect as bo, type VectorAnchor as bp, type VectorTextNode as bq, type VectorAnchorType as br, type VectorCornerKind as bs, type VectorViewport as bt, type VectorConnectorRoute as bu, type VectorConnectorSide as bv, type VectorConnectorEnd as bw, type VectorConnector as bx, type VectorConstraintKind as by, type VectorConstraint as bz, type EffectUse as c, parseCssGradient as c$, type VectorArrowhead as c0, type VectorLens as c1, type VectorResizing as c2, type VectorFrame as c3, type VectorHorizontalResizing as c4, type VectorVerticalResizing as c5, type VectorMask as c6, type VectorAverageAxis as c7, type VectorSymbol as c8, type VectorParameter as c9, VECTOR_MASK_TYPES as cA, VECTOR_MERGE_MODES as cB, VECTOR_PATHFINDER_OPERATIONS as cC, VECTOR_PATH_TEXT_BASELINES as cD, VECTOR_PERSPECTIVE_PLANES as cE, VECTOR_STROKE_GRADIENT_MODES as cF, VECTOR_SYMMETRY_MODES as cG, VECTOR_TEXT_ALIGNS as cH, VECTOR_TOOLS as cI, VECTOR_TRANSFORM_HANDLES as cJ, VECTOR_VERTICAL_RESIZING as cK, type VectorCorner as cL, type VectorGeomRef as cM, type VectorLineCap as cN, type VectorPathTextBaseline as cO, type VectorStrokeLayerKind as cP, type VectorTextRunStyle as cQ, type VectorWarpStyle as cR, CANVAS_GRADIENT_PRESETS as cS, type CanvasLinearGradient as cT, type CanvasRadialGradient as cU, type GradientStop as cV, PIXERATE_BRAND_GRADIENT as cW, type SvgGradientStop as cX, angleToSvgLinearCoords as cY, gradientToSvgDef as cZ, isCanvasGradient as c_, type VectorBlendSpacing as ca, type VectorGradientInterpolation as cb, type VectorStrokeGradientMode as cc, type VectorArrowAlign as cd, type VectorPaintLayer as ce, type VectorStrokeLayer as cf, type VectorBlend as cg, type VectorMergeMode as ch, type VectorLineJoin as ci, type VectorLensType as cj, type VectorStrokeSettings as ck, type VectorInstanceOverrides as cl, VECTOR_ARROWHEADS as cm, VECTOR_BLEND_MODES as cn, VECTOR_BLEND_SPACINGS as co, VECTOR_CONNECTOR_ROUTES as cp, VECTOR_CONNECTOR_SIDES as cq, VECTOR_CONSTRAINT_KINDS as cr, VECTOR_CORNER_KINDS as cs, VECTOR_EFFECT_TYPES as ct, VECTOR_FILTER_TYPES as cu, VECTOR_GRADIENT_INTERPOLATIONS as cv, VECTOR_GRADIENT_SPREADS as cw, VECTOR_GRADIENT_TYPES as cx, VECTOR_HORIZONTAL_RESIZING as cy, VECTOR_LENS_TYPES as cz, type EffectProviderCapabilities as d, resolveCanvasGradient as d0, type EffectValue as e, type EffectDescription as f, type EffectSummary as g, EFFECT_KINDS as h, EFFECT_USES as i, type EffectControlSchema as j, type EffectImageSource as k, type EffectInputSpec as l, type EffectKind as m, type EffectPreset as n, type EffectRenderer as o, type EffectRendererOptions as p, type EffectSearchOptions as q, type EffectSvgAnimation as r, type EffectValues as s, type EffectVectorMotion as t, type EffectVectorTarget as u, EffectsSlot as v, applyEffectMask as w, createEffectPixels as x, effectValueErrors as y, encodeEffectFloat as z };
@@ -814,6 +814,13 @@ interface VectorFrame {
814
814
  fill?: VectorPaint;
815
815
  /** Clip the children to the frame (default true). */
816
816
  clip?: boolean;
817
+ /**
818
+ * A top-level frame with `master` set is a master page: it is not a page itself (not numbered
819
+ * or exported as one), and its children are drawn on every page that uses it.
820
+ */
821
+ master?: boolean;
822
+ /** The master page (a top-level master frame's id) this page draws under its own art, or null. */
823
+ masterId?: string | null;
817
824
  }
818
825
  /** A shape made of one or more subpaths (holes and compound shapes included). */
819
826
  interface VectorPathNode extends VectorNodeBase, VectorStyle {
@@ -971,6 +978,11 @@ interface VectorGroupNode extends VectorNodeBase {
971
978
  * when resized. Ignored on blends, live booleans and mask groups.
972
979
  */
973
980
  frame?: VectorFrame | null;
981
+ /**
982
+ * Derived, not stored: a page's master art (its master page's children laid out on it), brought
983
+ * up to date after every edit (`resolveVectorMasterPages`) and drawn under the page's children.
984
+ */
985
+ masterArt?: VectorNode[];
974
986
  /**
975
987
  * Makes the group a live symmetry group: it draws its children and their mirrored (or rotated)
976
988
  * copies, regenerated whenever a child changes. Ignored on blends, live booleans, mask groups
@@ -1142,7 +1154,29 @@ interface VectorDocument {
1142
1154
  constraints?: VectorConstraint[];
1143
1155
  /** Named values the constraints' expressions use. */
1144
1156
  parameters?: VectorParameter[];
1157
+ /** The perspective grid art can be drawn on or attached to (see `VectorPerspective`). */
1158
+ perspective?: VectorPerspective | null;
1159
+ }
1160
+ /**
1161
+ * A perspective grid (CorelDRAW's Perspective Drawing): 1, 2 or 3 vanishing points and the
1162
+ * grid's origin (where its planes meet, on the ground in front of the viewer). With one point
1163
+ * the planes are the `floor`, a `side` wall receding to it and the `front`; with two, the `floor`
1164
+ * and the `left` and `right` walls, receding to the first and second points; a third point is
1165
+ * where the walls' verticals meet (a bird's or worm's eye view).
1166
+ */
1167
+ interface VectorPerspective {
1168
+ vanishingPoints: Vec2[];
1169
+ origin: Vec2;
1170
+ /** Grid cell size at the origin, in document units (default 20). */
1171
+ gridSize?: number;
1172
+ /** Cells drawn out from the origin along each axis (default 12). */
1173
+ extent?: number;
1174
+ /** Whether the grid is shown on the canvas (default true). */
1175
+ visible?: boolean;
1145
1176
  }
1177
+ /** A plane of a perspective grid. */
1178
+ type VectorPerspectivePlane = 'floor' | 'left' | 'right' | 'side' | 'front';
1179
+ declare const VECTOR_PERSPECTIVE_PLANES: readonly VectorPerspectivePlane[];
1146
1180
  /**
1147
1181
  * Constraint kinds (CAD-style parametric drawing). Geometric: `coincident` (two points, a point on
1148
1182
  * a segment's line, or a point on a circle), `collinear` (two segments on one line), `concentric`
@@ -2133,4 +2167,4 @@ declare class EffectsSlot {
2133
2167
  subscribe(listener: (provider: EffectProvider | null) => void): () => void;
2134
2168
  }
2135
2169
 
2136
- export { type VectorPaint as $, isEffectPixels as A, linearToSrgb as B, type CanvasGradientDef as C, resolveEffectValues as D, type EffectProvider as E, searchEffectSummaries as F, srgbToLinear as G, type VectorEffectParamsMap as H, type VectorPathNode as I, type VectorFillRule as J, type VectorBooleanOperation as K, type VectorNode as L, type VectorEffect as M, type VectorGroupNode as N, type VectorBounds as O, type VectorWarpMesh as P, type VectorInstanceNode as Q, type VectorFilterType as R, type SvgGradientDef as S, type VectorFilterParamsMap as T, type VectorFilter as U, type VectorEffectType as V, type VectorGradient as W, type Vec2 as X, type VectorGradientUnits as Y, type VectorGradientSpread as Z, type VectorGradientType as _, type EffectRenderRequest as a, type MotionEffectCommand as a$, type VectorMatrix as a0, type VectorGradientStop as a1, type VectorStrokeAlign as a2, type VectorSubpath as a3, type VectorDocument as a4, type VectorWidthPoint as a5, type MotionCommand as a6, type MotionShot as a7, type MotionScene as a8, type MotionDirection as a9, FLAIR_EXPORT_VERSION as aA, type FlairEase as aB, type FlairEaseName as aC, type FlairSpringEase as aD, type FlairSvgAnimation as aE, MOTION_BLENDS as aF, MOTION_CAMERA_MS as aG, MOTION_CASCADES as aH, MOTION_CLIP_TARGET as aI, MOTION_COMMAND_TYPES as aJ, MOTION_DEFAULT_DURATIONS as aK, MOTION_DEFAULT_HOLD as aL, MOTION_DIRECTIONS as aM, MOTION_DRAW_MS_PER_UNIT as aN, MOTION_DRAW_RANGE as aO, MOTION_DRIVEN_PROPERTIES as aP, MOTION_ENTER_STYLES as aQ, MOTION_EXIT_STYLES as aR, MOTION_IRIS_SHAPES as aS, MOTION_REPEAT_MODES as aT, MOTION_SPLIT_ORIENTATIONS as aU, MOTION_TEXT_UNITS as aV, MOTION_TRIGGERS as aW, type MotionColorPulseCommand as aX, type MotionCommandBase as aY, type MotionDrawCommand as aZ, type MotionDrawOrder as a_, type MotionIrisShape as aa, type MotionSplitOrientation as ab, type MotionDriver as ac, type MotionDrivenProperty as ad, type MotionRect as ae, type MotionBeatGrid as af, type MotionCue as ag, type MotionCamera as ah, type MotionTextUnit as ai, type MotionCascade as aj, type MotionBlur as ak, type MotionControl as al, type MotionPreset as am, type MotionClip as an, type FlairSvgMotion as ao, type FlairVectorEffect as ap, type MotionEffectSource as aq, type FlairExportOptions as ar, type FlairMotionExport as as, type FlairEffectOptions as at, type FlairEffectDocument as au, type MotionEnterStyle as av, type MotionExitStyle as aw, type MotionCommandType as ax, type MotionNarration as ay, FLAIR_EASES as az, type EffectPixels as b, type VectorLens as b$, type MotionEnterCommand as b0, type MotionExitCommand as b1, type MotionFadeCommand as b2, type MotionFollowCommand as b3, type MotionMatchCommand as b4, type MotionMorphCommand as b5, type MotionMoveCommand as b6, type MotionPlayCommand as b7, type MotionPulseCommand as b8, type MotionRotateCommand as b9, type VectorCharacterStyle as bA, type VectorTextRun as bB, type VectorParagraphStyle as bC, type VectorTextFrame as bD, type VectorTransformHandle as bE, type VectorAnchorRef as bF, type VectorPathfinderOperation as bG, type VectorTool as bH, type VectorDefaults as bI, type VectorTextAlign as bJ, type VectorStyle as bK, type VectorHandleRef as bL, type VectorSegmentRef as bM, type VectorBlendOptions as bN, type VectorModifiers as bO, type VectorProviderEffect as bP, type VectorBlendMode as bQ, type VectorAlign as bR, type VectorDistribute as bS, type VectorArrange as bT, type VectorMaskType as bU, type VectorSymmetryMode as bV, type VectorSymmetry as bW, type VectorFreeformPoint as bX, type VectorMeshGradient as bY, type VectorFreeformGradient as bZ, type VectorArrowhead as b_, type MotionScaleCommand as ba, type MotionShakeCommand as bb, type MotionStyleCommand as bc, type MotionTeeterCommand as bd, type MotionTrigger as be, type MotionWaitCommand as bf, type MotionWaveCommand as bg, type MotionWiggleCommand as bh, flairAtLeast as bi, flairCurveFor as bj, flairEaseFor as bk, motionFlairPrimitive as bl, toFlairEffectDocument as bm, toFlairSvgMotion as bn, toFlairVectorEffect as bo, type VectorAnchor as bp, type VectorTextNode as bq, type VectorAnchorType as br, type VectorCornerKind as bs, type VectorViewport as bt, type VectorConnectorRoute as bu, type VectorConnectorSide as bv, type VectorConnectorEnd as bw, type VectorConnector as bx, type VectorConstraintKind as by, type VectorConstraint as bz, type EffectUse as c, type VectorResizing as c0, type VectorFrame as c1, type VectorHorizontalResizing as c2, type VectorVerticalResizing as c3, type VectorMask as c4, type VectorAverageAxis as c5, type VectorSymbol as c6, type VectorParameter as c7, type VectorBlendSpacing as c8, type VectorGradientInterpolation as c9, VECTOR_PATHFINDER_OPERATIONS as cA, VECTOR_PATH_TEXT_BASELINES as cB, VECTOR_STROKE_GRADIENT_MODES as cC, VECTOR_SYMMETRY_MODES as cD, VECTOR_TEXT_ALIGNS as cE, VECTOR_TOOLS as cF, VECTOR_TRANSFORM_HANDLES as cG, VECTOR_VERTICAL_RESIZING as cH, type VectorCorner as cI, type VectorGeomRef as cJ, type VectorLineCap as cK, type VectorPathTextBaseline as cL, type VectorStrokeLayerKind as cM, type VectorTextRunStyle as cN, type VectorWarpStyle as cO, CANVAS_GRADIENT_PRESETS as cP, type CanvasLinearGradient as cQ, type CanvasRadialGradient as cR, type GradientStop as cS, PIXERATE_BRAND_GRADIENT as cT, type SvgGradientStop as cU, angleToSvgLinearCoords as cV, gradientToSvgDef as cW, isCanvasGradient as cX, parseCssGradient as cY, resolveCanvasGradient as cZ, type VectorStrokeGradientMode as ca, type VectorArrowAlign as cb, type VectorPaintLayer as cc, type VectorStrokeLayer as cd, type VectorBlend as ce, type VectorMergeMode as cf, type VectorLineJoin as cg, type VectorLensType as ch, type VectorStrokeSettings as ci, type VectorInstanceOverrides as cj, VECTOR_ARROWHEADS as ck, VECTOR_BLEND_MODES as cl, VECTOR_BLEND_SPACINGS as cm, VECTOR_CONNECTOR_ROUTES as cn, VECTOR_CONNECTOR_SIDES as co, VECTOR_CONSTRAINT_KINDS as cp, VECTOR_CORNER_KINDS as cq, VECTOR_EFFECT_TYPES as cr, VECTOR_FILTER_TYPES as cs, VECTOR_GRADIENT_INTERPOLATIONS as ct, VECTOR_GRADIENT_SPREADS as cu, VECTOR_GRADIENT_TYPES as cv, VECTOR_HORIZONTAL_RESIZING as cw, VECTOR_LENS_TYPES as cx, VECTOR_MASK_TYPES as cy, VECTOR_MERGE_MODES as cz, type EffectProviderCapabilities as d, type EffectValue as e, type EffectDescription as f, type EffectSummary as g, EFFECT_KINDS as h, EFFECT_USES as i, type EffectControlSchema as j, type EffectImageSource as k, type EffectInputSpec as l, type EffectKind as m, type EffectPreset as n, type EffectRenderer as o, type EffectRendererOptions as p, type EffectSearchOptions as q, type EffectSvgAnimation as r, type EffectValues as s, type EffectVectorMotion as t, type EffectVectorTarget as u, EffectsSlot as v, applyEffectMask as w, createEffectPixels as x, effectValueErrors as y, encodeEffectFloat as z };
2170
+ export { type VectorPaint as $, isEffectPixels as A, linearToSrgb as B, type CanvasGradientDef as C, resolveEffectValues as D, type EffectProvider as E, searchEffectSummaries as F, srgbToLinear as G, type VectorEffectParamsMap as H, type VectorPathNode as I, type VectorFillRule as J, type VectorBooleanOperation as K, type VectorNode as L, type VectorEffect as M, type VectorGroupNode as N, type VectorBounds as O, type VectorWarpMesh as P, type VectorInstanceNode as Q, type VectorFilterType as R, type SvgGradientDef as S, type VectorFilterParamsMap as T, type VectorFilter as U, type VectorEffectType as V, type VectorGradient as W, type Vec2 as X, type VectorGradientUnits as Y, type VectorGradientSpread as Z, type VectorGradientType as _, type EffectRenderRequest as a, type MotionEffectCommand as a$, type VectorMatrix as a0, type VectorGradientStop as a1, type VectorStrokeAlign as a2, type VectorSubpath as a3, type VectorDocument as a4, type VectorWidthPoint as a5, type MotionCommand as a6, type MotionShot as a7, type MotionScene as a8, type MotionDirection as a9, FLAIR_EXPORT_VERSION as aA, type FlairEase as aB, type FlairEaseName as aC, type FlairSpringEase as aD, type FlairSvgAnimation as aE, MOTION_BLENDS as aF, MOTION_CAMERA_MS as aG, MOTION_CASCADES as aH, MOTION_CLIP_TARGET as aI, MOTION_COMMAND_TYPES as aJ, MOTION_DEFAULT_DURATIONS as aK, MOTION_DEFAULT_HOLD as aL, MOTION_DIRECTIONS as aM, MOTION_DRAW_MS_PER_UNIT as aN, MOTION_DRAW_RANGE as aO, MOTION_DRIVEN_PROPERTIES as aP, MOTION_ENTER_STYLES as aQ, MOTION_EXIT_STYLES as aR, MOTION_IRIS_SHAPES as aS, MOTION_REPEAT_MODES as aT, MOTION_SPLIT_ORIENTATIONS as aU, MOTION_TEXT_UNITS as aV, MOTION_TRIGGERS as aW, type MotionColorPulseCommand as aX, type MotionCommandBase as aY, type MotionDrawCommand as aZ, type MotionDrawOrder as a_, type MotionIrisShape as aa, type MotionSplitOrientation as ab, type MotionDriver as ac, type MotionDrivenProperty as ad, type MotionRect as ae, type MotionBeatGrid as af, type MotionCue as ag, type MotionCamera as ah, type MotionTextUnit as ai, type MotionCascade as aj, type MotionBlur as ak, type MotionControl as al, type MotionPreset as am, type MotionClip as an, type FlairSvgMotion as ao, type FlairVectorEffect as ap, type MotionEffectSource as aq, type FlairExportOptions as ar, type FlairMotionExport as as, type FlairEffectOptions as at, type FlairEffectDocument as au, type MotionEnterStyle as av, type MotionExitStyle as aw, type MotionCommandType as ax, type MotionNarration as ay, FLAIR_EASES as az, type EffectPixels as b, type VectorFreeformGradient as b$, type MotionEnterCommand as b0, type MotionExitCommand as b1, type MotionFadeCommand as b2, type MotionFollowCommand as b3, type MotionMatchCommand as b4, type MotionMorphCommand as b5, type MotionMoveCommand as b6, type MotionPlayCommand as b7, type MotionPulseCommand as b8, type MotionRotateCommand as b9, type VectorCharacterStyle as bA, type VectorTextRun as bB, type VectorParagraphStyle as bC, type VectorTextFrame as bD, type VectorTransformHandle as bE, type VectorAnchorRef as bF, type VectorPathfinderOperation as bG, type VectorTool as bH, type VectorDefaults as bI, type VectorTextAlign as bJ, type VectorStyle as bK, type VectorHandleRef as bL, type VectorSegmentRef as bM, type VectorBlendOptions as bN, type VectorPerspectivePlane as bO, type VectorModifiers as bP, type VectorProviderEffect as bQ, type VectorBlendMode as bR, type VectorAlign as bS, type VectorDistribute as bT, type VectorArrange as bU, type VectorMaskType as bV, type VectorSymmetryMode as bW, type VectorSymmetry as bX, type VectorPerspective as bY, type VectorFreeformPoint as bZ, type VectorMeshGradient as b_, type MotionScaleCommand as ba, type MotionShakeCommand as bb, type MotionStyleCommand as bc, type MotionTeeterCommand as bd, type MotionTrigger as be, type MotionWaitCommand as bf, type MotionWaveCommand as bg, type MotionWiggleCommand as bh, flairAtLeast as bi, flairCurveFor as bj, flairEaseFor as bk, motionFlairPrimitive as bl, toFlairEffectDocument as bm, toFlairSvgMotion as bn, toFlairVectorEffect as bo, type VectorAnchor as bp, type VectorTextNode as bq, type VectorAnchorType as br, type VectorCornerKind as bs, type VectorViewport as bt, type VectorConnectorRoute as bu, type VectorConnectorSide as bv, type VectorConnectorEnd as bw, type VectorConnector as bx, type VectorConstraintKind as by, type VectorConstraint as bz, type EffectUse as c, parseCssGradient as c$, type VectorArrowhead as c0, type VectorLens as c1, type VectorResizing as c2, type VectorFrame as c3, type VectorHorizontalResizing as c4, type VectorVerticalResizing as c5, type VectorMask as c6, type VectorAverageAxis as c7, type VectorSymbol as c8, type VectorParameter as c9, VECTOR_MASK_TYPES as cA, VECTOR_MERGE_MODES as cB, VECTOR_PATHFINDER_OPERATIONS as cC, VECTOR_PATH_TEXT_BASELINES as cD, VECTOR_PERSPECTIVE_PLANES as cE, VECTOR_STROKE_GRADIENT_MODES as cF, VECTOR_SYMMETRY_MODES as cG, VECTOR_TEXT_ALIGNS as cH, VECTOR_TOOLS as cI, VECTOR_TRANSFORM_HANDLES as cJ, VECTOR_VERTICAL_RESIZING as cK, type VectorCorner as cL, type VectorGeomRef as cM, type VectorLineCap as cN, type VectorPathTextBaseline as cO, type VectorStrokeLayerKind as cP, type VectorTextRunStyle as cQ, type VectorWarpStyle as cR, CANVAS_GRADIENT_PRESETS as cS, type CanvasLinearGradient as cT, type CanvasRadialGradient as cU, type GradientStop as cV, PIXERATE_BRAND_GRADIENT as cW, type SvgGradientStop as cX, angleToSvgLinearCoords as cY, gradientToSvgDef as cZ, isCanvasGradient as c_, type VectorBlendSpacing as ca, type VectorGradientInterpolation as cb, type VectorStrokeGradientMode as cc, type VectorArrowAlign as cd, type VectorPaintLayer as ce, type VectorStrokeLayer as cf, type VectorBlend as cg, type VectorMergeMode as ch, type VectorLineJoin as ci, type VectorLensType as cj, type VectorStrokeSettings as ck, type VectorInstanceOverrides as cl, VECTOR_ARROWHEADS as cm, VECTOR_BLEND_MODES as cn, VECTOR_BLEND_SPACINGS as co, VECTOR_CONNECTOR_ROUTES as cp, VECTOR_CONNECTOR_SIDES as cq, VECTOR_CONSTRAINT_KINDS as cr, VECTOR_CORNER_KINDS as cs, VECTOR_EFFECT_TYPES as ct, VECTOR_FILTER_TYPES as cu, VECTOR_GRADIENT_INTERPOLATIONS as cv, VECTOR_GRADIENT_SPREADS as cw, VECTOR_GRADIENT_TYPES as cx, VECTOR_HORIZONTAL_RESIZING as cy, VECTOR_LENS_TYPES as cz, type EffectProviderCapabilities as d, resolveCanvasGradient as d0, type EffectValue as e, type EffectDescription as f, type EffectSummary as g, EFFECT_KINDS as h, EFFECT_USES as i, type EffectControlSchema as j, type EffectImageSource as k, type EffectInputSpec as l, type EffectKind as m, type EffectPreset as n, type EffectRenderer as o, type EffectRendererOptions as p, type EffectSearchOptions as q, type EffectSvgAnimation as r, type EffectValues as s, type EffectVectorMotion as t, type EffectVectorTarget as u, EffectsSlot as v, applyEffectMask as w, createEffectPixels as x, effectValueErrors as y, encodeEffectFloat as z };