Is there any way to get the silhouette of polydata?

I want to get the silhouette of polydata. There is an example in c++ https://examples.vtk.org/site/Cxx/PolyData/Silhouette. Is there any way to get the silhouette of polydata with vtk.js?