@millistream/millistream-widgets 1.0.5 → 1.0.6

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.
@@ -719,7 +719,7 @@ function Milli_Chart(settings) {
719
719
  var maxValue = _this.scaleinfoY.highLowerChart == 0 ? 100 : _this.scaleinfoY.highLowerChart + (tickSize * 0.2);
720
720
  var valuePerPixel = lineLength / maxValue;
721
721
  if (isNaN(valuePerPixel) || !isFinite(valuePerPixel)) {
722
-
722
+ () => {};
723
723
  return false;
724
724
  }
725
725
  var value = 0;
@@ -818,7 +818,7 @@ function Milli_Chart(settings) {
818
818
  var count = 0;
819
819
  for (;;) {
820
820
  if (count++ > 10) {
821
-
821
+ () => {};
822
822
  break;
823
823
  }
824
824
  var v;
@@ -876,14 +876,14 @@ function Milli_Chart(settings) {
876
876
  }
877
877
  si.valuePerPixel = si.lineLength / (si.maxValue - si.minValue);
878
878
  if (isNaN(si.valuePerPixel) || !isFinite(si.valuePerPixel)) {
879
-
879
+ () => {};
880
880
  return false;
881
881
  }
882
882
  var textpos;
883
883
  var count = 0;
884
884
  for (;;) {
885
885
  if (count++ > 10) {
886
-
886
+ () => {};
887
887
  break;
888
888
  }
889
889
  var y = Math.round(m_chartspaces.chart.height - getScaledSetting(m_chartCss.marginBottom) - ((value - si.minValue) * si.valuePerPixel));
@@ -945,7 +945,7 @@ function Milli_Chart(settings) {
945
945
  m_ctx.fillStyle = m_yLegendCss.color;
946
946
  if (0 == calcHighLow()) {
947
947
  m_ctx.restore();
948
-
948
+ () => {};
949
949
  return;
950
950
  }
951
951
  _this.scaleinfoY.lineLength = m_chartspaces.chart.bottom - m_chartspaces.chart.top;
@@ -1897,7 +1897,7 @@ function Milli_Chart(settings) {
1897
1897
  startdate = startdate.replaceAll('\/', '-');
1898
1898
  enddate = enddate.replaceAll('\/', '-');
1899
1899
  m_zoom.mousedown.timestamp = findFirstWeekDay(new Date(startdate + 'T00:00:00Z'));
1900
-
1900
+ () => {};
1901
1901
 
1902
1902
  m_zoom.mouseup.timestamp = new Date(enddate + 'T00:00:00Z');
1903
1903
 
@@ -2016,7 +2016,7 @@ function Milli_Chart(settings) {
2016
2016
  m_dataPoints.map = new Map();
2017
2017
  m_dataPoints.arr = [];
2018
2018
  if (_this.instruments.length < 0) {
2019
-
2019
+ () => {};
2020
2020
  return;
2021
2021
  }
2022
2022
  calcChartSpaces();
@@ -2106,7 +2106,7 @@ function Milli_Chart(settings) {
2106
2106
 
2107
2107
  } else
2108
2108
  if (period == 'm') {
2109
-
2109
+ () => {};
2110
2110
 
2111
2111
  if (m_zoom.mousedown.timestamp) {
2112
2112
  _this.scaleinfoX.startTimeStamp = m_zoom.mousedown.timestamp > m_zoom.mouseup.timestamp ? m_zoom.mouseup.timestamp : m_zoom.mousedown.timestamp;
@@ -2847,7 +2847,7 @@ function Milli_Chart(settings) {
2847
2847
  };
2848
2848
  req.open("GET", url, true);
2849
2849
  req.onerror = function(error) {
2850
-
2850
+ () => {};
2851
2851
  };
2852
2852
  req.send();
2853
2853
  }
@@ -3326,7 +3326,7 @@ function Milli_Chart(settings) {
3326
3326
 
3327
3327
  (function updatePixelRatio() {
3328
3328
  matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`).addEventListener('change', updatePixelRatio, { once: true });
3329
-
3329
+ () => {};
3330
3330
  _this.drawChart();
3331
3331
  })();
3332
3332
 
@@ -3337,7 +3337,6 @@ function Milli_Chart(settings) {
3337
3337
  }
3338
3338
  });
3339
3339
  }
3340
-
3341
3340
  var milli_data_api_url = 'https://stage.millistream.com/widgets/3.0.3/data/milli_widget_dataapi.php?';
3342
3341
 
3343
3342
  var millistream_data_api = {
@@ -5500,7 +5499,7 @@ function milli_widget_get_data(request, callback) {
5500
5499
  }
5501
5500
 
5502
5501
  function MillistreamWidgetApi_scrollIntoView(scrollarea, elem, xalign, yalign) {
5503
-
5502
+ () => {};
5504
5503
 
5505
5504
  if (typeof xalign == "undefined")
5506
5505
  xalign = null;
@@ -5535,7 +5534,6 @@ var MillistreamWidgetSettings = {
5535
5534
  thousandseparator: ' ',
5536
5535
  streaming: false
5537
5536
  };
5538
-
5539
5537
  function MillistreamWidgetStreamingApi(settings) {
5540
5538
  var _this = this;
5541
5539
  _this.settings = {
@@ -5673,7 +5671,7 @@ function MillistreamWidgetStreamingApi(settings) {
5673
5671
  try {
5674
5672
  m_socket = new WebSocket(_this.settings.server);
5675
5673
  m_socket.onopen = function() {
5676
-
5674
+ () => {};
5677
5675
  m_requests.forEach(function(request) {
5678
5676
  if (request.send == 0) {
5679
5677
 
@@ -5683,9 +5681,9 @@ function MillistreamWidgetStreamingApi(settings) {
5683
5681
  }
5684
5682
  };
5685
5683
  m_socket.onerror = function() {
5686
-
5684
+ () => {};
5687
5685
  m_socket.onclose = function() {
5688
-
5686
+ () => {};
5689
5687
  };
5690
5688
 
5691
5689
  m_socket.onmessage = function(msg) {
@@ -5693,7 +5691,7 @@ function MillistreamWidgetStreamingApi(settings) {
5693
5691
  try {
5694
5692
  jsondata = JSON.parse(msg.data);
5695
5693
  } catch (e) {
5696
-
5694
+ () => {};
5697
5695
 
5698
5696
  if (typeof jsondata.instruments !== 'undefined') {
5699
5697
  for (var s = 0; s < jsondata.instruments.length; s++) {
@@ -5720,20 +5718,19 @@ function MillistreamWidgetStreamingApi(settings) {
5720
5718
  if (_this.settings.statusCallback !== null) _this.settings.statusCallback(jsondata);
5721
5719
  } else
5722
5720
  if (typeof jsondata.alarm !== 'undefined') {
5723
-
5721
+ () => {};
5724
5722
  if (null != _this.settings.alarmClient) {
5725
5723
  _this.settings.alarmClient(jsondata);
5726
5724
  }
5727
5725
 
5728
5726
  } else
5729
-
5727
+ () => {};
5730
5728
  } catch (exception) {
5731
-
5729
+ () => {};
5732
5730
  }
5733
5731
  }
5734
5732
  milli_stream_connect();
5735
5733
  }
5736
-
5737
5734
  exports.Milli_Chart = Milli_Chart;
5738
5735
  exports.MillistreamWidgetSettings = MillistreamWidgetSettings;
5739
5736
  exports.formatDate = formatDate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@millistream/millistream-widgets",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Millistream widgets node package",
5
5
  "main": "millistream-widgets.js",
6
6
  "scripts": {