|
| 1 | + |
| 2 | +{{ target: partial-emphasis-disabled }} |
| 3 | + |
| 4 | +#${prefix} disabled(boolean) |
| 5 | + |
| 6 | +<ExampleUIControlBoolean default="false" /> |
| 7 | + |
| 8 | +Whether to disable the emphasis state. |
| 9 | + |
| 10 | +When emphasis state is disabled. There will be no highlight effect when the mouse hovered the element, tooltip is triggered, or the legend is hovered. It can be used to improve interaction fluency when there are massive graphic elements. |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +{{ target: partial-focus-blur-scope }} |
| 15 | + |
| 16 | +### focus(string) = 'none' |
| 17 | + |
| 18 | +{{ if: ${isGeoCoordSys} }} |
| 19 | +{{ use: partial-version( |
| 20 | + version = "5.1.0" |
| 21 | +) }} |
| 22 | +{{ else }} |
| 23 | +{{ use: partial-version( |
| 24 | + version = "5.0.0" |
| 25 | +) }} |
| 26 | +{{ /if }} |
| 27 | + |
| 28 | +When the data is highlighted, whether to fade out of other data to focus the highlighted. The following configurations are supported: |
| 29 | + |
| 30 | ++ `'none'` Do not fade out other data, it's by default. |
| 31 | ++ `'self'` Only focus (not fade out) the element of the currently highlighted data. |
| 32 | + |
| 33 | +{{ if: !${isGeoCoordSys} }} |
| 34 | ++ `'series'` Focus on all elements of the series which the currently highlighted data belongs to. |
| 35 | +{{ /if }} |
| 36 | + |
| 37 | +{{ if: ${isGraph} }} |
| 38 | ++ `'adjacency'` Focus on the elements of adjacent nodes and edges in the graph. |
| 39 | + |
| 40 | +{{ elif: ${isTree} }} |
| 41 | ++ `'ancestor'` Focus on all ancestor nodes. |
| 42 | ++ `'descendant'` Focus on all descendants nodes. |
| 43 | +{{ /if }} |
| 44 | + |
| 45 | +**Example: ** |
| 46 | + |
| 47 | +{{ if: !${isGeoCoordSys} }} |
| 48 | +```js |
| 49 | +emphasis: { |
| 50 | + focus: 'series', |
| 51 | + blurScope: 'coordinateSystem' |
| 52 | +} |
| 53 | +``` |
| 54 | + |
| 55 | +~[600x400](${galleryViewPath}bar-y-category-stack&reset=1&edit=1) |
| 56 | +{{ else }} |
| 57 | +```js |
| 58 | +emphasis: { |
| 59 | + focus: 'self' |
| 60 | +} |
| 61 | +``` |
| 62 | + |
| 63 | +~[600x400](${galleryViewPath}geo-organ&reset=1&edit=1) |
| 64 | +{{ /if }} |
| 65 | + |
| 66 | +{{ if: !${isGeoCoordSys} }} |
| 67 | +### blurScope(string) = 'coordinateSystem' |
| 68 | + |
| 69 | +{{ use: partial-version( |
| 70 | + version = "5.0.0" |
| 71 | +) }} |
| 72 | + |
| 73 | +The range of fade out when `focus` is enabled. Support the following configurations |
| 74 | + |
| 75 | ++ `'coordinateSystem'` |
| 76 | ++ `'series'` |
| 77 | ++ `'global'` |
| 78 | +{{ /if }} |
| 79 | + |
0 commit comments