public static void SetSvgGeometry(this HtmlElement element, HtmlGeometryRenderResource geometry) { if (geometry == null) { element.RemoveAttribute("d"); } else { element.SetSvgAttribute("d", geometry.Data); } }
public static void SetSvgClip(this HtmlElement element, HtmlGeometryRenderResource geometry) { if (geometry == null) { element.RemoveAttribute("clip-path"); } else { element.SetAttribute("clip-path", geometry.Uri); } }
public static void SetHtmlClip(this HtmlElement element, HtmlGeometryRenderResource clip) { if (clip == null) { element.ClearHtmlStyleProperty("clip-path"); } else { element.SetHtmlStyleProperty("clip-path", clip.Uri); } }