summaryrefslogtreecommitdiff
path: root/client/splash/vendor/three.meshline.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-01-27 17:27:14 +0100
committerJules Laplace <julescarbon@gmail.com>2019-01-27 17:27:14 +0100
commit3f16cb26e6a5e7858c9c3db10d02bec9c18b9511 (patch)
tree2f3b5533d4ff2ddb1138bf7793143635c46115bc /client/splash/vendor/three.meshline.js
parentc9d476e421a50aa5e3e20389365263d5c36e5696 (diff)
remove dependencies from DRACO and MeshLine
Diffstat (limited to 'client/splash/vendor/three.meshline.js')
-rw-r--r--client/splash/vendor/three.meshline.js29
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,
+};