add shared cursor as image tag.

This commit is contained in:
Miroslav Šedivý
2021-02-11 19:03:31 +01:00
parent 723ec821f3
commit 6cfe39e6c5
6 changed files with 65 additions and 11 deletions

View File

@ -31,6 +31,7 @@ export const KEYBOARD_MODIFIERS = 'keyboard/modifiers'
export const KEYBOARD_MAP = 'keyboard/map'
export const CURSOR_IMAGE = 'cursor/image'
export const CURSOR_POSITION = 'cursor/position'
export const BORADCAST_STATUS = 'broadcast/status'

View File

@ -172,6 +172,13 @@ export interface CursorImage {
y: number
}
export interface CursorPosition {
event: string | undefined
member_id: string
x: number
y: number
}
/////////////////////////////
// Broadcast
/////////////////////////////

View File

@ -49,7 +49,7 @@ export interface Video {
/////////////////////////////
export interface Control {
scroll: Scroll
cursor: Cursor | null
cursor: Cursor
clipboard: Clipboard | null
host_id: string | null
implicit_hosting: boolean
@ -61,6 +61,11 @@ export interface Scroll {
}
export interface Cursor {
image: CursorImage | null
position: CursorPosition | null
}
export interface CursorImage {
uri: string
width: number
height: number
@ -68,6 +73,11 @@ export interface Cursor {
y: number
}
export interface CursorPosition {
x: number
y: number
}
export interface Clipboard {
text: string
}