Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elastic-svg

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elastic-svg - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

13

index.js

@@ -48,3 +48,2 @@ (function() {

function resize() {
console.log(parent)
base.width = parent.clientWidth;

@@ -94,2 +93,14 @@ base.height = base.width * opts.aspect;

base.changeAspect = function(aspect) {
opts.aspect = aspect;
base.height = base.width * opts.aspect;
svg.setAttributeNS(null, "height", base.height);
}
base.changeHeight = function(height) {
base.height = height;
opts.aspect = base.height / base.width;
svg.setAttributeNS(null, "height", base.height);
}
base.svg = svg;

@@ -96,0 +107,0 @@ return base;

2

package.json
{
"name": "elastic-svg",
"version": "0.0.3",
"version": "0.0.4",
"description": "Responsive SVGs with no dependencies",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc