doc: add geo focus blur.
diff --git a/en/option/component/geo-common.md b/en/option/component/geo-common.md
index 9bb0ab9..0337422 100644
--- a/en/option/component/geo-common.md
+++ b/en/option/component/geo-common.md
@@ -149,6 +149,9 @@
#${prefix} emphasis(Object)
Map area style in highlighted state.
+{{ if: !${inMap} }}
+{{ use: partial-focus-blur-scope(isGeoCoordSys: true) }}
+{{ /if }}
{{ use: partial-geo-common-state(
prefix = '#' + ${prefix}
@@ -162,6 +165,16 @@
prefix = '#' + ${prefix}
) }}
+{{ if: !${inMap} }}
+#${prefix} blur(Object)
+{{ use: partial-version(version: '5.1.0') }}
+Map area style in blurred state.
+
+{{ use: partial-geo-common-state(
+ prefix = '#' + ${prefix}
+) }}
+{{ /if }}
+
{{ use: partial-rect-layout(
prefix = ${prefix}
) }}
diff --git a/en/option/component/geo.md b/en/option/component/geo.md
index 044bed5..ed8f654 100644
--- a/en/option/component/geo.md
+++ b/en/option/component/geo.md
@@ -96,6 +96,14 @@
{{ use: geo-region-state() }}
+### blur(Object)
+{{ use: partial-version(version: '5.1.0') }}
+Style of blurred region.
+
+{{ use: geo-region-state() }}
+
+
+
{{ use: partial-tooltip-in-coords-item(
componentItemDesc: 'region',
noAxis: true,
diff --git a/en/option/partial/focus-blur-scope.md b/en/option/partial/focus-blur-scope.md
index 02c4e93..5c803cd 100644
--- a/en/option/partial/focus-blur-scope.md
+++ b/en/option/partial/focus-blur-scope.md
@@ -3,15 +3,23 @@
### focus(string) = 'none'
+{{ if: ${isGeoCoordSys} }}
+{{ use: partial-version(
+ version = "5.1.0"
+) }}
+{{ else }}
{{ use: partial-version(
version = "5.0.0"
) }}
+{{ /if }}
When the data is highlighted, whether to fade out of other data to focus the highlighted. The following configurations are supported:
+ `'none'` Do not fade out other data, it's by default.
+ `'self'` Only focus (not fade out) the element of the currently highlighted data.
+{{ if: !${isGeoCoordSys} }}
+ `'series'` Focus on all elements of the series which the currently highlighted data belongs to.
+{{ /if }}
{{ if: ${isGraph} }}
+ `'adjacency'` Focus on the elements of adjacent nodes and edges in the graph.
@@ -23,6 +31,7 @@
**Example: **
+{{ if: !${isGeoCoordSys} }}
```js
emphasis: {
focus: 'series',
@@ -31,7 +40,17 @@
```
~[600x400](${galleryViewPath}bar-y-category-stack&reset=1&edit=1)
+{{ else }}
+```js
+emphasis: {
+ focus: 'self'
+}
+```
+~[600x400](${galleryViewPath}geo-organ&reset=1&edit=1)
+{{ /if }}
+
+{{ if: !${isGeoCoordSys} }}
### blurScope(string) = 'coordinateSystem'
{{ use: partial-version(
@@ -43,4 +62,4 @@
+ `'coordinateSystem'`
+ `'series'`
+ `'global'`
-
+{{ /if }}
diff --git a/zh/option/component/geo-common.md b/zh/option/component/geo-common.md
index 1ed7532..0bf80e6 100644
--- a/zh/option/component/geo-common.md
+++ b/zh/option/component/geo-common.md
@@ -148,6 +148,10 @@
高亮状态下的多边形和标签样式。
+{{ if: !${inMap} }}
+{{ use: partial-focus-blur-scope(isGeoCoordSys: true) }}
+{{ /if }}
+
{{ use: partial-geo-common-state(
prefix = '#' + ${prefix}
) }}
@@ -160,6 +164,17 @@
prefix = '#' + ${prefix}
) }}
+{{ if: !${inMap} }}
+#${prefix} blur(Object)
+{{ use: partial-version(version: '5.1.0') }}
+淡出状态下的多边形和标签样式。
+
+{{ use: partial-geo-common-state(
+ prefix = '#' + ${prefix}
+) }}
+{{ /if }}
+
+
{{ use: partial-rect-layout(
prefix = ${prefix}
) }}
diff --git a/zh/option/component/geo.md b/zh/option/component/geo.md
index 40fa31e..ba22411 100644
--- a/zh/option/component/geo.md
+++ b/zh/option/component/geo.md
@@ -94,6 +94,13 @@
{{ use: geo-region-state() }}
+### blur(Object)
+{{ use: partial-version(version: '5.1.0') }}
+淡出状态的设置。
+
+{{ use: geo-region-state() }}
+
+
{{ use: partial-tooltip-in-coords-item(
componentItemDesc: 'region',
noAxis: true,
@@ -102,7 +109,6 @@
-
{{ use: partial-silent(
prefix = "#"
) }}
diff --git a/zh/option/partial/focus-blur-scope.md b/zh/option/partial/focus-blur-scope.md
index 8d035d9..216099f 100644
--- a/zh/option/partial/focus-blur-scope.md
+++ b/zh/option/partial/focus-blur-scope.md
@@ -3,15 +3,23 @@
### focus(string) = 'none'
+{{ if: ${isGeoCoordSys} }}
+{{ use: partial-version(
+ version = "5.1.0"
+) }}
+{{ else }}
{{ use: partial-version(
version = "5.0.0"
) }}
+{{ /if }}
在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。支持如下配置:
+ `'none'` 不淡出其它图形,默认使用该配置。
+ `'self'` 只聚焦(不淡出)当前高亮的数据的图形。
+{{ if: !${isGeoCoordSys} }}
+ `'series'` 聚焦当前高亮的数据所在的系列的所有图形。
+{{ /if }}
{{ if: ${isGraph} }}
+ `'adjacency'` 聚焦关系图中的邻接点和边的图形
@@ -23,6 +31,7 @@
**示例:**
+{{ if: !${isGeoCoordSys} }}
下面代码配置了柱状图在高亮一个图形的时候,淡出当前直角坐标系所有其它的系列。
```js
@@ -33,7 +42,19 @@
```
~[600x400](${galleryViewPath}bar-y-category-stack&reset=1&edit=1)
+{{ else }}
+下面代码配置了 geo 在高亮一个图形的时候,淡出所有其它的图形。
+```js
+emphasis: {
+ focus: 'self'
+}
+```
+
+~[600x400](${galleryViewPath}geo-organ&reset=1&edit=1)
+{{ /if }}
+
+{{ if: !${isGeoCoordSys} }}
### blurScope(string) = 'coordinateSystem'
{{ use: partial-version(
@@ -45,4 +66,4 @@
+ `'coordinateSystem'` 淡出范围为坐标系,默认使用该配置。
+ `'series'` 淡出范围为系列。
+ `'global'` 淡出范围为全局。
-
+{{ /if }}