in platf-skia/src/commonMain/kotlin/org/jetbrains/letsPlot/skia/mapping/svg/SvgUtils.kt [100:106]
fun copyAttributes(source: SvgElement, target: SvgElement) {
for (attributeSpec in source.attributeKeys) {
@Suppress("UNCHECKED_CAST")
val spec = attributeSpec as SvgAttributeSpec<Any?>
target.setAttribute(spec, source.getAttribute(attributeSpec).get())
}
}