Skip to content

Commit

Permalink
see if this can reach three
Browse files Browse the repository at this point in the history
  • Loading branch information
atlmtw committed Aug 5, 2021
1 parent 41993f3 commit 55d39f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ var createIndices = require('quad-indices')
var vertices = require('./lib/vertices')
var utils = require('./lib/utils')

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')

module.exports = function createTextGeometry (opt) {
return new TextGeometry(opt)
}

console.log(THREE.BufferGeometry);

class TextGeometry extends THREE.BufferyGeometry {
constructor(opt){
super();
Expand Down
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
"email": "[email protected]",
"url": "https://github.com/mattdesl"
},
"standard": {
"globals": [
"THREE"
]
},
"dependencies": {
"array-shuffle": "^1.0.1",
"inherits": "^2.0.1",
Expand Down

0 comments on commit 55d39f3

Please sign in to comment.