d3plus-viz
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -37,3 +37,3 @@ import { min } from "d3-array"; | ||
}).node(); | ||
if (showColorScale) { | ||
if (this._colorScale) { | ||
var scaleData = data.filter(function (d, i) { | ||
@@ -49,9 +49,9 @@ var c = _this._colorScale(d, i); | ||
}[position] || "bottom").duration(this._duration).data(scaleData).height(height).locale(this._locale).orient(position).select(scaleGroup).value(this._colorScale).width(width).config(this._colorScaleConfig).render(); | ||
var scaleBounds = this._colorScaleClass.outerBounds(); | ||
if (position && !this._colorScaleConfig.select && scaleBounds.height) { | ||
if (wide) this._margin[position] += scaleBounds.height + this._legendClass.padding() * 2;else this._margin[position] += scaleBounds.width + this._legendClass.padding() * 2; | ||
if (showColorScale) { | ||
var scaleBounds = this._colorScaleClass.outerBounds(); | ||
if (!this._colorScaleConfig.select && scaleBounds.height) { | ||
if (wide) this._margin[position] += scaleBounds.height + this._legendClass.padding() * 2;else this._margin[position] += scaleBounds.width + this._legendClass.padding() * 2; | ||
} | ||
} | ||
} else { | ||
this._colorScaleClass.config(this._colorScaleConfig); | ||
} | ||
} |
{ | ||
"name": "d3plus-viz", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Abstract ES6 class that drives d3plus visualizations.", | ||
@@ -36,3 +36,3 @@ "main": "es/index.js", | ||
"d3plus-common": "^1.2.4", | ||
"d3plus-format": "^1.2.4", | ||
"d3plus-format": "^1.2.6", | ||
"d3plus-legend": "^1.2.1", | ||
@@ -39,0 +39,0 @@ "d3plus-text": "^1.2.3", |
@@ -968,2 +968,2 @@ # d3plus-viz | ||
###### <sub>Documentation generated on Thu, 22 Jun 2023 21:39:34 GMT</sub> | ||
###### <sub>Documentation generated on Tue, 01 Aug 2023 19:00:34 GMT</sub> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
898427
Updatedd3plus-format@^1.2.6