o
    gsD                     @   s,  d dl mZ d dlmZmZmZmZmZmZm	Z	m
Z
mZ d dlmZmZ d dlmZ ddlmZ d dlmZ d dlmZ G d	d
 d
eZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZ G dd deZ!G dd  d eZ"G d!d" d"eZ#G d#d$ d$eZ$G d%d& d&eZ%G d'd( d(eZ&G d)d* d*eZ'G d+d, d,eZ(G d-d. d.eZ)G d/d0 d0eZ*G d1d2 d2eZ+G d3d4 d4eZ,G d5d6 d6eZ-G d7d8 d8eZ.G d9d: d:eZ/G d;d< d<eZ0G d=d> d>eZ1d?S )@    )Serialisable)	TypedFloatIntegerBoolMinMaxSetNoneSetStringAlias)
Coordinate
Percentage)ExtensionList   )LineProperties)Color)
DRAWING_NSc                   @   s.   e Zd ZdZeZe Ze Z		dddZ	dS )Point2DoffNc                 C      || _ || _d S Nxyselfr   r    r   S/var/www/html/api-tag/env/lib/python3.10/site-packages/openpyxl/drawing/geometry.py__init__      
zPoint2D.__init__NN)
__name__
__module____qualname__tagnamer   	namespacer   r   r   r   r   r   r   r   r      s    r   c                   @   s@   e Zd ZdZeZ	 e ZedZ	e Z
edZ		dddZdS )PositiveSize2DextcxcyNc                 C   r   r   )r(   r)   )r   r(   r)   r   r   r   r   5   r   zPositiveSize2D.__init__r    )r!   r"   r#   r$   r   r%   r   r(   r   widthr)   heightr   r   r   r   r   r&   '   s    r&   c                   @   s~   e Zd ZdZeZeddZeddZ	eddZ
eeddZeeddZeeddZeeddZdZ							d	ddZdS )
Transform2DxfrmT
allow_noneexpected_typer/   r   r'   chOffchExtNc                 C   .   || _ || _|| _|| _|| _|| _|| _d S r   rotflipHflipVr   r'   r3   r4   r   r7   r8   r9   r   r'   r3   r4   r   r   r   r   L      	
zTransform2D.__init__)NNNNNNNr!   r"   r#   r$   r   r%   r   r7   r   r8   r9   r   r   r   r&   r'   r3   r4   __elements__r   r   r   r   r   r,   =   &    


