File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Notable changes to this project are documented in this file. The format is based
7
7
Breaking changes:
8
8
9
9
New features:
10
+ - Added ` imageSmoothingEnabled ` to toggle the image smoothing of a ` Context2D ` .
10
11
11
12
Bugfixes:
12
13
Original file line number Diff line number Diff line change @@ -593,3 +593,11 @@ export function bezierCurveTo(ctx) {
593
593
} ;
594
594
} ;
595
595
}
596
+
597
+ export function imageSmoothingEnabled ( ctx ) {
598
+ return function ( value ) {
599
+ return function ( ) {
600
+ ctx . imageSmoothingEnabled = value ;
601
+ } ;
602
+ } ;
603
+ }
Original file line number Diff line number Diff line change @@ -750,3 +750,6 @@ type BezierCurve =
750
750
751
751
-- | Draw a cubic Bézier curve.
752
752
foreign import bezierCurveTo :: Context2D -> BezierCurve -> Effect Unit
753
+
754
+ -- | Set the image smoothing enabled flag.
755
+ foreign import imageSmoothingEnabled :: Context2D -> Boolean -> Effect Unit
You can’t perform that action at this time.
0 commit comments