@pixerate/editor 0.120.0 → 0.121.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 (48) hide show
  1. package/dist/{chunk-UMVW2Q66.js → chunk-4I54JSJ6.js} +2 -2
  2. package/dist/{chunk-N3467VD6.js → chunk-7QN76ESJ.js} +1 -179
  3. package/dist/chunk-7QN76ESJ.js.map +1 -0
  4. package/dist/{chunk-EJVDBITD.cjs → chunk-DCLJNVZS.cjs} +2 -180
  5. package/dist/chunk-DCLJNVZS.cjs.map +1 -0
  6. package/dist/{chunk-BOWUU4LJ.js → chunk-E6N5KLMA.js} +11 -9
  7. package/dist/{chunk-BOWUU4LJ.js.map → chunk-E6N5KLMA.js.map} +1 -1
  8. package/dist/{chunk-HTAFDTNR.cjs → chunk-GLOOH65Y.cjs} +156 -154
  9. package/dist/chunk-GLOOH65Y.cjs.map +1 -0
  10. package/dist/chunk-GX332W2C.js +181 -0
  11. package/dist/chunk-GX332W2C.js.map +1 -0
  12. package/dist/{chunk-TS5IEUW6.cjs → chunk-K7V27T72.cjs} +178 -3
  13. package/dist/chunk-K7V27T72.cjs.map +1 -0
  14. package/dist/{chunk-WMRIG4XQ.cjs → chunk-LL3RAN55.cjs} +17 -17
  15. package/dist/{chunk-WMRIG4XQ.cjs.map → chunk-LL3RAN55.cjs.map} +1 -1
  16. package/dist/chunk-MUUXNRU4.cjs +181 -0
  17. package/dist/chunk-MUUXNRU4.cjs.map +1 -0
  18. package/dist/{chunk-YHW26LS2.js → chunk-ZZPGTNXJ.js} +177 -2
  19. package/dist/chunk-ZZPGTNXJ.js.map +1 -0
  20. package/dist/image-editor/index.cjs +754 -734
  21. package/dist/image-editor/index.cjs.map +1 -1
  22. package/dist/image-editor/index.d.cts +1 -1
  23. package/dist/image-editor/index.d.ts +1 -1
  24. package/dist/image-editor/index.js +31 -11
  25. package/dist/image-editor/index.js.map +1 -1
  26. package/dist/paint/index.cjs +22 -2
  27. package/dist/paint/index.cjs.map +1 -1
  28. package/dist/paint/index.d.cts +159 -1
  29. package/dist/paint/index.d.ts +159 -1
  30. package/dist/paint/index.js +21 -1
  31. package/dist/paint-editor/index.cjs +95 -94
  32. package/dist/paint-editor/index.cjs.map +1 -1
  33. package/dist/paint-editor/index.js +12 -11
  34. package/dist/paint-editor/index.js.map +1 -1
  35. package/dist/raster/index.cjs +5 -4
  36. package/dist/raster/index.cjs.map +1 -1
  37. package/dist/raster/index.js +11 -10
  38. package/dist/vector/index.cjs +14 -12
  39. package/dist/vector/index.cjs.map +1 -1
  40. package/dist/vector/index.js +7 -5
  41. package/dist/vector/index.js.map +1 -1
  42. package/package.json +1 -1
  43. package/dist/chunk-EJVDBITD.cjs.map +0 -1
  44. package/dist/chunk-HTAFDTNR.cjs.map +0 -1
  45. package/dist/chunk-N3467VD6.js.map +0 -1
  46. package/dist/chunk-TS5IEUW6.cjs.map +0 -1
  47. package/dist/chunk-YHW26LS2.js.map +0 -1
  48. /package/dist/{chunk-UMVW2Q66.js.map → chunk-4I54JSJ6.js.map} +0 -0
