/ lib / openpyxl / drawing / geometry.pyc
geometry.pyc
 1  o

 2  t��cEE�@sXddlmZddlmZmZmZmZmZmZm	Z	m
 3  Z
 4  mZddlm
Z
mZddlmZddlmZddlmZddlmZmZmZdd	lmZdd
 5  lmZddlmZGdd
�d
e�ZGdd�de�Z Gdd�de�Z!Gdd�de�Z"Gdd�de�Z#Gdd�de�Z$Gdd�de�Z%Gdd�de�Z&Gdd�de�Z'Gdd�de�Z(Gd d!�d!e�Z)Gd"d#�d#e�Z*Gd$d%�d%e�Z+Gd&d'�d'e�Z,Gd(d)�d)e�Z-Gd*d+�d+e�Z.Gd,d-�d-e�Z/Gd.d/�d/e�Z0Gd0d1�d1e�Z1Gd2d3�d3e�Z2Gd4d5�d5e�Z3Gd6d7�d7e�Z4Gd8d9�d9e�Z5Gd:d;�d;e�Z6Gd<d=�d=e�Z7Gd>d?�d?e�Z8Gd@dA�dAe�Z9dBS)C�)�Serialisable)	�Typed�Float�Integer�Bool�MinMax�Set�NoneSet�String�Alias)�
 6  Coordinate�
 7  Percentage)�EmptyTag)�
ExtensionList�)�ColorChoiceDescriptor)�GradientFillProperties�BlipFillProperties�PatternFillProperties)�LineProperties)�Color)�
 8  DRAWING_NSc@s.eZdZdZeZe�Ze�Z		ddd�Z	dS)�Point2D�offNcC�||_||_dS�N��x�y��selfrr�r!��C:\Users\Jacks.GUTTSPC\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\openpyxl\drawing\geometry.py�__init__*�
 9  zPoint2D.__init__�NN)
