// Create a circle constcircleEl = createOrResolve(parentEl, `SVGCircleElement`);
If queryOrExisting is specified, it is used as a query to find an existing element. If
query starts with #, this will be set as the element id, if created.
// Creates an element with id 'myCircle' if it doesn't exist constcircleEl = createOrResolve(parentEl, `SVGCircleElement`, `#myCircle`);
createOrResolve<V>(parent, type, queryOrExisting?, suffix?): V
Creates and appends a SVG element.
If
queryOrExisting
is specified, it is used as a query to find an existing element. If query starts with#
, this will be set as the element id, if created.