1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/jsdom/dom.v

11 lines
191 B
V
Raw Normal View History

2021-10-27 23:18:09 +03:00
// 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
}
}