xdr.py 626 B

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (c) 2010-2024 openpyxl
  2. """
  3. Spreadsheet Drawing has some copies of Drawing ML elements
  4. """
  5. from .geometry import Point2D, PositiveSize2D, Transform2D
  6. class XDRPoint2D(Point2D):
  7. namespace = None
  8. x = Point2D.x
  9. y = Point2D.y
  10. class XDRPositiveSize2D(PositiveSize2D):
  11. namespace = None
  12. cx = PositiveSize2D.cx
  13. cy = PositiveSize2D.cy
  14. class XDRTransform2D(Transform2D):
  15. namespace = None
  16. rot = Transform2D.rot
  17. flipH = Transform2D.flipH
  18. flipV = Transform2D.flipV
  19. off = Transform2D.off
  20. ext = Transform2D.ext
  21. chOff = Transform2D.chOff
  22. chExt = Transform2D.chExt