Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef4e4a8

Browse files
committed
ImageData height and width are Ints.
1 parent beddbc3 commit ef4e4a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Graphics/Canvas.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ foreign import data CanvasElement :: *
118118
foreign import data Context2D :: *
119119

120120
-- | An image data object, used to store raster data outside the canvas.
121-
type ImageData = { width :: Number, height :: Number, data :: Uint8ClampedArray }
121+
type ImageData = { width :: Int, height :: Int, data :: Uint8ClampedArray }
122122

123123
-- | Opaque object for drawing elements and things to the canvas.
124124
foreign import data CanvasImageSource :: *

0 commit comments

Comments
 (0)