Module
Graphics.CanvasAction.Transformation
- Package
- purescript-canvas-action
- Repository
- artemisSystem/purescript-canvas-action
#toRecord Source
toRecord :: DOMMatrix -> DOMMatrixRecord#getTransform Source
getTransform :: forall m. MonadCanvasAction m => m DOMMatrixGets the current transformation matrix
#setTransform Source
setTransform :: forall m. MonadCanvasAction m => DOMMatrix -> m UnitSets the transformation matrix to the given DOMMatrix
#resetTransform Source
resetTransform :: forall m. MonadCanvasAction m => m UnitResets the transformation matrix
#transformedBy Source
transformedBy :: forall m a. MonadCanvasAction m => DOMMatrix -> m a -> m aApplies the given transformation, runs the given action, and returns the transformation matrix to its previous state.
#transformedTo Source
transformedTo :: forall m a. MonadCanvasAction m => DOMMatrix -> m a -> m aSets the transformation matrix to the given DOMMatrix, runs the given action, and returns the transformation matrix to its previous state.
#transformPoint Source
transformPoint :: forall p. AsPosEndo Number p => DOMMatrix -> p -> pApplies a tranformation matrix to a point