mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-16 19:17:57 +01:00
14 lines
425 B
JavaScript
Executable File
14 lines
425 B
JavaScript
Executable File
|
|
// Export the THREE object for **Node.js**, with
|
|
// backwards-compatibility for the old `require()` API. If we're in
|
|
// the browser, add `_` as a global object via a string identifier,
|
|
// for Closure Compiler "advanced" mode.
|
|
if (typeof exports !== 'undefined') {
|
|
if (typeof module !== 'undefined' && module.exports) {
|
|
exports = module.exports = THREE;
|
|
}
|
|
exports.THREE = THREE;
|
|
} else {
|
|
this['THREE'] = THREE;
|
|
}
|