Source code

Download source archive ↓

src/openpyxl/drawing/xdr.py

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