diff options
Diffstat (limited to 'client/splash/vendor/three.meshline.js')
| -rw-r--r-- | client/splash/vendor/three.meshline.js | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/client/splash/vendor/three.meshline.js b/client/splash/vendor/three.meshline.js index c6e998e3..00096f58 100644 --- a/client/splash/vendor/three.meshline.js +++ b/client/splash/vendor/three.meshline.js @@ -1,14 +1,4 @@ -;(function() { - -"use strict"; - -var root = this - -var has_require = typeof require !== 'undefined' - -var THREE = root.THREE || has_require && require('three') -if( !THREE ) - throw new Error( 'MeshLine requires three.js' ) +import * as THREE from 'three'; function MeshLine() { @@ -471,16 +461,7 @@ MeshLineMaterial.prototype.copy = function ( source ) { }; -if( typeof exports !== 'undefined' ) { - if( typeof module !== 'undefined' && module.exports ) { - exports = module.exports = { MeshLine: MeshLine, MeshLineMaterial: MeshLineMaterial }; - } - exports.MeshLine = MeshLine; - exports.MeshLineMaterial = MeshLineMaterial; -} -else { - root.MeshLine = MeshLine; - root.MeshLineMaterial = MeshLineMaterial; -} - -}).call(this);
\ No newline at end of file +export default { + MeshLine, + MeshLineMaterial, +}; |
