MCPcopy
hub / github.com/CadQuery/cadquery / toSvg

Method toSvg

cadquery/cq.py:1031–1041  ·  view source on GitHub ↗

Returns svg text that represents the first item on the stack. for testing purposes. :param opts: svg formatting options :type opts: dictionary, width and height :return: a string that contains SVG that represents this item.

(self, opts: Any = None)

Source from the content-addressed store, hash-verified

1029 return self.newObject(set(el for res in results for el in res) - set(shapes))
1030
1031 def toSvg(self, opts: Any = None) -> str:
1032 """
1033 Returns svg text that represents the first item on the stack.
1034
1035 for testing purposes.
1036
1037 :param opts: svg formatting options
1038 :type opts: dictionary, width and height
1039 :return: a string that contains SVG that represents this item.
1040 """
1041 return getSVG(self.val(), opts)
1042
1043 def exportSvg(self, fileName: str) -> None:
1044 """

Callers 1

testToSVGMethod · 0.80

Calls 2

valMethod · 0.95
getSVGFunction · 0.85

Tested by 1

testToSVGMethod · 0.64