How to get the direction of type in svg path

as follows, there is a connection, and the text on the connection is implemented using path text, and when the line is rotated 360 degrees, the text is reversed. How to make the text direction positive no matter how the line is rotated?

Jan.08,2022
Menu