diff -r c2992796a859 -r a9b787d84846 svghmi/gen_index_xhtml.xslt
--- a/svghmi/gen_index_xhtml.xslt Wed Nov 23 14:18:25 2022 +0100
+++ b/svghmi/gen_index_xhtml.xslt Thu Nov 24 16:12:03 2022 +0100
@@ -1217,6 +1217,8 @@
+ const xmlns = "http://www.w3.org/2000/svg";
+
let id = document.getElementById.bind(document);
var svg_root = id("
@@ -9145,21 +9147,23 @@
// Compute visible Y range by merging fixed curves Y ranges
- for(let minmax of this.minmaxes){
-
- if(minmax){
-
- let [min,max] = minmax;
-
- if(min < y_min)
-
- y_min = min;
-
- if(max > y_max)
-
- y_max = max;
-
- }
+ for(let varopts of this.variables_options){
+
+ let minmax = varopts.minmax
+
+ if(minmax){
+
+ let [min,max] = minmax;
+
+ if(min < y_min)
+
+ y_min = min;
+
+ if(max > y_max)
+
+ y_max = max;
+
+ }
}
@@ -9167,11 +9171,11 @@
if(y_min !== Infinity && y_max !== -Infinity){
- this.fixed_y_range = true;
+ this.fixed_y_range = true;
} else {
- this.fixed_y_range = false;
+ this.fixed_y_range = false;
}
@@ -12755,8 +12759,6 @@
- const xmlns = "http://www.w3.org/2000/svg";
-
var edit_callback;
const localtypes = {"PAGE_LOCAL":null, "HMI_LOCAL":null}