svghmi/widgets_common.ysl2
branchsvghmi
changeset 3001 003fd80ff0b8
parent 2997 2f298089e32e
child 3004 705e34c6fe93
--- a/svghmi/widgets_common.ysl2	Mon Aug 03 16:32:23 2020 +0200
+++ b/svghmi/widgets_common.ysl2	Mon Aug 03 16:34:44 2020 +0200
@@ -105,6 +105,10 @@
             }
         }
 
+        get_idx(index) {
+             let orig = this.indexes[index];
+             return this.offset ? orig + this.offset : orig;
+        }
     }
     ||
 }