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