How can i save a svg or xml has overlays doms

when i load my workflow xml, i add some tips used overlays;such as
const overlays = viewer.get(“overlays”)
overlays.add(‘node_id’, {
  position: {
     top: -45,
     left: 20
   html: ‘div’

how can i save a svg or xml has this myself overlays doms, such as userA dom

As far as I know, this is not possible at the moment with our toolkit API. Please refer to this thread.

Overlays cannot be saved as they are not part of the diagram itself.