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/01/06 07:38:15 UTC

[GitHub] [incubator-echarts] Ovilia commented on issue #11593: Fix arrow disappear in the SVG renderer of 4.4.0 4.4.0 BUG 在SVG模式下lines箭头和箭头文本消失

Ovilia commented on issue #11593: Fix arrow disappear in the SVG renderer of 4.4.0  4.4.0 BUG 在SVG模式下lines箭头和箭头文本消失 
URL: https://github.com/apache/incubator-echarts/issues/11593#issuecomment-571037185
 
 
   This problem is caused by transformed elements with clipPath. See [demo here](https://codepen.io/Ovilia/pen/BayJRPg).
   The clipPath position in under global coordinate, but the element is transformed so it doesn't behave as expected.
   In order to fix this, we need to create a group element for each transformed element with clipPath and set the clipPath on the group while the element itself is transformed.
   We cannot find an easy way to fix this by now, so it's marked to be fixed later.
   
   这个问题是由于同时使用 transform 和 clipPath 的元素引起的。
   我们期望 clipPath 的位置是相对于全局的,但 SVG 中如果将 clipPath 作用于一个 transform 过的元素,它实际是相对于元素的。因此,最后计算出的位置不符合预期。
   修复的方法可以是为每个带 transform 和 clipPath 的元素新建一个 group 元素,将 transform 作用于图形本身,将 clipPath 设置在 group 元素上。
   修复成本较高,考虑在 zrender 重构之后再修复这个问题,所以先标记为 TBD 了。

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


With regards,
Apache Git Services

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