@pixerate/editor 0.126.0 → 0.128.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 (125) 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/index.d.cts +2 -3
  6. package/dist/animation/index.d.ts +2 -3
  7. package/dist/animation-editor/index.cjs +63 -63
  8. package/dist/animation-editor/index.cjs.map +1 -1
  9. package/dist/animation-editor/index.d.cts +7 -9
  10. package/dist/animation-editor/index.d.ts +7 -9
  11. package/dist/animation-editor/index.js +10 -10
  12. package/dist/{arrange-BlfgJ_wt.d.ts → arrange-BUREmgD9.d.ts} +1 -1
  13. package/dist/{arrange-CD6Gh-pd.d.cts → arrange-CKXK_hf7.d.cts} +1 -1
  14. package/dist/{bezier-CWv6LQal.d.ts → bezier-CvgQiYRg.d.cts} +23 -3
  15. package/dist/{bezier-CBzKKDjl.d.cts → bezier-DP4NnJp3.d.ts} +23 -3
  16. package/dist/{brushTypes-IG7ZZjIN.d.cts → brushTypes-C7N3EBK7.d.cts} +56 -1
  17. package/dist/{brushTypes-IG7ZZjIN.d.ts → brushTypes-C7N3EBK7.d.ts} +56 -1
  18. package/dist/{brushstrokeRender-EELTV7U4.cjs → brushstrokeRender-JNHVEUFG.cjs} +29 -10
  19. package/dist/brushstrokeRender-JNHVEUFG.cjs.map +1 -0
  20. package/dist/{brushstrokeRender-LRV7GXGD.js → brushstrokeRender-SII6MG4R.js} +25 -6
  21. package/dist/brushstrokeRender-SII6MG4R.js.map +1 -0
  22. package/dist/{builtins-DMIsnNst.d.cts → builtins-Cc-bH-3U.d.cts} +3 -2
  23. package/dist/{builtins-B5-ipm5u.d.ts → builtins-ZU1GJnUA.d.ts} +3 -2
  24. package/dist/canvas/index.cjs +435 -38
  25. package/dist/canvas/index.cjs.map +1 -1
  26. package/dist/canvas/index.d.cts +206 -16
  27. package/dist/canvas/index.d.ts +206 -16
  28. package/dist/canvas/index.js +408 -11
  29. package/dist/canvas/index.js.map +1 -1
  30. package/dist/{chunk-MPQAO33O.js → chunk-A6KHMKI4.js} +3 -3
  31. package/dist/{chunk-V5YGPRCZ.cjs → chunk-BEGEWQHD.cjs} +41 -41
  32. package/dist/{chunk-V5YGPRCZ.cjs.map → chunk-BEGEWQHD.cjs.map} +1 -1
  33. package/dist/{chunk-N3FVUOZD.cjs → chunk-BJTCSLF6.cjs} +7 -7
  34. package/dist/{chunk-N3FVUOZD.cjs.map → chunk-BJTCSLF6.cjs.map} +1 -1
  35. package/dist/{chunk-7LQO6OHH.cjs → chunk-DDSO4HS7.cjs} +9 -5
  36. package/dist/chunk-DDSO4HS7.cjs.map +1 -0
  37. package/dist/{chunk-AKU2KQ47.cjs → chunk-DFSZO2B5.cjs} +70 -3
  38. package/dist/chunk-DFSZO2B5.cjs.map +1 -0
  39. package/dist/{chunk-WUDPFWAN.js → chunk-F7Q2NE2Y.js} +3 -3
  40. package/dist/{chunk-GUZ47CJM.cjs → chunk-IZ4WRXZA.cjs} +1 -1
  41. package/dist/{chunk-GUZ47CJM.cjs.map → chunk-IZ4WRXZA.cjs.map} +1 -1
  42. package/dist/{chunk-GLWZXQ4Q.js → chunk-KHNZ6MOU.js} +1 -1
  43. package/dist/chunk-KHNZ6MOU.js.map +1 -0
  44. package/dist/{chunk-GCJWMEYW.cjs → chunk-KSJLDRHK.cjs} +46 -46
  45. package/dist/{chunk-GCJWMEYW.cjs.map → chunk-KSJLDRHK.cjs.map} +1 -1
  46. package/dist/{chunk-2SDGZAJR.js → chunk-LSXXAJG3.js} +70 -3
  47. package/dist/chunk-LSXXAJG3.js.map +1 -0
  48. package/dist/{chunk-QQKTOA4U.cjs → chunk-ORE334I6.cjs} +132 -132
  49. package/dist/{chunk-QQKTOA4U.cjs.map → chunk-ORE334I6.cjs.map} +1 -1
  50. package/dist/{chunk-X6KTSFAE.js → chunk-Q4NBEVV5.js} +2 -2
  51. package/dist/{chunk-FPRIUR4T.js → chunk-ROZFX4QI.js} +3 -3
  52. package/dist/{chunk-J67OLQUQ.js → chunk-SVYE5HIM.js} +7 -3
  53. package/dist/chunk-SVYE5HIM.js.map +1 -0
  54. package/dist/{chunk-O5RVCDEC.cjs → chunk-XLUYXUBD.cjs} +88 -88
  55. package/dist/{chunk-O5RVCDEC.cjs.map → chunk-XLUYXUBD.cjs.map} +1 -1
  56. package/dist/{chunk-FG274FYT.js → chunk-YGJIER2R.js} +2 -2
  57. package/dist/commands/index.cjs +2 -2
  58. package/dist/commands/index.d.cts +3 -3
  59. package/dist/commands/index.d.ts +3 -3
  60. package/dist/commands/index.js +1 -1
  61. package/dist/effects/index.d.cts +6 -38
  62. package/dist/effects/index.d.ts +6 -38
  63. package/dist/evaluate-BbCeF6pt.d.ts +114 -0
  64. package/dist/evaluate-BsxYieLN.d.cts +114 -0
  65. package/dist/{export-Bp7ji2r4.d.cts → export-BkYQvV56.d.cts} +4 -4
  66. package/dist/{export-DVl4fWy5.d.cts → export-Cbr9IqpJ.d.cts} +1 -1
  67. package/dist/{export-C1s4eolZ.d.ts → export-ClPKUB-v.d.ts} +1 -1
  68. package/dist/{export-DAyPY94f.d.ts → export-DHrFJ8r_.d.ts} +4 -4
  69. package/dist/{helpers-i95Ob6Vi.d.cts → helpers-C5aAd44p.d.cts} +67 -4
  70. package/dist/{helpers-BBLlekuM.d.ts → helpers-CPWcK504.d.ts} +67 -4
  71. package/dist/image-editor/index.cjs +606 -606
  72. package/dist/image-editor/index.cjs.map +1 -1
  73. package/dist/image-editor/index.d.cts +12 -14
  74. package/dist/image-editor/index.d.ts +12 -14
  75. package/dist/image-editor/index.js +4 -4
  76. package/dist/{opentype-D80AVmMu.d.cts → opentype-BOewaGQx.d.cts} +1 -1
  77. package/dist/{opentype-14PDI5D2.d.ts → opentype-sQrF3Ry1.d.ts} +1 -1
  78. package/dist/paint/index.d.cts +2 -2
  79. package/dist/paint/index.d.ts +2 -2
  80. package/dist/paint-editor/index.cjs +9 -9
  81. package/dist/paint-editor/index.cjs.map +1 -1
  82. package/dist/paint-editor/index.d.cts +9 -11
  83. package/dist/paint-editor/index.d.ts +9 -11
  84. package/dist/paint-editor/index.js +4 -4
  85. package/dist/{pathfinder-DjISxkUv.d.ts → pathfinder-BwJx0_zM.d.ts} +2 -2
  86. package/dist/{pathfinder-C0UoFypx.d.cts → pathfinder-CnkW7zLI.d.cts} +2 -2
  87. package/dist/{player-cGLrngL_.d.ts → player-BK2kKbfd.d.ts} +1 -1
  88. package/dist/{player-CBtEoU2x.d.cts → player-CmbY3218.d.cts} +1 -1
  89. package/dist/pool-C7GtrL34.d.cts +34 -0
  90. package/dist/pool-CTrtciaN.d.ts +34 -0
  91. package/dist/{rand-CfinE-1c.d.cts → rand-DTXAssW1.d.cts} +4 -4
  92. package/dist/{rand-DtazXGOB.d.ts → rand-pQQ2sJTk.d.ts} +4 -4
  93. package/dist/{svg-DJKriJ4A.d.ts → svg-C4LlFnEw.d.cts} +2 -3
  94. package/dist/{svg-BkRL-fZJ.d.cts → svg-CUzZa0EO.d.ts} +2 -3
  95. package/dist/{tools-CM8Oe8F3.d.ts → tools-AugT22z3.d.ts} +1 -1
  96. package/dist/{tools-DZCv2kX1.d.cts → tools-BpCmUNxb.d.cts} +1 -1
  97. package/dist/vector/index.cjs +918 -918
  98. package/dist/vector/index.cjs.map +1 -1
  99. package/dist/vector/index.d.cts +11 -13
  100. package/dist/vector/index.d.ts +11 -13
  101. package/dist/vector/index.js +11 -11
  102. package/dist/video-editor/index.d.cts +6 -8
  103. package/dist/video-editor/index.d.ts +6 -8
  104. package/dist/{warp-k_PdtXOG.d.ts → warp-CIsO617e.d.ts} +1 -1
  105. package/dist/{warp-CH9MM435.d.cts → warp-D62N_5VK.d.cts} +1 -1
  106. package/package.json +1 -1
  107. package/skills/pixerate-canvas/SKILL.md +30 -2
  108. package/dist/behavior-Ymbld6jL.d.cts +0 -60
  109. package/dist/behavior-Ymbld6jL.d.ts +0 -60
  110. package/dist/brushstrokeRender-EELTV7U4.cjs.map +0 -1
  111. package/dist/brushstrokeRender-LRV7GXGD.js.map +0 -1
  112. package/dist/chunk-2SDGZAJR.js.map +0 -1
  113. package/dist/chunk-7LQO6OHH.cjs.map +0 -1
  114. package/dist/chunk-AKU2KQ47.cjs.map +0 -1
  115. package/dist/chunk-GLWZXQ4Q.js.map +0 -1
  116. package/dist/chunk-J67OLQUQ.js.map +0 -1
  117. package/dist/evaluate-2S3vSPLy.d.cts +0 -55
  118. package/dist/evaluate-CfmT6xA3.d.ts +0 -55
  119. package/dist/gradient-KDfCvhuj.d.cts +0 -66
  120. package/dist/gradient-KDfCvhuj.d.ts +0 -66
  121. /package/dist/{chunk-MPQAO33O.js.map → chunk-A6KHMKI4.js.map} +0 -0
  122. /package/dist/{chunk-WUDPFWAN.js.map → chunk-F7Q2NE2Y.js.map} +0 -0
  123. /package/dist/{chunk-X6KTSFAE.js.map → chunk-Q4NBEVV5.js.map} +0 -0
  124. /package/dist/{chunk-FPRIUR4T.js.map → chunk-ROZFX4QI.js.map} +0 -0
  125. /package/dist/{chunk-FG274FYT.js.map → chunk-YGJIER2R.js.map} +0 -0
