@pixerate/editor 0.124.0 → 0.125.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 (92) hide show
  1. package/dist/agent/index.cjs +3 -3
  2. package/dist/agent/index.cjs.map +1 -1
  3. package/dist/agent/index.js +3 -3
  4. package/dist/animation-editor/index.cjs +424 -85
  5. package/dist/animation-editor/index.cjs.map +1 -1
  6. package/dist/animation-editor/index.d.cts +174 -7
  7. package/dist/animation-editor/index.d.ts +174 -7
  8. package/dist/animation-editor/index.js +348 -9
  9. package/dist/animation-editor/index.js.map +1 -1
  10. package/dist/chunk-FJ3324TZ.js +59 -0
  11. package/dist/chunk-FJ3324TZ.js.map +1 -0
  12. package/dist/{chunk-5EO2IXQE.js → chunk-FPRIUR4T.js} +1 -1
  13. package/dist/chunk-FPRIUR4T.js.map +1 -0
  14. package/dist/{chunk-YVVSTD3B.js → chunk-G6WXWS4Y.js} +9 -18
  15. package/dist/chunk-G6WXWS4Y.js.map +1 -0
  16. package/dist/{chunk-NGYD3AMN.js → chunk-MPQAO33O.js} +2 -2
  17. package/dist/{chunk-PEHYWUVV.cjs → chunk-O5RVCDEC.cjs} +82 -82
  18. package/dist/{chunk-PEHYWUVV.cjs.map → chunk-O5RVCDEC.cjs.map} +1 -1
  19. package/dist/{chunk-TK53AB4Q.cjs → chunk-QDJKUBWE.cjs} +3 -3
  20. package/dist/{chunk-TK53AB4Q.cjs.map → chunk-QDJKUBWE.cjs.map} +1 -1
  21. package/dist/{chunk-5XXMLBH4.cjs → chunk-QQKTOA4U.cjs} +1 -1
  22. package/dist/chunk-QQKTOA4U.cjs.map +1 -0
  23. package/dist/{chunk-IWSMDQE5.cjs → chunk-UXFI3CDZ.cjs} +13 -22
  24. package/dist/chunk-UXFI3CDZ.cjs.map +1 -0
  25. package/dist/{chunk-WE25VLCO.cjs → chunk-V5YGPRCZ.cjs} +36 -36
  26. package/dist/{chunk-WE25VLCO.cjs.map → chunk-V5YGPRCZ.cjs.map} +1 -1
  27. package/dist/chunk-W6QTLHZ3.cjs +59 -0
  28. package/dist/chunk-W6QTLHZ3.cjs.map +1 -0
  29. package/dist/{chunk-WATAQ2Z2.js → chunk-WUDPFWAN.js} +2 -2
  30. package/dist/{chunk-VFAKN46Z.js → chunk-XZWOLXWA.js} +3 -3
  31. package/dist/{chunk-VFAKN46Z.js.map → chunk-XZWOLXWA.js.map} +1 -1
  32. package/dist/effects/index.cjs +51 -6
  33. package/dist/effects/index.cjs.map +1 -1
  34. package/dist/effects/index.d.cts +39 -8
  35. package/dist/effects/index.d.ts +39 -8
  36. package/dist/effects/index.js +48 -3
  37. package/dist/effects/index.js.map +1 -1
  38. package/dist/{export-TqXMOlDt.d.cts → export-Bp7ji2r4.d.cts} +4 -3
  39. package/dist/{export-BzSRXyH6.d.cts → export-C1s4eolZ.d.ts} +5 -3
  40. package/dist/{export-8RnlngAv.d.ts → export-DAyPY94f.d.ts} +4 -3
  41. package/dist/{export-DM3h7QEI.d.ts → export-DVl4fWy5.d.cts} +5 -3
  42. package/dist/generation/index.cjs +3 -3
  43. package/dist/generation/index.cjs.map +1 -1
  44. package/dist/generation/index.js +3 -3
  45. package/dist/helpers-BBLlekuM.d.ts +2009 -0
  46. package/dist/helpers-i95Ob6Vi.d.cts +2009 -0
  47. package/dist/image-editor/index.cjs +712 -721
  48. package/dist/image-editor/index.cjs.map +1 -1
  49. package/dist/image-editor/index.d.cts +5 -7
  50. package/dist/image-editor/index.d.ts +5 -7
  51. package/dist/image-editor/index.js +19 -28
  52. package/dist/image-editor/index.js.map +1 -1
  53. package/dist/paint-editor/index.cjs +12 -11
  54. package/dist/paint-editor/index.cjs.map +1 -1
  55. package/dist/paint-editor/index.d.cts +3 -5
  56. package/dist/paint-editor/index.d.ts +3 -5
  57. package/dist/paint-editor/index.js +6 -5
  58. package/dist/paint-editor/index.js.map +1 -1
  59. package/dist/{svg-BDrjRnL1.d.cts → svg-BkRL-fZJ.d.cts} +1 -1
  60. package/dist/{svg-C-vZ3q50.d.ts → svg-DJKriJ4A.d.ts} +1 -1
  61. package/dist/tools/index.cjs +2 -2
  62. package/dist/tools/index.cjs.map +1 -1
  63. package/dist/tools/index.js +3 -3
  64. package/dist/{tools-C7JtLYzo.d.ts → tools-CM8Oe8F3.d.ts} +1 -1
  65. package/dist/{tools-DHKGHiSK.d.cts → tools-DZCv2kX1.d.cts} +1 -1
  66. package/dist/vector/index.cjs +1032 -883
  67. package/dist/vector/index.cjs.map +1 -1
  68. package/dist/vector/index.d.cts +61 -6
  69. package/dist/vector/index.d.ts +61 -6
  70. package/dist/vector/index.js +155 -6
  71. package/dist/vector/index.js.map +1 -1
  72. package/dist/video-editor/index.cjs +271 -270
  73. package/dist/video-editor/index.cjs.map +1 -1
  74. package/dist/video-editor/index.d.cts +4 -6
  75. package/dist/video-editor/index.d.ts +4 -6
  76. package/dist/video-editor/index.js +6 -5
  77. package/dist/video-editor/index.js.map +1 -1
  78. package/package.json +1 -1
  79. package/skills/pixerate-animation-editor/SKILL.md +24 -1
  80. package/skills/pixerate-vector/SKILL.md +15 -0
  81. package/dist/chunk-5EO2IXQE.js.map +0 -1
  82. package/dist/chunk-5XXMLBH4.cjs.map +0 -1
  83. package/dist/chunk-IWSMDQE5.cjs.map +0 -1
  84. package/dist/chunk-YVVSTD3B.js.map +0 -1
  85. package/dist/flair-CxB3fOcU.d.ts +0 -739
  86. package/dist/flair-D7BxyBwL.d.cts +0 -739
  87. package/dist/helpers-777mC6dc.d.cts +0 -253
  88. package/dist/helpers-DX2_7L5t.d.ts +0 -253
  89. package/dist/types-BcX7sCsn.d.ts +0 -993
  90. package/dist/types-CznabG7m.d.cts +0 -993
  91. /package/dist/{chunk-NGYD3AMN.js.map → chunk-MPQAO33O.js.map} +0 -0
  92. /package/dist/{chunk-WATAQ2Z2.js.map → chunk-WUDPFWAN.js.map} +0 -0
@@ -1,9 +1,9 @@
1
- import { p as Vec2$1, x as VectorSubpath, i as VectorBounds, z as VectorAnchor, V as VectorDocument, f as VectorNode, c as VectorPathNode, A as VectorTextNode, B as VectorAnchorType, t as VectorPaint, h as VectorGroupNode, C as VectorCornerKind, y as VectorWidthPoint, o as VectorGradient, v as VectorGradientStop, D as VectorViewport, E as VectorConnectorRoute, F as VectorConnectorSide, G as VectorConnectorEnd, H as VectorConnector, I as VectorConstraintKind, J as VectorConstraint, K as VectorCharacterStyle, L as VectorTextRun, M as VectorParagraphStyle, N as VectorTextFrame, O as VectorTransformHandle, P as VectorAnchorRef, Q as VectorPathfinderOperation, R as VectorTool, S as VectorDefaults, T as VectorTextAlign, U as VectorStyle, W as VectorHandleRef, X as VectorSegmentRef, Y as VectorBlendOptions, u as VectorMatrix, Z as VectorModifiers, _ as VectorBlendMode, l as VectorFilterType, a as VectorEffectType, $ as VectorAlign, a0 as VectorDistribute, a1 as VectorArrange, e as VectorBooleanOperation, a2 as VectorMaskType, a3 as VectorSymmetryMode, a4 as VectorSymmetry, a5 as VectorFreeformPoint, a6 as VectorMeshGradient, a7 as VectorFreeformGradient, a8 as VectorArrowhead, a9 as VectorResizing, aa as VectorFrame, ab as VectorHorizontalResizing, ac as VectorVerticalResizing, ad as VectorMask, ae as VectorAverageAxis, af as VectorSymbol, ag as VectorParameter, j as VectorWarpMesh, d as VectorFillRule, ah as VectorBlendSpacing, ai as VectorGradientInterpolation, r as VectorGradientSpread, s as VectorGradientType, w as VectorStrokeAlign, aj as VectorStrokeGradientMode, ak as VectorArrowAlign, g as VectorEffect, al as VectorPaintLayer, am as VectorStrokeLayer, n as VectorFilter, an as VectorBlend, ao as VectorMergeMode, ap as VectorLineJoin, b as VectorEffectParamsMap, aq as VectorStrokeSettings, ar as VectorInstanceOverrides, k as VectorInstanceNode } from '../types-CznabG7m.cjs';
2
- export { as as VECTOR_ARROWHEADS, at as VECTOR_BLEND_MODES, au as VECTOR_BLEND_SPACINGS, av as VECTOR_CONNECTOR_ROUTES, aw as VECTOR_CONNECTOR_SIDES, ax as VECTOR_CONSTRAINT_KINDS, ay as VECTOR_CORNER_KINDS, az as VECTOR_EFFECT_TYPES, aA as VECTOR_FILTER_TYPES, aB as VECTOR_GRADIENT_INTERPOLATIONS, aC as VECTOR_GRADIENT_SPREADS, aD as VECTOR_GRADIENT_TYPES, aE as VECTOR_HORIZONTAL_RESIZING, aF as VECTOR_MASK_TYPES, aG as VECTOR_MERGE_MODES, aH as VECTOR_PATHFINDER_OPERATIONS, aI as VECTOR_PATH_TEXT_BASELINES, aJ as VECTOR_STROKE_GRADIENT_MODES, aK as VECTOR_SYMMETRY_MODES, aL as VECTOR_TEXT_ALIGNS, aM as VECTOR_TOOLS, aN as VECTOR_TRANSFORM_HANDLES, aO as VECTOR_VERTICAL_RESIZING, aP as VectorCorner, m as VectorFilterParamsMap, aQ as VectorGeomRef, q as VectorGradientUnits, aR as VectorLineCap, aS as VectorPathTextBaseline, aT as VectorStrokeLayerKind, aU as VectorTextRunStyle, aV as VectorWarpStyle } from '../types-CznabG7m.cjs';
1
+ import { p as Vec2$1, x as VectorSubpath, i as VectorBounds, bn as VectorAnchor, y as VectorDocument, f as VectorNode, c as VectorPathNode, bo as VectorTextNode, bp as VectorAnchorType, t as VectorPaint, h as VectorGroupNode, bq as VectorCornerKind, z as VectorWidthPoint, o as VectorGradient, v as VectorGradientStop, br as VectorViewport, bs as VectorConnectorRoute, bt as VectorConnectorSide, bu as VectorConnectorEnd, bv as VectorConnector, bw as VectorConstraintKind, bx as VectorConstraint, by as VectorCharacterStyle, bz as VectorTextRun, bA as VectorParagraphStyle, bB as VectorTextFrame, bC as VectorTransformHandle, bD as VectorAnchorRef, bE as VectorPathfinderOperation, bF as VectorTool, bG as VectorDefaults, bH as VectorTextAlign, bI as VectorStyle, bJ as VectorHandleRef, bK as VectorSegmentRef, bL as VectorBlendOptions, u as VectorMatrix, bM as VectorModifiers, W as EffectsSlot, E as EffectProvider, C as EffectValue, bN as VectorProviderEffect, bO as VectorBlendMode, l as VectorFilterType, V as VectorEffectType, bP as VectorAlign, bQ as VectorDistribute, bR as VectorArrange, e as VectorBooleanOperation, bS as VectorMaskType, bT as VectorSymmetryMode, bU as VectorSymmetry, bV as VectorFreeformPoint, bW as VectorMeshGradient, bX as VectorFreeformGradient, bY as VectorArrowhead, bZ as VectorResizing, b_ as VectorFrame, b$ as VectorHorizontalResizing, c0 as VectorVerticalResizing, c1 as VectorMask, c2 as VectorAverageAxis, c3 as VectorSymbol, c4 as VectorParameter, j as VectorWarpMesh, d as VectorFillRule, c5 as VectorBlendSpacing, c6 as VectorGradientInterpolation, r as VectorGradientSpread, s as VectorGradientType, w as VectorStrokeAlign, c7 as VectorStrokeGradientMode, c8 as VectorArrowAlign, g as VectorEffect, c9 as VectorPaintLayer, ca as VectorStrokeLayer, n as VectorFilter, cb as VectorBlend, cc as VectorMergeMode, cd as VectorLineJoin, b as VectorEffectParamsMap, ce as VectorStrokeSettings, cf as VectorInstanceOverrides, k as VectorInstanceNode } from '../helpers-i95Ob6Vi.cjs';
2
+ export { cg as VECTOR_ARROWHEADS, ch as VECTOR_BLEND_MODES, ci as VECTOR_BLEND_SPACINGS, cj as VECTOR_CONNECTOR_ROUTES, ck as VECTOR_CONNECTOR_SIDES, cl as VECTOR_CONSTRAINT_KINDS, cm as VECTOR_CORNER_KINDS, cn as VECTOR_EFFECT_TYPES, co as VECTOR_FILTER_TYPES, cp as VECTOR_GRADIENT_INTERPOLATIONS, cq as VECTOR_GRADIENT_SPREADS, cr as VECTOR_GRADIENT_TYPES, cs as VECTOR_HORIZONTAL_RESIZING, ct as VECTOR_MASK_TYPES, cu as VECTOR_MERGE_MODES, cv as VECTOR_PATHFINDER_OPERATIONS, cw as VECTOR_PATH_TEXT_BASELINES, cx as VECTOR_STROKE_GRADIENT_MODES, cy as VECTOR_SYMMETRY_MODES, cz as VECTOR_TEXT_ALIGNS, cA as VECTOR_TOOLS, cB as VECTOR_TRANSFORM_HANDLES, cC as VECTOR_VERTICAL_RESIZING, cD as VectorCorner, m as VectorFilterParamsMap, cE as VectorGeomRef, q as VectorGradientUnits, cF as VectorLineCap, cG as VectorPathTextBaseline, cH as VectorStrokeLayerKind, cI as VectorTextRunStyle, cJ as VectorWarpStyle } from '../helpers-i95Ob6Vi.cjs';
3
3
  import { P as Point } from '../brushTypes-IG7ZZjIN.cjs';
4
4
  import { a as BezierPathInput, A as AffineMatrix$1, B as BezierPath, c as BezierSegment } from '../bezier-CBzKKDjl.cjs';
