Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vector 拉斐尔:我可以在路径中使用填充操作吗?(不带填充属性)_Vector_Svg_Path_Raphael - Fatal编程技术网

Vector 拉斐尔:我可以在路径中使用填充操作吗?(不带填充属性)

Vector 拉斐尔:我可以在路径中使用填充操作吗?(不带填充属性),vector,svg,path,raphael,Vector,Svg,Path,Raphael,我使用paper.path(“M10 10L90”)函数来绘制多个(!)符号(直线、三角形等)。意味着我只使用一个单路径字符串。现在我只想在这条路径中填充几个符号中的一个。因此,我不能使用.attr(“fill”,“#123456”)函数,因为所有符号都将被填充 有人知道有可能耍这个把戏吗?(除了将路径拆分为多条路径之外)您可以尝试使用一条大路径的子路径: Element.getSubpath(from, to); 看看这个例子-

我使用
paper.path(“M10 10L90”)
函数来绘制多个(!)符号(直线、三角形等)。意味着我只使用一个单路径字符串。现在我只想在这条路径中填充几个符号中的一个。因此,我不能使用
.attr(“fill”,“#123456”)
函数,因为所有符号都将被填充


有人知道有可能耍这个把戏吗?(除了将路径拆分为多条路径之外)

您可以尝试使用一条大路径的子路径:

Element.getSubpath(from, to);
看看这个例子-