Hello Alexey
I'm not sure if that helps, but the generated "g-container" in SVG has an ID according to the name of a class you've given. Example:
@startuml
class TestClass
@enduml
results in:
(...)
<!--class TestClass-->
<g id="elem_TestClass">
(...)
Beside of that I would also love if the generated SVG would contain more ID's for a reference...