@intechstudio/grid-protocol 1.20251125.935 → 1.20251126.1325
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 +50 -38
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __spreadArray, __assign } from 'tslib';
|
|
2
2
|
|
|
3
3
|
var GRID_PROTOCOL_VERSION_MAJOR = "1";
|
|
4
|
-
var GRID_PROTOCOL_VERSION_MINOR = "
|
|
5
|
-
var GRID_PROTOCOL_VERSION_PATCH = "
|
|
4
|
+
var GRID_PROTOCOL_VERSION_MINOR = "5";
|
|
5
|
+
var GRID_PROTOCOL_VERSION_PATCH = "0";
|
|
6
6
|
var GRID_PARAMETER_ELEMENT_SYSTEM = "0";
|
|
7
7
|
var GRID_PARAMETER_ELEMENT_POTMETER = "1";
|
|
8
8
|
var GRID_PARAMETER_ELEMENT_BUTTON = "2";
|
|
@@ -283,26 +283,30 @@ var GRID_LUA_FNC_G_ELEMENT_COUNT_short = "gec";
|
|
|
283
283
|
var GRID_LUA_FNC_G_ELEMENT_COUNT_human = "element_count";
|
|
284
284
|
var GRID_LUA_FNC_G_ELEMENT_COUNT_fnptr = "l_grid_element_count";
|
|
285
285
|
var GRID_LUA_FNC_G_ELEMENT_COUNT_usage = "element_count(void) Returns the number of elements on the current module.";
|
|
286
|
+
var GRID_LUA_FNC_G_CALIBRATION_RESET_short = "gcr";
|
|
287
|
+
var GRID_LUA_FNC_G_CALIBRATION_RESET_human = "calibration_reset";
|
|
288
|
+
var GRID_LUA_FNC_G_CALIBRATION_RESET_fnptr = "l_grid_calibration_reset";
|
|
289
|
+
var GRID_LUA_FNC_G_CALIBRATION_RESET_usage = "calibration_reset() Deletes the calibration file and initializes all calibrations to their defaults.";
|
|
286
290
|
var GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_short = "gpcg";
|
|
287
291
|
var GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_human = "potmeter_calibration_get";
|
|
288
292
|
var GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_fnptr = "l_grid_potmeter_calibration_get";
|
|
289
293
|
var GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_usage = "potmeter_calibration_get() Returns raw potentiometer values as an array of integers.";
|
|
290
|
-
var
|
|
291
|
-
var
|
|
292
|
-
var
|
|
293
|
-
var
|
|
294
|
+
var GRID_LUA_FNC_G_POTMETER_CENTER_SET_short = "gpcs";
|
|
295
|
+
var GRID_LUA_FNC_G_POTMETER_CENTER_SET_human = "potmeter_center_set";
|
|
296
|
+
var GRID_LUA_FNC_G_POTMETER_CENTER_SET_fnptr = "l_grid_potmeter_center_set";
|
|
297
|
+
var GRID_LUA_FNC_G_POTMETER_CENTER_SET_usage = "potmeter_center_set({ int c1, ... }) Sets potentiometer calibration centers from an array of integers.";
|
|
294
298
|
var GRID_LUA_FNC_G_POTMETER_DETENT_SET_short = "gpds";
|
|
295
299
|
var GRID_LUA_FNC_G_POTMETER_DETENT_SET_human = "potmeter_detent_set";
|
|
296
300
|
var GRID_LUA_FNC_G_POTMETER_DETENT_SET_fnptr = "l_grid_potmeter_detent_set";
|
|
297
301
|
var GRID_LUA_FNC_G_POTMETER_DETENT_SET_usage = "potmeter_detent_set({ int c1, ... }, bool high) Sets potentiometer detent bounds from an array of integers, where high = true sets high bounds and high = false sets low bounds.";
|
|
298
|
-
var
|
|
299
|
-
var
|
|
300
|
-
var
|
|
301
|
-
var
|
|
302
|
-
var
|
|
303
|
-
var
|
|
304
|
-
var
|
|
305
|
-
var
|
|
302
|
+
var GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_short = "grcg";
|
|
303
|
+
var GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_human = "range_calibration_get";
|
|
304
|
+
var GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_fnptr = "l_grid_range_calibration_get";
|
|
305
|
+
var GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_usage = "range_calibration_get() Returns raw minimum and maximum values as an array of integer arrays.";
|
|
306
|
+
var GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_short = "grcs";
|
|
307
|
+
var GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_human = "range_calibration_set";
|
|
308
|
+
var GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_fnptr = "l_grid_range_calibration_set";
|
|
309
|
+
var GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_usage = "range_calibration_set({ { int min1, int max1 }, ... }) Sets minimum and maximum values from an array of integer arrays.";
|
|
306
310
|
var GRID_LUA_FNC_G_GUI_DRAW_SWAP_short = "ggdsw";
|
|
307
311
|
var GRID_LUA_FNC_G_GUI_DRAW_SWAP_human = "gui_draw_swap";
|
|
308
312
|
var GRID_LUA_FNC_G_GUI_DRAW_SWAP_fnptr = "l_grid_gui_draw_swap";
|
|
@@ -1182,26 +1186,30 @@ var grid_protocol_bot = {
|
|
|
1182
1186
|
GRID_LUA_FNC_G_ELEMENT_COUNT_human: GRID_LUA_FNC_G_ELEMENT_COUNT_human,
|
|
1183
1187
|
GRID_LUA_FNC_G_ELEMENT_COUNT_fnptr: GRID_LUA_FNC_G_ELEMENT_COUNT_fnptr,
|
|
1184
1188
|
GRID_LUA_FNC_G_ELEMENT_COUNT_usage: GRID_LUA_FNC_G_ELEMENT_COUNT_usage,
|
|
1189
|
+
GRID_LUA_FNC_G_CALIBRATION_RESET_short: GRID_LUA_FNC_G_CALIBRATION_RESET_short,
|
|
1190
|
+
GRID_LUA_FNC_G_CALIBRATION_RESET_human: GRID_LUA_FNC_G_CALIBRATION_RESET_human,
|
|
1191
|
+
GRID_LUA_FNC_G_CALIBRATION_RESET_fnptr: GRID_LUA_FNC_G_CALIBRATION_RESET_fnptr,
|
|
1192
|
+
GRID_LUA_FNC_G_CALIBRATION_RESET_usage: GRID_LUA_FNC_G_CALIBRATION_RESET_usage,
|
|
1185
1193
|
GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_short: GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_short,
|
|
1186
1194
|
GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_human: GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_human,
|
|
1187
1195
|
GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_fnptr: GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_fnptr,
|
|
1188
1196
|
GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_usage: GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_usage,
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1197
|
+
GRID_LUA_FNC_G_POTMETER_CENTER_SET_short: GRID_LUA_FNC_G_POTMETER_CENTER_SET_short,
|
|
1198
|
+
GRID_LUA_FNC_G_POTMETER_CENTER_SET_human: GRID_LUA_FNC_G_POTMETER_CENTER_SET_human,
|
|
1199
|
+
GRID_LUA_FNC_G_POTMETER_CENTER_SET_fnptr: GRID_LUA_FNC_G_POTMETER_CENTER_SET_fnptr,
|
|
1200
|
+
GRID_LUA_FNC_G_POTMETER_CENTER_SET_usage: GRID_LUA_FNC_G_POTMETER_CENTER_SET_usage,
|
|
1193
1201
|
GRID_LUA_FNC_G_POTMETER_DETENT_SET_short: GRID_LUA_FNC_G_POTMETER_DETENT_SET_short,
|
|
1194
1202
|
GRID_LUA_FNC_G_POTMETER_DETENT_SET_human: GRID_LUA_FNC_G_POTMETER_DETENT_SET_human,
|
|
1195
1203
|
GRID_LUA_FNC_G_POTMETER_DETENT_SET_fnptr: GRID_LUA_FNC_G_POTMETER_DETENT_SET_fnptr,
|
|
1196
1204
|
GRID_LUA_FNC_G_POTMETER_DETENT_SET_usage: GRID_LUA_FNC_G_POTMETER_DETENT_SET_usage,
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_short: GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_short,
|
|
1206
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_human: GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_human,
|
|
1207
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_fnptr: GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_fnptr,
|
|
1208
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_usage: GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_usage,
|
|
1209
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_short: GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_short,
|
|
1210
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_human: GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_human,
|
|
1211
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_fnptr: GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_fnptr,
|
|
1212
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_usage: GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_usage,
|
|
1205
1213
|
GRID_LUA_FNC_G_GUI_DRAW_SWAP_short: GRID_LUA_FNC_G_GUI_DRAW_SWAP_short,
|
|
1206
1214
|
GRID_LUA_FNC_G_GUI_DRAW_SWAP_human: GRID_LUA_FNC_G_GUI_DRAW_SWAP_human,
|
|
1207
1215
|
GRID_LUA_FNC_G_GUI_DRAW_SWAP_fnptr: GRID_LUA_FNC_G_GUI_DRAW_SWAP_fnptr,
|
|
@@ -2270,14 +2278,10 @@ var protocol_data = /*#__PURE__*/Object.freeze({
|
|
|
2270
2278
|
GRID_LUA_FNC_E_LED_INDEX_short: GRID_LUA_FNC_E_LED_INDEX_short,
|
|
2271
2279
|
GRID_LUA_FNC_E_LIST_length: GRID_LUA_FNC_E_LIST_length,
|
|
2272
2280
|
GRID_LUA_FNC_G_AUTOVALUE_source: GRID_LUA_FNC_G_AUTOVALUE_source,
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
GRID_LUA_FNC_G_BUTTON_CALIBRATION_SET_fnptr: GRID_LUA_FNC_G_BUTTON_CALIBRATION_SET_fnptr,
|
|
2278
|
-
GRID_LUA_FNC_G_BUTTON_CALIBRATION_SET_human: GRID_LUA_FNC_G_BUTTON_CALIBRATION_SET_human,
|
|
2279
|
-
GRID_LUA_FNC_G_BUTTON_CALIBRATION_SET_short: GRID_LUA_FNC_G_BUTTON_CALIBRATION_SET_short,
|
|
2280
|
-
GRID_LUA_FNC_G_BUTTON_CALIBRATION_SET_usage: GRID_LUA_FNC_G_BUTTON_CALIBRATION_SET_usage,
|
|
2281
|
+
GRID_LUA_FNC_G_CALIBRATION_RESET_fnptr: GRID_LUA_FNC_G_CALIBRATION_RESET_fnptr,
|
|
2282
|
+
GRID_LUA_FNC_G_CALIBRATION_RESET_human: GRID_LUA_FNC_G_CALIBRATION_RESET_human,
|
|
2283
|
+
GRID_LUA_FNC_G_CALIBRATION_RESET_short: GRID_LUA_FNC_G_CALIBRATION_RESET_short,
|
|
2284
|
+
GRID_LUA_FNC_G_CALIBRATION_RESET_usage: GRID_LUA_FNC_G_CALIBRATION_RESET_usage,
|
|
2281
2285
|
GRID_LUA_FNC_G_DECODE_human: GRID_LUA_FNC_G_DECODE_human,
|
|
2282
2286
|
GRID_LUA_FNC_G_DECODE_short: GRID_LUA_FNC_G_DECODE_short,
|
|
2283
2287
|
GRID_LUA_FNC_G_DECODE_source: GRID_LUA_FNC_G_DECODE_source,
|
|
@@ -2475,10 +2479,10 @@ var protocol_data = /*#__PURE__*/Object.freeze({
|
|
|
2475
2479
|
GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_human: GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_human,
|
|
2476
2480
|
GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_short: GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_short,
|
|
2477
2481
|
GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_usage: GRID_LUA_FNC_G_POTMETER_CALIBRATION_GET_usage,
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
+
GRID_LUA_FNC_G_POTMETER_CENTER_SET_fnptr: GRID_LUA_FNC_G_POTMETER_CENTER_SET_fnptr,
|
|
2483
|
+
GRID_LUA_FNC_G_POTMETER_CENTER_SET_human: GRID_LUA_FNC_G_POTMETER_CENTER_SET_human,
|
|
2484
|
+
GRID_LUA_FNC_G_POTMETER_CENTER_SET_short: GRID_LUA_FNC_G_POTMETER_CENTER_SET_short,
|
|
2485
|
+
GRID_LUA_FNC_G_POTMETER_CENTER_SET_usage: GRID_LUA_FNC_G_POTMETER_CENTER_SET_usage,
|
|
2482
2486
|
GRID_LUA_FNC_G_POTMETER_DETENT_SET_fnptr: GRID_LUA_FNC_G_POTMETER_DETENT_SET_fnptr,
|
|
2483
2487
|
GRID_LUA_FNC_G_POTMETER_DETENT_SET_human: GRID_LUA_FNC_G_POTMETER_DETENT_SET_human,
|
|
2484
2488
|
GRID_LUA_FNC_G_POTMETER_DETENT_SET_short: GRID_LUA_FNC_G_POTMETER_DETENT_SET_short,
|
|
@@ -2486,6 +2490,14 @@ var protocol_data = /*#__PURE__*/Object.freeze({
|
|
|
2486
2490
|
GRID_LUA_FNC_G_RANDOM_fnptr: GRID_LUA_FNC_G_RANDOM_fnptr,
|
|
2487
2491
|
GRID_LUA_FNC_G_RANDOM_human: GRID_LUA_FNC_G_RANDOM_human,
|
|
2488
2492
|
GRID_LUA_FNC_G_RANDOM_short: GRID_LUA_FNC_G_RANDOM_short,
|
|
2493
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_fnptr: GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_fnptr,
|
|
2494
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_human: GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_human,
|
|
2495
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_short: GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_short,
|
|
2496
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_usage: GRID_LUA_FNC_G_RANGE_CALIBRATION_GET_usage,
|
|
2497
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_fnptr: GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_fnptr,
|
|
2498
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_human: GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_human,
|
|
2499
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_short: GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_short,
|
|
2500
|
+
GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_usage: GRID_LUA_FNC_G_RANGE_CALIBRATION_SET_usage,
|
|
2489
2501
|
GRID_LUA_FNC_G_SEGCALC_human: GRID_LUA_FNC_G_SEGCALC_human,
|
|
2490
2502
|
GRID_LUA_FNC_G_SEGCALC_short: GRID_LUA_FNC_G_SEGCALC_short,
|
|
2491
2503
|
GRID_LUA_FNC_G_SEGCALC_source: GRID_LUA_FNC_G_SEGCALC_source,
|