Documentation
¶
Index ¶
- type Client
- func (d *Client) DispatchKeyEvent() *DispatchKeyEventRequest
- func (d *Client) DispatchMouseEvent() *DispatchMouseEventRequest
- func (d *Client) DispatchTouchEvent() *DispatchTouchEventRequest
- func (d *Client) EmulateTouchFromMouseEvent() *EmulateTouchFromMouseEventRequest
- func (d *Client) SetIgnoreInputEvents() *SetIgnoreInputEventsRequest
- func (d *Client) SynthesizePinchGesture() *SynthesizePinchGestureRequest
- func (d *Client) SynthesizeScrollGesture() *SynthesizeScrollGestureRequest
- func (d *Client) SynthesizeTapGesture() *SynthesizeTapGestureRequest
- type DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) AutoRepeat(v bool) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) Code(v string) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) Do() error
- func (r *DispatchKeyEventRequest) IsKeypad(v bool) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) IsSystemKey(v bool) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) Key(v string) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) KeyIdentifier(v string) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) Modifiers(v int) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) NativeVirtualKeyCode(v int) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) Text(v string) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) Timestamp(v float64) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) Type(v string) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) UnmodifiedText(v string) *DispatchKeyEventRequest
- func (r *DispatchKeyEventRequest) WindowsVirtualKeyCode(v int) *DispatchKeyEventRequest
- type DispatchMouseEventRequest
- func (r *DispatchMouseEventRequest) Button(v string) *DispatchMouseEventRequest
- func (r *DispatchMouseEventRequest) ClickCount(v int) *DispatchMouseEventRequest
- func (r *DispatchMouseEventRequest) Do() error
- func (r *DispatchMouseEventRequest) Modifiers(v int) *DispatchMouseEventRequest
- func (r *DispatchMouseEventRequest) Timestamp(v float64) *DispatchMouseEventRequest
- func (r *DispatchMouseEventRequest) Type(v string) *DispatchMouseEventRequest
- func (r *DispatchMouseEventRequest) X(v int) *DispatchMouseEventRequest
- func (r *DispatchMouseEventRequest) Y(v int) *DispatchMouseEventRequest
- type DispatchTouchEventRequest
- func (r *DispatchTouchEventRequest) Do() error
- func (r *DispatchTouchEventRequest) Modifiers(v int) *DispatchTouchEventRequest
- func (r *DispatchTouchEventRequest) Timestamp(v float64) *DispatchTouchEventRequest
- func (r *DispatchTouchEventRequest) TouchPoints(v []*TouchPoint) *DispatchTouchEventRequest
- func (r *DispatchTouchEventRequest) Type(v string) *DispatchTouchEventRequest
- type EmulateTouchFromMouseEventRequest
- func (r *EmulateTouchFromMouseEventRequest) Button(v string) *EmulateTouchFromMouseEventRequest
- func (r *EmulateTouchFromMouseEventRequest) ClickCount(v int) *EmulateTouchFromMouseEventRequest
- func (r *EmulateTouchFromMouseEventRequest) DeltaX(v float64) *EmulateTouchFromMouseEventRequest
- func (r *EmulateTouchFromMouseEventRequest) DeltaY(v float64) *EmulateTouchFromMouseEventRequest
- func (r *EmulateTouchFromMouseEventRequest) Do() error
- func (r *EmulateTouchFromMouseEventRequest) Modifiers(v int) *EmulateTouchFromMouseEventRequest
- func (r *EmulateTouchFromMouseEventRequest) Timestamp(v float64) *EmulateTouchFromMouseEventRequest
- func (r *EmulateTouchFromMouseEventRequest) Type(v string) *EmulateTouchFromMouseEventRequest
- func (r *EmulateTouchFromMouseEventRequest) X(v int) *EmulateTouchFromMouseEventRequest
- func (r *EmulateTouchFromMouseEventRequest) Y(v int) *EmulateTouchFromMouseEventRequest
- type GestureSourceType
- type SetIgnoreInputEventsRequest
- type SynthesizePinchGestureRequest
- func (r *SynthesizePinchGestureRequest) Do() error
- func (r *SynthesizePinchGestureRequest) GestureSourceType(v GestureSourceType) *SynthesizePinchGestureRequest
- func (r *SynthesizePinchGestureRequest) RelativeSpeed(v int) *SynthesizePinchGestureRequest
- func (r *SynthesizePinchGestureRequest) ScaleFactor(v float64) *SynthesizePinchGestureRequest
- func (r *SynthesizePinchGestureRequest) X(v int) *SynthesizePinchGestureRequest
- func (r *SynthesizePinchGestureRequest) Y(v int) *SynthesizePinchGestureRequest
- type SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) Do() error
- func (r *SynthesizeScrollGestureRequest) GestureSourceType(v GestureSourceType) *SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) InteractionMarkerName(v string) *SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) PreventFling(v bool) *SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) RepeatCount(v int) *SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) RepeatDelayMs(v int) *SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) Speed(v int) *SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) X(v int) *SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) XDistance(v int) *SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) XOverscroll(v int) *SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) Y(v int) *SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) YDistance(v int) *SynthesizeScrollGestureRequest
- func (r *SynthesizeScrollGestureRequest) YOverscroll(v int) *SynthesizeScrollGestureRequest
- type SynthesizeTapGestureRequest
- func (r *SynthesizeTapGestureRequest) Do() error
- func (r *SynthesizeTapGestureRequest) Duration(v int) *SynthesizeTapGestureRequest
- func (r *SynthesizeTapGestureRequest) GestureSourceType(v GestureSourceType) *SynthesizeTapGestureRequest
- func (r *SynthesizeTapGestureRequest) TapCount(v int) *SynthesizeTapGestureRequest
- func (r *SynthesizeTapGestureRequest) X(v int) *SynthesizeTapGestureRequest
- func (r *SynthesizeTapGestureRequest) Y(v int) *SynthesizeTapGestureRequest
- type TouchPoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) DispatchKeyEvent ¶
func (d *Client) DispatchKeyEvent() *DispatchKeyEventRequest
Dispatches a key event to the page.
func (*Client) DispatchMouseEvent ¶
func (d *Client) DispatchMouseEvent() *DispatchMouseEventRequest
Dispatches a mouse event to the page.
func (*Client) DispatchTouchEvent ¶
func (d *Client) DispatchTouchEvent() *DispatchTouchEventRequest
Dispatches a touch event to the page. (experimental)
func (*Client) EmulateTouchFromMouseEvent ¶
func (d *Client) EmulateTouchFromMouseEvent() *EmulateTouchFromMouseEventRequest
Emulates touch event from the mouse event parameters. (experimental)
func (*Client) SetIgnoreInputEvents ¶
func (d *Client) SetIgnoreInputEvents() *SetIgnoreInputEventsRequest
Ignores input events (useful while auditing page).
func (*Client) SynthesizePinchGesture ¶
func (d *Client) SynthesizePinchGesture() *SynthesizePinchGestureRequest
Synthesizes a pinch gesture over a time period by issuing appropriate touch events. (experimental)
func (*Client) SynthesizeScrollGesture ¶
func (d *Client) SynthesizeScrollGesture() *SynthesizeScrollGestureRequest
Synthesizes a scroll gesture over a time period by issuing appropriate touch events. (experimental)
func (*Client) SynthesizeTapGesture ¶
func (d *Client) SynthesizeTapGesture() *SynthesizeTapGestureRequest
Synthesizes a tap gesture over a time period by issuing appropriate touch events. (experimental)
type DispatchKeyEventRequest ¶
type DispatchKeyEventRequest struct {
// contains filtered or unexported fields
}
func (*DispatchKeyEventRequest) AutoRepeat ¶
func (r *DispatchKeyEventRequest) AutoRepeat(v bool) *DispatchKeyEventRequest
Whether the event was generated from auto repeat (default: false). (optional)
func (*DispatchKeyEventRequest) Code ¶
func (r *DispatchKeyEventRequest) Code(v string) *DispatchKeyEventRequest
Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: ""). (optional)
func (*DispatchKeyEventRequest) Do ¶
func (r *DispatchKeyEventRequest) Do() error
func (*DispatchKeyEventRequest) IsKeypad ¶
func (r *DispatchKeyEventRequest) IsKeypad(v bool) *DispatchKeyEventRequest
Whether the event was generated from the keypad (default: false). (optional)
func (*DispatchKeyEventRequest) IsSystemKey ¶
func (r *DispatchKeyEventRequest) IsSystemKey(v bool) *DispatchKeyEventRequest
Whether the event was a system key event (default: false). (optional)
func (*DispatchKeyEventRequest) Key ¶
func (r *DispatchKeyEventRequest) Key(v string) *DispatchKeyEventRequest
Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: ""). (optional)
func (*DispatchKeyEventRequest) KeyIdentifier ¶
func (r *DispatchKeyEventRequest) KeyIdentifier(v string) *DispatchKeyEventRequest
Unique key identifier (e.g., 'U+0041') (default: ""). (optional)
func (*DispatchKeyEventRequest) Modifiers ¶
func (r *DispatchKeyEventRequest) Modifiers(v int) *DispatchKeyEventRequest
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). (optional)
func (*DispatchKeyEventRequest) NativeVirtualKeyCode ¶
func (r *DispatchKeyEventRequest) NativeVirtualKeyCode(v int) *DispatchKeyEventRequest
Native virtual key code (default: 0). (optional)
func (*DispatchKeyEventRequest) Text ¶
func (r *DispatchKeyEventRequest) Text(v string) *DispatchKeyEventRequest
Text as generated by processing a virtual key code with a keyboard layout. Not needed for for <code>keyUp</code> and <code>rawKeyDown</code> events (default: "") (optional)
func (*DispatchKeyEventRequest) Timestamp ¶
func (r *DispatchKeyEventRequest) Timestamp(v float64) *DispatchKeyEventRequest
Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time). (optional)
func (*DispatchKeyEventRequest) Type ¶
func (r *DispatchKeyEventRequest) Type(v string) *DispatchKeyEventRequest
Type of the key event.
func (*DispatchKeyEventRequest) UnmodifiedText ¶
func (r *DispatchKeyEventRequest) UnmodifiedText(v string) *DispatchKeyEventRequest
Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: ""). (optional)
func (*DispatchKeyEventRequest) WindowsVirtualKeyCode ¶
func (r *DispatchKeyEventRequest) WindowsVirtualKeyCode(v int) *DispatchKeyEventRequest
Windows virtual key code (default: 0). (optional)
type DispatchMouseEventRequest ¶
type DispatchMouseEventRequest struct {
// contains filtered or unexported fields
}
func (*DispatchMouseEventRequest) Button ¶
func (r *DispatchMouseEventRequest) Button(v string) *DispatchMouseEventRequest
Mouse button (default: "none"). (optional)
func (*DispatchMouseEventRequest) ClickCount ¶
func (r *DispatchMouseEventRequest) ClickCount(v int) *DispatchMouseEventRequest
Number of times the mouse button was clicked (default: 0). (optional)
func (*DispatchMouseEventRequest) Do ¶
func (r *DispatchMouseEventRequest) Do() error
func (*DispatchMouseEventRequest) Modifiers ¶
func (r *DispatchMouseEventRequest) Modifiers(v int) *DispatchMouseEventRequest
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). (optional)
func (*DispatchMouseEventRequest) Timestamp ¶
func (r *DispatchMouseEventRequest) Timestamp(v float64) *DispatchMouseEventRequest
Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time). (optional)
func (*DispatchMouseEventRequest) Type ¶
func (r *DispatchMouseEventRequest) Type(v string) *DispatchMouseEventRequest
Type of the mouse event.
func (*DispatchMouseEventRequest) X ¶
func (r *DispatchMouseEventRequest) X(v int) *DispatchMouseEventRequest
X coordinate of the event relative to the main frame's viewport.
func (*DispatchMouseEventRequest) Y ¶
func (r *DispatchMouseEventRequest) Y(v int) *DispatchMouseEventRequest
Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
type DispatchTouchEventRequest ¶
type DispatchTouchEventRequest struct {
// contains filtered or unexported fields
}
func (*DispatchTouchEventRequest) Do ¶
func (r *DispatchTouchEventRequest) Do() error
func (*DispatchTouchEventRequest) Modifiers ¶
func (r *DispatchTouchEventRequest) Modifiers(v int) *DispatchTouchEventRequest
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). (optional)
func (*DispatchTouchEventRequest) Timestamp ¶
func (r *DispatchTouchEventRequest) Timestamp(v float64) *DispatchTouchEventRequest
Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time). (optional)
func (*DispatchTouchEventRequest) TouchPoints ¶
func (r *DispatchTouchEventRequest) TouchPoints(v []*TouchPoint) *DispatchTouchEventRequest
Touch points.
func (*DispatchTouchEventRequest) Type ¶
func (r *DispatchTouchEventRequest) Type(v string) *DispatchTouchEventRequest
Type of the touch event.
type EmulateTouchFromMouseEventRequest ¶
type EmulateTouchFromMouseEventRequest struct {
// contains filtered or unexported fields
}
func (*EmulateTouchFromMouseEventRequest) Button ¶
func (r *EmulateTouchFromMouseEventRequest) Button(v string) *EmulateTouchFromMouseEventRequest
Mouse button.
func (*EmulateTouchFromMouseEventRequest) ClickCount ¶
func (r *EmulateTouchFromMouseEventRequest) ClickCount(v int) *EmulateTouchFromMouseEventRequest
Number of times the mouse button was clicked (default: 0). (optional)
func (*EmulateTouchFromMouseEventRequest) DeltaX ¶
func (r *EmulateTouchFromMouseEventRequest) DeltaX(v float64) *EmulateTouchFromMouseEventRequest
X delta in DIP for mouse wheel event (default: 0). (optional)
func (*EmulateTouchFromMouseEventRequest) DeltaY ¶
func (r *EmulateTouchFromMouseEventRequest) DeltaY(v float64) *EmulateTouchFromMouseEventRequest
Y delta in DIP for mouse wheel event (default: 0). (optional)
func (*EmulateTouchFromMouseEventRequest) Do ¶
func (r *EmulateTouchFromMouseEventRequest) Do() error
func (*EmulateTouchFromMouseEventRequest) Modifiers ¶
func (r *EmulateTouchFromMouseEventRequest) Modifiers(v int) *EmulateTouchFromMouseEventRequest
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). (optional)
func (*EmulateTouchFromMouseEventRequest) Timestamp ¶
func (r *EmulateTouchFromMouseEventRequest) Timestamp(v float64) *EmulateTouchFromMouseEventRequest
Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970.
func (*EmulateTouchFromMouseEventRequest) Type ¶
func (r *EmulateTouchFromMouseEventRequest) Type(v string) *EmulateTouchFromMouseEventRequest
Type of the mouse event.
func (*EmulateTouchFromMouseEventRequest) X ¶
func (r *EmulateTouchFromMouseEventRequest) X(v int) *EmulateTouchFromMouseEventRequest
X coordinate of the mouse pointer in DIP.
func (*EmulateTouchFromMouseEventRequest) Y ¶
func (r *EmulateTouchFromMouseEventRequest) Y(v int) *EmulateTouchFromMouseEventRequest
Y coordinate of the mouse pointer in DIP.
type GestureSourceType ¶
type GestureSourceType string
type SetIgnoreInputEventsRequest ¶
type SetIgnoreInputEventsRequest struct {
// contains filtered or unexported fields
}
func (*SetIgnoreInputEventsRequest) Do ¶
func (r *SetIgnoreInputEventsRequest) Do() error
func (*SetIgnoreInputEventsRequest) Ignore ¶
func (r *SetIgnoreInputEventsRequest) Ignore(v bool) *SetIgnoreInputEventsRequest
Ignores input events processing when set to true.
type SynthesizePinchGestureRequest ¶
type SynthesizePinchGestureRequest struct {
// contains filtered or unexported fields
}
func (*SynthesizePinchGestureRequest) Do ¶
func (r *SynthesizePinchGestureRequest) Do() error
func (*SynthesizePinchGestureRequest) GestureSourceType ¶
func (r *SynthesizePinchGestureRequest) GestureSourceType(v GestureSourceType) *SynthesizePinchGestureRequest
Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type). (optional)
func (*SynthesizePinchGestureRequest) RelativeSpeed ¶
func (r *SynthesizePinchGestureRequest) RelativeSpeed(v int) *SynthesizePinchGestureRequest
Relative pointer speed in pixels per second (default: 800). (optional)
func (*SynthesizePinchGestureRequest) ScaleFactor ¶
func (r *SynthesizePinchGestureRequest) ScaleFactor(v float64) *SynthesizePinchGestureRequest
Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
func (*SynthesizePinchGestureRequest) X ¶
func (r *SynthesizePinchGestureRequest) X(v int) *SynthesizePinchGestureRequest
X coordinate of the start of the gesture in CSS pixels.
func (*SynthesizePinchGestureRequest) Y ¶
func (r *SynthesizePinchGestureRequest) Y(v int) *SynthesizePinchGestureRequest
Y coordinate of the start of the gesture in CSS pixels.
type SynthesizeScrollGestureRequest ¶
type SynthesizeScrollGestureRequest struct {
// contains filtered or unexported fields
}
func (*SynthesizeScrollGestureRequest) Do ¶
func (r *SynthesizeScrollGestureRequest) Do() error
func (*SynthesizeScrollGestureRequest) GestureSourceType ¶
func (r *SynthesizeScrollGestureRequest) GestureSourceType(v GestureSourceType) *SynthesizeScrollGestureRequest
Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type). (optional)
func (*SynthesizeScrollGestureRequest) InteractionMarkerName ¶
func (r *SynthesizeScrollGestureRequest) InteractionMarkerName(v string) *SynthesizeScrollGestureRequest
The name of the interaction markers to generate, if not empty (default: ""). (optional)
func (*SynthesizeScrollGestureRequest) PreventFling ¶
func (r *SynthesizeScrollGestureRequest) PreventFling(v bool) *SynthesizeScrollGestureRequest
Prevent fling (default: true). (optional)
func (*SynthesizeScrollGestureRequest) RepeatCount ¶
func (r *SynthesizeScrollGestureRequest) RepeatCount(v int) *SynthesizeScrollGestureRequest
The number of times to repeat the gesture (default: 0). (optional)
func (*SynthesizeScrollGestureRequest) RepeatDelayMs ¶
func (r *SynthesizeScrollGestureRequest) RepeatDelayMs(v int) *SynthesizeScrollGestureRequest
The number of milliseconds delay between each repeat. (default: 250). (optional)
func (*SynthesizeScrollGestureRequest) Speed ¶
func (r *SynthesizeScrollGestureRequest) Speed(v int) *SynthesizeScrollGestureRequest
Swipe speed in pixels per second (default: 800). (optional)
func (*SynthesizeScrollGestureRequest) X ¶
func (r *SynthesizeScrollGestureRequest) X(v int) *SynthesizeScrollGestureRequest
X coordinate of the start of the gesture in CSS pixels.
func (*SynthesizeScrollGestureRequest) XDistance ¶
func (r *SynthesizeScrollGestureRequest) XDistance(v int) *SynthesizeScrollGestureRequest
The distance to scroll along the X axis (positive to scroll left). (optional)
func (*SynthesizeScrollGestureRequest) XOverscroll ¶
func (r *SynthesizeScrollGestureRequest) XOverscroll(v int) *SynthesizeScrollGestureRequest
The number of additional pixels to scroll back along the X axis, in addition to the given distance. (optional)
func (*SynthesizeScrollGestureRequest) Y ¶
func (r *SynthesizeScrollGestureRequest) Y(v int) *SynthesizeScrollGestureRequest
Y coordinate of the start of the gesture in CSS pixels.
func (*SynthesizeScrollGestureRequest) YDistance ¶
func (r *SynthesizeScrollGestureRequest) YDistance(v int) *SynthesizeScrollGestureRequest
The distance to scroll along the Y axis (positive to scroll up). (optional)
func (*SynthesizeScrollGestureRequest) YOverscroll ¶
func (r *SynthesizeScrollGestureRequest) YOverscroll(v int) *SynthesizeScrollGestureRequest
The number of additional pixels to scroll back along the Y axis, in addition to the given distance. (optional)
type SynthesizeTapGestureRequest ¶
type SynthesizeTapGestureRequest struct {
// contains filtered or unexported fields
}
func (*SynthesizeTapGestureRequest) Do ¶
func (r *SynthesizeTapGestureRequest) Do() error
func (*SynthesizeTapGestureRequest) Duration ¶
func (r *SynthesizeTapGestureRequest) Duration(v int) *SynthesizeTapGestureRequest
Duration between touchdown and touchup events in ms (default: 50). (optional)
func (*SynthesizeTapGestureRequest) GestureSourceType ¶
func (r *SynthesizeTapGestureRequest) GestureSourceType(v GestureSourceType) *SynthesizeTapGestureRequest
Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type). (optional)
func (*SynthesizeTapGestureRequest) TapCount ¶
func (r *SynthesizeTapGestureRequest) TapCount(v int) *SynthesizeTapGestureRequest
Number of times to perform the tap (e.g. 2 for double tap, default: 1). (optional)
func (*SynthesizeTapGestureRequest) X ¶
func (r *SynthesizeTapGestureRequest) X(v int) *SynthesizeTapGestureRequest
X coordinate of the start of the gesture in CSS pixels.
func (*SynthesizeTapGestureRequest) Y ¶
func (r *SynthesizeTapGestureRequest) Y(v int) *SynthesizeTapGestureRequest
Y coordinate of the start of the gesture in CSS pixels.
type TouchPoint ¶
type TouchPoint struct { // State of the touch point. State string `json:"state"` // X coordinate of the event relative to the main frame's viewport. X int `json:"x"` // Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. Y int `json:"y"` // X radius of the touch area (default: 1). (optional) RadiusX int `json:"radiusX,omitempty"` // Y radius of the touch area (default: 1). (optional) RadiusY int `json:"radiusY,omitempty"` // Rotation angle (default: 0.0). (optional) RotationAngle float64 `json:"rotationAngle,omitempty"` // Force (default: 1.0). (optional) Force float64 `json:"force,omitempty"` // Identifier used to track touch sources between events, must be unique within an event. (optional) Id float64 `json:"id,omitempty"` }