@politicalwatch/tipi-uikit 1.5.8 → 1.5.10
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/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { select, selectAll } from 'd3-selection';
|
|
|
3
3
|
import { scaleOrdinal, scaleLinear } from 'd3-scale';
|
|
4
4
|
import { min, max, extent } from 'd3-array';
|
|
5
5
|
import { transition } from 'd3-transition';
|
|
6
|
-
import
|
|
6
|
+
import * as cloud from 'd3-cloud';
|
|
7
7
|
import {
|
|
8
8
|
easeLinear,
|
|
9
9
|
easePolyIn,
|
|
@@ -165,7 +165,7 @@ class d3wordscloud extends d3chart {
|
|
|
165
165
|
* Compute data before operate
|
|
166
166
|
*/
|
|
167
167
|
computeData() {
|
|
168
|
-
|
|
168
|
+
cloud()
|
|
169
169
|
.size([this.cfg.width, this.cfg.height])
|
|
170
170
|
.words(
|
|
171
171
|
this.data.map((d) => ({
|