5
- import { a as VectorGradientHandle, V as VectorSvgExportOptions, b as VectorGradientPatch, c as VectorEnvelopeParams, d as VectorRenderFilter, e as VectorAppearanceShape, f as VectorFilterParamSpec, g as VectorEffectParamSpec, h as VectorRenderStrokeParts, i as VectorPaintDef, j as VectorRgba, k as VectorSvgPatternDef } from '../svg-BDrjRnL1.cjs';
6
- export { l as VECTOR_EFFECT_DEFAULTS, m as VECTOR_EFFECT_LABELS, n as VECTOR_EFFECT_PARAM_SPECS, o as VECTOR_FILTER_DEFAULTS, p as VECTOR_FILTER_LABELS, q as VECTOR_FILTER_MENU, r as VECTOR_FILTER_PARAM_SPECS, s as VECTOR_GRADIENT_MAX_PERIODS, t as VECTOR_GRADIENT_MIN_STOPS, u as VectorBooleanOperand, v as VectorFilterPrimitive, w as VectorGradientPoints, x as VectorGradientRamp, y as VectorGradientSvgOptions, z as VectorPaintSvgOptions, A as VectorSvgImportOptions, B as VectorSvgWrapper, C as activeVectorEffects, D as activeVectorFilters, E as applyVectorCornersAttribute, F as applyVectorEffects, G as applyVectorGradientPatch, H as applyVectorGradientSpread, I as clearVectorLiveBooleanCache, J as convertVectorGradient, K as createVectorEffect, L as createVectorFilter, M as defaultVectorGradient, N as expandVectorAppearance, O as expandVectorAppearances, P as expandVectorGradientSpread, Q as expandVectorGradientStops, R as explicitVectorGradient, S as foldVectorBooleanOperands, T as gradientMidpointRemap, U as hasExplicitGradientGeometry, W as hasOwnVectorAppearance, X as hasVectorAppearance, Y as insertVectorGradientStop, Z as isCentredVectorGradient, _ as isVectorFilterType, $ as isVectorGradient, a0 as isVectorLiveBoolean, a1 as mapVectorGradient, a2 as mapVectorPaint, a3 as moveVectorGradientHandle, a4 as moveVectorGradientStop, a5 as normalizeVectorEffectParams, a6 as normalizeVectorFilterParams, a7 as parseSvgTransform, a8 as parseVectorColor, a9 as parseVectorSvg, aa as patternAttrs, ab as periodicVectorGradientStops, ac as pinVectorGradient, ad as removeVectorGradientStop, ae as reverseVectorGradient, af as samplePlainStops, ag as sampleVectorGradient, ah as sampleVectorGradientAt, ai as sampleVectorPaintDefAt, aj as sanitizeVectorEffects, ak as sanitizeVectorFilters, al as sanitizeVectorGradient, am as setVectorGradientVector, an as sortedVectorGradientStops, ao as spanVectorGradientStops, ap as transformVectorEffects, aq as transformVectorGradient, ar as transformVectorPaint, as as vectorAppearanceNodes, at as vectorAppearanceOutline, au as vectorAppearanceShapes, av as vectorBoxMatrix, aw as vectorChildAppearanceShapes, ax as vectorCornersAttribute, ay as vectorDocumentToSvg, az as vectorEffectInputBounds, aA as vectorEffectInputPaths, aB as vectorEnteredGroups, aC as vectorEnvelopeFrame, aD as vectorEnvelopeMap, aE as vectorEnvelopeMesh, aF as vectorFilterMarkup, aG as vectorFilterParamKeys, aH as vectorFilterReach, aI as vectorFilterSvg, aJ as vectorGradientArea, aK as vectorGradientAspect, aL as vectorGradientFocalParam, aM as vectorGradientHandles, aN as vectorGradientMatrix, aO as vectorGradientMidpointFromPosition, aP as vectorGradientMidpointPosition, aQ as vectorGradientNeedsExpansion, aR as vectorGradientParam, aS as vectorGradientPoints, aT as vectorGradientRamp, aU as vectorGradientSvgDefs, aV as vectorGradientTAt, aW as vectorGradientUnitsMatrix, aX as vectorInstanceDrawn, aY as vectorLiveBooleanSteps, aZ as vectorNodeEnvelope, a_ as vectorNodeFilterSvg, a$ as vectorNodeLocalPaintBounds, b0 as vectorOperandOperation, b1 as vectorPaintToSvg, b2 as vectorPathLocalBounds, b3 as vectorStrokeSvgParts, b4 as widthProfileFromAttribute, b5 as widthProfileToAttribute } from '../svg-BDrjRnL1.cjs';
5
+ import { a as VectorGradientHandle, V as VectorSvgExportOptions, b as VectorGradientPatch, c as VectorEnvelopeParams, d as VectorRenderFilter, e as VectorAppearanceShape, f as VectorFilterParamSpec, g as VectorEffectParamSpec, h as VectorRenderStrokeParts, i as VectorPaintDef, j as VectorRgba, k as VectorSvgPatternDef } from '../svg-BkRL-fZJ.cjs';
6
+ export { l as VECTOR_EFFECT_DEFAULTS, m as VECTOR_EFFECT_LABELS, n as VECTOR_EFFECT_PARAM_SPECS, o as VECTOR_FILTER_DEFAULTS, p as VECTOR_FILTER_LABELS, q as VECTOR_FILTER_MENU, r as VECTOR_FILTER_PARAM_SPECS, s as VECTOR_GRADIENT_MAX_PERIODS, t as VECTOR_GRADIENT_MIN_STOPS, u as VectorBooleanOperand, v as VectorFilterPrimitive, w as VectorGradientPoints, x as VectorGradientRamp, y as VectorGradientSvgOptions, z as VectorPaintSvgOptions, A as VectorSvgImportOptions, B as VectorSvgWrapper, C as activeVectorEffects, D as activeVectorFilters, E as applyVectorCornersAttribute, F as applyVectorEffects, G as applyVectorGradientPatch, H as applyVectorGradientSpread, I as clearVectorLiveBooleanCache, J as convertVectorGradient, K as createVectorEffect, L as createVectorFilter, M as defaultVectorGradient, N as expandVectorAppearance, O as expandVectorAppearances, P as expandVectorGradientSpread, Q as expandVectorGradientStops, R as explicitVectorGradient, S as foldVectorBooleanOperands, T as gradientMidpointRemap, U as hasExplicitGradientGeometry, W as hasOwnVectorAppearance, X as hasVectorAppearance, Y as insertVectorGradientStop, Z as isCentredVectorGradient, _ as isVectorFilterType, $ as isVectorGradient, a0 as isVectorLiveBoolean, a1 as mapVectorGradient, a2 as mapVectorPaint, a3 as moveVectorGradientHandle, a4 as moveVectorGradientStop, a5 as normalizeVectorEffectParams, a6 as normalizeVectorFilterParams, a7 as parseSvgTransform, a8 as parseVectorColor, a9 as parseVectorSvg, aa as patternAttrs, ab as periodicVectorGradientStops, ac as pinVectorGradient, ad as removeVectorGradientStop, ae as reverseVectorGradient, af as samplePlainStops, ag as sampleVectorGradient, ah as sampleVectorGradientAt, ai as sampleVectorPaintDefAt, aj as sanitizeVectorEffects, ak as sanitizeVectorFilters, al as sanitizeVectorGradient, am as setVectorGradientVector, an as sortedVectorGradientStops, ao as spanVectorGradientStops, ap as transformVectorEffects, aq as transformVectorGradient, ar as transformVectorPaint, as as vectorAppearanceNodes, at as vectorAppearanceOutline, au as vectorAppearanceShapes, av as vectorBoxMatrix, aw as vectorChildAppearanceShapes, ax as vectorCornersAttribute, ay as vectorDocumentToSvg, az as vectorEffectInputBounds, aA as vectorEffectInputPaths, aB as vectorEnteredGroups, aC as vectorEnvelopeFrame, aD as vectorEnvelopeMap, aE as vectorEnvelopeMesh, aF as vectorFilterMarkup, aG as vectorFilterParamKeys, aH as vectorFilterReach, aI as vectorFilterSvg, aJ as vectorGradientArea, aK as vectorGradientAspect, aL as vectorGradientFocalParam, aM as vectorGradientHandles, aN as vectorGradientMatrix, aO as vectorGradientMidpointFromPosition, aP as vectorGradientMidpointPosition, aQ as vectorGradientNeedsExpansion, aR as vectorGradientParam, aS as vectorGradientPoints, aT as vectorGradientRamp, aU as vectorGradientSvgDefs, aV as vectorGradientTAt, aW as vectorGradientUnitsMatrix, aX as vectorInstanceDrawn, aY as vectorLiveBooleanSteps, aZ as vectorNodeEnvelope, a_ as vectorNodeFilterSvg, a$ as vectorNodeLocalPaintBounds, b0 as vectorOperandOperation, b1 as vectorPaintToSvg, b2 as vectorPathLocalBounds, b3 as vectorStrokeSvgParts, b4 as widthProfileFromAttribute, b5 as widthProfileToAttribute } from '../svg-BkRL-fZJ.cjs';
7
7
  import { H as HistoryManager } from '../HistoryManager-DeQQMBCj.cjs';
8
8
  import { a as TextFont, L as LaidFragment, f as LaidLine, e as TextLayout, T as TextShaper } from '../warp-CH9MM435.cjs';
9
9
  export { g as VECTOR_WARP_STYLES, h as VECTOR_WARP_STYLE_LABELS, W as VectorWarpPreset, i as dragVectorMeshPoint, j as evalVectorMesh, k as fitVectorMesh, l as isValidVectorMesh, m as mapVectorMeshPoints, p as pullVectorMesh, r as removeVectorMeshSplitU, n as removeVectorMeshSplitV, o as resizeVectorMesh, s as splitVectorMeshU, q as splitVectorMeshV, t as vectorIdentityMesh, w as vectorMeshColumns, u as vectorMeshControlBounds, v as vectorMeshEditPoints, x as vectorMeshGridCurves, y as vectorMeshParamAt, z as vectorMeshRows, A as vectorWarpPresetGrid, B as vectorWarpPresetMesh } from '../warp-CH9MM435.cjs';
@@ -13,9 +13,12 @@ import { C as CommandSpec } from '../registry-CaR7LC6W.cjs';
13
13
  import { S as StrokeJoin, a as StrokeCap, P as PlanarMap, b as PathfinderOperation, c as PathfinderShape } from '../pathfinder-C0UoFypx.cjs';
14
14
  import { b as AnimationEasing } from '../easing-lM0Xo9Ni.cjs';
15
15
  export { C as CanvasTextShaperOptions, O as OpenTypeFont, a as OutlineFontEntry, b as OutlineFontFace, c as OutlinePathCommand, d as applyVectorHomography, e as createCanvasTextShaper, f as createMetricTextShaper, g as createOutlineTextShaper, h as cssFontFamily, l as loadOpenTypeFont, o as orderVectorQuad, p as parseOpenTypeFont, s as solve8, i as vectorHomography, j as vectorHomographyKeepsQuad } from '../opentype-D80AVmMu.cjs';
16
+ import { a as AgentToolProvider } from '../registry-BqA1AZt0.cjs';
16
17
  export { S as SvgGradientDef } from '../gradient-KDfCvhuj.cjs';
17
- import '../types-DsiXGmjo.cjs';
18
18
  import '../schema-Di0CS6Pe.cjs';
19
+ import '../behavior-Ymbld6jL.cjs';
20
+ import '../evaluate-2S3vSPLy.cjs';
21
+ import '../types-DsiXGmjo.cjs';
19
22
 
20
23
  /**
21
24
  * Affine matrices in SVG order (`[a, b, c, d, e, f]`), shared by the vector and image editors.
@@ -2232,6 +2235,40 @@ declare class VectorEditorController {
2232
2235
  loadSvg(svg: string, options?: {
2233
2236
  history?: boolean;
2234
2237
  }): VectorActionResult;
2238
+ /** The effects provider slot (see `setEffectsProvider`). */
2239
+ readonly effects: EffectsSlot;
2240
+ /** The registered effects provider, or `null`. */
2241
+ get effectsProvider(): EffectProvider | null;
2242
+ /** Registers (or with `null` removes) the effects provider. Not an edit: no undo step. */
2243
+ setEffectsProvider(provider: EffectProvider | null): void;
2244
+ /** Registers `provider` and returns a function that removes it again (if it is still the one set). */
2245
+ useEffects(provider: EffectProvider): () => void;
2246
+ /** The groups that show provider vector effects. */
2247
+ vectorEffectGroups(): VectorGroupNode[];
2248
+ /** The effect's picture as group children, scaled into `box` (an affine fit). */
2249
+ private vectorEffectPicture;
2250
+ /**
2251
+ * Adds a provider vector effect's picture (at rest: its SVG without the motion) as a group,
2252
+ * fitted into `box` (default the middle half of the document), selected. One undo step.
2253
+ * Returns the group id.
2254
+ */
2255
+ addVectorEffect(effect: string, options?: {
2256
+ values?: Record<string, EffectValue>;
2257
+ box?: {
2258
+ x: number;
2259
+ y: number;
2260
+ width: number;
2261
+ height: number;
2262
+ };
2263
+ parentId?: string;
2264
+ }): Promise<string>;
2265
+ /**
2266
+ * Draws a vector effect group again with new `values` (merged over its own; `null` resets a
2267
+ * control), keeping its place and transform. One undo step. Returns the group's effect.
2268
+ */
2269
+ updateVectorEffect(id: string, values: Record<string, EffectValue | null>): Promise<VectorProviderEffect>;
2270
+ /** Keeps a vector effect group's shapes as a plain group (drops its effect). One undo step. */
2271
+ detachVectorEffect(id: string): void;
2235
2272
  /** Adds the nodes of SVG markup on top of the document, selected. */
2236
2273
  importSvg(svg: string): VectorActionResult;
2237
2274
  toSvg(options?: VectorSvgExportOptions): string;
@@ -6090,4 +6127,22 @@ declare function vectorSpatialIndex(nodes: readonly VectorNode[]): VectorRTree |
6090
6127
  */
6091
6128
  declare function vectorNodesNear(nodes: readonly VectorNode[], rect: VectorBounds, pad?: number): number[];
6092
6129
 
