pissang opened a new pull request #16368:
URL: https://github.com/apache/echarts/pull/16368


   <!-- Please fill in the following information to help us review your PR more 
efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [ ] bug fixing
   - [x] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   Introduce `emphasis.disabled` to disable emphasis state on hover and tooltip 
trigger. `Previously` we can only use `silent` to disable any hover 
interactions. But it will also lost the mouse event.
   
   By disabling `emphasis` state. We can avoid potential performance issue when 
interacting with massive data like in 
https://github.com/apache/echarts/issues/16133 . Or remove unwanted highlight / 
emphasis effect like in https://github.com/apache/echarts/issues/14952
   
   Also ee related `select.disabled` 
[PR](https://github.com/apache/echarts/pull/15534) by @susiwen8 .
   
   
   ### Fixed issues
   
   https://github.com/apache/echarts/issues/14952
   
   
   ## Misc
   
   <!-- ADD RELATED ISSUE ID WHEN APPLICABLE -->
   
   - [x] The API has been changed (apache/echarts-doc#xxx).
   - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
   
   ### Related test cases or examples to use the new APIs
   
   Disable emphasis state of whole series
   
   ```ts
   series: [{
     emphasis: {
        disabled: true
     }
   }]
   ```
   
   Disable emphasis state of single data
   
   ```ts
   series: [{
     data: [{
         name: 'xxx',
         emphasis: { disabled: true }
     }]
   }]
   ```
   
   Disable emphasis state in custom series
   
   ```ts
   renderItem() {
     return {
         type: 'group',
         emphasisDisabled: true
     }
   }
   ```
   
   
   ## Others
   
   ### Merging options
   
   - [ ] Please squash the commits into a single one when merging.
   
   ### Other information
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to