Skip to content

Commit

Permalink
Rework API surface
Browse files Browse the repository at this point in the history
Convert internal logic to fileprivate functions and keep the API surface to three static accessors (`Earcut.flatten`, `Earcut.tesselate` and `Earcut.deviation`)

There was no need to keep an Earcut instance around and this could actually cause issues due to the internal `NodeAllocator`. So now we just instantiate an allocator per `tesselate` call.
  • Loading branch information
measuredweighed committed Aug 11, 2023
1 parent ad59bfe commit f31b2bd
Show file tree
Hide file tree
Showing 3 changed files with 527 additions and 534 deletions.
Loading

0 comments on commit f31b2bd

Please sign in to comment.