markers.pyi 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. from typing import Literal
  2. from .path import Path
  3. from .transforms import Affine2D, Transform
  4. from numpy.typing import ArrayLike
  5. from .typing import CapStyleType, FillStyleType, JoinStyleType
  6. TICKLEFT: int
  7. TICKRIGHT: int
  8. TICKUP: int
  9. TICKDOWN: int
  10. CARETLEFT: int
  11. CARETRIGHT: int
  12. CARETUP: int
  13. CARETDOWN: int
  14. CARETLEFTBASE: int
  15. CARETRIGHTBASE: int
  16. CARETUPBASE: int
  17. CARETDOWNBASE: int
  18. class MarkerStyle:
  19. markers: dict[str | int, str]
  20. filled_markers: tuple[str, ...]
  21. fillstyles: tuple[FillStyleType, ...]
  22. def __init__(
  23. self,
  24. marker: str | ArrayLike | Path | MarkerStyle | None,
  25. fillstyle: FillStyleType | None = ...,
  26. transform: Transform | None = ...,
  27. capstyle: CapStyleType | None = ...,
  28. joinstyle: JoinStyleType | None = ...,
  29. ) -> None: ...
  30. def __bool__(self) -> bool: ...
  31. def is_filled(self) -> bool: ...
  32. def get_fillstyle(self) -> FillStyleType: ...
  33. def get_joinstyle(self) -> Literal["miter", "round", "bevel"]: ...
  34. def get_capstyle(self) -> Literal["butt", "projecting", "round"]: ...
  35. def get_marker(self) -> str | ArrayLike | Path | None: ...
  36. def get_path(self) -> Path: ...
  37. def get_transform(self) -> Transform: ...
  38. def get_alt_path(self) -> Path | None: ...
  39. def get_alt_transform(self) -> Transform: ...
  40. def get_snap_threshold(self) -> float | None: ...
  41. def get_user_transform(self) -> Transform | None: ...
  42. def transformed(self, transform: Affine2D) -> MarkerStyle: ...
  43. def rotated(
  44. self, *, deg: float | None = ..., rad: float | None = ...
  45. ) -> MarkerStyle: ...
  46. def scaled(self, sx: float, sy: float | None = ...) -> MarkerStyle: ...