@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.
@@ -7563,6 +7563,7 @@ class WebsyChart {
7563
7563
  minBandWidth: 30,
7564
7564
  maxBandWidth: 100,
7565
7565
  allowUnevenBands: true,
7566
+ allowBrushing: true,
7566
7567
  balancedMinMax: false
7567
7568
  }
7568
7569
  this.elementId = elementId
@@ -8324,7 +8325,7 @@ else {
8324
8325
  maxBandWidthFits = true
8325
8326
  proposedBandWidth = this.options.maxBandWidth
8326
8327
  }
8327
- if (!maxBandWidthFits) {
8328
+ if (!maxBandWidthFits && this.options.allowBrushing === true) {
8328
8329
  // Check to see if all bars at the min allowed width will fit
8329
8330
  if (plotable / noOfPoints < this.options.minBandWidth) {
8330
8331
  this.brushNeeded = true
@@ -8527,6 +8528,9 @@ else {
8527
8528
  else {
8528
8529
  leftRange = [(this.widthForCalc + this.totalBandPadding), 0]
8529
8530
  }
8531
+ if (this.options.allowBrushing !== true) {
8532
+ bottomRange = bottomBrushRange
8533
+ }
8530
8534
  this.bottomAxis = d3[`scale${this.options.data.bottom.scale || 'Ordinal'}`]()
8531
8535
  .domain(bottomDomain)
8532
8536
  .range(bottomRange)
@@ -7251,6 +7251,7 @@ var WebsyChart = /*#__PURE__*/function () {
7251
7251
  minBandWidth: 30,
7252
7252
  maxBandWidth: 100,
7253
7253
  allowUnevenBands: true,
7254
+ allowBrushing: true,
7254
7255
  balancedMinMax: false
7255
7256
  };
7256
7257
  this.elementId = elementId;
@@ -7996,7 +7997,7 @@ var WebsyChart = /*#__PURE__*/function () {
7996
7997
  maxBandWidthFits = true;
7997
7998
  proposedBandWidth = this.options.maxBandWidth;
7998
7999
  }
7999
- if (!maxBandWidthFits) {
8000
+ if (!maxBandWidthFits && this.options.allowBrushing === true) {
8000
8001
  // Check to see if all bars at the min allowed width will fit
8001
8002
  if (plotable / noOfPoints < this.options.minBandWidth) {
8002
8003
  this.brushNeeded = true;
@@ -8148,6 +8149,9 @@ var WebsyChart = /*#__PURE__*/function () {
8148
8149
  } else {
8149
8150
  leftRange = [this.widthForCalc + this.totalBandPadding, 0];
8150
8151
  }
8152
+ if (this.options.allowBrushing !== true) {
8153
+ bottomRange = bottomBrushRange;
8154
+ }
8151
8155
  this.bottomAxis = d3["scale".concat(this.options.data.bottom.scale || 'Ordinal')]().domain(bottomDomain).range(bottomRange);
8152
8156
  if (!this.brushInitialized) {
8153
8157
  this.bottomBrushAxis = d3["scale".concat(this.options.data.bottom.scale || 'Ordinal')]().domain(bottomBrushDomain).range(bottomBrushRange);