svghmi/gen_index_xhtml.xslt
changeset 3507 e87a2daace80
parent 3506 ca312be56929
parent 3495 f422d3d71f89
child 3510 0d7f9c555ae2
equal deleted inserted replaced
3506:ca312be56929 3507:e87a2daace80
  1554 </xsl:text>
  1554 </xsl:text>
  1555     <xsl:text>        let init = this.init;
  1555     <xsl:text>        let init = this.init;
  1556 </xsl:text>
  1556 </xsl:text>
  1557     <xsl:text>        if(typeof(init) == "function"){
  1557     <xsl:text>        if(typeof(init) == "function"){
  1558 </xsl:text>
  1558 </xsl:text>
  1559     <xsl:text>            // try {
  1559     <xsl:text>            try {
  1560 </xsl:text>
  1560 </xsl:text>
  1561     <xsl:text>                init.call(this);
  1561     <xsl:text>                init.call(this);
  1562 </xsl:text>
  1562 </xsl:text>
  1563     <xsl:text>            // } catch(err) {
  1563     <xsl:text>            } catch(err) {
  1564 </xsl:text>
  1564 </xsl:text>
  1565     <xsl:text>            //     console.log(err);
  1565     <xsl:text>                console.log(err);
  1566 </xsl:text>
  1566 </xsl:text>
  1567     <xsl:text>            // }
  1567     <xsl:text>            }
  1568 </xsl:text>
  1568 </xsl:text>
  1569     <xsl:text>        }
  1569     <xsl:text>        }
  1570 </xsl:text>
  1570 </xsl:text>
  1571     <xsl:text>    }
  1571     <xsl:text>    }
  1572 </xsl:text>
  1572 </xsl:text>
  7778 </xsl:text>
  7778 </xsl:text>
  7779     <xsl:text>
  7779     <xsl:text>
  7780 </xsl:text>
  7780 </xsl:text>
  7781     <xsl:text>    activate(val) {
  7781     <xsl:text>    activate(val) {
  7782 </xsl:text>
  7782 </xsl:text>
  7783     <xsl:text>        let [active, inactive] = val ? ["none",""] : ["", "none"];
  7783     <xsl:text>        let [active, inactive] = val ? ["","none"] : ["none", ""];
  7784 </xsl:text>
  7784 </xsl:text>
  7785     <xsl:text>        if (this.active_elt)
  7785     <xsl:text>        if (this.active_elt)
  7786 </xsl:text>
  7786 </xsl:text>
  7787     <xsl:text>            this.active_elt.style.display = active;
  7787     <xsl:text>            this.active_elt.style.display = active;
  7788 </xsl:text>
  7788 </xsl:text>
  7863       <xsl:text>Cartesian trend graph showing values of given variables over time</xsl:text>
  7863       <xsl:text>Cartesian trend graph showing values of given variables over time</xsl:text>
  7864     </shortdesc>
  7864     </shortdesc>
  7865     <path name="value" count="1+" accepts="HMI_INT,HMI_REAL">
  7865     <path name="value" count="1+" accepts="HMI_INT,HMI_REAL">
  7866       <xsl:text>value</xsl:text>
  7866       <xsl:text>value</xsl:text>
  7867     </path>
  7867     </path>
  7868     <arg name="size" accepts="int">
  7868     <arg name="xrange" accepts="int,time">
  7869       <xsl:text>buffer size</xsl:text>
  7869       <xsl:text>X axis range expressed either in samples or duration.</xsl:text>
  7870     </arg>
  7870     </arg>
  7871     <arg name="xformat" count="optional" accepts="string">
  7871     <arg name="xformat" count="optional" accepts="string">
  7872       <xsl:text>format string for X label</xsl:text>
  7872       <xsl:text>format string for X label</xsl:text>
  7873     </arg>
  7873     </arg>
  7874     <arg name="yformat" count="optional" accepts="string">
  7874     <arg name="yformat" count="optional" accepts="string">
  7875       <xsl:text>format string for Y label</xsl:text>
  7875       <xsl:text>format string for Y label</xsl:text>
  7876     </arg>
       
  7877     <arg name="xmin" count="optional" accepts="int,real">
       
  7878       <xsl:text>minimum value foe X axis</xsl:text>
       
  7879     </arg>
       
  7880     <arg name="xmax" count="optional" accepts="int,real">
       
  7881       <xsl:text>maximum value for X axis</xsl:text>
       
  7882     </arg>
  7876     </arg>
  7883   </xsl:template>
  7877   </xsl:template>
  7884   <xsl:template match="widget[@type='XYGraph']" mode="widget_class">
  7878   <xsl:template match="widget[@type='XYGraph']" mode="widget_class">
  7885     <xsl:text>class </xsl:text>
  7879     <xsl:text>class </xsl:text>
  7886     <xsl:text>XYGraphWidget</xsl:text>
  7880     <xsl:text>XYGraphWidget</xsl:text>