-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
62 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ import * as echarts from 'echarts'; | |
import 'echarts-wordcloud'; | ||
``` | ||
|
||
NOTE: | ||
⚠️ NOTE: | ||
|
||
echarts-wordcloud@2 is for echarts@5 | ||
echarts-wordcloud@1 is for echarts@4 | ||
|
@@ -52,7 +52,7 @@ chart.setOption({ | |
shape: 'circle', | ||
|
||
// Keep aspect ratio of maskImage or 1:1 for shapes | ||
// This option is supported from [email protected] | ||
// This option is supported since [email protected] | ||
keepAspect: false, | ||
|
||
// A silhouette image which the white area will be excluded from drawing texts. | ||
|
@@ -85,10 +85,17 @@ chart.setOption({ | |
|
||
gridSize: 8, | ||
|
||
// set to true to allow word being draw partly outside of the canvas. | ||
// set to true to allow word to be drawn partly outside of the canvas. | ||
// Allow word bigger than the size of the canvas to be drawn | ||
// This option is supported since [email protected] | ||
drawOutOfBound: false, | ||
|
||
// if the font size is too large for the text to be displayed, | ||
// whether to shrink the text. If it is set to false, the text will | ||
// not be rendered. If it is set to true, the text will be shrinked. | ||
// This option is supported since [email protected] | ||
shrinkToFit: false, | ||
|
||
// If perform layout animation. | ||
// NOTE disable it will lead to UI blocking when there is lots of words. | ||
layoutAnimation: true, | ||
|
@@ -127,3 +134,13 @@ chart.setOption({ | |
}] | ||
}); | ||
``` | ||
|
||
## Changelog | ||
|
||
### 2.0.0 | ||
|
||
- [chore] Support Apache ECharts 5 | ||
- [chore] Sync with the latest wordcloud2.js and use prettier to format the code | ||
- [feature] Add `keepAspect` option to keep aspect ratio of maskImage or 1:1 for shapes | ||
- [feature] Add `drawOutOfBound` option to allow words to be drawn partly outside of the canvas | ||
- [feature] Add `shrinkToFit` option to shrink the text if the font size is too large for the text to be displayed |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters