{"versions":{"2.1.0":{"name":"@types/earcut","version":"2.1.0","description":"TypeScript definitions for earcut","license":"MIT","contributors":[{"name":"Adrian Leonhard","url":"https://github.com/NaridaL","githubUsername":"NaridaL"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"34d5b27c7c17ea1f09d293364b549b7c51de9454a7dc06f999734f29dd2a44a9","typeScriptVersion":"2.0","_id":"@types/earcut@2.1.0","dist":{"integrity":"sha512-PKu2suACS92cLQb2DZ6ytgnQm9PKPQRCD9jPqgMUTMVEuUqLTfCRHuaOXKmZTyVpL7zqJX+ZSZoyUr4e5muSNg==","shasum":"20cbed6e57dc65de3c1255c1a0c586864ed5c7e9","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/earcut/-/earcut-2.1.0.tgz"},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/earcut-2.1.0.tgz_1516224946845_0.8829808454029262"},"directories":{}},"2.1.1":{"name":"@types/earcut","version":"2.1.1","description":"TypeScript definitions for earcut","license":"MIT","contributors":[{"name":"Adrian Leonhard","url":"https://github.com/NaridaL","githubUsername":"NaridaL"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/earcut"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"eeec54e813e39360a475259b943ab51b7dfa816b824d5c436b6a3ec3a7090600","typeScriptVersion":"3.0","_id":"@types/earcut@2.1.1","dist":{"shasum":"573a0af609f17005c751f6f4ffec49cfe358ea51","size":2425,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/earcut/-/earcut-2.1.1.tgz"},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/earcut_2.1.1_1589518798399_0.8866529050379801"},"_hasShrinkwrap":false,"publish_time":1589518798515,"_cnpm_publish_time":1589518798515},"2.1.2":{"name":"@types/earcut","version":"2.1.2","description":"TypeScript definitions for earcut","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/earcut","license":"MIT","contributors":[{"name":"Adrian Leonhard","url":"https://github.com/NaridaL","githubUsername":"NaridaL"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/earcut"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"c036e27aac96f618f86b2e143e429c7922d43672450959354f69afd16fbe2bfc","typeScriptVersion":"4.5","_id":"@types/earcut@2.1.2","dist":{"integrity":"sha512-EU6fwVNP1TGVTkCILfURtzzwJq/ie5LgipELnzCINgm4VdDIkkbB8wnLSe81J77Bbqf4MiO3sJGhWzc6MCp5dQ==","shasum":"26c6a9506247f8059e5569653385f5dbb5b570db","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/earcut/-/earcut-2.1.2.tgz","fileCount":5,"unpackedSize":5332,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIERaY7F5GVMlWnhLGr1+TIAS3+ZN+D755yo1G/5IohVUAiEAkK+vx9r4D73JT2zr0fJHArhOHRiErSizDhXmO0revI0="}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/earcut_2.1.2_1695488843364_0.5674549983943673"},"_hasShrinkwrap":false},"2.1.3":{"name":"@types/earcut","version":"2.1.3","description":"TypeScript definitions for earcut","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/earcut","license":"MIT","contributors":[{"name":"Adrian Leonhard","githubUsername":"NaridaL","url":"https://github.com/NaridaL"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/earcut"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"9483f870e98df3452d44ca0d44d8fa6199e408573c2834061a832ee051406c7c","typeScriptVersion":"4.5","_id":"@types/earcut@2.1.3","dist":{"integrity":"sha512-pskpibEbm73+7nA9RqxGEnAiALRO92DdoSVxasyjGrqzEndaSDjFG73GCtstMzhdOowZMItVw2fhTdxVrY221w==","shasum":"375dcdd0b6b6d821165513f60e5ac7923a53b091","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/earcut/-/earcut-2.1.3.tgz","fileCount":5,"unpackedSize":4976,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0pksDgz7J1Y1KBO+oqGUz1ryKMEjMf5ouxoaHQjRjGAiEArthLMZDpmIKlYpl27qxO1kJETOGe+SInGWjz8SkvMU8="}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/earcut_2.1.3_1697593094944_0.38904323038117217"},"_hasShrinkwrap":false},"2.1.4":{"name":"@types/earcut","version":"2.1.4","description":"TypeScript definitions for earcut","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/earcut","license":"MIT","contributors":[{"name":"Adrian Leonhard","githubUsername":"NaridaL","url":"https://github.com/NaridaL"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/earcut"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"f18d2ca8b1c48564f6a04700333034eedffa8ee069836cdd3fa2e3652e78a5f7","typeScriptVersion":"4.5","_id":"@types/earcut@2.1.4","dist":{"integrity":"sha512-qp3m9PPz4gULB9MhjGID7wpo3gJ4bTGXm7ltNDsmOvsPduTeHp8wSW9YckBj3mljeOh4F0m2z/0JKAALRKbmLQ==","shasum":"5811d7d333048f5a7573b22ddc84923e69596da6","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/earcut/-/earcut-2.1.4.tgz","fileCount":5,"unpackedSize":4976,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFxO5c1AxNBXcqjy3aVviA4hsIyAXWPXcmjugHUs0FEgAiEA3IzWfY5VIIGkQu3Se+0iWOCuSBSp2Oe6QYn0hzvN7JM="}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/earcut_2.1.4_1699322690646_0.17394311286359554"},"_hasShrinkwrap":false},"3.0.0":{"name":"@types/earcut","version":"3.0.0","license":"MIT","_id":"@types/earcut@3.0.0","maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"contributors":[{"url":"https://github.com/NaridaL","name":"Adrian Leonhard","githubUsername":"NaridaL"}],"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/earcut","dist":{"shasum":"c21ab8372c47f8af1bec63cb36eecb6917b6c5b6","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/earcut/-/earcut-3.0.0.tgz","fileCount":5,"integrity":"sha512-k/9fOUGO39yd2sCjrbAJvGDEQvRwRnQIZlBz43roGwUZo5SHAmyVvSFyaVVZkicRVCaDXPKlbxrUcBuJoSWunQ==","signatures":[{"sig":"MEYCIQCMEtBAc9cNXUrQvTfmicYmycAvWnFp7LamQJBlrtcsFQIhAO3npX7khGDlXukAIkcajGRZk8Jts04LbxL9UB6G3SnN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7380,"size":2456},"main":"","type":"module","types":"index.d.ts","scripts":{},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/earcut"},"description":"TypeScript definitions for earcut","directories":{},"dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{},"typeScriptVersion":"5.0","_npmOperationalInternal":{"tmp":"tmp/earcut_3.0.0_1737352972040_0.7007385228429923","host":"s3://npm-registry-packages-npm-production"},"typesPublisherContentHash":"dc15204338e6eb0ac655ac1095a0f726f47753a82fdb95138d4510bd23c9a12b","_cnpmcore_publish_time":"2025-01-20T06:02:52.197Z","publish_time":1737352972197,"_source_registry_name":"default"}},"dist-tags":{"latest":"3.0.0","ts2.0":"2.1.0","ts2.1":"2.1.0","ts2.2":"2.1.0","ts2.3":"2.1.0","ts2.4":"2.1.0","ts2.5":"2.1.0","ts2.6":"2.1.0","ts2.7":"2.1.0","ts2.8":"2.1.0","ts2.9":"2.1.0","ts3.0":"2.1.1","ts3.1":"2.1.1","ts3.2":"2.1.1","ts3.3":"2.1.1","ts3.4":"2.1.1","ts3.5":"2.1.1","ts3.6":"2.1.1","ts3.7":"2.1.1","ts3.8":"2.1.1","ts3.9":"2.1.1","ts4.0":"2.1.1","ts4.1":"2.1.1","ts4.2":"2.1.1","ts4.3":"2.1.1","ts4.4":"2.1.1","ts4.5":"2.1.4","ts4.6":"2.1.4","ts4.7":"2.1.4","ts4.8":"2.1.4","ts4.9":"2.1.4","ts5.0":"3.0.0","ts5.1":"3.0.0","ts5.2":"3.0.0","ts5.3":"3.0.0","ts5.4":"3.0.0","ts5.5":"3.0.0","ts5.6":"3.0.0","ts5.7":"3.0.0","ts5.8":"3.0.0","ts5.9":"3.0.0","ts6.0":"3.0.0"},"name":"@types/earcut","time":{"modified":"2025-08-03T06:39:37.457Z","created":"2022-01-27T15:21:43.810Z","2.1.0":"2018-01-17T21:35:46.951Z","2.1.1":"2020-05-15T04:59:58.515Z","2.1.2":"2023-09-23T17:07:23.532Z","2.1.3":"2023-10-18T01:38:15.255Z","2.1.4":"2023-11-07T02:04:50.936Z","3.0.0":"2025-01-20T06:02:52.197Z"},"readme":"# Installation\r\n> `npm install --save @types/earcut`\r\n\r\n# Summary\r\nThis package contains type definitions for earcut (https://github.com/mapbox/earcut#readme).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/earcut.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/earcut/index.d.ts)\r\n````ts\r\n/**\n * Triangulate an outline.\n *\n * @param vertices A flat array of vertice coordinates like [x0,y0, x1,y1, x2,y2, ...].\n * @param holes An array of hole indices if any (e.g. [5, 8] for a 12-vertice input would mean one hole with vertices 5–7 and another with 8–11).\n * @param dimensions The number of coordinates per vertice in the input array (2 by default).\n * @return A flat array with each group of three numbers indexing a triangle in the `vertices` array.\n * @example earcut([10,0, 0,50, 60,60, 70,10]); // returns [1,0,3, 3,2,1]\n * @example with a hole: earcut([0,0, 100,0, 100,100, 0,100,  20,20, 80,20, 80,80, 20,80], [4]); // [3,0,4, 5,4,0, 3,4,7, 5,0,1, 2,3,7, 6,5,1, 2,7,6, 6,1,2]\n * @example with 3d coords: earcut([10,0,1, 0,50,2, 60,60,3, 70,10,4], null, 3); // [1,0,3, 3,2,1]\n */\nexport default function earcut(vertices: ArrayLike<number>, holes?: ArrayLike<number>, dimensions?: number): number[];\n\n/**\n * Transforms multi-dimensional array (e.g. GeoJSON Polygon) into the format expected by earcut.\n * @example Transforming GeoJSON data.\n *     const data = earcut.flatten(geojson.geometry.coordinates);\n *     const triangles = earcut(data.vertices, data.holes, data.dimensions);\n * @example Transforming simple triangle with hole:\n *     const data = earcut.flatten([[[0, 0], [100, 0], [0, 100]], [[10, 10], [0, 10], [10, 0]]]);\n *     const triangles = earcut(data.vertices, data.holes, data.dimensions);\n * @param data Arrays of rings, with the first being the outline and the rest holes. A ring is an array points, each point being an array of numbers.\n */\nexport function flatten(\n    data: ArrayLike<ArrayLike<ArrayLike<number>>>,\n): { vertices: number[]; holes: number[]; dimensions: number };\n\n/**\n * Returns the relative difference between the total area of triangles and the area of the input polygon. 0 means the triangulation is fully correct.\n * Used to verify correctness of triangulation\n * @param vertices same as earcut\n * @param holes same as earcut\n * @param dimensions same as earcut\n * @param triangles see return value of earcut\n * @example\n *     const triangles = earcut(vertices, holes, dimensions);\n *     const deviation = earcut.deviation(vertices, holes, dimensions, triangles);\n */\nexport function deviation(\n    vertices: ArrayLike<number>,\n    holes: ArrayLike<number> | undefined,\n    dimensions: number,\n    triangles: ArrayLike<number>,\n): number;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Mon, 20 Jan 2025 06:02:51 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [Adrian Leonhard](https://github.com/NaridaL).","users":{}}