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

path-intersection

Package Overview
Dependencies
Maintainers
7
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-intersection - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

4

CHANGELOG.md

@@ -9,2 +9,6 @@ # Changelog

## 2.2.1
* `FIX`: correct parsing of paths with scientific notation ([#17](https://github.com/bpmn-io/path-intersection/issues/17), [#18](https://github.com/bpmn-io/path-intersection/issues/18), [#19](https://github.com/bpmn-io/path-intersection/issues/19))
## 2.2.0

@@ -11,0 +15,0 @@

@@ -20,3 +20,3 @@ 'use strict';

pathCommand = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/ig,
pathValues = /(-?\d*\.?\d*(?:e[-+]?\\d+)?)[\s]*,?[\s]*/ig;
pathValues = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/ig;

@@ -819,9 +819,13 @@ var isArray = Array.isArray || function(o) { return o instanceof Array; };

if (pathCommand == 'C' || pathCommand == 'S') {
// In 'S' case we have to take into account, if the previous command is C/S.
nx = d.x * 2 - d.bx;
// And reflect the previous
ny = d.y * 2 - d.by;
// command's control point relative to the current point.
}
else {
// or some else or nothing

@@ -835,9 +839,13 @@ nx = d.x;

if (pathCommand == 'Q' || pathCommand == 'T') {
// In 'T' case we have to take into account, if the previous command is Q/T.
d.qx = d.x * 2 - d.qx;
// And make a reflection similar
d.qy = d.y * 2 - d.qy;
// to case 'S'.
}
else {
// or something else or nothing

@@ -844,0 +852,0 @@ d.qx = d.x;

31

package.json
{
"name": "path-intersection",
"version": "2.2.0",
"version": "2.2.1",
"description": "Computes the intersection between two SVG paths",

@@ -28,21 +28,20 @@ "main": "intersect.js",

"devDependencies": {
"chai": "^4.1.2",
"chai": "^4.3.4",
"domify": "^1.4.0",
"eslint": "^4.19.1",
"eslint-plugin-bpmn-io": "^0.5.2",
"karma": "^1.7.1",
"karma-chrome-launcher": "^2.2.0",
"karma-firefox-launcher": "^1.1.0",
"karma-mocha": "^1.3.0",
"eslint": "^7.22.0",
"eslint-plugin-bpmn-io": "^0.12.0",
"karma": "^6.2.0",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^2.1.0",
"karma-mocha": "^2.0.1",
"karma-phantomjs-launcher": "^1.0.4",
"karma-sinon-chai": "^1.3.4",
"karma-spec-reporter": "0.0.31",
"karma-webpack": "^4.0.2",
"mocha": "^5.1.1",
"karma-sinon-chai": "^2.0.2",
"karma-webpack": "^5.0.0",
"mocha": "^8.3.2",
"npm-run-all": "^4.1.2",
"puppeteer": "^1.3.0",
"sinon": "^4.5.0",
"sinon-chai": "^3.0.0",
"webpack": "^4.41.2"
"puppeteer": "^8.0.0",
"sinon": "^9.2.4",
"sinon-chai": "^3.5.0",
"webpack": "^5.25.1"
}
}
# path-intersection
[![Build Status](https://travis-ci.org/bpmn-io/path-intersection.svg?branch=master)](https://travis-ci.org/bpmn-io/path-intersection)
[![CI](https://github.com/bpmn-io/path-intersection/workflows/CI/badge.svg)](https://github.com/bpmn-io/path-intersection/actions?query=workflow%3ACI)

@@ -5,0 +5,0 @@ Computes the intersection between two SVG paths.

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