Use fill-rule evenodd in svg

Hello! I need to use an svg in my gojs diagram and the svg uses fill-rule evenodd. Is there a way to specify that fill-rule in gojs? I have just copied the path from the svg into the geometryString field in my go.Shape. Thank you!

There is not currently, but we expect to release this as a feature in the future.

Out of curiosity, what’s the SVG in question?

its an svg I was given for work so not sure if I can share. I’ll keep an eye out for that feature!


We have just released GoJS 2.3 Alpha, which includes support for the even-odd fill rule.

When making SVG-like Path syntax, use the fill rule F1 instead of F, eg "F1 M 0 0 L 50 50 ..."