Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/default-library.js @ 287:2038d76bf13f am-2
interaction with HTML/JS
author | am@osimis.io |
---|---|
date | Thu, 30 Aug 2018 11:36:36 +0200 |
parents | f73d722d98c8 |
children | 5055031f4a06 |
comparison
equal
deleted
inserted
replaced
286:6b3d91857b96 | 287:2038d76bf13f |
---|---|
4 ScheduleWebViewportRedrawFromCpp: function(cppViewportHandle) { | 4 ScheduleWebViewportRedrawFromCpp: function(cppViewportHandle) { |
5 ScheduleWebViewportRedraw(cppViewportHandle); | 5 ScheduleWebViewportRedraw(cppViewportHandle); |
6 }, | 6 }, |
7 CreateWasmViewportFromCpp: function(htmlCanvasId) { | 7 CreateWasmViewportFromCpp: function(htmlCanvasId) { |
8 return CreateWasmViewport(htmlCanvasId); | 8 return CreateWasmViewport(htmlCanvasId); |
9 }, | |
10 // 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 | |
11 UpdateStoneApplicationStatusFromCpp: function(statusUpdateMessage) { | |
12 var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); | |
13 UpdateWebApplication(statusUpdateMessage_); | |
9 } | 14 } |
10 }); | 15 }); |
11 | 16 |