@websy/websy-designs 1.7.15 → 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.
|
@@ -8084,15 +8084,15 @@ else {
|
|
|
8084
8084
|
// Check to see if we need to balance the min and max values
|
|
8085
8085
|
if (this.options.balancedMinMax) {
|
|
8086
8086
|
if (this.options.orientation === 'horizontal') {
|
|
8087
|
-
let biggestBottom = Math.max(Math.abs(this.options.data.bottom.min, this.options.data.bottom.max)
|
|
8087
|
+
let biggestBottom = Math.max(Math.abs(this.options.data.bottom.min), this.options.data.bottom.max)
|
|
8088
8088
|
this.options.data.bottom.min = 1 - biggestBottom
|
|
8089
8089
|
this.options.data.bottom.max = biggestBottom
|
|
8090
8090
|
}
|
|
8091
8091
|
else {
|
|
8092
|
-
let biggestLeft = Math.max(Math.abs(this.options.data.left.min, this.options.data.left.max)
|
|
8092
|
+
let biggestLeft = Math.max(Math.abs(this.options.data.left.min), this.options.data.left.max)
|
|
8093
8093
|
this.options.data.left.min = 1 - biggestLeft
|
|
8094
8094
|
this.options.data.left.max = biggestLeft
|
|
8095
|
-
let biggestRight = Math.max(Math.abs(this.options.data.right.min, this.options.data.right.max)
|
|
8095
|
+
let biggestRight = Math.max(Math.abs(this.options.data.right.min), this.options.data.right.max)
|
|
8096
8096
|
this.options.data.right.min = 1 - biggestRight
|
|
8097
8097
|
this.options.data.right.max = biggestRight
|
|
8098
8098
|
}
|
package/dist/websy-designs.js
CHANGED
|
@@ -8964,14 +8964,14 @@ var WebsyChart = /*#__PURE__*/function () {
|
|
|
8964
8964
|
|
|
8965
8965
|
if (this.options.balancedMinMax) {
|
|
8966
8966
|
if (this.options.orientation === 'horizontal') {
|
|
8967
|
-
var biggestBottom = Math.max(Math.abs(this.options.data.bottom.min, this.options.data.bottom.max)
|
|
8967
|
+
var biggestBottom = Math.max(Math.abs(this.options.data.bottom.min), this.options.data.bottom.max);
|
|
8968
8968
|
this.options.data.bottom.min = 1 - biggestBottom;
|
|
8969
8969
|
this.options.data.bottom.max = biggestBottom;
|
|
8970
8970
|
} else {
|
|
8971
|
-
var biggestLeft = Math.max(Math.abs(this.options.data.left.min, this.options.data.left.max)
|
|
8971
|
+
var biggestLeft = Math.max(Math.abs(this.options.data.left.min), this.options.data.left.max);
|
|
8972
8972
|
this.options.data.left.min = 1 - biggestLeft;
|
|
8973
8973
|
this.options.data.left.max = biggestLeft;
|
|
8974
|
-
var biggestRight = Math.max(Math.abs(this.options.data.right.min, this.options.data.right.max)
|
|
8974
|
+
var biggestRight = Math.max(Math.abs(this.options.data.right.min), this.options.data.right.max);
|
|
8975
8975
|
this.options.data.right.min = 1 - biggestRight;
|
|
8976
8976
|
this.options.data.right.max = biggestRight;
|
|
8977
8977
|
}
|