@isoloop/protocol 0.0.0-next.56111e3 → 0.0.0-next.5bbb503
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -92,8 +92,12 @@ export type Mods = {
|
|
|
92
92
|
meta: boolean;
|
|
93
93
|
shift: boolean;
|
|
94
94
|
};
|
|
95
|
-
/**
|
|
96
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Event types the host forwards (design §4.6), plus `resize` for transferred
|
|
97
|
+
* canvases (§4.7). `pointermove` and `scroll` are opt-in per node and come at
|
|
98
|
+
* most once a frame.
|
|
99
|
+
*/
|
|
100
|
+
export type EventType = "click" | "dblclick" | "input" | "change" | "keydown" | "keyup" | "submit" | "focusin" | "focusout" | "pointerdown" | "pointerup" | "pointermove" | "scroll" | "resize";
|
|
97
101
|
/** A DOM event as it reaches an isolate (design §4.6). Node ids are the isolate's own. */
|
|
98
102
|
export type SerializedEvent = {
|
|
99
103
|
type: EventType;
|
|
@@ -111,6 +115,9 @@ export type SerializedEvent = {
|
|
|
111
115
|
/** For `resize`. */
|
|
112
116
|
width?: number;
|
|
113
117
|
height?: number;
|
|
118
|
+
/** For `scroll`: the scrolled element's offsets (M3b). */
|
|
119
|
+
scrollTop?: number;
|
|
120
|
+
scrollLeft?: number;
|
|
114
121
|
};
|
|
115
122
|
/** Why the host asks an isolate to shut down. `suspend` keeps its offsets (M2, ADR 0001). */
|
|
116
123
|
export type ShutdownReason = "stop" | "restart" | "suspend";
|