Mercurial > hg > orthanc-stone
diff Platforms/WebAssembly/default-library.js @ 231:5027cb2feb51 am
viewport is now part of the Application itself and not global anymore
author | am@osimis.io |
---|---|
date | Thu, 14 Jun 2018 18:49:19 +0200 |
parents | b0ba3b38a23c |
children |
line wrap: on
line diff
--- a/Platforms/WebAssembly/default-library.js Thu Jun 14 17:14:10 2018 +0200 +++ b/Platforms/WebAssembly/default-library.js Thu Jun 14 18:49:19 2018 +0200 @@ -3,6 +3,9 @@ mergeInto(LibraryManager.library, { ScheduleWebViewportRedrawFromCpp: function(cppViewportHandle) { ScheduleWebViewportRedraw(cppViewportHandle); - } - }); + }, + CreateWasmViewportFromCpp: function(htmlCanvasId) { + return CreateWasmViewport(htmlCanvasId); + } +}); \ No newline at end of file