@phreshos/client 0.1.6 → 0.1.7
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/desktop.d.ts +10 -5
- package/dist/main.d.ts +1 -1
- package/package.json +1 -1
package/dist/desktop.d.ts
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Subscribable } from "@phreshos/core";
|
|
2
2
|
import Events from "./events.js";
|
|
3
|
+
/** The complete measured desktop area in CSS pixels. */
|
|
4
|
+
export type DesktopSize = Readonly<{
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}>;
|
|
3
8
|
/** Live changes to the desktop area containing this Client. */
|
|
4
9
|
export type DesktopEvents = {
|
|
5
10
|
/** The desktop area resized. */
|
|
6
|
-
resize:
|
|
11
|
+
resize: DesktopSize;
|
|
7
12
|
};
|
|
8
13
|
/** Explicit desktop size reads and future resizes. */
|
|
9
14
|
export interface HostDesktop extends Subscribable<DesktopEvents, never> {
|
|
10
15
|
/** Reads the complete current desktop area in CSS pixels. */
|
|
11
|
-
size(): Promise<
|
|
16
|
+
size(): Promise<DesktopSize>;
|
|
12
17
|
}
|
|
13
18
|
/** Desktop access bound to the current Client Process boundary. */
|
|
14
19
|
export default class ClientDesktop extends Events {
|
|
15
20
|
constructor();
|
|
16
21
|
size(): Promise<Readonly<{
|
|
17
|
-
width:
|
|
18
|
-
height:
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
19
24
|
}>>;
|
|
20
25
|
}
|
package/dist/main.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { host, type Host } from "./host.js";
|
|
2
2
|
export { type HostPointer, type PointerEvents, type PointerPosition } from "./pointer.js";
|
|
3
|
-
export { type DesktopEvents, type HostDesktop } from "./desktop.js";
|
|
3
|
+
export { type DesktopEvents, type DesktopSize, type HostDesktop } from "./desktop.js";
|
|
4
4
|
export { current, type Current, type CurrentServer } from "./current.js";
|
|
5
5
|
export { type Channel, type ChannelCapture, type ChannelEvents, type ChannelMessage } from "./channel.js";
|
|
6
6
|
export { ClientServiceHandler, ServerServiceHandler, ServiceHandler, type ClientServiceChannel, type ServerServiceChannel, type ServiceChannel, type ServiceKey, type ServiceLifecycleEvents } from "@phreshos/core";
|