From 1ab5658372bbb4a0f718e7d87ba8529d12d74656 Mon Sep 17 00:00:00 2001 From: zenozeng Date: Mon, 3 May 2021 13:18:57 +0000 Subject: [PATCH] feat: init transform --- canvas2svg.js | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/canvas2svg.js b/canvas2svg.js index f71d359..e7c2ec7 100644 --- a/canvas2svg.js +++ b/canvas2svg.js @@ -1191,6 +1191,31 @@ } }; + /** + * SetTransform changes the current transformation matrix to + * the matrix given by the arguments as described below. + */ + ctx.prototype.setTransform = function (a, b, c, d, e, f) { + + }; + + /** + * GetTransform Returns a copy of the current transformation matrix, + * as a newly created DOMMAtrix Object + * + * @returns A DOMMatrix Object + */ + ctx.prototype.getTransform = function () { + + }; + + /** + * ResetTransform changes the current transformation matrix to the identity matrix + */ + ctx.prototype.resetTransform = function () { + + }; + /** * Not yet implemented */ @@ -1199,7 +1224,6 @@ ctx.prototype.getImageData = function () {}; ctx.prototype.putImageData = function () {}; ctx.prototype.globalCompositeOperation = function () {}; - ctx.prototype.setTransform = function () {}; //add options for alternative namespace if (typeof window === "object") {