The "export as SVG/PNG" and "copy as SVG/PNG" actions use the toSvg or toBackgroundSvg methods of a shape util. If a shape does not have a toSvg or toBackgroundSvg method defined, it will default to an empty box.

Custom shape and toolShape with geometry