peterqliu / threebox

A three.js plugin for Mapbox GL JS, with support for basic animation and advanced 3D rendering.
MIT License
528 stars 320 forks source link

minor changes to get Threebox to work and build in angular. #65

Open akexinad opened 5 years ago

akexinad commented 5 years ago

When using the threebox npm package in angular, you get:

  1. There was a three.js file import missing and that was added.
  2. Warnings regarding filename casings. I refactored the casings accordingly so when you run ng-serve it serves warning-free.
  3. When you run ng-build --prod, you are with an error from terser saying that there is a missing token name ( static ) which is one of the variable names in the object.js file. I renamed this variable to fixed.