@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.
@@ -6056,7 +6056,7 @@ class WebsyTable3 {
6056
6056
  <div id="${this.elementId}_hScrollHandle" class="websy-scroll-handle websy-scroll-handle-x"></div>
6057
6057
  </div>
6058
6058
  `
6059
- if (this.isTouchDevice === true) {
6059
+ if (this.isTouchDevice === true && this.options.virtualScroll === true) {
6060
6060
  html += `
6061
6061
  <div id="${this.elementId}_touchScroller" class="websy-table-touch-scroller"></div>
6062
6062
  `
@@ -7669,15 +7669,15 @@ else {
7669
7669
  // Check to see if we need to balance the min and max values
7670
7670
  if (this.options.balancedMinMax) {
7671
7671
  if (this.options.orientation === 'horizontal') {
7672
- let biggestBottom = Math.max(Math.abs(this.options.data.bottom.min, this.options.data.bottom.max))
7672
+ let biggestBottom = Math.max(Math.abs(this.options.data.bottom.min), this.options.data.bottom.max)
7673
7673
  this.options.data.bottom.min = 1 - biggestBottom
7674
7674
  this.options.data.bottom.max = biggestBottom
7675
7675
  }
7676
7676
  else {
7677
- let biggestLeft = Math.max(Math.abs(this.options.data.left.min, this.options.data.left.max))
7677
+ let biggestLeft = Math.max(Math.abs(this.options.data.left.min), this.options.data.left.max)
7678
7678
  this.options.data.left.min = 1 - biggestLeft
7679
7679
  this.options.data.left.max = biggestLeft
7680
- let biggestRight = Math.max(Math.abs(this.options.data.right.min, this.options.data.right.max))
7680
+ let biggestRight = Math.max(Math.abs(this.options.data.right.min), this.options.data.right.max)
7681
7681
  this.options.data.right.min = 1 - biggestRight
7682
7682
  this.options.data.right.max = biggestRight
7683
7683
  }
@@ -6639,7 +6639,7 @@ var WebsyTable3 = /*#__PURE__*/function () {
6639
6639
  if (el) {
6640
6640
  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 ");
6641
6641
 
6642
- if (this.isTouchDevice === true) {
6642
+ if (this.isTouchDevice === true && this.options.virtualScroll === true) {
6643
6643
  html += "\n <div id=\"".concat(this.elementId, "_touchScroller\" class=\"websy-table-touch-scroller\"></div>\n ");
6644
6644
  }
6645
6645
 
@@ -8483,14 +8483,14 @@ var WebsyChart = /*#__PURE__*/function () {
8483
8483
 
8484
8484
  if (this.options.balancedMinMax) {
8485
8485
  if (this.options.orientation === 'horizontal') {
8486
- var biggestBottom = Math.max(Math.abs(this.options.data.bottom.min, this.options.data.bottom.max));
8486
+ var biggestBottom = Math.max(Math.abs(this.options.data.bottom.min), this.options.data.bottom.max);
8487
8487
  this.options.data.bottom.min = 1 - biggestBottom;
8488
8488
  this.options.data.bottom.max = biggestBottom;
8489
8489
  } else {
8490
- var biggestLeft = Math.max(Math.abs(this.options.data.left.min, this.options.data.left.max));
8490
+ var biggestLeft = Math.max(Math.abs(this.options.data.left.min), this.options.data.left.max);
8491
8491
  this.options.data.left.min = 1 - biggestLeft;
8492
8492
  this.options.data.left.max = biggestLeft;
8493
- var biggestRight = Math.max(Math.abs(this.options.data.right.min, this.options.data.right.max));
8493
+ var biggestRight = Math.max(Math.abs(this.options.data.right.min), this.options.data.right.max);
8494
8494
  this.options.data.right.min = 1 - biggestRight;
8495
8495
  this.options.data.right.max = biggestRight;
8496
8496
  }