brilliantsole 0.0.57 → 0.0.58
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/build/brilliantsole.js +1 -1
- package/build/brilliantsole.js.map +1 -1
- package/build/brilliantsole.min.js +1 -1
- package/build/brilliantsole.min.js.map +1 -1
- package/build/brilliantsole.module.d.ts +20 -20
- package/build/brilliantsole.module.js +1 -1
- package/build/brilliantsole.module.js.map +1 -1
- package/build/brilliantsole.module.min.d.ts +20 -20
- package/build/brilliantsole.module.min.js +1 -1
- package/build/brilliantsole.module.min.js.map +1 -1
- package/build/brilliantsole.node.module.d.ts +16 -16
- package/examples/display-wireframe/script.js +1 -0
- package/package.json +1 -1
- package/src/utils/DisplayCanvasHelper.ts +1 -1
|
@@ -1378,7 +1378,7 @@ declare class InformationManager {
|
|
|
1378
1378
|
constructor();
|
|
1379
1379
|
sendMessage: SendInformationMessageCallback;
|
|
1380
1380
|
eventDispatcher: InformationEventDispatcher;
|
|
1381
|
-
get waitForEvent(): <T extends "isCharging" | "getBatteryCurrent" | "getMtu" | "getId" | "getName" | "
|
|
1381
|
+
get waitForEvent(): <T extends "isCharging" | "getBatteryCurrent" | "getMtu" | "getId" | "getName" | "getType" | "getCurrentTime" | "setName" | "setType" | "setCurrentTime">(type: T) => Promise<{
|
|
1382
1382
|
type: T;
|
|
1383
1383
|
target: Device;
|
|
1384
1384
|
message: InformationEventMessages[T];
|
|
@@ -1453,24 +1453,24 @@ declare class Device {
|
|
|
1453
1453
|
get bluetoothId(): string | undefined;
|
|
1454
1454
|
get isAvailable(): boolean | undefined;
|
|
1455
1455
|
constructor();
|
|
1456
|
-
get addEventListener(): <T extends "pressure" | "
|
|
1456
|
+
get addEventListener(): <T extends "pressure" | "sensorData" | "isConnected" | "barometer" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation" | "stepDetector" | "stepCounter" | "activity" | "deviceOrientation" | "tapDetector" | "batteryLevel" | "connectionMessage" | "notConnected" | "connecting" | "connected" | "disconnecting" | "connectionStatus" | "manufacturerName" | "modelNumber" | "softwareRevision" | "hardwareRevision" | "firmwareRevision" | "pnpId" | "serialNumber" | "deviceInformation" | "isCharging" | "getBatteryCurrent" | "getMtu" | "getId" | "getName" | "getType" | "getCurrentTime" | "getSensorConfiguration" | "getTfliteName" | "getTfliteTask" | "getTfliteSampleRate" | "getTfliteSensorTypes" | "tfliteIsReady" | "getTfliteCaptureDelay" | "getTfliteThreshold" | "getTfliteInferencingEnabled" | "tfliteInference" | "getFileTypes" | "maxFileLength" | "getFileType" | "getFileLength" | "getFileChecksum" | "fileTransferStatus" | "getFileBlock" | "fileTransferProgress" | "fileTransferComplete" | "fileReceived" | "isWifiAvailable" | "getWifiSSID" | "getWifiPassword" | "isWifiConnected" | "ipAddress" | "cameraStatus" | "getCameraConfiguration" | "cameraImageProgress" | "cameraImage" | "microphoneStatus" | "getMicrophoneConfiguration" | "microphoneData" | "isRecordingMicrophone" | "microphoneRecording" | "isDisplayAvailable" | "displayStatus" | "displayInformation" | "getDisplayBrightness" | "displayContextState" | "displayColor" | "displayColorOpacity" | "displayOpacity" | "displayReady" | "getSpriteSheetName" | "displaySpriteSheetUploadStart" | "displaySpriteSheetUploadProgress" | "displaySpriteSheetUploadComplete" | "displayContextCommands" | "smp" | "firmwareImages" | "firmwareUploadProgress" | "firmwareStatus" | "rx" | "tx" | "setName" | "setType" | "setCurrentTime" | "setSensorConfiguration" | "getPressurePositions" | "getSensorScalars" | "camera" | "microphone" | "getVibrationLocations" | "triggerVibration" | "setFileType" | "setFileLength" | "setFileChecksum" | "setFileTransferCommand" | "setFileBlock" | "fileBytesTransferred" | "setTfliteName" | "setTfliteTask" | "setTfliteSampleRate" | "setTfliteSensorTypes" | "setTfliteCaptureDelay" | "setTfliteThreshold" | "setTfliteInferencingEnabled" | "setWifiSSID" | "setWifiPassword" | "getWifiConnectionEnabled" | "setWifiConnectionEnabled" | "isWifiSecure" | "cameraCommand" | "setCameraConfiguration" | "cameraData" | "microphoneCommand" | "setMicrophoneConfiguration" | "displayCommand" | "setDisplayBrightness" | "setSpriteSheetName" | "spriteSheetIndex" | "firmwareUploadComplete">(type: T, listener: (event: {
|
|
1457
1457
|
type: T;
|
|
1458
1458
|
target: Device;
|
|
1459
1459
|
message: DeviceEventMessages[T];
|
|
1460
1460
|
}) => void, options?: {
|
|
1461
1461
|
once?: boolean;
|
|
1462
1462
|
}) => void;
|
|
1463
|
-
get removeEventListener(): <T extends "pressure" | "
|
|
1463
|
+
get removeEventListener(): <T extends "pressure" | "sensorData" | "isConnected" | "barometer" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation" | "stepDetector" | "stepCounter" | "activity" | "deviceOrientation" | "tapDetector" | "batteryLevel" | "connectionMessage" | "notConnected" | "connecting" | "connected" | "disconnecting" | "connectionStatus" | "manufacturerName" | "modelNumber" | "softwareRevision" | "hardwareRevision" | "firmwareRevision" | "pnpId" | "serialNumber" | "deviceInformation" | "isCharging" | "getBatteryCurrent" | "getMtu" | "getId" | "getName" | "getType" | "getCurrentTime" | "getSensorConfiguration" | "getTfliteName" | "getTfliteTask" | "getTfliteSampleRate" | "getTfliteSensorTypes" | "tfliteIsReady" | "getTfliteCaptureDelay" | "getTfliteThreshold" | "getTfliteInferencingEnabled" | "tfliteInference" | "getFileTypes" | "maxFileLength" | "getFileType" | "getFileLength" | "getFileChecksum" | "fileTransferStatus" | "getFileBlock" | "fileTransferProgress" | "fileTransferComplete" | "fileReceived" | "isWifiAvailable" | "getWifiSSID" | "getWifiPassword" | "isWifiConnected" | "ipAddress" | "cameraStatus" | "getCameraConfiguration" | "cameraImageProgress" | "cameraImage" | "microphoneStatus" | "getMicrophoneConfiguration" | "microphoneData" | "isRecordingMicrophone" | "microphoneRecording" | "isDisplayAvailable" | "displayStatus" | "displayInformation" | "getDisplayBrightness" | "displayContextState" | "displayColor" | "displayColorOpacity" | "displayOpacity" | "displayReady" | "getSpriteSheetName" | "displaySpriteSheetUploadStart" | "displaySpriteSheetUploadProgress" | "displaySpriteSheetUploadComplete" | "displayContextCommands" | "smp" | "firmwareImages" | "firmwareUploadProgress" | "firmwareStatus" | "rx" | "tx" | "setName" | "setType" | "setCurrentTime" | "setSensorConfiguration" | "getPressurePositions" | "getSensorScalars" | "camera" | "microphone" | "getVibrationLocations" | "triggerVibration" | "setFileType" | "setFileLength" | "setFileChecksum" | "setFileTransferCommand" | "setFileBlock" | "fileBytesTransferred" | "setTfliteName" | "setTfliteTask" | "setTfliteSampleRate" | "setTfliteSensorTypes" | "setTfliteCaptureDelay" | "setTfliteThreshold" | "setTfliteInferencingEnabled" | "setWifiSSID" | "setWifiPassword" | "getWifiConnectionEnabled" | "setWifiConnectionEnabled" | "isWifiSecure" | "cameraCommand" | "setCameraConfiguration" | "cameraData" | "microphoneCommand" | "setMicrophoneConfiguration" | "displayCommand" | "setDisplayBrightness" | "setSpriteSheetName" | "spriteSheetIndex" | "firmwareUploadComplete">(type: T, listener: (event: {
|
|
1464
1464
|
type: T;
|
|
1465
1465
|
target: Device;
|
|
1466
1466
|
message: DeviceEventMessages[T];
|
|
1467
1467
|
}) => void) => void;
|
|
1468
|
-
get waitForEvent(): <T extends "pressure" | "
|
|
1468
|
+
get waitForEvent(): <T extends "pressure" | "sensorData" | "isConnected" | "barometer" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation" | "stepDetector" | "stepCounter" | "activity" | "deviceOrientation" | "tapDetector" | "batteryLevel" | "connectionMessage" | "notConnected" | "connecting" | "connected" | "disconnecting" | "connectionStatus" | "manufacturerName" | "modelNumber" | "softwareRevision" | "hardwareRevision" | "firmwareRevision" | "pnpId" | "serialNumber" | "deviceInformation" | "isCharging" | "getBatteryCurrent" | "getMtu" | "getId" | "getName" | "getType" | "getCurrentTime" | "getSensorConfiguration" | "getTfliteName" | "getTfliteTask" | "getTfliteSampleRate" | "getTfliteSensorTypes" | "tfliteIsReady" | "getTfliteCaptureDelay" | "getTfliteThreshold" | "getTfliteInferencingEnabled" | "tfliteInference" | "getFileTypes" | "maxFileLength" | "getFileType" | "getFileLength" | "getFileChecksum" | "fileTransferStatus" | "getFileBlock" | "fileTransferProgress" | "fileTransferComplete" | "fileReceived" | "isWifiAvailable" | "getWifiSSID" | "getWifiPassword" | "isWifiConnected" | "ipAddress" | "cameraStatus" | "getCameraConfiguration" | "cameraImageProgress" | "cameraImage" | "microphoneStatus" | "getMicrophoneConfiguration" | "microphoneData" | "isRecordingMicrophone" | "microphoneRecording" | "isDisplayAvailable" | "displayStatus" | "displayInformation" | "getDisplayBrightness" | "displayContextState" | "displayColor" | "displayColorOpacity" | "displayOpacity" | "displayReady" | "getSpriteSheetName" | "displaySpriteSheetUploadStart" | "displaySpriteSheetUploadProgress" | "displaySpriteSheetUploadComplete" | "displayContextCommands" | "smp" | "firmwareImages" | "firmwareUploadProgress" | "firmwareStatus" | "rx" | "tx" | "setName" | "setType" | "setCurrentTime" | "setSensorConfiguration" | "getPressurePositions" | "getSensorScalars" | "camera" | "microphone" | "getVibrationLocations" | "triggerVibration" | "setFileType" | "setFileLength" | "setFileChecksum" | "setFileTransferCommand" | "setFileBlock" | "fileBytesTransferred" | "setTfliteName" | "setTfliteTask" | "setTfliteSampleRate" | "setTfliteSensorTypes" | "setTfliteCaptureDelay" | "setTfliteThreshold" | "setTfliteInferencingEnabled" | "setWifiSSID" | "setWifiPassword" | "getWifiConnectionEnabled" | "setWifiConnectionEnabled" | "isWifiSecure" | "cameraCommand" | "setCameraConfiguration" | "cameraData" | "microphoneCommand" | "setMicrophoneConfiguration" | "displayCommand" | "setDisplayBrightness" | "setSpriteSheetName" | "spriteSheetIndex" | "firmwareUploadComplete">(type: T) => Promise<{
|
|
1469
1469
|
type: T;
|
|
1470
1470
|
target: Device;
|
|
1471
1471
|
message: DeviceEventMessages[T];
|
|
1472
1472
|
}>;
|
|
1473
|
-
get removeEventListeners(): <T extends "pressure" | "
|
|
1473
|
+
get removeEventListeners(): <T extends "pressure" | "sensorData" | "isConnected" | "barometer" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation" | "stepDetector" | "stepCounter" | "activity" | "deviceOrientation" | "tapDetector" | "batteryLevel" | "connectionMessage" | "notConnected" | "connecting" | "connected" | "disconnecting" | "connectionStatus" | "manufacturerName" | "modelNumber" | "softwareRevision" | "hardwareRevision" | "firmwareRevision" | "pnpId" | "serialNumber" | "deviceInformation" | "isCharging" | "getBatteryCurrent" | "getMtu" | "getId" | "getName" | "getType" | "getCurrentTime" | "getSensorConfiguration" | "getTfliteName" | "getTfliteTask" | "getTfliteSampleRate" | "getTfliteSensorTypes" | "tfliteIsReady" | "getTfliteCaptureDelay" | "getTfliteThreshold" | "getTfliteInferencingEnabled" | "tfliteInference" | "getFileTypes" | "maxFileLength" | "getFileType" | "getFileLength" | "getFileChecksum" | "fileTransferStatus" | "getFileBlock" | "fileTransferProgress" | "fileTransferComplete" | "fileReceived" | "isWifiAvailable" | "getWifiSSID" | "getWifiPassword" | "isWifiConnected" | "ipAddress" | "cameraStatus" | "getCameraConfiguration" | "cameraImageProgress" | "cameraImage" | "microphoneStatus" | "getMicrophoneConfiguration" | "microphoneData" | "isRecordingMicrophone" | "microphoneRecording" | "isDisplayAvailable" | "displayStatus" | "displayInformation" | "getDisplayBrightness" | "displayContextState" | "displayColor" | "displayColorOpacity" | "displayOpacity" | "displayReady" | "getSpriteSheetName" | "displaySpriteSheetUploadStart" | "displaySpriteSheetUploadProgress" | "displaySpriteSheetUploadComplete" | "displayContextCommands" | "smp" | "firmwareImages" | "firmwareUploadProgress" | "firmwareStatus" | "rx" | "tx" | "setName" | "setType" | "setCurrentTime" | "setSensorConfiguration" | "getPressurePositions" | "getSensorScalars" | "camera" | "microphone" | "getVibrationLocations" | "triggerVibration" | "setFileType" | "setFileLength" | "setFileChecksum" | "setFileTransferCommand" | "setFileBlock" | "fileBytesTransferred" | "setTfliteName" | "setTfliteTask" | "setTfliteSampleRate" | "setTfliteSensorTypes" | "setTfliteCaptureDelay" | "setTfliteThreshold" | "setTfliteInferencingEnabled" | "setWifiSSID" | "setWifiPassword" | "getWifiConnectionEnabled" | "setWifiConnectionEnabled" | "isWifiSecure" | "cameraCommand" | "setCameraConfiguration" | "cameraData" | "microphoneCommand" | "setMicrophoneConfiguration" | "displayCommand" | "setDisplayBrightness" | "setSpriteSheetName" | "spriteSheetIndex" | "firmwareUploadComplete">(type: T) => void;
|
|
1474
1474
|
get removeAllEventListeners(): () => void;
|
|
1475
1475
|
get connectionManager(): BaseConnectionManager | undefined;
|
|
1476
1476
|
set connectionManager(newConnectionManager: BaseConnectionManager | undefined);
|
|
@@ -1504,10 +1504,10 @@ declare class Device {
|
|
|
1504
1504
|
get setType(): (newType: DeviceType) => Promise<void>;
|
|
1505
1505
|
get isInsole(): boolean;
|
|
1506
1506
|
get isGlove(): boolean;
|
|
1507
|
-
get side(): "
|
|
1507
|
+
get side(): "right" | "left";
|
|
1508
1508
|
get mtu(): number;
|
|
1509
1509
|
get sensorTypes(): SensorType[];
|
|
1510
|
-
get continuousSensorTypes(): ("pressure" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation"
|
|
1510
|
+
get continuousSensorTypes(): ("pressure" | "barometer" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation")[];
|
|
1511
1511
|
get sensorConfiguration(): SensorConfiguration;
|
|
1512
1512
|
get setSensorConfiguration(): (newSensorConfiguration: SensorConfiguration, clearRest?: boolean, sendImmediately?: boolean) => Promise<void>;
|
|
1513
1513
|
clearSensorConfiguration(): Promise<void>;
|
|
@@ -1537,7 +1537,7 @@ declare class Device {
|
|
|
1537
1537
|
get tfliteSampleRate(): number;
|
|
1538
1538
|
get setTfliteSampleRate(): (newSampleRate: number, sendImmediately?: boolean) => Promise<void>;
|
|
1539
1539
|
get tfliteSensorTypes(): ("pressure" | "linearAcceleration" | "gyroscope" | "magnetometer")[];
|
|
1540
|
-
get allowedTfliteSensorTypes(): ("pressure" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation" | "
|
|
1540
|
+
get allowedTfliteSensorTypes(): ("pressure" | "barometer" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation" | "stepDetector" | "stepCounter" | "activity" | "deviceOrientation" | "tapDetector" | "camera" | "microphone")[];
|
|
1541
1541
|
get setTfliteSensorTypes(): (newSensorTypes: SensorType[], sendImmediately?: boolean) => Promise<void>;
|
|
1542
1542
|
get tfliteIsReady(): boolean;
|
|
1543
1543
|
get tfliteInferencingEnabled(): boolean;
|
|
@@ -1590,7 +1590,7 @@ declare class Device {
|
|
|
1590
1590
|
get cameraConfigurationRanges(): CameraConfigurationRanges;
|
|
1591
1591
|
get setCameraConfiguration(): (newCameraConfiguration: CameraConfiguration) => Promise<void>;
|
|
1592
1592
|
get hasMicrophone(): boolean;
|
|
1593
|
-
get microphoneStatus(): "idle" | "
|
|
1593
|
+
get microphoneStatus(): "idle" | "streaming" | "vad";
|
|
1594
1594
|
startMicrophone(sensorRate?: number): Promise<void>;
|
|
1595
1595
|
stopMicrophone(): Promise<void>;
|
|
1596
1596
|
enableMicrophoneVad(): Promise<void>;
|
|
@@ -1770,19 +1770,19 @@ declare class DeviceManager {
|
|
|
1770
1770
|
* _only available on web-bluetooth enabled browsers_
|
|
1771
1771
|
*/
|
|
1772
1772
|
GetDevices(): Promise<Device[] | undefined>;
|
|
1773
|
-
get AddEventListener(): <T extends "deviceIsConnected" | "deviceConnected" | "
|
|
1773
|
+
get AddEventListener(): <T extends "deviceIsConnected" | "deviceConnected" | "connectedDevices" | "deviceDisconnected" | "availableDevices">(type: T, listener: (event: {
|
|
1774
1774
|
type: T;
|
|
1775
1775
|
target: DeviceManager;
|
|
1776
1776
|
message: DeviceManagerEventMessages[T];
|
|
1777
1777
|
}) => void, options?: {
|
|
1778
1778
|
once?: boolean;
|
|
1779
1779
|
}) => void;
|
|
1780
|
-
get RemoveEventListener(): <T extends "deviceIsConnected" | "deviceConnected" | "
|
|
1780
|
+
get RemoveEventListener(): <T extends "deviceIsConnected" | "deviceConnected" | "connectedDevices" | "deviceDisconnected" | "availableDevices">(type: T, listener: (event: {
|
|
1781
1781
|
type: T;
|
|
1782
1782
|
target: DeviceManager;
|
|
1783
1783
|
message: DeviceManagerEventMessages[T];
|
|
1784
1784
|
}) => void) => void;
|
|
1785
|
-
get RemoveEventListeners(): <T extends "deviceIsConnected" | "deviceConnected" | "
|
|
1785
|
+
get RemoveEventListeners(): <T extends "deviceIsConnected" | "deviceConnected" | "connectedDevices" | "deviceDisconnected" | "availableDevices">(type: T) => void;
|
|
1786
1786
|
get RemoveAllEventListeners(): () => void;
|
|
1787
1787
|
_CheckDeviceAvailability(device: Device): void;
|
|
1788
1788
|
}
|
|
@@ -1896,24 +1896,24 @@ type DisplayCanvasHelperEventListenerMap = EventListenerMap<DisplayCanvasHelper,
|
|
|
1896
1896
|
declare class DisplayCanvasHelper implements DisplayManagerInterface {
|
|
1897
1897
|
#private;
|
|
1898
1898
|
constructor();
|
|
1899
|
-
get addEventListener(): <T extends "
|
|
1899
|
+
get addEventListener(): <T extends "contextState" | "numberOfColors" | "brightness" | "color" | "colorOpacity" | "resize" | "update" | "ready" | "device" | "deviceIsConnected" | "deviceConnected" | "deviceNotConnected" | "deviceSpriteSheetUploadStart" | "deviceSpriteSheetUploadProgress" | "deviceSpriteSheetUploadComplete" | "deviceUpdated">(type: T, listener: (event: {
|
|
1900
1900
|
type: T;
|
|
1901
1901
|
target: DisplayCanvasHelper;
|
|
1902
1902
|
message: DisplayCanvasHelperEventMessages[T];
|
|
1903
1903
|
}) => void, options?: {
|
|
1904
1904
|
once?: boolean;
|
|
1905
1905
|
}) => void;
|
|
1906
|
-
get removeEventListener(): <T extends "
|
|
1906
|
+
get removeEventListener(): <T extends "contextState" | "numberOfColors" | "brightness" | "color" | "colorOpacity" | "resize" | "update" | "ready" | "device" | "deviceIsConnected" | "deviceConnected" | "deviceNotConnected" | "deviceSpriteSheetUploadStart" | "deviceSpriteSheetUploadProgress" | "deviceSpriteSheetUploadComplete" | "deviceUpdated">(type: T, listener: (event: {
|
|
1907
1907
|
type: T;
|
|
1908
1908
|
target: DisplayCanvasHelper;
|
|
1909
1909
|
message: DisplayCanvasHelperEventMessages[T];
|
|
1910
1910
|
}) => void) => void;
|
|
1911
|
-
get waitForEvent(): <T extends "
|
|
1911
|
+
get waitForEvent(): <T extends "contextState" | "numberOfColors" | "brightness" | "color" | "colorOpacity" | "resize" | "update" | "ready" | "device" | "deviceIsConnected" | "deviceConnected" | "deviceNotConnected" | "deviceSpriteSheetUploadStart" | "deviceSpriteSheetUploadProgress" | "deviceSpriteSheetUploadComplete" | "deviceUpdated">(type: T) => Promise<{
|
|
1912
1912
|
type: T;
|
|
1913
1913
|
target: DisplayCanvasHelper;
|
|
1914
1914
|
message: DisplayCanvasHelperEventMessages[T];
|
|
1915
1915
|
}>;
|
|
1916
|
-
get removeEventListeners(): <T extends "
|
|
1916
|
+
get removeEventListeners(): <T extends "contextState" | "numberOfColors" | "brightness" | "color" | "colorOpacity" | "resize" | "update" | "ready" | "device" | "deviceIsConnected" | "deviceConnected" | "deviceNotConnected" | "deviceSpriteSheetUploadStart" | "deviceSpriteSheetUploadProgress" | "deviceSpriteSheetUploadComplete" | "deviceUpdated">(type: T) => void;
|
|
1917
1917
|
get removeAllEventListeners(): () => void;
|
|
1918
1918
|
get canvas(): HTMLCanvasElement | undefined;
|
|
1919
1919
|
set canvas(newCanvas: HTMLCanvasElement | undefined);
|
|
@@ -2171,24 +2171,24 @@ declare class DevicePair {
|
|
|
2171
2171
|
constructor(type: DevicePairType);
|
|
2172
2172
|
get sides(): readonly ["left", "right"];
|
|
2173
2173
|
get type(): "insoles" | "gloves";
|
|
2174
|
-
get addEventListener(): <T extends "
|
|
2174
|
+
get addEventListener(): <T extends "deviceIsConnected" | "deviceConnected" | "deviceNotConnected" | "pressure" | "sensorData" | "isConnected" | "deviceOrientation" | "devicePressure" | "deviceSensorData" | "deviceBarometer" | "deviceAcceleration" | "deviceGravity" | "deviceLinearAcceleration" | "deviceGyroscope" | "deviceMagnetometer" | "deviceGameRotation" | "deviceRotation" | "deviceStepDetector" | "deviceStepCounter" | "deviceActivity" | "deviceDeviceOrientation" | "deviceTapDetector" | "deviceBatteryLevel" | "deviceConnectionMessage" | "deviceConnecting" | "deviceDisconnecting" | "deviceConnectionStatus" | "deviceManufacturerName" | "deviceModelNumber" | "deviceSoftwareRevision" | "deviceHardwareRevision" | "deviceFirmwareRevision" | "devicePnpId" | "deviceSerialNumber" | "deviceDeviceInformation" | "deviceIsCharging" | "deviceGetBatteryCurrent" | "deviceGetMtu" | "deviceGetId" | "deviceGetName" | "deviceGetType" | "deviceGetCurrentTime" | "deviceIsLast" | "deviceGetSensorConfiguration" | "deviceGetTfliteName" | "deviceGetTfliteTask" | "deviceGetTfliteSampleRate" | "deviceGetTfliteSensorTypes" | "deviceTfliteIsReady" | "deviceGetTfliteCaptureDelay" | "deviceGetTfliteThreshold" | "deviceGetTfliteInferencingEnabled" | "deviceTfliteInference" | "deviceGetFileTypes" | "deviceMaxFileLength" | "deviceGetFileType" | "deviceGetFileLength" | "deviceGetFileChecksum" | "deviceFileTransferStatus" | "deviceGetFileBlock" | "deviceFileTransferProgress" | "deviceFileTransferComplete" | "deviceFileReceived" | "deviceIsWifiAvailable" | "deviceGetWifiSSID" | "deviceGetWifiPassword" | "deviceGetEnableWifiConnection" | "deviceIsWifiConnected" | "deviceIpAddress" | "deviceCameraStatus" | "deviceGetCameraConfiguration" | "deviceCameraImageProgress" | "deviceCameraImage" | "deviceMicrophoneStatus" | "deviceGetMicrophoneConfiguration" | "deviceMicrophoneData" | "deviceIsRecordingMicrophone" | "deviceMicrophoneRecording" | "deviceIsDisplayAvailable" | "deviceDisplayStatus" | "deviceDisplayInformation" | "deviceGetDisplayBrightness" | "deviceDisplayContextState" | "deviceDisplayColor" | "deviceDisplayColorOpacity" | "deviceDisplayOpacity" | "deviceDisplayReady" | "deviceGetSpriteSheetName" | "deviceDisplaySpriteSheetUploadStart" | "deviceDisplaySpriteSheetUploadProgress" | "deviceDisplaySpriteSheetUploadComplete" | "deviceDisplayContextCommands" | "deviceSmp" | "deviceFirmwareImages" | "deviceFirmwareUploadProgress" | "deviceFirmwareStatus">(type: T, listener: (event: {
|
|
2175
2175
|
type: T;
|
|
2176
2176
|
target: DevicePair;
|
|
2177
2177
|
message: DevicePairEventMessages[T];
|
|
2178
2178
|
}) => void, options?: {
|
|
2179
2179
|
once?: boolean;
|
|
2180
2180
|
}) => void;
|
|
2181
|
-
get removeEventListener(): <T extends "
|
|
2181
|
+
get removeEventListener(): <T extends "deviceIsConnected" | "deviceConnected" | "deviceNotConnected" | "pressure" | "sensorData" | "isConnected" | "deviceOrientation" | "devicePressure" | "deviceSensorData" | "deviceBarometer" | "deviceAcceleration" | "deviceGravity" | "deviceLinearAcceleration" | "deviceGyroscope" | "deviceMagnetometer" | "deviceGameRotation" | "deviceRotation" | "deviceStepDetector" | "deviceStepCounter" | "deviceActivity" | "deviceDeviceOrientation" | "deviceTapDetector" | "deviceBatteryLevel" | "deviceConnectionMessage" | "deviceConnecting" | "deviceDisconnecting" | "deviceConnectionStatus" | "deviceManufacturerName" | "deviceModelNumber" | "deviceSoftwareRevision" | "deviceHardwareRevision" | "deviceFirmwareRevision" | "devicePnpId" | "deviceSerialNumber" | "deviceDeviceInformation" | "deviceIsCharging" | "deviceGetBatteryCurrent" | "deviceGetMtu" | "deviceGetId" | "deviceGetName" | "deviceGetType" | "deviceGetCurrentTime" | "deviceIsLast" | "deviceGetSensorConfiguration" | "deviceGetTfliteName" | "deviceGetTfliteTask" | "deviceGetTfliteSampleRate" | "deviceGetTfliteSensorTypes" | "deviceTfliteIsReady" | "deviceGetTfliteCaptureDelay" | "deviceGetTfliteThreshold" | "deviceGetTfliteInferencingEnabled" | "deviceTfliteInference" | "deviceGetFileTypes" | "deviceMaxFileLength" | "deviceGetFileType" | "deviceGetFileLength" | "deviceGetFileChecksum" | "deviceFileTransferStatus" | "deviceGetFileBlock" | "deviceFileTransferProgress" | "deviceFileTransferComplete" | "deviceFileReceived" | "deviceIsWifiAvailable" | "deviceGetWifiSSID" | "deviceGetWifiPassword" | "deviceGetEnableWifiConnection" | "deviceIsWifiConnected" | "deviceIpAddress" | "deviceCameraStatus" | "deviceGetCameraConfiguration" | "deviceCameraImageProgress" | "deviceCameraImage" | "deviceMicrophoneStatus" | "deviceGetMicrophoneConfiguration" | "deviceMicrophoneData" | "deviceIsRecordingMicrophone" | "deviceMicrophoneRecording" | "deviceIsDisplayAvailable" | "deviceDisplayStatus" | "deviceDisplayInformation" | "deviceGetDisplayBrightness" | "deviceDisplayContextState" | "deviceDisplayColor" | "deviceDisplayColorOpacity" | "deviceDisplayOpacity" | "deviceDisplayReady" | "deviceGetSpriteSheetName" | "deviceDisplaySpriteSheetUploadStart" | "deviceDisplaySpriteSheetUploadProgress" | "deviceDisplaySpriteSheetUploadComplete" | "deviceDisplayContextCommands" | "deviceSmp" | "deviceFirmwareImages" | "deviceFirmwareUploadProgress" | "deviceFirmwareStatus">(type: T, listener: (event: {
|
|
2182
2182
|
type: T;
|
|
2183
2183
|
target: DevicePair;
|
|
2184
2184
|
message: DevicePairEventMessages[T];
|
|
2185
2185
|
}) => void) => void;
|
|
2186
|
-
get waitForEvent(): <T extends "
|
|
2186
|
+
get waitForEvent(): <T extends "deviceIsConnected" | "deviceConnected" | "deviceNotConnected" | "pressure" | "sensorData" | "isConnected" | "deviceOrientation" | "devicePressure" | "deviceSensorData" | "deviceBarometer" | "deviceAcceleration" | "deviceGravity" | "deviceLinearAcceleration" | "deviceGyroscope" | "deviceMagnetometer" | "deviceGameRotation" | "deviceRotation" | "deviceStepDetector" | "deviceStepCounter" | "deviceActivity" | "deviceDeviceOrientation" | "deviceTapDetector" | "deviceBatteryLevel" | "deviceConnectionMessage" | "deviceConnecting" | "deviceDisconnecting" | "deviceConnectionStatus" | "deviceManufacturerName" | "deviceModelNumber" | "deviceSoftwareRevision" | "deviceHardwareRevision" | "deviceFirmwareRevision" | "devicePnpId" | "deviceSerialNumber" | "deviceDeviceInformation" | "deviceIsCharging" | "deviceGetBatteryCurrent" | "deviceGetMtu" | "deviceGetId" | "deviceGetName" | "deviceGetType" | "deviceGetCurrentTime" | "deviceIsLast" | "deviceGetSensorConfiguration" | "deviceGetTfliteName" | "deviceGetTfliteTask" | "deviceGetTfliteSampleRate" | "deviceGetTfliteSensorTypes" | "deviceTfliteIsReady" | "deviceGetTfliteCaptureDelay" | "deviceGetTfliteThreshold" | "deviceGetTfliteInferencingEnabled" | "deviceTfliteInference" | "deviceGetFileTypes" | "deviceMaxFileLength" | "deviceGetFileType" | "deviceGetFileLength" | "deviceGetFileChecksum" | "deviceFileTransferStatus" | "deviceGetFileBlock" | "deviceFileTransferProgress" | "deviceFileTransferComplete" | "deviceFileReceived" | "deviceIsWifiAvailable" | "deviceGetWifiSSID" | "deviceGetWifiPassword" | "deviceGetEnableWifiConnection" | "deviceIsWifiConnected" | "deviceIpAddress" | "deviceCameraStatus" | "deviceGetCameraConfiguration" | "deviceCameraImageProgress" | "deviceCameraImage" | "deviceMicrophoneStatus" | "deviceGetMicrophoneConfiguration" | "deviceMicrophoneData" | "deviceIsRecordingMicrophone" | "deviceMicrophoneRecording" | "deviceIsDisplayAvailable" | "deviceDisplayStatus" | "deviceDisplayInformation" | "deviceGetDisplayBrightness" | "deviceDisplayContextState" | "deviceDisplayColor" | "deviceDisplayColorOpacity" | "deviceDisplayOpacity" | "deviceDisplayReady" | "deviceGetSpriteSheetName" | "deviceDisplaySpriteSheetUploadStart" | "deviceDisplaySpriteSheetUploadProgress" | "deviceDisplaySpriteSheetUploadComplete" | "deviceDisplayContextCommands" | "deviceSmp" | "deviceFirmwareImages" | "deviceFirmwareUploadProgress" | "deviceFirmwareStatus">(type: T) => Promise<{
|
|
2187
2187
|
type: T;
|
|
2188
2188
|
target: DevicePair;
|
|
2189
2189
|
message: DevicePairEventMessages[T];
|
|
2190
2190
|
}>;
|
|
2191
|
-
get removeEventListeners(): <T extends "
|
|
2191
|
+
get removeEventListeners(): <T extends "deviceIsConnected" | "deviceConnected" | "deviceNotConnected" | "pressure" | "sensorData" | "isConnected" | "deviceOrientation" | "devicePressure" | "deviceSensorData" | "deviceBarometer" | "deviceAcceleration" | "deviceGravity" | "deviceLinearAcceleration" | "deviceGyroscope" | "deviceMagnetometer" | "deviceGameRotation" | "deviceRotation" | "deviceStepDetector" | "deviceStepCounter" | "deviceActivity" | "deviceDeviceOrientation" | "deviceTapDetector" | "deviceBatteryLevel" | "deviceConnectionMessage" | "deviceConnecting" | "deviceDisconnecting" | "deviceConnectionStatus" | "deviceManufacturerName" | "deviceModelNumber" | "deviceSoftwareRevision" | "deviceHardwareRevision" | "deviceFirmwareRevision" | "devicePnpId" | "deviceSerialNumber" | "deviceDeviceInformation" | "deviceIsCharging" | "deviceGetBatteryCurrent" | "deviceGetMtu" | "deviceGetId" | "deviceGetName" | "deviceGetType" | "deviceGetCurrentTime" | "deviceIsLast" | "deviceGetSensorConfiguration" | "deviceGetTfliteName" | "deviceGetTfliteTask" | "deviceGetTfliteSampleRate" | "deviceGetTfliteSensorTypes" | "deviceTfliteIsReady" | "deviceGetTfliteCaptureDelay" | "deviceGetTfliteThreshold" | "deviceGetTfliteInferencingEnabled" | "deviceTfliteInference" | "deviceGetFileTypes" | "deviceMaxFileLength" | "deviceGetFileType" | "deviceGetFileLength" | "deviceGetFileChecksum" | "deviceFileTransferStatus" | "deviceGetFileBlock" | "deviceFileTransferProgress" | "deviceFileTransferComplete" | "deviceFileReceived" | "deviceIsWifiAvailable" | "deviceGetWifiSSID" | "deviceGetWifiPassword" | "deviceGetEnableWifiConnection" | "deviceIsWifiConnected" | "deviceIpAddress" | "deviceCameraStatus" | "deviceGetCameraConfiguration" | "deviceCameraImageProgress" | "deviceCameraImage" | "deviceMicrophoneStatus" | "deviceGetMicrophoneConfiguration" | "deviceMicrophoneData" | "deviceIsRecordingMicrophone" | "deviceMicrophoneRecording" | "deviceIsDisplayAvailable" | "deviceDisplayStatus" | "deviceDisplayInformation" | "deviceGetDisplayBrightness" | "deviceDisplayContextState" | "deviceDisplayColor" | "deviceDisplayColorOpacity" | "deviceDisplayOpacity" | "deviceDisplayReady" | "deviceGetSpriteSheetName" | "deviceDisplaySpriteSheetUploadStart" | "deviceDisplaySpriteSheetUploadProgress" | "deviceDisplaySpriteSheetUploadComplete" | "deviceDisplayContextCommands" | "deviceSmp" | "deviceFirmwareImages" | "deviceFirmwareUploadProgress" | "deviceFirmwareStatus">(type: T) => void;
|
|
2192
2192
|
get removeAllEventListeners(): () => void;
|
|
2193
2193
|
get left(): Device | undefined;
|
|
2194
2194
|
get right(): Device | undefined;
|
|
@@ -30372,10 +30372,10 @@ class DisplayCanvasHelper {
|
|
|
30372
30372
|
}
|
|
30373
30373
|
#useSpriteColorIndices = false;
|
|
30374
30374
|
#setUseSpriteColorIndices(useSpriteColorIndices, override = false) {
|
|
30375
|
-
this.#useSpriteColorIndices = useSpriteColorIndices;
|
|
30376
30375
|
if (!override && this.#useSpriteColorIndices) {
|
|
30377
30376
|
return;
|
|
30378
30377
|
}
|
|
30378
|
+
this.#useSpriteColorIndices = useSpriteColorIndices;
|
|
30379
30379
|
this.#rearDrawStack.push(() => {
|
|
30380
30380
|
this.#useSpriteColorIndices = useSpriteColorIndices;
|
|
30381
30381
|
});
|