fix(symbol): add rotate argument to correct text positioning issues
Brief Information
This pull request is in the type of:
- [x] bug fixing
- [x] new feature
- [ ] others
What does this PR do?
Add rotate argument to createSymbol to correct text position issues
Fixed issues
Details
Before: What was the problem?
Text position is not in right place when Pin Symbol rotates as shown in Issue 14718
After: How does it behave after the fixing?
The texts is centred properly.
Document Info
One of the following should be checked.
- [ ] This PR doesn't relate to document changes
- [ ] The document should be updated later
- [ ] The document changes have been made in apache/echarts-doc#xxx
Misc
ZRender Changes
- [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
- [ ] Please squash the commits into a single one when merging.
Other information
Thanks for your contribution! The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.
⚠️ MISSING DOCUMENT INFO: Please make sure one of the document options are checked in this PR's description. Search "Document Info" in the description of this PR. This should be done either by the author or the reviewers of the PR.
will do.