svg-intersections
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -456,2 +456,5 @@ var Point2D = require('kld-affine').Point2D; | ||
break; | ||
case "V": | ||
segment = new AbsoluteVLineto(params, previous); | ||
break; | ||
case "L": | ||
@@ -620,3 +623,19 @@ segment = new AbsoluteLineto(params, previous); | ||
function AbsoluteVLineto(params, previous) { | ||
if (arguments.length > 0) { | ||
this.init("V", params, previous); | ||
} | ||
} | ||
AbsoluteVLineto.prototype = new AbsolutePathSegment(); | ||
AbsoluteVLineto.prototype.constructor = AbsoluteVLineto; | ||
AbsoluteVLineto.superclass = AbsolutePathSegment.prototype; | ||
AbsoluteVLineto.prototype.init = function(command, params, previous) { | ||
var prevPoint = previous.getLastPoint(); | ||
var point = new Array(); | ||
point.push(prevPoint.x, params.pop()); | ||
AbsoluteVLineto.superclass.init.call(this, command, point, previous); | ||
}; | ||
function AbsoluteLineto(params, previous) { | ||
@@ -623,0 +642,0 @@ if (arguments.length > 0) { |
{ | ||
"name": "svg-intersections", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "A library of intersection algorithms covering all SVG shape types", | ||
@@ -5,0 +5,0 @@ "author": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
107410
10
2216