@@ -65,12 +65,12 @@ This event is emitted when the canvas changes size.
6565
6666Fields:
6767
68- * ` event_type ` : 'resize'
68+ * ` type ` : 'resize'
6969* ` width ` : The width in logical pixels.
7070* ` height ` : The height in logical pixels.
7171* ` pwidth ` : The width in physical pixels.
7272* ` pheight ` : The height in physical pixels.
73- * ` pixel_ratio ` : The pixel ratio between logical and physical pixels.
73+ * ` pixelratio ` : The pixel ratio between logical and physical pixels.
7474* ` timestamp ` : A timestamp in seconds.
7575
7676
@@ -80,7 +80,7 @@ This event is emitted when the canvas is closed (i.e. destroyed).
8080
8181Fields:
8282
83- * ` event_type ` : 'close'
83+ * ` type ` : 'close'
8484* ` timestamp ` : A timestamp in seconds.
8585
8686
@@ -92,7 +92,7 @@ shown. If this is not the case, the implementation should emit a 'hide' event.
9292
9393Fields:
9494
95- * ` event_type ` : 'show'
95+ * ` type ` : 'show'
9696* ` timestamp ` : A timestamp in seconds.
9797
9898
@@ -102,7 +102,7 @@ This event is emitted when the canvas is hidden. It can e.g. be minimized or scr
102102
103103Fields:
104104
105- * ` event_type ` : 'hide'
105+ * ` type ` : 'hide'
106106* ` timestamp ` : A timestamp in seconds.
107107
108108
@@ -112,7 +112,7 @@ This event is emitted when the user interacts with mouse, touch or other pointer
112112
113113Fields:
114114
115- * ` event_type ` : 'pointer_down'
115+ * ` type ` : 'pointer_down'
116116* ` x ` : The horizontal position of the pointer within the canvas.
117117* ` y ` : The vertical position of the pointer within the canvas.
118118* ` button ` : The button to which this event applies.
@@ -139,7 +139,7 @@ This event is emitted when the user releases a pointer.
139139
140140Fields:
141141
142- * ` event_type ` : 'pointer_up'
142+ * ` type ` : 'pointer_up'
143143* ... the other fields are the same as the pointer_down event.
144144
145145
@@ -151,7 +151,7 @@ In remote contexts it is recommended to throttle this event to avoid spamming th
151151
152152Fields:
153153
154- * ` event_type ` : 'pointer_move'
154+ * ` type ` : 'pointer_move'
155155* ... the other fields are the same as the pointer_down event.
156156
157157
@@ -161,7 +161,7 @@ This event is emitted when the user moves a pointer into the boundary of the can
161161
162162Fields:
163163
164- * ` event_type ` : 'pointer_enter'
164+ * ` type ` : 'pointer_enter'
165165* ` timestamp ` : A timestamp in seconds.
166166
167167
@@ -171,7 +171,7 @@ This event is emitted when the user moves a pointer out of the boundary of the c
171171
172172Fields:
173173
174- * ` event_type ` : 'pointer_enter'
174+ * ` type ` : 'pointer_enter'
175175* ` timestamp ` : A timestamp in seconds.
176176
177177
@@ -181,7 +181,7 @@ This event is emitted on a double-click.
181181
182182Fields:
183183
184- * ` event_type ` : 'pointer_down'
184+ * ` type ` : 'pointer_down'
185185* ` x ` : The horizontal position of the pointer within the canvas.
186186* ` y ` : The vertical position of the pointer within the canvas.
187187* ` button ` : The button to which this event applies.
@@ -198,7 +198,7 @@ In remote contexts it is recommended to throttle this event to avoid spamming th
198198
199199Fields:
200200
201- * ` event_type ` : 'wheel'
201+ * ` type ` : 'wheel'
202202* ` dx ` : The horizontal scroll delta (positive means scroll right).
203203* ` dy ` : The vertical scroll delta (positive means scroll down or zoom out).
204204* ` x ` : The mouse horizontal position during the scroll.
@@ -227,7 +227,7 @@ This event is emitted when a key is pressed down.
227227
228228Fields:
229229
230- * ` event_type ` : 'key_down'
230+ * ` type ` : 'key_down'
231231* ` key ` : The key being pressed as a string.
232232* ` modifiers ` : A tuple of modifier keys being pressed down.
233233* ` timestamp ` : A timestamp in seconds.
@@ -244,7 +244,7 @@ The key names follow the [browser spec](https://developer.mozilla.org/en-US/docs
244244
245245This event is emitted when a key is released.
246246
247- * ` event_type ` : 'key_up'
247+ * ` type ` : 'key_up'
248248* ` key ` : The key being released as a string.
249249* ` modifiers ` : A tuple of modifier keys being pressed down.
250250* ` timestamp ` : A timestamp in seconds.
0 commit comments