Mercurial > hg > orthanc-stone
view Platforms/Wasm/default-library.js @ 332:50e5ec1bdd46 am-2
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Oct 2018 19:38:39 +0200 |
parents | 2038d76bf13f |
children | 5055031f4a06 |
line wrap: on
line source
// this file contains the JS method you want to expose to C++ code mergeInto(LibraryManager.library, { ScheduleWebViewportRedrawFromCpp: function(cppViewportHandle) { ScheduleWebViewportRedraw(cppViewportHandle); }, CreateWasmViewportFromCpp: function(htmlCanvasId) { return CreateWasmViewport(htmlCanvasId); }, // each time the StoneApplication updates its status, it may signal it through this method. i.e, to change the status of a button in the web interface UpdateStoneApplicationStatusFromCpp: function(statusUpdateMessage) { var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); UpdateWebApplication(statusUpdateMessage_); } });