Mercurial > hg > orthanc-stone
view Platforms/WebAssembly/default-library.js @ 234:9afb50d1ac14 am
configure WasmViewport size relative to window size through html attributes
author | am@osimis.io |
---|---|
date | Fri, 15 Jun 2018 16:36:29 +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); } });