About using the InteractorStyleDrawPolygon

I display the rendered image of vtk python to the web through the trame framework. At this time, I noticed that the lines drawn by the class InteractorStyleDrawPolygon will not be displayed on the web.Why?