We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10ef11a + 3aa2c93 commit 4de1b8bCopy full SHA for 4de1b8b
src/Graphics/Canvas.purs
@@ -69,6 +69,13 @@ getCanvasDimensions ce = do
69
setCanvasDimensions :: forall eff. Dimensions -> CanvasElement -> Eff (canvas :: Canvas | eff) CanvasElement
70
setCanvasDimensions d ce = setCanvasHeight d.height ce >>= setCanvasWidth d.width
71
72
+foreign import canvasToDataURL
73
+ "function canvasToDataURL(canvas) {\
74
+ \ return function(){\
75
+ \ return canvas.toDataURL();\
76
+ \ };\
77
+ \};" :: forall eff. CanvasElement -> Eff (canvas :: Canvas | eff) String
78
+
79
-- |
80
-- Context Properties
81
--
0 commit comments