@thi.ng/quad-edge
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.2.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.4...@thi.ng/quad-edge@0.2.5) (2020-01-24) | ||
**Note:** Version bump only for package @thi.ng/quad-edge | ||
## [0.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.3...@thi.ng/quad-edge@0.2.4) (2019-11-30) | ||
@@ -8,0 +16,0 @@ |
/** | ||
* Helper function to set / reset edge ID counter. | ||
* | ||
* @param id | ||
* @param id - | ||
*/ | ||
export declare const setNextID: (id: number) => number; | ||
/** | ||
* Type alias for a 4-tuple of `Edge` instances. | ||
* Type alias for a 4-tuple of {@link Edge} instances. | ||
*/ | ||
@@ -17,4 +17,4 @@ export declare type QuadEdge<T> = [Edge<T>, Edge<T>, Edge<T>, Edge<T>]; | ||
* | ||
* - http://www.cs.cmu.edu/afs/andrew/scs/cs/15-463/2001/pub/src/a2/quadedge.html | ||
* - http://www.cs.cmu.edu/afs/andrew/scs/cs/15-463/2001/pub/src/a2/lischinski/114.ps | ||
* - {@link http://www.cs.cmu.edu/afs/andrew/scs/cs/15-463/2001/pub/src/a2/quadedge.html} | ||
* - {@link http://www.cs.cmu.edu/afs/andrew/scs/cs/15-463/2001/pub/src/a2/lischinski/114.ps} | ||
*/ | ||
@@ -24,10 +24,10 @@ export declare class Edge<T> { | ||
* Main edge / quadedge factory function. Use this in preference of | ||
* direct invocation of the `Edge` constructor. | ||
* direct invocation of the {@link Edge} constructor. | ||
* | ||
* Creates new `QuadEdge` with 4 child edges and returns the first | ||
* Creates new {@link QuadEdge} with 4 child edges and returns the first | ||
* child/primary edge. If `src` and `dest` are not `null`ish, the | ||
* given args will be associated with that new edge as end points. | ||
* | ||
* @param src | ||
* @param dest | ||
* @param src - | ||
* @param dest - | ||
*/ | ||
@@ -97,4 +97,4 @@ static create<T>(src?: T, dest?: T): Edge<T>; | ||
* | ||
* @param o | ||
* @param d | ||
* @param o - | ||
* @param d - | ||
*/ | ||
@@ -110,9 +110,10 @@ setEnds(o: T, d: T): void; | ||
* operator will join them and if both rings are the same ring, they | ||
* will be split / separated. Therefore, `splice()` is it's own | ||
* reverse operator and the only operator needed to edit quad edge | ||
* will be split / separated. Therefore, splice` is it's own reverse | ||
* operator and the only operator needed to edit quad edge | ||
* topologies. | ||
* | ||
* @param e | ||
* @param e - | ||
*/ | ||
splice(e: Edge<T>): Edge<T>; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
24
index.js
@@ -5,3 +5,3 @@ let NEXT_ID = 0; | ||
* | ||
* @param id | ||
* @param id - | ||
*/ | ||
@@ -15,4 +15,4 @@ export const setNextID = (id) => (NEXT_ID = (id + 3) & -4); | ||
* | ||
* - http://www.cs.cmu.edu/afs/andrew/scs/cs/15-463/2001/pub/src/a2/quadedge.html | ||
* - http://www.cs.cmu.edu/afs/andrew/scs/cs/15-463/2001/pub/src/a2/lischinski/114.ps | ||
* - {@link http://www.cs.cmu.edu/afs/andrew/scs/cs/15-463/2001/pub/src/a2/quadedge.html} | ||
* - {@link http://www.cs.cmu.edu/afs/andrew/scs/cs/15-463/2001/pub/src/a2/lischinski/114.ps} | ||
*/ | ||
@@ -26,10 +26,10 @@ export class Edge { | ||
* Main edge / quadedge factory function. Use this in preference of | ||
* direct invocation of the `Edge` constructor. | ||
* direct invocation of the {@link Edge} constructor. | ||
* | ||
* Creates new `QuadEdge` with 4 child edges and returns the first | ||
* Creates new {@link QuadEdge} with 4 child edges and returns the first | ||
* child/primary edge. If `src` and `dest` are not `null`ish, the | ||
* given args will be associated with that new edge as end points. | ||
* | ||
* @param src | ||
* @param dest | ||
* @param src - | ||
* @param dest - | ||
*/ | ||
@@ -126,4 +126,4 @@ static create(src, dest) { | ||
* | ||
* @param o | ||
* @param d | ||
* @param o - | ||
* @param d - | ||
*/ | ||
@@ -160,7 +160,7 @@ setEnds(o, d) { | ||
* operator will join them and if both rings are the same ring, they | ||
* will be split / separated. Therefore, `splice()` is it's own | ||
* reverse operator and the only operator needed to edit quad edge | ||
* will be split / separated. Therefore, splice` is it's own reverse | ||
* operator and the only operator needed to edit quad edge | ||
* topologies. | ||
* | ||
* @param e | ||
* @param e - | ||
*/ | ||
@@ -167,0 +167,0 @@ splice(e) { |
{ | ||
"name": "@thi.ng/quad-edge", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Quadedge data structure after Guibas & Stolfi", | ||
@@ -26,13 +26,15 @@ "module": "./index.js", | ||
"doc": "node_modules/.bin/typedoc --mode modules --out doc src", | ||
"doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", | ||
"pub": "yarn build:release && yarn publish --access public" | ||
}, | ||
"devDependencies": { | ||
"@istanbuljs/nyc-config-typescript": "^0.1.3", | ||
"@types/mocha": "^5.2.6", | ||
"@types/node": "^12.12.11", | ||
"mocha": "^6.2.2", | ||
"nyc": "^14.0.0", | ||
"ts-node": "^8.5.2", | ||
"typedoc": "^0.15.2", | ||
"typescript": "^3.7.2" | ||
"@istanbuljs/nyc-config-typescript": "^1.0.1", | ||
"@microsoft/api-extractor": "^7.7.7", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^13.5.0", | ||
"mocha": "^7.0.0", | ||
"nyc": "^15.0.0", | ||
"ts-node": "^8.6.2", | ||
"typedoc": "^0.16.8", | ||
"typescript": "^3.7.5" | ||
}, | ||
@@ -59,3 +61,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "36c4d9e967bd80ccdbfa0f4a42f594080f95f105" | ||
"gitHead": "93d8af817724c1c5b06d80ffa2492fe5b4fb7bc4" | ||
} |
@@ -26,3 +26,3 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
See the related | ||
[@thi.ng/geom-voronoi](https://github.com/thi-ng/umbrella/tree/master/packages/geom-voronoi) | ||
[@thi.ng/geom-voronoi](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-voronoi) | ||
package for concrete usage. This package merely provides the underlying | ||
@@ -34,3 +34,3 @@ graph data structure. | ||
- http://www.cs.cmu.edu/afs/andrew/scs/cs/15-463/2001/pub/src/a2/quadedge.html | ||
- https://github.com/thi-ng/c-thing/blob/master/src/geom/quadedge.h | ||
- https://github.com/thi-ng/c-thing/blob/develop/src/geom/quadedge.h | ||
- Guibas & Stolfi: _Primitives for the manipulation of general | ||
@@ -46,3 +46,3 @@ subdivisions and the computation of Voronoi diagrams, ACM Transactions | ||
- [@thi.ng/geom-voronoi](https://github.com/thi-ng/umbrella/tree/master/packages/geom-voronoi) - Fast, incremental 2D Delaunay & Voronoi mesh implementation | ||
- [@thi.ng/geom-voronoi](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-voronoi) - Fast, incremental 2D Delaunay & Voronoi mesh implementation | ||
@@ -55,2 +55,4 @@ ## Installation | ||
Package sizes (gzipped): ESM: 0.5KB / CJS: 0.5KB / UMD: 0.6KB | ||
## Dependencies | ||
@@ -72,2 +74,2 @@ | ||
© 2015 - 2019 Karsten Schmidt // Apache Software License 2.0 | ||
© 2015 - 2020 Karsten Schmidt // Apache Software License 2.0 |
@@ -17,3 +17,3 @@ # ${pkg.name} | ||
See the related | ||
[@thi.ng/geom-voronoi](https://github.com/thi-ng/umbrella/tree/master/packages/geom-voronoi) | ||
[@thi.ng/geom-voronoi](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-voronoi) | ||
package for concrete usage. This package merely provides the underlying | ||
@@ -25,3 +25,3 @@ graph data structure. | ||
- http://www.cs.cmu.edu/afs/andrew/scs/cs/15-463/2001/pub/src/a2/quadedge.html | ||
- https://github.com/thi-ng/c-thing/blob/master/src/geom/quadedge.h | ||
- https://github.com/thi-ng/c-thing/blob/develop/src/geom/quadedge.h | ||
- Guibas & Stolfi: _Primitives for the manipulation of general | ||
@@ -45,2 +45,4 @@ subdivisions and the computation of Voronoi diagrams, ACM Transactions | ||
${pkg.size} | ||
## Dependencies | ||
@@ -47,0 +49,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
71
38328
9
11