# HG changeset patch # User am@osimis.io # Date 1529499412 -7200 # Node ID 31390306609348e2a0aa875e0e6c43ef22a04191 # Parent 50fb32abf85ebde059e1e21f9803851f6be2a795 cleanup diff -r 50fb32abf85e -r 313903066093 Applications/Samples/Web/tsconfig-samples.json --- a/Applications/Samples/Web/tsconfig-samples.json Wed Jun 20 14:27:06 2018 +0200 +++ b/Applications/Samples/Web/tsconfig-samples.json Wed Jun 20 14:56:52 2018 +0200 @@ -1,14 +1,10 @@ { + "extends" : "../../../Platforms/Wasm/tsconfig-stone", "compilerOptions": { - "sourceMap": false, - "lib" : [ - "es2017", - "dom" - ] - }, - "include" : [ - "../../../Platforms/Wasm/stone-framework-loader.ts", - "../../../Platforms/Wasm/wasm-application.ts", - "../../../Platforms/Wasm/wasm-viewport.ts" - ] + "sourceMap": false, + "lib" : [ + "es2017", + "dom" + ] + } } diff -r 50fb32abf85e -r 313903066093 Platforms/Generic/OracleWebService.h --- a/Platforms/Generic/OracleWebService.h Wed Jun 20 14:27:06 2018 +0200 +++ b/Platforms/Generic/OracleWebService.h Wed Jun 20 14:56:52 2018 +0200 @@ -64,7 +64,7 @@ void Stop() { - oracle_.Start(); + oracle_.Stop(); } }; } diff -r 50fb32abf85e -r 313903066093 Platforms/Wasm/CMakeLists.txt --- a/Platforms/Wasm/CMakeLists.txt Wed Jun 20 14:27:06 2018 +0200 +++ b/Platforms/Wasm/CMakeLists.txt Wed Jun 20 14:56:52 2018 +0200 @@ -61,9 +61,6 @@ macro(BuildSample Target Header Sample) add_executable(${Target} - ${ORTHANC_STONE_ROOT}/Platforms/Wasm/Defaults.cpp - ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.cpp - ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmViewport.cpp ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleMainWasm.cpp # ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleApplicationContext.cpp diff -r 50fb32abf85e -r 313903066093 Platforms/Wasm/tsconfig-stone.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Platforms/Wasm/tsconfig-stone.json Wed Jun 20 14:56:52 2018 +0200 @@ -0,0 +1,7 @@ +{ + "include" : [ + "../../../Platforms/Wasm/stone-framework-loader.ts", + "../../../Platforms/Wasm/wasm-application.ts", + "../../../Platforms/Wasm/wasm-viewport.ts" + ] +} diff -r 50fb32abf85e -r 313903066093 Platforms/Wasm/wasm-viewport.ts --- a/Platforms/Wasm/wasm-viewport.ts Wed Jun 20 14:27:06 2018 +0200 +++ b/Platforms/Wasm/wasm-viewport.ts Wed Jun 20 14:56:52 2018 +0200 @@ -65,6 +65,9 @@ this.module_ = module; this.canvasId_ = canvasId; this.htmlCanvas_ = document.getElementById(this.canvasId_) as HTMLCanvasElement; + if (this.htmlCanvas_ == null) { + console.log("Can not create WasmViewport, did not find the canvas whose id is '", this.canvasId_, "'"); + } this.context_ = this.htmlCanvas_.getContext('2d'); this.ViewportSetSize = this.module_.cwrap('ViewportSetSize', null, [ 'number', 'number', 'number' ]); diff -r 50fb32abf85e -r 313903066093 Resources/CMake/OrthancStoneConfiguration.cmake --- a/Resources/CMake/OrthancStoneConfiguration.cmake Wed Jun 20 14:27:06 2018 +0200 +++ b/Resources/CMake/OrthancStoneConfiguration.cmake Wed Jun 20 14:56:52 2018 +0200 @@ -158,6 +158,9 @@ else() list(APPEND APPLICATIONS_SOURCES ${ORTHANC_STONE_ROOT}/Applications/Wasm/StartupParametersBuilder.cpp + ${ORTHANC_STONE_ROOT}/Platforms/Wasm/Defaults.cpp + ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.cpp + ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmViewport.cpp ) endif()