Skip to content

Commit

Permalink
feat(treemap): add scaleLimit option for treemap series (apache/ech…
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Jun 21, 2024
1 parent ff2cdcf commit a7ef4f8
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
8 changes: 7 additions & 1 deletion en/option/partial/roam.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ Whether to enable mouse zooming and translating. `false` by default. If either z

{{ target: partial-scale-limit }}

Limit of scaling, with `min` and `max`. `1` by default.
Limit of scaling, with `min` and `max`.

{{ if: ${version} }}
{{ use: partial-version(
version = ${version}
) }}
{{ /if }}

#${prefix} min(number)

Expand Down
7 changes: 7 additions & 0 deletions en/option/series/treemap.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ Whether to enable dragging roam (move and zoom). Optional values are:
+ `'move'` or `'pan'`: move (translation) only.
+ `true`: both zoom and move (translation) are available.

## scaleLimit(Object)

{{ use: partial-scale-limit(
prefix = "##",
version = "5.5.1"
) }}

## nodeClick(boolean|string) = 'zoomToNode'

The behaviour when clicking a node. Optional values are:
Expand Down
8 changes: 7 additions & 1 deletion zh/option/partial/roam.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@

{{ target: partial-scale-limit }}

滚轮缩放的极限控制,通过`min`, `max`最小和最大的缩放值,默认的缩放为`1`
滚轮缩放的极限控制,通过 `min``max` 限制最小和最大的缩放值。

{{ if: ${version} }}
{{ use: partial-version(
version = ${version}
) }}
{{ /if }}

#${prefix} min(number)

Expand Down
7 changes: 7 additions & 0 deletions zh/option/series/treemap.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,13 @@ const option = {
+ `'move'``'pan'`:只能够平移。
+ `true`:缩放和平移均可。

## scaleLimit(Object)

{{ use: partial-scale-limit(
prefix = "##",
version = "5.5.1"
) }}

## nodeClick(boolean|string) = 'zoomToNode'

点击节点后的行为。可取值为:
Expand Down

0 comments on commit a7ef4f8

Please sign in to comment.