mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
191 B
V
11 lines
191 B
V
![]() |
// DOM API wrapper for JS backend
|
||
|
module jsdom
|
||
|
|
||
|
pub fn get_html_canvas_element(elem IElement) ?HTMLCanvasElement {
|
||
|
if elem is HTMLCanvasElement {
|
||
|
return *elem
|
||
|
} else {
|
||
|
return none
|
||
|
}
|
||
|
}
|