Source code for jsoncrack_for_sphinx.config.config_classes
"""Configuration classes for JSONCrack components."""fromtypingimportUnionfrom..utils.typesimportDirections,RenderMode
[docs]classContainerConfig:"""Container configuration."""def__init__(self,direction:Directions=Directions.RIGHT,height:Union[int,str]="500",width:Union[int,str]="100%",):""" Args: direction: Visualization direction height: Container height in pixels or string width: Container width in pixels, percentage, or string """self.direction=directionself.height=str(height)self.width=str(width)def__repr__(self)->str:return(f"ContainerConfig(direction={self.direction}, "f"height='{self.height}', width='{self.width}')")