@websy/websy-designs 1.7.14 → 1.7.16

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.
@@ -6471,7 +6471,7 @@ class WebsyTable3 {
6471
6471
  <div id="${this.elementId}_hScrollHandle" class="websy-scroll-handle websy-scroll-handle-x"></div>
6472
6472
  </div>
6473
6473
  `
6474
- if (this.isTouchDevice === true) {
6474
+ if (this.isTouchDevice === true && this.options.virtualScroll === true) {
6475
6475
  html += `
6476
6476
  <div id="${this.elementId}_touchScroller" class="websy-table-touch-scroller"></div>
6477
6477
  `
@@ -8084,15 +8084,15 @@ else {
8084
8084
  // Check to see if we need to balance the min and max values
8085
8085
  if (this.options.balancedMinMax) {
8086
8086
  if (this.options.orientation === 'horizontal') {
8087
- let biggestBottom = Math.max(Math.abs(this.options.data.bottom.min, this.options.data.bottom.max))
8087
+ let biggestBottom = Math.max(Math.abs(this.options.data.bottom.min), this.options.data.bottom.max)
8088
8088
  this.options.data.bottom.min = 1 - biggestBottom
8089
8089
  this.options.data.bottom.max = biggestBottom
8090
8090
  }
8091
8091
  else {
8092
- let biggestLeft = Math.max(Math.abs(this.options.data.left.min, this.options.data.left.max))
8092
+ let biggestLeft = Math.max(Math.abs(this.options.data.left.min), this.options.data.left.max)
8093
8093
  this.options.data.left.min = 1 - biggestLeft
8094
8094
  this.options.data.left.max = biggestLeft
8095
- let biggestRight = Math.max(Math.abs(this.options.data.right.min, this.options.data.right.max))
8095
+ let biggestRight = Math.max(Math.abs(this.options.data.right.min), this.options.data.right.max)
8096
8096
  this.options.data.right.min = 1 - biggestRight
8097
8097
  this.options.data.right.max = biggestRight
8098
8098
  }
@@ -7120,7 +7120,7 @@ var WebsyTable3 = /*#__PURE__*/function () {
7120
7120
  if (el) {
7121
7121
  var html = "\n <div id='".concat(this.elementId, "_tableContainer' class='websy-vis-table-3 ").concat(this.options.paging === 'pages' ? 'with-paging' : '', " ").concat(this.options.virtualScroll === true ? 'with-virtual-scroll' : '', "'>\n <!--<div class=\"download-button\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M16 11h5l-9 10-9-10h5v-11h8v11zm1 11h-10v2h10v-2z\"/></svg>\n </div>-->\n <div id=\"").concat(this.elementId, "_tableInner\" class=\"websy-table-inner-container\">\n <table id=\"").concat(this.elementId, "_tableHeader\" class=\"websy-table-header\"></table>\n <table id=\"").concat(this.elementId, "_tableBody\" class=\"websy-table-body\"></table>\n <table id=\"").concat(this.elementId, "_tableFooter\" class=\"websy-table-footer\"></table>\n <div id=\"").concat(this.elementId, "_vScrollContainer\" class=\"websy-v-scroll-container\">\n <div id=\"").concat(this.elementId, "_vScrollHandle\" class=\"websy-scroll-handle websy-scroll-handle-y\"></div>\n </div>\n <div id=\"").concat(this.elementId, "_hScrollContainer\" class=\"websy-h-scroll-container\">\n <div id=\"").concat(this.elementId, "_hScrollHandle\" class=\"websy-scroll-handle websy-scroll-handle-x\"></div>\n </div>\n ");
7122
7122
 
7123
- if (this.isTouchDevice === true) {
7123
+ if (this.isTouchDevice === true && this.options.virtualScroll === true) {
7124
7124
  html += "\n <div id=\"".concat(this.elementId, "_touchScroller\" class=\"websy-table-touch-scroller\"></div>\n ");
7125
7125
  }
7126
7126
 
@@ -8964,14 +8964,14 @@ var WebsyChart = /*#__PURE__*/function () {
8964
8964
 
8965
8965
  if (this.options.balancedMinMax) {
8966
8966
  if (this.options.orientation === 'horizontal') {
8967
- var biggestBottom = Math.max(Math.abs(this.options.data.bottom.min, this.options.data.bottom.max));
8967
+ var biggestBottom = Math.max(Math.abs(this.options.data.bottom.min), this.options.data.bottom.max);
8968
8968
  this.options.data.bottom.min = 1 - biggestBottom;
8969
8969
  this.options.data.bottom.max = biggestBottom;
8970
8970
  } else {
8971
- var biggestLeft = Math.max(Math.abs(this.options.data.left.min, this.options.data.left.max));
8971
+ var biggestLeft = Math.max(Math.abs(this.options.data.left.min), this.options.data.left.max);
8972
8972
  this.options.data.left.min = 1 - biggestLeft;
8973
8973
  this.options.data.left.max = biggestLeft;
8974
- var biggestRight = Math.max(Math.abs(this.options.data.right.min, this.options.data.right.max));
8974
+ var biggestRight = Math.max(Math.abs(this.options.data.right.min), this.options.data.right.max);
8975
8975
  this.options.data.right.min = 1 - biggestRight;
8976
8976
  this.options.data.right.max = biggestRight;
8977
8977
  }