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 2022/09/16 04:24:17 UTC

[GitHub] [echarts] ayashjorden opened a new issue, #17660: [Feature] When Symbol is SVG, make the area of the symbol clickable, no just the SVG paths

ayashjorden opened a new issue, #17660:
URL: https://github.com/apache/echarts/issues/17660

   ### What problem does this feature solve?
   
   When Symbol is SVG, only the SVG paths will generate a click event. so the User need to be precise in order to click on a node.
   The area between the paths is not clickable.
   <img width="115" alt="image" src="https://user-images.githubusercontent.com/4204371/190554294-6848383d-db24-478b-b3f7-e69f917c0623.png">
   
   For example, when the above SVG is used as a graph node symbol, only the black lines that outline the lightbulb are clickable, and the area between them does not generate a click event.
   
   ### What does the proposed API look like?
   
   Suggested is to augment the Symbol attributes with `SymbolMask: 'match' | 'square' | 'none'`, where:
   * `match` will make the whole SVG clickable, tracking the outline shape perimeter
   * `square` will create a square clickable area around the shape perimeter
   * `none` (or undefined or not-set) - events will fire only when clicking the paths


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