@@ -1,23 +1,21 @@
1
1
  import { a1 as RasterLayer, a0 as RasterGroupLayer, a5 as RasterPixelLayer, C as CompositorLayer, a as RasterCompositor, R as RasterSources, U as LayerLocks } from '../deep-CcwHkQdb.cjs';
2
- import { D as Dab, C as CoverageMap, B as BrushSettings, e as StrokePoint, g as PaintTileTarget, i as PaintGradientSource, T as TileMedium, M as MixerSettings, j as MixingModel, k as BlenderSettings, l as SmudgeSettings, P as PaintSource, a as MixerLoad, W as WetWorld, m as WetTilt, n as WetParams, o as WetFlowSpec, p as RgbTriple, q as WetWorldOptions, r as WetGpuProvider, s as WetBackendInfo, t as WetSnapshot, u as WetPaperInput } from '../rand-CfinE-1c.cjs';
3
- export { v as DEFAULT_FLOW, w as DEFAULT_PAINT_GRADIENT, x as DEFAULT_PAINT_GRADIENT_MAPPING, y as DEFAULT_WET_PARAMS, z as MAX_BRUSH_SIZE, A as PAINT_COLOR_JSON_SCHEMA, E as PAINT_GRADIENT_FULL_SPEED, F as PAINT_GRADIENT_JSON_SCHEMA, G as PAINT_GRADIENT_KIT, H as PAINT_GRADIENT_MAPPINGS, I as PAINT_GRADIENT_MAPPING_LABELS, J as PAINT_GRADIENT_PRESETS, K as PAINT_GRADIENT_REPEATS, L as PAINT_GRADIENT_REPEAT_LABELS, N as PAINT_GRADIENT_SPACES, O as PAINT_GRADIENT_SPACE_LABELS, Q as PAINT_SOURCE_JSON_SCHEMA, U as PaintColorSource, V as PaintDabParams, X as PaintGradientKit, Y as PaintGradientMapping, Z as PaintGradientMappingKind, _ as PaintGradientRepeat, $ as PaintGradientSample, a0 as PaintGradientSampler, a1 as PaintGradientSpace, a2 as PaintGradientStop, a3 as PaintRgb, a4 as PaintSourceError, a5 as WET_FLOW_KINDS, a6 as WET_PARAM_KEYS, a7 as WetFlowKind, a8 as WetSupport, a9 as addPaintGradientStop, aa as hash2, ab as hexToPaintRgb, ac as isGradientPaint, ad as mix32, ae as normalizeFlow, af as normalizeHexColor, ag as normalizeWetParams, ah as paintGradientMappingFor, ai as paintSourceColor, aj as paintSourceCss, ak as parsePaintSource, al as rand01, am as readPaintSource, an as removePaintGradientStop, ao as resolvePaintGradient, ap as reversePaintGradient, aq as scalePaintGradient, ar as solidPaint, as as updatePaintGradientStop, at as wetSupport } from '../rand-CfinE-1c.cjs';
2
+ import { D as Dab, C as CoverageMap, B as BrushSettings, e as StrokePoint, g as PaintTileTarget, i as PaintGradientSource, T as TileMedium, M as MixerSettings, j as MixingModel, k as BlenderSettings, l as SmudgeSettings, P as PaintSource, a as MixerLoad, W as WetWorld, m as WetTilt, n as WetParams, o as WetFlowSpec, p as RgbTriple, q as WetWorldOptions, r as WetGpuProvider, s as WetBackendInfo, t as WetSnapshot, u as WetPaperInput } from '../rand-DTXAssW1.cjs';
3
+ export { v as DEFAULT_FLOW, w as DEFAULT_PAINT_GRADIENT, x as DEFAULT_PAINT_GRADIENT_MAPPING, y as DEFAULT_WET_PARAMS, z as MAX_BRUSH_SIZE, A as PAINT_COLOR_JSON_SCHEMA, E as PAINT_GRADIENT_FULL_SPEED, F as PAINT_GRADIENT_JSON_SCHEMA, G as PAINT_GRADIENT_KIT, H as PAINT_GRADIENT_MAPPINGS, I as PAINT_GRADIENT_MAPPING_LABELS, J as PAINT_GRADIENT_PRESETS, K as PAINT_GRADIENT_REPEATS, L as PAINT_GRADIENT_REPEAT_LABELS, N as PAINT_GRADIENT_SPACES, O as PAINT_GRADIENT_SPACE_LABELS, Q as PAINT_SOURCE_JSON_SCHEMA, U as PaintColorSource, V as PaintDabParams, X as PaintGradientKit, Y as PaintGradientMapping, Z as PaintGradientMappingKind, _ as PaintGradientRepeat, $ as PaintGradientSample, a0 as PaintGradientSampler, a1 as PaintGradientSpace, a2 as PaintGradientStop, a3 as PaintRgb, a4 as PaintSourceError, a5 as WET_FLOW_KINDS, a6 as WET_PARAM_KEYS, a7 as WetFlowKind, a8 as WetSupport, a9 as addPaintGradientStop, aa as hash2, ab as hexToPaintRgb, ac as isGradientPaint, ad as mix32, ae as normalizeFlow, af as normalizeHexColor, ag as normalizeWetParams, ah as paintGradientMappingFor, ai as paintSourceColor, aj as paintSourceCss, ak as parsePaintSource, al as rand01, am as readPaintSource, an as removePaintGradientStop, ao as resolvePaintGradient, ap as reversePaintGradient, aq as scalePaintGradient, ar as solidPaint, as as updatePaintGradientStop, at as wetSupport } from '../rand-DTXAssW1.cjs';
4
4
  import { R as RasterRect, T as TiledSurface, a as BlendMode, b as BlendModeInfo } from '../surface-1MRncXpF.cjs';
