openpyxl.drawing.geometry module

class openpyxl.drawing.geometry.AdjPoint2D(x=None, y=None)[source]

Bases: Serialisable

x

Values must be of type <class ‘int’>

y

Values must be of type <class ‘int’>

class openpyxl.drawing.geometry.AdjustHandleList[source]

Bases: Serialisable

class openpyxl.drawing.geometry.Backdrop(anchor=None, norm=None, up=None, extLst=None)[source]

Bases: Serialisable

anchor

Values must be of type <class ‘openpyxl.drawing.geometry.Point3D’>

extLst

Values must be of type <class ‘openpyxl.descriptors.excel.ExtensionList’>

norm

Values must be of type <class ‘openpyxl.drawing.geometry.Vector3D’>

up

Values must be of type <class ‘openpyxl.drawing.geometry.Vector3D’>

class openpyxl.drawing.geometry.Bevel(w=None, h=None, prst=None)[source]

Bases: Serialisable

h

Values must be of type <class ‘int’>

prst

Value must be one of {‘circle’, ‘riblet’, ‘relaxedInset’, ‘divot’, ‘convex’, ‘angle’, ‘hardEdge’, ‘softRound’, ‘coolSlant’, ‘artDeco’, ‘slope’, ‘cross’}

tagname = 'bevel'
w

Values must be of type <class ‘int’>

class openpyxl.drawing.geometry.Camera(prst=None, fov=None, zoom=None, rot=None)[source]

Bases: Serialisable

fov

Values must be of type <class ‘int’>

prst

Value must be one of {‘orthographicFront’, ‘legacyPerspectiveTopRight’, ‘isometricTopUp’, ‘isometricOffAxis2Right’, ‘perspectiveHeroicLeftFacing’, ‘perspectiveHeroicRightFacing’, ‘isometricBottomUp’, ‘isometricOffAxis3Left’, ‘perspectiveAboveRightFacing’, ‘legacyPerspectiveFront’, ‘legacyObliqueBottom’, ‘isometricOffAxis4Bottom’, ‘isometricBottomDown’, ‘obliqueBottomLeft’, ‘isometricOffAxis2Top’, ‘legacyPerspectiveBottomLeft’, ‘isometricOffAxis1Left’, ‘legacyObliqueTopLeft’, ‘perspectiveLeft’, ‘legacyObliqueBottomRight’, ‘isometricRightUp’, ‘perspectiveContrastingLeftFacing’, ‘isometricTopDown’, ‘legacyPerspectiveBottomRight’, ‘legacyObliqueTopRight’, ‘legacyPerspectiveBottom’, ‘isometricOffAxis4Left’, ‘isometricLeftUp’, ‘legacyPerspectiveLeft’, ‘obliqueBottomRight’, ‘isometricOffAxis1Top’, ‘legacyObliqueFront’, ‘legacyObliqueTop’, ‘isometricOffAxis1Right’, ‘obliqueTop’, ‘legacyObliqueBottomLeft’, ‘obliqueTopRight’, ‘obliqueLeft’, ‘isometricOffAxis2Left’, ‘isometricOffAxis4Right’, ‘obliqueRight’, ‘isometricOffAxis3Bottom’, ‘legacyObliqueRight’, ‘perspectiveContrastingRightFacing’, ‘perspectiveRight’, ‘perspectiveRelaxed’, ‘perspectiveHeroicExtremeRightFacing’, ‘isometricLeftDown’, ‘legacyPerspectiveTopLeft’, ‘obliqueBottom’, ‘perspectiveFront’, ‘legacyPerspectiveTop’, ‘obliqueTopLeft’, ‘perspectiveBelow’, ‘perspectiveAbove’, ‘isometricRightDown’, ‘isometricOffAxis3Right’, ‘perspectiveHeroicExtremeLeftFacing’, ‘legacyPerspectiveRight’, ‘perspectiveAboveLeftFacing’, ‘legacyObliqueLeft’, ‘perspectiveRelaxedModerately’}

rot

Values must be of type <class ‘openpyxl.drawing.geometry.SphereCoords’>

tagname = 'camera'
zoom

Values must be of type <class ‘openpyxl.descriptors.excel.Percentage’>

class openpyxl.drawing.geometry.ConnectionSite(ang=None, pos=None)[source]

Bases: Serialisable

ang

Values must be of type <class ‘float’>

pos

Values must be of type <class ‘openpyxl.drawing.geometry.AdjPoint2D’>

class openpyxl.drawing.geometry.ConnectionSiteList(cxn=None)[source]

Bases: Serialisable

cxn

Values must be of type <class ‘openpyxl.drawing.geometry.ConnectionSite’>

class openpyxl.drawing.geometry.CustomGeometry2D(avLst=None, gdLst=None, ahLst=None, cxnLst=None, rect=None, pathLst=None)[source]

