brilliantsole 0.0.36 → 0.0.37
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.cjs +0 -213
- package/build/brilliantsole.cjs.map +1 -1
- package/build/brilliantsole.js.map +1 -1
- package/build/brilliantsole.ls.js +0 -244
- package/build/brilliantsole.ls.js.map +1 -1
- package/build/brilliantsole.min.js.map +1 -1
- package/build/brilliantsole.module.js.map +1 -1
- package/build/brilliantsole.module.min.js.map +1 -1
- package/build/brilliantsole.node.module.d.ts +1 -31
- package/build/brilliantsole.node.module.js +1 -205
- package/build/brilliantsole.node.module.js.map +1 -1
- package/build/dts/BS.d.ts +2 -0
- package/build/index.node.d.ts +1 -31
- package/package.json +9 -10
- package/src/BS.ts +2 -0
package/build/dts/BS.d.ts
CHANGED
|
@@ -32,7 +32,9 @@ export { default as DisplayCanvasHelper, DisplayCanvasHelperEvent, DisplayCanvas
|
|
|
32
32
|
/** BROWSER_START */
|
|
33
33
|
export { Font, Glyph } from "opentype.js";
|
|
34
34
|
/** BROWSER_END */
|
|
35
|
+
/** BROWSER_START */
|
|
35
36
|
export { resizeAndQuantizeImage, quantizeImage, imageToSprite, imageToSpriteSheet, canvasToSprite, canvasToSpriteSheet, resizeImage, imageToBitmaps, canvasToBitmaps, } from "./utils/DisplayBitmapUtils.ts";
|
|
37
|
+
/** BROWSER_END */
|
|
36
38
|
export { rgbToHex, hexToRGB } from "./utils/ColorUtils.ts";
|
|
37
39
|
export { default as DevicePair, DevicePairEvent, DevicePairEventMap, DevicePairEventListenerMap, BoundDevicePairEventListeners, DevicePairType, DevicePairTypes, } from "./devicePair/DevicePair.ts";
|
|
38
40
|
import { addEventListeners, removeEventListeners } from "./utils/EventUtils.ts";
|
package/build/index.node.d.ts
CHANGED
|
@@ -1800,36 +1800,6 @@ declare function simplifyCurves(curves: DisplayBezierCurve[], epsilon?: number):
|
|
|
1800
1800
|
declare function simplifyPoints(points: Vector2[], tolerance?: number): Vector2[];
|
|
1801
1801
|
declare function simplifyPointsAsCubicCurveControlPoints(points: Vector2[], error?: number): Vector2[];
|
|
1802
1802
|
|
|
1803
|
-
declare function quantizeImage(image: HTMLImageElement, width: number, height: number, numberOfColors: number, colors?: string[], canvas?: HTMLCanvasElement): Promise<{
|
|
1804
|
-
blob: Blob;
|
|
1805
|
-
colors: string[];
|
|
1806
|
-
colorIndices: number[];
|
|
1807
|
-
}>;
|
|
1808
|
-
declare function resizeImage(image: CanvasImageSource, width: number, height: number, canvas?: HTMLCanvasElement): HTMLCanvasElement;
|
|
1809
|
-
declare function resizeAndQuantizeImage(image: CanvasImageSource, width: number, height: number, numberOfColors: number, colors?: string[], canvas?: HTMLCanvasElement): Promise<{
|
|
1810
|
-
blob: Blob;
|
|
1811
|
-
colors: string[];
|
|
1812
|
-
colorIndices: number[];
|
|
1813
|
-
}>;
|
|
1814
|
-
declare function canvasToBitmaps(canvas: HTMLCanvasElement, numberOfColors: number, mtu: number): Promise<{
|
|
1815
|
-
bitmapRows: DisplayBitmap[][];
|
|
1816
|
-
colors: string[];
|
|
1817
|
-
}>;
|
|
1818
|
-
declare function imageToBitmaps(image: HTMLImageElement, width: number, height: number, numberOfColors: number, mtu: number): Promise<{
|
|
1819
|
-
bitmapRows: DisplayBitmap[][];
|
|
1820
|
-
colors: string[];
|
|
1821
|
-
}>;
|
|
1822
|
-
declare function canvasToSprite(canvas: HTMLCanvasElement, spriteName: string, numberOfColors: number, paletteName: string, overridePalette: boolean, spriteSheet: DisplaySpriteSheet, paletteOffset?: number): Promise<{
|
|
1823
|
-
sprite: DisplaySprite;
|
|
1824
|
-
blob: Blob;
|
|
1825
|
-
}>;
|
|
1826
|
-
declare function imageToSprite(image: HTMLImageElement, spriteName: string, width: number, height: number, numberOfColors: number, paletteName: string, overridePalette: boolean, spriteSheet: DisplaySpriteSheet, paletteOffset?: number): Promise<{
|
|
1827
|
-
sprite: DisplaySprite;
|
|
1828
|
-
blob: Blob;
|
|
1829
|
-
}>;
|
|
1830
|
-
declare function canvasToSpriteSheet(canvas: HTMLCanvasElement, spriteSheetName: string, numberOfColors: number, paletteName: string, maxFileLength?: number): Promise<DisplaySpriteSheet>;
|
|
1831
|
-
declare function imageToSpriteSheet(image: HTMLImageElement, spriteSheetName: string, width: number, height: number, numberOfColors: number, paletteName: string, maxFileLength?: number): Promise<DisplaySpriteSheet>;
|
|
1832
|
-
|
|
1833
1803
|
declare function hexToRGB(hex: string): DisplayColorRGB;
|
|
1834
1804
|
declare function rgbToHex({ r, g, b }: DisplayColorRGB): string;
|
|
1835
1805
|
|
|
@@ -2063,5 +2033,5 @@ declare const ThrottleUtils: {
|
|
|
2063
2033
|
debounce: typeof debounce;
|
|
2064
2034
|
};
|
|
2065
2035
|
|
|
2066
|
-
export { CameraCommands, CameraConfigurationTypes, ContinuousSensorTypes, DefaultNumberOfDisplayColors, DefaultNumberOfPressureSensors, Device, _default as DeviceManager, DevicePair, DevicePairTypes, DeviceTypes, DisplayAlignments, DisplayBezierCurveTypes, DisplayBrightnesses, DisplayContextCommandTypes, DisplayDirections, DisplayPixelDepths, DisplaySegmentCaps, DisplaySpriteContextCommandTypes, environment_d as Environment, EventUtils, FileTransferDirections, FileTypes, MaxNameLength, MaxNumberOfVibrationWaveformEffectSegments, MaxNumberOfVibrationWaveformSegments, MaxSensorRate, MaxSpriteSheetNameLength, MaxVibrationWaveformEffectSegmentDelay, MaxVibrationWaveformEffectSegmentLoopCount, MaxVibrationWaveformEffectSequenceLoopCount, MaxVibrationWaveformSegmentDuration, MaxWifiPasswordLength, MaxWifiSSIDLength, MicrophoneCommands, MicrophoneConfigurationTypes, MicrophoneConfigurationValues, MinNameLength, MinSpriteSheetNameLength, MinWifiPasswordLength, MinWifiSSIDLength, RangeHelper, scanner as Scanner, SensorRateStep, SensorTypes, Sides, TfliteSensorTypes, TfliteTasks, ThrottleUtils, Timer, UDPServer, VibrationLocations, VibrationTypes, VibrationWaveformEffects, WebSocketServer,
|
|
2036
|
+
export { CameraCommands, CameraConfigurationTypes, ContinuousSensorTypes, DefaultNumberOfDisplayColors, DefaultNumberOfPressureSensors, Device, _default as DeviceManager, DevicePair, DevicePairTypes, DeviceTypes, DisplayAlignments, DisplayBezierCurveTypes, DisplayBrightnesses, DisplayContextCommandTypes, DisplayDirections, DisplayPixelDepths, DisplaySegmentCaps, DisplaySpriteContextCommandTypes, environment_d as Environment, EventUtils, FileTransferDirections, FileTypes, MaxNameLength, MaxNumberOfVibrationWaveformEffectSegments, MaxNumberOfVibrationWaveformSegments, MaxSensorRate, MaxSpriteSheetNameLength, MaxVibrationWaveformEffectSegmentDelay, MaxVibrationWaveformEffectSegmentLoopCount, MaxVibrationWaveformEffectSequenceLoopCount, MaxVibrationWaveformSegmentDuration, MaxWifiPasswordLength, MaxWifiSSIDLength, MicrophoneCommands, MicrophoneConfigurationTypes, MicrophoneConfigurationValues, MinNameLength, MinSpriteSheetNameLength, MinWifiPasswordLength, MinWifiSSIDLength, RangeHelper, scanner as Scanner, SensorRateStep, SensorTypes, Sides, TfliteSensorTypes, TfliteTasks, ThrottleUtils, Timer, UDPServer, VibrationLocations, VibrationTypes, VibrationWaveformEffects, WebSocketServer, displayCurveTypeToNumberOfControlPoints, englishRegex, fontToSpriteSheet, getFontMaxHeight, getFontMetrics, getFontUnicodeRange, getMaxSpriteSheetSize, hexToRGB, intersectWireframes, isWireframePolygon, maxDisplayScale, mergeWireframes, parseFont, pixelDepthToNumberOfColors, rgbToHex, setAllConsoleLevelFlags, setConsoleLevelFlagsForType, simplifyCurves, simplifyPoints, simplifyPointsAsCubicCurveControlPoints, stringToSprites, wait };
|
|
2067
2037
|
export type { BoundDeviceEventListeners, BoundDeviceManagerEventListeners, BoundDevicePairEventListeners, CameraCommand, CameraConfiguration, CameraConfigurationType, CenterOfPressure, ContinuousSensorType, DeviceEvent, DeviceEventListenerMap, DeviceEventMap, DeviceInformation, DeviceManagerEvent, DeviceManagerEventListenerMap, DeviceManagerEventMap, DevicePairEvent, DevicePairEventListenerMap, DevicePairEventMap, DevicePairType, DeviceType, DiscoveredDevice, DisplayAlignment, DisplayBezierCurveType, DisplayBitmap, DisplayBitmapColorPair, DisplayBrightness, DisplayColorRGB, DisplayContextCommand, DisplayContextCommandType, DisplayDirection, DisplaySegmentCap, DisplaySize, DisplaySprite, DisplaySpriteColorPair, DisplaySpriteContextCommandType, DisplaySpriteLine, DisplaySpriteLines, DisplaySpritePaletteSwap, DisplaySpriteSheet, DisplaySpriteSheetPalette, DisplaySpriteSubLine, DisplayWireframe, DisplayWireframeEdge, Euler, FileTransferDirection, FileType, FontToSpriteSheetOptions, MicrophoneCommand, MicrophoneConfiguration, MicrophoneConfigurationType, PressureData, Quaternion, Range, SensorConfiguration, SensorType, Side, TfliteFileConfiguration, TfliteSensorType, TfliteTask, Vector2, Vector3, VibrationConfiguration, VibrationLocation, VibrationType, VibrationWaveformEffect };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brilliantsole",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
4
4
|
"description": "JavaScript SDK for BrilliantSole Smart Insoles",
|
|
5
5
|
"main": "./build/brilliantsole.module.js",
|
|
6
6
|
"module": "./build/brilliantsole.module.js",
|
|
@@ -60,13 +60,9 @@
|
|
|
60
60
|
"bonjour": "^3.5.0",
|
|
61
61
|
"cors": "^2.8.5",
|
|
62
62
|
"express": "^4.18.3",
|
|
63
|
-
"fit-curve": "^0.2.0",
|
|
64
63
|
"ip": "^2.0.1",
|
|
65
|
-
"lz4js": "^0.2.0",
|
|
66
64
|
"magic-string": "^0.30.5",
|
|
67
65
|
"nocache": "^4.0.0",
|
|
68
|
-
"opentype.js": "^1.3.4",
|
|
69
|
-
"rgbquant": "^1.1.2",
|
|
70
66
|
"rollup": "^4.18.0",
|
|
71
67
|
"rollup-plugin-babel": "^4.4.0",
|
|
72
68
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
@@ -79,18 +75,21 @@
|
|
|
79
75
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
80
76
|
"rollup-plugin-progress": "^1.1.2",
|
|
81
77
|
"rollup-plugin-uglify": "^6.0.4",
|
|
82
|
-
"simplify-js": "^1.2.4",
|
|
83
|
-
"svg-pathdata": "^8.0.0",
|
|
84
|
-
"svgson": "^5.3.1",
|
|
85
78
|
"tslib": "^2.6.3",
|
|
86
79
|
"typescript": "^5.5.3",
|
|
87
|
-
"woff2-encoder": "^2.0.0",
|
|
88
80
|
"ws": "^8.16.0"
|
|
89
81
|
},
|
|
90
82
|
"dependencies": {
|
|
91
83
|
"@abandonware/noble": "^1.9.2-24",
|
|
92
84
|
"auto-bind": "^5.0.1",
|
|
93
|
-
"webbluetooth": "^3.2.1"
|
|
85
|
+
"webbluetooth": "^3.2.1",
|
|
86
|
+
"opentype.js": "^1.3.4",
|
|
87
|
+
"rgbquant": "^1.1.2",
|
|
88
|
+
"woff2-encoder": "^2.0.0",
|
|
89
|
+
"simplify-js": "^1.2.4",
|
|
90
|
+
"svg-pathdata": "^8.0.0",
|
|
91
|
+
"svgson": "^5.3.1",
|
|
92
|
+
"fit-curve": "^0.2.0"
|
|
94
93
|
},
|
|
95
94
|
"files": [
|
|
96
95
|
"package.json",
|
package/src/BS.ts
CHANGED
|
@@ -195,6 +195,7 @@ export {
|
|
|
195
195
|
export { Font, Glyph } from "opentype.js";
|
|
196
196
|
/** BROWSER_END */
|
|
197
197
|
|
|
198
|
+
/** BROWSER_START */
|
|
198
199
|
export {
|
|
199
200
|
resizeAndQuantizeImage,
|
|
200
201
|
quantizeImage,
|
|
@@ -206,6 +207,7 @@ export {
|
|
|
206
207
|
imageToBitmaps,
|
|
207
208
|
canvasToBitmaps,
|
|
208
209
|
} from "./utils/DisplayBitmapUtils.ts";
|
|
210
|
+
/** BROWSER_END */
|
|
209
211
|
|
|
210
212
|
export { rgbToHex, hexToRGB } from "./utils/ColorUtils.ts";
|
|
211
213
|
|