6093
- export { type AddVectorNodeOptions, AffineMatrix$1 as AffineMatrix, DEFAULT_VECTOR_BLEND_DISTANCE, DEFAULT_VECTOR_BLEND_STEPS, DEFAULT_VECTOR_FONT, DEFAULT_VECTOR_PATH_EDIT, DEFAULT_VECTOR_SNAP, IDENTITY_MATRIX, KAPPA, LazyMouse, type MapVectorSubpathsOptions, type NearestSegment, type RecognizeInkOptions, TextFont, TextShaper, VECTOR_ARROWHEAD_LABELS, VECTOR_BLEND_MAX_SMOOTH_STEPS, VECTOR_BLEND_MAX_STEPS, VECTOR_BLEND_MODE_LABELS, VECTOR_BLEND_MODE_MENU, VECTOR_BLEND_SPACING_LABELS, VECTOR_BUILDER_HATCH_GAP, VECTOR_CHARACTER_STYLE_KEYS, VECTOR_CLIPBOARD_TYPE, VECTOR_CONNECTOR_ROUTE_LABELS, VECTOR_CONNECTOR_SIDE_LABELS, VECTOR_CONSTRAINT_GLYPHS, VECTOR_CONSTRAINT_LABELS, VECTOR_CONSTRUCTION_ANGLES, VECTOR_CORNER_KIND_LABELS, VECTOR_CORNER_WIDGET_INSET, VECTOR_DIMENSIONAL_KINDS, VECTOR_DISTORT_TOLERANCE, VECTOR_EDIT_TOGGLES, VECTOR_EFFECT_MENU, VECTOR_ENVELOPE_STYLE_OPTIONS, VECTOR_FILL_GAP, VECTOR_FONT_WEIGHTS, VECTOR_GRADIENT_INTERPOLATION_LABELS, VECTOR_GRADIENT_MIDPOINT_GAP, VECTOR_GRADIENT_OFF_BAR, VECTOR_GRADIENT_SPREAD_LABELS, VECTOR_GRADIENT_STOP_GAP, VECTOR_GRADIENT_TYPE_LABELS, VECTOR_HORIZONTAL_RESIZING_LABELS, VECTOR_INK_MAX_CORNERS, VECTOR_MASK_TYPE_LABELS, VECTOR_MASK_TYPE_OPTIONS, VECTOR_MAX_CONSTRAINTS, VECTOR_MAX_TRACKING_POINTS, VECTOR_MESH_MAX, VECTOR_OVERLAY_THEME, VECTOR_PARAGRAPH_STYLE_KEYS, VECTOR_PATHFINDER_ACTIONS, VECTOR_PATHFINDER_LABELS, VECTOR_PATH_ACTIONS, VECTOR_PENCIL_STRING_PX, VECTOR_PRESSURE_NOMINAL, VECTOR_ROTATE_HANDLE_OFFSET, VECTOR_SPATIAL_MIN, VECTOR_STROKE_ALIGN_LABELS, VECTOR_STROKE_GRADIENT_MODE_LABELS, VECTOR_STROKE_SETTING_KEYS, VECTOR_STYLE_KEYS, VECTOR_SYMBOL_MAX_DEPTH, VECTOR_SYMMETRY_MODE_LABELS, VECTOR_TEXT_ALIGN_LABELS, VECTOR_TEXT_ALIGN_OPTIONS, VECTOR_TOOL_GLYPHS, VECTOR_TOOL_SHORTCUTS, VECTOR_TRACE_MAX_PIXELS, VECTOR_VERTICAL_RESIZING_LABELS, VECTOR_WIDTH_PRESETS, VECTOR_WIDTH_PRESET_IDS, VECTOR_WIDTH_PROFILE_MAX_POINTS, VECTOR_WIDTH_PROFILE_MAX_SCALE, VECTOR_WIDTH_SAME_T, type VariableStrokeOptions, Vec2$1 as Vec2, type VectorActionResult, VectorAlign, VectorAnchor, VectorAnchorRef, VectorAnchorType, type VectorAppearancePanelData, type VectorAppearancePanelLayer, VectorAppearanceShape, VectorArrange, VectorArrowAlign, VectorArrowhead, type VectorArrowheadShape, VectorAverageAxis, VectorBlend, type VectorBlendControls, type VectorBlendInput, VectorBlendMode, VectorBlendOptions, type VectorBlendRail, VectorBlendSpacing, type VectorBlendStart, VectorBooleanOperation, VectorBounds, type VectorBuilderHit, type VectorBuilderLinePiece, type VectorBuilderPreview, type VectorBuilderReplacement, type VectorBuilderTouched, VectorCharacterStyle, type VectorCommandOptions, type VectorConnectionSite, VectorConnector, VectorConnectorEnd, type VectorConnectorListing, type VectorConnectorPanel, VectorConnectorRoute, type VectorConnectorRouting, VectorConnectorSide, VectorConstraint, type VectorConstraintAction, VectorConstraintError, type VectorConstraintGlyph, type VectorConstraintInput, VectorConstraintKind, type VectorConstraintPanelData, type VectorConstraintRefInput, type VectorCornerInfo, VectorCornerKind, type VectorCornerWidget, VectorDefaults, type VectorDistortMode, VectorDistribute, VectorDocument, type VectorDofReport, type VectorDofStatus, VectorEditorController, type VectorEditorOptions, type VectorEditorState, VectorEffect, VectorEffectParamSpec, VectorEffectParamsMap, VectorEffectType, type VectorEffectsPanelData, type VectorEffectsPanelItem, type VectorEnvelopePanelData, VectorEnvelopeParams, VectorExprEnv, VectorExprError, VectorFillRule, VectorFilter, VectorFilterParamSpec, VectorFilterType, type VectorFiltersPanelItem, VectorFrame, type VectorFrameGroup, type VectorFrameListing, type VectorFramePanel, type VectorFreeformField, VectorFreeformGradient, VectorFreeformPoint, VectorGradient, type VectorGradientAnnotator, type VectorGradientEditorData, VectorGradientHandle, VectorGradientInterpolation, type VectorGradientPart, VectorGradientPatch, VectorGradientSpread, VectorGradientStop, type VectorGradientTarget, VectorGradientType, VectorGroupNode, type VectorGuideKind, type VectorGuideLabel, type VectorGuideLine, VectorHandleRef, type VectorHitTestOptions, VectorHorizontalResizing, type VectorHover, type VectorInferOptions, type VectorInkShape, VectorInstanceNode, VectorInstanceOverrides, type VectorInteraction, type VectorKeyInput, VectorLineJoin, type VectorLottie, type VectorLottieExport, type VectorLottieExportOptions, type VectorLottieImport, type VectorLottieImportOptions, VectorMask, type VectorMaskClipShape, type VectorMaskGroup, type VectorMaskPanelData, type VectorMaskRegionShape, type VectorMaskRenderData, type VectorMaskResult, type VectorMaskSummary, VectorMaskType, VectorMatrix, VectorMergeMode, VectorMeshGradient, VectorModifiers, type VectorMorph, type VectorMorphContour, type VectorMorphCorrespondence, type VectorMorphOptions, VectorNode, type VectorNodeListing, type VectorOverlayRenderData, VectorPaint, VectorPaintDef, VectorPaintLayer, type VectorPaintLayerHit, type VectorPaintLayerNode, VectorParagraphStyle, VectorParameter, type VectorPathAction, type VectorPathEditOptions, type VectorPathEntry, type VectorPathKeyframe, type VectorPathMeasure, VectorPathNode, type VectorPathfinderAction, VectorPathfinderOperation, type VectorPathfinderPaint, type VectorPdfExport, type VectorPdfOptions, type VectorPointMap, type VectorPointSnap, type VectorPointerInput, VectorRTree, type VectorRectSnap, type VectorRenderAnchor, type VectorRenderCornerWidget, VectorRenderFilter, type VectorRenderGradientAnnotator, type VectorRenderGroup, type VectorRenderGuideLabel, type VectorRenderGuideLine, type VectorRenderHandle, type VectorRenderMask, type VectorRenderNode, type VectorRenderPaintLayer, type VectorRenderPath, VectorRenderStrokeParts, type VectorRenderText, type VectorRenderTextSpan, type VectorRenderWidthPoint, type VectorRepeaterCopy, VectorResizing, type VectorResolvedRun, VectorRgba, type VectorScaleSnap, type VectorSceneRenderData, type VectorSceneRenderOptions, VectorSegmentRef, type VectorSelectionBoxGeometry, type VectorSelectionFrame, type VectorSelectionStyle, type VectorShadedSvgOptions, type VectorShapeBuilderFace, type VectorShapeBuilderMap, type VectorShapeBuilderPlan, type VectorShapeBuilderResult, type VectorShapeInput, type VectorSnapGuides, type VectorSnapKind, type VectorSnapLeave, type VectorSnapOptions, VectorSnapTargets, type VectorSolveResult, VectorStrokeAlign, VectorStrokeGradientMode, VectorStrokeLayer, type VectorStrokeParts, VectorStrokeSettings, type VectorStrokeSpot, VectorStyle, VectorSubpath, VectorSvgExportOptions, VectorSvgPatternDef, VectorSymbol, type VectorSymbolsPanelData, type VectorSymbolsPanelItem, VectorSymmetry, type VectorSymmetryGroup, VectorSymmetryMode, type VectorTaperOptions, VectorTextAlign, type VectorTextCaret, type VectorTextDefaults, type VectorTextEditState, VectorTextError, type VectorTextFragment, VectorTextFrame, type VectorTextGlyph, type VectorTextInput, type VectorTextLayout, VectorTextNode, type VectorTextPanelData, type VectorTextPaths, VectorTextRun, type VectorTextSpan, VectorTool, type VectorTraceOptions, type VectorTracePixels, type VectorTrackingPath, type VectorTrackingPoint, VectorTransformHandle, VectorVerticalResizing, VectorViewport, VectorWarpMesh, type VectorWaveOptions, type VectorWidthHandle, VectorWidthPoint, type VectorWidthPointEdit, type VectorWidthPointRef, type VectorWidthPreset, type VectorWidthPresetInfo, addBuilderHit, addVectorConstraint, applyMatrix, applyMatrixLinear, applyVectorBlendOptions, applyVectorParagraphStyle, applyVectorTextStyle, arrowheadInset, arrowheadPath, arrowheadWeight, autoConstrainVector, autoVectorFreeformGradient, bakeVectorTextGeometry, bendSegment, bezierToSubpaths, boundsFromPoints, boundsIntersect, checkVectorExpression, cloneAnchor, cloneSubpath, cloneVectorDocument, cloneVectorNode, collectPaintedNodes, collectPathNodes, composeVectorMatrices, constrainToLeave, convertAnchor, cornerBisectorPoint, cornerRadiusChange, cornerSetback, correspondMorphContours, createVectorCommands, createVectorMeshGradient, createVectorMorph, curvatureMoveAnchor, cutSubpathAt, dashIntervals, decomposeRigid, distortVectorNode, effectPathLength, effectPathVertexCount, effectiveStrokeAlign, ellipseSubpath, eraseFromFill, eraseFromOutline, eraserRegion, evalVectorExpression, evaluateVectorPathKeyframes, expandVectorBlend, expandVectorCorners, expandVectorCornersOf, findVectorAnchorById, findVectorNode, fitCornerRadius, fitVectorTextRuns, formatVectorValue, generateVectorBlendChildren, generateWidthProfile, getAnchor, getAnchorWorld, getEditablePathIds, getTransformHandlePositions, getVectorAppearancePanel, getVectorBlendControls, getVectorConnectorPanel, getVectorConstraintPanel, getVectorCornerWidgets, getVectorEffectsPanel, getVectorEnteredGroups, getVectorEnvelopePanel, getVectorEnvelopeTarget, getVectorFramePanel, getVectorGradientAnnotator, getVectorGradientEditor, getVectorMaskPanel, getVectorOverlayRenderData, getVectorSceneRenderData, getVectorSelectionBoxGeometry, getVectorSelectionFrame, getVectorSelectionStyle, getVectorSymbolEditBackground, getVectorSymbolsPanel, getVectorTextPanel, getVectorTextShaper, getVectorWidthHandles, getVisibleAnchors, getVisibleHandles, glyphBox, hasPaint, hasStrokeExtras, hasVectorCorners, hasVectorPaintStacks, hitTestVectorNode, hitTestVectorNodes, hitTestVectorPaintLayer, hitTestVectorPaintStack, hitTestVectorStroke, hitVectorGradientAnnotator, inferAnchorType, inferVectorConstraints, insertAnchor, insertWidthPoint, interpolateMorphContours, interpolateRigidMatrix, interpolateVectorColor, interpolateVectorPaint, interpolateVectorPaths, interpolateVectorStyle, interpolateWidthProfiles, invertMatrix, isClosedBezierShape, isDrawnVectorPaintLayer, isIdentityMatrix, isPlainVectorPaintLayer, isUniformWidthProfile, isValidVectorParameterName, isVectorBlendGroup, isVectorBlendMode, isVectorConnector, isVectorFrame, isVectorFreeformGradient, isVectorMaskActive, isVectorMaskGroup, isVectorMaskType, isVectorMeshGradient, isVectorShadedPaint, isVectorSymmetryGroup, isVectorTextTarget, joinSubpaths, knifePath, layoutVectorText, lineSubpath, locateVectorNode, lottieValueAt, mapBezierPath, mapVectorPoints, mapVectorShadedPaint, mapVectorSubpaths, matrixRotation, measureVectorConstraint, measureVectorPath, mergePaths, mirrorWidthProfile, morphContourToSubpath, morphPathsCross, moveAnchorHandle, multiplyMatrices, nearestSegment, nearestStrokePosition, nearestVectorConnectionSite, nearestVectorShadingPoint, needsVectorPaintLayers, newVectorStrokeLayer, nextVectorConstraintName, nextVectorCornerKind, nodeMatrix, normalizeVectorPaintStacks, normalizeVectorTextRuns, offsetPaths, parseVectorLottie, patchVectorCharacterStyle, patchVectorParagraphStyle, pathTextFrameFromBezier, pathsCenter, planShapeBuilder, polygonSubpath, polylineBounds, prefixVectorIds, pressureWidthProfile, puckerBloatPaths, purgeVectorConstraints, quantizeVectorTraceColors, recognizeInkShape, rectSubpath, refineMorphContour, refreshVectorBlends, releaseVectorBlend, removeAnchorKeepingShape, removeAnchors, removeAnchorsKeepingShape, removeRedundantPoints, removeVectorFreeformPoint, removeWidthPoints, repeatPaths, replaceVectorText, rerouteVectorConnectors, resampleGradientStops, resolveVectorBlendOptions, resolveVectorSymbols, reverseMorphContour, reverseSubpath, reverseWidthProfile, rotateMatrix, roundCornerPaths, roundSubpaths, routeVectorConnector, samplePolyline, sampleVectorFreeform, sanitizeVectorConnector, sanitizeVectorFills, sanitizeVectorFrame, sanitizeVectorMask, sanitizeVectorResizing, sanitizeVectorShadedPaint, sanitizeVectorStrokeSettings, sanitizeVectorStrokes, sanitizeVectorSymmetry, sanitizeVectorTextFields, sanitizeVectorTextFrame, sanitizeWidthProfile, scaleFor, scaleMatrix, scaleVectorStrokeWidths, setAnchorCorner, setSubpathCorners, setVectorTextShaper, setWidthPoint, simplifyPolyline, smoothSubpath, solveVectorConstraints, splitIntoFaces, splitSubpathAt, starSubpath, stripVectorSymbolArt, strokePositionPoint, strokeWidthProfileOf, styleVectorText, subpathEnclosesArea, subpathPointAt, subpathSegment, subpathSegmentCount, subpathToMorphContour, subpathsToBezier, sweepPath, taperWaveFactor, tintVectorNode, toVectorKeyInput, toVectorModifiers, toVectorPointerInput, traceVectorImage, transformVectorNode, transformVectorShadedPaint, transformVectorSymmetry, translateAnchor, translateMatrix, trimIntervals, trimPaths, trimPathsIndividually, turnMorphContour, twistPaths, unionBounds, validateVectorConstraint, variableStrokeOutline, variableStrokeRings, vectorAngleDirection, vectorArtboards, vectorBlendColorDistance, vectorBlendKeyTargets, vectorBlendKeys, vectorBlendModeCss, vectorBlendModeFromCss, vectorBlendRail, vectorBlendRailAt, vectorBlendSpine, vectorBlendStepCount, vectorBoundsInside, vectorBoxCorners, vectorBuilderErasedEdges, vectorConnectionSites, vectorConnectorTargetAt, vectorConnectorWorldAnchors, vectorConstraintActions, vectorConstraintDof, vectorConstraintEnv, vectorConstraintGlyphs, vectorConstraintPanel, vectorConstraintResiduals, vectorConstraintValue, vectorCornerAt, vectorCorners, vectorDiamondPath, vectorDistortQuad, vectorDocumentToLottie, vectorDocumentToPdf, vectorExpressionNames, vectorFillMap, vectorFills, vectorFrameChildMatrix, vectorFrameContains, vectorFrameDocument, vectorFrameDrawn, vectorFrameRectPath, vectorFreeformField, vectorFreeformLineSegments, vectorFreeformSpreadScale, vectorGradientBarPosition, vectorGradientTargetPath, vectorInkShapeName, vectorInstanceGroup, vectorMaskContains, vectorMaskContentBounds, vectorMaskContents, vectorMaskOwner, vectorMaskRegion, vectorMaskRegionPath, vectorMaskRegionShapes, vectorMaskRenderData, vectorMaskSource, vectorMaskSummary, vectorMaskedGeometry, vectorMaskedLocalBounds, vectorMaskedShapes, vectorMeshColorAt, vectorMeshFromOutline, vectorMeshLines, vectorMeshOutline, vectorMeshPointAt, vectorNodeBounds, vectorNodePaintBox, vectorNodeRotation, vectorNodeToBezier, vectorNodesNear, vectorPaintLayerNodes, vectorPaintSwatch, vectorPaintToHex, vectorParentMatrix, vectorPathAt, vectorPathCircle, vectorPathData, vectorPathEntries, vectorPathTextPositions, vectorPathWorldBezier, vectorPathfinderShape, vectorPolarAngles, vectorPolarIncrementOf, vectorRepeaterCopies, vectorResizeCursor, vectorResultStyle, vectorRgbaToCss, vectorShadedSvgDefs, vectorShapeBuilderHit, vectorShapeBuilderMap, vectorShearForSide, vectorSkewMatrix, vectorSpatialIndex, vectorStacksHaveGradient, vectorStrokeGradientDefs, vectorStrokeLineArea, vectorStrokeOutline, vectorStrokeOutlinePath, vectorStrokeParts, vectorStrokeReach, vectorStrokeSettings, vectorStrokeStackReach, vectorStrokeWidthGeometry, vectorStrokes, vectorSymbolUses, vectorSymbolsUsedIn, vectorSymmetryAxes, vectorSymmetryDrawn, vectorSymmetryMatrices, vectorTargetPaint, vectorTextBoxOutline, vectorTextCaret, vectorTextFamilies, vectorTextGeometryNode, vectorTextHasOutlines, vectorTextIndexAt, vectorTextName, vectorTextPaintSource, vectorTextPaths, vectorTextRange, vectorTextRuns, vectorTextSelectionQuads, vectorTextShaperGeneration, vectorTextSpanSvg, vectorTextSpans, vectorTextStyleAt, vectorToolLabel, vectorTraceContours, vectorTrackingPaths, vectorWorldMatrix, walkVectorNodes, widthProfileAt, widthProfileMaxScale, widthProfilePreset, widthProfilePresetId, wigglePaths, withVectorAnchorIds, withVectorDocumentAnchorIds, withVectorFills, withVectorStrokes, withVectorTargetPaint, zigzagPaths };
6130
+ /**
6131
+ * Agent tools for provider effects in the vector editor: the shared effect tools, where
6132
+ * `apply_effect` adds a provider vector effect's picture (a lower third, a sticker, a loader) as
6133
+ * a group, `update_effect` draws it again with new values and `remove_effect` keeps its shapes as
6134
+ * a plain group. Motion is applied in the animation editor.
6135
+ */
6136
+
6137
+ interface VectorEffectsToolProviderOptions {
6138
+ /** Provider id (unique per registry). Default `vector-effects`. */
6139
+ id?: string;
6140
+ /** Always prefix tool names with `<namespace>__`. */
6141
+ namespace?: string;
6142
+ /** The document cannot be edited: write tools are hidden. A string is the reason. */
6143
+ readOnly?: boolean | string | (() => boolean | string);
6144
+ }
6145
+ /** The effect tools for a vector editor (see the module comment). */
6146
+ declare function createVectorEffectsToolProvider(controller: VectorEditorController, options?: VectorEffectsToolProviderOptions): AgentToolProvider;
6147
+
6148
+ export { type AddVectorNodeOptions, AffineMatrix$1 as AffineMatrix, DEFAULT_VECTOR_BLEND_DISTANCE, DEFAULT_VECTOR_BLEND_STEPS, DEFAULT_VECTOR_FONT, DEFAULT_VECTOR_PATH_EDIT, DEFAULT_VECTOR_SNAP, IDENTITY_MATRIX, KAPPA, LazyMouse, type MapVectorSubpathsOptions, type NearestSegment, type RecognizeInkOptions, TextFont, TextShaper, VECTOR_ARROWHEAD_LABELS, VECTOR_BLEND_MAX_SMOOTH_STEPS, VECTOR_BLEND_MAX_STEPS, VECTOR_BLEND_MODE_LABELS, VECTOR_BLEND_MODE_MENU, VECTOR_BLEND_SPACING_LABELS, VECTOR_BUILDER_HATCH_GAP, VECTOR_CHARACTER_STYLE_KEYS, VECTOR_CLIPBOARD_TYPE, VECTOR_CONNECTOR_ROUTE_LABELS, VECTOR_CONNECTOR_SIDE_LABELS, VECTOR_CONSTRAINT_GLYPHS, VECTOR_CONSTRAINT_LABELS, VECTOR_CONSTRUCTION_ANGLES, VECTOR_CORNER_KIND_LABELS, VECTOR_CORNER_WIDGET_INSET, VECTOR_DIMENSIONAL_KINDS, VECTOR_DISTORT_TOLERANCE, VECTOR_EDIT_TOGGLES, VECTOR_EFFECT_MENU, VECTOR_ENVELOPE_STYLE_OPTIONS, VECTOR_FILL_GAP, VECTOR_FONT_WEIGHTS, VECTOR_GRADIENT_INTERPOLATION_LABELS, VECTOR_GRADIENT_MIDPOINT_GAP, VECTOR_GRADIENT_OFF_BAR, VECTOR_GRADIENT_SPREAD_LABELS, VECTOR_GRADIENT_STOP_GAP, VECTOR_GRADIENT_TYPE_LABELS, VECTOR_HORIZONTAL_RESIZING_LABELS, VECTOR_INK_MAX_CORNERS, VECTOR_MASK_TYPE_LABELS, VECTOR_MASK_TYPE_OPTIONS, VECTOR_MAX_CONSTRAINTS, VECTOR_MAX_TRACKING_POINTS, VECTOR_MESH_MAX, VECTOR_OVERLAY_THEME, VECTOR_PARAGRAPH_STYLE_KEYS, VECTOR_PATHFINDER_ACTIONS, VECTOR_PATHFINDER_LABELS, VECTOR_PATH_ACTIONS, VECTOR_PENCIL_STRING_PX, VECTOR_PRESSURE_NOMINAL, VECTOR_ROTATE_HANDLE_OFFSET, VECTOR_SPATIAL_MIN, VECTOR_STROKE_ALIGN_LABELS, VECTOR_STROKE_GRADIENT_MODE_LABELS, VECTOR_STROKE_SETTING_KEYS, VECTOR_STYLE_KEYS, VECTOR_SYMBOL_MAX_DEPTH, VECTOR_SYMMETRY_MODE_LABELS, VECTOR_TEXT_ALIGN_LABELS, VECTOR_TEXT_ALIGN_OPTIONS, VECTOR_TOOL_GLYPHS, VECTOR_TOOL_SHORTCUTS, VECTOR_TRACE_MAX_PIXELS, VECTOR_VERTICAL_RESIZING_LABELS, VECTOR_WIDTH_PRESETS, VECTOR_WIDTH_PRESET_IDS, VECTOR_WIDTH_PROFILE_MAX_POINTS, VECTOR_WIDTH_PROFILE_MAX_SCALE, VECTOR_WIDTH_SAME_T, type VariableStrokeOptions, Vec2$1 as Vec2, type VectorActionResult, VectorAlign, VectorAnchor, VectorAnchorRef, VectorAnchorType, type VectorAppearancePanelData, type VectorAppearancePanelLayer, VectorAppearanceShape, VectorArrange, VectorArrowAlign, VectorArrowhead, type VectorArrowheadShape, VectorAverageAxis, VectorBlend, type VectorBlendControls, type VectorBlendInput, VectorBlendMode, VectorBlendOptions, type VectorBlendRail, VectorBlendSpacing, type VectorBlendStart, VectorBooleanOperation, VectorBounds, type VectorBuilderHit, type VectorBuilderLinePiece, type VectorBuilderPreview, type VectorBuilderReplacement, type VectorBuilderTouched, VectorCharacterStyle, type VectorCommandOptions, type VectorConnectionSite, VectorConnector, VectorConnectorEnd, type VectorConnectorListing, type VectorConnectorPanel, VectorConnectorRoute, type VectorConnectorRouting, VectorConnectorSide, VectorConstraint, type VectorConstraintAction, VectorConstraintError, type VectorConstraintGlyph, type VectorConstraintInput, VectorConstraintKind, type VectorConstraintPanelData, type VectorConstraintRefInput, type VectorCornerInfo, VectorCornerKind, type VectorCornerWidget, VectorDefaults, type VectorDistortMode, VectorDistribute, VectorDocument, type VectorDofReport, type VectorDofStatus, VectorEditorController, type VectorEditorOptions, type VectorEditorState, VectorEffect, VectorEffectParamSpec, VectorEffectParamsMap, VectorEffectType, type VectorEffectsPanelData, type VectorEffectsPanelItem, type VectorEffectsToolProviderOptions, type VectorEnvelopePanelData, VectorEnvelopeParams, VectorExprEnv, VectorExprError, VectorFillRule, VectorFilter, VectorFilterParamSpec, VectorFilterType, type VectorFiltersPanelItem, VectorFrame, type VectorFrameGroup, type VectorFrameListing, type VectorFramePanel, type VectorFreeformField, VectorFreeformGradient, VectorFreeformPoint, VectorGradient, type VectorGradientAnnotator, type VectorGradientEditorData, VectorGradientHandle, VectorGradientInterpolation, type VectorGradientPart, VectorGradientPatch, VectorGradientSpread, VectorGradientStop, type VectorGradientTarget, VectorGradientType, VectorGroupNode, type VectorGuideKind, type VectorGuideLabel, type VectorGuideLine, VectorHandleRef, type VectorHitTestOptions, VectorHorizontalResizing, type VectorHover, type VectorInferOptions, type VectorInkShape, VectorInstanceNode, VectorInstanceOverrides, type VectorInteraction, type VectorKeyInput, VectorLineJoin, type VectorLottie, type VectorLottieExport, type VectorLottieExportOptions, type VectorLottieImport, type VectorLottieImportOptions, VectorMask, type VectorMaskClipShape, type VectorMaskGroup, type VectorMaskPanelData, type VectorMaskRegionShape, type VectorMaskRenderData, type VectorMaskResult, type VectorMaskSummary, VectorMaskType, VectorMatrix, VectorMergeMode, VectorMeshGradient, VectorModifiers, type VectorMorph, type VectorMorphContour, type VectorMorphCorrespondence, type VectorMorphOptions, VectorNode, type VectorNodeListing, type VectorOverlayRenderData, VectorPaint, VectorPaintDef, VectorPaintLayer, type VectorPaintLayerHit, type VectorPaintLayerNode, VectorParagraphStyle, VectorParameter, type VectorPathAction, type VectorPathEditOptions, type VectorPathEntry, type VectorPathKeyframe, type VectorPathMeasure, VectorPathNode, type VectorPathfinderAction, VectorPathfinderOperation, type VectorPathfinderPaint, type VectorPdfExport, type VectorPdfOptions, type VectorPointMap, type VectorPointSnap, type VectorPointerInput, VectorProviderEffect, VectorRTree, type VectorRectSnap, type VectorRenderAnchor, type VectorRenderCornerWidget, VectorRenderFilter, type VectorRenderGradientAnnotator, type VectorRenderGroup, type VectorRenderGuideLabel, type VectorRenderGuideLine, type VectorRenderHandle, type VectorRenderMask, type VectorRenderNode, type VectorRenderPaintLayer, type VectorRenderPath, VectorRenderStrokeParts, type VectorRenderText, type VectorRenderTextSpan, type VectorRenderWidthPoint, type VectorRepeaterCopy, VectorResizing, type VectorResolvedRun, VectorRgba, type VectorScaleSnap, type VectorSceneRenderData, type VectorSceneRenderOptions, VectorSegmentRef, type VectorSelectionBoxGeometry, type VectorSelectionFrame, type VectorSelectionStyle, type VectorShadedSvgOptions, type VectorShapeBuilderFace, type VectorShapeBuilderMap, type VectorShapeBuilderPlan, type VectorShapeBuilderResult, type VectorShapeInput, type VectorSnapGuides, type VectorSnapKind, type VectorSnapLeave, type VectorSnapOptions, VectorSnapTargets, type VectorSolveResult, VectorStrokeAlign, VectorStrokeGradientMode, VectorStrokeLayer, type VectorStrokeParts, VectorStrokeSettings, type VectorStrokeSpot, VectorStyle, VectorSubpath, VectorSvgExportOptions, VectorSvgPatternDef, VectorSymbol, type VectorSymbolsPanelData, type VectorSymbolsPanelItem, VectorSymmetry, type VectorSymmetryGroup, VectorSymmetryMode, type VectorTaperOptions, VectorTextAlign, type VectorTextCaret, type VectorTextDefaults, type VectorTextEditState, VectorTextError, type VectorTextFragment, VectorTextFrame, type VectorTextGlyph, type VectorTextInput, type VectorTextLayout, VectorTextNode, type VectorTextPanelData, type VectorTextPaths, VectorTextRun, type VectorTextSpan, VectorTool, type VectorTraceOptions, type VectorTracePixels, type VectorTrackingPath, type VectorTrackingPoint, VectorTransformHandle, VectorVerticalResizing, VectorViewport, VectorWarpMesh, type VectorWaveOptions, type VectorWidthHandle, VectorWidthPoint, type VectorWidthPointEdit, type VectorWidthPointRef, type VectorWidthPreset, type VectorWidthPresetInfo, addBuilderHit, addVectorConstraint, applyMatrix, applyMatrixLinear, applyVectorBlendOptions, applyVectorParagraphStyle, applyVectorTextStyle, arrowheadInset, arrowheadPath, arrowheadWeight, autoConstrainVector, autoVectorFreeformGradient, bakeVectorTextGeometry, bendSegment, bezierToSubpaths, boundsFromPoints, boundsIntersect, checkVectorExpression, cloneAnchor, cloneSubpath, cloneVectorDocument, cloneVectorNode, collectPaintedNodes, collectPathNodes, composeVectorMatrices, constrainToLeave, convertAnchor, cornerBisectorPoint, cornerRadiusChange, cornerSetback, correspondMorphContours, createVectorCommands, createVectorEffectsToolProvider, createVectorMeshGradient, createVectorMorph, curvatureMoveAnchor, cutSubpathAt, dashIntervals, decomposeRigid, distortVectorNode, effectPathLength, effectPathVertexCount, effectiveStrokeAlign, ellipseSubpath, eraseFromFill, eraseFromOutline, eraserRegion, evalVectorExpression, evaluateVectorPathKeyframes, expandVectorBlend, expandVectorCorners, expandVectorCornersOf, findVectorAnchorById, findVectorNode, fitCornerRadius, fitVectorTextRuns, formatVectorValue, generateVectorBlendChildren, generateWidthProfile, getAnchor, getAnchorWorld, getEditablePathIds, getTransformHandlePositions, getVectorAppearancePanel, getVectorBlendControls, getVectorConnectorPanel, getVectorConstraintPanel, getVectorCornerWidgets, getVectorEffectsPanel, getVectorEnteredGroups, getVectorEnvelopePanel, getVectorEnvelopeTarget, getVectorFramePanel, getVectorGradientAnnotator, getVectorGradientEditor, getVectorMaskPanel, getVectorOverlayRenderData, getVectorSceneRenderData, getVectorSelectionBoxGeometry, getVectorSelectionFrame, getVectorSelectionStyle, getVectorSymbolEditBackground, getVectorSymbolsPanel, getVectorTextPanel, getVectorTextShaper, getVectorWidthHandles, getVisibleAnchors, getVisibleHandles, glyphBox, hasPaint, hasStrokeExtras, hasVectorCorners, hasVectorPaintStacks, hitTestVectorNode, hitTestVectorNodes, hitTestVectorPaintLayer, hitTestVectorPaintStack, hitTestVectorStroke, hitVectorGradientAnnotator, inferAnchorType, inferVectorConstraints, insertAnchor, insertWidthPoint, interpolateMorphContours, interpolateRigidMatrix, interpolateVectorColor, interpolateVectorPaint, interpolateVectorPaths, interpolateVectorStyle, interpolateWidthProfiles, invertMatrix, isClosedBezierShape, isDrawnVectorPaintLayer, isIdentityMatrix, isPlainVectorPaintLayer, isUniformWidthProfile, isValidVectorParameterName, isVectorBlendGroup, isVectorBlendMode, isVectorConnector, isVectorFrame, isVectorFreeformGradient, isVectorMaskActive, isVectorMaskGroup, isVectorMaskType, isVectorMeshGradient, isVectorShadedPaint, isVectorSymmetryGroup, isVectorTextTarget, joinSubpaths, knifePath, layoutVectorText, lineSubpath, locateVectorNode, lottieValueAt, mapBezierPath, mapVectorPoints, mapVectorShadedPaint, mapVectorSubpaths, matrixRotation, measureVectorConstraint, measureVectorPath, mergePaths, mirrorWidthProfile, morphContourToSubpath, morphPathsCross, moveAnchorHandle, multiplyMatrices, nearestSegment, nearestStrokePosition, nearestVectorConnectionSite, nearestVectorShadingPoint, needsVectorPaintLayers, newVectorStrokeLayer, nextVectorConstraintName, nextVectorCornerKind, nodeMatrix, normalizeVectorPaintStacks, normalizeVectorTextRuns, offsetPaths, parseVectorLottie, patchVectorCharacterStyle, patchVectorParagraphStyle, pathTextFrameFromBezier, pathsCenter, planShapeBuilder, polygonSubpath, polylineBounds, prefixVectorIds, pressureWidthProfile, puckerBloatPaths, purgeVectorConstraints, quantizeVectorTraceColors, recognizeInkShape, rectSubpath, refineMorphContour, refreshVectorBlends, releaseVectorBlend, removeAnchorKeepingShape, removeAnchors, removeAnchorsKeepingShape, removeRedundantPoints, removeVectorFreeformPoint, removeWidthPoints, repeatPaths, replaceVectorText, rerouteVectorConnectors, resampleGradientStops, resolveVectorBlendOptions, resolveVectorSymbols, reverseMorphContour, reverseSubpath, reverseWidthProfile, rotateMatrix, roundCornerPaths, roundSubpaths, routeVectorConnector, samplePolyline, sampleVectorFreeform, sanitizeVectorConnector, sanitizeVectorFills, sanitizeVectorFrame, sanitizeVectorMask, sanitizeVectorResizing, sanitizeVectorShadedPaint, sanitizeVectorStrokeSettings, sanitizeVectorStrokes, sanitizeVectorSymmetry, sanitizeVectorTextFields, sanitizeVectorTextFrame, sanitizeWidthProfile, scaleFor, scaleMatrix, scaleVectorStrokeWidths, setAnchorCorner, setSubpathCorners, setVectorTextShaper, setWidthPoint, simplifyPolyline, smoothSubpath, solveVectorConstraints, splitIntoFaces, splitSubpathAt, starSubpath, stripVectorSymbolArt, strokePositionPoint, strokeWidthProfileOf, styleVectorText, subpathEnclosesArea, subpathPointAt, subpathSegment, subpathSegmentCount, subpathToMorphContour, subpathsToBezier, sweepPath, taperWaveFactor, tintVectorNode, toVectorKeyInput, toVectorModifiers, toVectorPointerInput, traceVectorImage, transformVectorNode, transformVectorShadedPaint, transformVectorSymmetry, translateAnchor, translateMatrix, trimIntervals, trimPaths, trimPathsIndividually, turnMorphContour, twistPaths, unionBounds, validateVectorConstraint, variableStrokeOutline, variableStrokeRings, vectorAngleDirection, vectorArtboards, vectorBlendColorDistance, vectorBlendKeyTargets, vectorBlendKeys, vectorBlendModeCss, vectorBlendModeFromCss, vectorBlendRail, vectorBlendRailAt, vectorBlendSpine, vectorBlendStepCount, vectorBoundsInside, vectorBoxCorners, vectorBuilderErasedEdges, vectorConnectionSites, vectorConnectorTargetAt, vectorConnectorWorldAnchors, vectorConstraintActions, vectorConstraintDof, vectorConstraintEnv, vectorConstraintGlyphs, vectorConstraintPanel, vectorConstraintResiduals, vectorConstraintValue, vectorCornerAt, vectorCorners, vectorDiamondPath, vectorDistortQuad, vectorDocumentToLottie, vectorDocumentToPdf, vectorExpressionNames, vectorFillMap, vectorFills, vectorFrameChildMatrix, vectorFrameContains, vectorFrameDocument, vectorFrameDrawn, vectorFrameRectPath, vectorFreeformField, vectorFreeformLineSegments, vectorFreeformSpreadScale, vectorGradientBarPosition, vectorGradientTargetPath, vectorInkShapeName, vectorInstanceGroup, vectorMaskContains, vectorMaskContentBounds, vectorMaskContents, vectorMaskOwner, vectorMaskRegion, vectorMaskRegionPath, vectorMaskRegionShapes, vectorMaskRenderData, vectorMaskSource, vectorMaskSummary, vectorMaskedGeometry, vectorMaskedLocalBounds, vectorMaskedShapes, vectorMeshColorAt, vectorMeshFromOutline, vectorMeshLines, vectorMeshOutline, vectorMeshPointAt, vectorNodeBounds, vectorNodePaintBox, vectorNodeRotation, vectorNodeToBezier, vectorNodesNear, vectorPaintLayerNodes, vectorPaintSwatch, vectorPaintToHex, vectorParentMatrix, vectorPathAt, vectorPathCircle, vectorPathData, vectorPathEntries, vectorPathTextPositions, vectorPathWorldBezier, vectorPathfinderShape, vectorPolarAngles, vectorPolarIncrementOf, vectorRepeaterCopies, vectorResizeCursor, vectorResultStyle, vectorRgbaToCss, vectorShadedSvgDefs, vectorShapeBuilderHit, vectorShapeBuilderMap, vectorShearForSide, vectorSkewMatrix, vectorSpatialIndex, vectorStacksHaveGradient, vectorStrokeGradientDefs, vectorStrokeLineArea, vectorStrokeOutline, vectorStrokeOutlinePath, vectorStrokeParts, vectorStrokeReach, vectorStrokeSettings, vectorStrokeStackReach, vectorStrokeWidthGeometry, vectorStrokes, vectorSymbolUses, vectorSymbolsUsedIn, vectorSymmetryAxes, vectorSymmetryDrawn, vectorSymmetryMatrices, vectorTargetPaint, vectorTextBoxOutline, vectorTextCaret, vectorTextFamilies, vectorTextGeometryNode, vectorTextHasOutlines, vectorTextIndexAt, vectorTextName, vectorTextPaintSource, vectorTextPaths, vectorTextRange, vectorTextRuns, vectorTextSelectionQuads, vectorTextShaperGeneration, vectorTextSpanSvg, vectorTextSpans, vectorTextStyleAt, vectorToolLabel, vectorTraceContours, vectorTrackingPaths, vectorWorldMatrix, walkVectorNodes, widthProfileAt, widthProfileMaxScale, widthProfilePreset, widthProfilePresetId, wigglePaths, withVectorAnchorIds, withVectorDocumentAnchorIds, withVectorFills, withVectorStrokes, withVectorTargetPaint, zigzagPaths };
@@ -1,9 +1,9 @@
1
- import { p as Vec2$1, x as VectorSubpath, i as VectorBounds, z as VectorAnchor, V as VectorDocument, f as VectorNode, c as VectorPathNode, A as VectorTextNode, B as VectorAnchorType, t as VectorPaint, h as VectorGroupNode, C as VectorCornerKind, y as VectorWidthPoint, o as VectorGradient, v as VectorGradientStop, D as VectorViewport, E as VectorConnectorRoute, F as VectorConnectorSide, G as VectorConnectorEnd, H as VectorConnector, I as VectorConstraintKind, J as VectorConstraint, K as VectorCharacterStyle, L as VectorTextRun, M as VectorParagraphStyle, N as VectorTextFrame, O as VectorTransformHandle, P as VectorAnchorRef, Q as VectorPathfinderOperation, R as VectorTool, S as VectorDefaults, T as VectorTextAlign, U as VectorStyle, W as VectorHandleRef, X as VectorSegmentRef, Y as VectorBlendOptions, u as VectorMatrix, Z as VectorModifiers, _ as VectorBlendMode, l as VectorFilterType, a as VectorEffectType, $ as VectorAlign, a0 as VectorDistribute, a1 as VectorArrange, e as VectorBooleanOperation, a2 as VectorMaskType, a3 as VectorSymmetryMode, a4 as VectorSymmetry, a5 as VectorFreeformPoint, a6 as VectorMeshGradient, a7 as VectorFreeformGradient, a8 as VectorArrowhead, a9 as VectorResizing, aa as VectorFrame, ab as VectorHorizontalResizing, ac as VectorVerticalResizing, ad as VectorMask, ae as VectorAverageAxis, af as VectorSymbol, ag as VectorParameter, j as VectorWarpMesh, d as VectorFillRule, ah as VectorBlendSpacing, ai as VectorGradientInterpolation, r as VectorGradientSpread, s as VectorGradientType, w as VectorStrokeAlign, aj as VectorStrokeGradientMode, ak as VectorArrowAlign, g as VectorEffect, al as VectorPaintLayer, am as VectorStrokeLayer, n as VectorFilter, an as VectorBlend, ao as VectorMergeMode, ap as VectorLineJoin, b as VectorEffectParamsMap, aq as VectorStrokeSettings, ar as VectorInstanceOverrides, k as VectorInstanceNode } from '../types-BcX7sCsn.js';
2
- export { as as VECTOR_ARROWHEADS, at as VECTOR_BLEND_MODES, au as VECTOR_BLEND_SPACINGS, av as VECTOR_CONNECTOR_ROUTES, aw as VECTOR_CONNECTOR_SIDES, ax as VECTOR_CONSTRAINT_KINDS, ay as VECTOR_CORNER_KINDS, az as VECTOR_EFFECT_TYPES, aA as VECTOR_FILTER_TYPES, aB as VECTOR_GRADIENT_INTERPOLATIONS, aC as VECTOR_GRADIENT_SPREADS, aD as VECTOR_GRADIENT_TYPES, aE as VECTOR_HORIZONTAL_RESIZING, aF as VECTOR_MASK_TYPES, aG as VECTOR_MERGE_MODES, aH as VECTOR_PATHFINDER_OPERATIONS, aI as VECTOR_PATH_TEXT_BASELINES, aJ as VECTOR_STROKE_GRADIENT_MODES, aK as VECTOR_SYMMETRY_MODES, aL as VECTOR_TEXT_ALIGNS, aM as VECTOR_TOOLS, aN as VECTOR_TRANSFORM_HANDLES, aO as VECTOR_VERTICAL_RESIZING, aP as VectorCorner, m as VectorFilterParamsMap, aQ as VectorGeomRef, q as VectorGradientUnits, aR as VectorLineCap, aS as VectorPathTextBaseline, aT as VectorStrokeLayerKind, aU as VectorTextRunStyle, aV as VectorWarpStyle } from '../types-BcX7sCsn.js';
1
+ import { p as Vec2$1, x as VectorSubpath, i as VectorBounds, bn as VectorAnchor, y as VectorDocument, f as VectorNode, c as VectorPathNode, bo as VectorTextNode, bp as VectorAnchorType, t as VectorPaint, h as VectorGroupNode, bq as VectorCornerKind, z as VectorWidthPoint, o as VectorGradient, v as VectorGradientStop, br as VectorViewport, bs as VectorConnectorRoute, bt as VectorConnectorSide, bu as VectorConnectorEnd, bv as VectorConnector, bw as VectorConstraintKind, bx as VectorConstraint, by as VectorCharacterStyle, bz as VectorTextRun, bA as VectorParagraphStyle, bB as VectorTextFrame, bC as VectorTransformHandle, bD as VectorAnchorRef, bE as VectorPathfinderOperation, bF as VectorTool, bG as VectorDefaults, bH as VectorTextAlign, bI as VectorStyle, bJ as VectorHandleRef, bK as VectorSegmentRef, bL as VectorBlendOptions, u as VectorMatrix, bM as VectorModifiers, W as EffectsSlot, E as EffectProvider, C as EffectValue, bN as VectorProviderEffect, bO as VectorBlendMode, l as VectorFilterType, V as VectorEffectType, bP as VectorAlign, bQ as VectorDistribute, bR as VectorArrange, e as VectorBooleanOperation, bS as VectorMaskType, bT as VectorSymmetryMode, bU as VectorSymmetry, bV as VectorFreeformPoint, bW as VectorMeshGradient, bX as VectorFreeformGradient, bY as VectorArrowhead, bZ as VectorResizing, b_ as VectorFrame, b$ as VectorHorizontalResizing, c0 as VectorVerticalResizing, c1 as VectorMask, c2 as VectorAverageAxis, c3 as VectorSymbol, c4 as VectorParameter, j as VectorWarpMesh, d as VectorFillRule, c5 as VectorBlendSpacing, c6 as VectorGradientInterpolation, r as VectorGradientSpread, s as VectorGradientType, w as VectorStrokeAlign, c7 as VectorStrokeGradientMode, c8 as VectorArrowAlign, g as VectorEffect, c9 as VectorPaintLayer, ca as VectorStrokeLayer, n as VectorFilter, cb as VectorBlend, cc as VectorMergeMode, cd as VectorLineJoin, b as VectorEffectParamsMap, ce as VectorStrokeSettings, cf as VectorInstanceOverrides, k as VectorInstanceNode } from '../helpers-BBLlekuM.js';
2
+ export { cg as VECTOR_ARROWHEADS, ch as VECTOR_BLEND_MODES, ci as VECTOR_BLEND_SPACINGS, cj as VECTOR_CONNECTOR_ROUTES, ck as VECTOR_CONNECTOR_SIDES, cl as VECTOR_CONSTRAINT_KINDS, cm as VECTOR_CORNER_KINDS, cn as VECTOR_EFFECT_TYPES, co as VECTOR_FILTER_TYPES, cp as VECTOR_GRADIENT_INTERPOLATIONS, cq as VECTOR_GRADIENT_SPREADS, cr as VECTOR_GRADIENT_TYPES, cs as VECTOR_HORIZONTAL_RESIZING, ct as VECTOR_MASK_TYPES, cu as VECTOR_MERGE_MODES, cv as VECTOR_PATHFINDER_OPERATIONS, cw as VECTOR_PATH_TEXT_BASELINES, cx as VECTOR_STROKE_GRADIENT_MODES, cy as VECTOR_SYMMETRY_MODES, cz as VECTOR_TEXT_ALIGNS, cA as VECTOR_TOOLS, cB as VECTOR_TRANSFORM_HANDLES, cC as VECTOR_VERTICAL_RESIZING, cD as VectorCorner, m as VectorFilterParamsMap, cE as VectorGeomRef, q as VectorGradientUnits, cF as VectorLineCap, cG as VectorPathTextBaseline, cH as VectorStrokeLayerKind, cI as VectorTextRunStyle, cJ as VectorWarpStyle } from '../helpers-BBLlekuM.js';
3
3
  import { P as Point } from '../brushTypes-IG7ZZjIN.js';