r,   c                   @   s~   e Zd ZdZeZeddZeddZ	eddZ
eeddZeeddZeeddZeeddZdZ							d
dd	ZdS )GroupTransform2Dr-   Tr.   r0   r2   r   Nc                 C   r5   r   r6   r:   r   r   r   r   m   r;   zGroupTransform2D.__init__)r   NNNNNNr<   r   r   r   r   r?   ^   r>   r?   c                   @   2   e Zd ZdZe Ze Ze Z			dddZdS )SphereCoordssphereCoordsNc                 C      || _ || _|| _d S r   )latlonrev)r   rD   rE   rF   r   r   r   r         
zSphereCoords.__init__NNN)	r!   r"   r#   r$   r   rD   rE   rF   r   r   r   r   r   rA          rA   c                   @   sR   e Zd ZdZeg ddZeddZee	ddZ
eeddZ				d
dd	ZdS )Cameracamera)>legacyObliqueTopLeftlegacyObliqueToplegacyObliqueTopRightlegacyObliqueLeftlegacyObliqueFrontlegacyObliqueRightlegacyObliqueBottomLeftlegacyObliqueBottomlegacyObliqueBottomRightlegacyPerspectiveTopLeftlegacyPerspectiveToplegacyPerspectiveTopRightlegacyPerspectiveLeftlegacyPerspectiveFrontlegacyPerspectiveRightlegacyPerspectiveBottomLeftlegacyPerspectiveBottomlegacyPerspectiveBottomRightorthographicFrontisometricTopUpisometricTopDownisometricBottomUpisometricBottomDownisometricLeftUpisometricLeftDownisometricRightUpisometricRightDownisometricOffAxis1LeftisometricOffAxis1RightisometricOffAxis1TopisometricOffAxis2LeftisometricOffAxis2RightisometricOffAxis2TopisometricOffAxis3LeftisometricOffAxis3RightisometricOffAxis3BottomisometricOffAxis4LeftisometricOffAxis4RightisometricOffAxis4BottomobliqueTopLeft
obliqueTopobliqueTopRightobliqueLeftobliqueRightobliqueBottomLeftobliqueBottomobliqueBottomRightperspectiveFrontperspectiveLeftperspectiveRightperspectiveAboveperspectiveBelowperspectiveAboveLeftFacingperspectiveAboveRightFacing perspectiveContrastingLeftFacing!perspectiveContrastingRightFacingperspectiveHeroicLeftFacingperspectiveHeroicRightFacing"perspectiveHeroicExtremeLeftFacing#perspectiveHeroicExtremeRightFacingperspectiveRelaxedperspectiveRelaxedModeratelyvaluesTr.   r0   Nc                 C      || _ || _|| _|| _d S r   )prstfovzoomr7   )r   r   r   r   r7   r   r   r   r         
zCamera.__init__NNNN)r!   r"   r#   r$   r   r   r   r   r   r   r   rA   r7   r   r   r   r   r   rJ      s    
rJ   c                   @   sH   e Zd ZdZeg ddZeg ddZeeddZ				d
dd	Z
dS )LightRiglightRig)legacyFlat1legacyFlat2legacyFlat3legacyFlat4legacyNormal1legacyNormal2legacyNormal3legacyNormal4legacyHarsh1legacyHarsh2legacyHarsh3legacyHarsh4threePtbalancedsoftharshfloodcontrastingmorningsunrisesunsetchillyfreezingflattwoPtglow
brightRoomr   )tlttrlrblbbrTr0   Nc                 C   rC   r   )rigdirr7   )r   r   r   r7   r   r   r   r      rG   zLightRig.__init__rH   )r!   r"   r#   r$   r   r   r   r   rA   r7   r   r   r   r   r   r      s    r   c                   @   r@   )Vector3DvectorNc                 C   rC   r   )dxdydz)r   r   r   r   r   r   r   r      rG   zVector3D.__init__rH   )	r!   r"   r#   r$   r   r   r   r   r   r   r   r   r   r      rI   r   c                   @   r@   )Point3DanchorNc                 C   rC   r   )r   r   z)r   r   r   r   r   r   r   r      rG   zPoint3D.__init__rH   )	r!   r"   r#   r$   r   r   r   r   r   r   r   r   r   r      rI   r   c                   @   sH   e Zd ZeedZeedZeedZee	ddZ
				dddZdS )Backdropr1   Tr0   Nc                 C   r   r   )r   normupextLst)r   r   r   r   r   r   r   r   r      r   zBackdrop.__init__r   )r!   r"   r#   r   r   r   r   r   r   OfficeArtExtensionListr   r   r   r   r   r   r      s    


r   c                   @   sJ   e Zd ZeedZeedZeeddZ	ee
ddZ				dddZdS )Scene3Dr   Tr0   Nc                 C   r   r   )rK   r   backdropr   )r   rK   r   r   r   r   r   r   r     r   zScene3D.__init__r   )r!   r"   r#   r   rJ   rK   r   r   r   r   r   r   r   r   r   r   r   r   	  s    

r   c                   @   s:   e Zd ZdZe Ze Zeg ddZ			dddZ	dS )Bevelbevel)relaxedInsetcircleslopecrossangle	softRoundconvex	coolSlantdivotriblethardEdgeartDecor   Nc                 C   rC   r   )whr   )r   r   r   r   r   r   r   r   (  rG   zBevel.__init__rH   )
r!   r"   r#   r$   r   r   r   r	   r   r   r   r   r   r   r     s    r   c                   @   s   e Zd ZeZeeddZeddZ	eddZ
eg ddZeeddZeeddZeeddZeeddZeeddZ									d	ddZdS )
Shape3DTr0   r.   )legacyMattelegacyPlasticlegacyMetallegacyWireframematteplasticmetal	warmMattetranslucentPowderpowderdkEdgesoftEdgeclearr   	softmetalr   Nc
           
      C   s:   || _ || _|| _|| _|| _|| _|| _|| _|	| _d S r   )	r   
