{"library":"snapsvg-cjs","title":"snapsvg-cjs","type":"library","description":"snapsvg-cjs is a CommonJS wrapper for SnapSVG (version 0.0.6), enabling seamless use with Webpack without import-loader configuration. It repackages the original AMD-formatted SnapSVG library into CommonJS format. The package has a peer dependency on eve (~0.5.1). It is a thin wrapper with slow updates; consider @snapsvg/core for modern ESM support.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install snapsvg-cjs"],"cli":null},"imports":["import Snap from 'snapsvg-cjs'","import Snap from 'snapsvg-cjs'","import Snap from 'snapsvg-cjs'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/geelen/Snap.svg-cjs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/snapsvg-cjs","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import Snap from 'snapsvg-cjs';\n\n// Create an SVG element\nconst s = Snap(800, 600);\ndocument.body.appendChild(s.node);\n\n// Draw a circle\nconst circle = s.circle(150, 150, 100);\ncircle.attr({\n  fill: '#f06',\n  stroke: '#000',\n  strokeWidth: 5\n});\n\n// Animate\ncircle.animate({ r: 50 }, 1000);\n\n// Access the SVG node\nconsole.log(s.node);","lang":"typescript","description":"Initializes SnapSVG, draws a circle, and animates its radius.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}