Skip to content

Commit

Permalink
docs: update wordcloud docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Jul 11, 2024
1 parent 9d0a4a4 commit 921e242
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion __tests__/plots/api/chart-word-cloud-canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export function chartWordCloudCanvas(context) {
value: 'data/philosophyWord.json',
},
layout: {
// random,
canvas: () => {
ref.called = true;
return document.createElement('canvas');
Expand Down
15 changes: 8 additions & 7 deletions site/docs/spec/mark/wordcloud.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ chart.render();

## layout

| 属性 | 描述 | 类型 | 默认值 |
| --------- | ------------ | -------------------------------- | ------ |
| padding | 内间距 | `number` | `1` |
| rotate | 文字旋转角度 | `number \| (word => number)` | - |
| random | 随机方式 | `number \| (word => number)` | - |
| spiral | 外观图形 | `'archimedean' \| 'rectangular'` | - |
| imageMask | 图片蒙层 | `'HTMLImageElement \| string` | - |
| 属性 | 描述 | 类型 | 默认值 |
| --------- | ------------- | -------------------------------- | ---------------------------------------- |
| padding | 内间距 | `number` | `1` |
| rotate | 文字旋转角度 | `number \| (word => number)` | - |
| random | 随机方式 | `number \| (word => number)` | - |
| spiral | 外观图形 | `'archimedean' \| 'rectangular'` | - |
| imageMask | 图片蒙层 | `'HTMLImageElement \| string` | - |
| canvas | 自定义 canvas | `() => CanvasElement` | `() => document.createElement('canvas')` |

## style

Expand Down

0 comments on commit 921e242

Please sign in to comment.