100pah opened a new pull request #12024: feature: support 
`tooltip.appendToBody`.
URL: https://github.com/apache/incubator-echarts/pull/12024
 
 
   
   <!-- 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?
   
   support `tooltip.appendToBody`. 
   Based on the PR ecomfe/zrender#559 .
   
   
   ### Fixed issues
   
   Fix #8049. 
   
   ## Details
   
   The change from #8049: 
   + Add `tooltip.appendToBody` and by default `false` rather than "append to 
body" by default, otherwise bring a break change.
   + Support the existing features when appended to body for example show 
tooltip by `dispatchAction`, and do not trigger `globalout` when entering it.
   + Support positioning tooltip on `document.body` with CSS settings like 
`margin`, `padding` and even `CSS transform`.
   
   ## Usage
   
   ### Are there any API changes?
   
   - [x] The API has been changed.
   
   ```js
   option = {
       tooltip: {
           appendToBody: true, // new option
           ...
       }
   }
   ```
   
   
   ### Related test cases or examples to use the new APIs
   
   `test/tooltip-appendToBody.html`
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to