//
// This file auto-generated with {{ generatorScriptName }}
// Date: {{ now }}
//
{{#if top_level}}

// Export widget models and views, and the npm package version number.
module.exports['version'] = require('../package.json').version;

{{/if}}
// Load all three.js python wrappers
var loadedModules = [
    {{#each submodules as |submodule|}}
    require('{{ submodule }}'),
    {{/each}}
];

for (var i in loadedModules) {
    if (loadedModules.hasOwnProperty(i)) {
        var loadedModule = loadedModules[i];
        for (var target_name in loadedModule) {
            if (loadedModule.hasOwnProperty(target_name)) {
                module.exports[target_name] = loadedModule[target_name];
            }
        }
    }
}

{{#if debug}}
// expose pythreejs for easier browser inspection
window.pythreejs = module.exports;
{{/if}}
