@intechstudio/grid-protocol 1.20241218.1404 → 1.20250106.907
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 +31 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -593,6 +593,7 @@ var GRID_LUA_FNC_B_LIST_length = "8";
|
|
|
593
593
|
var GRID_LUA_B_META_init = "button_meta = { __index = { \" GRID_LUA_FNC_B_ELEMENT_INDEX_short \"=function (self,a) return gtv(self.index, \" GRID_LUA_FNC_B_ELEMENT_INDEX_helper \", a) end, \" GRID_LUA_FNC_B_BUTTON_NUMBER_short \"=function (self,a) return gtv(self.index, \" GRID_LUA_FNC_B_BUTTON_NUMBER_helper \", a) end, \" GRID_LUA_FNC_B_BUTTON_VALUE_short \"=function (self,a) return gtv(self.index, \" GRID_LUA_FNC_B_BUTTON_VALUE_helper \", a) end, \" GRID_LUA_FNC_B_BUTTON_MIN_short \"=function (self,a) return gtv(self.index, \" GRID_LUA_FNC_B_BUTTON_MIN_helper \", a) end, \" GRID_LUA_FNC_B_BUTTON_MAX_short \"=function (self,a) return gtv(self.index, \" GRID_LUA_FNC_B_BUTTON_MAX_helper \", a) end, \" GRID_LUA_FNC_B_BUTTON_MODE_short \"=function (self,a) return gtv(self.index, \" GRID_LUA_FNC_B_BUTTON_MODE_helper \", a) end, \" GRID_LUA_FNC_B_BUTTON_ELAPSED_short \"=function (self,a) return gtv(self.index, \" GRID_LUA_FNC_B_BUTTON_ELAPSED_helper \", a) end, \" GRID_LUA_FNC_B_BUTTON_STATE_short \"=function (self,a) return gtv(self.index, \" GRID_LUA_FNC_B_BUTTON_STATE_helper \", a) end, \" GRID_LUA_FNC_B_BUTTON_STEP_short \" =function (self) local steps, min, max, value = self:\" GRID_LUA_FNC_B_BUTTON_MODE_short \"(), self:\" GRID_LUA_FNC_B_BUTTON_MIN_short \"(), self:\" GRID_LUA_FNC_B_BUTTON_MAX_short \"(), self:\" GRID_LUA_FNC_B_BUTTON_VALUE_short \"() if steps == 0 then return false end return value // ((max - min) // steps) end, \" GRID_LUA_FNC_A_INIT_short \" = function (self) print('undefined action') end, \" GRID_LUA_FNC_A_BUTTON_short \" = function (self) print('undefined action') end, \" GRID_LUA_FNC_A_TIMER_short \" = function (self) print('undefined action') end, gtt = function (self,a) \" GRID_LUA_FNC_G_TIMER_START_short \"(self.index,a) end, gtp = function (self) \" GRID_LUA_FNC_G_TIMER_STOP_short \"(self.index) end, get = function (self,a) \" GRID_LUA_FNC_G_EVENT_TRIGGER_short \"(self.index,a) end, gen = function (self,a) return gen(self.index,a) end }}";
|
|
594
594
|
var GRID_ACTIONSTRING_BUTTON_INIT = "<?lua --[[@l]] local num,val,red,gre,blu=self:ind(),self:bva(),glr(),glg(),glb()--[[@glc]] glc(num,1,red,gre,blu)--[[@glp]] glp(num,1,val) ?>";
|
|
595
595
|
var GRID_ACTIONSTRING_BUTTON_BUTTON = "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,note,val)--[[@glp]] glp(num,1,val) ?>";
|
|
596
|
+
var GRID_UI_ENCODER_INIT_SAMPLES = "2";
|
|
596
597
|
var GRID_LUA_FNC_E_ELEMENT_INDEX_index = "0";
|
|
597
598
|
var GRID_LUA_FNC_E_ELEMENT_INDEX_helper = "0";
|
|
598
599
|
var GRID_LUA_FNC_E_ELEMENT_INDEX_short = "ind";
|
|
@@ -1381,6 +1382,7 @@ var grid_protocol_bot = {
|
|
|
1381
1382
|
GRID_LUA_B_META_init: GRID_LUA_B_META_init,
|
|
1382
1383
|
GRID_ACTIONSTRING_BUTTON_INIT: GRID_ACTIONSTRING_BUTTON_INIT,
|
|
1383
1384
|
GRID_ACTIONSTRING_BUTTON_BUTTON: GRID_ACTIONSTRING_BUTTON_BUTTON,
|
|
1385
|
+
GRID_UI_ENCODER_INIT_SAMPLES: GRID_UI_ENCODER_INIT_SAMPLES,
|
|
1384
1386
|
GRID_LUA_FNC_E_ELEMENT_INDEX_index: GRID_LUA_FNC_E_ELEMENT_INDEX_index,
|
|
1385
1387
|
GRID_LUA_FNC_E_ELEMENT_INDEX_helper: GRID_LUA_FNC_E_ELEMENT_INDEX_helper,
|
|
1386
1388
|
GRID_LUA_FNC_E_ELEMENT_INDEX_short: GRID_LUA_FNC_E_ELEMENT_INDEX_short,
|
|
@@ -2366,6 +2368,7 @@ var protocol_data = /*#__PURE__*/Object.freeze({
|
|
|
2366
2368
|
GRID_PROTOCOL_VERSION_MINOR: GRID_PROTOCOL_VERSION_MINOR,
|
|
2367
2369
|
GRID_PROTOCOL_VERSION_PATCH: GRID_PROTOCOL_VERSION_PATCH,
|
|
2368
2370
|
GRID_TEMPLATE_UI_PARAMETER_LIST_LENGTH: GRID_TEMPLATE_UI_PARAMETER_LIST_LENGTH,
|
|
2371
|
+
GRID_UI_ENCODER_INIT_SAMPLES: GRID_UI_ENCODER_INIT_SAMPLES,
|
|
2369
2372
|
default: grid_protocol_bot
|
|
2370
2373
|
});
|
|
2371
2374
|
|
|
@@ -6678,7 +6681,7 @@ lodash$1.exports;
|
|
|
6678
6681
|
return symbolToString ? symbolToString.call(value) : '';
|
|
6679
6682
|
}
|
|
6680
6683
|
var result = (value + '');
|
|
6681
|
-
return (result == '0' && (1 / value) == -
|
|
6684
|
+
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
6682
6685
|
}
|
|
6683
6686
|
|
|
6684
6687
|
/**
|
|
@@ -7833,7 +7836,7 @@ lodash$1.exports;
|
|
|
7833
7836
|
bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
|
|
7834
7837
|
|
|
7835
7838
|
if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
|
|
7836
|
-
bitmask &=
|
|
7839
|
+
bitmask &= -4;
|
|
7837
7840
|
}
|
|
7838
7841
|
var newData = [
|
|
7839
7842
|
func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
|
|
@@ -7936,7 +7939,7 @@ lodash$1.exports;
|
|
|
7936
7939
|
}
|
|
7937
7940
|
var length = partials ? partials.length : 0;
|
|
7938
7941
|
if (!length) {
|
|
7939
|
-
bitmask &=
|
|
7942
|
+
bitmask &= -97;
|
|
7940
7943
|
partials = holders = undefined$1;
|
|
7941
7944
|
}
|
|
7942
7945
|
ary = ary === undefined$1 ? ary : nativeMax(toInteger(ary), 0);
|
|
@@ -7969,7 +7972,7 @@ lodash$1.exports;
|
|
|
7969
7972
|
: nativeMax(newData[9] - length, 0);
|
|
7970
7973
|
|
|
7971
7974
|
if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
|
|
7972
|
-
bitmask &=
|
|
7975
|
+
bitmask &= -25;
|
|
7973
7976
|
}
|
|
7974
7977
|
if (!bitmask || bitmask == WRAP_BIND_FLAG) {
|
|
7975
7978
|
var result = createBind(func, bitmask, thisArg);
|
|
@@ -9201,7 +9204,7 @@ lodash$1.exports;
|
|
|
9201
9204
|
return value;
|
|
9202
9205
|
}
|
|
9203
9206
|
var result = (value + '');
|
|
9204
|
-
return (result == '0' && (1 / value) == -
|
|
9207
|
+
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
9205
9208
|
}
|
|
9206
9209
|
|
|
9207
9210
|
/**
|
|
@@ -14543,7 +14546,7 @@ lodash$1.exports;
|
|
|
14543
14546
|
* // => false
|
|
14544
14547
|
*/
|
|
14545
14548
|
function isSafeInteger(value) {
|
|
14546
|
-
return isInteger(value) && value >= -
|
|
14549
|
+
return isInteger(value) && value >= -9007199254740991 && value <= MAX_SAFE_INTEGER;
|
|
14547
14550
|
}
|
|
14548
14551
|
|
|
14549
14552
|
/**
|
|
@@ -14810,7 +14813,7 @@ lodash$1.exports;
|
|
|
14810
14813
|
return value === 0 ? value : 0;
|
|
14811
14814
|
}
|
|
14812
14815
|
value = toNumber(value);
|
|
14813
|
-
if (value === INFINITY || value === -
|
|
14816
|
+
if (value === INFINITY || value === -Infinity) {
|
|
14814
14817
|
var sign = (value < 0 ? -1 : 1);
|
|
14815
14818
|
return sign * MAX_INTEGER;
|
|
14816
14819
|
}
|
|
@@ -14979,7 +14982,7 @@ lodash$1.exports;
|
|
|
14979
14982
|
*/
|
|
14980
14983
|
function toSafeInteger(value) {
|
|
14981
14984
|
return value
|
|
14982
|
-
? baseClamp(toInteger(value), -
|
|
14985
|
+
? baseClamp(toInteger(value), -9007199254740991, MAX_SAFE_INTEGER)
|
|
14983
14986
|
: (value === 0 ? value : 0);
|
|
14984
14987
|
}
|
|
14985
14988
|
|
|
@@ -20541,7 +20544,7 @@ var GridProtocol = /** @class */ (function () {
|
|
|
20541
20544
|
.offset - 1;
|
|
20542
20545
|
var parameter_length = class_parameters[raw_class.class_name][key]
|
|
20543
20546
|
.length;
|
|
20544
|
-
var parameter_value =
|
|
20547
|
+
var parameter_value = undefined;
|
|
20545
20548
|
if (parameter_length > 0) {
|
|
20546
20549
|
parameter_value =
|
|
20547
20550
|
read_integer_from_asciicode_array(raw_class.raw, parameter_offset, parameter_length);
|
|
@@ -20680,7 +20683,7 @@ function lineSuffix(content) {
|
|
|
20680
20683
|
};
|
|
20681
20684
|
}
|
|
20682
20685
|
function group(content, willBreak) {
|
|
20683
|
-
if (willBreak ===
|
|
20686
|
+
if (willBreak === undefined) { willBreak = false; }
|
|
20684
20687
|
return {
|
|
20685
20688
|
type: 'group',
|
|
20686
20689
|
content: content,
|
|
@@ -20745,7 +20748,7 @@ var isNode = function (value) {
|
|
|
20745
20748
|
}
|
|
20746
20749
|
};
|
|
20747
20750
|
var skipOnce = function (text, idx, sequences, searchOptions) {
|
|
20748
|
-
if (searchOptions ===
|
|
20751
|
+
if (searchOptions === undefined) { searchOptions = {}; }
|
|
20749
20752
|
var skipCount = 0;
|
|
20750
20753
|
sequences.forEach(function (seq) {
|
|
20751
20754
|
var searchText = searchOptions.searchBackwards
|
|
@@ -20759,7 +20762,7 @@ var skipOnce = function (text, idx, sequences, searchOptions) {
|
|
|
20759
20762
|
return idx + (searchOptions.searchBackwards ? -skipCount : skipCount);
|
|
20760
20763
|
};
|
|
20761
20764
|
var skipMany = function (text, idx, sequences, searchOptions) {
|
|
20762
|
-
if (searchOptions ===
|
|
20765
|
+
if (searchOptions === undefined) { searchOptions = {}; }
|
|
20763
20766
|
var oldIdx = null;
|
|
20764
20767
|
while (oldIdx !== idx) {
|
|
20765
20768
|
oldIdx = idx;
|
|
@@ -20768,19 +20771,19 @@ var skipMany = function (text, idx, sequences, searchOptions) {
|
|
|
20768
20771
|
return idx;
|
|
20769
20772
|
};
|
|
20770
20773
|
var skipNewLine = function (text, idx, searchOptions) {
|
|
20771
|
-
if (searchOptions ===
|
|
20774
|
+
if (searchOptions === undefined) { searchOptions = {}; }
|
|
20772
20775
|
return skipOnce(text, idx, ['\n', '\r\n'], searchOptions);
|
|
20773
20776
|
};
|
|
20774
20777
|
var skipSpaces = function (text, idx, searchOptions) {
|
|
20775
|
-
if (searchOptions ===
|
|
20778
|
+
if (searchOptions === undefined) { searchOptions = {}; }
|
|
20776
20779
|
return skipMany(text, idx, [' ', '\t'], searchOptions);
|
|
20777
20780
|
};
|
|
20778
20781
|
var skipToLineEnd = function (text, idx, searchOptions) {
|
|
20779
|
-
if (searchOptions ===
|
|
20782
|
+
if (searchOptions === undefined) { searchOptions = {}; }
|
|
20780
20783
|
return skipMany(text, skipSpaces(text, idx), [';'], searchOptions);
|
|
20781
20784
|
};
|
|
20782
20785
|
var hasNewLine = function (text, idx, searchOptions) {
|
|
20783
|
-
if (searchOptions ===
|
|
20786
|
+
if (searchOptions === undefined) { searchOptions = {}; }
|
|
20784
20787
|
var endOfLineIdx = skipSpaces(text, idx, searchOptions);
|
|
20785
20788
|
var nextLineIdx = skipNewLine(text, endOfLineIdx, searchOptions);
|
|
20786
20789
|
return endOfLineIdx !== nextLineIdx;
|
|
@@ -20811,7 +20814,7 @@ var skipTrailingComment = function (text, idx) {
|
|
|
20811
20814
|
return idx;
|
|
20812
20815
|
};
|
|
20813
20816
|
var isNextLineEmpty = function (text, idx, searchOptions) {
|
|
20814
|
-
if (searchOptions ===
|
|
20817
|
+
if (searchOptions === undefined) { searchOptions = {
|
|
20815
20818
|
searchBackwards: false,
|
|
20816
20819
|
}; }
|
|
20817
20820
|
idx = skipToLineEnd(text, idx, searchOptions);
|
|
@@ -20837,7 +20840,7 @@ function getChildrenOfNode(node) {
|
|
|
20837
20840
|
var children = [];
|
|
20838
20841
|
function addChild(n) {
|
|
20839
20842
|
if (n && typeof n.type === 'string' && n.type !== 'Comment') {
|
|
20840
|
-
var idx =
|
|
20843
|
+
var idx = undefined;
|
|
20841
20844
|
for (idx = children.length - 1; idx >= 0; --idx) {
|
|
20842
20845
|
if (locStart(children[idx]) <= locStart(n) &&
|
|
20843
20846
|
locEnd(children[idx]) <= locEnd(node)) {
|
|
@@ -20926,7 +20929,7 @@ function injectShebang(ast, options) {
|
|
|
20926
20929
|
});
|
|
20927
20930
|
}
|
|
20928
20931
|
function printDanglingComments(path, sameIndent) {
|
|
20929
|
-
if (sameIndent ===
|
|
20932
|
+
if (sameIndent === undefined) { sameIndent = false; }
|
|
20930
20933
|
var node = path.getValue();
|
|
20931
20934
|
if (!node || !node.attachedComments) {
|
|
20932
20935
|
return '';
|
|
@@ -21219,7 +21222,7 @@ var FastPath = (function () {
|
|
|
21219
21222
|
return null;
|
|
21220
21223
|
};
|
|
21221
21224
|
FastPath.prototype.getParent = function (depth) {
|
|
21222
|
-
if (depth ===
|
|
21225
|
+
if (depth === undefined) { depth = 0; }
|
|
21223
21226
|
return this.getNodeAtDepth(depth + 1);
|
|
21224
21227
|
};
|
|
21225
21228
|
FastPath.prototype.call = function (callback, field) {
|
|
@@ -21231,7 +21234,7 @@ var FastPath = (function () {
|
|
|
21231
21234
|
return result;
|
|
21232
21235
|
};
|
|
21233
21236
|
FastPath.prototype.forEach = function (callback, field) {
|
|
21234
|
-
if (field ===
|
|
21237
|
+
if (field === undefined) { field = null; }
|
|
21235
21238
|
var value = this.getValue();
|
|
21236
21239
|
var origLength = this.stack.length;
|
|
21237
21240
|
if (field) {
|
|
@@ -21942,7 +21945,7 @@ luaparse$1.exports;
|
|
|
21942
21945
|
// Used to determine if values are of the language type `Object`
|
|
21943
21946
|
var freeExports = exports && !exports.nodeType && exports
|
|
21944
21947
|
// Detect free variable `module`
|
|
21945
|
-
, freeModule =
|
|
21948
|
+
, freeModule = !module.nodeType && module
|
|
21946
21949
|
// Detect free variable `global`, from Node.js or Browserified code, and
|
|
21947
21950
|
// use it as `window`
|
|
21948
21951
|
, freeGlobal = freeExports && freeModule && typeof commonjsGlobal === 'object' && commonjsGlobal
|
|
@@ -24615,7 +24618,7 @@ luaparse$1.exports;
|
|
|
24615
24618
|
}
|
|
24616
24619
|
|
|
24617
24620
|
features = assign({}, versionFeatures[options.luaVersion]);
|
|
24618
|
-
if (options.extendedIdentifiers !==
|
|
24621
|
+
if (options.extendedIdentifiers !== undefined)
|
|
24619
24622
|
features.extendedIdentifiers = !!options.extendedIdentifiers;
|
|
24620
24623
|
|
|
24621
24624
|
if (!Object.prototype.hasOwnProperty.call(encodingModes, options.encodingMode)) {
|
|
@@ -24712,7 +24715,7 @@ Diff.prototype = {
|
|
|
24712
24715
|
maxEditLength = Math.min(maxEditLength, options.maxEditLength);
|
|
24713
24716
|
}
|
|
24714
24717
|
|
|
24715
|
-
var maxExecutionTime = (_options$timeout = options.timeout) !== null && _options$timeout !==
|
|
24718
|
+
var maxExecutionTime = (_options$timeout = options.timeout) !== null && _options$timeout !== undefined ? _options$timeout : Infinity;
|
|
24716
24719
|
var abortAfterTimestamp = Date.now() + maxExecutionTime;
|
|
24717
24720
|
var bestPath = [{
|
|
24718
24721
|
oldPos: -1,
|
|
@@ -24751,7 +24754,7 @@ Diff.prototype = {
|
|
|
24751
24754
|
|
|
24752
24755
|
function execEditLength() {
|
|
24753
24756
|
for (var diagonalPath = Math.max(minDiagonalToConsider, -editLength); diagonalPath <= Math.min(maxDiagonalToConsider, editLength); diagonalPath += 2) {
|
|
24754
|
-
var basePath =
|
|
24757
|
+
var basePath = undefined;
|
|
24755
24758
|
var removePath = bestPath[diagonalPath - 1],
|
|
24756
24759
|
addPath = bestPath[diagonalPath + 1];
|
|
24757
24760
|
|
|
@@ -25096,7 +25099,7 @@ jsonDiff.castInput = function (value) {
|
|
|
25096
25099
|
var _this$options = this.options,
|
|
25097
25100
|
undefinedReplacement = _this$options.undefinedReplacement,
|
|
25098
25101
|
_this$options$stringi = _this$options.stringifyReplacer,
|
|
25099
|
-
stringifyReplacer = _this$options$stringi ===
|
|
25102
|
+
stringifyReplacer = _this$options$stringi === undefined ? function (k, v) {
|
|
25100
25103
|
return typeof v === 'undefined' ? undefinedReplacement : v;
|
|
25101
25104
|
} : _this$options$stringi;
|
|
25102
25105
|
return typeof value === 'string' ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, ' ');
|
|
@@ -25213,7 +25216,7 @@ luaparse.exports;
|
|
|
25213
25216
|
// Used to determine if values are of the language type `Object`
|
|
25214
25217
|
var freeExports = exports && !exports.nodeType && exports
|
|
25215
25218
|
// Detect free variable `module`
|
|
25216
|
-
, freeModule =
|
|
25219
|
+
, freeModule = !module.nodeType && module
|
|
25217
25220
|
// Detect free variable `global`, from Node.js or Browserified code, and
|
|
25218
25221
|
// use it as `window`
|
|
25219
25222
|
, freeGlobal = freeExports && freeModule && typeof commonjsGlobal$1 == 'object' && commonjsGlobal$1
|
|
@@ -30174,7 +30177,7 @@ const subset = subset_1;
|
|
|
30174
30177
|
var minify = minify$1;
|
|
30175
30178
|
var GridValidator = /** @class */ (function () {
|
|
30176
30179
|
function GridValidator(inputSet) {
|
|
30177
|
-
if (inputSet ===
|
|
30180
|
+
if (inputSet === undefined) { inputSet = []; }
|
|
30178
30181
|
this.regex_short = {};
|
|
30179
30182
|
this.regex_human = {};
|
|
30180
30183
|
this.lookup = [];
|