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