| 128 | } |
| 129 | |
| 130 | void SVGExportContext::drawPath(const Path& path, const MCState& state, const Fill& fill) { |
| 131 | if (!state.clip.contains(path.getBounds())) { |
| 132 | applyClipPath(state.clip); |
| 133 | } |
| 134 | ElementWriter pathElement("path", context, this, writer.get(), resourceBucket.get(), |
| 135 | exportFlags & SVGExportFlags::DisableWarnings, state, fill); |
| 136 | pathElement.addPathAttributes(path, tgfx::SVGExportContext::PathEncodingType()); |
| 137 | if (path.getFillType() == PathFillType::EvenOdd) { |
| 138 | pathElement.addAttribute("fill-rule", "evenodd"); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | void SVGExportContext::drawShape(std::shared_ptr<Shape> shape, const MCState& state, |
| 143 | const Fill& fill) { |
no test coverage detected