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
|
@@ -1377,7 +1377,7 @@ declare class InformationManager {
|
|
|
1377
1377
|
constructor();
|
|
1378
1378
|
sendMessage: SendInformationMessageCallback;
|
|
1379
1379
|
eventDispatcher: InformationEventDispatcher;
|
|
1380
|
-
get waitForEvent(): <T extends "isCharging" | "getBatteryCurrent" | "getMtu" | "getId" | "getName" | "
|
|
1380
|
+
get waitForEvent(): <T extends "isCharging" | "getBatteryCurrent" | "getMtu" | "getId" | "getName" | "getType" | "getCurrentTime" | "setName" | "setType" | "setCurrentTime">(type: T) => Promise<{
|
|
1381
1381
|
type: T;
|
|
1382
1382
|
target: Device;
|
|
1383
1383
|
message: InformationEventMessages[T];
|
|
@@ -1452,24 +1452,24 @@ declare class Device {
|
|
|
1452
1452
|
get bluetoothId(): string | undefined;
|
|
1453
1453
|
get isAvailable(): boolean | undefined;
|
|
1454
1454
|
constructor();
|
|
1455
|
-
get addEventListener(): <T extends "pressure" | "
|
|
1455
|
+
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: {
|
|
1456
1456
|
type: T;
|
|
1457
1457
|
target: Device;
|
|
1458
1458
|
message: DeviceEventMessages[T];
|
|
1459
1459
|
}) => void, options?: {
|
|
1460
1460
|
once?: boolean;
|
|
1461
1461
|
}) => void;
|
|
1462
|
-
get removeEventListener(): <T extends "pressure" | "
|
|
1462
|
+
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: {
|
|
1463
1463
|
type: T;
|
|
1464
1464
|
target: Device;
|
|
1465
1465
|
message: DeviceEventMessages[T];
|
|
1466
1466
|
}) => void) => void;
|
|
1467
|
-
get waitForEvent(): <T extends "pressure" | "
|
|
1467
|
+
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<{
|
|
1468
1468
|
type: T;
|
|
1469
1469
|
target: Device;
|
|
1470
1470
|
message: DeviceEventMessages[T];
|
|
1471
1471
|
}>;
|
|
1472
|
-
get removeEventListeners(): <T extends "pressure" | "
|
|
1472
|
+
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;
|
|
1473
1473
|
get removeAllEventListeners(): () => void;
|
|
1474
1474
|
get connectionManager(): BaseConnectionManager | undefined;
|
|
1475
1475
|
set connectionManager(newConnectionManager: BaseConnectionManager | undefined);
|
|
@@ -1503,10 +1503,10 @@ declare class Device {
|
|
|
1503
1503
|
get setType(): (newType: DeviceType) => Promise<void>;
|
|
1504
1504
|
get isInsole(): boolean;
|
|
1505
1505
|
get isGlove(): boolean;
|
|
1506
|
-
get side(): "
|
|
1506
|
+
get side(): "right" | "left";
|
|
1507
1507
|
get mtu(): number;
|
|
1508
1508
|
get sensorTypes(): SensorType[];
|
|
1509
|
-
get continuousSensorTypes(): ("pressure" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation"
|
|
1509
|
+
get continuousSensorTypes(): ("pressure" | "barometer" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation")[];
|
|
1510
1510
|
get sensorConfiguration(): SensorConfiguration;
|
|
1511
1511
|
get setSensorConfiguration(): (newSensorConfiguration: SensorConfiguration, clearRest?: boolean, sendImmediately?: boolean) => Promise<void>;
|
|
1512
1512
|
clearSensorConfiguration(): Promise<void>;
|
|
@@ -1536,7 +1536,7 @@ declare class Device {
|
|
|
1536
1536
|
get tfliteSampleRate(): number;
|
|
1537
1537
|
get setTfliteSampleRate(): (newSampleRate: number, sendImmediately?: boolean) => Promise<void>;
|
|
1538
1538
|
get tfliteSensorTypes(): ("pressure" | "linearAcceleration" | "gyroscope" | "magnetometer")[];
|
|
1539
|
-
get allowedTfliteSensorTypes(): ("pressure" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation" | "
|
|
1539
|
+
get allowedTfliteSensorTypes(): ("pressure" | "barometer" | "acceleration" | "gravity" | "linearAcceleration" | "gyroscope" | "magnetometer" | "gameRotation" | "rotation" | "orientation" | "stepDetector" | "stepCounter" | "activity" | "deviceOrientation" | "tapDetector" | "camera" | "microphone")[];
|
|
1540
1540
|
get setTfliteSensorTypes(): (newSensorTypes: SensorType[], sendImmediately?: boolean) => Promise<void>;
|
|
1541
1541
|
get tfliteIsReady(): boolean;
|
|
1542
1542
|
get tfliteInferencingEnabled(): boolean;
|
|
@@ -1589,7 +1589,7 @@ declare class Device {
|
|
|
1589
1589
|
get cameraConfigurationRanges(): CameraConfigurationRanges;
|
|
1590
1590
|
get setCameraConfiguration(): (newCameraConfiguration: CameraConfiguration) => Promise<void>;
|
|
1591
1591
|
get hasMicrophone(): boolean;
|
|
1592
|
-
get microphoneStatus(): "idle" | "
|
|
1592
|
+
get microphoneStatus(): "idle" | "streaming" | "vad";
|
|
1593
1593
|
startMicrophone(sensorRate?: number): Promise<void>;
|
|
1594
1594
|
stopMicrophone(): Promise<void>;
|
|
1595
1595
|
enableMicrophoneVad(): Promise<void>;
|
|
@@ -1769,19 +1769,19 @@ declare class DeviceManager {
|
|
|
1769
1769
|
* _only available on web-bluetooth enabled browsers_
|
|
1770
1770
|
*/
|
|
1771
1771
|
GetDevices(): Promise<Device[] | undefined>;
|
|
1772
|
-
get AddEventListener(): <T extends "deviceIsConnected" | "deviceConnected" | "
|
|
1772
|
+
get AddEventListener(): <T extends "deviceIsConnected" | "deviceConnected" | "connectedDevices" | "deviceDisconnected" | "availableDevices">(type: T, listener: (event: {
|
|
1773
1773
|
type: T;
|
|
1774
1774
|
target: DeviceManager;
|
|
1775
1775
|
message: DeviceManagerEventMessages[T];
|
|
1776
1776
|
}) => void, options?: {
|
|
1777
1777
|
once?: boolean;
|
|
1778
1778
|
}) => void;
|
|
1779
|
-
get RemoveEventListener(): <T extends "deviceIsConnected" | "deviceConnected" | "
|
|
1779
|
+
get RemoveEventListener(): <T extends "deviceIsConnected" | "deviceConnected" | "connectedDevices" | "deviceDisconnected" | "availableDevices">(type: T, listener: (event: {
|
|
1780
1780
|
type: T;
|
|
1781
1781
|
target: DeviceManager;
|
|
1782
1782
|
message: DeviceManagerEventMessages[T];
|
|
1783
1783
|
}) => void) => void;
|
|
1784
|
-
get RemoveEventListeners(): <T extends "deviceIsConnected" | "deviceConnected" | "
|
|
1784
|
+
get RemoveEventListeners(): <T extends "deviceIsConnected" | "deviceConnected" | "connectedDevices" | "deviceDisconnected" | "availableDevices">(type: T) => void;
|
|
1785
1785
|
get RemoveAllEventListeners(): () => void;
|
|
1786
1786
|
_CheckDeviceAvailability(device: Device): void;
|
|
1787
1787
|
}
|
|
@@ -1860,24 +1860,24 @@ declare class DevicePair {
|
|
|
1860
1860
|
constructor(type: DevicePairType);
|
|
1861
1861
|
get sides(): readonly ["left", "right"];
|
|
1862
1862
|
get type(): "insoles" | "gloves";
|
|
1863
|
-
get addEventListener(): <T extends "
|
|
1863
|
+
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: {
|
|
1864
1864
|
type: T;
|
|
1865
1865
|
target: DevicePair;
|
|
1866
1866
|
message: DevicePairEventMessages[T];
|
|
1867
1867
|
}) => void, options?: {
|
|
1868
1868
|
once?: boolean;
|
|
1869
1869
|
}) => void;
|
|
1870
|
-
get removeEventListener(): <T extends "
|
|
1870
|
+
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: {
|
|
1871
1871
|
type: T;
|
|
1872
1872
|
target: DevicePair;
|
|
1873
1873
|
message: DevicePairEventMessages[T];
|
|
1874
1874
|
}) => void) => void;
|
|
1875
|
-
get waitForEvent(): <T extends "
|
|
1875
|
+
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<{
|
|
1876
1876
|
type: T;
|
|
1877
1877
|
target: DevicePair;
|
|
1878
1878
|
message: DevicePairEventMessages[T];
|
|
1879
1879
|
}>;
|
|
1880
|
-
get removeEventListeners(): <T extends "
|
|
1880
|
+
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;
|
|
1881
1881
|
get removeAllEventListeners(): () => void;
|
|
1882
1882
|
get left(): Device | undefined;
|
|
1883
1883
|
get right(): Device | undefined;
|
|
@@ -1088,6 +1088,7 @@ const drawFace = async () => {
|
|
|
1088
1088
|
|
|
1089
1089
|
addEdgesToWireframe(wireframe, FaceLandmarker.FACE_LANDMARKS_LEFT_IRIS, 1);
|
|
1090
1090
|
addEdgesToWireframe(wireframe, FaceLandmarker.FACE_LANDMARKS_RIGHT_IRIS, 1);
|
|
1091
|
+
wireframe.edges.pop();
|
|
1091
1092
|
|
|
1092
1093
|
console.log("face wireframe", wireframe);
|
|
1093
1094
|
await displayCanvasHelper.drawWireframe(wireframe);
|
package/package.json
CHANGED
|
@@ -4263,10 +4263,10 @@ class DisplayCanvasHelper implements DisplayManagerInterface {
|
|
|
4263
4263
|
|
|
4264
4264
|
#useSpriteColorIndices = false;
|
|
4265
4265
|
#setUseSpriteColorIndices(useSpriteColorIndices: boolean, override = false) {
|
|
4266
|
-
this.#useSpriteColorIndices = useSpriteColorIndices;
|
|
4267
4266
|
if (!override && this.#useSpriteColorIndices) {
|
|
4268
4267
|
return;
|
|
4269
4268
|
}
|
|
4269
|
+
this.#useSpriteColorIndices = useSpriteColorIndices;
|
|
4270
4270
|
this.#rearDrawStack.push(() => {
|
|
4271
4271
|
//_console.log({ useSpriteColorIndices });
|
|
4272
4272
|
this.#useSpriteColorIndices = useSpriteColorIndices;
|