Skip to content

Commit

Permalink
deploy: f68e8e4
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Jan 27, 2024
1 parent e64bed8 commit a745386
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@
// For convenience, warp somewhere near that graph
try {
let gj = JSON.parse(routeSnapper?.debugRenderGraph());
// Assume nodes (Points) are first.
map.jumpTo({ center: gj.features[0].geometry.coordinates });
// Assume nodes (Points) are last.
map.jumpTo({ center: gj.features[gj.features.length - 1].geometry.coordinates });
} catch (err) {
console.log(`Couldn't warp to new graph: ${err}`);
}
Expand Down
Binary file modified osm-to-route-snapper/pkg/osm_to_route_snapper_bg.wasm
Binary file not shown.
18 changes: 9 additions & 9 deletions route-snapper/pkg/route_snapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ function __wbg_get_imports() {
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
imports.wbg.__wbindgen_is_object = function(arg0) {
const val = getObject(arg0);
const ret = typeof(val) === 'object' && val !== null;
Expand All @@ -488,20 +492,16 @@ function __wbg_get_imports() {
const ret = getObject(arg0) in getObject(arg1);
return ret;
};
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'number' ? obj : undefined;
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
};
imports.wbg.__wbindgen_boolean_get = function(arg0) {
const v = getObject(arg0);
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
return ret;
};
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'number' ? obj : undefined;
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
};
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
const ret = getObject(arg0);
Expand Down
Binary file modified route-snapper/pkg/route_snapper_bg.wasm
Binary file not shown.

0 comments on commit a745386

Please sign in to comment.