Need help to add text and ruler to the vtk scene

what is the best and proper way to add text and ruler to vtk renderer, I searched and found the closest one is How can i use the vtkActor2D? · Issue #1712 · Kitware/vtk-js · GitHub

"
If you are just looking to add an SVG layer on top of your vtk.js scene without going through widgets, you can add an SVG element on top of your vtk.js scene, then use vtkPixelSpaceCallbackMapper to map 3D world coordinates to their corresponding 2D display location.
"

Could someone give more hint or example how to “add an SVG element on top of your vtk.js scene” and how to use [vtkPixelSpaceCallbackMapper]?

Thanks!

You have those two examples: