mirror of
https://github.com/Turfjs/turf.git
synced 2025-12-08 20:26:16 +00:00
* Simplify nx config (no point separately caching es and js builds - they both need to be done for any code changes). Fix some no-op type definitions i.e. X extends any, and enforce templated property types as having to extend GeoJsonProperties throughout. * Upgrade typescript. Had to update topojson-* type defs to avoid the P = GeoJsonProperties problem in geojson-rbush. Also fix a couple of floating point precision related issues that eslint now apparently catches! * Retire tslint. * Upgrade eslint and prettier. Add minimal prettier config (defaults have changed) to avoid widespread, minor formatting changes (trailing commas mostly).
16 lines
368 B
HTML
16 lines
368 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Browser</title>
|
|
<script src="https://unpkg.com/@turf/turf"></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
console.log(turf.greatCircle([0, 0], [100, 10]));
|
|
console.log(turf.point([100, 0]));
|
|
console.log(turf.bbox(turf.point([100, 0])));
|
|
</script>
|
|
</body>
|
|
</html>
|