-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
52 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,22 @@ console.log(delaunay.triangles); | |
|
||
## Install | ||
|
||
Install with NPM (`npm install delaunator`), or use the following builds in the browser: | ||
Install with NPM (`npm install delaunator`) or Yarn (`yarn add delaunator`), then: | ||
|
||
- [development build](https://unpkg.com/[email protected]/delaunator.js) | ||
- [minified build](https://unpkg.com/[email protected]/delaunator.min.js) | ||
```js | ||
// import as an ES module | ||
import Delaunator from 'delaunator'; | ||
|
||
// or require in Node / Browserify | ||
const Delaunator = require('delaunator'); | ||
``` | ||
|
||
Or use a browser build directly: | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected]/delaunator.min.js"></script> <!-- minified build --> | ||
<script src="https://unpkg.com/[email protected]/delaunator.js"></script> <!-- dev build --> | ||
``` | ||
|
||
## API Reference | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import uglify from 'rollup-plugin-uglify' | ||
|
||
const config = (file, plugins) => ({ | ||
input: 'index.js', | ||
output: { | ||
name: 'Delaunator', | ||
format: 'umd', | ||
file | ||
}, | ||
plugins | ||
}); | ||
|
||
export default [ | ||
config('delaunator.js', []), | ||
config('delaunator.min.js', [uglify()]) | ||
]; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.