Skip to content

Commit 4ab7398

Browse files
author
Nick Rabinowitz
authored
Merge pull request #86 from nrabinowitz/update-core-lib
Update core library to 3.6.4
2 parents be3a542 + a9bbb5d commit 4ab7398

File tree

5 files changed

+319
-331
lines changed

5 files changed

+319
-331
lines changed

H3_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.6.3
1+
3.6.4

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# h3-js
44

5-
[![H3 Version](https://img.shields.io/badge/h3_api-v3.6.3-blue.svg)](https://github.com/uber/h3/releases/tag/v3.6.3) [![Build Status](https://travis-ci.com/uber/h3-js.svg?branch=master)](https://travis-ci.com/uber/h3-js) [![Coverage Status](https://coveralls.io/repos/github/uber/h3-js/badge.svg?branch=master)](https://coveralls.io/github/uber/h3-js?branch=master)
5+
[![H3 Version](https://img.shields.io/badge/h3_api-v3.6.4-blue.svg)](https://github.com/uber/h3/releases/tag/v3.6.4) [![Build Status](https://travis-ci.com/uber/h3-js.svg?branch=master)](https://travis-ci.com/uber/h3-js) [![Coverage Status](https://coveralls.io/repos/github/uber/h3-js/badge.svg?branch=master)](https://coveralls.io/github/uber/h3-js?branch=master)
66

77
The `h3-js` library provides a pure-JavaScript version of the [H3 Core Library](https://github.com/uber/h3), a hexagon-based geographic grid system. It can be used either in Node >= 6 or in the browser. The core library is transpiled from C using [emscripten](http://kripken.github.io/emscripten-site), offering full parity with the C API and highly efficient operations.
88

benchmark/benchmarks.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const polygon = [
2828
];
2929
const ring10 = h3core.kRing(h3Index, 10);
3030
const ring10Compact = h3core.compact(ring10);
31+
const ring10Polygon = h3core.h3SetToMultiPolygon(ring10)[0];
3132

3233
export default function makeBenchmarks() {
3334
const suite = new Benchmark.Suite();
@@ -56,10 +57,18 @@ export default function makeBenchmarks() {
5657
h3core.kRing(h3Index, 1);
5758
});
5859

59-
suite.add('polyfill', () => {
60+
suite.add('polyfill_9', () => {
6061
h3core.polyfill(polygon, 9, false);
6162
});
6263

64+
suite.add('polyfill_11', () => {
65+
h3core.polyfill(polygon, 11, false);
66+
});
67+
68+
suite.add('polyfill_10ring', () => {
69+
h3core.polyfill(ring10Polygon, 10, false);
70+
});
71+
6372
suite.add('h3SetToMultiPolygon', () => {
6473
h3core.h3SetToMultiPolygon(ring10, false);
6574
});

out/libh3.js

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)