10  �__name__�
11  __module__�__qualname__�tagnamer�	namespacerrrr#r!r!r!r"r"s�rc@s@eZdZdZeZ	e�Zed�Z	e�Z
12  ed�Z		ddd�ZdS)�PositiveSize2D�ext�cx�cyNcCrr)r-r.)r r-r.r!r!r"r#@r$zPositiveSize2D.__init__r%)
r&r'r(r)rr*rr-r�widthr.�heightr#r!r!r!r"r+2s�r+c@s~eZdZdZeZedd�Zedd�Z	edd�Z
13  eedd�Z
eedd�Zeedd�Zeedd�ZdZ							d	dd�ZdS)
14  �Transform2D�xfrmT��
15  allow_none��
expected_typer4�rr,�chOff�chExtNcC�.||_||_||_||_||_||_||_dSr��rot�flipH�flipVrr,r8r9�r r<r=r>rr,r8r9r!r!r"r#W�	
16  zTransform2D.__init__)NNNNNNN�r&r'r(r)rr*rr<rr=r>rrrr+r,r8r9�__elements__r#r!r!r!r"r1H�&
17  
18  
19  �r1c@s~eZdZdZeZedd�Zedd�Z	edd�Z
20  eedd�Z
eedd�Zeedd�Zeedd�ZdZ							d
21  dd	�ZdS)�GroupTransform2Dr2Tr3r5r7rNcCr:rr;r?r!r!r"r#xr@zGroupTransform2D.__init__)rNNNNNNrAr!r!r!r"rDirCrDc@�2eZdZdZe�Ze�Ze�Z			ddd�ZdS)�SphereCoordsZsphereCoordsNcC�||_||_||_dSr)�lat�lon�rev)r rHrIrJr!r!r"r#��
22  zSphereCoords.__init__�NNN)	r&r'r(r)rrHrIrJr#r!r!r!r"rF���rFc@sReZdZdZegd�d�Zedd�Zee	dd�Z
23  eedd�Z				d
24  dd	�Z
dS)�Camera�camera)>ZlegacyObliqueTopLeftZlegacyObliqueTopZlegacyObliqueTopRightZlegacyObliqueLeftZlegacyObliqueFrontZlegacyObliqueRightZlegacyObliqueBottomLeftZlegacyObliqueBottomZlegacyObliqueBottomRightZlegacyPerspectiveTopLeftZlegacyPerspectiveTopZlegacyPerspectiveTopRightZlegacyPerspectiveLeftZlegacyPerspectiveFrontZlegacyPerspectiveRightZlegacyPerspectiveBottomLeftZlegacyPerspectiveBottomZlegacyPerspectiveBottomRightZorthographicFrontZisometricTopUpZisometricTopDownZisometricBottomUpZisometricBottomDownZisometricLeftUpZisometricLeftDownZisometricRightUpZisometricRightDownZisometricOffAxis1LeftZisometricOffAxis1RightZisometricOffAxis1TopZisometricOffAxis2LeftZisometricOffAxis2RightZisometricOffAxis2TopZisometricOffAxis3LeftZisometricOffAxis3RightZisometricOffAxis3BottomZisometricOffAxis4LeftZisometricOffAxis4RightZisometricOffAxis4BottomZobliqueTopLeftZ
25  obliqueTopZobliqueTopRightZobliqueLeftZobliqueRightZobliqueBottomLeftZ
obliqueBottomZobliqueBottomRightZperspectiveFrontZperspectiveLeftZperspectiveRightZperspectiveAboveZperspectiveBelowZperspectiveAboveLeftFacingZperspectiveAboveRightFacingZ perspectiveContrastingLeftFacingZ!perspectiveContrastingRightFacingZperspectiveHeroicLeftFacingZperspectiveHeroicRightFacingZ"perspectiveHeroicExtremeLeftFacingZ#perspectiveHeroicExtremeRightFacingZperspectiveRelaxedZperspectiveRelaxedModerately��valuesTr3r5NcC�||_||_||_||_dSr)�prst�fov�zoomr<)r rSrTrUr<r!r!r"r#��
26  zCamera.__init__�NNNN)r&r'r(r)rrSrrTrr
rUrFr<r#r!r!r!r"rN�s
27  �rNc@sHeZdZdZegd�d�Zegd�d�Zeedd�Z				d
28  dd	�Z
29  dS)�LightRig�lightRig)ZlegacyFlat1ZlegacyFlat2ZlegacyFlat3ZlegacyFlat4Z
legacyNormal1Z
legacyNormal2Z
legacyNormal3Z
legacyNormal4ZlegacyHarsh1ZlegacyHarsh2ZlegacyHarsh3ZlegacyHarsh4ZthreePtZbalanced�softZharshZfloodZcontrastingZmorningZsunriseZsunsetZchillyZfreezing�flatZtwoPt�glowZ
30  brightRoomrP)�tl�t�tr�l�r�bl�b�brTr5NcCrGr)�rig�dirr<)r rerfr<r!r!r"r#�rKzLightRig.__init__rL)r&r'r(r)rrerfrrFr<r#r!r!r!r"rX�s�rXc@rE)�Vector3D�vectorNcCrGr)�dx�dy�dz)r rirjrkr!r!r"r#�rKzVector3D.__init__rL)	r&r'r(r)rrirjrkr#r!r!r!r"rg�rMrgc@rE)�Point3D�anchorNcCrGr)rr�z)r rrrnr!r!r"r#�rKzPoint3D.__init__rL)	r&r'r(r)rrrrnr#r!r!r!r"rl�rMrlc@sHeZdZeed�Zeed�Zeed�Zee	dd�Z
31  				ddd�ZdS)�Backdrop�r6Tr5NcCrRr)rm�norm�up�extLst)r rmrqrrrsr!r!r"r#rVzBackdrop.__init__rW)r&r'r(rrlrmrgrqrr�OfficeArtExtensionListrsr#r!r!r!r"ros
32  
33  
34  �roc@sJeZdZeed�Zeed�Zeedd�Z	ee
35  dd�Z				ddd�ZdS)�Scene3DrpTr5NcCrRr)rOrY�backdroprs)r rOrYrvrsr!r!r"r#rVzScene3D.__init__rW)
r&r'r(rrNrOrXrYrorvrtrsr#r!r!r!r"rus
36  
37  �ruc@s:eZdZdZe�Ze�Zegd�d�Z			ddd�Z	dS)�Bevel�bevel)ZrelaxedInset�circle�slope�cross�angleZ	softRoundZconvexZ	coolSlant�divotZribletZhardEdgeZartDecorPNcCrGr)�w�hrS)r r~rrSr!r!r"r#3rKzBevel.__init__rL)
38  r&r'r(r)rr~rr	rSr#r!r!r!r"rw's��rwc@s�eZdZeZeedd�Zedd�Z	edd�Z
39  egd�d�Zee
dd�Zee
dd�Zeedd�Zeedd�Zeedd�Z									d	dd�ZdS)
40  �Shape3DTr5r3)ZlegacyMatteZ
legacyPlasticZlegacyMetalZlegacyWireframeZmatteZplasticZmetalZ	warmMatteZtranslucentPowderZpowderZdkEdge�softEdge�clearr[Z	softmetalrPNc
41  
42  Cs:||_||_||_||_||_||_||_||_|	|_dSr)	rn�
43  extrusionH�contourW�prstMaterial�bevelT�bevelB�extrusionClr�
44  contourClrrs)
45  r rnr�r�r�r�r�r�r�rsr!r!r"r#Os
46  zShape3D.__init__)	NNNNNNNNN)r&r'r(rr*rrrnrr�r�r	r�rwr�r�rr�r�rtrsr#r!r!r!r"r�=s*
47  
48  �r�c@sNeZdZe�Ze�Zegd�d�Zedd�Z	edd�Z
49  					ddd�ZdS)	�Path2D)rq�lightenZlightenLess�darkenZ
50  darkenLessrPTr3NcCs"||_||_||_||_||_dSr)r~r�fill�stroke�extrusionOk)r r~rr�r�r�r!r!r"r#ms
51  
52  zPath2D.__init__)NNNNN)r&r'r(rr~rr	r�rr�r�r#r!r!r!r"r�es
53  
54  �r�c@�$eZdZeedd�Z	ddd�ZdS)�
55  Path2DListTr5NcC�
56  ||_dSr)�path)r r�r!r!r"r#�
57  zPath2DList.__init__r)r&r'r(rr�r�r#r!r!r!r"r�{��r�c@s6eZdZe�Ze�Ze�Ze�Z				ddd�ZdS)�GeomRectNcCrRr)r`r^rarc)r r`r^rarcr!r!r"r#�rVzGeomRect.__init__rW)	r&r'r(rr`r^rarcr#r!r!r!r"r��s�r�c@�&eZdZe�Ze�Z		ddd�ZdS)�
58  AdjPoint2DNcCrrrrr!r!r"r#�r$zAdjPoint2D.__init__r%)r&r'r(rrrr#r!r!r!r"r����r�c@s0eZdZeddd�Zeed�Z		ddd�ZdS)	�ConnectionSiterih)�min�maxrpNcCrr)�ang�pos)r r�r�r!r!r"r#�r$zConnectionSite.__init__r%)	r&r'r(rr�rr�r�r#r!r!r!r"r��s
59  �r�c@r�)�ConnectionSiteListTr5NcCr�r)�cxn)r r�r!r!r"r#�r�zConnectionSiteList.__init__r)r&r'r(rr�r�r#r!r!r!r"r��r�r�c@seZdZdS)�AdjustHandleListN)r&r'r(r!r!r!r"r��sr�c@r�)�	GeomGuideNcCrr)�name�fmla)r r�r�r!r!r"r#�r$zGeomGuide.__init__r%)r&r'r(r
60  r�r�r#r!r!r!r"r��r�r�c@r�)�
GeomGuideListTr5NcCr�r)�gd)r r�r!r!r"r#�r�zGeomGuideList.__init__r)r&r'r(rr�r�r#r!r!r!r"r��r�r�c@s\eZdZeedd�Zeedd�Zeedd�Zee	dd�Z
61  eed�Z						ddd�Z
dS)�CustomGeometry2DTr5rpNcCs(||_||_||_||_d|_||_dSr)�avLst�gdLst�ahLst�cxnLst�rect�pathLst)r r�r�r�r�r�r�r!r!r"r#�s
62  zCustomGeometry2D.__init__)NNNNNN)r&r'r(rr�r�r�r�r�r�r�r�r�r#r!r!r!r"r��s
63  �r�c@s8eZdZeZegd�d�Zeedd�Z			ddd�Z
64  dS)	�PresetGeometry2D)��lineZlineInv�triangleZ
65  rtTriangler��diamondZ
parallelogramZ	trapezoidZnonIsoscelesTrapezoidZpentagon�hexagonZheptagonZoctagonZdecagonZ	dodecagonZstar4Zstar5Zstar6Zstar7Zstar8Zstar10Zstar12Zstar16Zstar24Zstar32Z	roundRectZ
66  round1RectZround2SameRectZround2DiagRectZ
snipRoundRectZ	snip1RectZ
snip2SameRectZ
snip2DiagRectZplaque�ellipseZteardropZ	homePlateZchevronZpieWedge�pieZblockArcZdonutZ	noSmokingZ
67  rightArrowZ	leftArrowZupArrowZ	downArrowZstripedRightArrowZnotchedRightArrowZbentUpArrowZleftRightArrowZupDownArrowZleftUpArrowZleftRightUpArrowZ	quadArrowZleftArrowCalloutZrightArrowCalloutZupArrowCalloutZdownArrowCalloutZleftRightArrowCalloutZupDownArrowCalloutZquadArrowCalloutZ	bentArrowZ
68  uturnArrowZ
circularArrowZleftCircularArrowZleftRightCircularArrowZcurvedRightArrowZcurvedLeftArrowZ
curvedUpArrowZcurvedDownArrowZswooshArrow�cube�canZ
lightningBoltZheart�sun�moonZ
69  smileyFaceZirregularSeal1ZirregularSeal2ZfoldedCornerrx�frameZ	halfFrame�cornerZ
70  diagStripe�chord�arcZleftBracketZrightBracketZ	leftBraceZ
71  rightBraceZbracketPairZ	bracePairZstraightConnector1ZbentConnector2ZbentConnector3ZbentConnector4ZbentConnector5ZcurvedConnector2ZcurvedConnector3ZcurvedConnector4ZcurvedConnector5Zcallout1Zcallout2Zcallout3ZaccentCallout1ZaccentCallout2ZaccentCallout3ZborderCallout1ZborderCallout2ZborderCallout3ZaccentBorderCallout1ZaccentBorderCallout2ZaccentBorderCallout3ZwedgeRectCalloutZwedgeRoundRectCalloutZwedgeEllipseCalloutZcloudCalloutZcloud�ribbonZribbon2Z
ellipseRibbonZellipseRibbon2ZleftRightRibbonZverticalScrollZhorizontalScroll�waveZ
72  doubleWave�plusZflowChartProcessZflowChartDecisionZflowChartInputOutputZflowChartPredefinedProcessZflowChartInternalStorageZflowChartDocumentZflowChartMultidocumentZflowChartTerminatorZflowChartPreparationZflowChartManualInputZflowChartManualOperationZflowChartConnectorZflowChartPunchedCardZflowChartPunchedTapeZflowChartSummingJunctionZflowChartOrZflowChartCollateZ
flowChartSortZflowChartExtractZflowChartMergeZflowChartOfflineStorageZflowChartOnlineStorageZflowChartMagneticTapeZflowChartMagneticDiskZflowChartMagneticDrumZflowChartDisplayZflowChartDelayZflowChartAlternateProcessZflowChartOffpageConnectorZactionButtonBlankZactionButtonHomeZactionButtonHelpZactionButtonInformationZactionButtonForwardNextZactionButtonBackPreviousZactionButtonEndZactionButtonBeginningZactionButtonReturnZactionButtonDocumentZactionButtonSoundZactionButtonMovieZgear6Zgear9ZfunnelZmathPlusZ	mathMinusZmathMultiplyZ
73  mathDivideZ	mathEqualZmathNotEqualZ
74  cornerTabsZ
75  squareTabsZ
76  plaqueTabsZchartXZ	chartStarZ	chartPlusrPTr5NcCrr)rSr�)r rSr�r!r!r"r#'r$zPresetGeometry2D.__init__r%)r&r'r(rr*rrSrr�r�r#r!r!r!r"r��s�1�r�c@s&eZdZeddgd�Z	ddd�ZdS)�
FontReference�major�minorrPNcCr�r��idx�r r�r!r!r"r#3r�zFontReference.__init__r)r&r'r(r	r�r#r!r!r!r"r�/s�r�c@seZdZe�Z	ddd�ZdS)�StyleMatrixReferenceNcCr�rr�r�r!r!r"r#=r�zStyleMatrixReference.__init__r)r&r'r(rr�r#r!r!r!r"r�9s�r�c@sFeZdZeed�Zeed�Zeed�Zeed�Z					ddd�Z
77  dS)�
78  ShapeStylerpNcCrRr)�lnRef�fillRef�	effectRef�fontRef)r r�r�r�r�r!r!r"r#JrVzShapeStyle.__init__rW)r&r'r(rr�r�r�r�r�r�r#r!r!r!r"r�Cs
79  
80  
81  
82  �r�N):�!openpyxl.descriptors.serialisabler�openpyxl.descriptorsrrrrrrr	r
83  r�openpyxl.descriptors.excelrr
�openpyxl.descriptors.nestedrrrt�colorsrr�rrrr�r�openpyxl.styles.colorsr�openpyxl.xml.constantsrrr+r1rDrFrNrXrgrlrorurwr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r!r!r!r"�<module>sJ,!!*(
84  


85  

86  ?
87