Skip to content

Commit

Permalink
fix: resolved infinite recursion in resetTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet authored and favna committed Jun 3, 2022
1 parent fad3d6e commit 352a24e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"editor.detectIndentation": false,
"files.eol": "\n",
"deno.enable": false,
"files.associations": {
"main.ts.template": "typescript"
},
"editor.tokenColorCustomizations": {
"[Monokai Night]": {
"textMateRules": [
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,8 @@ export class Canvas {
* @see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/resetTransform
*/
public resetTransform(): this {
return this.resetTransform();
this.context.resetTransform();
return this;
}

/**
Expand Down

0 comments on commit 352a24e

Please sign in to comment.