@carbon/charts-vue 1.5.7 → 1.6.0
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.
- package/CHANGELOG.md +16 -0
- package/charts-vue.common.js +6 -2
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +6 -2
- package/charts-vue.umd.js.map +1 -1
- package/charts-vue.umd.min.js +1 -1
- package/charts-vue.umd.min.js.map +1 -1
- package/package.json +2 -2
package/charts-vue.umd.js
CHANGED
|
@@ -33857,11 +33857,15 @@ var wordcloud_WordCloud = /** @class */ (function (_super) {
|
|
|
33857
33857
|
.size([width, height])
|
|
33858
33858
|
.words(displayData.map(function (d) {
|
|
33859
33859
|
var _a;
|
|
33860
|
+
var value = d[fontSizeMapsTo];
|
|
33861
|
+
if (typeof d[fontSizeMapsTo] !== 'number') {
|
|
33862
|
+
throw Error('Badly formatted WordCloud data. `value` should only be an integer or float');
|
|
33863
|
+
}
|
|
33860
33864
|
return _a = {},
|
|
33861
33865
|
_a[groupMapsTo] = d[groupMapsTo],
|
|
33862
33866
|
_a.text = d[wordMapsTo],
|
|
33863
|
-
_a.size =
|
|
33864
|
-
_a.value =
|
|
33867
|
+
_a.size = value,
|
|
33868
|
+
_a.value = value,
|
|
33865
33869
|
_a;
|
|
33866
33870
|
}))
|
|
33867
33871
|
.padding(5)
|