modern-path2d 1.4.3 → 1.4.4

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.
package/dist/index.d.cts CHANGED
@@ -447,8 +447,8 @@ type FillRule = 'nonzero' | 'evenodd';
447
447
  type StrokeLinecap = 'butt' | 'round' | 'square';
448
448
  type StrokeLinejoin = 'arcs' | 'bevel' | 'miter' | 'miter-clip' | 'round';
449
449
  interface Path2DDrawStyle {
450
- fill: string | CanvasGradient | CanvasPattern;
451
- stroke: string | CanvasGradient | CanvasPattern;
450
+ fill: string | any;
451
+ stroke: string | any;
452
452
  shadowColor: string;
453
453
  shadowOffsetX: number;
454
454
  shadowOffsetY: number;
package/dist/index.d.mts CHANGED
@@ -447,8 +447,8 @@ type FillRule = 'nonzero' | 'evenodd';
447
447
  type StrokeLinecap = 'butt' | 'round' | 'square';
448
448
  type StrokeLinejoin = 'arcs' | 'bevel' | 'miter' | 'miter-clip' | 'round';
449
449
  interface Path2DDrawStyle {
450
- fill: string | CanvasGradient | CanvasPattern;
451
- stroke: string | CanvasGradient | CanvasPattern;
450
+ fill: string | any;
451
+ stroke: string | any;
452
452
  shadowColor: string;
453
453
  shadowOffsetX: number;
454
454
  shadowOffsetY: number;
package/dist/index.d.ts CHANGED
@@ -447,8 +447,8 @@ type FillRule = 'nonzero' | 'evenodd';
447
447
  type StrokeLinecap = 'butt' | 'round' | 'square';
448
448
  type StrokeLinejoin = 'arcs' | 'bevel' | 'miter' | 'miter-clip' | 'round';
449
449
  interface Path2DDrawStyle {
450
- fill: string | CanvasGradient | CanvasPattern;
451
- stroke: string | CanvasGradient | CanvasPattern;
450
+ fill: string | any;
451
+ stroke: string | any;
452
452
  shadowColor: string;
453
453
  shadowOffsetX: number;
454
454
  shadowOffsetY: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-path2d",
3
3
  "type": "module",
4
- "version": "1.4.3",
4
+ "version": "1.4.4",
5
5
  "packageManager": "pnpm@9.15.1",
6
6
  "description": "A Path2D library, fully compatible with Web Path2D, with additional support for triangulate、animation、deformation etc.",
7
7
  "author": "wxm",