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

path-intersection

Package Overview
Dependencies
Maintainers
2
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 1.1.0 to 1.1.1

6

CHANGELOG.md

@@ -9,5 +9,9 @@ # Changelog

## 1.1.1
* `FIX`: correct TypeScript definitions to match export
## 1.1.0
* `FEAT`: add Typescript definitions
* `FEAT`: add TypeScript definitions

@@ -14,0 +18,0 @@ ## ...

16

intersect.d.ts

@@ -32,7 +32,9 @@

*/
export default function findPathIntersections(path1: Path, path2: Path, justCount: true): number;
export default function findPathIntersections(path1: Path, path2: Path, justCount: false): Intersection[];
export default function findPathIntersections(path1: Path, path2: Path): Intersection[];
export default function findPathIntersections(path1: Path, path2: Path, justCount?: boolean): Intersection[] | number;
declare function findPathIntersections(path1: Path, path2: Path, justCount: true): number;
declare function findPathIntersections(path1: Path, path2: Path, justCount: false): Intersection[];
declare function findPathIntersections(path1: Path, path2: Path): Intersection[];
declare function findPathIntersections(path1: Path, path2: Path, justCount?: boolean): Intersection[] | number;
export = findPathIntersections;
/**

@@ -49,6 +51,6 @@ * A string in the form of 'M150,150m0,-18a18,18,0,1,1,0,36a18,18,0,1,1,0,-36z'

*/
export type Path = string | PathComponent[];
export type PathComponent = any[];
declare type Path = string | PathComponent[];
declare type PathComponent = any[];
export interface Intersection {
declare interface Intersection {
/**

@@ -55,0 +57,0 @@ * Segment of first path.

{
"name": "path-intersection",
"version": "1.1.0",
"version": "1.1.1",
"description": "Computes the intersection between two SVG paths",

@@ -5,0 +5,0 @@ "main": "intersect.js",

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