You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
873 B
32 lines
873 B
type RfbRef = import('react').MutableRefObject< |
|
typeof import('@novnc/novnc/core/rfb') | null |
|
>; |
|
|
|
type RfbScreenRef = import('react').MutableRefObject<HTMLDivElement | null>; |
|
|
|
type RfbConnectArgs = { |
|
background?: string; |
|
clipViewport?: boolean; |
|
compressionLevel?: number; |
|
dragViewport?: boolean; |
|
focusOnClick?: boolean; |
|
onConnect?: () => void; |
|
onDisconnect?: (event: { detail: { clean: boolean } }) => void; |
|
qualityLevel?: number; |
|
resizeSession?: boolean; |
|
rfb: RfbRef; |
|
rfbScreen: RfbScreenRef; |
|
scaleViewport?: boolean; |
|
showDotCursor?: boolean; |
|
url: string; |
|
viewOnly?: boolean; |
|
}; |
|
|
|
type RfbConnectFunction = (args: RfbConnectArgs) => void; |
|
|
|
type RfbDisconnectFunction = (rfb: RfbRef) => void; |
|
|
|
type VncDisplayProps = Pick<RfbConnectArgs, 'rfb' | 'rfbScreen'> & |
|
Partial<RfbConnectArgs> & { |
|
rfbConnectArgs?: Partial<RfbConnectArgs>; |
|
};
|
|
|