Skip to content

Commit

Permalink
fix: update deps (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech authored Nov 16, 2023
1 parent 315462e commit e5e0595
Show file tree
Hide file tree
Showing 3 changed files with 2,905 additions and 2,428 deletions.
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,35 @@
"docs"
],
"devDependencies": {
"@rollup/plugin-typescript": "^9.0.1",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@rollup/plugin-typescript": "^11.1.5",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.6",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@types/jest": "^29.1.2",
"@types/node": "^18.8.4",
"@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.40.0",
"@semantic-release/github": "^9.2.3",
"@semantic-release/npm": "^11.0.1",
"@semantic-release/release-notes-generator": "^12.1.0",
"@types/jest": "^29.5.8",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"cp-cli": "^2.0.0",
"del": "^7.0.0",
"del-cli": "^5.0.0",
"eslint": "^8.25.0",
"eslint-config-prettier": "^8.5.0",
"husky": "^8.0.1",
"jest": "^29.1.2",
"jest-canvas-mock": "^2.4.0",
"jest-environment-jsdom": "^29.1.2",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"rollup": "^3.0.0",
"del": "^7.1.0",
"del-cli": "^5.1.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"rollup": "^4.4.1",
"rollup-plugin-terser": "^7.0.2",
"semantic-release": "^19.0.5",
"serve": "^14.0.1",
"ts-jest": "^29.0.3",
"tslib": "^2.4.0",
"typescript": "~4.8.4"
"semantic-release": "^22.0.7",
"serve": "^14.2.1",
"ts-jest": "^29.1.1",
"tslib": "^2.6.2",
"typescript": "~5.2.2"
},
"lint-staged": {
"*.ts": "prettier --write"
Expand Down
9 changes: 6 additions & 3 deletions src/signature_pad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ export default class SignaturePad extends SignatureEventTarget {
private _strokeMoveUpdate: (event: SignatureEvent) => void;
/* tslint:enable: variable-name */

constructor(private canvas: HTMLCanvasElement, options: Options = {}) {
constructor(
private canvas: HTMLCanvasElement,
options: Options = {},
) {
super();
this.velocityFilterWeight = options.velocityFilterWeight || 0.7;
this.minWidth = options.minWidth || 0.5;
Expand Down Expand Up @@ -374,8 +377,8 @@ export default class SignaturePad extends SignatureEventTarget {
(event as PointerEvent).pressure !== undefined
? (event as PointerEvent).pressure
: (event as Touch).force !== undefined
? (event as Touch).force
: 0;
? (event as Touch).force
: 0;

const point = this._createPoint(x, y, pressure);
const lastPointGroup = this._data[this._data.length - 1];
Expand Down
Loading

0 comments on commit e5e0595

Please sign in to comment.