I would like to get the id of a selected element within my svg-canvas as a variable to use it within a function. I would take it that var selected = svgCanvas.getSelectedElems; doesn't pass a particular id. Any ideas?
You can make direct use of selectedElement.id
var elementSel = selectedElement.id;