source: genapp/languages/html5/types/plot2d.output @ 490

Last change on this file since 490 was 490, checked in by ehb, 7 years ago
File size: 1.5 KB
Line 
1</table>
2<p>
3
4<label for="__fields:id__">__fields:label__</label></tr><tr>
5<table class="help_link">
6<tr>
7   <td></td>
8   <td id="__fields:id___title" style="text-align:center"__~fields:titlefontclass{ class="__fields:titlefontclass__"}></td>
9   <td id="__fields:id___xy" class="coord"></td>
10</tr>
11<tr>
12   <td id="__fields:id___ylabel" style="text-align:center"></td>
13   <td id="__fields:id__" type="plot2d" class="plot2ddef" style="__~fields:width{width:__fields:width__;}__~fields:height{height:__fields:height__}"></td>
14   <td id="__fields:id___legend"></td>
15</tr>
16<tr>
17   <td></td>
18   <td id="__fields:id___xlabel" style="text-align:center"></td>
19   <td></td>
20</tr>
21</table>
22__~fields:help{<span class="help">__fields:help__</span>}
23</p>
24
25<script>
26var tmp = $.plot( $( "#__fields:id__" ), [[]], gd.data( "_plot_options" ) );
27ga.value.set.plot2d.pan( "#__fields:id__", __~fields:pan{1}0 );
28ga.value.set.plot2d.zoom( "#__fields:id__", __~fields:zoom{1}0 );
29ga.value.set.plot2d.hover( "#__fields:id__", __~fields:hover{1}0 );
30ga.value.set.plot2d.pkg( "__moduleid___output", "#__fields:id__" );
31__~fields:hover{$("#__fields:id__").bind("plothover",function(e,p,i){var r=ga.set("plot2d:precision");$("#__fields:id___xy").addClass("coordvisible").text("( "+p.x.toPrecision(r)+" , "+p.y.toPrecision(r)+" )");}).on("mouseout", function(){setTimeout(function(){$("#__fields:id___xy").removeClass( "coordvisible" );}, 1500 )});}
32ga.value.setLastValue( "__moduleid___output", "#__fields:id__" );
33ga.value.extra_resets( "__fields:id__" );
34</script>
35<table>
Note: See TracBrowser for help on using the repository browser.