4
4
  import { a as BezierPathInput, A as AffineMatrix$1, B as BezierPath, c as BezierSegment } from '../bezier-CWv6LQal.js';
5
- import { a as VectorGradientHandle, V as VectorSvgExportOptions, b as VectorGradientPatch, c as VectorEnvelopeParams, d as VectorRenderFilter, e as VectorAppearanceShape, f as VectorFilterParamSpec, g as VectorEffectParamSpec, h as VectorRenderStrokeParts, i as VectorPaintDef, j as VectorRgba, k as VectorSvgPatternDef } from '../svg-C-vZ3q50.js';
6
- export { l as VECTOR_EFFECT_DEFAULTS, m as VECTOR_EFFECT_LABELS, n as VECTOR_EFFECT_PARAM_SPECS, o as VECTOR_FILTER_DEFAULTS, p as VECTOR_FILTER_LABELS, q as VECTOR_FILTER_MENU, r as VECTOR_FILTER_PARAM_SPECS, s as VECTOR_GRADIENT_MAX_PERIODS, t as VECTOR_GRADIENT_MIN_STOPS, u as VectorBooleanOperand, v as VectorFilterPrimitive, w as VectorGradientPoints, x as VectorGradientRamp, y as VectorGradientSvgOptions, z as VectorPaintSvgOptions, A as VectorSvgImportOptions, B as VectorSvgWrapper, C as activeVectorEffects, D as activeVectorFilters, E as applyVectorCornersAttribute, F as applyVectorEffects, G as applyVectorGradientPatch, H as applyVectorGradientSpread, I as clearVectorLiveBooleanCache, J as convertVectorGradient, K as createVectorEffect, L as createVectorFilter, M as defaultVectorGradient, N as expandVectorAppearance, O as expandVectorAppearances, P as expandVectorGradientSpread, Q as expandVectorGradientStops, R as explicitVectorGradient, S as foldVectorBooleanOperands, T as gradientMidpointRemap, U as hasExplicitGradientGeometry, W as hasOwnVectorAppearance, X as hasVectorAppearance, Y as insertVectorGradientStop, Z as isCentredVectorGradient, _ as isVectorFilterType, $ as isVectorGradient, a0 as isVectorLiveBoolean, a1 as mapVectorGradient, a2 as mapVectorPaint, a3 as moveVectorGradientHandle, a4 as moveVectorGradientStop, a5 as normalizeVectorEffectParams, a6 as normalizeVectorFilterParams, a7 as parseSvgTransform, a8 as parseVectorColor, a9 as parseVectorSvg, aa as patternAttrs, ab as periodicVectorGradientStops, ac as pinVectorGradient, ad as removeVectorGradientStop, ae as reverseVectorGradient, af as samplePlainStops, ag as sampleVectorGradient, ah as sampleVectorGradientAt, ai as sampleVectorPaintDefAt, aj as sanitizeVectorEffects, ak as sanitizeVectorFilters, al as sanitizeVectorGradient, am as setVectorGradientVector, an as sortedVectorGradientStops, ao as spanVectorGradientStops, ap as transformVectorEffects, aq as transformVectorGradient, ar as transformVectorPaint, as as vectorAppearanceNodes, at as vectorAppearanceOutline, au as vectorAppearanceShapes, av as vectorBoxMatrix, aw as vectorChildAppearanceShapes, ax as vectorCornersAttribute, ay as vectorDocumentToSvg, az as vectorEffectInputBounds, aA as vectorEffectInputPaths, aB as vectorEnteredGroups, aC as vectorEnvelopeFrame, aD as vectorEnvelopeMap, aE as vectorEnvelopeMesh, aF as vectorFilterMarkup, aG as vectorFilterParamKeys, aH as vectorFilterReach, aI as vectorFilterSvg, aJ as vectorGradientArea, aK as vectorGradientAspect, aL as vectorGradientFocalParam, aM as vectorGradientHandles, aN as vectorGradientMatrix, aO as vectorGradientMidpointFromPosition, aP as vectorGradientMidpointPosition, aQ as vectorGradientNeedsExpansion, aR as vectorGradientParam, aS as vectorGradientPoints, aT as vectorGradientRamp, aU as vectorGradientSvgDefs, aV as vectorGradientTAt, aW as vectorGradientUnitsMatrix, aX as vectorInstanceDrawn, aY as vectorLiveBooleanSteps, aZ as vectorNodeEnvelope, a_ as vectorNodeFilterSvg, a$ as vectorNodeLocalPaintBounds, b0 as vectorOperandOperation, b1 as vectorPaintToSvg, b2 as vectorPathLocalBounds, b3 as vectorStrokeSvgParts, b4 as widthProfileFromAttribute, b5 as widthProfileToAttribute } from '../svg-C-vZ3q50.js';
5
+ import { a as VectorGradientHandle, V as VectorSvgExportOptions, b as VectorGradientPatch, c as VectorEnvelopeParams, d as VectorRenderFilter, e as VectorAppearanceShape, f as VectorFilterParamSpec, g as VectorEffectParamSpec, h as VectorRenderStrokeParts, i as VectorPaintDef, j as VectorRgba, k as VectorSvgPatternDef } from '../svg-DJKriJ4A.js';
6
+ export { l as VECTOR_EFFECT_DEFAULTS, m as VECTOR_EFFECT_LABELS, n as VECTOR_EFFECT_PARAM_SPECS, o as VECTOR_FILTER_DEFAULTS, p as VECTOR_FILTER_LABELS, q as VECTOR_FILTER_MENU, r as VECTOR_FILTER_PARAM_SPECS, s as VECTOR_GRADIENT_MAX_PERIODS, t as VECTOR_GRADIENT_MIN_STOPS, u as VectorBooleanOperand, v as VectorFilterPrimitive, w as VectorGradientPoints, x as VectorGradientRamp, y as VectorGradientSvgOptions, z as VectorPaintSvgOptions, A as VectorSvgImportOptions, B as VectorSvgWrapper, C as activeVectorEffects, D as activeVectorFilters, E as applyVectorCornersAttribute, F as applyVectorEffects, G as applyVectorGradientPatch, H as applyVectorGradientSpread, I as clearVectorLiveBooleanCache, J as convertVectorGradient, K as createVectorEffect, L as createVectorFilter, M as defaultVectorGradient, N as expandVectorAppearance, O as expandVectorAppearances, P as expandVectorGradientSpread, Q as expandVectorGradientStops, R as explicitVectorGradient, S as foldVectorBooleanOperands, T as gradientMidpointRemap, U as hasExplicitGradientGeometry, W as hasOwnVectorAppearance, X as hasVectorAppearance, Y as insertVectorGradientStop, Z as isCentredVectorGradient, _ as isVectorFilterType, $ as isVectorGradient, a0 as isVectorLiveBoolean, a1 as mapVectorGradient, a2 as mapVectorPaint, a3 as moveVectorGradientHandle, a4 as moveVectorGradientStop, a5 as normalizeVectorEffectParams, a6 as normalizeVectorFilterParams, a7 as parseSvgTransform, a8 as parseVectorColor, a9 as parseVectorSvg, aa as patternAttrs, ab as periodicVectorGradientStops, ac as pinVectorGradient, ad as removeVectorGradientStop, ae as reverseVectorGradient, af as samplePlainStops, ag as sampleVectorGradient, ah as sampleVectorGradientAt, ai as sampleVectorPaintDefAt, aj as sanitizeVectorEffects, ak as sanitizeVectorFilters, al as sanitizeVectorGradient, am as setVectorGradientVector, an as sortedVectorGradientStops, ao as spanVectorGradientStops, ap as transformVectorEffects, aq as transformVectorGradient, ar as transformVectorPaint, as as vectorAppearanceNodes, at as vectorAppearanceOutline, au as vectorAppearanceShapes, av as vectorBoxMatrix, aw as vectorChildAppearanceShapes, ax as vectorCornersAttribute, ay as vectorDocumentToSvg, az as vectorEffectInputBounds, aA as vectorEffectInputPaths, aB as vectorEnteredGroups, aC as vectorEnvelopeFrame, aD as vectorEnvelopeMap, aE as vectorEnvelopeMesh, aF as vectorFilterMarkup, aG as vectorFilterParamKeys, aH as vectorFilterReach, aI as vectorFilterSvg, aJ as vectorGradientArea, aK as vectorGradientAspect, aL as vectorGradientFocalParam, aM as vectorGradientHandles, aN as vectorGradientMatrix, aO as vectorGradientMidpointFromPosition, aP as vectorGradientMidpointPosition, aQ as vectorGradientNeedsExpansion, aR as vectorGradientParam, aS as vectorGradientPoints, aT as vectorGradientRamp, aU as vectorGradientSvgDefs, aV as vectorGradientTAt, aW as vectorGradientUnitsMatrix, aX as vectorInstanceDrawn, aY as vectorLiveBooleanSteps, aZ as vectorNodeEnvelope, a_ as vectorNodeFilterSvg, a$ as vectorNodeLocalPaintBounds, b0 as vectorOperandOperation, b1 as vectorPaintToSvg, b2 as vectorPathLocalBounds, b3 as vectorStrokeSvgParts, b4 as widthProfileFromAttribute, b5 as widthProfileToAttribute } from '../svg-DJKriJ4A.js';
7
7
  import { H as HistoryManager } from '../HistoryManager-DWSLd6Tf.js';
