[docs]defset_line_color(self,color:str):"""Sets the color of the Horizontal Line. Args: color (str): New line color as string, should be in HEX format e.g. #FFFFFF. """self.instance.send(self.id,'setLineColor',{'color':color})returnself
[docs]defset_line_width(self,width:int|float):"""Sets the width of the Horizontal Line. Args: width (int | float): New line width. """self.instance.send(self.id,'setLineWidth',{'width':width})returnself
[docs]defupdate_position(self,yValue:int|float):"""Updates the drawing tool location. Args: yValue (int | float): Y-value for the line. """self.instance.send(self.id,'updateHorizontalLinePosition',{'yValue':yValue})returnself