Mercurial > hg > orthanc-stone
view Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js @ 1259:69177b10e2b9
various fixes for RadiographyScene: support text layers outside the dicom layer, fix background in this case + extract dicom from rendered scene
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 21 Jan 2020 16:52:37 +0100 |
parents | f185cfcb72a0 |
children |
line wrap: on
line source
// this file contains the JS method you want to expose to C++ code mergeInto(LibraryManager.library, { // each time the Application updates its status, it may signal it through this method. i.e, to change the status of a button in the web interface // It needs to be put in this file so that the emscripten SDK linker knows where to find it. SendFreeTextFromCppJS: function(statusUpdateMessage) { var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); window.SendFreeTextFromCpp(statusUpdateMessage_); }, SendMessageFromCppJS: function(statusUpdateMessage) { var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); window.SendMessageFromCpp(statusUpdateMessage_); } });