New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svg-path-interpolator

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

svg-path-interpolator - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

package.json
{
"author": "Justin Wilaby",
"name": "svg-path-interpolator",
"version": "0.2.1",
"version": "0.2.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "description": "The SVG Path Interpolator produces point data representing interpolated values within an SVG path.",

@@ -130,9 +130,14 @@ /**

const trans = new SVGTransform();
const om_transform = other.m_transform;
const tm_transform = trans.m_transform;
trans.m_transform[0] = other.m_transform[0] * m_transform[0] + other.m_transform[1] * m_transform[2];
trans.m_transform[1] = other.m_transform[0] * m_transform[1] + other.m_transform[1] * m_transform[3];
trans.m_transform[2] = other.m_transform[2] * m_transform[0] + other.m_transform[3] * m_transform[2];
trans.m_transform[3] = other.m_transform[2] * m_transform[1] + other.m_transform[3] * m_transform[3];
trans.m_transform[4] = other.m_transform[4] * m_transform[0] + other.m_transform[5] * m_transform[2] + m_transform[4];
trans.m_transform[5] = other.m_transform[4] * m_transform[1] + other.m_transform[5] * m_transform[3] + m_transform[5];
tm_transform[0] = om_transform[0] * m_transform[0] + om_transform[1] * m_transform[2];
tm_transform[1] = om_transform[0] * m_transform[1] + om_transform[1] * m_transform[3];
tm_transform[2] = om_transform[2] * m_transform[0] + om_transform[3] * m_transform[2];
tm_transform[3] = om_transform[2] * m_transform[1] + om_transform[3] * m_transform[3];
tm_transform[4] = om_transform[4] * m_transform[0] + om_transform[5] * m_transform[2] + m_transform[4];
tm_transform[5] = om_transform[4] * m_transform[1] + om_transform[5] * m_transform[3] + m_transform[5];
this.m_transform = trans.m_transform;
return this;
}

@@ -155,2 +160,3 @@

}
return this;
}

@@ -167,2 +173,4 @@

m_transform[3] *= sy;
return this;
}

@@ -175,3 +183,3 @@

m_transform[5] += ty;
return;
return this;
}

@@ -181,14 +189,15 @@

m_transform[5] += tx * m_transform[1] + ty * m_transform[3];
return this;
}
rotateFromVector(x, y){
this.rotate(radToDeg(Math.atan2(y, x)));
return this.rotate(radToDeg(Math.atan2(y, x)));
}
flipX(){
this.scale(-1, 1);
return this.scale(-1, 1);
}
flipY(){
this.scale(1, -1);
return this.scale(1, -1);
}

@@ -205,14 +214,15 @@

m_transform[3] += sx * b;
return this;
}
skew(angleX, angleY){
this.shear(Math.tan(degToRads(angleX)), Math.tan(degToRads(angleY)));
return this.shear(Math.tan(degToRads(angleX)), Math.tan(degToRads(angleY)));
}
skewX(angle){
this.shear(Math.tan(degToRads(angle)), 0);
return this.shear(Math.tan(degToRads(angle)), 0);
}
skewY(angle){
this.shear(0, Math.tan(degToRads(angle)));
return this.shear(0, Math.tan(degToRads(angle)));
}

@@ -219,0 +229,0 @@

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