8
8
  import { a as TextFont, L as LaidFragment, f as LaidLine, e as TextLayout, T as TextShaper } from '../warp-k_PdtXOG.js';
9
9
  export { g as VECTOR_WARP_STYLES, h as VECTOR_WARP_STYLE_LABELS, W as VectorWarpPreset, i as dragVectorMeshPoint, j as evalVectorMesh, k as fitVectorMesh, l as isValidVectorMesh, m as mapVectorMeshPoints, p as pullVectorMesh, r as removeVectorMeshSplitU, n as removeVectorMeshSplitV, o as resizeVectorMesh, s as splitVectorMeshU, q as splitVectorMeshV, t as vectorIdentityMesh, w as vectorMeshColumns, u as vectorMeshControlBounds, v as vectorMeshEditPoints, x as vectorMeshGridCurves, y as vectorMeshParamAt, z as vectorMeshRows, A as vectorWarpPresetGrid, B as vectorWarpPresetMesh } from '../warp-k_PdtXOG.js';
@@ -13,9 +13,12 @@ import { C as CommandSpec } from '../registry-rVtFJjRM.js';
13
13
  import { S as StrokeJoin, a as StrokeCap, P as PlanarMap, b as PathfinderOperation, c as PathfinderShape } from '../pathfinder-DjISxkUv.js';
14
14
  import { b as AnimationEasing } from '../easing-lM0Xo9Ni.js';
15
15
  export { C as CanvasTextShaperOptions, O as OpenTypeFont, a as OutlineFontEntry, b as OutlineFontFace, c as OutlinePathCommand, d as applyVectorHomography, e as createCanvasTextShaper, f as createMetricTextShaper, g as createOutlineTextShaper, h as cssFontFamily, l as loadOpenTypeFont, o as orderVectorQuad, p as parseOpenTypeFont, s as solve8, i as vectorHomography, j as vectorHomographyKeepsQuad } from '../opentype-14PDI5D2.js';
16
+ import { a as AgentToolProvider } from '../registry-D-4fit9C.js';
16
17
  export { S as SvgGradientDef } from '../gradient-KDfCvhuj.js';
17
- import '../types-DsiXGmjo.js';
18
18
  import '../schema-Di0CS6Pe.js';
19
+ import '../behavior-Ymbld6jL.js';
20
+ import '../evaluate-CfmT6xA3.js';
21
+ import '../types-DsiXGmjo.js';
19
22
 
20
23
  /**
21
24
  * Affine matrices in SVG order (`[a, b, c, d, e, f]`), shared by the vector and image editors.
@@ -2232,6 +2235,40 @@ declare class VectorEditorController {
2232
2235
  loadSvg(svg: string, options?: {
2233
2236
  history?: boolean;
2234
2237
  }): VectorActionResult;
2238
+ /** The effects provider slot (see `setEffectsProvider`). */
2239
+ readonly effects: EffectsSlot;
2240
+ /** The registered effects provider, or `null`. */
2241
+ get effectsProvider(): EffectProvider | null;
2242
+ /** Registers (or with `null` removes) the effects provider. Not an edit: no undo step. */
2243
+ setEffectsProvider(provider: EffectProvider | null): void;
2244
+ /** Registers `provider` and returns a function that removes it again (if it is still the one set). */
2245
+ useEffects(provider: EffectProvider): () => void;
2246
+ /** The groups that show provider vector effects. */
2247
+ vectorEffectGroups(): VectorGroupNode[];
2248
+ /** The effect's picture as group children, scaled into `box` (an affine fit). */
2249
+ private vectorEffectPicture;
2250
+ /**
2251
+ * Adds a provider vector effect's picture (at rest: its SVG without the motion) as a group,
2252
+ * fitted into `box` (default the middle half of the document), selected. One undo step.
2253
+ * Returns the group id.
2254
+ */
2255
+ addVectorEffect(effect: string, options?: {
2256
+ values?: Record<string, EffectValue>;
2257
+ box?: {
2258
+ x: number;
2259
+ y: number;
2260
+ width: number;
2261
+ height: number;
2262
+ };
2263
+ parentId?: string;
2264
+ }): Promise<string>;
2265
+ /**
2266
+ * Draws a vector effect group again with new `values` (merged over its own; `null` resets a
2267
+ * control), keeping its place and transform. One undo step. Returns the group's effect.
2268
+ */
2269
+ updateVectorEffect(id: string, values: Record<string, EffectValue | null>): Promise<VectorProviderEffect>;
2270
+ /** Keeps a vector effect group's shapes as a plain group (drops its effect). One undo step. */
2271
+ detachVectorEffect(id: string): void;
2235
2272
  /** Adds the nodes of SVG markup on top of the document, selected. */
2236
2273
  importSvg(svg: string): VectorActionResult;
2237
2274
  toSvg(options?: VectorSvgExportOptions): string;
@@ -6090,4 +6127,22 @@ declare function vectorSpatialIndex(nodes: readonly VectorNode[]): VectorRTree |
6090
6127
  */
6091
6128
  declare function vectorNodesNear(nodes: readonly VectorNode[], rect: VectorBounds, pad?: number): number[];
6092
6129
 
6093
- export { type AddVectorNodeOptions, AffineMatrix$1 as AffineMatrix, DEFAULT_VECTOR_BLEND_DISTANCE, DEFAULT_VECTOR_BLEND_STEPS, DEFAULT_VECTOR_FONT, DEFAULT_VECTOR_PATH_EDIT, DEFAULT_VECTOR_SNAP, IDENTITY_MATRIX, KAPPA, LazyMouse, type MapVectorSubpathsOptions, type NearestSegment, type RecognizeInkOptions, TextFont, TextShaper, VECTOR_ARROWHEAD_LABELS, VECTOR_BLEND_MAX_SMOOTH_STEPS, VECTOR_BLEND_MAX_STEPS, VECTOR_BLEND_MODE_LABELS, VECTOR_BLEND_MODE_MENU, VECTOR_BLEND_SPACING_LABELS, VECTOR_BUILDER_HATCH_GAP, VECTOR_CHARACTER_STYLE_KEYS, VECTOR_CLIPBOARD_TYPE, VECTOR_CONNECTOR_ROUTE_LABELS, VECTOR_CONNECTOR_SIDE_LABELS, VECTOR_CONSTRAINT_GLYPHS, VECTOR_CONSTRAINT_LABELS, VECTOR_CONSTRUCTION_ANGLES, VECTOR_CORNER_KIND_LABELS, VECTOR_CORNER_WIDGET_INSET, VECTOR_DIMENSIONAL_KINDS, VECTOR_DISTORT_TOLERANCE, VECTOR_EDIT_TOGGLES, VECTOR_EFFECT_MENU, VECTOR_ENVELOPE_STYLE_OPTIONS, VECTOR_FILL_GAP, VECTOR_FONT_WEIGHTS, VECTOR_GRADIENT_INTERPOLATION_LABELS, VECTOR_GRADIENT_MIDPOINT_GAP, VECTOR_GRADIENT_OFF_BAR, VECTOR_GRADIENT_SPREAD_LABELS, VECTOR_GRADIENT_STOP_GAP, VECTOR_GRADIENT_TYPE_LABELS, VECTOR_HORIZONTAL_RESIZING_LABELS, VECTOR_INK_MAX_CORNERS, VECTOR_MASK_TYPE_LABELS, VECTOR_MASK_TYPE_OPTIONS, VECTOR_MAX_CONSTRAINTS, VECTOR_MAX_TRACKING_POINTS, VECTOR_MESH_MAX, VECTOR_OVERLAY_THEME, VECTOR_PARAGRAPH_STYLE_KEYS, VECTOR_PATHFINDER_ACTIONS, VECTOR_PATHFINDER_LABELS, VECTOR_PATH_ACTIONS, VECTOR_PENCIL_STRING_PX, VECTOR_PRESSURE_NOMINAL, VECTOR_ROTATE_HANDLE_OFFSET, VECTOR_SPATIAL_MIN, VECTOR_STROKE_ALIGN_LABELS, VECTOR_STROKE_GRADIENT_MODE_LABELS, VECTOR_STROKE_SETTING_KEYS, VECTOR_STYLE_KEYS, VECTOR_SYMBOL_MAX_DEPTH, VECTOR_SYMMETRY_MODE_LABELS, VECTOR_TEXT_ALIGN_LABELS, VECTOR_TEXT_ALIGN_OPTIONS, VECTOR_TOOL_GLYPHS, VECTOR_TOOL_SHORTCUTS, VECTOR_TRACE_MAX_PIXELS, VECTOR_VERTICAL_RESIZING_LABELS, VECTOR_WIDTH_PRESETS, VECTOR_WIDTH_PRESET_IDS, VECTOR_WIDTH_PROFILE_MAX_POINTS, VECTOR_WIDTH_PROFILE_MAX_SCALE, VECTOR_WIDTH_SAME_T, type VariableStrokeOptions, Vec2$1 as Vec2, type VectorActionResult, VectorAlign, VectorAnchor, VectorAnchorRef, VectorAnchorType, type VectorAppearancePanelData, type VectorAppearancePanelLayer, VectorAppearanceShape, VectorArrange, VectorArrowAlign, VectorArrowhead, type VectorArrowheadShape, VectorAverageAxis, VectorBlend, type VectorBlendControls, type VectorBlendInput, VectorBlendMode, VectorBlendOptions, type VectorBlendRail, VectorBlendSpacing, type VectorBlendStart, VectorBooleanOperation, VectorBounds, type VectorBuilderHit, type VectorBuilderLinePiece, type VectorBuilderPreview, type VectorBuilderReplacement, type VectorBuilderTouched, VectorCharacterStyle, type VectorCommandOptions, type VectorConnectionSite, VectorConnector, VectorConnectorEnd, type VectorConnectorListing, type VectorConnectorPanel, VectorConnectorRoute, type VectorConnectorRouting, VectorConnectorSide, VectorConstraint, type VectorConstraintAction, VectorConstraintError, type VectorConstraintGlyph, type VectorConstraintInput, VectorConstraintKind, type VectorConstraintPanelData, type VectorConstraintRefInput, type VectorCornerInfo, VectorCornerKind, type VectorCornerWidget, VectorDefaults, type VectorDistortMode, VectorDistribute, VectorDocument, type VectorDofReport, type VectorDofStatus, VectorEditorController, type VectorEditorOptions, type VectorEditorState, VectorEffect, VectorEffectParamSpec, VectorEffectParamsMap, VectorEffectType, type VectorEffectsPanelData, type VectorEffectsPanelItem, type VectorEnvelopePanelData, VectorEnvelopeParams, VectorExprEnv, VectorExprError, VectorFillRule, VectorFilter, VectorFilterParamSpec, VectorFilterType, type VectorFiltersPanelItem, VectorFrame, type VectorFrameGroup, type VectorFrameListing, type VectorFramePanel, type VectorFreeformField, VectorFreeformGradient, VectorFreeformPoint, VectorGradient, type VectorGradientAnnotator, type VectorGradientEditorData, VectorGradientHandle, VectorGradientInterpolation, type VectorGradientPart, VectorGradientPatch, VectorGradientSpread, VectorGradientStop, type VectorGradientTarget, VectorGradientType, VectorGroupNode, type VectorGuideKind, type VectorGuideLabel, type VectorGuideLine, VectorHandleRef, type VectorHitTestOptions, VectorHorizontalResizing, type VectorHover, type VectorInferOptions, type VectorInkShape, VectorInstanceNode, VectorInstanceOverrides, type VectorInteraction, type VectorKeyInput, VectorLineJoin, type VectorLottie, type VectorLottieExport, type VectorLottieExportOptions, type VectorLottieImport, type VectorLottieImportOptions, VectorMask, type VectorMaskClipShape, type VectorMaskGroup, type VectorMaskPanelData, type VectorMaskRegionShape, type VectorMaskRenderData, type VectorMaskResult, type VectorMaskSummary, VectorMaskType, VectorMatrix, VectorMergeMode, VectorMeshGradient, VectorModifiers, type VectorMorph, type VectorMorphContour, type VectorMorphCorrespondence, type VectorMorphOptions, VectorNode, type VectorNodeListing, type VectorOverlayRenderData, VectorPaint, VectorPaintDef, VectorPaintLayer, type VectorPaintLayerHit, type VectorPaintLayerNode, VectorParagraphStyle, VectorParameter, type VectorPathAction, type VectorPathEditOptions, type VectorPathEntry, type VectorPathKeyframe, type VectorPathMeasure, VectorPathNode, type VectorPathfinderAction, VectorPathfinderOperation, type VectorPathfinderPaint, type VectorPdfExport, type VectorPdfOptions, type VectorPointMap, type VectorPointSnap, type VectorPointerInput, VectorRTree, type VectorRectSnap, type VectorRenderAnchor, type VectorRenderCornerWidget, VectorRenderFilter, type VectorRenderGradientAnnotator, type VectorRenderGroup, type VectorRenderGuideLabel, type VectorRenderGuideLine, type VectorRenderHandle, type VectorRenderMask, type VectorRenderNode, type VectorRenderPaintLayer, type VectorRenderPath, VectorRenderStrokeParts, type VectorRenderText, type VectorRenderTextSpan, type VectorRenderWidthPoint, type VectorRepeaterCopy, VectorResizing, type VectorResolvedRun, VectorRgba, type VectorScaleSnap, type VectorSceneRenderData, type VectorSceneRenderOptions, VectorSegmentRef, type VectorSelectionBoxGeometry, type VectorSelectionFrame, type VectorSelectionStyle, type VectorShadedSvgOptions, type VectorShapeBuilderFace, type VectorShapeBuilderMap, type VectorShapeBuilderPlan, type VectorShapeBuilderResult, type VectorShapeInput, type VectorSnapGuides, type VectorSnapKind, type VectorSnapLeave, type VectorSnapOptions, VectorSnapTargets, type VectorSolveResult, VectorStrokeAlign, VectorStrokeGradientMode, VectorStrokeLayer, type VectorStrokeParts, VectorStrokeSettings, type VectorStrokeSpot, VectorStyle, VectorSubpath, VectorSvgExportOptions, VectorSvgPatternDef, VectorSymbol, type VectorSymbolsPanelData, type VectorSymbolsPanelItem, VectorSymmetry, type VectorSymmetryGroup, VectorSymmetryMode, type VectorTaperOptions, VectorTextAlign, type VectorTextCaret, type VectorTextDefaults, type VectorTextEditState, VectorTextError, type VectorTextFragment, VectorTextFrame, type VectorTextGlyph, type VectorTextInput, type VectorTextLayout, VectorTextNode, type VectorTextPanelData, type VectorTextPaths, VectorTextRun, type VectorTextSpan, VectorTool, type VectorTraceOptions, type VectorTracePixels, type VectorTrackingPath, type VectorTrackingPoint, VectorTransformHandle, VectorVerticalResizing, VectorViewport, VectorWarpMesh, type VectorWaveOptions, type VectorWidthHandle, VectorWidthPoint, type VectorWidthPointEdit, type VectorWidthPointRef, type VectorWidthPreset, type VectorWidthPresetInfo, addBuilderHit, addVectorConstraint, applyMatrix, applyMatrixLinear, applyVectorBlendOptions, applyVectorParagraphStyle, applyVectorTextStyle, arrowheadInset, arrowheadPath, arrowheadWeight, autoConstrainVector, autoVectorFreeformGradient, bakeVectorTextGeometry, bendSegment, bezierToSubpaths, boundsFromPoints, boundsIntersect, checkVectorExpression, cloneAnchor, cloneSubpath, cloneVectorDocument, cloneVectorNode, collectPaintedNodes, collectPathNodes, composeVectorMatrices, constrainToLeave, convertAnchor, cornerBisectorPoint, cornerRadiusChange, cornerSetback, correspondMorphContours, createVectorCommands, createVectorMeshGradient, createVectorMorph, curvatureMoveAnchor, cutSubpathAt, dashIntervals, decomposeRigid, distortVectorNode, effectPathLength, effectPathVertexCount, effectiveStrokeAlign, ellipseSubpath, eraseFromFill, eraseFromOutline, eraserRegion, evalVectorExpression, evaluateVectorPathKeyframes, expandVectorBlend, expandVectorCorners, expandVectorCornersOf, findVectorAnchorById, findVectorNode, fitCornerRadius, fitVectorTextRuns, formatVectorValue, generateVectorBlendChildren, generateWidthProfile, getAnchor, getAnchorWorld, getEditablePathIds, getTransformHandlePositions, getVectorAppearancePanel, getVectorBlendControls, getVectorConnectorPanel, getVectorConstraintPanel, getVectorCornerWidgets, getVectorEffectsPanel, getVectorEnteredGroups, getVectorEnvelopePanel, getVectorEnvelopeTarget, getVectorFramePanel, getVectorGradientAnnotator, getVectorGradientEditor, getVectorMaskPanel, getVectorOverlayRenderData, getVectorSceneRenderData, getVectorSelectionBoxGeometry, getVectorSelectionFrame, getVectorSelectionStyle, getVectorSymbolEditBackground, getVectorSymbolsPanel, getVectorTextPanel, getVectorTextShaper, getVectorWidthHandles, getVisibleAnchors, getVisibleHandles, glyphBox, hasPaint, hasStrokeExtras, hasVectorCorners, hasVectorPaintStacks, hitTestVectorNode, hitTestVectorNodes, hitTestVectorPaintLayer, hitTestVectorPaintStack, hitTestVectorStroke, hitVectorGradientAnnotator, inferAnchorType, inferVectorConstraints, insertAnchor, insertWidthPoint, interpolateMorphContours, interpolateRigidMatrix, interpolateVectorColor, interpolateVectorPaint, interpolateVectorPaths, interpolateVectorStyle, interpolateWidthProfiles, invertMatrix, isClosedBezierShape, isDrawnVectorPaintLayer, isIdentityMatrix, isPlainVectorPaintLayer, isUniformWidthProfile, isValidVectorParameterName, isVectorBlendGroup, isVectorBlendMode, isVectorConnector, isVectorFrame, isVectorFreeformGradient, isVectorMaskActive, isVectorMaskGroup, isVectorMaskType, isVectorMeshGradient, isVectorShadedPaint, isVectorSymmetryGroup, isVectorTextTarget, joinSubpaths, knifePath, layoutVectorText, lineSubpath, locateVectorNode, lottieValueAt, mapBezierPath, mapVectorPoints, mapVectorShadedPaint, mapVectorSubpaths, matrixRotation, measureVectorConstraint, measureVectorPath, mergePaths, mirrorWidthProfile, morphContourToSubpath, morphPathsCross, moveAnchorHandle, multiplyMatrices, nearestSegment, nearestStrokePosition, nearestVectorConnectionSite, nearestVectorShadingPoint, needsVectorPaintLayers, newVectorStrokeLayer, nextVectorConstraintName, nextVectorCornerKind, nodeMatrix, normalizeVectorPaintStacks, normalizeVectorTextRuns, offsetPaths, parseVectorLottie, patchVectorCharacterStyle, patchVectorParagraphStyle, pathTextFrameFromBezier, pathsCenter, planShapeBuilder, polygonSubpath, polylineBounds, prefixVectorIds, pressureWidthProfile, puckerBloatPaths, purgeVectorConstraints, quantizeVectorTraceColors, recognizeInkShape, rectSubpath, refineMorphContour, refreshVectorBlends, releaseVectorBlend, removeAnchorKeepingShape, removeAnchors, removeAnchorsKeepingShape, removeRedundantPoints, removeVectorFreeformPoint, removeWidthPoints, repeatPaths, replaceVectorText, rerouteVectorConnectors, resampleGradientStops, resolveVectorBlendOptions, resolveVectorSymbols, reverseMorphContour, reverseSubpath, reverseWidthProfile, rotateMatrix, roundCornerPaths, roundSubpaths, routeVectorConnector, samplePolyline, sampleVectorFreeform, sanitizeVectorConnector, sanitizeVectorFills, sanitizeVectorFrame, sanitizeVectorMask, sanitizeVectorResizing, sanitizeVectorShadedPaint, sanitizeVectorStrokeSettings, sanitizeVectorStrokes, sanitizeVectorSymmetry, sanitizeVectorTextFields, sanitizeVectorTextFrame, sanitizeWidthProfile, scaleFor, scaleMatrix, scaleVectorStrokeWidths, setAnchorCorner, setSubpathCorners, setVectorTextShaper, setWidthPoint, simplifyPolyline, smoothSubpath, solveVectorConstraints, splitIntoFaces, splitSubpathAt, starSubpath, stripVectorSymbolArt, strokePositionPoint, strokeWidthProfileOf, styleVectorText, subpathEnclosesArea, subpathPointAt, subpathSegment, subpathSegmentCount, subpathToMorphContour, subpathsToBezier, sweepPath, taperWaveFactor, tintVectorNode, toVectorKeyInput, toVectorModifiers, toVectorPointerInput, traceVectorImage, transformVectorNode, transformVectorShadedPaint, transformVectorSymmetry, translateAnchor, translateMatrix, trimIntervals, trimPaths, trimPathsIndividually, turnMorphContour, twistPaths, unionBounds, validateVectorConstraint, variableStrokeOutline, variableStrokeRings, vectorAngleDirection, vectorArtboards, vectorBlendColorDistance, vectorBlendKeyTargets, vectorBlendKeys, vectorBlendModeCss, vectorBlendModeFromCss, vectorBlendRail, vectorBlendRailAt, vectorBlendSpine, vectorBlendStepCount, vectorBoundsInside, vectorBoxCorners, vectorBuilderErasedEdges, vectorConnectionSites, vectorConnectorTargetAt, vectorConnectorWorldAnchors, vectorConstraintActions, vectorConstraintDof, vectorConstraintEnv, vectorConstraintGlyphs, vectorConstraintPanel, vectorConstraintResiduals, vectorConstraintValue, vectorCornerAt, vectorCorners, vectorDiamondPath, vectorDistortQuad, vectorDocumentToLottie, vectorDocumentToPdf, vectorExpressionNames, vectorFillMap, vectorFills, vectorFrameChildMatrix, vectorFrameContains, vectorFrameDocument, vectorFrameDrawn, vectorFrameRectPath, vectorFreeformField, vectorFreeformLineSegments, vectorFreeformSpreadScale, vectorGradientBarPosition, vectorGradientTargetPath, vectorInkShapeName, vectorInstanceGroup, vectorMaskContains, vectorMaskContentBounds, vectorMaskContents, vectorMaskOwner, vectorMaskRegion, vectorMaskRegionPath, vectorMaskRegionShapes, vectorMaskRenderData, vectorMaskSource, vectorMaskSummary, vectorMaskedGeometry, vectorMaskedLocalBounds, vectorMaskedShapes, vectorMeshColorAt, vectorMeshFromOutline, vectorMeshLines, vectorMeshOutline, vectorMeshPointAt, vectorNodeBounds, vectorNodePaintBox, vectorNodeRotation, vectorNodeToBezier, vectorNodesNear, vectorPaintLayerNodes, vectorPaintSwatch, vectorPaintToHex, vectorParentMatrix, vectorPathAt, vectorPathCircle, vectorPathData, vectorPathEntries, vectorPathTextPositions, vectorPathWorldBezier, vectorPathfinderShape, vectorPolarAngles, vectorPolarIncrementOf, vectorRepeaterCopies, vectorResizeCursor, vectorResultStyle, vectorRgbaToCss, vectorShadedSvgDefs, vectorShapeBuilderHit, vectorShapeBuilderMap, vectorShearForSide, vectorSkewMatrix, vectorSpatialIndex, vectorStacksHaveGradient, vectorStrokeGradientDefs, vectorStrokeLineArea, vectorStrokeOutline, vectorStrokeOutlinePath, vectorStrokeParts, vectorStrokeReach, vectorStrokeSettings, vectorStrokeStackReach, vectorStrokeWidthGeometry, vectorStrokes, vectorSymbolUses, vectorSymbolsUsedIn, vectorSymmetryAxes, vectorSymmetryDrawn, vectorSymmetryMatrices, vectorTargetPaint, vectorTextBoxOutline, vectorTextCaret, vectorTextFamilies, vectorTextGeometryNode, vectorTextHasOutlines, vectorTextIndexAt, vectorTextName, vectorTextPaintSource, vectorTextPaths, vectorTextRange, vectorTextRuns, vectorTextSelectionQuads, vectorTextShaperGeneration, vectorTextSpanSvg, vectorTextSpans, vectorTextStyleAt, vectorToolLabel, vectorTraceContours, vectorTrackingPaths, vectorWorldMatrix, walkVectorNodes, widthProfileAt, widthProfileMaxScale, widthProfilePreset, widthProfilePresetId, wigglePaths, withVectorAnchorIds, withVectorDocumentAnchorIds, withVectorFills, withVectorStrokes, withVectorTargetPaint, zigzagPaths };
6130
+ /**
6131
+ * Agent tools for provider effects in the vector editor: the shared effect tools, where
6132
+ * `apply_effect` adds a provider vector effect's picture (a lower third, a sticker, a loader) as
6133
+ * a group, `update_effect` draws it again with new values and `remove_effect` keeps its shapes as
6134
+ * a plain group. Motion is applied in the animation editor.
6135
+ */
6136
+
6137
+ interface VectorEffectsToolProviderOptions {
6138
+ /** Provider id (unique per registry). Default `vector-effects`. */
6139
+ id?: string;
6140
+ /** Always prefix tool names with `<namespace>__`. */
6141
+ namespace?: string;
6142
+ /** The document cannot be edited: write tools are hidden. A string is the reason. */
6143
+ readOnly?: boolean | string | (() => boolean | string);
6144
+ }
6145
+ /** The effect tools for a vector editor (see the module comment). */
6146
+ declare function createVectorEffectsToolProvider(controller: VectorEditorController, options?: VectorEffectsToolProviderOptions): AgentToolProvider;
6147
+
6148
+ export { type AddVectorNodeOptions, AffineMatrix$1 as AffineMatrix, DEFAULT_VECTOR_BLEND_DISTANCE, DEFAULT_VECTOR_BLEND_STEPS, DEFAULT_VECTOR_FONT, DEFAULT_VECTOR_PATH_EDIT, DEFAULT_VECTOR_SNAP, IDENTITY_MATRIX, KAPPA, LazyMouse, type MapVectorSubpathsOptions, type NearestSegment, type RecognizeInkOptions, TextFont, TextShaper, VECTOR_ARROWHEAD_LABELS, VECTOR_BLEND_MAX_SMOOTH_STEPS, VECTOR_BLEND_MAX_STEPS, VECTOR_BLEND_MODE_LABELS, VECTOR_BLEND_MODE_MENU, VECTOR_BLEND_SPACING_LABELS, VECTOR_BUILDER_HATCH_GAP, VECTOR_CHARACTER_STYLE_KEYS, VECTOR_CLIPBOARD_TYPE, VECTOR_CONNECTOR_ROUTE_LABELS, VECTOR_CONNECTOR_SIDE_LABELS, VECTOR_CONSTRAINT_GLYPHS, VECTOR_CONSTRAINT_LABELS, VECTOR_CONSTRUCTION_ANGLES, VECTOR_CORNER_KIND_LABELS, VECTOR_CORNER_WIDGET_INSET, VECTOR_DIMENSIONAL_KINDS, VECTOR_DISTORT_TOLERANCE, VECTOR_EDIT_TOGGLES, VECTOR_EFFECT_MENU, VECTOR_ENVELOPE_STYLE_OPTIONS, VECTOR_FILL_GAP, VECTOR_FONT_WEIGHTS, VECTOR_GRADIENT_INTERPOLATION_LABELS, VECTOR_GRADIENT_MIDPOINT_GAP, VECTOR_GRADIENT_OFF_BAR, VECTOR_GRADIENT_SPREAD_LABELS, VECTOR_GRADIENT_STOP_GAP, VECTOR_GRADIENT_TYPE_LABELS, VECTOR_HORIZONTAL_RESIZING_LABELS, VECTOR_INK_MAX_CORNERS, VECTOR_MASK_TYPE_LABELS, VECTOR_MASK_TYPE_OPTIONS, VECTOR_MAX_CONSTRAINTS, VECTOR_MAX_TRACKING_POINTS, VECTOR_MESH_MAX, VECTOR_OVERLAY_THEME, VECTOR_PARAGRAPH_STYLE_KEYS, VECTOR_PATHFINDER_ACTIONS, VECTOR_PATHFINDER_LABELS, VECTOR_PATH_ACTIONS, VECTOR_PENCIL_STRING_PX, VECTOR_PRESSURE_NOMINAL, VECTOR_ROTATE_HANDLE_OFFSET, VECTOR_SPATIAL_MIN, VECTOR_STROKE_ALIGN_LABELS, VECTOR_STROKE_GRADIENT_MODE_LABELS, VECTOR_STROKE_SETTING_KEYS, VECTOR_STYLE_KEYS, VECTOR_SYMBOL_MAX_DEPTH, VECTOR_SYMMETRY_MODE_LABELS, VECTOR_TEXT_ALIGN_LABELS, VECTOR_TEXT_ALIGN_OPTIONS, VECTOR_TOOL_GLYPHS, VECTOR_TOOL_SHORTCUTS, VECTOR_TRACE_MAX_PIXELS, VECTOR_VERTICAL_RESIZING_LABELS, VECTOR_WIDTH_PRESETS, VECTOR_WIDTH_PRESET_IDS, VECTOR_WIDTH_PROFILE_MAX_POINTS, VECTOR_WIDTH_PROFILE_MAX_SCALE, VECTOR_WIDTH_SAME_T, type VariableStrokeOptions, Vec2$1 as Vec2, type VectorActionResult, VectorAlign, VectorAnchor, VectorAnchorRef, VectorAnchorType, type VectorAppearancePanelData, type VectorAppearancePanelLayer, VectorAppearanceShape, VectorArrange, VectorArrowAlign, VectorArrowhead, type VectorArrowheadShape, VectorAverageAxis, VectorBlend, type VectorBlendControls, type VectorBlendInput, VectorBlendMode, VectorBlendOptions, type VectorBlendRail, VectorBlendSpacing, type VectorBlendStart, VectorBooleanOperation, VectorBounds, type VectorBuilderHit, type VectorBuilderLinePiece, type VectorBuilderPreview, type VectorBuilderReplacement, type VectorBuilderTouched, VectorCharacterStyle, type VectorCommandOptions, type VectorConnectionSite, VectorConnector, VectorConnectorEnd, type VectorConnectorListing, type VectorConnectorPanel, VectorConnectorRoute, type VectorConnectorRouting, VectorConnectorSide, VectorConstraint, type VectorConstraintAction, VectorConstraintError, type VectorConstraintGlyph, type VectorConstraintInput, VectorConstraintKind, type VectorConstraintPanelData, type VectorConstraintRefInput, type VectorCornerInfo, VectorCornerKind, type VectorCornerWidget, VectorDefaults, type VectorDistortMode, VectorDistribute, VectorDocument, type VectorDofReport, type VectorDofStatus, VectorEditorController, type VectorEditorOptions, type VectorEditorState, VectorEffect, VectorEffectParamSpec, VectorEffectParamsMap, VectorEffectType, type VectorEffectsPanelData, type VectorEffectsPanelItem, type VectorEffectsToolProviderOptions, type VectorEnvelopePanelData, VectorEnvelopeParams, VectorExprEnv, VectorExprError, VectorFillRule, VectorFilter, VectorFilterParamSpec, VectorFilterType, type VectorFiltersPanelItem, VectorFrame, type VectorFrameGroup, type VectorFrameListing, type VectorFramePanel, type VectorFreeformField, VectorFreeformGradient, VectorFreeformPoint, VectorGradient, type VectorGradientAnnotator, type VectorGradientEditorData, VectorGradientHandle, VectorGradientInterpolation, type VectorGradientPart, VectorGradientPatch, VectorGradientSpread, VectorGradientStop, type VectorGradientTarget, VectorGradientType, VectorGroupNode, type VectorGuideKind, type VectorGuideLabel, type VectorGuideLine, VectorHandleRef, type VectorHitTestOptions, VectorHorizontalResizing, type VectorHover, type VectorInferOptions, type VectorInkShape, VectorInstanceNode, VectorInstanceOverrides, type VectorInteraction, type VectorKeyInput, VectorLineJoin, type VectorLottie, type VectorLottieExport, type VectorLottieExportOptions, type VectorLottieImport, type VectorLottieImportOptions, VectorMask, type VectorMaskClipShape, type VectorMaskGroup, type VectorMaskPanelData, type VectorMaskRegionShape, type VectorMaskRenderData, type VectorMaskResult, type VectorMaskSummary, VectorMaskType, VectorMatrix, VectorMergeMode, VectorMeshGradient, VectorModifiers, type VectorMorph, type VectorMorphContour, type VectorMorphCorrespondence, type VectorMorphOptions, VectorNode, type VectorNodeListing, type VectorOverlayRenderData, VectorPaint, VectorPaintDef, VectorPaintLayer, type VectorPaintLayerHit, type VectorPaintLayerNode, VectorParagraphStyle, VectorParameter, type VectorPathAction, type VectorPathEditOptions, type VectorPathEntry, type VectorPathKeyframe, type VectorPathMeasure, VectorPathNode, type VectorPathfinderAction, VectorPathfinderOperation, type VectorPathfinderPaint, type VectorPdfExport, type VectorPdfOptions, type VectorPointMap, type VectorPointSnap, type VectorPointerInput, VectorProviderEffect, VectorRTree, type VectorRectSnap, type VectorRenderAnchor, type VectorRenderCornerWidget, VectorRenderFilter, type VectorRenderGradientAnnotator, type VectorRenderGroup, type VectorRenderGuideLabel, type VectorRenderGuideLine, type VectorRenderHandle, type VectorRenderMask, type VectorRenderNode, type VectorRenderPaintLayer, type VectorRenderPath, VectorRenderStrokeParts, type VectorRenderText, type VectorRenderTextSpan, type VectorRenderWidthPoint, type VectorRepeaterCopy, VectorResizing, type VectorResolvedRun, VectorRgba, type VectorScaleSnap, type VectorSceneRenderData, type VectorSceneRenderOptions, VectorSegmentRef, type VectorSelectionBoxGeometry, type VectorSelectionFrame, type VectorSelectionStyle, type VectorShadedSvgOptions, type VectorShapeBuilderFace, type VectorShapeBuilderMap, type VectorShapeBuilderPlan, type VectorShapeBuilderResult, type VectorShapeInput, type VectorSnapGuides, type VectorSnapKind, type VectorSnapLeave, type VectorSnapOptions, VectorSnapTargets, type VectorSolveResult, VectorStrokeAlign, VectorStrokeGradientMode, VectorStrokeLayer, type VectorStrokeParts, VectorStrokeSettings, type VectorStrokeSpot, VectorStyle, VectorSubpath, VectorSvgExportOptions, VectorSvgPatternDef, VectorSymbol, type VectorSymbolsPanelData, type VectorSymbolsPanelItem, VectorSymmetry, type VectorSymmetryGroup, VectorSymmetryMode, type VectorTaperOptions, VectorTextAlign, type VectorTextCaret, type VectorTextDefaults, type VectorTextEditState, VectorTextError, type VectorTextFragment, VectorTextFrame, type VectorTextGlyph, type VectorTextInput, type VectorTextLayout, VectorTextNode, type VectorTextPanelData, type VectorTextPaths, VectorTextRun, type VectorTextSpan, VectorTool, type VectorTraceOptions, type VectorTracePixels, type VectorTrackingPath, type VectorTrackingPoint, VectorTransformHandle, VectorVerticalResizing, VectorViewport, VectorWarpMesh, type VectorWaveOptions, type VectorWidthHandle, VectorWidthPoint, type VectorWidthPointEdit, type VectorWidthPointRef, type VectorWidthPreset, type VectorWidthPresetInfo, addBuilderHit, addVectorConstraint, applyMatrix, applyMatrixLinear, applyVectorBlendOptions, applyVectorParagraphStyle, applyVectorTextStyle, arrowheadInset, arrowheadPath, arrowheadWeight, autoConstrainVector, autoVectorFreeformGradient, bakeVectorTextGeometry, bendSegment, bezierToSubpaths, boundsFromPoints, boundsIntersect, checkVectorExpression, cloneAnchor, cloneSubpath, cloneVectorDocument, cloneVectorNode, collectPaintedNodes, collectPathNodes, composeVectorMatrices, constrainToLeave, convertAnchor, cornerBisectorPoint, cornerRadiusChange, cornerSetback, correspondMorphContours, createVectorCommands, createVectorEffectsToolProvider, createVectorMeshGradient, createVectorMorph, curvatureMoveAnchor, cutSubpathAt, dashIntervals, decomposeRigid, distortVectorNode, effectPathLength, effectPathVertexCount, effectiveStrokeAlign, ellipseSubpath, eraseFromFill, eraseFromOutline, eraserRegion, evalVectorExpression, evaluateVectorPathKeyframes, expandVectorBlend, expandVectorCorners, expandVectorCornersOf, findVectorAnchorById, findVectorNode, fitCornerRadius, fitVectorTextRuns, formatVectorValue, generateVectorBlendChildren, generateWidthProfile, getAnchor, getAnchorWorld, getEditablePathIds, getTransformHandlePositions, getVectorAppearancePanel, getVectorBlendControls, getVectorConnectorPanel, getVectorConstraintPanel, getVectorCornerWidgets, getVectorEffectsPanel, getVectorEnteredGroups, getVectorEnvelopePanel, getVectorEnvelopeTarget, getVectorFramePanel, getVectorGradientAnnotator, getVectorGradientEditor, getVectorMaskPanel, getVectorOverlayRenderData, getVectorSceneRenderData, getVectorSelectionBoxGeometry, getVectorSelectionFrame, getVectorSelectionStyle, getVectorSymbolEditBackground, getVectorSymbolsPanel, getVectorTextPanel, getVectorTextShaper, getVectorWidthHandles, getVisibleAnchors, getVisibleHandles, glyphBox, hasPaint, hasStrokeExtras, hasVectorCorners, hasVectorPaintStacks, hitTestVectorNode, hitTestVectorNodes, hitTestVectorPaintLayer, hitTestVectorPaintStack, hitTestVectorStroke, hitVectorGradientAnnotator, inferAnchorType, inferVectorConstraints, insertAnchor, insertWidthPoint, interpolateMorphContours, interpolateRigidMatrix, interpolateVectorColor, interpolateVectorPaint, interpolateVectorPaths, interpolateVectorStyle, interpolateWidthProfiles, invertMatrix, isClosedBezierShape, isDrawnVectorPaintLayer, isIdentityMatrix, isPlainVectorPaintLayer, isUniformWidthProfile, isValidVectorParameterName, isVectorBlendGroup, isVectorBlendMode, isVectorConnector, isVectorFrame, isVectorFreeformGradient, isVectorMaskActive, isVectorMaskGroup, isVectorMaskType, isVectorMeshGradient, isVectorShadedPaint, isVectorSymmetryGroup, isVectorTextTarget, joinSubpaths, knifePath, layoutVectorText, lineSubpath, locateVectorNode, lottieValueAt, mapBezierPath, mapVectorPoints, mapVectorShadedPaint, mapVectorSubpaths, matrixRotation, measureVectorConstraint, measureVectorPath, mergePaths, mirrorWidthProfile, morphContourToSubpath, morphPathsCross, moveAnchorHandle, multiplyMatrices, nearestSegment, nearestStrokePosition, nearestVectorConnectionSite, nearestVectorShadingPoint, needsVectorPaintLayers, newVectorStrokeLayer, nextVectorConstraintName, nextVectorCornerKind, nodeMatrix, normalizeVectorPaintStacks, normalizeVectorTextRuns, offsetPaths, parseVectorLottie, patchVectorCharacterStyle, patchVectorParagraphStyle, pathTextFrameFromBezier, pathsCenter, planShapeBuilder, polygonSubpath, polylineBounds, prefixVectorIds, pressureWidthProfile, puckerBloatPaths, purgeVectorConstraints, quantizeVectorTraceColors, recognizeInkShape, rectSubpath, refineMorphContour, refreshVectorBlends, releaseVectorBlend, removeAnchorKeepingShape, removeAnchors, removeAnchorsKeepingShape, removeRedundantPoints, removeVectorFreeformPoint, removeWidthPoints, repeatPaths, replaceVectorText, rerouteVectorConnectors, resampleGradientStops, resolveVectorBlendOptions, resolveVectorSymbols, reverseMorphContour, reverseSubpath, reverseWidthProfile, rotateMatrix, roundCornerPaths, roundSubpaths, routeVectorConnector, samplePolyline, sampleVectorFreeform, sanitizeVectorConnector, sanitizeVectorFills, sanitizeVectorFrame, sanitizeVectorMask, sanitizeVectorResizing, sanitizeVectorShadedPaint, sanitizeVectorStrokeSettings, sanitizeVectorStrokes, sanitizeVectorSymmetry, sanitizeVectorTextFields, sanitizeVectorTextFrame, sanitizeWidthProfile, scaleFor, scaleMatrix, scaleVectorStrokeWidths, setAnchorCorner, setSubpathCorners, setVectorTextShaper, setWidthPoint, simplifyPolyline, smoothSubpath, solveVectorConstraints, splitIntoFaces, splitSubpathAt, starSubpath, stripVectorSymbolArt, strokePositionPoint, strokeWidthProfileOf, styleVectorText, subpathEnclosesArea, subpathPointAt, subpathSegment, subpathSegmentCount, subpathToMorphContour, subpathsToBezier, sweepPath, taperWaveFactor, tintVectorNode, toVectorKeyInput, toVectorModifiers, toVectorPointerInput, traceVectorImage, transformVectorNode, transformVectorShadedPaint, transformVectorSymmetry, translateAnchor, translateMatrix, trimIntervals, trimPaths, trimPathsIndividually, turnMorphContour, twistPaths, unionBounds, validateVectorConstraint, variableStrokeOutline, variableStrokeRings, vectorAngleDirection, vectorArtboards, vectorBlendColorDistance, vectorBlendKeyTargets, vectorBlendKeys, vectorBlendModeCss, vectorBlendModeFromCss, vectorBlendRail, vectorBlendRailAt, vectorBlendSpine, vectorBlendStepCount, vectorBoundsInside, vectorBoxCorners, vectorBuilderErasedEdges, vectorConnectionSites, vectorConnectorTargetAt, vectorConnectorWorldAnchors, vectorConstraintActions, vectorConstraintDof, vectorConstraintEnv, vectorConstraintGlyphs, vectorConstraintPanel, vectorConstraintResiduals, vectorConstraintValue, vectorCornerAt, vectorCorners, vectorDiamondPath, vectorDistortQuad, vectorDocumentToLottie, vectorDocumentToPdf, vectorExpressionNames, vectorFillMap, vectorFills, vectorFrameChildMatrix, vectorFrameContains, vectorFrameDocument, vectorFrameDrawn, vectorFrameRectPath, vectorFreeformField, vectorFreeformLineSegments, vectorFreeformSpreadScale, vectorGradientBarPosition, vectorGradientTargetPath, vectorInkShapeName, vectorInstanceGroup, vectorMaskContains, vectorMaskContentBounds, vectorMaskContents, vectorMaskOwner, vectorMaskRegion, vectorMaskRegionPath, vectorMaskRegionShapes, vectorMaskRenderData, vectorMaskSource, vectorMaskSummary, vectorMaskedGeometry, vectorMaskedLocalBounds, vectorMaskedShapes, vectorMeshColorAt, vectorMeshFromOutline, vectorMeshLines, vectorMeshOutline, vectorMeshPointAt, vectorNodeBounds, vectorNodePaintBox, vectorNodeRotation, vectorNodeToBezier, vectorNodesNear, vectorPaintLayerNodes, vectorPaintSwatch, vectorPaintToHex, vectorParentMatrix, vectorPathAt, vectorPathCircle, vectorPathData, vectorPathEntries, vectorPathTextPositions, vectorPathWorldBezier, vectorPathfinderShape, vectorPolarAngles, vectorPolarIncrementOf, vectorRepeaterCopies, vectorResizeCursor, vectorResultStyle, vectorRgbaToCss, vectorShadedSvgDefs, vectorShapeBuilderHit, vectorShapeBuilderMap, vectorShearForSide, vectorSkewMatrix, vectorSpatialIndex, vectorStacksHaveGradient, vectorStrokeGradientDefs, vectorStrokeLineArea, vectorStrokeOutline, vectorStrokeOutlinePath, vectorStrokeParts, vectorStrokeReach, vectorStrokeSettings, vectorStrokeStackReach, vectorStrokeWidthGeometry, vectorStrokes, vectorSymbolUses, vectorSymbolsUsedIn, vectorSymmetryAxes, vectorSymmetryDrawn, vectorSymmetryMatrices, vectorTargetPaint, vectorTextBoxOutline, vectorTextCaret, vectorTextFamilies, vectorTextGeometryNode, vectorTextHasOutlines, vectorTextIndexAt, vectorTextName, vectorTextPaintSource, vectorTextPaths, vectorTextRange, vectorTextRuns, vectorTextSelectionQuads, vectorTextShaperGeneration, vectorTextSpanSvg, vectorTextSpans, vectorTextStyleAt, vectorToolLabel, vectorTraceContours, vectorTrackingPaths, vectorWorldMatrix, walkVectorNodes, widthProfileAt, widthProfileMaxScale, widthProfilePreset, widthProfilePresetId, wigglePaths, withVectorAnchorIds, withVectorDocumentAnchorIds, withVectorFills, withVectorStrokes, withVectorTargetPaint, zigzagPaths };
@@ -42,7 +42,7 @@ import {
42
42
  reverseMorphContour,
43
43
  subpathToMorphContour,
44
44
  turnMorphContour
45
- } from "../chunk-NGYD3AMN.js";
45
+ } from "../chunk-MPQAO33O.js";
46
46
  import {
47
47
  DEFAULT_VECTOR_FONT,
48
48
  IDENTITY_MATRIX,
@@ -478,7 +478,15 @@ import {
478
478
  withVectorStrokes,
479
479
  withVectorTargetPaint,
480
480
  zigzagPaths
481
- } from "../chunk-5EO2IXQE.js";
481
+ } from "../chunk-FPRIUR4T.js";
482
+ import {
483
+ createEffectToolProvider
484
+ } from "../chunk-XZWOLXWA.js";
485
+ import {
486
+ EffectUnsupportedError,
487
+ EffectsSlot,
488
+ resolveEffectValues
489
+ } from "../chunk-TGKT5QAB.js";
482
490
  import {
483
491
  bezierPathBounds,
484
492
  bezierPathToSvg,
@@ -502,6 +510,7 @@ import {
502
510
  parseSvgPath,
503
511
  simplifyRing
504
512
  } from "../chunk-GLWZXQ4Q.js";
513
+ import "../chunk-4FX5ACVG.js";
505
514
  import {
506
515
  HistoryManager
507
516
  } from "../chunk-QVZZGT4X.js";
@@ -3466,7 +3475,7 @@ stream
3466
3475
  out.set(tail, head.length + body.length);
3467
3476
  return out;
3468
3477
  }
