···597597 def __init__(self, cx, cy, r, start_deg, end_deg, cw=False, **kwargs):
598598 super().__init__(d='', **kwargs)
599599 self.arc(cx, cy, r, start_deg, end_deg, cw=cw, include_m=True)
600600+601601+class ForeignObject(DrawingBasicElement):
602602+ '''A foreign object, i.e. for embedding HTML.
603603+604604+ In the context of SVG embedded in an HTML document, the XHTML namespace
605605+ could be omitted in the foreignObject content, but it is mandatory in the
606606+ context of an SVG document.
607607+608608+ This element works best when viewing the SVG in a browser. Drawing.rasterize()
609609+ and Drawing.save_png() are unable to display this element.
610610+611611+ Additional keyword arguments are output as additional arguments to the SVG
612612+ node e.g. fill="red", stroke="#ff4477", stroke_width=2.
613613+ '''
614614+ TAG_NAME = 'foreignObject'
615615+ has_content = True
616616+ def __init__(self, content, **kwargs):
617617+ super().__init__(**kwargs)
618618+ self.content = content
619619+ def write_content(self, id_map, is_duplicate, output_file, lcontext,
620620+ dry_run):
621621+ if dry_run:
622622+ return
623623+ output_file.write(self.content)