Removed live indicator + began to write graphics menu

This commit is contained in:
l_samenv
2024-08-08 16:19:21 +02:00
parent 13a105183b
commit aef9813590
14 changed files with 222 additions and 8 deletions

View File

@ -270,7 +270,6 @@ let globalControls = (function (){
})();
let datesKey = "dates-indicator";
let liveKey = "live-indicator";
let globalIndicators = (function (){
@ -279,16 +278,12 @@ let globalIndicators = (function (){
function loadIndicators(panel){
let leftDate = Date.now() - 30*60*1000;
let datesIndicator = new DatesIndicator(leftDate);
let liveIndicator = new LiveStateIndicator();
panel.appendChild(datesIndicator);
panel.appendChild(liveIndicator);
liveIndicator.changeToDisable();
liveIndicator.style.marginLeft = "auto"; //sticks element to the right
datesIndicator.style.marginLeft = "auto";
datesIndicator.style.marginRight = "auto";
indicatorsMap[datesKey] = datesIndicator;
indicatorsMap[liveKey] = liveIndicator;
}
function getIndicatorsMap(){
@ -424,8 +419,6 @@ let graphs = (function (){
function setLiveMode(mode=null) {
if (mode !== null){
liveMode = mode;
if(mode) globalIndicators.getIndicatorsMap()[liveKey].changeToEnable();
else globalIndicators.getIndicatorsMap()[liveKey].changeToDisable();
}
if (liveMode && cursorLinePos === null)
// gotoNowElm.innerHTML = '';