path2d-polyfill 1.2.2 → 2.0.0-beta.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 +53 -16
- package/dist/path2d-polyfill.cjs.js +596 -0
- package/dist/path2d-polyfill.dev.js +597 -0
- package/dist/path2d-polyfill.esm.js +591 -0
- package/dist/path2d-polyfill.min.js +1 -0
- package/package.json +43 -31
- package/CHANGELOG.md +0 -77
- package/dist/index.esm.js +0 -652
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/src/index.js +0 -11
- package/src/parse-path.js +0 -74
- package/src/path2d-polyfill.js +0 -426
package/package.json
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "path2d-polyfill",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"description": "Polyfills Path2D api for canvas rendering",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rm -rf dist/* && rollup -c",
|
|
7
7
|
"start": "rollup -c -w",
|
|
8
|
-
"lint": "eslint
|
|
9
|
-
"
|
|
8
|
+
"lint": "eslint .",
|
|
9
|
+
"check-types": "tsc --noEmit",
|
|
10
|
+
"test": "ts-mocha test/*.spec.ts",
|
|
11
|
+
"test:watch": "ts-mocha --watch test/*.spec.ts",
|
|
12
|
+
"test:coverage": "nyc --reporter=html --reporter=text --reporter=text-summary yarn test",
|
|
10
13
|
"format:check": "prettier --check \"./**\"",
|
|
11
14
|
"format:write": "prettier --write \"./**\"",
|
|
12
15
|
"prepare": "husky install",
|
|
13
16
|
"release": "release-it"
|
|
14
17
|
},
|
|
18
|
+
"browser": "dist/path2d-polyfill.min.js",
|
|
19
|
+
"module": "dist/path2d-polyfill.esm.js",
|
|
20
|
+
"main": "dist/path2d-polyfill.cjs.js",
|
|
15
21
|
"files": [
|
|
16
|
-
"
|
|
17
|
-
"/src"
|
|
22
|
+
"dist"
|
|
18
23
|
],
|
|
19
|
-
"main": "dist/index.js",
|
|
20
|
-
"module": "dist/index.esm.js",
|
|
21
24
|
"repository": {
|
|
22
25
|
"type": "git",
|
|
23
26
|
"url": "git+https://github.com/nilzona/path2d-polyfill.git"
|
|
@@ -34,29 +37,38 @@
|
|
|
34
37
|
},
|
|
35
38
|
"homepage": "https://github.com/nilzona/path2d-polyfill#readme",
|
|
36
39
|
"devDependencies": {
|
|
37
|
-
"@babel/core": "
|
|
38
|
-
"@babel/preset-env": "
|
|
39
|
-
"@commitlint/cli": "
|
|
40
|
-
"@commitlint/config-conventional": "
|
|
41
|
-
"@release-it/conventional-changelog": "
|
|
42
|
-
"@rollup/plugin-
|
|
43
|
-
"@rollup/plugin-
|
|
44
|
-
"chai": "^4.3.
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"prettier": "
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
40
|
+
"@babel/core": "7.20.7",
|
|
41
|
+
"@babel/preset-env": "7.20.2",
|
|
42
|
+
"@commitlint/cli": "17.3.0",
|
|
43
|
+
"@commitlint/config-conventional": "17.3.0",
|
|
44
|
+
"@release-it/conventional-changelog": "5.1.1",
|
|
45
|
+
"@rollup/plugin-terser": "0.2.1",
|
|
46
|
+
"@rollup/plugin-typescript": "10.0.1",
|
|
47
|
+
"@types/chai": "^4.3.4",
|
|
48
|
+
"@types/mocha": "^10.0.1",
|
|
49
|
+
"@types/sinon": "^10.0.13",
|
|
50
|
+
"@types/sinon-chai": "^3.2.9",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "5.48.0",
|
|
52
|
+
"@typescript-eslint/parser": "5.48.0",
|
|
53
|
+
"chai": "4.3.7",
|
|
54
|
+
"eslint": "8.31.0",
|
|
55
|
+
"eslint-config-prettier": "8.6.0",
|
|
56
|
+
"husky": "8.0.2",
|
|
57
|
+
"lint-staged": "13.1.0",
|
|
58
|
+
"mocha": "10.2.0",
|
|
59
|
+
"nyc": "15.1.0",
|
|
60
|
+
"prettier": "2.8.1",
|
|
61
|
+
"release-it": "15.6.0",
|
|
62
|
+
"rollup": "3.9.1",
|
|
63
|
+
"rollup-plugin-livereload": "2.0.5",
|
|
64
|
+
"rollup-plugin-serve": "2.0.2",
|
|
65
|
+
"sinon": "15.0.1",
|
|
66
|
+
"sinon-chai": "3.7.0",
|
|
67
|
+
"ts-mocha": "^10.0.0",
|
|
68
|
+
"typescript": "^4.9.4"
|
|
60
69
|
},
|
|
61
|
-
"dependencies": {}
|
|
70
|
+
"dependencies": {},
|
|
71
|
+
"engines": {
|
|
72
|
+
"node": ">=8"
|
|
73
|
+
}
|
|
62
74
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
## [1.2.2](https://github.com/nilzona/path2d-polyfill/compare/v1.2.1...v1.2.2) (2022-07-23)
|
|
2
|
-
|
|
3
|
-
undefined
|
|
4
|
-
|
|
5
|
-
### [1.2.1](https://github.com/nilzona/path2d-polyfill/compare/v1.2.0...v1.2.1) (2022-03-06)## [1.2.0](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2021-10-30)
|
|
6
|
-
|
|
7
|
-
### Bug Fixes
|
|
8
|
-
|
|
9
|
-
- fixup lint and build ([94be3cd](https://github.com/nilzona/path2d-polyfill/commit/94be3cd38a58f83efc403a58380ff3c23b4f18bf))
|
|
10
|
-
- sync version in package.json with tags ([e12e852](https://github.com/nilzona/path2d-polyfill/commit/e12e852ffb13034fa13efd5112c59b6b13a46013))
|
|
11
|
-
|
|
12
|
-
### [1.1.2](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2021-05-04)
|
|
13
|
-
|
|
14
|
-
### [1.1.1](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2020-11-16)
|
|
15
|
-
|
|
16
|
-
### Features
|
|
17
|
-
|
|
18
|
-
- support for isPointInPath ([605f5d1](https://github.com/nilzona/path2d-polyfill/commit/605f5d188812e472575ccbaba351b9bbc58d3677))
|
|
19
|
-
|
|
20
|
-
### Bug Fixes
|
|
21
|
-
|
|
22
|
-
- documentation readme ([5a0abaa](https://github.com/nilzona/path2d-polyfill/commit/5a0abaab6976f10c57ac83e6f6481ed425ac940e))
|
|
23
|
-
|
|
24
|
-
### [1.0.2](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2020-08-27)
|
|
25
|
-
|
|
26
|
-
### Bug Fixes
|
|
27
|
-
|
|
28
|
-
- remove unused css rule ([54e5174](https://github.com/nilzona/path2d-polyfill/commit/54e5174c64f6e84ef891d8830c828efc45c73b93))
|
|
29
|
-
- update badge in README.md ([483afe2](https://github.com/nilzona/path2d-polyfill/commit/483afe2b3440083bbb0c3dae74510959055d0f86))
|
|
30
|
-
|
|
31
|
-
## [1.0.0](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2020-05-27)
|
|
32
|
-
|
|
33
|
-
### [0.4.2](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2019-08-28)
|
|
34
|
-
|
|
35
|
-
### [0.4.1](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2019-04-15)
|
|
36
|
-
|
|
37
|
-
## [0.4.0](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2019-04-12)
|
|
38
|
-
|
|
39
|
-
### Features
|
|
40
|
-
|
|
41
|
-
- support ellipse commands ([#7](https://github.com/nilzona/path2d-polyfill/issues/7)) ([02af6d5](https://github.com/nilzona/path2d-polyfill/commit/02af6d55365b8ef70b8eecad88b913e71ae191b2))
|
|
42
|
-
|
|
43
|
-
### Bug Fixes
|
|
44
|
-
|
|
45
|
-
- move current position when a path is closed ([#9](https://github.com/nilzona/path2d-polyfill/issues/9)) ([ff6d2f7](https://github.com/nilzona/path2d-polyfill/commit/ff6d2f770f9895be2ac2e947697b8f76e488cb37))
|
|
46
|
-
|
|
47
|
-
### [0.3.1](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-09-26)
|
|
48
|
-
|
|
49
|
-
### Bug Fixes
|
|
50
|
-
|
|
51
|
-
- better checks if polyfill is needed ([bd65468](https://github.com/nilzona/path2d-polyfill/commit/bd654681662530d19a0958db22c5990424fb77f2))
|
|
52
|
-
|
|
53
|
-
## [0.3.0](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-09-25)
|
|
54
|
-
|
|
55
|
-
### [0.2.2](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-09-04)
|
|
56
|
-
|
|
57
|
-
### [0.2.1](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-06-05)
|
|
58
|
-
|
|
59
|
-
## [0.2.0](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-06-04)
|
|
60
|
-
|
|
61
|
-
### [0.1.3](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-05-22)
|
|
62
|
-
|
|
63
|
-
### Bug Fixes
|
|
64
|
-
|
|
65
|
-
- Avoid reference to global window ([9d3e742](https://github.com/nilzona/path2d-polyfill/commit/9d3e74241eb0652afe22d34523f10f3a3837e179))
|
|
66
|
-
- Remove wrong removeChild call ([123db85](https://github.com/nilzona/path2d-polyfill/commit/123db8571ff8b1b6c2fa917b513c74f8215acc37))
|
|
67
|
-
- Update README.md ([bcb01e1](https://github.com/nilzona/path2d-polyfill/commit/bcb01e153add2dccf95adaced13646e871086a3a))
|
|
68
|
-
|
|
69
|
-
### [0.1.1](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-05-18)
|
|
70
|
-
|
|
71
|
-
## [0.1.0](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-05-18)
|
|
72
|
-
|
|
73
|
-
### Features
|
|
74
|
-
|
|
75
|
-
- Added examples ([261165c](https://github.com/nilzona/path2d-polyfill/commit/261165cfb0ea3a9910624f719a34a3596f1791d0))
|
|
76
|
-
- First version of Path2D polyfill ([a660f19](https://github.com/nilzona/path2d-polyfill/commit/a660f194f416785a40d8d7f5ad451bb54cec15c3))
|
|
77
|
-
- Implement addPath ([72d4228](https://github.com/nilzona/path2d-polyfill/commit/72d4228bd6c4dda64fa957ab80e49bd7c7677d8f))
|