view Platforms/WebAssembly/default-library.js @ 232:7d3b2c4f9ba1 am

don't cache hasUpdate_ since its not updated when we update the underlying hierarchy (i.e: when the child of a layout is a layout without child when it is added but childs are added later ...)
author am@osimis.io
date Fri, 15 Jun 2018 11:23:04 +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);
  }
});