Storing svg.js element type