openpyxl.drawing.geometry module

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

Bases: openpyxl.descriptors.serialisable.Serialisable

x

Values must be of type <class ‘int’>

y

Values must be of type <class ‘int’>

class openpyxl.drawing.geometry.AdjustHandleList[source]

Bases: openpyxl.descriptors.serialisable.Serialisable

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

Bases: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.Serialisable

h

Values must be of type <class ‘int’>

prst

Value must be one of {‘relaxedInset’, ‘artDeco’, ‘angle’, ‘riblet’, ‘hardEdge’, ‘divot’, ‘slope’, ‘softRound’, ‘coolSlant’, ‘convex’, ‘circle’, ‘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: openpyxl.descriptors.serialisable.Serialisable

fov

Values must be of type <class ‘int’>

prst

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

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: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.Serialisable

idx

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

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

Bases: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.Serialisable

dir

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

rig

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

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: openpyxl.descriptors.serialisable.Serialisable

extrusionOk

Values must be of type <class ‘bool’>

fill

Value must be one of {‘darken’, ‘darkenLess’, ‘lightenLess’, ‘norm’, ‘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: openpyxl.descriptors.serialisable.Serialisable

path

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

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

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

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

Bases: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.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 {‘softEdge’, ‘legacyMatte’, ‘legacyPlastic’, ‘legacyMetal’, ‘matte’, ‘softmetal’, ‘dkEdge’, ‘clear’, ‘flat’, ‘translucentPowder’, ‘metal’, ‘warmMatte’, ‘powder’, ‘legacyWireframe’, ‘plastic’}

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: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.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: openpyxl.descriptors.serialisable.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'