@@ -14,7 +14,7 @@ export { D as DEFAULT_AUTO_LEADING, E as DEFAULT_TEXT_STYLE, F as LaidChar, L as
14
14
  import { B as BezierPath } from '../bezier-BfwIbVTl.cjs';
15
15
  import { a as MixerLoad, M as MixerSettings } from '../flow-A2Dj-69w.cjs';
16
16
  export { F as BlenderScratch, i as BlenderSettings, B as BrushSettings, C as CoverageMap, G as DEFAULT_BLENDER, H as DEFAULT_BRUSH, s as DEFAULT_FLOW, I as DEFAULT_MIXER, J as DEFAULT_RETOUCH, K as DEFAULT_SMUDGE, L as DEFAULT_WET_PAPER, t as DEFAULT_WET_PARAMS, N as DRY_EPS, D as Dab, O as DabWalker, Q as EMPTY_MIXER_LOAD, U as EX, V as EY, X as ExchangeRates, Y as FLAG_ALIVE, Z as FLAG_BOTTOM, _ as FLAG_LEFT, $ as FLAG_RIGHT, a0 as FLAG_TOP, a1 as FLAG_WET, a2 as FLAT, a3 as FREE_INTERVAL, a4 as MAX_BATCH, u as MAX_BRUSH_SIZE, a5 as MAX_TILT_ACCEL, a6 as MAX_WET_LANES, a7 as MAX_WET_SLOTS, a8 as MIXER_DRAIN, a9 as MIXER_PICKUP_RATE, aa as MIXING_MODELS, c as MixerStroke, b as MixerTarget, h as MixingModel, ab as OPP, ac as PAPER_CAPACITY, ad as PARAM, ae as PARAM_FLOATS, af as PIGMENT_CHANNELS, ag as PLANE, ah as PLANE_BYTES, ai as P_D0, aj as P_EDGE, ak as P_FX, al as P_FY, am as P_H, an as P_P0, ao as P_RHO, ap as P_SW, aq as P_UX, ar as P_UY, as as PaintExchange, at as PaintMedium, au as PaintPixels, av as PaintSample, P as PaintTileTarget, aw as PixelSource, ax as RETOUCH_SAMPLES, ay as RegionPixelSource, d as RetouchApply, az as RetouchDabEffect, aA as RetouchDabStroke, f as RetouchPaint, aB as RetouchSample, R as RetouchSettings, n as RgbTriple, aC as SET_PLANES, aD as SLOT_BYTES, aE as SLOT_PLANES, aF as SLOT_SIDE, aG as SPOT_HEAL_TYPES, aH as STRIP, aI as SmudgeDab, j as SmudgeSettings, aJ as SmudgeTip, aK as SpotHealType, g as StrokeApply, S as StrokeCoverage, e as StrokePoint, aL as TONE_RANGES, T as TileMedium, aM as TileMediumOptions, aN as TilePixelSource, aO as ToneRange, aP as U_MAX, aQ as W9, v as WET_FLOW_KINDS, w as WET_PARAM_KEYS, aR as WET_TILE, p as WetBackendInfo, aS as WetFlowField, x as WetFlowKind, m as WetFlowSpec, aT as WetKernelKind, aU as WetLaneOptions, aV as WetLaneStats, aW as WetPaper, r as WetPaperInput, l as WetParams, q as WetSnapshot, y as WetSupport, k as WetTilt, aX as WetWorkerLayout, aY as WetWorkerPool, W as WetWorld, aZ as WetWorldError, o as WetWorldOptions, a_ as applyRetouchToTile, a$ as applyStrokeToDeepTile, b0 as applyStrokeToTile, b1 as applyToneToDeepTile, b2 as blendRadius, b3 as blenderDab, b4 as canShareMemory, b5 as cleanMixer, b6 as coverageTileCoord, b7 as createBlenderScratch, b8 as dabCoverage, b9 as dabRect, ba as dodgeBurn, bb as dodgeBurnCurve, bc as dsincos, bd as edgeBits, be as exchangeRates, bf as flowField, bg as healPixels, bh as latticeViscosity, bi as loadMixer, bj as loadWetKernel, bk as luma, bl as mixerRates, bm as normalizeBlender, bn as normalizeBrush, z as normalizeFlow, bo as normalizeMixer, bp as normalizeRetouch, bq as normalizeSmudge, br as normalizeTilt, A as normalizeWetParams, bs as packWetParams, bt as perDabStrength, bu as put255, bv as rasterizeDab, bw as readSourceRegion, bx as rgbaViewOfGrey, by as saturationOf, bz as smoothPoints, bA as smudgeEffect, bB as sponge, bC as spongeEffect, bD as spotHealPixels, bE as spotHealWindow, bF as tipFalloff, bG as tipReach, bH as tipShape, bI as toneOf, bJ as walkDabs, bK as wetSimdSupported, E as wetSupport } from '../flow-A2Dj-69w.cjs';
17
- export { BODY_SCATTER, HIDE, PIGMENT_UNIT, PaintPathOptions, PathSample, PathStrokeOptions, SRGB_TO_LINEAR, WetMedium, WetMediumOptions, bestOffset, createPigmentTools, dexp, dilateMask, dlog, dpow, expNeg, filmPixel, filmReflectance, linearToSrgb8, maskBounds, membraneFill, paintPathStroke, pathStrokeCoverage, pathStrokeDabs, pigmentColor, pigmentOf, pixelPigment, seamlessClone, shadeTile, solveMembrane, srgbByteToLinear, stepSlotTs } from '../paint/index.cjs';
17
+ export { BODY_SCATTER, BrushstrokeBrush, BrushstrokeCache, BrushstrokeCanvasLike, BrushstrokeImage, BrushstrokeInput, BrushstrokeOptions, BrushstrokePaint, BrushstrokeProfilePath, BrushstrokeSample, HIDE, PIGMENT_UNIT, PaintPathOptions, PathSample, PathStrokeOptions, SRGB_TO_LINEAR, WetMedium, WetMediumOptions, bestOffset, brushstrokeDataUrl, brushstrokeKey, brushstrokeSamples, brushstrokeScaleBucket, brushstrokeStrokeOptions, brushstrokeToCanvas, createPigmentTools, dexp, dilateMask, dlog, dpow, expNeg, filmPixel, filmReflectance, isBrushstrokeBrush, linearToSrgb8, maskBounds, membraneFill, paintPathStroke, pathStrokeCoverage, pathStrokeDabs, pigmentColor, pigmentOf, pixelPigment, renderBrushstroke, seamlessClone, shadeTile, solveMembrane, srgbByteToLinear, stepSlotTs } from '../paint/index.cjs';
18
18
  import { j as Intent, b as BuiltinProfileId } from '../builtin-CY97ppKM.cjs';
19
19
  export { a as BUILTIN_PROFILES, i as INTENTS } from '../builtin-CY97ppKM.cjs';
20
20
  import { W as WarpStyle, a as WarpMesh, V as Vec2, Q as Quad } from '../types-CwMPoRMU.cjs';
@@ -14,7 +14,7 @@ export { D as DEFAULT_AUTO_LEADING, E as DEFAULT_TEXT_STYLE, F as LaidChar, L as
14
14
  import { B as BezierPath } from '../bezier-DYBvLgUH.js';
15
15
  import { a as MixerLoad, M as MixerSettings } from '../flow-C95atNoQ.js';
16
16
  export { F as BlenderScratch, i as BlenderSettings, B as BrushSettings, C as CoverageMap, G as DEFAULT_BLENDER, H as DEFAULT_BRUSH, s as DEFAULT_FLOW, I as DEFAULT_MIXER, J as DEFAULT_RETOUCH, K as DEFAULT_SMUDGE, L as DEFAULT_WET_PAPER, t as DEFAULT_WET_PARAMS, N as DRY_EPS, D as Dab, O as DabWalker, Q as EMPTY_MIXER_LOAD, U as EX, V as EY, X as ExchangeRates, Y as FLAG_ALIVE, Z as FLAG_BOTTOM, _ as FLAG_LEFT, $ as FLAG_RIGHT, a0 as FLAG_TOP, a1 as FLAG_WET, a2 as FLAT, a3 as FREE_INTERVAL, a4 as MAX_BATCH, u as MAX_BRUSH_SIZE, a5 as MAX_TILT_ACCEL, a6 as MAX_WET_LANES, a7 as MAX_WET_SLOTS, a8 as MIXER_DRAIN, a9 as MIXER_PICKUP_RATE, aa as MIXING_MODELS, c as MixerStroke, b as MixerTarget, h as MixingModel, ab as OPP, ac as PAPER_CAPACITY, ad as PARAM, ae as PARAM_FLOATS, af as PIGMENT_CHANNELS, ag as PLANE, ah as PLANE_BYTES, ai as P_D0, aj as P_EDGE, ak as P_FX, al as P_FY, am as P_H, an as P_P0, ao as P_RHO, ap as P_SW, aq as P_UX, ar as P_UY, as as PaintExchange, at as PaintMedium, au as PaintPixels, av as PaintSample, P as PaintTileTarget, aw as PixelSource, ax as RETOUCH_SAMPLES, ay as RegionPixelSource, d as RetouchApply, az as RetouchDabEffect, aA as RetouchDabStroke, f as RetouchPaint, aB as RetouchSample, R as RetouchSettings, n as RgbTriple, aC as SET_PLANES, aD as SLOT_BYTES, aE as SLOT_PLANES, aF as SLOT_SIDE, aG as SPOT_HEAL_TYPES, aH as STRIP, aI as SmudgeDab, j as SmudgeSettings, aJ as SmudgeTip, aK as SpotHealType, g as StrokeApply, S as StrokeCoverage, e as StrokePoint, aL as TONE_RANGES, T as TileMedium, aM as TileMediumOptions, aN as TilePixelSource, aO as ToneRange, aP as U_MAX, aQ as W9, v as WET_FLOW_KINDS, w as WET_PARAM_KEYS, aR as WET_TILE, p as WetBackendInfo, aS as WetFlowField, x as WetFlowKind, m as WetFlowSpec, aT as WetKernelKind, aU as WetLaneOptions, aV as WetLaneStats, aW as WetPaper, r as WetPaperInput, l as WetParams, q as WetSnapshot, y as WetSupport, k as WetTilt, aX as WetWorkerLayout, aY as WetWorkerPool, W as WetWorld, aZ as WetWorldError, o as WetWorldOptions, a_ as applyRetouchToTile, a$ as applyStrokeToDeepTile, b0 as applyStrokeToTile, b1 as applyToneToDeepTile, b2 as blendRadius, b3 as blenderDab, b4 as canShareMemory, b5 as cleanMixer, b6 as coverageTileCoord, b7 as createBlenderScratch, b8 as dabCoverage, b9 as dabRect, ba as dodgeBurn, bb as dodgeBurnCurve, bc as dsincos, bd as edgeBits, be as exchangeRates, bf as flowField, bg as healPixels, bh as latticeViscosity, bi as loadMixer, bj as loadWetKernel, bk as luma, bl as mixerRates, bm as normalizeBlender, bn as normalizeBrush, z as normalizeFlow, bo as normalizeMixer, bp as normalizeRetouch, bq as normalizeSmudge, br as normalizeTilt, A as normalizeWetParams, bs as packWetParams, bt as perDabStrength, bu as put255, bv as rasterizeDab, bw as readSourceRegion, bx as rgbaViewOfGrey, by as saturationOf, bz as smoothPoints, bA as smudgeEffect, bB as sponge, bC as spongeEffect, bD as spotHealPixels, bE as spotHealWindow, bF as tipFalloff, bG as tipReach, bH as tipShape, bI as toneOf, bJ as walkDabs, bK as wetSimdSupported, E as wetSupport } from '../flow-C95atNoQ.js';
17
- export { BODY_SCATTER, HIDE, PIGMENT_UNIT, PaintPathOptions, PathSample, PathStrokeOptions, SRGB_TO_LINEAR, WetMedium, WetMediumOptions, bestOffset, createPigmentTools, dexp, dilateMask, dlog, dpow, expNeg, filmPixel, filmReflectance, linearToSrgb8, maskBounds, membraneFill, paintPathStroke, pathStrokeCoverage, pathStrokeDabs, pigmentColor, pigmentOf, pixelPigment, seamlessClone, shadeTile, solveMembrane, srgbByteToLinear, stepSlotTs } from '../paint/index.js';
17
+ export { BODY_SCATTER, BrushstrokeBrush, BrushstrokeCache, BrushstrokeCanvasLike, BrushstrokeImage, BrushstrokeInput, BrushstrokeOptions, BrushstrokePaint, BrushstrokeProfilePath, BrushstrokeSample, HIDE, PIGMENT_UNIT, PaintPathOptions, PathSample, PathStrokeOptions, SRGB_TO_LINEAR, WetMedium, WetMediumOptions, bestOffset, brushstrokeDataUrl, brushstrokeKey, brushstrokeSamples, brushstrokeScaleBucket, brushstrokeStrokeOptions, brushstrokeToCanvas, createPigmentTools, dexp, dilateMask, dlog, dpow, expNeg, filmPixel, filmReflectance, isBrushstrokeBrush, linearToSrgb8, maskBounds, membraneFill, paintPathStroke, pathStrokeCoverage, pathStrokeDabs, pigmentColor, pigmentOf, pixelPigment, renderBrushstroke, seamlessClone, shadeTile, solveMembrane, srgbByteToLinear, stepSlotTs } from '../paint/index.js';
18
18
  import { j as Intent, b as BuiltinProfileId } from '../builtin-CY97ppKM.js';
19
19
  export { a as BUILTIN_PROFILES, i as INTENTS } from '../builtin-CY97ppKM.js';
20
20
  import { W as WarpStyle, a as WarpMesh, V as Vec2, Q as Quad } from '../types-CwMPoRMU.js';
@@ -358,7 +358,7 @@ import {
358
358
  writePsd,
359
359
  xyToTempTint,
360
360
  xyToUv
361
- } from "../chunk-BOWUU4LJ.js";
361
+ } from "../chunk-E6N5KLMA.js";
362
362
  import {
363
363
  loadDocument
364
364
  } from "../chunk-U5HZSFCS.js";
@@ -416,24 +416,18 @@ import {
416
416
  validateLayerEffects,
417
417
  warpSurface,
418
418
  workingToSamples
419
- } from "../chunk-UMVW2Q66.js";
419
+ } from "../chunk-4I54JSJ6.js";
420
420
  import {
421
421
  applyHomography,
422
- base64ToBytes,
423
422
  boxQuad,
424
- bytesToBase64,
425
- decodePng,
426
- encodePng,
427
423
  homographyFromAffine,
428
424
  homographyFromPoints,
429
425
  invertHomography,
430
- isPng,
431
426
  multiplyHomographies,
432
- parseDataUrl,
433
- pngDataUrl,
434
427
  rectToQuad
435
- } from "../chunk-N3467VD6.js";
428
+ } from "../chunk-GX332W2C.js";
436
429
  import {
430
+ BrushstrokeCache,
437
431
  DEFAULT_RETOUCH,
438
432
  RETOUCH_SAMPLES,
439
433
  RegionPixelSource,
@@ -444,10 +438,17 @@ import {
444
438
  applyRetouchToTile,
445
439
  applyToneToDeepTile,
446
440
  bestOffset,
441
+ brushstrokeDataUrl,
442
+ brushstrokeKey,
443
+ brushstrokeSamples,
444
+ brushstrokeScaleBucket,
445
+ brushstrokeStrokeOptions,
446
+ brushstrokeToCanvas,
447
447
  dilateMask,
448
448
  dodgeBurn,
449
449
  dodgeBurnCurve,
450
450
  healPixels,
451
+ isBrushstrokeBrush,
451
452
  luma,
452
453
  maskBounds,
453
454
  membraneFill,
@@ -457,6 +458,7 @@ import {
457
458
  pathStrokeDabs,
458
459
  perDabStrength,
459
460
  readSourceRegion,
461
+ renderBrushstroke,
460
462
  rgbaViewOfGrey,
461
463
  saturationOf,
462
464
  seamlessClone,
@@ -467,7 +469,7 @@ import {
467
469
  spotHealPixels,
468
470
  spotHealWindow,
469
471
  toneOf
470
- } from "../chunk-YHW26LS2.js";
472
+ } from "../chunk-ZZPGTNXJ.js";
471
473
  import {
472
474
  BODY_SCATTER,
473
475
  CoverageMap,
@@ -665,6 +667,15 @@ import {
665
667
  writeDeepRegion,
666
668
  writeRegion
667
669
  } from "../chunk-HKDTM6VC.js";
670
+ import {
671
+ base64ToBytes,
672
+ bytesToBase64,
673
+ decodePng,
674
+ encodePng,
675
+ isPng,
676
+ parseDataUrl,
677
+ pngDataUrl
678
+ } from "../chunk-7QN76ESJ.js";
668
679
  import {
669
680
  BUILTIN_PROFILES,
670
681
  CmsError,
@@ -14190,6 +14201,7 @@ export {
14190
14201
  BODY_SCATTER,
14191
14202
  BRUSH_OPTION_CONTROLS,
14192
14203
  BUILTIN_PROFILES,
14204
+ BrushstrokeCache,
14193
14205
  COLOR_MODE_OPTIONS,
14194
14206
  CoverageMap,
14195
14207
  D50,
@@ -14434,6 +14446,12 @@ export {
14434
14446
  boxQuad,
14435
14447
  boxToCurvePoint,
14436
14448
  bradfordAdaptation,
14449
+ brushstrokeDataUrl,
14450
+ brushstrokeKey,
14451
+ brushstrokeSamples,
14452
+ brushstrokeScaleBucket,
14453
+ brushstrokeStrokeOptions,
14454
+ brushstrokeToCanvas,
14437
14455
  buildLayerMaskPlanes,
14438
14456
  buildToneLut,
14439
14457
  builtinPattern,
@@ -14652,6 +14670,7 @@ export {
14652
14670
  isAdjustmentKind,
14653
14671
  isBitDepth,
14654
14672
  isBlendMode,
14673
+ isBrushstrokeBrush,
14655
14674
  isContentsDecoded,
14656
14675
  isDefaultDepthMask,
14657
14676
  isIdentityTransform,
@@ -14852,6 +14871,7 @@ export {
14852
14871
  removeLayerEffect,
14853
14872
  removeLayerFilter,
14854
14873
  removeSmartFilter,
14874
+ renderBrushstroke,
14855
14875
  renderLayerEffects,
14856
14876
  renderLayeredBase,
14857
14877
  renderShape,