| | |
| | | //读取当前屏幕分辨率 |
| | | console.log(window.screen.availWidth); |
| | | console.log(window.screen.availHeight); |
| | | |
| | | debugger; |
| | | dframe.name = curDframe.name; |
| | | dframe.width = curDframe.width; |
| | | dframe.height = curDframe.height; |
| | | //根据分辨率动态调整(摄像机配置,数据栈配置,比对库管理,算力管理,实时监控) |
| | |
| | | let ratio = curDframe.width/curDframe.height; |
| | | if(curDframe.name == 'cameraAccess' || curDframe.name == 'dataStack' || curDframe.name == 'library' || curDframe.name == 'analysisPower' || curDframe.name == 'cameraVideo'){ |
| | | //处理富余高度大于140的窗口 |
| | | if(window.screen.availHeight - curDframe.height > 140){ |
| | | dframe.height = (window.screen.availHeight - curDframe.height)/2 + curDframe.height; |
| | | if(window.screen.availHeight - curDframe.height > 120){ |
| | | dframe.height = (window.screen.availHeight - curDframe.height)/2 + curDframe.height - 50; |
| | | dframe.width = dframe.height*ratio; |
| | | } |
| | | } |
| | |
| | | |
| | | state.framesOrder = order; |
| | | state.framesOffset = offset; |
| | | debugger |
| | | state.frames.push(dframe); |
| | | |
| | | return true; |
| | |
| | | |
| | | minOne.highlight = false; |
| | | debugger |
| | | minOne.screenshot = dock.screenshot; |
| | | minOne.screenshot = dock.screenshot?dock.screenshot:minOne.screenshot; |
| | | //找到minDocks最近打开的状态isShow为true的dock置为高亮 |
| | | let minLen = state.minDocks.length; |
| | | for(var i = minLen-1; i >= 0; i--){ |
| | |
| | | state.notificationCenterVisible = visible; |
| | | }, |
| | | closeFrame: (state, item) => { |
| | | debugger |
| | | state.frames.find(function (it, idx) { |
| | | if (it.id === item.id) { |
| | | state.frames.splice(idx, 1); |