[docs]defset_font_size(self,fontSize:int|float):"""Sets the font size of the text. Args: fontSize (int | float): New font size for the text. """self.instance.send(self.id,'setFontSize',{'fontSize':fontSize})returnself
[docs]defset_text(self,text:str):"""Sets the text. Args: text (str): New text. """self.instance.send(self.id,'setText',{'text':text})returnself
[docs]defset_text_color(self,color:str):"""Sets the color of the text. Args: color (str): New text color as string, should be in HEX format e.g. #FFFFFF. """self.instance.send(self.id,'setTextColor',{'color':color})returnself
[docs]defupdate_position(self,positionX:int|float,positionY:int|float):"""Updates the position of the text. Args: positionX (int | float): Text X-position. positionY (int | float): Text Y-position. """self.instance.send(self.id,'updatePlainTextPosition',{'positionX':positionX,'positionY':positionY},)returnself