All notable changes to this project will (hopefully) be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Update to PureScript 0.15
- Made
CanvasColor
a subclass ofCanvasStyle
.
- Added
toStyleRepDefault
.
-
Removed
type CanvasAction = CanvasActionM Unit
type alias, renamedCanvasActionM
toCanvasAction
. -
Removed all transformation-related functions from
Graphics.CanvasAction
. -
Removed all path-related functions from
Graphics.CanvasAction
. -
Unexported all
withCtx*
andwithCanvas*
functions. -
Renamed the
CanvasStyleRep
class toCanvasStyle
and theCanvasStyle
type toCanvasStyleRep
. -
Renamed the
CanvasColorRep
class toCanvasColor
and theCanvasColor
type toCanvasColorRep
. -
Started using
HTMLCanvasElement
fromweb-html
instead ofCanvasElement
fromcanvas
. -
The type signature of
withMidPos
changed to take a function of type(Vector2 Number → m a)
instead of(∀ p. ToPos Number p ⇒ p → m a)
. -
Removed
dimensionsToSize
(obsoleted bypolymorphic-vectors
v3.0.0). -
Made changes in
Graphics.CanvasAction.Run
to fit with changes inrun
v4.0.0. -
Stopped using the
canvas ∷ CanvasAction
field and started usingctx ∷ Reader Context2D
andeffect ∷ Effect
, addingaff ∷ Aff
forCanvasAff
. -
Changed
Graphics.CanvasAction.Path
to use aPathAction
monad instead of thePathM
free monad. Construct paths from the primitives, get aPath2D
usingrunPath
, and draw that to the canvas usingfill
orstroke
, or create a clipping path withclip
. -
Changed
Graphics.CanvasAction.Transformation
to use aDOMMatrix
monoid which can be built up from primitives, and have its transformations applied using for exampletransformedBy
,transformPoint
, orsetTransform
.
- Added
CanvasAff
. - Added
MonadCanvasAff
typeclass. - Added
Graphics.CanvasAction.CSSOM
, featuringdevicePixelRatio
and CSS media queries.