modern-path2d 1.0.1 → 1.2.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.
- package/README.md +30 -16
- package/dist/index.cjs +1711 -963
- package/dist/index.d.cts +299 -259
- package/dist/index.d.mts +299 -259
- package/dist/index.d.ts +299 -259
- package/dist/index.js +2 -2
- package/dist/index.mjs +1689 -951
- package/package.json +7 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modern-path2d",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"packageManager": "pnpm@9.15.1",
|
|
6
6
|
"description": "A modern Path2D library, fully compatible with Web Path2D, with additional support for path animation, path deformation, path playback, etc.",
|
|
7
7
|
"author": "wxm",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "vite build && unbuild",
|
|
49
49
|
"dev": "vite docs",
|
|
50
|
-
"lint": "eslint
|
|
50
|
+
"lint": "eslint src",
|
|
51
51
|
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
|
|
52
52
|
"release": "bumpp package.json --commit \"release: v%s\" --push --all --tag",
|
|
53
53
|
"start": "esno src/index.ts",
|
|
@@ -55,8 +55,12 @@
|
|
|
55
55
|
"typecheck": "tsc --noEmit",
|
|
56
56
|
"prepare": "simple-git-hooks"
|
|
57
57
|
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"earcut": "^3.0.1"
|
|
60
|
+
},
|
|
58
61
|
"devDependencies": {
|
|
59
62
|
"@antfu/eslint-config": "^3.12.0",
|
|
63
|
+
"@types/earcut": "^2.1.4",
|
|
60
64
|
"@types/node": "^22.10.2",
|
|
61
65
|
"bumpp": "^9.9.2",
|
|
62
66
|
"conventional-changelog-cli": "^5.0.0",
|
|
@@ -72,6 +76,6 @@
|
|
|
72
76
|
"pre-commit": "pnpm lint-staged"
|
|
73
77
|
},
|
|
74
78
|
"lint-staged": {
|
|
75
|
-
"*": "eslint
|
|
79
|
+
"*": "eslint src --fix"
|
|
76
80
|
}
|
|
77
81
|
}
|