3469
- bytes(root, info) {
3478
+ bytes(root, info2) {
3470
3479
  const enc = new TextEncoder();
3471
3480
  const parts = [enc.encode("%PDF-1.7\n%\xE2\xE3\xCF\xD3\n")];
3472
3481
  let offset = parts[0].length;
@@ -3487,7 +3496,7 @@ stream
3487
3496
  `, ...offsets.map((o) => `${String(o).padStart(10, "0")} 00000 n
3488
3497
  `)].join("");
3489
3498
  parts.push(enc.encode(`${xref}trailer
3490
- << /Size ${this.objects.length + 1} /Root ${root} 0 R /Info ${info} 0 R >>
3499
+ << /Size ${this.objects.length + 1} /Root ${root} 0 R /Info ${info2} 0 R >>
3491
3500
  startxref
3492
3501
  ${offset}
3493
3502
  %%EOF
@@ -3535,8 +3544,8 @@ function vectorDocumentToPdf(doc, options = {}) {
3535
3544
  });
3536
3545
  w.set(catalog, `<< /Type /Catalog /Pages ${pagesId} 0 R >>`);
3537
3546
  w.set(pagesId, `<< /Type /Pages /Kids [${pageIds.map((id) => `${id} 0 R`).join(" ")}] /Count ${pageIds.length} >>`);
3538
- const info = w.add(`<< /Producer (Pixerate vector editor)${options.title ? ` /Title ${pdfString(options.title)}` : ""} >>`);
3539
- return { bytes: w.bytes(catalog, info), pages: pageIds.length, notes: [...notes] };
3547
+ const info2 = w.add(`<< /Producer (Pixerate vector editor)${options.title ? ` /Title ${pdfString(options.title)}` : ""} >>`);
3548
+ return { bytes: w.bytes(catalog, info2), pages: pageIds.length, notes: [...notes] };
3540
3549
  }
