@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.
|
@@ -6348,11 +6348,14 @@ class WebsyTable3 {
|
|
|
6348
6348
|
return // need to revisit this logic
|
|
6349
6349
|
}
|
|
6350
6350
|
let style = `width: ${sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth}px!important; `
|
|
6351
|
-
let divStyle =
|
|
6351
|
+
let divStyle = `width: ${sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth}px!important; `
|
|
6352
6352
|
if (useWidths === true) {
|
|
6353
6353
|
style += `max-width: ${sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth}px!important;`
|
|
6354
6354
|
divStyle += `max-width: ${sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth}px!important;`
|
|
6355
6355
|
}
|
|
6356
|
+
if (col.colspan > 1) {
|
|
6357
|
+
divStyle = `width: 100%;`
|
|
6358
|
+
}
|
|
6356
6359
|
if (col.style) {
|
|
6357
6360
|
style += col.style
|
|
6358
6361
|
}
|
|
@@ -7144,6 +7147,7 @@ class WebsyChart {
|
|
|
7144
7147
|
minBandWidth: 30,
|
|
7145
7148
|
maxBandWidth: 100,
|
|
7146
7149
|
allowUnevenBands: true,
|
|
7150
|
+
allowBrushing: true,
|
|
7147
7151
|
balancedMinMax: false
|
|
7148
7152
|
}
|
|
7149
7153
|
this.elementId = elementId
|
|
@@ -7905,7 +7909,7 @@ else {
|
|
|
7905
7909
|
maxBandWidthFits = true
|
|
7906
7910
|
proposedBandWidth = this.options.maxBandWidth
|
|
7907
7911
|
}
|
|
7908
|
-
if (!maxBandWidthFits) {
|
|
7912
|
+
if (!maxBandWidthFits && this.options.allowBrushing === true) {
|
|
7909
7913
|
// Check to see if all bars at the min allowed width will fit
|
|
7910
7914
|
if (plotable / noOfPoints < this.options.minBandWidth) {
|
|
7911
7915
|
this.brushNeeded = true
|
|
@@ -8108,6 +8112,9 @@ else {
|
|
|
8108
8112
|
else {
|
|
8109
8113
|
leftRange = [(this.widthForCalc + this.totalBandPadding), 0]
|
|
8110
8114
|
}
|
|
8115
|
+
if (this.options.allowBrushing !== true) {
|
|
8116
|
+
bottomRange = bottomBrushRange
|
|
8117
|
+
}
|
|
8111
8118
|
this.bottomAxis = d3[`scale${this.options.data.bottom.scale || 'Ordinal'}`]()
|
|
8112
8119
|
.domain(bottomDomain)
|
|
8113
8120
|
.range(bottomRange)
|
|
@@ -6029,11 +6029,14 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6029
6029
|
}
|
|
6030
6030
|
|
|
6031
6031
|
var style = "width: ".concat(sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth, "px!important; ");
|
|
6032
|
-
var divStyle =
|
|
6032
|
+
var divStyle = "width: ".concat(sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth, "px!important; ");
|
|
6033
6033
|
if (useWidths === true) {
|
|
6034
6034
|
style += "max-width: ".concat(sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth, "px!important;");
|
|
6035
6035
|
divStyle += "max-width: ".concat(sizingColumns[colIndex].width || sizingColumns[colIndex].actualWidth, "px!important;");
|
|
6036
6036
|
}
|
|
6037
|
+
if (col.colspan > 1) {
|
|
6038
|
+
divStyle = "width: 100%;";
|
|
6039
|
+
}
|
|
6037
6040
|
if (col.style) {
|
|
6038
6041
|
style += col.style;
|
|
6039
6042
|
}
|
|
@@ -6855,6 +6858,7 @@ var WebsyChart = /*#__PURE__*/function () {
|
|
|
6855
6858
|
minBandWidth: 30,
|
|
6856
6859
|
maxBandWidth: 100,
|
|
6857
6860
|
allowUnevenBands: true,
|
|
6861
|
+
allowBrushing: true,
|
|
6858
6862
|
balancedMinMax: false
|
|
6859
6863
|
};
|
|
6860
6864
|
this.elementId = elementId;
|
|
@@ -7600,7 +7604,7 @@ var WebsyChart = /*#__PURE__*/function () {
|
|
|
7600
7604
|
maxBandWidthFits = true;
|
|
7601
7605
|
proposedBandWidth = this.options.maxBandWidth;
|
|
7602
7606
|
}
|
|
7603
|
-
if (!maxBandWidthFits) {
|
|
7607
|
+
if (!maxBandWidthFits && this.options.allowBrushing === true) {
|
|
7604
7608
|
// Check to see if all bars at the min allowed width will fit
|
|
7605
7609
|
if (plotable / noOfPoints < this.options.minBandWidth) {
|
|
7606
7610
|
this.brushNeeded = true;
|
|
@@ -7752,6 +7756,9 @@ var WebsyChart = /*#__PURE__*/function () {
|
|
|
7752
7756
|
} else {
|
|
7753
7757
|
leftRange = [this.widthForCalc + this.totalBandPadding, 0];
|
|
7754
7758
|
}
|
|
7759
|
+
if (this.options.allowBrushing !== true) {
|
|
7760
|
+
bottomRange = bottomBrushRange;
|
|
7761
|
+
}
|
|
7755
7762
|
this.bottomAxis = d3["scale".concat(this.options.data.bottom.scale || 'Ordinal')]().domain(bottomDomain).range(bottomRange);
|
|
7756
7763
|
if (!this.brushInitialized) {
|
|
7757
7764
|
this.bottomBrushAxis = d3["scale".concat(this.options.data.bottom.scale || 'Ordinal')]().domain(bottomBrushDomain).range(bottomBrushRange);
|