annotate Platforms/Wasm/default-library.js @ 252:40b21c1f8b8d am-2

more usage of IObservable/IObserver
author am@osimis.io
date Tue, 03 Jul 2018 10:26:56 +0200
parents f73d722d98c8
children 2038d76bf13f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
229
b0ba3b38a23c ScheduleRedraw can handle multiple viewports
am@osimis.io
parents:
diff changeset
1 // this file contains the JS method you want to expose to C++ code
b0ba3b38a23c ScheduleRedraw can handle multiple viewports
am@osimis.io
parents:
diff changeset
2
b0ba3b38a23c ScheduleRedraw can handle multiple viewports
am@osimis.io
parents:
diff changeset
3 mergeInto(LibraryManager.library, {
b0ba3b38a23c ScheduleRedraw can handle multiple viewports
am@osimis.io
parents:
diff changeset
4 ScheduleWebViewportRedrawFromCpp: function(cppViewportHandle) {
b0ba3b38a23c ScheduleRedraw can handle multiple viewports
am@osimis.io
parents:
diff changeset
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
b0ba3b38a23c ScheduleRedraw can handle multiple viewports
am@osimis.io
parents:
diff changeset
11