Bases: Serialisable

ahLst

Values must be of type <class ‘openpyxl.drawing.geometry.AdjustHandleList’>

avLst

Values must be of type <class ‘openpyxl.drawing.geometry.GeomGuideList’>

cxnLst

Values must be of type <class ‘openpyxl.drawing.geometry.ConnectionSiteList’>

gdLst

Values must be of type <class ‘openpyxl.drawing.geometry.GeomGuideList’>

pathLst

Values must be of type <class ‘openpyxl.drawing.geometry.Path2DList’>

class openpyxl.drawing.geometry.FontReference(idx=None)[source]

Bases: Serialisable

idx

Value must be one of {‘major’, ‘minor’}

class openpyxl.drawing.geometry.GeomGuide(name=None, fmla=None)[source]

Bases: Serialisable

fmla

Values must be of type <class ‘str’>

name

Values must be of type <class ‘str’>

class openpyxl.drawing.geometry.GeomGuideList(gd=None)[source]

Bases: Serialisable

gd

Values must be of type <class ‘openpyxl.drawing.geometry.GeomGuide’>

class openpyxl.drawing.geometry.GeomRect(l=None, t=None, r=None, b=None)[source]

Bases: Serialisable

b

Values must be of type <class ‘int’>

l

Values must be of type <class ‘int’>

r

Values must be of type <class ‘int’>

t

Values must be of type <class ‘int’>

class openpyxl.drawing.geometry.GroupTransform2D(rot=0, flipH=None, flipV=None, off=None, ext=None, chOff=None, chExt=None)[source]

Bases: Serialisable

chExt

Values must be of type <class ‘openpyxl.drawing.geometry.PositiveSize2D’>

chOff

Values must be of type <class ‘openpyxl.drawing.geometry.Point2D’>

ext

Values must be of type <class ‘openpyxl.drawing.geometry.PositiveSize2D’>

flipH

Values must be of type <class ‘bool’>

flipV

Values must be of type <class ‘bool’>

namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'
off

Values must be of type <class ‘openpyxl.drawing.geometry.Point2D’>

rot

Values must be of type <class ‘int’>

tagname = 'xfrm'
class openpyxl.drawing.geometry.LightRig(rig=None, dir=None, rot=None)[source]

Bases: Serialisable

dir

Value must be one of {‘b’, ‘tl’, ‘r’, ‘bl’, ‘l’, ‘tr’, ‘t’, ‘br’}

rig

Value must be one of {‘legacyFlat3’, ‘legacyFlat4’, ‘legacyHarsh1’, ‘balanced’, ‘brightRoom’, ‘legacyNormal1’, ‘harsh’, ‘legacyFlat1’, ‘legacyHarsh3’, ‘legacyNormal4’, ‘freezing’, ‘flat’, ‘glow’, ‘legacyHarsh2’, ‘soft’, ‘threePt’, ‘flood’, ‘legacyNormal2’, ‘legacyFlat2’, ‘contrasting’, ‘sunrise’, ‘morning’, ‘chilly’, ‘twoPt’, ‘sunset’, ‘legacyHarsh4’, ‘legacyNormal3’}

rot

Values must be of type <class ‘openpyxl.drawing.geometry.SphereCoords’>

tagname = 'lightRig'
class openpyxl.drawing.geometry.Path2D(w=None, h=None, fill=None, stroke=None, extrusionOk=None)[source]

Bases: Serialisable

extrusionOk

Values must be of type <class ‘bool’>

fill

Value must be one of {‘darken’, ‘norm’, ‘darkenLess’, ‘lightenLess’, ‘lighten’}

h

Values must be of type <class ‘float’>

stroke

Values must be of type <class ‘bool’>

w

Values must be of type <class ‘float’>

class openpyxl.drawing.geometry.Path2DList(path=None)[source]

Bases: Serialisable

path

Values must be of type <class ‘openpyxl.drawing.geometry.Path2D’>

class openpyxl.drawing.geometry.Point2D(x=None, y=None)[source]

Bases: Serialisable

namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'
tagname = 'off'
x

Values must be of type <class ‘int’>

y

Values must be of type <class ‘int’>

class openpyxl.drawing.geometry.Point3D(x=None, y=None, z=None)[source]

Bases: Serialisable

tagname = 'anchor'
x

Values must be of type <class ‘int’>

y

Values must be of type <class ‘int’>

z

Values must be of type <class ‘int’>

class openpyxl.drawing.geometry.PositiveSize2D(cx=None, cy=None)[source]

Bases: Serialisable

cx

Values must be of type <class ‘int’>

cy

Values must be of type <class ‘int’>

height

Aliases can be used when either the desired attribute name is not allowed or confusing in Python (eg. “type”) or a more descriptive name is desired (eg. “underline” for “u”)

namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'

Dimensions in EMUs

tagname = 'ext'
width

Aliases can be used when either the desired attribute name is not allowed or confusing in Python (eg. “type”) or a more descriptive name is desired (eg. “underline” for “u”)

class openpyxl.drawing.geometry.PresetGeometry2D(prst=None, avLst=None)[source]

Bases: Serialisable

avLst

Values must be of type <class ‘openpyxl.drawing.geometry.GeomGuideList’>

namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'
prst

Value must be one of {‘bentArrow’, ‘decagon’, ‘bentUpArrow’, ‘flowChartAlternateProcess’, ‘pentagon’, ‘can’, ‘sun’, ‘quadArrow’, ‘bentConnector4’, ‘wave’, ‘flowChartInputOutput’, ‘actionButtonEnd’, ‘leftRightRibbon’, ‘downArrow’, ‘bentConnector5’, ‘curvedDownArrow’, ‘flowChartDocument’, ‘star4’, ‘flowChartMultidocument’, ‘funnel’, ‘star5’, ‘lightningBolt’, ‘actionButtonSound’, ‘cloud’, ‘actionButtonReturn’, ‘flowChartInternalStorage’, ‘heptagon’, ‘flowChartSort’, ‘chartStar’, ‘irregularSeal2’, ‘arc’, ‘snip1Rect’, ‘actionButtonMovie’, ‘snip2SameRect’, ‘halfFrame’, ‘actionButtonBlank’, ‘quadArrowCallout’, ‘leftRightCircularArrow’, ‘ellipse’, ‘flowChartExtract’, ‘bracketPair’, ‘leftCircularArrow’, ‘upArrowCallout’, ‘rightArrow’, ‘chartPlus’, ‘foldedCorner’, ‘curvedLeftArrow’, ‘curvedConnector5’, ‘flowChartDisplay’, ‘leftBracket’, ‘heart’, ‘uturnArrow’, ‘downArrowCallout’, ‘borderCallout1’, ‘star6’, ‘actionButtonBackPrevious’, ‘star24’, ‘star12’, ‘flowChartSummingJunction’, ‘bevel’, ‘noSmoking’, ‘mathPlus’, ‘accentBorderCallout3’, ‘mathDivide’, ‘curvedConnector3’, ‘rightBracket’, ‘snip2DiagRect’, ‘flowChartCollate’, ‘cube’, ‘wedgeEllipseCallout’, ‘upArrow’, ‘cornerTabs’, ‘star16’, ‘pie’, ‘borderCallout2’, ‘gear6’, ‘flowChartDelay’, ‘ribbon2’, ‘roundRect’, ‘dodecagon’, ‘chord’, ‘bentConnector3’, ‘stripedRightArrow’, ‘irregularSeal1’, ‘flowChartManualOperation’, ‘flowChartOnlineStorage’, ‘mathEqual’, ‘callout3’, ‘leftRightArrowCallout’, ‘flowChartPreparation’, ‘star7’, ‘star32’, ‘upDownArrowCallout’, ‘hexagon’, ‘flowChartConnector’, ‘accentCallout2’, ‘diagStripe’, ‘leftRightArrow’, ‘flowChartManualInput’, ‘ribbon’, ‘callout1’, ‘flowChartOr’, ‘rtTriangle’, ‘flowChartMagneticDisk’, ‘leftRightUpArrow’, ‘curvedUpArrow’, ‘callout2’, ‘cloudCallout’, ‘accentCallout3’, ‘flowChartMagneticDrum’, ‘smileyFace’, ‘circularArrow’, ‘trapezoid’, ‘verticalScroll’, ‘flowChartOffpageConnector’, ‘plus’, ‘squareTabs’, ‘corner’, ‘nonIsoscelesTrapezoid’, ‘actionButtonForwardNext’, ‘actionButtonDocument’, ‘flowChartTerminator’, ‘octagon’, ‘curvedRightArrow’, ‘flowChartPunchedTape’, ‘curvedConnector4’, ‘actionButtonBeginning’, ‘leftArrowCallout’, ‘straightConnector1’, ‘accentCallout1’, ‘actionButtonHelp’, ‘flowChartMerge’, ‘upDownArrow’, ‘wedgeRoundRectCallout’, ‘line’, ‘accentBorderCallout1’, ‘ellipseRibbon2’, ‘chartX’, ‘mathMinus’, ‘round2DiagRect’, ‘homePlate’, ‘diamond’, ‘notchedRightArrow’, ‘parallelogram’, ‘bracePair’, ‘flowChartPredefinedProcess’, ‘donut’, ‘swooshArrow’, ‘triangle’, ‘flowChartProcess’, ‘round1Rect’, ‘mathMultiply’, ‘mathNotEqual’, ‘flowChartPunchedCard’, ‘star8’, ‘lineInv’, ‘leftArrow’, ‘star10’, ‘plaqueTabs’, ‘horizontalScroll’, ‘borderCallout3’, ‘flowChartMagneticTape’, ‘frame’, ‘rightArrowCallout’, ‘doubleWave’, ‘accentBorderCallout2’, ‘rect’, ‘teardrop’, ‘moon’, ‘curvedConnector2’, ‘flowChartOfflineStorage’, ‘leftBrace’, ‘actionButtonHome’, ‘actionButtonInformation’, ‘ellipseRibbon’, ‘chevron’, ‘snipRoundRect’, ‘pieWedge’, ‘wedgeRectCallout’, ‘rightBrace’, ‘gear9’, ‘leftUpArrow’, ‘bentConnector2’, ‘flowChartDecision’, ‘plaque’, ‘blockArc’, ‘round2SameRect’}

