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.
1 parent e2f47cd commit 7ea2184Copy full SHA for 7ea2184
src/Graphics/Canvas.purs
@@ -8,6 +8,13 @@ foreign import data CanvasElement :: *
8
9
foreign import data Context2D :: *
10
11
+foreign import getCanvasElementById
12
+ "function getCanvasElementById(id) {\
13
+ \ return function() {\
14
+ \ return document.getElementById(id);\
15
+ \ };\
16
+ \}" :: forall eff. String -> Eff (canvas :: Canvas | eff) CanvasElement
17
+
18
foreign import getContext2D
19
"function getContext2D(c) {\
20
\ return function() {\
0 commit comments