path2d-polyfill 2.0.1 → 2.1.1
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 +4 -58
- package/dist/path2d-polyfill.min.js +1 -1
- package/package.json +56 -65
- package/CHANGELOG.md +0 -107
- package/dist/path2d-node.cjs +0 -596
- package/dist/path2d-node.mjs +0 -591
- package/dist/path2d-polyfill.dev.js +0 -597
- package/dist/path2d-polyfill.esm.js +0 -592
package/README.md
CHANGED
|
@@ -12,18 +12,6 @@ Add this script tag to your page to enable the feature.
|
|
|
12
12
|
<script lang="javascript" src="https://cdn.jsdelivr.net/npm/path2d-polyfill/dist/path2d-polyfill.min.js"></script>
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
or install from npm
|
|
16
|
-
|
|
17
|
-
```shell
|
|
18
|
-
npm install --save path2d-polyfill
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
and import with module bundler e.g. webpack _before_ using the feature
|
|
22
|
-
|
|
23
|
-
```javascript
|
|
24
|
-
import "path2d-polyfill";
|
|
25
|
-
```
|
|
26
|
-
|
|
27
15
|
This will polyfill the browser's window object with Path2D features and it will also polyfill roundRect if they are missing in both CanvasRenderingContexst and Path2D.
|
|
28
16
|
|
|
29
17
|
Example of usage
|
|
@@ -33,48 +21,6 @@ ctx.fill(new Path2D("M 80 80 A 45 45 0 0 0 125 125 L 125 80 Z"));
|
|
|
33
21
|
ctx.stroke(new Path2D("M 80 80 A 45 45 0 0 0 125 125 L 125 80 Z"));
|
|
34
22
|
```
|
|
35
23
|
|
|
36
|
-
## Usage in a node environment
|
|
37
|
-
|
|
38
|
-
It is possible to use this library in a node environment as well. The package exports a few functions that can be used:
|
|
39
|
-
|
|
40
|
-
- `Path2D` - class to create Path2D objects used by the polyfill methods
|
|
41
|
-
- `polyfillPath2D` - function that adds Path2D to a "window like" object and polyfills CanvasRenderingContext2D to use Path2D
|
|
42
|
-
- `polyfillRoundRect` - polyfills roundRect function on Path2D and CanvasRenderingContext2D (missing in firefox)
|
|
43
|
-
- `parsePath` - function for parsing an SVG path string into canvas commands
|
|
44
|
-
|
|
45
|
-
use any of these functions like:
|
|
46
|
-
|
|
47
|
-
```js
|
|
48
|
-
const { polyfillRoundRect } = require "path2d-polyfill";
|
|
49
|
-
|
|
50
|
-
const windowlike = { CanvasRenderingContext2D, Path2D };
|
|
51
|
-
|
|
52
|
-
polyfillRoundRect(windowLike);
|
|
53
|
-
// roundRect functions has now been added if they were missing
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### usage with node-canvas
|
|
57
|
-
|
|
58
|
-
To get Path2D features with the [node-canvas library](https://github.com/Automattic/node-canvas) use the following pattern:
|
|
59
|
-
|
|
60
|
-
```js
|
|
61
|
-
const { createCanvas, CanvasRenderingContext2D } = require("canvas");
|
|
62
|
-
const { polyfillPath2D } = require("path2d-polyfill/path2d");
|
|
63
|
-
|
|
64
|
-
global.CanvasRenderingContext2D = CanvasRenderingContext2D;
|
|
65
|
-
polyfillPath2D(global);
|
|
66
|
-
// Path2D has now been added to global object
|
|
67
|
-
|
|
68
|
-
const canvas = createCanvas(200, 200);
|
|
69
|
-
const ctx = canvas.getContext("2d");
|
|
70
|
-
|
|
71
|
-
const p = new Path2D("M10 10 l 20 0 l 0 20 Z");
|
|
72
|
-
ctx.fillStyle = "green";
|
|
73
|
-
ctx.fill(p);
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
A working example of a node express server that serves an image drawn with canvas can be seen [here](https://gist.github.com/nilzona/e611c99336d8ea1f645bd391a459c24f)
|
|
77
|
-
|
|
78
24
|
## Support table
|
|
79
25
|
|
|
80
26
|
| Method | Supported |
|
|
@@ -93,14 +39,14 @@ A working example of a node express server that serves an image drawn with canva
|
|
|
93
39
|
|
|
94
40
|
## See it in action
|
|
95
41
|
|
|
96
|
-
Clone
|
|
42
|
+
Clone [path2d-polyfill](https://github.com/nilzona/path2d-polyfill)
|
|
97
43
|
|
|
98
44
|
```shell
|
|
99
|
-
|
|
100
|
-
|
|
45
|
+
pnpm install
|
|
46
|
+
pnpm dev
|
|
101
47
|
```
|
|
102
48
|
|
|
103
|
-
open <http://localhost:
|
|
49
|
+
open <http://localhost:5173/> to see the example page.
|
|
104
50
|
|
|
105
51
|
## Contributing
|
|
106
52
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(){"use strict";var M={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},H=/([astvzqmhlc])([^astvzqmhlc]*)/gi,V=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Z(a){const r=a.match(V);return r?r.map(Number):[]}function U(a){const r=[],t=String(a).trim();return t[0]!=="M"&&t[0]!=="m"||t.replace(H,(n,l,o)=>{const s=Z(o);let i=l.toLowerCase(),h=l;if(i==="m"&&s.length>2&&(r.push([h,...s.splice(0,2)]),i="l",h=h==="m"?"l":"L"),s.length<M[i])return"";for(r.push([h,...s.splice(0,M[i])]);s.length>=M[i]&&s.length&&M[i];)r.push([h,...s.splice(0,M[i])]);return""}),r}function N(a,r){const t=a.x*Math.cos(r)-a.y*Math.sin(r),n=a.y*Math.cos(r)+a.x*Math.sin(r);a.x=t,a.y=n}function j(a,r,t){a.x+=r,a.y+=t}function S(a,r){a.x*=r,a.y*=r}var C=class L{constructor(r){this.commands=[],r&&r instanceof L?this.commands.push(...r.commands):r&&(this.commands=U(r))}addPath(r){r&&r instanceof L&&this.commands.push(...r.commands)}moveTo(r,t){this.commands.push(["M",r,t])}lineTo(r,t){this.commands.push(["L",r,t])}arc(r,t,n,l,o,s){this.commands.push(["AC",r,t,n,l,o,!!s])}arcTo(r,t,n,l,o){this.commands.push(["AT",r,t,n,l,o])}ellipse(r,t,n,l,o,s,i,h){this.commands.push(["E",r,t,n,l,o,s,i,!!h])}closePath(){this.commands.push(["Z"])}bezierCurveTo(r,t,n,l,o,s){this.commands.push(["C",r,t,n,l,o,s])}quadraticCurveTo(r,t,n,l){this.commands.push(["Q",r,t,n,l])}rect(r,t,n,l){this.commands.push(["R",r,t,n,l])}roundRect(r,t,n,l,o){typeof o>"u"?this.commands.push(["RR",r,t,n,l,0]):this.commands.push(["RR",r,t,n,l,o])}};function I(a,r){let t=0,n=0,l,o,s,i,h,u,P,v,F,k,Q,B,q,f,p,A,z,m,R,E,D,T=null,b=null,d=null,y=null,w=null,g=null;a.beginPath();for(let c=0;c<r.length;++c){m=r[c][0],m!=="S"&&m!=="s"&&m!=="C"&&m!=="c"&&(T=null,b=null),m!=="T"&&m!=="t"&&m!=="Q"&&m!=="q"&&(d=null,y=null);let e;switch(m){case"m":case"M":e=r[c],m==="m"?(t+=e[1],n+=e[2]):(t=e[1],n=e[2]),(m==="M"||!w)&&(w={x:t,y:n}),a.moveTo(t,n);break;case"l":e=r[c],t+=e[1],n+=e[2],a.lineTo(t,n);break;case"L":e=r[c],t=e[1],n=e[2],a.lineTo(t,n);break;case"H":e=r[c],t=e[1],a.lineTo(t,n);break;case"h":e=r[c],t+=e[1],a.lineTo(t,n);break;case"V":e=r[c],n=e[1],a.lineTo(t,n);break;case"v":e=r[c],n+=e[1],a.lineTo(t,n);break;case"a":case"A":if(e=r[c],g===null)throw new Error("This should never happen");m==="a"?(t+=e[6],n+=e[7]):(t=e[6],n=e[7]),f=e[1],p=e[2],P=e[3]*Math.PI/180,s=!!e[4],i=!!e[5],h={x:t,y:n},u={x:(g.x-h.x)/2,y:(g.y-h.y)/2},N(u,-P),v=u.x*u.x/(f*f)+u.y*u.y/(p*p),v>1&&(v=Math.sqrt(v),f*=v,p*=v),R={x:f*u.y/p,y:-(p*u.x)/f},F=f*f*p*p,k=f*f*u.y*u.y+p*p*u.x*u.x,i!==s?S(R,Math.sqrt((F-k)/k)||0):S(R,-Math.sqrt((F-k)/k)||0),o=Math.atan2((u.y-R.y)/p,(u.x-R.x)/f),l=Math.atan2(-(u.y+R.y)/p,-(u.x+R.x)/f),N(R,P),j(R,(h.x+g.x)/2,(h.y+g.y)/2),a.save(),a.translate(R.x,R.y),a.rotate(P),a.scale(f,p),a.arc(0,0,1,o,l,!i),a.restore();break;case"C":e=r[c],T=e[3],b=e[4],t=e[5],n=e[6],a.bezierCurveTo(e[1],e[2],T,b,t,n);break;case"c":e=r[c],a.bezierCurveTo(e[1]+t,e[2]+n,e[3]+t,e[4]+n,e[5]+t,e[6]+n),T=e[3]+t,b=e[4]+n,t+=e[5],n+=e[6];break;case"S":e=r[c],(T===null||b===null)&&(T=t,b=n),a.bezierCurveTo(2*t-T,2*n-b,e[1],e[2],e[3],e[4]),T=e[1],b=e[2],t=e[3],n=e[4];break;case"s":e=r[c],(T===null||b===null)&&(T=t,b=n),a.bezierCurveTo(2*t-T,2*n-b,e[1]+t,e[2]+n,e[3]+t,e[4]+n),T=e[1]+t,b=e[2]+n,t+=e[3],n+=e[4];break;case"Q":e=r[c],d=e[1],y=e[2],t=e[3],n=e[4],a.quadraticCurveTo(d,y,t,n);break;case"q":e=r[c],d=e[1]+t,y=e[2]+n,t+=e[3],n+=e[4],a.quadraticCurveTo(d,y,t,n);break;case"T":e=r[c],(d===null||y===null)&&(d=t,y=n),d=2*t-d,y=2*n-y,t=e[1],n=e[2],a.quadraticCurveTo(d,y,t,n);break;case"t":e=r[c],(d===null||y===null)&&(d=t,y=n),d=2*t-d,y=2*n-y,t+=e[1],n+=e[2],a.quadraticCurveTo(d,y,t,n);break;case"z":case"Z":w&&(t=w.x,n=w.y),w=null,a.closePath();break;case"AC":e=r[c],t=e[1],n=e[2],q=e[3],o=e[4],l=e[5],E=e[6],a.arc(t,n,q,o,l,E);break;case"AT":e=r[c],Q=e[1],B=e[2],t=e[3],n=e[4],q=e[5],a.arcTo(Q,B,t,n,q);break;case"E":e=r[c],t=e[1],n=e[2],f=e[3],p=e[4],P=e[5],o=e[6],l=e[7],E=e[8],a.save(),a.translate(t,n),a.rotate(P),a.scale(f,p),a.arc(0,0,1,o,l,E),a.restore();break;case"R":e=r[c],t=e[1],n=e[2],A=e[3],z=e[4],w={x:t,y:n},a.rect(t,n,A,z);break;case"RR":e=r[c],t=e[1],n=e[2],A=e[3],z=e[4],D=e[5],w={x:t,y:n},a.roundRect(t,n,A,z,D);break;default:throw new Error("Invalid path command: ".concat(m))}g?(g.x=t,g.y=n):g={x:t,y:n}}}function G(a,r,t,n){let l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(typeof l=="number"&&(l=[l]),Array.isArray(l)){if(l.length===0||l.length>4)throw new RangeError("Failed to execute 'roundRect' on '".concat(this.constructor.name,"': ").concat(l.length," radii provided. Between one and four radii are necessary."));l.forEach(P=>{if(P<0)throw new RangeError("Failed to execute 'roundRect' on '".concat(this.constructor.name,"': Radius value ").concat(P," is negative."))})}else return;if(l.length===1&&l[0]===0){this.rect(a,r,t,n);return}const o=Math.min(t,n)/2,s=Math.min(o,l[0]);let i=s,h=s,u=s;l.length===2&&(i=Math.min(o,l[1]),u=i),l.length===3&&(i=Math.min(o,l[1]),u=i,h=Math.min(o,l[2])),l.length===4&&(i=Math.min(o,l[1]),h=Math.min(o,l[2]),u=Math.min(o,l[3])),this.moveTo(a,r+n-u),this.arcTo(a,r,a+s,r,s),this.arcTo(a+t,r,a+t,r+i,i),this.arcTo(a+t,r+n,a+t-h,r+n,h),this.arcTo(a,r+n,a,r+n-u,u),this.moveTo(a,r)}function J(a){if(!a)return;const r=a.prototype.fill,t=a.prototype.stroke,n=a.prototype.isPointInPath;a.prototype.fill=function(){if((arguments.length<=0?void 0:arguments[0])instanceof C){const s=arguments.length<=0?void 0:arguments[0],i=(arguments.length<=1?void 0:arguments[1])||"nonzero";return I(this,s.commands),r.apply(this,[i])}const o=(arguments.length<=0?void 0:arguments[0])||"nonzero";return r.apply(this,[o])},a.prototype.stroke=function(o){o&&I(this,o.commands),t.apply(this)},a.prototype.isPointInPath=function(){for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];if(s[0]instanceof C){const h=s[0],u=s[1],P=s[2],v=s[3]||"nonzero";return I(this,h.commands),n.apply(this,[u,P,v])}return n.apply(this,s)}}function K(a){a&&!a.prototype.roundRect&&(a.prototype.roundRect=G)}function O(a){a&&!a.prototype.roundRect&&(a.prototype.roundRect=G)}function W(){window&&(window.CanvasRenderingContext2D&&!window.Path2D&&(window.Path2D=C,J(window.CanvasRenderingContext2D)),O(window.Path2D),K(window.CanvasRenderingContext2D))}W()})();
|
package/package.json
CHANGED
|
@@ -1,81 +1,72 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "path2d-polyfill",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Polyfills Path2D api for canvas rendering",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "rm -rf dist/* && rollup -c",
|
|
7
|
-
"start": "rollup -c -w",
|
|
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",
|
|
13
|
-
"format:check": "prettier --check \"./**\"",
|
|
14
|
-
"format:write": "prettier --write \"./**\"",
|
|
15
|
-
"prepare": "husky install",
|
|
16
|
-
"release": "release-it"
|
|
17
|
-
},
|
|
18
|
-
"main": "dist/path2d-node.cjs",
|
|
19
|
-
"browser": "dist/path2d-polyfill.min.js",
|
|
20
|
-
"exports": {
|
|
21
|
-
"node": {
|
|
22
|
-
"import": "./dist/path2d-node.mjs",
|
|
23
|
-
"require": "./dist/path2d-node.cjs"
|
|
24
|
-
},
|
|
25
|
-
"development": "./dist/path2d-polyfill.dev.js",
|
|
26
|
-
"module": "./dist/path2d-polyfill.esm.js",
|
|
27
|
-
"default": "./dist/path2d-polyfill.min.js"
|
|
28
|
-
},
|
|
29
|
-
"files": [
|
|
30
|
-
"dist"
|
|
31
|
-
],
|
|
32
|
-
"repository": {
|
|
33
|
-
"type": "git",
|
|
34
|
-
"url": "git+https://github.com/nilzona/path2d-polyfill.git"
|
|
35
|
-
},
|
|
36
5
|
"keywords": [
|
|
37
6
|
"Path2D",
|
|
38
7
|
"polyfill",
|
|
39
8
|
"canvas",
|
|
40
9
|
"roundRect"
|
|
41
10
|
],
|
|
42
|
-
"
|
|
43
|
-
"license": "MIT",
|
|
11
|
+
"homepage": "https://github.com/nilzona/path2d-polyfill#readme",
|
|
44
12
|
"bugs": {
|
|
45
13
|
"url": "https://github.com/nilzona/path2d-polyfill/issues"
|
|
46
14
|
},
|
|
47
|
-
"
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/nilzona/path2d-polyfill.git"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": "nilzona",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
"browser": "./dist/path2d-polyfill.min.js"
|
|
24
|
+
},
|
|
25
|
+
"browser": "dist/path2d-polyfill.min.js",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"browserslist": [
|
|
30
|
+
">0.1%",
|
|
31
|
+
"ie >= 11",
|
|
32
|
+
"last 2 versions",
|
|
33
|
+
"not dead"
|
|
34
|
+
],
|
|
35
|
+
"prettier": "@qlik/prettier-config",
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"path2d": "0.1.1"
|
|
38
|
+
},
|
|
48
39
|
"devDependencies": {
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"eslint-config-prettier": "8.6.0",
|
|
63
|
-
"husky": "8.0.2",
|
|
64
|
-
"lint-staged": "13.1.0",
|
|
65
|
-
"mocha": "10.2.0",
|
|
66
|
-
"nyc": "15.1.0",
|
|
67
|
-
"prettier": "2.8.1",
|
|
68
|
-
"release-it": "15.6.0",
|
|
69
|
-
"rollup": "3.9.1",
|
|
70
|
-
"rollup-plugin-livereload": "2.0.5",
|
|
71
|
-
"rollup-plugin-serve": "2.0.2",
|
|
72
|
-
"sinon": "15.0.1",
|
|
73
|
-
"sinon-chai": "3.7.0",
|
|
74
|
-
"ts-mocha": "^10.0.0",
|
|
75
|
-
"typescript": "^4.9.4"
|
|
40
|
+
"@babel/core": "7.24.0",
|
|
41
|
+
"@babel/preset-env": "7.24.0",
|
|
42
|
+
"@qlik/eslint-config": "0.7.13",
|
|
43
|
+
"@qlik/prettier-config": "0.4.11",
|
|
44
|
+
"@qlik/tsconfig": "0.2.4",
|
|
45
|
+
"@rollup/plugin-babel": "6.0.4",
|
|
46
|
+
"@vitest/coverage-v8": "1.4.0",
|
|
47
|
+
"eslint": "8.57.0",
|
|
48
|
+
"jsdom": "24.0.0",
|
|
49
|
+
"prettier": "3.2.5",
|
|
50
|
+
"typescript": "5.4.2",
|
|
51
|
+
"vite": "5.1.6",
|
|
52
|
+
"vitest": "1.4.0"
|
|
76
53
|
},
|
|
77
|
-
"dependencies": {},
|
|
78
54
|
"engines": {
|
|
79
|
-
"node": ">=
|
|
55
|
+
"node": ">=18"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "vite build && cp dist/path2d-polyfill.min.js test/path2d-polyfill.min.js",
|
|
62
|
+
"check-types": "tsc --noEmit",
|
|
63
|
+
"dev": "vite",
|
|
64
|
+
"format:check": "prettier --check '**' --ignore-unknown",
|
|
65
|
+
"format:write": "prettier --write '**' --ignore-unknown",
|
|
66
|
+
"lint": "eslint .",
|
|
67
|
+
"preview": "vite preview",
|
|
68
|
+
"test": "vitest run",
|
|
69
|
+
"test:coverage": "vitest run --coverage",
|
|
70
|
+
"test:watch": "vitest"
|
|
80
71
|
}
|
|
81
|
-
}
|
|
72
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
## [2.0.1](https://github.com/nilzona/path2d-polyfill/compare/v2.0.0...v2.0.1) (2023-01-22)
|
|
2
|
-
|
|
3
|
-
### Bug Fixes
|
|
4
|
-
|
|
5
|
-
- add browser and main fields in package.json ([82e8522](https://github.com/nilzona/path2d-polyfill/commit/82e8522b17c750cc06dbade1e7022ffea312fd5d))
|
|
6
|
-
|
|
7
|
-
## [2.0.0](https://github.com/nilzona/path2d-polyfill/compare/v1.2.3...v2.0.0) (2023-01-22)
|
|
8
|
-
|
|
9
|
-
### ⚠ BREAKING CHANGES
|
|
10
|
-
|
|
11
|
-
- target build now has the name `dist/path2d-polyfill.min.js`
|
|
12
|
-
|
|
13
|
-
- chore: null Path2D in example index.html
|
|
14
|
-
|
|
15
|
-
- Update tsconfig.json
|
|
16
|
-
|
|
17
|
-
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
|
|
18
|
-
|
|
19
|
-
- chore: build for node and browsers
|
|
20
|
-
|
|
21
|
-
- docs: update doc example
|
|
22
|
-
|
|
23
|
-
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
|
|
24
|
-
|
|
25
|
-
### Features
|
|
26
|
-
|
|
27
|
-
- node support with roundRect polyfill ([#43](https://github.com/nilzona/path2d-polyfill/issues/43)) ([2fffe15](https://github.com/nilzona/path2d-polyfill/commit/2fffe15a76e7adac50beacc0f9587d5b3cc71485))
|
|
28
|
-
|
|
29
|
-
## [1.2.3](https://github.com/nilzona/path2d-polyfill/compare/v1.2.2...v1.2.3) (2022-10-11)
|
|
30
|
-
|
|
31
|
-
## [1.2.2](https://github.com/nilzona/path2d-polyfill/compare/v1.2.1...v1.2.2) (2022-07-23)
|
|
32
|
-
|
|
33
|
-
undefined
|
|
34
|
-
|
|
35
|
-
### [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)
|
|
36
|
-
|
|
37
|
-
### Bug Fixes
|
|
38
|
-
|
|
39
|
-
- fixup lint and build ([94be3cd](https://github.com/nilzona/path2d-polyfill/commit/94be3cd38a58f83efc403a58380ff3c23b4f18bf))
|
|
40
|
-
- sync version in package.json with tags ([e12e852](https://github.com/nilzona/path2d-polyfill/commit/e12e852ffb13034fa13efd5112c59b6b13a46013))
|
|
41
|
-
|
|
42
|
-
### [1.1.2](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2021-05-04)
|
|
43
|
-
|
|
44
|
-
### [1.1.1](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2020-11-16)
|
|
45
|
-
|
|
46
|
-
### Features
|
|
47
|
-
|
|
48
|
-
- support for isPointInPath ([605f5d1](https://github.com/nilzona/path2d-polyfill/commit/605f5d188812e472575ccbaba351b9bbc58d3677))
|
|
49
|
-
|
|
50
|
-
### Bug Fixes
|
|
51
|
-
|
|
52
|
-
- documentation readme ([5a0abaa](https://github.com/nilzona/path2d-polyfill/commit/5a0abaab6976f10c57ac83e6f6481ed425ac940e))
|
|
53
|
-
|
|
54
|
-
### [1.0.2](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2020-08-27)
|
|
55
|
-
|
|
56
|
-
### Bug Fixes
|
|
57
|
-
|
|
58
|
-
- remove unused css rule ([54e5174](https://github.com/nilzona/path2d-polyfill/commit/54e5174c64f6e84ef891d8830c828efc45c73b93))
|
|
59
|
-
- update badge in README.md ([483afe2](https://github.com/nilzona/path2d-polyfill/commit/483afe2b3440083bbb0c3dae74510959055d0f86))
|
|
60
|
-
|
|
61
|
-
## [1.0.0](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2020-05-27)
|
|
62
|
-
|
|
63
|
-
### [0.4.2](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2019-08-28)
|
|
64
|
-
|
|
65
|
-
### [0.4.1](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2019-04-15)
|
|
66
|
-
|
|
67
|
-
## [0.4.0](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2019-04-12)
|
|
68
|
-
|
|
69
|
-
### Features
|
|
70
|
-
|
|
71
|
-
- support ellipse commands ([#7](https://github.com/nilzona/path2d-polyfill/issues/7)) ([02af6d5](https://github.com/nilzona/path2d-polyfill/commit/02af6d55365b8ef70b8eecad88b913e71ae191b2))
|
|
72
|
-
|
|
73
|
-
### Bug Fixes
|
|
74
|
-
|
|
75
|
-
- 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))
|
|
76
|
-
|
|
77
|
-
### [0.3.1](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-09-26)
|
|
78
|
-
|
|
79
|
-
### Bug Fixes
|
|
80
|
-
|
|
81
|
-
- better checks if polyfill is needed ([bd65468](https://github.com/nilzona/path2d-polyfill/commit/bd654681662530d19a0958db22c5990424fb77f2))
|
|
82
|
-
|
|
83
|
-
## [0.3.0](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-09-25)
|
|
84
|
-
|
|
85
|
-
### [0.2.2](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-09-04)
|
|
86
|
-
|
|
87
|
-
### [0.2.1](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-06-05)
|
|
88
|
-
|
|
89
|
-
## [0.2.0](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-06-04)
|
|
90
|
-
|
|
91
|
-
### [0.1.3](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-05-22)
|
|
92
|
-
|
|
93
|
-
### Bug Fixes
|
|
94
|
-
|
|
95
|
-
- Avoid reference to global window ([9d3e742](https://github.com/nilzona/path2d-polyfill/commit/9d3e74241eb0652afe22d34523f10f3a3837e179))
|
|
96
|
-
- Remove wrong removeChild call ([123db85](https://github.com/nilzona/path2d-polyfill/commit/123db8571ff8b1b6c2fa917b513c74f8215acc37))
|
|
97
|
-
- Update README.md ([bcb01e1](https://github.com/nilzona/path2d-polyfill/commit/bcb01e153add2dccf95adaced13646e871086a3a))
|
|
98
|
-
|
|
99
|
-
### [0.1.1](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-05-18)
|
|
100
|
-
|
|
101
|
-
## [0.1.0](https://github.com/nilzona/path2d-polyfill/compare/v1.1.8...v1.2.0) (2018-05-18)
|
|
102
|
-
|
|
103
|
-
### Features
|
|
104
|
-
|
|
105
|
-
- Added examples ([261165c](https://github.com/nilzona/path2d-polyfill/commit/261165cfb0ea3a9910624f719a34a3596f1791d0))
|
|
106
|
-
- First version of Path2D polyfill ([a660f19](https://github.com/nilzona/path2d-polyfill/commit/a660f194f416785a40d8d7f5ad451bb54cec15c3))
|
|
107
|
-
- Implement addPath ([72d4228](https://github.com/nilzona/path2d-polyfill/commit/72d4228bd6c4dda64fa957ab80e49bd7c7677d8f))
|