Skip to content

Commit

Permalink
Merge pull request #86 from nrabinowitz/update-core-lib
Browse files Browse the repository at this point in the history
Update core library to 3.6.4
  • Loading branch information
Nick Rabinowitz authored Jul 2, 2020
2 parents be3a542 + a9bbb5d commit 4ab7398
Show file tree
Hide file tree
Showing 5 changed files with 319 additions and 331 deletions.
2 changes: 1 addition & 1 deletion H3_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.6.3
3.6.4
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# h3-js

[![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)
[![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)

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.

Expand Down
11 changes: 10 additions & 1 deletion benchmark/benchmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const polygon = [
];
const ring10 = h3core.kRing(h3Index, 10);
const ring10Compact = h3core.compact(ring10);
const ring10Polygon = h3core.h3SetToMultiPolygon(ring10)[0];

export default function makeBenchmarks() {
const suite = new Benchmark.Suite();
Expand Down Expand Up @@ -56,10 +57,18 @@ export default function makeBenchmarks() {
h3core.kRing(h3Index, 1);
});

suite.add('polyfill', () => {
suite.add('polyfill_9', () => {
h3core.polyfill(polygon, 9, false);
});

suite.add('polyfill_11', () => {
h3core.polyfill(polygon, 11, false);
});

suite.add('polyfill_10ring', () => {
h3core.polyfill(ring10Polygon, 10, false);
});

suite.add('h3SetToMultiPolygon', () => {
h3core.h3SetToMultiPolygon(ring10, false);
});
Expand Down
10 changes: 5 additions & 5 deletions out/libh3.js

Large diffs are not rendered by default.

Loading

0 comments on commit 4ab7398

Please sign in to comment.