Mercurial > hg > orthanc-stone
view Platforms/WebAssembly/default-library.js @ 235:ce4405d98b92 am
Added SimpleViewerApplication (working in SDL)
author | am@osimis.io |
---|---|
date | Tue, 19 Jun 2018 16:02:41 +0200 |
parents | 5027cb2feb51 |
children |
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); } });