Browse Source

Updated docs

v3_develop
jos 10 years ago
parent
commit
0cc35546e0
1 changed files with 16 additions and 1 deletions
  1. +16
    -1
      docs/graph2d.html

+ 16
- 1
docs/graph2d.html View File

@ -695,6 +695,13 @@ Graph2d.clear({options: true}); // clear options only
</td>
</tr>
<tr>
<td>getCurrentTime()</td>
<td>Date</td>
<td>Get the current time. Only applicable when option <code>showCurrentTime</code> is true.
</td>
</tr>
<tr>
<td>getCustomTime()</td>
<td>Date</td>
@ -702,10 +709,18 @@ Graph2d.clear({options: true}); // clear options only
</td>
</tr>
<tr>
<td>setCurrentTime(time)</td>
<td>none</td>
<td>Set a current time. This can be used for example to ensure that a client's time is synchronized with a shared server time.
<code>time</code> can be a Date object, numeric timestamp, or ISO date string.
Only applicable when option <code>showCurrentTime</code> is true.</td>
</tr>
<tr>
<td>setCustomTime(time)</td>
<td>none</td>
<td>Adjust the custom time bar. Only applicable when the option <code>showCustomTime</code> is true. <code>time</code> is a Date object.
<td>Adjust the custom time bar. Only applicable when the option <code>showCustomTime</code> is true. <code>time</code> can be a Date object, numeric timestamp, or ISO date string.
</td>
</tr>

Loading…
Cancel
Save