@websy/websy-designs 1.9.6 → 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.
@@ -6764,11 +6764,14 @@ class WebsyTable3 {
6764
6764
  return // need to revisit this logic
6765
6765
  }
6766
6766
  let style = `width: ${sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth}px!important; `
6767
- let divStyle = style
6767
+ let divStyle = `width: ${sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth}px!important; `
6768
6768
  if (useWidths === true) {
6769
6769
  style += `max-width: ${sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth}px!important;`
6770
6770
  divStyle += `max-width: ${sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth}px!important;`
6771
6771
  }
6772
+ if (col.colspan > 1) {
6773
+ divStyle = `width: 100%;`
6774
+ }
6772
6775
  if (col.style) {
6773
6776
  style += col.style
6774
6777
  }
@@ -7560,6 +7563,7 @@ class WebsyChart {
7560
7563
  minBandWidth: 30,
7561
7564
  maxBandWidth: 100,
7562
7565
  allowUnevenBands: true,
7566
+ allowBrushing: true,
7563
7567
  balancedMinMax: false
7564
7568
  }
7565
7569
  this.elementId = elementId
@@ -8321,7 +8325,7 @@ else {
8321
8325
  maxBandWidthFits = true
8322
8326
  proposedBandWidth = this.options.maxBandWidth
8323
8327
  }
8324
- if (!maxBandWidthFits) {
8328
+ if (!maxBandWidthFits && this.options.allowBrushing === true) {
8325
8329
  // Check to see if all bars at the min allowed width will fit
8326
8330
  if (plotable / noOfPoints < this.options.minBandWidth) {
8327
8331
  this.brushNeeded = true
@@ -8524,6 +8528,9 @@ else {
8524
8528
  else {
8525
8529
  leftRange = [(this.widthForCalc + this.totalBandPadding), 0]
8526
8530
  }
8531
+ if (this.options.allowBrushing !== true) {
8532
+ bottomRange = bottomBrushRange
8533
+ }
8527
8534
  this.bottomAxis = d3[`scale${this.options.data.bottom.scale || 'Ordinal'}`]()
8528
8535
  .domain(bottomDomain)
8529
8536
  .range(bottomRange)
@@ -6422,11 +6422,14 @@ var WebsyTable3 = /*#__PURE__*/function () {
6422
6422
  }
6423
6423
 
6424
6424
  var style = "width: ".concat(sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth, "px!important; ");
6425
- var divStyle = style;
6425
+ var divStyle = "width: ".concat(sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth, "px!important; ");
6426
6426
  if (useWidths === true) {
6427
6427
  style += "max-width: ".concat(sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth, "px!important;");
6428
6428
  divStyle += "max-width: ".concat(sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth, "px!important;");
6429
6429
  }
6430
+ if (col.colspan > 1) {
6431
+ divStyle = "width: 100%;";
6432
+ }
6430
6433
  if (col.style) {
6431
6434
  style += col.style;
6432
6435
  }
@@ -7248,6 +7251,7 @@ var WebsyChart = /*#__PURE__*/function () {
7248
7251
  minBandWidth: 30,
7249
7252
  maxBandWidth: 100,
7250
7253
  allowUnevenBands: true,
7254
+ allowBrushing: true,
7251
7255
  balancedMinMax: false
7252
7256
  };
7253
7257
  this.elementId = elementId;
@@ -7993,7 +7997,7 @@ var WebsyChart = /*#__PURE__*/function () {
7993
7997
  maxBandWidthFits = true;
7994
7998
  proposedBandWidth = this.options.maxBandWidth;
7995
7999
  }
7996
- if (!maxBandWidthFits) {
8000
+ if (!maxBandWidthFits && this.options.allowBrushing === true) {
7997
8001
  // Check to see if all bars at the min allowed width will fit
7998
8002
  if (plotable / noOfPoints < this.options.minBandWidth) {
7999
8003
  this.brushNeeded = true;
@@ -8145,6 +8149,9 @@ var WebsyChart = /*#__PURE__*/function () {
8145
8149
  } else {
8146
8150
  leftRange = [this.widthForCalc + this.totalBandPadding, 0];
8147
8151
  }
8152
+ if (this.options.allowBrushing !== true) {
8153
+ bottomRange = bottomBrushRange;
8154
+ }
8148
8155
  this.bottomAxis = d3["scale".concat(this.options.data.bottom.scale || 'Ordinal')]().domain(bottomDomain).range(bottomRange);
8149
8156
  if (!this.brushInitialized) {
8150
8157
  this.bottomBrushAxis = d3["scale".concat(this.options.data.bottom.scale || 'Ordinal')]().domain(bottomBrushDomain).range(bottomBrushRange);