iobroker.ebus 3.0.0 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -144,10 +144,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
144
144
  };
145
145
 
146
146
  function init(plot) {
147
- plot.hooks.processOptions.push(function (plot, options) {
148
-
149
- console.log('??????? ');
150
-
147
+ plot.hooks.processOptions.push(function(plot, options) {
151
148
  if (!options.axisLabels.show) {
152
149
  return;
153
150
  }
@@ -45,6 +45,8 @@ the tooltip from webcharts).
45
45
  var lastMouseMoveEvent;
46
46
  var highlights = [];
47
47
 
48
+ console.log("hover init");
49
+
48
50
  function bindEvents(plot, eventHolder) {
49
51
  var o = plot.getOptions();
50
52
 
@@ -99,6 +99,8 @@ Licensed under the MIT license.
99
99
  // where series is either just the data as [ [x1, y1], [x2, y2], ... ]
100
100
  // or { data: [ [x1, y1], [x2, y2], ... ], label: "some label", ... }
101
101
 
102
+ console.log("xxx Plot started...");
103
+
102
104
  var series = [],
103
105
  options = {
104
106
  // the color theme used for graphs
@@ -380,6 +382,8 @@ Licensed under the MIT license.
380
382
  Canvas: Canvas
381
383
  };
382
384
 
385
+ console.log("init plugins " + plugins.length);
386
+
383
387
  for (var i = 0; i < plugins.length; ++i) {
384
388
  var p = plugins[i];
385
389
  p.init(plot, classes);
@@ -1520,7 +1524,7 @@ Licensed under the MIT license.
1520
1524
  var magn = parseFloat('1e' + (-dec)),
1521
1525
  norm = delta / magn;
1522
1526
 
1523
- if (norm > 2.25 && norm < 3 && (dec + 1) <= tickDecimals) {
1527
+ if (norm > 2.25 && norm < 3 && (tickDecimals == null || (dec + 1) <= tickDecimals)) {
1524
1528
  //we need an extra decimals when tickSize is 2.5
1525
1529
  ++dec;
1526
1530
  }
@@ -1777,37 +1781,35 @@ Licensed under the MIT license.
1777
1781
  surface.clear();
1778
1782
  executeHooks(hooks.drawBackground, [ctx]);
1779
1783
 
1780
-
1781
1784
  var grid = options.grid;
1782
-
1785
+
1783
1786
  // draw background, if any
1784
1787
  if (grid.show && grid.backgroundColor) {
1785
1788
  drawBackground();
1786
1789
  }
1787
-
1790
+
1788
1791
  if (grid.show && !grid.aboveData) {
1789
1792
  drawGrid();
1790
1793
  }
1791
-
1794
+
1792
1795
  for (var i = 0; i < series.length; ++i) {
1793
1796
  executeHooks(hooks.drawSeries, [ctx, series[i], i, getColorOrGradient]);
1794
1797
  drawSeries(series[i]);
1795
1798
  }
1796
-
1799
+
1797
1800
  executeHooks(hooks.draw, [ctx]);
1798
-
1801
+
1799
1802
  if (grid.show && grid.aboveData) {
1800
1803
  drawGrid();
1801
1804
  }
1802
-
1805
+
1803
1806
  surface.render();
1804
-
1807
+
1805
1808
  // A draw implies that either the axes or data have changed, so we
1806
1809
  // should probably update the overlay highlights as well.
1807
1810
  triggerRedrawOverlay();
1808
-
1809
- ShowTickLabels();
1810
1811
 
1812
+ ShowTickLabels();
1811
1813
  }
1812
1814
 
1813
1815
  //*******************************************************************
@@ -2447,9 +2449,9 @@ Licensed under the MIT license.
2447
2449
  //*******************************************************************
2448
2450
  //labelBoxes.push(drawAxisLabel(axis.ticks[0], labelBoxes));
2449
2451
  //labelBoxes.push(drawAxisLabel(axis.ticks[axis.ticks.length - 1], labelBoxes));
2450
- for (i = 1; i < axis.ticks.length - 1; ++i) {
2451
- //labelBoxes.push(drawAxisLabel(axis.ticks[i], labelBoxes));
2452
- }
2452
+ //for (i = 1; i < axis.ticks.length - 1; ++i) {
2453
+ // labelBoxes.push(drawAxisLabel(axis.ticks[i], labelBoxes));
2454
+ //}
2453
2455
  break;
2454
2456
  case 'all':
2455
2457
  //*******************************************************************
@@ -2458,9 +2460,9 @@ Licensed under the MIT license.
2458
2460
  //*******************************************************************
2459
2461
  //labelBoxes.push(drawAxisLabel(axis.ticks[0], []));
2460
2462
  //labelBoxes.push(drawAxisLabel(axis.ticks[axis.ticks.length - 1], labelBoxes));
2461
- for (i = 1; i < axis.ticks.length - 1; ++i) {
2462
- //labelBoxes.push(drawAxisLabel(axis.ticks[i], labelBoxes));
2463
- }
2463
+ //for (i = 1; i < axis.ticks.length - 1; ++i) {
2464
+ // labelBoxes.push(drawAxisLabel(axis.ticks[i], labelBoxes));
2465
+ //}
2464
2466
  break;
2465
2467
  }
2466
2468
  });
@@ -31,11 +31,11 @@ API.txt for details.
31
31
 
32
32
  var oldSetTime = newDate.setTime.bind(newDate);
33
33
  newDate.update = function(microEpoch) {
34
- oldSetTime(microEpoch);
35
-
36
34
  // Round epoch to 3 decimal accuracy
37
35
  microEpoch = Math.round(microEpoch * 1000) / 1000;
38
36
 
37
+ oldSetTime(microEpoch);
38
+
39
39
  // Microseconds are stored as integers
40
40
  this.microseconds = 1000 * (microEpoch - Math.floor(microEpoch));
41
41
  };
@@ -395,11 +395,10 @@ API.txt for details.
395
395
  // reset smaller components
396
396
 
397
397
  if (step >= timeUnitSize.millisecond) {
398
- if (step >= timeUnitSize.second) {
399
- d.setMicroseconds(0);
400
- } else {
401
- d.setMicroseconds(d.getMilliseconds() * 1000);
402
- }
398
+ d.setMicroseconds(0);
399
+ }
400
+ if (step >= timeUnitSize.second) {
401
+ d.setMilliseconds(0);
403
402
  }
404
403
  if (step >= timeUnitSize.minute) {
405
404
  d.setSeconds(0);
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Globalize Culture en-US
3
+ *
4
+ * http://github.com/jquery/globalize
5
+ *
6
+ * Copyright Software Freedom Conservancy, Inc.
7
+ * Dual licensed under the MIT or GPL Version 2 licenses.
8
+ * http://jquery.org/license
9
+ *
10
+ * This file was generated by the Globalize Culture Generator
11
+ * Translation: bugs found in this file need to be fixed in the generator
12
+ */
13
+
14
+ (function( window, undefined ) {
15
+
16
+ var Globalize;
17
+
18
+ if ( typeof require !== "undefined" &&
19
+ typeof exports !== "undefined" &&
20
+ typeof module !== "undefined" ) {
21
+ // Assume CommonJS
22
+ Globalize = require( "globalize" );
23
+ } else {
24
+ // Global variable
25
+ Globalize = window.Globalize;
26
+ }
27
+
28
+ Globalize.addCultureInfo( "en-US", "default", {
29
+ name: "en-US",
30
+ englishName: "English (United States)"
31
+ });
32
+
33
+ }( this ));