@intechstudio/grid-protocol 1.20260506.533 → 1.20260515.2122
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
CHANGED
|
@@ -256,7 +256,7 @@ var GRID_LUA_FNC_G_EVENT_TRIGGER_human = "event_trigger";
|
|
|
256
256
|
var GRID_LUA_FNC_G_EVENT_TRIGGER_fnptr = "l_grid_event_trigger";
|
|
257
257
|
var GRID_LUA_FNC_G_RX_MODE_short = "grxm";
|
|
258
258
|
var GRID_LUA_FNC_G_RX_MODE_human = "rx_mode";
|
|
259
|
-
var GRID_LUA_FNC_G_RX_MODE_usage = "rx_mode(int type [, int mode]) Get or set RX routing. type: 0=MIDIVOICE 1=MIDISYSEX 2=MIDIRTM. mode: bitmask 0x01=
|
|
259
|
+
var GRID_LUA_FNC_G_RX_MODE_usage = "rx_mode(int type [, int mode]) Get or set RX routing. type: 0=MIDIVOICE 1=MIDISYSEX 2=MIDIRTM 3=EVENTVIEW. mode: bitmask 0x01=forward_from_usb 0x02=handle_external 0x04=handle_internal";
|
|
260
260
|
var GRID_LUA_FNC_G_RX_MODE_fnptr = "l_grid_rx_mode";
|
|
261
261
|
var GRID_LUA_FNC_G_MIDIRX_REGISTER_short = "gmrr";
|
|
262
262
|
var GRID_LUA_FNC_G_MIDIRX_REGISTER_human = "midirx_register";
|
|
@@ -946,8 +946,8 @@ var GRID_LUA_FNC_L_GET_RENDER_TIME_human = "get_render_time";
|
|
|
946
946
|
var GRID_LUA_FNC_L_GET_RENDER_TIME_usage = "lcd:get_render_time() Returns the time spent rendering between the last two swaps, in microseconds.";
|
|
947
947
|
var GRID_LUA_L_TYPE = "Lcd";
|
|
948
948
|
var GRID_LUA_L_META_init = "GRID_LUA_L_TYPE \" = { __index = {type = 'lcd', post_init_cb = function (self) self:\"GRID_LUA_FNC_A_INIT_short\"() end,\" GRID_LUA_FNC_ASSIGN_META_PAR1_RET(\"gen\", GRID_LUA_FNC_G_ELEMENTNAME_short) \",}}\"";
|
|
949
|
-
var GRID_ACTIONSTRING_LCD_INIT = "--[[@cb]]glsb(255)pi,s,c,self.f,self.v,self.id=math.pi,64,{{0,0,0},{255,255,255},{glr(),glg(),glb()}},1,{27,0,100},\"VSN1\" d={[1]=\"Linear\",[2]=\"Encoder\",[3]=\"Button\",[7]=\"Endless\"}xc,yc,p=160,120,s
|
|
950
|
-
var GRID_ACTIONSTRING_LCD_DRAW = "--[[@cb]]if self.f
|
|
949
|
+
var GRID_ACTIONSTRING_LCD_INIT = "--[[@cb]]glsb(255)pi,s,c,self.f,self.v,self.id=math.pi,64,{{0,0,0},{255,255,255},{glr(),glg(),glb()}},1,{27,0,100},\"VSN1\" d={[1]=\"Linear\",[2]=\"Encoder\",[3]=\"Button\",[7]=\"Endless\"}xc,yc,p=160,120,s*5/8 self.eventrx_cb=function(self,hdr,e,v,n)self.v=v if #n==0 and d[e[3]]then n=d[e[3]]..e[2]end self.id=string.sub(n,1,(self:lsw()/(s/2)-1)//1)self.f=1 end self:ldaf(0,0,319,239,c[1])self:ldrr(3,3,317,237,10,c[2])";
|
|
950
|
+
var GRID_ACTIONSTRING_LCD_DRAW = "--[[@cb]]if self.f>0 then self.f=self.f-1 local a,xo=gmaps(self.v[1],self.v[2],self.v[3],0.1,1),#tostring(self.v[1])/2*s/2-#tostring(self.v[1])-s//32 self:ldaf(10,10,310,230,c[1])self:ldrr(xc-p//1-1,yc-p//1-1,xc+p//1+1,yc+p//1+1,s,c[2])self:ldrrf(xc-p*a//1,yc-p*a//1,xc+p*a//1,yc+p*a//1,s,c[3])self:ldft(self.v[1],xc-xo,yc+s,s/2,c[2])local xn=(#self.id*(s/2))/2-s//32 self:ldft(self.id,xc-xn,yc-1.5*s,s/2,c[2])self:ldsw()end";
|
|
951
951
|
var GRID_LUA_T_TYPE = "Touch";
|
|
952
952
|
var GRID_LUA_T_META_init = "GRID_LUA_T_TYPE \" = { __index = {type = 'touch', post_init_cb = function (self) self:\" GRID_LUA_FNC_A_INIT_short \"() self:\" GRID_LUA_FNC_A_TOUCH_short \"() end,\" GRID_LUA_FNC_ASSIGN_META_PAR1_RET(\"gen\", GRID_LUA_FNC_G_ELEMENTNAME_short) \",}}\"";
|
|
953
953
|
var GRID_ACTIONSTRING_TOUCH_INIT = "--[[@cb]]--[[Touch Init]]";
|
|
@@ -4255,7 +4255,9 @@ function minifyLua(code) {
|
|
|
4255
4255
|
return line + " "; // Otherwise, join with space
|
|
4256
4256
|
})
|
|
4257
4257
|
.join("") // Combine all
|
|
4258
|
-
.replace(/
|
|
4258
|
+
.replace(/ - /g, "-") // Remove all spaces around -
|
|
4259
|
+
.replace(/(?<=[a-zA-Z0-9_)])(--)(?![\[\n])/g, "- -") // Re-insert space between consecutive minus operators (not comments)
|
|
4260
|
+
.replace(/[ \t]*([(){}\[\],;=+\*\/%><~.])[ \t]*/g, "$1") // Remove spaces/tabs around punctuation and operators
|
|
4259
4261
|
.replace(/ +/g, " ") // Collapse multiple spaces
|
|
4260
4262
|
.replace(/\n+/g, "\n") // Collapse multiple newlines to max 1
|
|
4261
4263
|
.trim(); // Remove leading/trailing whitespace
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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