Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
anvaka committed Nov 27, 2020
1 parent f38e291 commit 22ca9f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ and have to be installed separately:
## Usage

```javascript
import {offset} from "@flatten-js/polygon-offset"
import offset from "@flatten-js/polygon-offset"

let offsetPolygon = offset(polygon, offset_value)
```
Expand Down Expand Up @@ -60,6 +60,6 @@ and have to be installed separately:
polygon.addFace(shapes);

// Apply polygon offset
let offsetPolygon = polygon.offset(20);
let offsetPolygon = offset(polygon, 20);
```

0 comments on commit 22ca9f5

Please sign in to comment.