svg-intersections
Advanced tools
Comparing version 0.3.2 to 0.4.0
@@ -18,2 +18,3 @@ /** | ||
var Intersection = require('./Intersection'); | ||
var bezierIntersectionFunctions = require('./functions/bezier') | ||
@@ -134,5 +135,2 @@ var IPTYPE = IntersectionParams.TYPE; | ||
// The basic intersection functions for all SVG shapes expect bezier curves | ||
// If you need to support bezier curves, plug in the functions/bezier module | ||
// like this: intersect.plugin( require('svg-intersections/lib/functions/bezier') ) | ||
var intersectionFunctions = { | ||
@@ -692,10 +690,5 @@ | ||
intersect.plugin = function() { | ||
for(var i = 0; i < arguments.length; i++) { | ||
var arg = arguments[i]; | ||
for(var key in arg) { | ||
if(arg.hasOwnProperty(key)) { | ||
intersectionFunctions[key] = arg[key]; | ||
} | ||
} | ||
for(var key in bezierIntersectionFunctions) { | ||
if(bezierIntersectionFunctions.hasOwnProperty(key)) { | ||
intersectionFunctions[key] = bezierIntersectionFunctions[key]; | ||
} | ||
@@ -702,0 +695,0 @@ } |
{ | ||
"name": "svg-intersections", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"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
111226
11
2287