UNPKG

@logitech-mx-creative-console/webhid

Version:

An npm module for interfacing with the Logitech MX Creative Console in the browser

18 lines 944 B
import type { FillPanelDimensionsOptions, KeyIndex, MXCreativeConsole } from '@logitech-mx-creative-console/core'; import { MXCreativeConsoleProxy } from '@logitech-mx-creative-console/core'; import type { WebHIDDevice } from './hid-device.js'; /** * A MXCreativeConsole instance. * This is an extended variant of the class, to provide some more web friendly helpers, such as accepting a canvas */ export declare class MXCreativeConsoleWeb extends MXCreativeConsoleProxy { #private; constructor(device: MXCreativeConsole, hid: WebHIDDevice); /** * Instruct the browser to close and forget the device. This will revoke the website's permissions to access the device. */ forget(): Promise<void>; fillKeyCanvas(keyIndex: KeyIndex, canvas: HTMLCanvasElement): Promise<void>; fillPanelCanvas(canvas: HTMLCanvasElement, options?: FillPanelDimensionsOptions): Promise<void>; } //# sourceMappingURL=wrapper.d.ts.map