@yam8d/m8-sdk 0.5.2 → 0.5.3
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/dist/index.js +299 -233
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types/parameterViews.d.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yam8d/m8-sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Client SDK for apps that read and drive a Dirtywave M8, inside a yam8d External Apps iframe or standalone over Web Serial, WebUSB or Web MIDI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,6 +34,14 @@ interface ZoneDef {
|
|
|
34
34
|
width: number;
|
|
35
35
|
}
|
|
36
36
|
type VocabEntry = Pick<ColumnDef, 'type' | 'format' | 'label' | 'description' | 'parts' | 'options' | 'unit'>;
|
|
37
|
+
/** Rows with one value per operator (FM): the columns of the values. */
|
|
38
|
+
interface OperatorsDef {
|
|
39
|
+
instrument: string;
|
|
40
|
+
x: number;
|
|
41
|
+
step: number;
|
|
42
|
+
width: number;
|
|
43
|
+
letters: string[];
|
|
44
|
+
}
|
|
37
45
|
interface LayoutDef {
|
|
38
46
|
extends?: string;
|
|
39
47
|
/** Pattern of the heading label that names the block a cell belongs to ('MOD\\d'): read upward in the cell's zone. */
|
|
@@ -45,6 +53,7 @@ interface LayoutDef {
|
|
|
45
53
|
sections?: string[];
|
|
46
54
|
rows?: RowDef[];
|
|
47
55
|
zones?: ZoneDef[];
|
|
56
|
+
operators?: OperatorsDef;
|
|
48
57
|
vocabulary?: Record<string, VocabEntry>;
|
|
49
58
|
vocabularyFrom?: 'instrumentTypes';
|
|
50
59
|
}
|