You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "unreliable-tn (via GitHub)" <gi...@apache.org> on 2023/12/12 06:20:39 UTC

[PR] Fix #19247:[Bug fixing]Edge arrows do not scale on zoom in/out [echarts]

unreliable-tn opened a new pull request, #19384:
URL: https://github.com/apache/echarts/pull/19384

   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   ### What does this PR do?
   
   Edge arrows now scale upon zooming in and out in graph view, just like the nodes
   
   ### Fixed issues
   
   #19311 
   
   ## Details
   
   ### Before: What was the problem?
   
   When zooming in and out on a graph, the nodes scale properly, but the arrows on the edges do not. This results in a visual imbalance where the arrows appear disproportionately large or small compared to the nodes at different zoom levels, leading to a degradation in the readability and aesthetic appeal of the graph.
   
   Before Zooming:
   ![Screenshot 2023-12-12 at 01 15 38](https://github.com/apache/echarts/assets/82098467/3369499d-02ac-47c0-b6a9-859a2f2a499a)
   After Zooming:
   ![Screenshot 2023-12-12 at 01 15 53](https://github.com/apache/echarts/assets/82098467/551ee881-217d-4547-b964-49bf7d4f586f)
   
   ### After: How does it behave after the fixing?
   
   The arrows on the edges now scale in proportion with the nodes, maintaining a consistent and relative size at all zoom levels, ensuring a balanced and visually coherent graph representation, irrespective of the zoom.
   
   Here the node is side 20 and arrow is 10. As shown in the screenshots, on both zoom levels, the arrow appears to be about half as large as the node.
   
   Before Zooming:
   ![Screenshot 2023-12-12 at 01 16 03](https://github.com/apache/echarts/assets/82098467/59a31230-2e01-4441-8e39-1b3afd90684c)
   After Zooming:
   ![Screenshot 2023-12-12 at 01 16 14](https://github.com/apache/echarts/assets/82098467/2aaceb7e-cada-465b-ab41-c0494495b13e)
   
   ## Document Info
   
   One of the following should be checked.
   
   - [x] 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
   


-- 
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-unsubscribe@echarts.apache.org

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


Re: [PR] Fix #19247:[Bug fixing]Edge arrows do not scale on zoom in/out [echarts]

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on PR #19384:
URL: https://github.com/apache/echarts/pull/19384#issuecomment-1851371659

   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/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.

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

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


Re: [PR] Fix #19311:[Bug fixing]Edge arrows do not scale on zoom in/out [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #19384:
URL: https://github.com/apache/echarts/pull/19384#issuecomment-3649806846

   This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR. We are sorry for this but 2 years is a long time and the code base has been changed a lot. Thanks for your contribution anyway.


-- 
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-unsubscribe@echarts.apache.org

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


Re: [PR] Fix #19311:[Bug fixing]Edge arrows do not scale on zoom in/out [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #19384:
URL: https://github.com/apache/echarts/pull/19384#issuecomment-3679474061

   This PR has been automatically closed because it has not had recent activity. Sorry for that and we are looking forward to your next 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.

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

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


Re: [PR] Fix #19311:[Bug fixing]Edge arrows do not scale on zoom in/out [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #19384: Fix #19311:[Bug fixing]Edge arrows do not scale on zoom in/out
URL: https://github.com/apache/echarts/pull/19384


-- 
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-unsubscribe@echarts.apache.org

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


Re: [PR] Fix #19311:[Bug fixing]Edge arrows do not scale on zoom in/out [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #19384:
URL: https://github.com/apache/echarts/pull/19384#issuecomment-1855501393

   <!-- ECHARTS_PR_PREVIEW -->
   The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-19384@63f6ea3
   <!-- ECHARTS_PR_PREVIEW -->


-- 
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-unsubscribe@echarts.apache.org

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


Re: [PR] Fix #19311:[Bug fixing]Edge arrows do not scale on zoom in/out [echarts]

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on PR #19384:
URL: https://github.com/apache/echarts/pull/19384#issuecomment-1855496046

   Please also fix the lint problems.


-- 
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-unsubscribe@echarts.apache.org

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