spin off svg primitives into svg-core.js