make Graphics work again

as base for Mathis work
This commit is contained in:
l_samenv
2024-07-11 10:05:17 +02:00
parent 3fd8bc6bf3
commit 91be383803
7 changed files with 123 additions and 112 deletions

View File

@ -300,7 +300,8 @@ function successHandler(s, message) {
}
}
} else if (message.path == '_overview') {
isl = insertSlide(s, message.title, "_overview", createContent(sLocal, message));
// remove comment of next line when you want overview _instead_ of Graphics
// isl = insertSlide(s, message.title, "_overview", createContent(sLocal, message));
// swiper[sLocal].slideTo(isl); /* go to found slide */
} else {
// insertSlide(s, message.title, message.path, createContent(s, message));

View File

@ -276,7 +276,7 @@ let graphs = (function (){
tag_dict[block.tag] = gindex;
let dict = {}
for (let curve of block.curves) {
if (curve.show) {
if (curve.show !== false) {
vars_array[gindex].push(curve.name);
dict[curve.name] = curve;
}
@ -752,7 +752,7 @@ let graphs = (function (){
}
// this block is either not shown or only in a hidden graph
for (let curve of block.curves) {
if (curve.show) shown = true;
if (curve.show !== false) shown = true;
}
if (shown) break;
}
@ -834,6 +834,7 @@ let graphs = (function (){
panCallback: panCallback,
receivedVars: receivedVars,
createSelection: createSelection,
createGraphs: createGraphs,
doUpdates: function(){return liveMode},
update: update,
updateAuto: updateAuto,

View File

@ -41,9 +41,9 @@ function createContent(s, message) {
for (var i = 0; i < message.components.length; i++) {
var component = message.components[i];
if (!("title" in component))
component.title = name;
component.title = component.name;
if (!("command" in component))
component.command = name;
component.command = component.name;
createFunc = window['create_' + component.type + '_row']
if (createFunc)
content.appendChild(createFunc(s, component))

View File

@ -75,7 +75,7 @@ new Settings()
.treat("showMain", "sm", to_bool, true)
.treat("showConsole", "sc", to_bool, true)
.treat("showOverview", "so", to_bool, true)
.treat("showGraphics", "sg", to_bool, false)
.treat("showGraphics", "sg", to_bool, true) // false)
.treat("showAsync", "sa", to_bool, false)
function loadFirstBlocks() {