window.kaolin
    Preparing search index...

    Function resolvePlaycanvas

    • At run-time, resolves the playcanvas dependency, allowing playcanvas to be imported as either standard .min.js file or a deferred importmap module.

      @returns: playcanvas module

      Note: playcanvas is not bundled with the kaolin javascript bundle, which plotly dash builds as standard UMD bundle. Instead, playcanvas must be imported into the dash app as an external script. For example, like this:

      However, for playcanvas in particular, some scripts can only work if playcanvas is imported as a module via importmap:

      Which can be made global like this:

      In order to make this file work properly for that, we resolve dependency at code run-time, not at load time (webpack behavior) when the window.pc is not yet set.

      Parameters

      • OptionallocalPc: any

      Returns any