How do you create a circle at the centerpoint of a filled path, in an SVG canvas, from generic Javascript or jQuery?
I've tried:
var path = $('#path123')[0];
var bb = path.getBBox();
var cx = bb.x + bb.width/2;
var cy = bb.y + bb.height/2;
$('svg').append('<circle cx="'+cx+'" cy="'+cy+'" r="40" stroke="black" stroke-width="3" fill="red" />');
but this doesn't seem to do anything, as I can't see any circle created.