Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
230:7d2631320615 | 231:5027cb2feb51 |
---|---|
1 // this file contains the JS method you want to expose to C++ code | 1 // this file contains the JS method you want to expose to C++ code |
2 | 2 |
3 mergeInto(LibraryManager.library, { | 3 mergeInto(LibraryManager.library, { |
4 ScheduleWebViewportRedrawFromCpp: function(cppViewportHandle) { | 4 ScheduleWebViewportRedrawFromCpp: function(cppViewportHandle) { |
5 ScheduleWebViewportRedraw(cppViewportHandle); | 5 ScheduleWebViewportRedraw(cppViewportHandle); |
6 } | 6 }, |
7 }); | 7 CreateWasmViewportFromCpp: function(htmlCanvasId) { |
8 return CreateWasmViewport(htmlCanvasId); | |
9 } | |
10 }); | |
8 | 11 |