mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 05:54:02 +08:00
reportlab: add some types for canvas (#14152)
This commit is contained in:
@@ -177,16 +177,20 @@ class Canvas(_PDFColorSetter):
|
||||
fontSize: float = 3,
|
||||
) -> None: ...
|
||||
def grid(self, xlist, ylist) -> None: ...
|
||||
def bezier(self, x1, y1, x2, y2, x3, y3, x4, y4) -> None: ...
|
||||
def arc(self, x1, y1, x2, y2, startAng: int = 0, extent: int = 90) -> None: ...
|
||||
def rect(self, x, y, width, height, stroke: int = 1, fill: int = 0) -> None: ...
|
||||
def ellipse(self, x1, y1, x2, y2, stroke: int = 1, fill: int = 0) -> None: ...
|
||||
def wedge(self, x1, y1, x2, y2, startAng, extent, stroke: int = 1, fill: int = 0) -> None: ...
|
||||
def circle(self, x_cen, y_cen, r, stroke: int = 1, fill: int = 0) -> None: ...
|
||||
def roundRect(self, x, y, width, height, radius, stroke: int = 1, fill: int = 0) -> None: ...
|
||||
def bezier(self, x1: float, y1: float, x2: float, y2: float, x3: float, y3: float, x4: float, y4: float) -> None: ...
|
||||
def arc(self, x1: float, y1: float, x2: float, y2: float, startAng: float = 0, extent: float = 90) -> None: ...
|
||||
def rect(self, x: float, y: float, width: float, height: float, stroke: float = 1, fill: float = 0) -> None: ...
|
||||
def ellipse(self, x1: float, y1: float, x2: float, y2: float, stroke: float = 1, fill: float = 0) -> None: ...
|
||||
def wedge(
|
||||
self, x1: float, y1: float, x2: float, y2: float, startAng: float, extent: float, stroke: float = 1, fill: float = 0
|
||||
) -> None: ...
|
||||
def circle(self, x_cen: float, y_cen: float, r: float, stroke: float = 1, fill: float = 0) -> None: ...
|
||||
def roundRect(
|
||||
self, x: float, y: float, width: float, height: float, radius: float, stroke: float = 1, fill: float = 0
|
||||
) -> None: ...
|
||||
def shade(self, shading) -> None: ...
|
||||
def linearGradient(self, x0, y0, x1, y1, colors, positions=None, extend: bool = True) -> None: ...
|
||||
def radialGradient(self, x, y, radius, colors, positions=None, extend: bool = True) -> None: ...
|
||||
def linearGradient(self, x0: float, y0: float, x1: float, y1: float, colors, positions=None, extend: bool = True) -> None: ...
|
||||
def radialGradient(self, x: float, y: float, radius: float, colors, positions=None, extend: bool = True) -> None: ...
|
||||
def drawString(
|
||||
self,
|
||||
x: float,
|
||||
|
||||
Reference in New Issue
Block a user