svgbob
svgbob copied to clipboard
Triangle filling is not working
Hi,
I've tried to fill a triangle, but it does not work.
This is my testcase:
+---+ +-----+ + +---------+ +
|{r}| \{r}/ / \ \ / / \
+---+ \ / /{r}\ \ {r} / / \
+ +-----+ \ / / {r} \
+-----+ \ / / \
| | + +---------+
| {r} |
| |
+-----+
# Legend:
r = {
fill: red;
}
This is not yet supported, tagged shapes with css is only applied to rectangles and circles for now.
I guess that the same issue with
+-----+------+
|G {g}| B {b}|
+-----+------+
| {r} | {g} |
+-----+------+
+---+
|{g}|
+---+
# Legend:
r = {
stroke: red;
fill: red;
}
g = {
fill: green;
}
b = {
fill: blue;
}
Which gives
The tagging is limited only to a detached limited shape primitives such as circle and rect. If it is touching or very close or inside another shape, the algorithm breaks.