使标记端的颜色与路径相同? [英] Make marker-end same color as path?
本文介绍了使标记端的颜色与路径相同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
路径具有特定的stroke
颜色,该颜色可能会以编程方式更改.标记的fill
是否也可以与路径的笔触颜色完全相同? (如果需要的话,我将使用javascript.)
The path has a certain stroke
color which may change programatically. Can the marker's fill
also be the exact same as the path's stroke color? (I'll use javascript for this if I have to.)
推荐答案
标记与它们所应用的路径无关,并且不继承颜色.也没有一种方法可以自动使它们的颜色与路径匹配.
Markers are independent from the paths they are applied to and don't inherit colours. Nor is there a way to automatically have their colours match the path.
您将必须明确设置它们的颜色.
You will have to set their colour explicitly.
这篇关于使标记端的颜色与路径相同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文