Is there a way to get the current transformation matrix for a canvas? There is a context.setTransform() function, but there does not seem to be a getTransform() equivalent as far as I can tell.

More specifically, I want to get the current scale and translation elements of the matrix. Google has been very unhelpful with this.

Edit
Report