Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
williamngan committed Dec 8, 2022
1 parent f10f4cc commit 9c50d28
Show file tree
Hide file tree
Showing 72 changed files with 2,184 additions and 2,158 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Get the latest `pts.js` or `pts.min.js` (in [dist](https://github.com/williamnga
```html
<script type="text/javascript" src="path/to/pts.js"></script>
```
Pts is pretty lightweight. Currently at ~90kb minified and 26kb gzipped.
Pts is pretty lightweight. Currently at ~100kb minified and 30kb gzipped.


**Option 2:**
Expand Down Expand Up @@ -62,12 +62,6 @@ If you prefer to generate default typedocs, run this:
typedoc --readme none --out typedocs src --name Pts
```

#### Generate typescript declaration files and minify
```bash
npm run typings
npm run minify
```

---

### Contributing
Expand Down
5 changes: 1 addition & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3939,10 +3939,7 @@ var CanvasForm = class extends VisualForm {
vals.push([t, v]);
}
return (area1, area2) => {
area1 = area1.map((a) => a.abs());
if (area2)
area2.map((a) => a.abs());
let grad = area2 ? this._ctx.createRadialGradient(area1[0][0], area1[0][1], area1[1][0], area2[0][0], area2[0][1], area2[1][0]) : this._ctx.createLinearGradient(area1[0][0], area1[0][1], area1[1][0], area1[1][1]);
let grad = area2 ? this._ctx.createRadialGradient(area1[0][0], area1[0][1], Math.abs(area1[1][0]), area2[0][0], area2[0][1], Math.abs(area2[1][0])) : this._ctx.createLinearGradient(area1[0][0], area1[0][1], area1[1][0], area1[1][1]);
for (let i = 0, len = vals.length; i < len; i++) {
grad.addColorStop(vals[i][0], vals[i][1]);
}
Expand Down
5 changes: 1 addition & 4 deletions dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3870,10 +3870,7 @@ var CanvasForm = class extends VisualForm {
vals.push([t, v]);
}
return (area1, area2) => {
area1 = area1.map((a) => a.abs());
if (area2)
area2.map((a) => a.abs());
let grad = area2 ? this._ctx.createRadialGradient(area1[0][0], area1[0][1], area1[1][0], area2[0][0], area2[0][1], area2[1][0]) : this._ctx.createLinearGradient(area1[0][0], area1[0][1], area1[1][0], area1[1][1]);
let grad = area2 ? this._ctx.createRadialGradient(area1[0][0], area1[0][1], Math.abs(area1[1][0]), area2[0][0], area2[0][1], Math.abs(area2[1][0])) : this._ctx.createLinearGradient(area1[0][0], area1[0][1], area1[1][0], area1[1][1]);
for (let i = 0, len = vals.length; i < len; i++) {
grad.addColorStop(vals[i][0], vals[i][1]);
}
Expand Down
5 changes: 1 addition & 4 deletions dist/pts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3956,10 +3956,7 @@ See https://github.com/williamngan/pts for details. */
vals.push([t, v]);
}
return (area1, area2) => {
area1 = area1.map((a) => a.abs());
if (area2)
area2.map((a) => a.abs());
let grad = area2 ? this._ctx.createRadialGradient(area1[0][0], area1[0][1], area1[1][0], area2[0][0], area2[0][1], area2[1][0]) : this._ctx.createLinearGradient(area1[0][0], area1[0][1], area1[1][0], area1[1][1]);
let grad = area2 ? this._ctx.createRadialGradient(area1[0][0], area1[0][1], Math.abs(area1[1][0]), area2[0][0], area2[0][1], Math.abs(area2[1][0])) : this._ctx.createLinearGradient(area1[0][0], area1[0][1], area1[1][0], area1[1][1]);
for (let i = 0, len = vals.length; i < len; i++) {
grad.addColorStop(vals[i][0], vals[i][1]);
}
Expand Down
6 changes: 3 additions & 3 deletions dist/pts.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pts.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 9c50d28

Please sign in to comment.