5
5
  export { B as BLEND_MODES, P as PAINTERLY_BLEND_MODES, i as Tile, v as isBlendMode, w as isPainterlyBlendMode, I as standardBlendMode } from '../surface-1MRncXpF.cjs';
6
- import { C as EffectValue, E as EffectProvider, D as EffectDescription, B as EffectRenderRequest, F as EffectPixels, W as EffectsSlot } from '../helpers-i95Ob6Vi.cjs';
7
- import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-Bp7ji2r4.cjs';
8
- import { V as VideoProject, D as VideoFfmpegExport } from '../export-DVl4fWy5.cjs';
6
+ import { e as EffectValue, E as EffectProvider, f as EffectDescription, a as EffectRenderRequest, b as EffectPixels, v as EffectsSlot } from '../helpers-C5aAd44p.cjs';
7
+ import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-BkYQvV56.cjs';
8
+ import { V as VideoProject, D as VideoFfmpegExport } from '../export-Cbr9IqpJ.cjs';
9
9
  import { g as PresenceStore, e as PresenceClock, d as PresenceActorInfo, c as PresenceActor, f as PresenceState } from '../presence-Cb6WhcrQ.cjs';
10
10
  import { a as AgentToolProvider, A as AgentTool } from '../registry-BqA1AZt0.cjs';
