openpyxl.drawing.geometry module¶
-
class
openpyxl.drawing.geometry.AdjPoint2D(x=None, y=None)[源代码]¶ 基类:
openpyxl.descriptors.serialisable.Serialisable-
x¶ Values must be of type <class ‘int’>
-
y¶ Values must be of type <class ‘int’>
-
-
class
openpyxl.drawing.geometry.Backdrop(anchor=None, norm=None, up=None, extLst=None)[源代码]¶ 基类:
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)[源代码]¶ 基类:
openpyxl.descriptors.serialisable.Serialisable-
h¶ Values must be of type <class ‘int’>
-
prst¶ Value must be one of {‘divot’, ‘angle’, ‘convex’, ‘softRound’, ‘artDeco’, ‘coolSlant’, ‘circle’, ‘cross’, ‘slope’, ‘relaxedInset’, ‘riblet’, ‘hardEdge’}
-
tagname= 'bevel'¶
-
w¶ Values must be of type <class ‘int’>
-
-
class
openpyxl.drawing.geometry.Camera(prst=None, fov=None, zoom=None, rot=None)[源代码]¶ 基类:
openpyxl.descriptors.serialisable.Serialisable-
fov¶ Values must be of type <class ‘int’>
-
prst¶ Value must be one of {‘obliqueBottom’, ‘perspectiveHeroicExtremeRightFacing’, ‘obliqueRight’, ‘legacyPerspectiveBottomRight’, ‘legacyPerspectiveTop’, ‘isometricOffAxis3Right’, ‘legacyPerspectiveBottom’, ‘obliqueBottomRight’, ‘legacyObliqueTopRight’, ‘isometricOffAxis4Right’, ‘orthographicFront’, ‘perspectiveAboveRightFacing’, ‘isometricLeftDown’, ‘perspectiveHeroicLeftFacing’, ‘perspectiveAboveLeftFacing’, ‘legacyPerspectiveRight’, ‘isometricRightDown’, ‘perspectiveHeroicRightFacing’, ‘perspectiveHeroicExtremeLeftFacing’, ‘obliqueLeft’, ‘perspectiveContrastingRightFacing’, ‘legacyObliqueBottom’, ‘obliqueTopLeft’, ‘isometricOffAxis1Right’, ‘isometricTopDown’, ‘obliqueBottomLeft’, ‘isometricOffAxis4Left’, ‘legacyObliqueLeft’, ‘isometricBottomUp’, ‘legacyPerspectiveBottomLeft’, ‘legacyObliqueFront’, ‘isometricLeftUp’, ‘legacyObliqueRight’, ‘perspectiveContrastingLeftFacing’, ‘perspectiveRelaxedModerately’, ‘isometricBottomDown’, ‘legacyObliqueTopLeft’, ‘obliqueTop’, ‘perspectiveAbove’, ‘perspectiveBelow’, ‘perspectiveRelaxed’, ‘obliqueTopRight’, ‘isometricOffAxis3Bottom’, ‘legacyPerspectiveFront’, ‘isometricOffAxis2Right’, ‘legacyObliqueTop’, ‘legacyObliqueBottomLeft’, ‘legacyPerspectiveLeft’, ‘isometricRightUp’, ‘isometricOffAxis1Left’, ‘isometricOffAxis1Top’, ‘isometricOffAxis4Bottom’, ‘isometricOffAxis3Left’, ‘isometricOffAxis2Top’, ‘perspectiveRight’, ‘isometricOffAxis2Left’, ‘legacyObliqueBottomRight’, ‘isometricTopUp’, ‘perspectiveFront’, ‘legacyPerspectiveTopRight’, ‘legacyPerspectiveTopLeft’, ‘perspectiveLeft’}
-
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)[源代码]¶ 基类:
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)[源代码]¶ 基类:
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)[源代码]¶ 基类:
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)[源代码]¶ 基类:
openpyxl.descriptors.serialisable.Serialisable-
idx¶ Value must be one of {‘major’, ‘minor’}
-
-
class
openpyxl.drawing.geometry.GeomGuide(name=None, fmla=None)[源代码]¶ 基类:
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)[源代码]¶ 基类:
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)[源代码]¶ 基类:
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)[源代码]¶ 基类:
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)[源代码]¶ 基类:
openpyxl.descriptors.serialisable.Serialisable-
dir¶ Value must be one of {‘tl’, ‘r’, ‘b’, ‘l’, ‘t’, ‘bl’, ‘tr’, ‘br’}
-
rig¶ Value must be one of {‘legacyHarsh1’, ‘legacyHarsh2’, ‘sunset’, ‘legacyNormal1’, ‘legacyHarsh3’, ‘freezing’, ‘legacyFlat1’, ‘morning’, ‘soft’, ‘legacyNormal4’, ‘twoPt’, ‘contrasting’, ‘legacyFlat4’, ‘legacyNormal3’, ‘legacyFlat3’, ‘legacyHarsh4’, ‘brightRoom’, ‘legacyFlat2’, ‘flat’, ‘sunrise’, ‘legacyNormal2’, ‘threePt’, ‘flood’, ‘glow’, ‘harsh’, ‘balanced’, ‘chilly’}
-
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)[源代码]¶ 基类:
openpyxl.descriptors.serialisable.Serialisable-
extrusionOk¶ Values must be of type <class ‘bool’>
-
fill¶ Value must be one of {‘lighten’, ‘darken’, ‘darkenLess’, ‘norm’, ‘lightenLess’}
-
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)[源代码]¶ 基类:
openpyxl.descriptors.serialisable.Serialisable-
path¶ Values must be of type <class ‘openpyxl.drawing.geometry.Path2D’>
-
-
class
openpyxl.drawing.geometry.Point2D(x=None, y=None)[源代码]¶ 基类:
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)[源代码]¶ 基类:
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)[源代码]¶ 基类:
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 descriptve 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 descriptve name is desired (eg. “underline” for “u”)
-
-
class
openpyxl.drawing.geometry.PresetGeometry2D(prst=None, avLst=None)[源代码]¶ 基类:
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 {‘leftRightRibbon’, ‘flowChartConnector’, ‘accentBorderCallout3’, ‘actionButtonForwardNext’, ‘flowChartExtract’, ‘pentagon’, ‘snip2SameRect’, ‘hexagon’, ‘curvedConnector3’, ‘flowChartDisplay’, ‘borderCallout2’, ‘leftRightCircularArrow’, ‘stripedRightArrow’, ‘bentConnector5’, ‘heptagon’, ‘heart’, ‘actionButtonHelp’, ‘circularArrow’, ‘funnel’, ‘accentCallout2’, ‘teardrop’, ‘flowChartOnlineStorage’, ‘cornerTabs’, ‘halfFrame’, ‘ellipseRibbon’, ‘pie’, ‘actionButtonMovie’, ‘chevron’, ‘ribbon’, ‘wedgeRoundRectCallout’, ‘star12’, ‘noSmoking’, ‘leftUpArrow’, ‘flowChartAlternateProcess’, ‘flowChartManualOperation’, ‘flowChartPredefinedProcess’, ‘homePlate’, ‘flowChartInputOutput’, ‘lineInv’, ‘flowChartInternalStorage’, ‘flowChartPreparation’, ‘star7’, ‘borderCallout1’, ‘rect’, ‘upDownArrow’, ‘leftArrow’, ‘wedgeRectCallout’, ‘rtTriangle’, ‘curvedConnector2’, ‘flowChartSummingJunction’, ‘callout1’, ‘flowChartDelay’, ‘leftRightUpArrow’, ‘flowChartOfflineStorage’, ‘ellipseRibbon2’, ‘roundRect’, ‘star6’, ‘cloudCallout’, ‘flowChartMagneticDisk’, ‘accentBorderCallout1’, ‘wedgeEllipseCallout’, ‘ellipse’, ‘mathPlus’, ‘flowChartDocument’, ‘chord’, ‘rightBracket’, ‘flowChartMagneticDrum’, ‘triangle’, ‘leftBracket’, ‘sun’, ‘leftCircularArrow’, ‘diagStripe’, ‘upDownArrowCallout’, ‘callout3’, ‘flowChartOr’, ‘plus’, ‘mathEqual’, ‘irregularSeal2’, ‘dodecagon’, ‘leftRightArrow’, ‘curvedUpArrow’, ‘round2SameRect’, ‘flowChartMultidocument’, ‘lightningBolt’, ‘actionButtonInformation’, ‘gear9’, ‘actionButtonBlank’, ‘cube’, ‘pieWedge’, ‘bracePair’, ‘curvedLeftArrow’, ‘flowChartCollate’, ‘bentConnector3’, ‘bentArrow’, ‘squareTabs’, ‘frame’, ‘irregularSeal1’, ‘actionButtonHome’, ‘star32’, ‘flowChartPunchedCard’, ‘leftBrace’, ‘ribbon2’, ‘leftArrowCallout’, ‘rightArrow’, ‘star10’, ‘leftRightArrowCallout’, ‘callout2’, ‘diamond’, ‘bracketPair’, ‘quadArrowCallout’, ‘foldedCorner’, ‘decagon’, ‘arc’, ‘curvedConnector5’, ‘curvedConnector4’, ‘wave’, ‘flowChartManualInput’, ‘blockArc’, ‘swooshArrow’, ‘actionButtonReturn’, ‘star4’, ‘flowChartMagneticTape’, ‘chartX’, ‘actionButtonEnd’, ‘parallelogram’, ‘flowChartTerminator’, ‘chartStar’, ‘downArrowCallout’, ‘flowChartOffpageConnector’, ‘bentConnector4’, ‘flowChartDecision’, ‘chartPlus’, ‘cloud’, ‘verticalScroll’, ‘star5’, ‘horizontalScroll’, ‘star8’, ‘actionButtonDocument’, ‘mathDivide’, ‘curvedRightArrow’, ‘snipRoundRect’, ‘rightArrowCallout’, ‘line’, ‘plaque’, ‘flowChartSort’, ‘straightConnector1’, ‘upArrowCallout’, ‘corner’, ‘star16’, ‘rightBrace’, ‘flowChartPunchedTape’, ‘uturnArrow’, ‘nonIsoscelesTrapezoid’, ‘flowChartMerge’, ‘trapezoid’, ‘round1Rect’, ‘star24’, ‘smileyFace’, ‘accentCallout3’, ‘flowChartProcess’, ‘accentCallout1’, ‘donut’, ‘bentConnector2’, ‘notchedRightArrow’, ‘bevel’, ‘actionButtonSound’, ‘actionButtonBackPrevious’, ‘mathNotEqual’, ‘quadArrow’, ‘actionButtonBeginning’, ‘downArrow’, ‘doubleWave’, ‘borderCallout3’, ‘upArrow’, ‘round2DiagRect’, ‘snip2DiagRect’, ‘can’, ‘octagon’, ‘mathMinus’, ‘curvedDownArrow’, ‘mathMultiply’, ‘bentUpArrow’, ‘snip1Rect’, ‘plaqueTabs’, ‘gear6’, ‘accentBorderCallout2’, ‘moon’}
-
-
class
openpyxl.drawing.geometry.Scene3D(camera=None, lightRig=None, backdrop=None, extLst=None)[源代码]¶ 基类:
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)[源代码]¶ 基类:
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 {‘legacyWireframe’, ‘legacyPlastic’, ‘legacyMatte’, ‘translucentPowder’, ‘clear’, ‘metal’, ‘softEdge’, ‘flat’, ‘softmetal’, ‘dkEdge’, ‘warmMatte’, ‘matte’, ‘legacyMetal’, ‘plastic’, ‘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)[源代码]¶ 基类:
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)[源代码]¶ 基类:
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)[源代码]¶ 基类:
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)[源代码]¶ 基类:
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'¶
-