func (pp *pixelPosition) fromMouse(event js.Value) pixelPosition {
	pp.x = event.Get("offsetX").Int()
	pp.y = event.Get("offsetY").Int()
	return *pp
}
// fromMouse updates the pixelPosition for the mouse event and returns it
fromMouse updates the pixelPosition for the mouse event and returns it
// fromMouse updates the pixelPosition for the mouse event and returns it
func (pp *pixelPosition) fromMouse(event js.Value) pixelPosition {
	pp.x = event.Get("offsetX").Int()
	pp.y = event.Get("offsetY").Int()
	return *pp
}
func ( pp * pixelPosition ) fromMouse ( event js . Value ) pixelPosition { pp . x = event . Get ( " " ) . Int ( ) pp . y = event . Get ( " " ) . Int ( ) return * pp }
fromMouse updates the pixelPosition for the mouse event and returns it
fromMouse updates the pixelPosition for the mouse event and returns it