11
11
  import '../types-CwMPoRMU.cjs';
12
12
  import '../schema-Di0CS6Pe.cjs';
13
- import '../behavior-Ymbld6jL.cjs';
13
+ import '../evaluate-BsxYieLN.cjs';
14
14
  import '../easing-lM0Xo9Ni.cjs';
15
- import '../evaluate-2S3vSPLy.cjs';
16
- import '../gradient-KDfCvhuj.cjs';
17
15
  import '../builtin-CY97ppKM.cjs';
18
- import '../bezier-CBzKKDjl.cjs';
19
- import '../brushTypes-IG7ZZjIN.cjs';
20
- import '../warp-CH9MM435.cjs';
16
+ import '../bezier-CvgQiYRg.cjs';
17
+ import '../brushTypes-C7N3EBK7.cjs';
18
+ import '../warp-D62N_5VK.cjs';
21
19
 
22
20
  /**
23
21
  * Seeded, deterministic noise for paper grain and brush jitter (photocraft's counter-based
@@ -1,23 +1,21 @@
1
1
  import { a1 as RasterLayer, a0 as RasterGroupLayer, a5 as RasterPixelLayer, C as CompositorLayer, a as RasterCompositor, R as RasterSources, U as LayerLocks } from '../deep-wwJa7aR6.js';
2
- import { D as Dab, C as CoverageMap, B as BrushSettings, e as StrokePoint, g as PaintTileTarget, i as PaintGradientSource, T as TileMedium, M as MixerSettings, j as MixingModel, k as BlenderSettings, l as SmudgeSettings, P as PaintSource, a as MixerLoad, W as WetWorld, m as WetTilt, n as WetParams, o as WetFlowSpec, p as RgbTriple, q as WetWorldOptions, r as WetGpuProvider, s as WetBackendInfo, t as WetSnapshot, u as WetPaperInput } from '../rand-DtazXGOB.js';
3
- export { v as DEFAULT_FLOW, w as DEFAULT_PAINT_GRADIENT, x as DEFAULT_PAINT_GRADIENT_MAPPING, y as DEFAULT_WET_PARAMS, z as MAX_BRUSH_SIZE, A as PAINT_COLOR_JSON_SCHEMA, E as PAINT_GRADIENT_FULL_SPEED, F as PAINT_GRADIENT_JSON_SCHEMA, G as PAINT_GRADIENT_KIT, H as PAINT_GRADIENT_MAPPINGS, I as PAINT_GRADIENT_MAPPING_LABELS, J as PAINT_GRADIENT_PRESETS, K as PAINT_GRADIENT_REPEATS, L as PAINT_GRADIENT_REPEAT_LABELS, N as PAINT_GRADIENT_SPACES, O as PAINT_GRADIENT_SPACE_LABELS, Q as PAINT_SOURCE_JSON_SCHEMA, U as PaintColorSource, V as PaintDabParams, X as PaintGradientKit, Y as PaintGradientMapping, Z as PaintGradientMappingKind, _ as PaintGradientRepeat, $ as PaintGradientSample, a0 as PaintGradientSampler, a1 as PaintGradientSpace, a2 as PaintGradientStop, a3 as PaintRgb, a4 as PaintSourceError, a5 as WET_FLOW_KINDS, a6 as WET_PARAM_KEYS, a7 as WetFlowKind, a8 as WetSupport, a9 as addPaintGradientStop, aa as hash2, ab as hexToPaintRgb, ac as isGradientPaint, ad as mix32, ae as normalizeFlow, af as normalizeHexColor, ag as normalizeWetParams, ah as paintGradientMappingFor, ai as paintSourceColor, aj as paintSourceCss, ak as parsePaintSource, al as rand01, am as readPaintSource, an as removePaintGradientStop, ao as resolvePaintGradient, ap as reversePaintGradient, aq as scalePaintGradient, ar as solidPaint, as as updatePaintGradientStop, at as wetSupport } from '../rand-DtazXGOB.js';
2
+ import { D as Dab, C as CoverageMap, B as BrushSettings, e as StrokePoint, g as PaintTileTarget, i as PaintGradientSource, T as TileMedium, M as MixerSettings, j as MixingModel, k as BlenderSettings, l as SmudgeSettings, P as PaintSource, a as MixerLoad, W as WetWorld, m as WetTilt, n as WetParams, o as WetFlowSpec, p as RgbTriple, q as WetWorldOptions, r as WetGpuProvider, s as WetBackendInfo, t as WetSnapshot, u as WetPaperInput } from '../rand-pQQ2sJTk.js';
3
+ export { v as DEFAULT_FLOW, w as DEFAULT_PAINT_GRADIENT, x as DEFAULT_PAINT_GRADIENT_MAPPING, y as DEFAULT_WET_PARAMS, z as MAX_BRUSH_SIZE, A as PAINT_COLOR_JSON_SCHEMA, E as PAINT_GRADIENT_FULL_SPEED, F as PAINT_GRADIENT_JSON_SCHEMA, G as PAINT_GRADIENT_KIT, H as PAINT_GRADIENT_MAPPINGS, I as PAINT_GRADIENT_MAPPING_LABELS, J as PAINT_GRADIENT_PRESETS, K as PAINT_GRADIENT_REPEATS, L as PAINT_GRADIENT_REPEAT_LABELS, N as PAINT_GRADIENT_SPACES, O as PAINT_GRADIENT_SPACE_LABELS, Q as PAINT_SOURCE_JSON_SCHEMA, U as PaintColorSource, V as PaintDabParams, X as PaintGradientKit, Y as PaintGradientMapping, Z as PaintGradientMappingKind, _ as PaintGradientRepeat, $ as PaintGradientSample, a0 as PaintGradientSampler, a1 as PaintGradientSpace, a2 as PaintGradientStop, a3 as PaintRgb, a4 as PaintSourceError, a5 as WET_FLOW_KINDS, a6 as WET_PARAM_KEYS, a7 as WetFlowKind, a8 as WetSupport, a9 as addPaintGradientStop, aa as hash2, ab as hexToPaintRgb, ac as isGradientPaint, ad as mix32, ae as normalizeFlow, af as normalizeHexColor, ag as normalizeWetParams, ah as paintGradientMappingFor, ai as paintSourceColor, aj as paintSourceCss, ak as parsePaintSource, al as rand01, am as readPaintSource, an as removePaintGradientStop, ao as resolvePaintGradient, ap as reversePaintGradient, aq as scalePaintGradient, ar as solidPaint, as as updatePaintGradientStop, at as wetSupport } from '../rand-pQQ2sJTk.js';
4
4
  import { R as RasterRect, T as TiledSurface, a as BlendMode, b as BlendModeInfo } from '../surface-1MRncXpF.js';
5
5
  export { B as BLEND_MODES, P as PAINTERLY_BLEND_MODES, i as Tile, v as isBlendMode, w as isPainterlyBlendMode, I as standardBlendMode } from '../surface-1MRncXpF.js';
6
- import { C as EffectValue, E as EffectProvider, D as EffectDescription, B as EffectRenderRequest, F as EffectPixels, W as EffectsSlot } from '../helpers-BBLlekuM.js';
7
- import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-DAyPY94f.js';
8
- import { V as VideoProject, D as VideoFfmpegExport } from '../export-C1s4eolZ.js';
6
+ import { e as EffectValue, E as EffectProvider, f as EffectDescription, a as EffectRenderRequest, b as EffectPixels, v as EffectsSlot } from '../helpers-CPWcK504.js';
7
+ import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-DHrFJ8r_.js';
8
+ import { V as VideoProject, D as VideoFfmpegExport } from '../export-ClPKUB-v.js';
9
9
  import { g as PresenceStore, e as PresenceClock, d as PresenceActorInfo, c as PresenceActor, f as PresenceState } from '../presence-Cb6WhcrQ.js';
10
10
  import { a as AgentToolProvider, A as AgentTool } from '../registry-D-4fit9C.js';
11
11
  import '../types-CwMPoRMU.js';
12
12
  import '../schema-Di0CS6Pe.js';
13
- import '../behavior-Ymbld6jL.js';
13
+ import '../evaluate-BbCeF6pt.js';
14
14
  import '../easing-lM0Xo9Ni.js';
15
- import '../evaluate-CfmT6xA3.js';
16
- import '../gradient-KDfCvhuj.js';
17
15
  import '../builtin-CY97ppKM.js';
18
- import '../bezier-CWv6LQal.js';
19
- import '../brushTypes-IG7ZZjIN.js';
20
- import '../warp-k_PdtXOG.js';
16
+ import '../bezier-DP4NnJp3.js';
17
+ import '../brushTypes-C7N3EBK7.js';
18
+ import '../warp-CIsO617e.js';
21
19
 
22
20
  /**
23
21
  * Seeded, deterministic noise for paper grain and brush jitter (photocraft's counter-based
@@ -80,7 +80,7 @@ import {
80
80
  resolveExternalAssets,
81
81
  serializeLayers,
82
82
  serializeLayersExternal
83
- } from "../chunk-WUDPFWAN.js";
83
+ } from "../chunk-F7Q2NE2Y.js";
84
84
  import "../chunk-CTTF4KYV.js";
85
85
  import {
86
86
  EffectRendererPool
@@ -211,15 +211,15 @@ import {
211
211
  realPresenceClock,
212
212
  tweenPresenceCursor
213
213
  } from "../chunk-B6DSIEXA.js";
214
- import "../chunk-FPRIUR4T.js";
214
+ import "../chunk-ROZFX4QI.js";
215
+ import "../chunk-YGJIER2R.js";
216
+ import "../chunk-KHNZ6MOU.js";
215
217
  import {
216
218
  EffectUnsupportedError,
217
219
  EffectsSlot,
218
220
  createEffectToolProvider,
219
221
  resolveEffectValues
220
222
  } from "../chunk-QFSTQHZY.js";
221
- import "../chunk-FG274FYT.js";
222
- import "../chunk-GLWZXQ4Q.js";
223
223
  import "../chunk-4FX5ACVG.js";
224
224
  import "../chunk-33AHNSEB.js";
225
225
  import "../chunk-ZRJMJIQU.js";
@@ -1,5 +1,5 @@
1
- import { P as Point } from './brushTypes-IG7ZZjIN.js';
2
- import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-CWv6LQal.js';
1
+ import { P as Point } from './brushTypes-C7N3EBK7.js';
2
+ import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-DP4NnJp3.js';
3
3
 
4
4
  /**
5
5
  * Curve-preserving boolean operations (union, intersection, difference, xor and divide) on
@@ -1,5 +1,5 @@
1
- import { P as Point } from './brushTypes-IG7ZZjIN.cjs';
2
- import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-CBzKKDjl.cjs';
1
+ import { P as Point } from './brushTypes-C7N3EBK7.cjs';
2
+ import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-CvgQiYRg.cjs';
3
3
 
4
4
  /**
5
5
  * Curve-preserving boolean operations (union, intersection, difference, xor and divide) on
@@ -1,4 +1,4 @@
1
- import { b as AnimationLoopMode } from './evaluate-CfmT6xA3.js';
1
+ import { b as AnimationLoopMode } from './evaluate-BbCeF6pt.js';
2
2
 
3
3
  /**
4
4
  * The time source that animations (and canvas agent performances) play on.
@@ -1,4 +1,4 @@
1
- import { b as AnimationLoopMode } from './evaluate-2S3vSPLy.cjs';
1
+ import { b as AnimationLoopMode } from './evaluate-BsxYieLN.cjs';
2
2
 
3
3
  /**
4
4
  * The time source that animations (and canvas agent performances) play on.
@@ -0,0 +1,34 @@
1
+ import { E as EffectProvider, a as EffectRenderRequest, b as EffectPixels } from './helpers-C5aAd44p.cjs';
2
+
3
+ /**
4
+ * `EffectRendererPool`: keeps a few live renderers, reused per effect, size and depth.
5
+ *
6
+ * GPU providers hold one graphics context per renderer, and browsers allow only about sixteen
7
+ * WebGL contexts at a time (the oldest is lost after that). So the pool keeps at most
8
+ * `maxRenderers` renderers. It disposes the least recently used one once its renders finish, and it
9
+ * runs one render at a time per renderer, as the contract requires.
10
+ */
11
+
12
+ interface EffectRendererPoolOptions {
13
+ /** Most live renderers (default 4). */
14
+ maxRenderers?: number;
15
+ }
16
+ declare class EffectRendererPool {
17
+ private readonly entries;
18
+ private readonly maxRenderers;
19
+ constructor(options?: EffectRendererPoolOptions);
20
+ /** Live renderers now. */
21
+ get size(): number;
22
+ /** Renders `request` with the provider's renderer for this effect, size and depth (made on first use). */
23
+ render(provider: EffectProvider, id: string, size: {
24
+ width: number;
25
+ height: number;
26
+ depth?: 8 | 16 | 32;
27
+ }, request: EffectRenderRequest): Promise<EffectPixels>;
28
+ /** Disposes the least recently used renderers over the limit, after their queued renders. */
29
+ private evict;
30
+ /** Disposes every renderer (after its queued renders). */
31
+ clear(): void;
32
+ }
33
+
34
+ export { EffectRendererPool as E, type EffectRendererPoolOptions as a };
@@ -0,0 +1,34 @@
1
+ import { E as EffectProvider, a as EffectRenderRequest, b as EffectPixels } from './helpers-CPWcK504.js';
2
+
3
+ /**
4
+ * `EffectRendererPool`: keeps a few live renderers, reused per effect, size and depth.
5
+ *
6
+ * GPU providers hold one graphics context per renderer, and browsers allow only about sixteen
7
+ * WebGL contexts at a time (the oldest is lost after that). So the pool keeps at most
8
+ * `maxRenderers` renderers. It disposes the least recently used one once its renders finish, and it
9
+ * runs one render at a time per renderer, as the contract requires.
10
+ */
11
+
12
+ interface EffectRendererPoolOptions {
13
+ /** Most live renderers (default 4). */
14
+ maxRenderers?: number;
15
+ }
16
+ declare class EffectRendererPool {
17
+ private readonly entries;
18
+ private readonly maxRenderers;
19
+ constructor(options?: EffectRendererPoolOptions);
20
+ /** Live renderers now. */
21
+ get size(): number;
22
+ /** Renders `request` with the provider's renderer for this effect, size and depth (made on first use). */
23
+ render(provider: EffectProvider, id: string, size: {
24
+ width: number;
25
+ height: number;
26
+ depth?: 8 | 16 | 32;
27
+ }, request: EffectRenderRequest): Promise<EffectPixels>;
28
+ /** Disposes the least recently used renderers over the limit, after their queued renders. */
29
+ private evict;
30
+ /** Disposes every renderer (after its queued renders). */
31
+ clear(): void;
32
+ }
33
+
34
+ export { EffectRendererPool as E, type EffectRendererPoolOptions as a };
@@ -240,7 +240,7 @@ declare const PAINT_GRADIENT_JSON_SCHEMA: {
240
240
  readonly properties: {
241
241
  readonly by: {
242
242
  readonly type: "string";
243
- readonly enum: readonly ("direction" | "time" | "distance" | "velocity" | "pressure" | "tilt" | "across-tip" | "random")[];
243
+ readonly enum: readonly ("direction" | "time" | "distance" | "pressure" | "tilt" | "across-tip" | "random" | "velocity")[];
244
244
  readonly description: "distance: px (or dabs) of stroke travelled; pressure: pen pressure 0..1; tilt: pen lean, upright 0 .. flat 1; velocity: pen speed, 0 .. 2.5 px/ms; direction: direction of travel, once round per 360°; time: ms since the stroke began (needs timed points); across-tip: left to right across the tip, looking along the stroke (a brush loaded with several colours); random: a random point per dab (seeded, so replays match).";
245
245
  };
246
246
  readonly length: {
@@ -381,7 +381,7 @@ declare const PAINT_SOURCE_JSON_SCHEMA: {
381
381
  readonly properties: {
382
382
  readonly by: {
383
383
  readonly type: "string";
384
- readonly enum: readonly ("direction" | "time" | "distance" | "velocity" | "pressure" | "tilt" | "across-tip" | "random")[];
384
+ readonly enum: readonly ("direction" | "time" | "distance" | "pressure" | "tilt" | "across-tip" | "random" | "velocity")[];
385
385
  readonly description: "distance: px (or dabs) of stroke travelled; pressure: pen pressure 0..1; tilt: pen lean, upright 0 .. flat 1; velocity: pen speed, 0 .. 2.5 px/ms; direction: direction of travel, once round per 360°; time: ms since the stroke began (needs timed points); across-tip: left to right across the tip, looking along the stroke (a brush loaded with several colours); random: a random point per dab (seeded, so replays match).";
386
386
  };
387
387
  readonly length: {
@@ -459,8 +459,8 @@ declare function reversePaintGradient(g: PaintGradientSource): PaintGradientSour
459
459
  declare function paintGradientMappingFor(by: PaintGradientMappingKind, current: PaintGradientMapping): PaintGradientMapping;
460
460
  /** Everything a gradient-paint editor UI needs, in one object (framework bindings take it from their own entry). */
461
461
  declare const PAINT_GRADIENT_KIT: {
462
- readonly PAINT_GRADIENT_MAPPINGS: readonly ("direction" | "time" | "distance" | "velocity" | "pressure" | "tilt" | "across-tip" | "random")[];
463
- readonly PAINT_GRADIENT_MAPPING_LABELS: Readonly<Record<"direction" | "time" | "distance" | "velocity" | "pressure" | "tilt" | "across-tip" | "random", string>>;
462
+ readonly PAINT_GRADIENT_MAPPINGS: readonly ("direction" | "time" | "distance" | "pressure" | "tilt" | "across-tip" | "random" | "velocity")[];
463
+ readonly PAINT_GRADIENT_MAPPING_LABELS: Readonly<Record<"direction" | "time" | "distance" | "pressure" | "tilt" | "across-tip" | "random" | "velocity", string>>;
464
464
  readonly PAINT_GRADIENT_PRESETS: readonly {
465
465
  name: string;
466
466
  paint: PaintGradientSource;
@@ -240,7 +240,7 @@ declare const PAINT_GRADIENT_JSON_SCHEMA: {
240
240
  readonly properties: {
241
241
  readonly by: {
242
242
  readonly type: "string";
243
- readonly enum: readonly ("direction" | "time" | "distance" | "velocity" | "pressure" | "tilt" | "across-tip" | "random")[];
243
+ readonly enum: readonly ("direction" | "time" | "distance" | "pressure" | "tilt" | "across-tip" | "random" | "velocity")[];
244
244
  readonly description: "distance: px (or dabs) of stroke travelled; pressure: pen pressure 0..1; tilt: pen lean, upright 0 .. flat 1; velocity: pen speed, 0 .. 2.5 px/ms; direction: direction of travel, once round per 360°; time: ms since the stroke began (needs timed points); across-tip: left to right across the tip, looking along the stroke (a brush loaded with several colours); random: a random point per dab (seeded, so replays match).";
245
245
  };
246
246
  readonly length: {
@@ -381,7 +381,7 @@ declare const PAINT_SOURCE_JSON_SCHEMA: {
381
381
  readonly properties: {
382
382
  readonly by: {
383
383
  readonly type: "string";
384
- readonly enum: readonly ("direction" | "time" | "distance" | "velocity" | "pressure" | "tilt" | "across-tip" | "random")[];
384
+ readonly enum: readonly ("direction" | "time" | "distance" | "pressure" | "tilt" | "across-tip" | "random" | "velocity")[];
385
385
  readonly description: "distance: px (or dabs) of stroke travelled; pressure: pen pressure 0..1; tilt: pen lean, upright 0 .. flat 1; velocity: pen speed, 0 .. 2.5 px/ms; direction: direction of travel, once round per 360°; time: ms since the stroke began (needs timed points); across-tip: left to right across the tip, looking along the stroke (a brush loaded with several colours); random: a random point per dab (seeded, so replays match).";
386
386
  };
387
387
  readonly length: {
@@ -459,8 +459,8 @@ declare function reversePaintGradient(g: PaintGradientSource): PaintGradientSour
459
459
  declare function paintGradientMappingFor(by: PaintGradientMappingKind, current: PaintGradientMapping): PaintGradientMapping;
460
460
  /** Everything a gradient-paint editor UI needs, in one object (framework bindings take it from their own entry). */
461
461
  declare const PAINT_GRADIENT_KIT: {
462
- readonly PAINT_GRADIENT_MAPPINGS: readonly ("direction" | "time" | "distance" | "velocity" | "pressure" | "tilt" | "across-tip" | "random")[];
463
- readonly PAINT_GRADIENT_MAPPING_LABELS: Readonly<Record<"direction" | "time" | "distance" | "velocity" | "pressure" | "tilt" | "across-tip" | "random", string>>;
462
+ readonly PAINT_GRADIENT_MAPPINGS: readonly ("direction" | "time" | "distance" | "pressure" | "tilt" | "across-tip" | "random" | "velocity")[];
463
+ readonly PAINT_GRADIENT_MAPPING_LABELS: Readonly<Record<"direction" | "time" | "distance" | "pressure" | "tilt" | "across-tip" | "random" | "velocity", string>>;
464
464
  readonly PAINT_GRADIENT_PRESETS: readonly {
465
465
  name: string;
466
466
  paint: PaintGradientSource;
@@ -1,6 +1,5 @@
1
- import { B as BezierPath, A as AffineMatrix } from './bezier-CWv6LQal.js';
2
- import { V as VectorEffectType, b as VectorEffectParamsMap, c as VectorPathNode, d as VectorFillRule, e as VectorBooleanOperation, f as VectorNode, g as VectorEffect, h as VectorGroupNode, i as VectorBounds, j as VectorWarpMesh, k as VectorInstanceNode, l as VectorFilterType, m as VectorFilterParamsMap, n as VectorFilter, o as VectorGradient, p as Vec2, q as VectorGradientUnits, r as VectorGradientSpread, s as VectorGradientType, t as VectorPaint, u as VectorMatrix, v as VectorGradientStop, w as VectorStrokeAlign, x as VectorSubpath, y as VectorDocument, z as VectorWidthPoint } from './helpers-BBLlekuM.js';
3
- import { S as SvgGradientDef } from './gradient-KDfCvhuj.js';
1
+ import { B as BezierPath, A as AffineMatrix } from './bezier-CvgQiYRg.cjs';
2
+ import { V as VectorEffectType, H as VectorEffectParamsMap, I as VectorPathNode, J as VectorFillRule, K as VectorBooleanOperation, L as VectorNode, M as VectorEffect, N as VectorGroupNode, O as VectorBounds, P as VectorWarpMesh, Q as VectorInstanceNode, R as VectorFilterType, T as VectorFilterParamsMap, U as VectorFilter, W as VectorGradient, X as Vec2, Y as VectorGradientUnits, S as SvgGradientDef, Z as VectorGradientSpread, _ as VectorGradientType, $ as VectorPaint, a0 as VectorMatrix, a1 as VectorGradientStop, a2 as VectorStrokeAlign, a3 as VectorSubpath, a4 as VectorDocument, a5 as VectorWidthPoint } from './helpers-C5aAd44p.cjs';
4
3
 
5
4
  /**
6
5
  * Live appearance: path effect stacks and live boolean groups, evaluated on demand while the
@@ -1,6 +1,5 @@
1
- import { B as BezierPath, A as AffineMatrix } from './bezier-CBzKKDjl.cjs';
2
- import { V as VectorEffectType, b as VectorEffectParamsMap, c as VectorPathNode, d as VectorFillRule, e as VectorBooleanOperation, f as VectorNode, g as VectorEffect, h as VectorGroupNode, i as VectorBounds, j as VectorWarpMesh, k as VectorInstanceNode, l as VectorFilterType, m as VectorFilterParamsMap, n as VectorFilter, o as VectorGradient, p as Vec2, q as VectorGradientUnits, r as VectorGradientSpread, s as VectorGradientType, t as VectorPaint, u as VectorMatrix, v as VectorGradientStop, w as VectorStrokeAlign, x as VectorSubpath, y as VectorDocument, z as VectorWidthPoint } from './helpers-i95Ob6Vi.cjs';
3
- import { S as SvgGradientDef } from './gradient-KDfCvhuj.cjs';
1
+ import { B as BezierPath, A as AffineMatrix } from './bezier-DP4NnJp3.js';
2
+ import { V as VectorEffectType, H as VectorEffectParamsMap, I as VectorPathNode, J as VectorFillRule, K as VectorBooleanOperation, L as VectorNode, M as VectorEffect, N as VectorGroupNode, O as VectorBounds, P as VectorWarpMesh, Q as VectorInstanceNode, R as VectorFilterType, T as VectorFilterParamsMap, U as VectorFilter, W as VectorGradient, X as Vec2, Y as VectorGradientUnits, S as SvgGradientDef, Z as VectorGradientSpread, _ as VectorGradientType, $ as VectorPaint, a0 as VectorMatrix, a1 as VectorGradientStop, a2 as VectorStrokeAlign, a3 as VectorSubpath, a4 as VectorDocument, a5 as VectorWidthPoint } from './helpers-CPWcK504.js';
4
3
 
5
4
  /**
6
5
  * Live appearance: path effect stacks and live boolean groups, evaluated on demand while the
@@ -1,6 +1,6 @@
1
1
  import { A as AgentTool, a as AgentToolProvider } from './registry-D-4fit9C.js';
2
2
  import { J as JsonSchema } from './schema-Di0CS6Pe.js';
3
- import { E as EffectProvider, a as EffectUse } from './helpers-BBLlekuM.js';
3
+ import { E as EffectProvider, c as EffectUse } from './helpers-CPWcK504.js';
4
4
 
5
5
  /**
6
6
  * The agent tools for provider effects, shared by every editor that takes an `EffectProvider`:
@@ -1,6 +1,6 @@
1
1
  import { A as AgentTool, a as AgentToolProvider } from './registry-BqA1AZt0.cjs';
2
2
  import { J as JsonSchema } from './schema-Di0CS6Pe.cjs';
3
- import { E as EffectProvider, a as EffectUse } from './helpers-i95Ob6Vi.cjs';
3
+ import { E as EffectProvider, c as EffectUse } from './helpers-C5aAd44p.cjs';
4
4
 
5
5
  /**
6
6
  * The agent tools for provider effects, shared by every editor that takes an `EffectProvider`: