path-intersection
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -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 @@ ## ... |
@@ -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", |
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
63292
1013