Socket
Socket
Sign inDemoInstall

svg-intersections

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-intersections - npm Package Compare versions

Comparing version 0.3.2 to 0.4.0

test/intersection_tests.js

15

lib/intersect.js

@@ -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": {

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