Skip to content

Polyfill for CanvasRenderingContext2D.prototype.currentTransform

License

Notifications You must be signed in to change notification settings

Wicklets/canvas-currentTransform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Canvas-currentTransform

HTML canvas element's CanvasRenderingContext2D has a property currentTransform defined. This represents a transformation matrix as a SVGMatrix object.

There seems to be no browser implementation activity at current.

Having this property natively supported would be of great help, as we can modify the transformation matrix by setTransform, transform, translate, ... methods, but we are not able to access the current transform matrix element values.

This polyfill uses the experimental mozCurrentTransform or webkitCurrentTransform properties if available or implements a lightweight transformation matrix stack otherwise.

About

Polyfill for CanvasRenderingContext2D.prototype.currentTransform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.5%
  • HTML 35.5%