Web API package for use when compling Go to WASM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

24 lines
616 B

// Code generated DO NOT EDIT
// domrectlist.go
package dom
import "syscall/js"
type DOMRectListIFace interface {
Item(args ...interface{}) DOMRect
GetLength() float64
}
type DOMRectList struct {
Value
}
func jsValueToDOMRectList(val js.Value) DOMRectList { return DOMRectList{Value: Value{Value: val}} }
func (v Value) AsDOMRectList() DOMRectList { return DOMRectList{Value: v} }
func (d DOMRectList) Item(args ...interface{}) DOMRect {
val := d.Call("item", args...)
return jsValueToDOMRect(val.JSValue())
}
func (d DOMRectList) GetLength() float64 {
val := d.Get("length")
return val.Float()
}