3541
3550
 
3542
3551
  // src/vector/lottie.ts
@@ -7369,6 +7378,81 @@ var VectorEditorController = class _VectorEditorController {
7369
7378
  return { ok: false, message: error instanceof Error ? error.message : String(error) };
7370
7379
  }
7371
7380
  }
7381
+ // --- Provider effects ---
7382
+ /** The effects provider slot (see `setEffectsProvider`). */
7383
+ effects = new EffectsSlot();
7384
+ /** The registered effects provider, or `null`. */
7385
+ get effectsProvider() {
7386
+ return this.effects.provider;
7387
+ }
7388
+ /** Registers (or with `null` removes) the effects provider. Not an edit: no undo step. */
7389
+ setEffectsProvider(provider) {
7390
+ this.effects.set(provider);
7391
+ }
7392
+ /** Registers `provider` and returns a function that removes it again (if it is still the one set). */
7393
+ useEffects(provider) {
7394
+ return this.effects.use(provider);
7395
+ }
7396
+ /** The groups that show provider vector effects. */
7397
+ vectorEffectGroups() {
7398
+ const out = [];
7399
+ walkVectorNodes(this.doc.nodes, (n2) => {
7400
+ if (n2.type === "group" && n2.providerEffect) out.push(n2);
7401
+ });
7402
+ return out;
7403
+ }
7404
+ /** The effect's picture as group children, scaled into `box` (an affine fit). */
7405
+ async vectorEffectPicture(effect, values) {
7406
+ const provider = this.effects.require();
7407
+ if (!provider.applyVectorEffect) throw new EffectUnsupportedError(`${provider.name} has no vector effects.`);
7408
+ const d = await provider.describe(effect);
7409
+ if (d.kind !== "vector") throw new EffectUnsupportedError(`"${d.id}" (${d.name}) is a ${d.kind} effect; the vector editor adds vector effects, which bring their own picture${d.kind === "motion" ? " (apply motion in the animation editor)" : ""}.`, d.id);
7410
+ const resolved = resolveEffectValues(d, values);
7411
+ const motion = await provider.applyVectorEffect(d.id, this.toSvg(), resolved);
7412
+ const parsed = parseVectorSvg(motion.svg);
7413
+ if (!parsed.nodes.length) throw new Error(`"${d.name}" drew no shapes the editor can read.`);
7414
+ const children = parsed.nodes.map((n2) => this.freshIds(n2));
7415
+ return { children, width: parsed.width, height: parsed.height, tag: { effect: d.id, provider: provider.id, name: d.name, values: resolved } };
7416
+ }
7417
+ /**
7418
+ * Adds a provider vector effect's picture (at rest: its SVG without the motion) as a group,
7419
+ * fitted into `box` (default the middle half of the document), selected. One undo step.
7420
+ * Returns the group id.
7421
+ */
7422
+ async addVectorEffect(effect, options = {}) {
7423
+ const { children, width, height, tag } = await this.vectorEffectPicture(effect, options.values);
7424
+ const box = options.box ?? { x: this.doc.width / 4, y: this.doc.height / 4, width: this.doc.width / 2, height: this.doc.height / 2 };
7425
+ const k = Math.min(box.width / width, box.height / height);
7426
+ const group = { type: "group", id: this.newId(), name: tag.name ?? tag.effect, children, transform: [k, 0, 0, k, box.x + (box.width - width * k) / 2, box.y + (box.height - height * k) / 2], providerEffect: tag };
7427
+ return this.addNode(group, { label: `Add ${tag.name ?? tag.effect}`, ...options.parentId ? { parentId: options.parentId } : {} });
7428
+ }
7429
+ /**
7430
+ * Draws a vector effect group again with new `values` (merged over its own; `null` resets a
7431
+ * control), keeping its place and transform. One undo step. Returns the group's effect.
7432
+ */
7433
+ async updateVectorEffect(id, values) {
7434
+ const node = this.getNode(id);
7435
+ if (!node || node.type !== "group" || !node.providerEffect) throw new Error(`"${id}" is not a vector effect group; list_applied_effects lists them.`);
7436
+ const was = node.providerEffect;
7437
+ const d = await this.effects.require().describe(was.effect);
7438
+ const merged = { ...was.values };
7439
+ for (const [k, v] of Object.entries(values)) {
7440
+ if (v === null) {
7441
+ if (!(k in d.controls.properties)) throw new Error(`"${k}" is not a control of "${d.id}"; its controls are ${Object.keys(d.controls.properties).join(", ")}.`);
7442
+ merged[k] = d.defaults[k];
7443
+ } else merged[k] = v;
7444
+ }
7445
+ const { children, tag } = await this.vectorEffectPicture(was.effect, merged);
7446
+ this.change(`Change ${tag.name ?? tag.effect}`, () => this.replaceNode(id, { ...node, children, providerEffect: tag }));
7447
+ return tag;
7448
+ }
7449
+ /** Keeps a vector effect group's shapes as a plain group (drops its effect). One undo step. */
7450
+ detachVectorEffect(id) {
7451
+ const node = this.getNode(id);
7452
+ if (!node || node.type !== "group" || !node.providerEffect) throw new Error(`"${id}" is not a vector effect group.`);
7453
+ const { providerEffect: _e, ...rest } = node;
7454
+ this.change("Detach effect", () => this.replaceNode(id, rest));
7455
+ }
7372
7456
  /** Adds the nodes of SVG markup on top of the document, selected. */
7373
7457
  importSvg(svg) {
7374
7458
  try {
@@ -16709,6 +16793,70 @@ function getVectorSymbolEditBackground(state, options = {}) {
16709
16793
  const m = e.hostTransform;
16710
16794
  return { ...scene, transform: `${scene.transform} matrix(${m.map((v) => Math.round(v * 1e6) / 1e6).join(" ")})`, name: e.name };
16711
16795
  }
16796
+
16797
+ // src/vector/effect-tools.ts
16798
+ var info = (g) => ({
16799
+ id: "picture",
16800
+ effect: g.providerEffect.effect,
16801
+ ...g.providerEffect.name ? { name: g.providerEffect.name } : {},
16802
+ ...g.providerEffect.provider ? { provider: g.providerEffect.provider } : {},
16803
+ role: "vector picture",
16804
+ enabled: true,
16805
+ values: { ...g.providerEffect.values }
16806
+ });
16807
+ function createVectorEffectsToolProvider(controller, options = {}) {
16808
+ const readOnlyReason = () => {
16809
+ const ro = typeof options.readOnly === "function" ? options.readOnly() : options.readOnly;
16810
+ return ro ? typeof ro === "string" ? ro : "The drawing is read-only." : null;
16811
+ };
16812
+ const group = (id) => {
16813
+ const g = controller.vectorEffectGroups().find((n2) => n2.id === id);
16814
+ if (!g) throw new Error(`"${id}" is not a vector effect group; the groups are ${controller.vectorEffectGroups().map((n2) => `"${n2.id}"`).join(", ") || "none"} (list_applied_effects).`);
16815
+ return g;
16816
+ };
16817
+ const result = (id, removed) => {
16818
+ const g = controller.getNode(id);
16819
+ const effects = g?.providerEffect ? [info(g)] : [];
16820
+ return { target: id, effect: removed ?? effects[0], effects };
16821
+ };
16822
+ return createEffectToolProvider({
16823
+ id: options.id ?? "vector-effects",
16824
+ namespace: options.namespace,
16825
+ target: { noun: "group", id: `For apply_effect: "document" for the top level, or a group id to put the picture in. For update_effect and remove_effect: the effect group's id from list_applied_effects.` },
16826
+ applyUses: ["title", "overlay", "generator", "interactive"],
16827
+ applyDetails: `Only vector effects (kind vector: lower thirds, stickers, loaders, badges) can be added: the effect's SVG at rest becomes a group of editable shapes, fitted into the middle half of the document and selected; move or scale it like any group. Its motion plays in the animation editor (add_vector_effect there). update_effect with effect "picture" draws it again with new values; remove_effect keeps the shapes as a plain group. index, enabled and opacity do not apply.`,
16828
+ provider: () => controller.effectsProvider,
16829
+ readOnlyReason,
16830
+ list: (target) => {
16831
+ const groups = target ? [group(target)] : controller.vectorEffectGroups();
16832
+ return groups.map((g) => ({ target: g.id, ...g.name ? { name: g.name } : {}, effects: [info(g)] }));
16833
+ },
16834
+ apply: async (target, effect, args) => {
16835
+ if (args.index !== void 0 || args.opacity !== void 0 || args.enabled === false) throw new Error("index, opacity and enabled do not apply to vector effects; set the group's opacity with the style commands.");
16836
+ if (target !== "document") {
16837
+ const parent = controller.getNode(target);
16838
+ if (!parent || parent.type !== "group") throw new Error(`"${target}" is not a group; pass "document" for the top level or a group id.`);
16839
+ }
16840
+ const id = await controller.addVectorEffect(effect, { values: args.values, ...target !== "document" ? { parentId: target } : {} });
16841
+ return { ...result(id), group: id };
16842
+ },
16843
+ update: async (target, instance, changes) => {
16844
+ if (instance !== "picture") throw new Error('A vector effect group has one effect, "picture".');
16845
+ const extra = ["enabled", "opacity", "index"].filter((k) => changes[k] !== void 0);
16846
+ if (extra.length) throw new Error(`A vector effect only takes values; ${extra.join(", ")} do not apply.`);
16847
+ group(target);
16848
+ await controller.updateVectorEffect(target, changes.values ?? {});
16849
+ return result(target);
16850
+ },
16851
+ remove: async (target, instance) => {
16852
+ if (instance !== "picture") throw new Error('A vector effect group has one effect, "picture".');
16853
+ const was = info(group(target));
16854
+ controller.detachVectorEffect(target);
16855
+ return result(target, was);
16856
+ },
16857
+ subscribe: (notify) => controller.subscribe(() => notify())
16858
+ });
16859
+ }
16712
16860
  export {
16713
16861
  DEFAULT_VECTOR_BLEND_DISTANCE,
16714
16862
  DEFAULT_VECTOR_BLEND_STEPS,
@@ -16866,6 +17014,7 @@ export {
16866
17014
  createOutlineTextShaper,
16867
17015
  createVectorCommands,
16868
17016
  createVectorEffect,
17017
+ createVectorEffectsToolProvider,
16869
17018
  createVectorFilter,
16870
17019
  createVectorMeshGradient,
16871
17020
  createVectorMorph,