This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
The following commit(s) were added to refs/heads/dev by this push:
new a7ef4f87 feat(treemap): add `scaleLimit` option for treemap series
(apache/echarts#18304)
a7ef4f87 is described below
commit a7ef4f87fbc9cbbc047e06b2c4ed29acf1390c24
Author: plainheart <[email protected]>
AuthorDate: Fri Jun 21 09:11:39 2024 +0800
feat(treemap): add `scaleLimit` option for treemap series
(apache/echarts#18304)
---
en/option/partial/roam.md | 8 +++++++-
en/option/series/treemap.md | 7 +++++++
zh/option/partial/roam.md | 8 +++++++-
zh/option/series/treemap.md | 7 +++++++
4 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/en/option/partial/roam.md b/en/option/partial/roam.md
index fadddeb7..88926958 100644
--- a/en/option/partial/roam.md
+++ b/en/option/partial/roam.md
@@ -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)
diff --git a/en/option/series/treemap.md b/en/option/series/treemap.md
index 9e5b1f80..229ea780 100644
--- a/en/option/series/treemap.md
+++ b/en/option/series/treemap.md
@@ -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:
diff --git a/zh/option/partial/roam.md b/zh/option/partial/roam.md
index 342bef27..10bf73ca 100644
--- a/zh/option/partial/roam.md
+++ b/zh/option/partial/roam.md
@@ -9,7 +9,13 @@
{{ target: partial-scale-limit }}
-滚轮缩放的极限控制,通过`min`, `max`最小和最大的缩放值,默认的缩放为`1`。
+滚轮缩放的极限控制,通过 `min` 和 `max` 限制最小和最大的缩放值。
+
+{{ if: ${version} }}
+{{ use: partial-version(
+ version = ${version}
+) }}
+{{ /if }}
#${prefix} min(number)
diff --git a/zh/option/series/treemap.md b/zh/option/series/treemap.md
index 03c3905f..b3695767 100644
--- a/zh/option/series/treemap.md
+++ b/zh/option/series/treemap.md
@@ -250,6 +250,13 @@ const option = {
+ `'move'` 或 `'pan'`:只能够平移。
+ `true`:缩放和平移均可。
+## scaleLimit(Object)
+
+{{ use: partial-scale-limit(
+ prefix = "##",
+ version = "5.5.1"
+) }}
+
## nodeClick(boolean|string) = 'zoomToNode'
点击节点后的行为。可取值为:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]