You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/06/06 15:17:41 UTC

[GitHub] [incubator-echarts] plainheart opened a new pull request #12762: fix(geo): label formatter in geo works incorrectly, tweaks #10666 & #8612.

plainheart opened a new pull request #12762:
URL: https://github.com/apache/incubator-echarts/pull/12762


   <!-- Please fill in the following information to help us review your PR more efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   Because of the change about the structure of normal style and emphasis style, original logic about fetching formatter of label has been not suitable. There are some changes to be done.
   
   **Original way to fetch label formatter:** 
   _normal_: `label.formatter` (It's okay now)
   _emphasis_: `label.emphasis.formatter`(in #10666, a dot is also missing, but even if we add it, it is still not correct for present option structure).
   
   **Present way to fetch label formatter:** 
   _normal_: `label.formatter` (same as original way)
   _emphasis_: `emphasis.label.formatter` (See [`geo.emphasis.label.formatter`](https://echarts.apache.org/en/option.html#geo.emphasis.label.formatter)).
   
   ### Fixed issues
   
   - #10666
   - #8612
   
   ## Details
   
   ### Before: What was the problem?
   
   `geo.label.formatter` is not working.
   
   ### After: How is it fixed in this PR?
   
   Using the way suitable for current option structure.
   ```js
   var formatter = regionModel.get((status === 'normal' ? '' : 'emphasis.') + 'label.formatter');
   ```
   ![image](https://user-images.githubusercontent.com/26999792/83947681-1f568980-a84b-11ea-8ea6-40c5f9dcf428.png)
   
   
   ## Usage
   
   ### Are there any API changes?
   
   - [x] The API has been changed.
   
   ### Related test cases or examples to use the new APIs
   
   Please refer to `test/geo-labelFormatter.html`.
   
   ## Others
   
   ### Merging options
   
   - [x] Please squash the commits into a single one when merge.
   


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] pissang merged pull request #12762: fix(geo): label formatter in geo works incorrectly, tweaks #10666 & #8612.

Posted by GitBox <gi...@apache.org>.
pissang merged pull request #12762:
URL: https://github.com/apache/incubator-echarts/pull/12762


   


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] pissang commented on pull request #12762: fix(geo): label formatter in geo works incorrectly, tweaks #10666 & #8612.

Posted by GitBox <gi...@apache.org>.
pissang commented on pull request #12762:
URL: https://github.com/apache/incubator-echarts/pull/12762#issuecomment-647264956


   Looks good.


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on pull request #12762: fix(geo): label formatter in geo works incorrectly, tweaks #10666 & #8612.

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on pull request #12762:
URL: https://github.com/apache/incubator-echarts/pull/12762#issuecomment-647265041


   Congratulations! Your PR has been merged. Thanks for your contribution! 👍


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on pull request #12762: fix(geo): label formatter in geo works incorrectly, tweaks #10666 & #8612.

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on pull request #12762:
URL: https://github.com/apache/incubator-echarts/pull/12762#issuecomment-640076578


   Thanks for your contribution!
   The community will review it ASAP. In the meanwhile, please checkout [the coding standard](https://echarts.apache.org/en/coding-standard.html) and Wiki about [How to make a pull request](https://github.com/apache/incubator-echarts/wiki/How-to-make-a-pull-request).


----------------------------------------------------------------
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:
users@infra.apache.org



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