extrusionHcontourWprstMaterialbevelTbevelBextrusionClr
contourClrr   )
r   r   r   r   r   r   r   r   r   r   r   r   r   r   D  s   
zShape3D.__init__)	NNNNNNNNN)r!   r"   r#   r   r%   r   r   r   r   r   r   r	   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   2  s*    

r   c                   @   sN   e Zd Ze Ze Zeg ddZeddZ	eddZ
					dddZdS )	Path2D)r   lightenlightenLessdarken
darkenLessr   Tr.   Nc                 C   s"   || _ || _|| _|| _|| _d S r   )r   r   fillstrokeextrusionOk)r   r   r   r   r   r   r   r   r   r   b  s
   
zPath2D.__init__)NNNNN)r!   r"   r#   r   r   r   r	   r   r   r   r   r   r   r   r   r   r   Z  s    

r   c                   @   $   e Zd ZeeddZ	dddZdS )
Path2DListTr0   Nc                 C   
   || _ d S r   )path)r   r   r   r   r   r   t     
zPath2DList.__init__r   )r!   r"   r#   r   r   r   r   r   r   r   r   r   p      r   c                   @   s6   e Zd Ze Ze Ze Ze Z				dddZdS )GeomRectNc                 C   r   r   )r   r   r   r   )r   r   r   r   r   r   r   r   r     r   zGeomRect.__init__r   )	r!   r"   r#   r   r   r   r   r   r   r   r   r   r   r   z  s    r   c                   @   &   e Zd Ze Ze Z		dddZdS )
AdjPoint2DNc                 C   r   r   r   r   r   r   r   r     r   zAdjPoint2D.__init__r    )r!   r"   r#   r   r   r   r   r   r   r   r   r         r   c                   @   s0   e Zd ZedddZeedZ		dddZdS )	ConnectionSiter   ih  )minmaxr   Nc                 C   r   r   )angpos)r   r  r  r   r   r   r     r   zConnectionSite.__init__r    )	r!   r"   r#   r   r  r   r   r  r   r   r   r   r   r    s    
r  c                   @   r   )ConnectionSiteListTr0   Nc                 C   r   r   )cxn)r   r  r   r   r   r     r   zConnectionSiteList.__init__r   )r!   r"   r#   r   r  r  r   r   r   r   r   r    r   r  c                   @   s   e Zd ZdS )AdjustHandleListN)r!   r"   r#   r   r   r   r   r    s    r  c                   @   r   )	GeomGuideNc                 C   r   r   )namefmla)r   r
  r  r   r   r   r     r   zGeomGuide.__init__r    )r!   r"   r#   r
   r
  r  r   r   r   r   r   r	    r   r	  c                   @   r   )GeomGuideListTr0   Nc                 C   r   r   )gd)r   r  r   r   r   r     r   zGeomGuideList.__init__r   )r!   r"   r#   r   r	  r  r   r   r   r   r   r    r   r  c                   @   s\   e Zd ZeeddZeeddZeeddZee	ddZ
