elastic-svg
Advanced tools
Comparing version 0.1.1 to 0.1.2
10
index.js
@@ -1,2 +0,2 @@ | ||
// v0.1.1 | ||
// v0.1.2 | ||
@@ -15,12 +15,10 @@ export default function elasticSVG(selector, opts) { | ||
} else { | ||
var parent = document.querySelectorAll(selector || "body"); | ||
var parent = document.querySelector(selector || "body"); | ||
} | ||
if (!parent || !parent.length) { | ||
console.log("Couldn't find a parent for elasticSVG making the selector '" + selector + "'"); | ||
if (!parent) { | ||
console.log("Couldn't find a parent for elasticSVG using the selector '" + selector + "'"); | ||
return; | ||
} | ||
parent = parent[0]; | ||
let initialWidth = parent.clientWidth; | ||
@@ -27,0 +25,0 @@ |
{ | ||
"name": "elastic-svg", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Responsive SVGs with no dependencies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# Elastic SVG elements | ||
======= | ||
v0.1.1 | ||
v0.1.2 | ||
@@ -6,0 +6,0 @@ Scalable Vector Graphics are one of the Web's most triumphant technologies, but they're not as responsive as they might be. This is a very lightweight, dependency-free library that generates `svg` elements that fit to their container and scale <em>or don't scale</em> as desired. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
426499
382