GitPedia
mapbox

mapbox/earcut

The fastest and smallest JavaScript polygon triangulation library for your WebGL apps

3 Releases
Latest: 9mo ago
v3.0.2Latest
mournermourner·9mo ago·September 18, 2025
GitHub

Fix a rare edge case manifesting on polygons with a big number of points. #186

v3.0.1
mournermourner·1y ago·December 18, 2024
GitHub

📋 Changes

  • Fix edge cases related to touching inner rings. #177
  • Slightly improve performance. #177
v3.0.0
mournermourner·1y ago·June 28, 2024
GitHub

📋 Changes

  • ⚠️ Breaking: publish `earcut` as a ES module, dropping support for CommonJS (use v2.2.4 if you need compatibility).
  • ⚠️ Breaking: use modern ES syntax, dropping support for IE11 (you can still transpile on your end to keep support).
  • ⚠️ Breaking: the legacy UMD browser bundle now exposes the main function as `earcut.default`.