Mercurial > hg > orthanc-stone
annotate Platforms/Wasm/default-library.js @ 260:c887eddd48f1 am-2
merge
author | am@osimis.io |
---|---|
date | Tue, 17 Jul 2018 14:43:42 +0200 |
parents | f73d722d98c8 |
children | 2038d76bf13f |
rev | line source |
---|---|
229 | 1 // this file contains the JS method you want to expose to C++ code |
2 | |
3 mergeInto(LibraryManager.library, { | |
4 ScheduleWebViewportRedrawFromCpp: function(cppViewportHandle) { | |
5 ScheduleWebViewportRedraw(cppViewportHandle); | |
231
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
229
diff
changeset
|
6 }, |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
229
diff
changeset
|
7 CreateWasmViewportFromCpp: function(htmlCanvasId) { |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
229
diff
changeset
|
8 return CreateWasmViewport(htmlCanvasId); |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
229
diff
changeset
|
9 } |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
229
diff
changeset
|
10 }); |
229 | 11 |