class openpyxl.drawing.geometry.Scene3D(camera=None, lightRig=None, backdrop=None, extLst=None)[source]

Bases: Serialisable

backdrop

Values must be of type <class ‘openpyxl.drawing.geometry.Backdrop’>

camera

Values must be of type <class ‘openpyxl.drawing.geometry.Camera’>

extLst

Values must be of type <class ‘openpyxl.descriptors.excel.ExtensionList’>

lightRig

Values must be of type <class ‘openpyxl.drawing.geometry.LightRig’>

class openpyxl.drawing.geometry.Shape3D(z=None, extrusionH=None, contourW=None, prstMaterial=None, bevelT=None, bevelB=None, extrusionClr=None, contourClr=None, extLst=None)[source]

Bases: Serialisable

bevelB

Values must be of type <class ‘openpyxl.drawing.geometry.Bevel’>

bevelT

Values must be of type <class ‘openpyxl.drawing.geometry.Bevel’>

contourClr

Values must be of type <class ‘openpyxl.styles.colors.Color’>

contourW

Values must be of type <class ‘int’>

extLst

Values must be of type <class ‘openpyxl.descriptors.excel.ExtensionList’>

extrusionClr

Values must be of type <class ‘openpyxl.styles.colors.Color’>

extrusionH

Values must be of type <class ‘int’>

namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'
prstMaterial

Value must be one of {‘legacyPlastic’, ‘legacyWireframe’, ‘dkEdge’, ‘legacyMatte’, ‘metal’, ‘clear’, ‘softEdge’, ‘plastic’, ‘matte’, ‘warmMatte’, ‘translucentPowder’, ‘flat’, ‘softmetal’, ‘legacyMetal’, ‘powder’}

z

Values must be of type <class ‘openpyxl.descriptors.base.Integer’>

class openpyxl.drawing.geometry.ShapeStyle(lnRef=None, fillRef=None, effectRef=None, fontRef=None)[source]

Bases: Serialisable

effectRef

Values must be of type <class ‘openpyxl.drawing.geometry.StyleMatrixReference’>

fillRef

Values must be of type <class ‘openpyxl.drawing.geometry.StyleMatrixReference’>

fontRef

Values must be of type <class ‘openpyxl.drawing.geometry.FontReference’>

lnRef

Values must be of type <class ‘openpyxl.drawing.geometry.StyleMatrixReference’>

class openpyxl.drawing.geometry.SphereCoords(lat=None, lon=None, rev=None)[source]

Bases: Serialisable

lat

Values must be of type <class ‘int’>

lon

Values must be of type <class ‘int’>

rev

Values must be of type <class ‘int’>

tagname = 'sphereCoords'
class openpyxl.drawing.geometry.StyleMatrixReference(idx=None)[source]

Bases: Serialisable

idx

Values must be of type <class ‘int’>

class openpyxl.drawing.geometry.Transform2D(rot=None, flipH=None, flipV=None, off=None, ext=None, chOff=None, chExt=None)[source]

Bases: Serialisable

chExt

Values must be of type <class ‘openpyxl.drawing.geometry.PositiveSize2D’>

chOff

Values must be of type <class ‘openpyxl.drawing.geometry.Point2D’>

ext

Values must be of type <class ‘openpyxl.drawing.geometry.PositiveSize2D’>

flipH

Values must be of type <class ‘bool’>

flipV

Values must be of type <class ‘bool’>

namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'
off

Values must be of type <class ‘openpyxl.drawing.geometry.Point2D’>

rot

Values must be of type <class ‘int’>

tagname = 'xfrm'
class openpyxl.drawing.geometry.Vector3D(dx=None, dy=None, dz=None)[source]

Bases: Serialisable

dx

Values must be of type <class ‘int’>

dy

Values must be of type <class ‘int’>

dz

Values must be of type <class ‘int’>

tagname = 'vector'