eedZ						dddZdS )CustomGeometry2DTr0   r   Nc                 C   s(   || _ || _|| _|| _d | _|| _d S r   )avLstgdLstahLstcxnLstrectpathLst)r   r  r  r  r  r  r  r   r   r   r     s   
zCustomGeometry2D.__init__)NNNNNN)r!   r"   r#   r   r  r  r  r  r  r  r  r   r  r   r   r   r   r   r    s    
r  c                   @   s8   e Zd ZeZeg ddZeeddZ			dddZ
dS )	PresetGeometry2D)linelineInvtriangle
rtTriangler  diamondparallelogram	trapezoidnonIsoscelesTrapezoidpentagonhexagonheptagonoctagondecagon	dodecagonstar4star5star6star7star8star10star12star16star24star32	roundRect
round1Rectround2SameRectround2DiagRectsnipRoundRect	snip1Rectsnip2SameRectsnip2DiagRectplaqueellipseteardrop	homePlatechevronpieWedgepieblockArcdonut	noSmoking
rightArrow	leftArrowupArrow	downArrowstripedRightArrownotchedRightArrowbentUpArrowleftRightArrowupDownArrowleftUpArrowleftRightUpArrow	quadArrowleftArrowCalloutrightArrowCalloutupArrowCalloutdownArrowCalloutleftRightArrowCalloutupDownArrowCalloutquadArrowCallout	bentArrow
uturnArrowcircularArrowleftCircularArrowleftRightCircularArrowcurvedRightArrowcurvedLeftArrowcurvedUpArrowcurvedDownArrowswooshArrowcubecanlightningBoltheartsunmoon
smileyFaceirregularSeal1irregularSeal2foldedCornerr   frame	halfFramecorner
diagStripechordarcleftBracketrightBracket	leftBrace
rightBracebracketPair	bracePairstraightConnector1bentConnector2bentConnector3bentConnector4bentConnector5curvedConnector2curvedConnector3curvedConnector4curvedConnector5callout1callout2callout3accentCallout1accentCallout2accentCallout3borderCallout1borderCallout2borderCallout3accentBorderCallout1accentBorderCallout2accentBorderCallout3wedgeRectCalloutwedgeRoundRectCalloutwedgeEllipseCalloutcloudCalloutcloudribbonribbon2ellipseRibbonellipseRibbon2leftRightRibbonverticalScrollhorizontalScrollwave
doubleWaveplusflowChartProcessflowChartDecisionflowChartInputOutputflowChartPredefinedProcessflowChartInternalStorageflowChartDocumentflowChartMultidocumentflowChartTerminatorflowChartPreparationflowChartManualInputflowChartManualOperationflowChartConnectorflowChartPunchedCardflowChartPunchedTapeflowChartSummingJunctionflowChartOrflowChartCollateflowChartSortflowChartExtractflowChartMergeflowChartOfflineStorageflowChartOnlineStorageflowChartMagneticTapeflowChartMagneticDiskflowChartMagneticDrumflowChartDisplayflowChartDelayflowChartAlternateProcessflowChartOffpageConnectoractionButtonBlankactionButtonHomeactionButtonHelpactionButtonInformationactionButtonForwardNextactionButtonBackPreviousactionButtonEndactionButtonBeginningactionButtonReturnactionButtonDocumentactionButtonSoundactionButtonMoviegear6gear9funnelmathPlus	mathMinusmathMultiply
mathDivide	mathEqualmathNotEqual
cornerTabs
squareTabs
plaqueTabschartX	chartStar	chartPlusr   Tr0   Nc                 C   r   r   )r   r  )r   r   r  r   r   r   r     r   zPresetGeometry2D.__init__r    )r!   r"   r#   r   r%   r   r   r   r  r  r   r   r   r   r   r    s    1r  c                   @   s&   e Zd ZeddgdZ	dddZdS )FontReferencemajorminorr   Nc                 C   r   r   idxr   r  r   r   r   r   (  r   zFontReference.__init__r   )r!   r"   r#   r	   r  r   r   r   r   r   r  $  s    r  c                   @   s   e Zd Ze Z	dddZdS )StyleMatrixReferenceNc                 C   r   r   r  r  r   r   r   r   2  r   zStyleMatrixReference.__init__r   )r!   r"   r#   r   r  r   r   r   r   r   r  .  s    r  c                   @   sF   e Zd ZeedZeedZeedZeedZ					dddZ
dS )
ShapeStyler   Nc                 C   r   r   )lnReffillRef	effectReffontRef)r   r  r  r  r  r   r   r   r   ?  r   zShapeStyle.__init__r   )r!   r"   r#   r   r  r  r  r  r  r  r   r   r   r   r   r  8  s    



r  N)2!openpyxl.descriptors.serialisabler   openpyxl.descriptorsr   r   r   r   r   r   r	   r
   r   openpyxl.descriptors.excelr   r   r   r   r  r   openpyxl.styles.colorsr   openpyxl.xml.constantsr   r   r&   r,   r?   rA   rJ   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r	  r  r  r  r  r  r  r   r   r   r   <module>   sD   ,!!*(


?

