Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function generatePaths(id) {
const elm = document.getElementById(id);
const bounds = getCanvasBounds(elm);
const draw = SVG(id).size(bounds.canvasWidth, bounds.canvasHeight);
for (let i = 0; i <= numPaths; i++) {
generatePath(draw, bounds);
}
}