@websy/websy-designs 1.9.7 → 1.9.8

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.
@@ -7147,6 +7147,7 @@ class WebsyChart {
7147
7147
  minBandWidth: 30,
7148
7148
  maxBandWidth: 100,
7149
7149
  allowUnevenBands: true,
7150
+ allowBrushing: true,
7150
7151
  balancedMinMax: false
7151
7152
  }
7152
7153
  this.elementId = elementId
@@ -7908,7 +7909,7 @@ else {
7908
7909
  maxBandWidthFits = true
7909
7910
  proposedBandWidth = this.options.maxBandWidth
7910
7911
  }
7911
- if (!maxBandWidthFits) {
7912
+ if (!maxBandWidthFits && this.options.allowBrushing === true) {
7912
7913
  // Check to see if all bars at the min allowed width will fit
7913
7914
  if (plotable / noOfPoints < this.options.minBandWidth) {
7914
7915
  this.brushNeeded = true
@@ -8111,6 +8112,9 @@ else {
8111
8112
  else {
8112
8113
  leftRange = [(this.widthForCalc + this.totalBandPadding), 0]
8113
8114
  }
8115
+ if (this.options.allowBrushing !== true) {
8116
+ bottomRange = bottomBrushRange
8117
+ }
8114
8118
  this.bottomAxis = d3[`scale${this.options.data.bottom.scale || 'Ordinal'}`]()
8115
8119
  .domain(bottomDomain)
8116
8120
  .range(bottomRange)
@@ -6858,6 +6858,7 @@ var WebsyChart = /*#__PURE__*/function () {
6858
6858
  minBandWidth: 30,
6859
6859
  maxBandWidth: 100,
6860
6860
  allowUnevenBands: true,
6861
+ allowBrushing: true,
6861
6862
  balancedMinMax: false
6862
6863
  };
6863
6864
  this.elementId = elementId;
@@ -7603,7 +7604,7 @@ var WebsyChart = /*#__PURE__*/function () {
7603
7604
  maxBandWidthFits = true;
7604
7605
  proposedBandWidth = this.options.maxBandWidth;
7605
7606
  }
7606
- if (!maxBandWidthFits) {
7607
+ if (!maxBandWidthFits && this.options.allowBrushing === true) {
7607
7608
  // Check to see if all bars at the min allowed width will fit
7608
7609
  if (plotable / noOfPoints < this.options.minBandWidth) {
7609
7610
  this.brushNeeded = true;
@@ -7755,6 +7756,9 @@ var WebsyChart = /*#__PURE__*/function () {
7755
7756
  } else {
7756
7757
  leftRange = [this.widthForCalc + this.totalBandPadding, 0];
7757
7758
  }
7759
+ if (this.options.allowBrushing !== true) {
7760
+ bottomRange = bottomBrushRange;
7761
+ }
7758
7762
  this.bottomAxis = d3["scale".concat(this.options.data.bottom.scale || 'Ordinal')]().domain(bottomDomain).range(bottomRange);
7759
7763
  if (!this.brushInitialized) {
7760
7764
  this.bottomBrushAxis = d3["scale".concat(this.options.data.bottom.scale || 'Ordinal')]().domain(bottomBrushDomain).range(bottomBrushRange);