From 5af6598240b0553e371978729bd0db27238cbecd Mon Sep 17 00:00:00 2001 From: zenozeng Date: Mon, 3 May 2021 14:25:09 +0000 Subject: [PATCH] feat: resetTransform --- canvas2svg.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/canvas2svg.js b/canvas2svg.js index e7c2ec7..f70191b 100644 --- a/canvas2svg.js +++ b/canvas2svg.js @@ -1196,7 +1196,6 @@ * the matrix given by the arguments as described below. */ ctx.prototype.setTransform = function (a, b, c, d, e, f) { - }; /** @@ -1210,10 +1209,12 @@ }; /** - * ResetTransform changes the current transformation matrix to the identity matrix + * ResetTransform resets the current transformation matrix to the identity matrix + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/resetTransform */ ctx.prototype.resetTransform = function () { - + this.setTransform(1, 0, 0, 1, 0, 0); }; /**