diff --git a/dist/entry.js b/dist/entry.js index 20159f86fc..a1c2a8547a 100644 --- a/dist/entry.js +++ b/dist/entry.js @@ -12757,7 +12757,7 @@ p.closeConnection = function() { this.socket && this.socket.close(); }; p.downloadConnector = function() { - window.open("https://github.com/entrylabs/entry-hw/releases/download/1.1.4/Entry_HW_v1.1.4.exe", "_blank").focus(); + window.open("http://github.com/entrylabs/entry-hw/releases/download/1.1.4/Entry_HW_v1.1.4.exe", "_blank").focus(); }; p.downloadSource = function() { window.open("http://play-entry.com/down/board.ino", "_blank").focus(); diff --git a/dist/entry.min.js b/dist/entry.min.js index 459dbf2828..6627e070d6 100644 --- a/dist/entry.min.js +++ b/dist/entry.min.js @@ -1185,7 +1185,7 @@ function(){a.socketType="WebSocket";a.initHardware(b)};b.onmessage=function(b){b p.retryConnect=function(){this.connectTrial=0;this.initSocket()};p.initHardware=function(a){this.socket=a;this.connectTrial=0;this.connected=!0;Entry.dispatchEvent("hwChanged");Entry.playground&&Entry.playground.object&&Entry.playground.setMenu(Entry.playground.object.objectType)};p.setDigitalPortValue=function(a,b){this.sendQueue[a]=b;this.removePortReadable(a)};p.getAnalogPortValue=function(a){return this.connected?this.portData["a"+a]:0}; p.getDigitalPortValue=function(a){if(!this.connected)return 0;this.setPortReadable(a);return void 0!==this.portData[a]?this.portData[a]:0};p.setPortReadable=function(a){this.sendQueue.readablePorts||(this.sendQueue.readablePorts=[]);var b=!1,c;for(c in this.sendQueue.readablePorts)if(this.sendQueue.readablePorts[c]==a){b=!0;break}b||this.sendQueue.readablePorts.push(a)}; p.removePortReadable=function(a){if(this.sendQueue.readablePorts||Array.isArray(this.sendQueue.readablePorts)){var b,c;for(c in this.sendQueue.readablePorts)if(this.sendQueue.readablePorts[c]==a){b=c;break}this.sendQueue.readablePorts=b?this.sendQueue.readablePorts.slice(0,b).concat(this.sendQueue.readablePorts.slice(b+1,this.sendQueue.readablePorts.length)):[]}};p.update=function(){this.socket&&1==this.socket.readyState&&this.socket.send(JSON.stringify(this.sendQueue))}; -p.updatePortData=function(a){this.portData=a;this.hwMonitor&&this.hwMonitor.update()};p.closeConnection=function(){this.socket&&this.socket.close()};p.downloadConnector=function(){window.open("https://github.com/entrylabs/entry-hw/releases/download/1.1.4/Entry_HW_v1.1.4.exe","_blank").focus()};p.downloadSource=function(){window.open("http://play-entry.com/down/board.ino","_blank").focus()};p.setZero=function(){Entry.hw.hwModule&&Entry.hw.hwModule.setZero()}; +p.updatePortData=function(a){this.portData=a;this.hwMonitor&&this.hwMonitor.update()};p.closeConnection=function(){this.socket&&this.socket.close()};p.downloadConnector=function(){window.open("http://github.com/entrylabs/entry-hw/releases/download/1.1.4/Entry_HW_v1.1.4.exe","_blank").focus()};p.downloadSource=function(){window.open("http://play-entry.com/down/board.ino","_blank").focus()};p.setZero=function(){Entry.hw.hwModule&&Entry.hw.hwModule.setZero()}; p.checkDevice=function(a){void 0!==a.company&&(a=""+a.company+a.model,a!=this.selectedDevice&&(this.selectedDevice=a,this.hwModule=this.hwInfo[a],Entry.dispatchEvent("hwChanged"),Entry.toast.success(Lang.Menus.connect_hw,Lang.Menus.connect_message.replace("%1",Lang.Device[Entry.hw.hwModule.name]),!1)))};p.banHW=function(){var a=this.hwInfo,b;for(b in a)Entry.playground.blockMenu.banClass(a[b].name)};Entry.BlockModel=function(){Entry.Model(this)};Entry.BlockModel.prototype.schema={id:null,x:0,y:0,type:null,params:{},statements:{},prev:null,next:null,view:null};Entry.BlockRenderModel=function(){Entry.Model(this)};Entry.BlockRenderModel.prototype.schema={id:0,type:Entry.STATIC.BLOCK_RENDER_MODEL,x:0,y:0,width:0,height:0,magneting:!1};Entry.BoxModel=function(){Entry.Model(this)};Entry.BoxModel.prototype.schema={id:0,type:Entry.STATIC.BOX_MODEL,x:0,y:0,width:0,height:0};Entry.DragInstance=function(a){Entry.Model(this);this.set(a)};Entry.DragInstance.prototype.schema={type:Entry.STATIC.DRAG_INSTANCE,startX:0,startY:0,offsetX:0,offsetY:0,prev:null,height:0,mode:0,isNew:!1};Entry.ThreadModel=function(){Entry.Model(this)};Entry.ThreadModel.prototype.schema={id:0,type:Entry.STATIC.THREAD_MODEL,x:0,y:0,width:0,minWidth:0,height:0};Entry.Variable=function(a){Entry.assert("string"==typeof a.name,"Variable name must be given");this.name_=a.name;this.id_=a.id?a.id:Entry.generateHash();this.type=a.variableType?a.variableType:"variable";this.object_=a.object||null;this.isCloud_=a.isCloud||!1;var b=Entry.parseNumber(a.value);this.value_="number"==typeof b?b:a.value?a.value:0;"slide"==this.type&&(this.minValue_=a.minValue?a.minValue:0,this.maxValue_=a.maxValue?a.maxValue:100);a.isClone||(this.visible_=a.visible||"boolean"==typeof a.visible? a.visible:!0,this.x_=a.x?a.x:null,this.y_=a.y?a.y:null,"list"==this.type&&(this.width_=a.width?a.width:100,this.height_=a.height?a.height:120,this.array_=a.array?a.array:[],this.scrollPosition=0),this.BORDER=6,this.FONT="10pt NanumGothic")}; Entry.Variable.prototype.generateView=function(a){var b=this.type;if("variable"==b||"timer"==b||"answer"==b)this.view_=new createjs.Container,this.rect_=new createjs.Shape,this.view_.addChild(this.rect_),this.view_.variable=this,this.wrapper_=new createjs.Shape,this.view_.addChild(this.wrapper_),this.textView_=new createjs.Text("asdf",this.FONT,"#000000"),this.textView_.textBaseline="alphabetic",this.textView_.x=4,this.textView_.y=1,this.view_.addChild(this.textView_),this.valueView_=new createjs.Text("asdf",