Skip to content

Commit

Permalink
fix(pictorialBar): fix wrong level of some options & remove deprecate…
Browse files Browse the repository at this point in the history
…d `hoverAnimation` in favor of `emphasis.scale` (resolves #404)
  • Loading branch information
plainheart committed Jul 1, 2024
1 parent bf5974d commit 66d1033
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 36 deletions.
4 changes: 2 additions & 2 deletions en/option/partial/emphasis-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ When emphasis state is disabled. There will be no highlight effect when the mous

{{ target: partial-focus-blur-scope }}

### focus(string) = 'none'
###${prefix} focus(string) = 'none'

{{ if: ${isGeoCoordSys} }}
{{ use: partial-version(
Expand Down Expand Up @@ -74,7 +74,7 @@ emphasis: {
{{ /if }}

{{ if: !${isGeoCoordSys} }}
### blurScope(string) = 'coordinateSystem'
###${prefix} blurScope(string) = 'coordinateSystem'

{{ use: partial-version(
version = "5.0.0"
Expand Down
42 changes: 26 additions & 16 deletions en/option/series/pictorialBar.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ Configurations of emphasis state.
prefix = "##"
) }}

### scale(boolean) = false

{{ use: partial-version(
version = "5.0.0"
) }}

Whether to enable hover animation.

{{ use: partial-focus-blur-scope() }}

{{ use: pictorialBar-state(
Expand Down Expand Up @@ -242,6 +250,18 @@ Emphasis state of the specified single data.
prefix = "###"
) }}

#### scale(boolean) = false

{{ use: partial-version(
version = "5.0.0"
) }}

Whether to enable hover animation.

{{ use: partial-focus-blur-scope(
prefix = "#"
) }}

{{ use: partial-bar-state(
prefix = "###",
state = 'emphasis'
Expand Down Expand Up @@ -305,14 +325,14 @@ Select state of the specified single data.
noAnimationDelay = true
) }}

{{ use: partial-universal-transition(
prefix = "#"
) }}

{{ use: pictorialBar-animation-delay(
prefix = "##"
) }}

{{ use: partial-universal-transition(
prefix = "#"
) }}

{{ use: partial-tooltip-in-series() }}


Expand Down Expand Up @@ -569,23 +589,13 @@ For example:
Specify the relationship of overlap between graphic elements. A bigger value means higher.
{{ /if }}

#${prefix} hoverAnimation(boolean) = false

<ExampleUIControlBoolean />

Whether to enable hover animation.

{{ use: pictorialBar-symbol-attrs-cascade(
attrName = 'hoverAnimation'
) }}

{{ use: partial-animation(
prefix = "##",
prefix = ${prefix},
noAnimationDelay = true
) }}

{{ use: pictorialBar-animation-delay(
prefix = "##"
prefix = ${prefix}
) }}


Expand Down
4 changes: 2 additions & 2 deletions zh/option/partial/emphasis-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

{{ target: partial-focus-blur-scope }}

### focus(string) = 'none'
###${prefix} focus(string) = 'none'

{{ if: ${isGeoCoordSys} }}
{{ use: partial-version(
Expand Down Expand Up @@ -78,7 +78,7 @@ emphasis: {
{{ /if }}

{{ if: !${isGeoCoordSys} }}
### blurScope(string) = 'coordinateSystem'
###${prefix} blurScope(string) = 'coordinateSystem'

{{ use: partial-version(
version = "5.0.0"
Expand Down
42 changes: 26 additions & 16 deletions zh/option/series/pictorialBar.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,14 @@ option = {
prefix = "##"
) }}

### scale(boolean) = false

{{ use: partial-version(
version = "5.0.0"
) }}

是否开启 hover 在图形上的提示动画效果。

{{ use: partial-focus-blur-scope() }}

{{ use: pictorialBar-state(
Expand Down Expand Up @@ -291,6 +299,18 @@ option = {
prefix = "###"
) }}

#### scale(boolean) = false

{{ use: partial-version(
version = "5.0.0"
) }}

是否开启 hover 在图形上的提示动画效果。

{{ use: partial-focus-blur-scope(
prefix = "#"
) }}

{{ use: partial-bar-state(
prefix = "###",
state = 'emphasis'
Expand Down Expand Up @@ -354,14 +374,14 @@ option = {
noAnimationDelay = true
) }}

{{ use: partial-universal-transition(
prefix = "#"
) }}

{{ use: pictorialBar-animation-delay(
prefix = "##"
) }}

{{ use: partial-universal-transition(
prefix = "#"
) }}

{{ use: partial-tooltip-in-series() }}


Expand Down Expand Up @@ -620,23 +640,13 @@ itemStyle: {
指定图形元素间的覆盖关系。数值越大,越在层叠的上方。
{{ /if }}

#${prefix} hoverAnimation(boolean) = false

<ExampleUIControlBoolean />

是否开启 hover 在图形上的提示动画效果。

{{ use: pictorialBar-symbol-attrs-cascade(
attrName = 'hoverAnimation'
) }}

{{ use: partial-animation(
prefix = "##",
prefix = ${prefix},
noAnimationDelay = true
) }}

{{ use: pictorialBar-animation-delay(
prefix = "##"
prefix = ${prefix}
) }}


Expand Down

0 comments on commit 66d1033

Please sign in to comment.