Skip to content

Commit

Permalink
Re-add profiling flag and fix longitude expansion.
Browse files Browse the repository at this point in the history
  • Loading branch information
josephbirkner committed Sep 27, 2023
1 parent 181de6a commit 1ff8c90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions libs/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Emscripten")
add_executable(erdblick-core ${ERDBLICK_SOURCE_FILES})
set_target_properties(erdblick-core PROPERTIES LINK_FLAGS "\
--bind \
--profiling \
-s ENVIRONMENT=web \
-s MODULARIZE=1 \
-s EXPORT_ES6=1 \
Expand All @@ -33,9 +34,6 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Emscripten")
-s JS_MATH=0 \
-s ALLOW_MEMORY_GROWTH=1 \
")

# Add this option to see WASM function names in Browser performance traces.
# --profiling \
else()
add_library(erdblick-core ${ERDBLICK_SOURCE_FILES})
endif()
Expand Down
2 changes: 1 addition & 1 deletion static/erdblick/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export class ErdblickView
let expandLat = sizeLat * 0.25;
this.model.setViewport({
south: south - expandLat,
west: west - expandLat,
west: west - expandLon,
width: sizeLon + expandLon*2,
height: sizeLat + expandLat*2,
camPosLon: centerLon,
Expand Down

0 comments on commit 1ff8c90

Please sign in to comment.