@pixerate/editor 0.129.0 → 0.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/animation-editor/index.cjs +55 -55
  2. package/dist/animation-editor/index.d.cts +5 -5
  3. package/dist/animation-editor/index.d.ts +5 -5
  4. package/dist/animation-editor/index.js +2 -2
  5. package/dist/{bezier-CvgQiYRg.d.cts → bezier-CdoGygwG.d.cts} +1 -1
  6. package/dist/{bezier-DP4NnJp3.d.ts → bezier-CigmusV_.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-BEGEWQHD.cjs → chunk-2PXRKMOH.cjs} +36 -36
  10. package/dist/{chunk-BEGEWQHD.cjs.map → chunk-2PXRKMOH.cjs.map} +1 -1
  11. package/dist/{chunk-F7Q2NE2Y.js → chunk-ERYGCA72.js} +2 -2
  12. package/dist/{chunk-A6KHMKI4.js → chunk-L5OTIYOO.js} +2 -2
  13. package/dist/{chunk-ORE334I6.cjs → chunk-LXGOYRPE.cjs} +366 -68
  14. package/dist/chunk-LXGOYRPE.cjs.map +1 -0
  15. package/dist/{chunk-XLUYXUBD.cjs → chunk-PMHPXCJC.cjs} +82 -82
  16. package/dist/{chunk-XLUYXUBD.cjs.map → chunk-PMHPXCJC.cjs.map} +1 -1
  17. package/dist/{chunk-ROZFX4QI.js → chunk-PRYMC442.js} +302 -4
  18. package/dist/chunk-PRYMC442.js.map +1 -0
  19. package/dist/effects/index.d.cts +4 -4
  20. package/dist/effects/index.d.ts +4 -4
  21. package/dist/{export-Cbr9IqpJ.d.cts → export-5WDKJqTy.d.cts} +1 -1
  22. package/dist/{export-DotEEyXj.d.ts → export-B4r8b9Ft.d.ts} +3 -3
  23. package/dist/{export-ClPKUB-v.d.ts → export-CU_ARP3A.d.ts} +1 -1
  24. package/dist/{export-DRzNhrdx.d.cts → export-CejjC2iI.d.cts} +3 -3
  25. package/dist/{helpers-C5aAd44p.d.cts → helpers-CzZu51eI.d.cts} +33 -2
  26. package/dist/{helpers-CPWcK504.d.ts → helpers-X_rycLNJ.d.ts} +33 -2
  27. package/dist/image-editor/index.cjs +606 -606
  28. package/dist/image-editor/index.d.cts +8 -8
  29. package/dist/image-editor/index.d.ts +8 -8
  30. package/dist/image-editor/index.js +2 -2
  31. package/dist/{opentype-sQrF3Ry1.d.ts → opentype-CrHAsKh3.d.ts} +2 -2
  32. package/dist/{opentype-BOewaGQx.d.cts → opentype-DlRMYcCW.d.cts} +2 -2
  33. package/dist/paint-editor/index.cjs +7 -7
  34. package/dist/paint-editor/index.d.cts +5 -5
  35. package/dist/paint-editor/index.d.ts +5 -5
  36. package/dist/paint-editor/index.js +2 -2
  37. package/dist/{pathfinder-CnkW7zLI.d.cts → pathfinder-CKfKOVP4.d.cts} +1 -1
  38. package/dist/{pathfinder-BwJx0_zM.d.ts → pathfinder-Dlss70hL.d.ts} +1 -1
  39. package/dist/{pool-CTrtciaN.d.ts → pool-DDOo0xJH.d.ts} +1 -1
  40. package/dist/{pool-C7GtrL34.d.cts → pool-DKic69LD.d.cts} +1 -1
  41. package/dist/{svg-C4LlFnEw.d.cts → svg-BRaii3pI.d.cts} +2 -2
  42. package/dist/{svg-CUzZa0EO.d.ts → svg-BYVZeVo0.d.ts} +2 -2
  43. package/dist/{tools-BpCmUNxb.d.cts → tools-CtheDLDr.d.cts} +1 -1
  44. package/dist/{tools-AugT22z3.d.ts → tools-D8bZ-7YG.d.ts} +1 -1
  45. package/dist/vector/index.cjs +884 -874
  46. package/dist/vector/index.cjs.map +1 -1
  47. package/dist/vector/index.d.cts +53 -10
  48. package/dist/vector/index.d.ts +53 -10
  49. package/dist/vector/index.js +15 -5
  50. package/dist/vector/index.js.map +1 -1
  51. package/dist/video-editor/index.d.cts +4 -4
  52. package/dist/video-editor/index.d.ts +4 -4
  53. package/dist/{warp-D62N_5VK.d.cts → warp-BFoYxy_s.d.cts} +2 -2
  54. package/dist/{warp-CIsO617e.d.ts → warp-CZVC8pB5.d.ts} +2 -2
  55. package/package.json +1 -1
  56. package/skills/pixerate-vector/SKILL.md +1 -1
  57. package/skills/pixerate-vector/references/commands.md +1 -0
  58. package/dist/chunk-ORE334I6.cjs.map +0 -1
  59. package/dist/chunk-ROZFX4QI.js.map +0 -1
  60. /package/dist/{chunk-F7Q2NE2Y.js.map → chunk-ERYGCA72.js.map} +0 -0
  61. /package/dist/{chunk-A6KHMKI4.js.map → chunk-L5OTIYOO.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-C5aAd44p.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-C5aAd44p.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-CzZu51eI.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-CzZu51eI.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-BpCmUNxb.cjs';
4
+ export { A as AppliedEffectInfo, E as EffectChangeResult, a as EffectTargetEffects, b as EffectToolContext, c as EffectToolHost, d as createEffectToolProvider } from '../tools-CtheDLDr.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-C7GtrL34.cjs';
6
+ export { E as EffectRendererPool, a as EffectRendererPoolOptions } from '../pool-DKic69LD.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-CPWcK504.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-CPWcK504.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-X_rycLNJ.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-X_rycLNJ.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-AugT22z3.js';
4
+ export { A as AppliedEffectInfo, E as EffectChangeResult, a as EffectTargetEffects, b as EffectToolContext, c as EffectToolHost, d as createEffectToolProvider } from '../tools-D8bZ-7YG.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-CTrtciaN.js';
6
+ export { E as EffectRendererPool, a as EffectRendererPoolOptions } from '../pool-DDOo0xJH.js';
7
7
  import '../evaluate-BbCeF6pt.js';
8
8
  import '../easing-lM0Xo9Ni.js';
9
9
  import '../types-CwMPoRMU.js';
@@ -1,4 +1,4 @@
1
- import { e as EffectValue, v as EffectsSlot, b as EffectPixels, E as EffectProvider, f as EffectDescription } from './helpers-C5aAd44p.cjs';
1
+ import { e as EffectValue, v as EffectsSlot, b as EffectPixels, E as EffectProvider, f as EffectDescription } from './helpers-CzZu51eI.cjs';
2
2
 
3
3
  /**
4
4
  * Keyframes for a clip's opacity, volume and transform. A property is either a plain number or
@@ -2,9 +2,9 @@ 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-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
- 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';
5
+ import { B as BezierPath } from './bezier-CigmusV_.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-CZVC8pB5.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-X_rycLNJ.js';
8
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
  /**
@@ -1,4 +1,4 @@
1
- import { e as EffectValue, v as EffectsSlot, b as EffectPixels, E as EffectProvider, f as EffectDescription } from './helpers-CPWcK504.js';
1
+ import { e as EffectValue, v as EffectsSlot, b as EffectPixels, E as EffectProvider, f as EffectDescription } from './helpers-X_rycLNJ.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,9 +2,9 @@ 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-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
- 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';
5
+ import { B as BezierPath } from './bezier-CdoGygwG.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-BFoYxy_s.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-CzZu51eI.cjs';
8
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
  /**
@@ -1237,9 +1237,11 @@ type VectorAverageAxis = 'horizontal' | 'vertical' | 'both';
1237
1237
  * `puckerBloat`, `twist`, `zigzag`, `wiggle` (Wiggle Paths), `offset` (Offset Paths), `merge`
1238
1238
  * (Merge Paths), `repeater`, `envelope` (an envelope distortion: a warp preset or a mesh),
1239
1239
  * `contour` (CorelDRAW's Contour: concentric offset steps blending toward end colours) and
1240
- * `blockShadow` (CorelDRAW's Block Shadow: the shape swept along a direction, under it).
1240
+ * `blockShadow` (CorelDRAW's Block Shadow: the shape swept along a direction, under it),
1241
+ * `extrude` (CorelDRAW's Extrude: shaded side faces drawing the shape as a solid) and `bevel`
1242
+ * (CorelDRAW's Bevel: a shaded chiselled edge inside the shape).
1241
1243
  */
1242
- type VectorEffectType = 'trim' | 'roundCorners' | 'puckerBloat' | 'twist' | 'zigzag' | 'wiggle' | 'offset' | 'merge' | 'repeater' | 'envelope' | 'contour' | 'blockShadow';
1244
+ type VectorEffectType = 'trim' | 'roundCorners' | 'puckerBloat' | 'twist' | 'zigzag' | 'wiggle' | 'offset' | 'merge' | 'repeater' | 'envelope' | 'contour' | 'blockShadow' | 'extrude' | 'bevel';
1243
1245
  declare const VECTOR_EFFECT_TYPES: readonly VectorEffectType[];
1244
1246
  /** Warp presets (Photoshop's fifteen, in menu order); shared with the image editor (`src/geom`). */
1245
1247
  type VectorWarpStyle = WarpStyle;
@@ -1364,6 +1366,35 @@ interface VectorEffectParamsMap {
1364
1366
  opacity: number;
1365
1367
  endOpacity: number;
1366
1368
  };
1369
+ /**
1370
+ * Extrude (CorelDRAW's Extrude): each shape drawn as a solid. `parallel` moves the back
1371
+ * `depth` along `angle` (degrees, 0 right, 90 down); `perspective` pulls it `toward` percent
1372
+ * of the way to `vanishingPoint` (offset from the shape's middle). Side faces are filled with
1373
+ * `color` (null: the shape's own solid fill), lightened or darkened by `shading` percent as
1374
+ * they face toward or away from a light coming from `lightAngle` degrees.
1375
+ */
1376
+ extrude: {
1377
+ mode: 'parallel' | 'perspective';
1378
+ angle: number;
1379
+ depth: number;
1380
+ vanishingPoint: Vec2;
1381
+ toward: number;
1382
+ color: string | null;
1383
+ lightAngle: number;
1384
+ shading: number;
1385
+ };
1386
+ /**
1387
+ * Bevel (CorelDRAW's Bevel): a chiselled edge `width` wide inside each shape, one face per
1388
+ * edge, each lightened or darkened by `shading` percent as it faces toward or away from a
1389
+ * light coming from `lightAngle` degrees, in `color` (null: the shape's own paint as one
1390
+ * colour). The middle stays flat in the shape's own paint.
1391
+ */
1392
+ bevel: {
1393
+ width: number;
1394
+ lightAngle: number;
1395
+ shading: number;
1396
+ color: string | null;
1397
+ };
1367
1398
  /**
1368
1399
  * Envelope distortion: the paths above it are mapped from their combined bounds through a warp
1369
1400
  * preset (bend and horizontal / vertical distortion in percent) or, with style `mesh`, through
@@ -1237,9 +1237,11 @@ type VectorAverageAxis = 'horizontal' | 'vertical' | 'both';
1237
1237
  * `puckerBloat`, `twist`, `zigzag`, `wiggle` (Wiggle Paths), `offset` (Offset Paths), `merge`
1238
1238
  * (Merge Paths), `repeater`, `envelope` (an envelope distortion: a warp preset or a mesh),
1239
1239
  * `contour` (CorelDRAW's Contour: concentric offset steps blending toward end colours) and
1240
- * `blockShadow` (CorelDRAW's Block Shadow: the shape swept along a direction, under it).
1240
+ * `blockShadow` (CorelDRAW's Block Shadow: the shape swept along a direction, under it),
1241
+ * `extrude` (CorelDRAW's Extrude: shaded side faces drawing the shape as a solid) and `bevel`
1242
+ * (CorelDRAW's Bevel: a shaded chiselled edge inside the shape).
1241
1243
  */
1242
- type VectorEffectType = 'trim' | 'roundCorners' | 'puckerBloat' | 'twist' | 'zigzag' | 'wiggle' | 'offset' | 'merge' | 'repeater' | 'envelope' | 'contour' | 'blockShadow';
1244
+ type VectorEffectType = 'trim' | 'roundCorners' | 'puckerBloat' | 'twist' | 'zigzag' | 'wiggle' | 'offset' | 'merge' | 'repeater' | 'envelope' | 'contour' | 'blockShadow' | 'extrude' | 'bevel';
1243
1245
  declare const VECTOR_EFFECT_TYPES: readonly VectorEffectType[];
1244
1246
  /** Warp presets (Photoshop's fifteen, in menu order); shared with the image editor (`src/geom`). */
1245
1247
  type VectorWarpStyle = WarpStyle;
@@ -1364,6 +1366,35 @@ interface VectorEffectParamsMap {
1364
1366
  opacity: number;
1365
1367
  endOpacity: number;
1366
1368
  };
1369
+ /**
1370
+ * Extrude (CorelDRAW's Extrude): each shape drawn as a solid. `parallel` moves the back
1371
+ * `depth` along `angle` (degrees, 0 right, 90 down); `perspective` pulls it `toward` percent
1372
+ * of the way to `vanishingPoint` (offset from the shape's middle). Side faces are filled with
1373
+ * `color` (null: the shape's own solid fill), lightened or darkened by `shading` percent as
1374
+ * they face toward or away from a light coming from `lightAngle` degrees.
1375
+ */
1376
+ extrude: {
1377
+ mode: 'parallel' | 'perspective';
1378
+ angle: number;
1379
+ depth: number;
1380
+ vanishingPoint: Vec2;
1381
+ toward: number;
1382
+ color: string | null;
1383
+ lightAngle: number;
1384
+ shading: number;
1385
+ };
1386
+ /**
1387
+ * Bevel (CorelDRAW's Bevel): a chiselled edge `width` wide inside each shape, one face per
1388
+ * edge, each lightened or darkened by `shading` percent as it faces toward or away from a
1389
+ * light coming from `lightAngle` degrees, in `color` (null: the shape's own paint as one
1390
+ * colour). The middle stays flat in the shape's own paint.
1391
+ */
1392
+ bevel: {
1393
+ width: number;
1394
+ lightAngle: number;
1395
+ shading: number;
1396
+ color: string | null;
1397
+ };
1367
1398
  /**
1368
1399
  * Envelope distortion: the paths above it are mapped from their combined bounds through a warp
1369
1400
  * preset (bend and horizontal / vertical distortion in percent) or, with style `mesh`, through