Skip to content

Commit

Permalink
Change Three v79 to v80
Browse files Browse the repository at this point in the history
the Three library now uses ES6 Modules
  • Loading branch information
gchoqueux committed Sep 16, 2016
1 parent 13ec530 commit ac5fefd
Show file tree
Hide file tree
Showing 46 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"paralleljs": "^0.2.1",
"simd": "^2.0.0",
"string_format": "^0.0.6",
"three": "^0.79.0",
"three": "^0.80.0",
"whatwg-fetch": "^1.0.0",
"custom-event": "^1.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Commander/Providers/BuildingBox_Provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// TODO , will use WFS_Provider
import Provider from 'Core/Commander/Providers/Provider';
import WFS_Provider from 'Core/Commander/Providers/WFS_Provider';
import THREE from 'THREE';
import * as THREE from 'THREE';
import Ellipsoid from 'Core/Math/Ellipsoid';
import GeoCoordinate,{UNIT} from 'Core/Geographic/GeoCoordinate';
import CVML from 'Core/Math/CVML';
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Commander/Providers/GpxUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Parse Gpx file to get [lat, lon, alt]
*/

import THREE from 'THREE';
import * as THREE from 'THREE';
import IoDriverXML from 'Core/Commander/Providers/IoDriverXML';
import GeoCoordinate,{UNIT} from 'Core/Geographic/GeoCoordinate';
import ItownsLine from 'Core/Commander/Providers/ItownsLine';
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Commander/Providers/ItownsLine.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import THREE from 'THREE';
import * as THREE from 'THREE';
import ItownsLineMaterial from 'Renderer/ItownsLineMaterial';

var ItownsLine = function(options){
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Commander/Providers/ItownsPoint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import THREE from 'THREE';
import * as THREE from 'THREE';
import ItownsPointMaterial from 'Renderer/ItownsPointMaterial';


Expand Down
2 changes: 1 addition & 1 deletion src/Core/Commander/Providers/KML_Provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Provider from 'Core/Commander/Providers/Provider';
import IoDriverXML from 'Core/Commander/Providers/IoDriverXML';
import THREE from 'THREE';
import * as THREE from 'THREE';
import KMZLoader from 'Renderer/ThreeExtented/KMZLoader';
import BasicMaterial from 'Renderer/BasicMaterial';

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Commander/Providers/PanoramicProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/* global Promise*/

import THREE from 'three';
import * as THREE from 'THREE';
import Provider from 'Core/Commander/Providers/Provider';
import BuildingBox_Provider from 'Core/Commander/Providers/BuildingBox_Provider';
import ProjectiveTexturingMaterial from 'Renderer/ProjectiveTexturingMaterial';
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Commander/Providers/WMS_Provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import IoDriver_XBIL from 'Core/Commander/Providers/IoDriver_XBIL';
import IoDriver_Image from 'Core/Commander/Providers/IoDriver_Image';
import IoDriverXML from 'Core/Commander/Providers/IoDriverXML';
import defaultValue from 'Core/defaultValue';
import THREE from 'THREE';
import * as THREE from 'THREE';
import Projection from 'Core/Geographic/Projection';
import CacheRessource from 'Core/Commander/Providers/CacheRessource';
import mE from 'Core/Math/MathExtented';
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Commander/Providers/WMTS_Provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import CoordWMTS from 'Core/Geographic/CoordWMTS';
import IoDriver_XBIL from 'Core/Commander/Providers/IoDriver_XBIL';
import IoDriver_Image from 'Core/Commander/Providers/IoDriver_Image';
import IoDriverXML from 'Core/Commander/Providers/IoDriverXML';
import THREE from 'THREE';
import * as THREE from 'THREE';
import CacheRessource from 'Core/Commander/Providers/CacheRessource';

function WMTS_Provider(options) {
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Geographic/Projection.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import CoordWMTS from 'Core/Geographic/CoordWMTS';
import MathExt from 'Core/Math/MathExtented';
import GeoCoordinate from 'Core/Geographic/GeoCoordinate';
import THREE from 'THREE';
import * as THREE from 'THREE';


function Projection() {
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Math/Ellipsoid.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@



import THREE from 'THREE';
import * as THREE from 'THREE';

function Ellipsoid(size) {
//Constructor
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Math/Sphere.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import THREE from 'THREE';
import * as THREE from 'THREE';
import defaultValue from 'Core/defaultValue';


Expand Down
4 changes: 2 additions & 2 deletions src/Core/defaultValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
*/


import THREE from 'THREE';
import {Vector3} from 'THREE';

var defaultValue = function(value, def) {
return value === undefined ? def : value;
};

defaultValue.lightingPos = new THREE.Vector3(1, 0, 0);
defaultValue.lightingPos = new Vector3(1, 0, 0);

export default defaultValue;
2 changes: 1 addition & 1 deletion src/Globe/Atmosphere.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


import NodeMesh from 'Renderer/NodeMesh';
import THREE from 'THREE';
import * as THREE from 'THREE';
import defaultValue from 'Core/defaultValue';
import Sky from 'Globe/SkyShader';
import skyFS from 'Renderer/Shader/skyFS.glsl';
Expand Down
2 changes: 1 addition & 1 deletion src/Globe/BuilderEllipsoidTile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import GeoCoordinate from 'Core/Geographic/GeoCoordinate';
import THREE from 'THREE';
import * as THREE from 'THREE';
import OBB from 'Renderer/ThreeExtented/OBB';

function BuilderEllipsoidTile(model, projector) {
Expand Down
2 changes: 1 addition & 1 deletion src/Globe/Clouds.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


import NodeMesh from 'Renderer/NodeMesh';
import THREE from 'THREE';
import * as THREE from 'THREE';
import defaultValue from 'Core/defaultValue';
import WMS_Provider from 'Core/Commander/Providers/WMS_Provider';
import CloudsFS from 'Renderer/Shader/CloudsFS.glsl';
Expand Down
2 changes: 1 addition & 1 deletion src/Globe/Globe.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Capabilities from 'Core/System/Capabilities';
import GeoCoordinate,{UNIT} from 'Core/Geographic/GeoCoordinate';
import BasicMaterial from 'Renderer/BasicMaterial';
import LayersConfiguration from 'Scene/LayersConfiguration';
import THREE from 'THREE';
import * as THREE from 'THREE';


/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion src/Globe/SkyShader.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Three.js integration by zz85 http://twitter.com/blurspline
*/

import THREE from 'three';
import * as THREE from 'THREE';

var skyShader = {

Expand Down
2 changes: 1 addition & 1 deletion src/Globe/Star.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import NodeMesh from 'Renderer/NodeMesh';
import StarGeometry from 'StarGeometry';
import THREE from 'three';
import * as THREE from 'THREE';



Expand Down
2 changes: 1 addition & 1 deletion src/Globe/TileGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Description: Tuile géométrique. Buffer des vertex et des faces
*/
/* global Float32Array*/
import THREE from 'THREE';
import * as THREE from 'THREE';
import defaultValue from 'Core/defaultValue';
import JavaTools from 'Core/System/JavaTools';
import CacheRessource from 'Core/Commander/Providers/CacheRessource';
Expand Down
2 changes: 1 addition & 1 deletion src/Globe/TileMesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import NodeMesh from 'Renderer/NodeMesh';
import TileGeometry from 'Globe/TileGeometry';
import BoundingBox from 'Scene/BoundingBox';
import defaultValue from 'Core/defaultValue';
import THREE from 'THREE';
import * as THREE from 'THREE';
import OBBHelper from 'OBBHelper';
import SphereHelper from 'SphereHelper';
import LayeredMaterial from 'Renderer/LayeredMaterial';
Expand Down
2 changes: 1 addition & 1 deletion src/MobileMapping/GeometryProj.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/


import THREE from 'THREE';
import * as THREE from 'THREE';

function GeometryProj() {
//Constructor
Expand Down
2 changes: 1 addition & 1 deletion src/MobileMapping/MobileMappingLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import Layer from 'Scene/Layer';
import THREE from 'THREE';
import * as THREE from 'THREE';
import gfxEngine from 'Renderer/c3DEngine';
import Projection from 'Core/Geographic/Projection';
import PanoramicProvider from 'Core/Commander/Providers/PanoramicProvider';
Expand Down
2 changes: 1 addition & 1 deletion src/MobileMapping/Ori.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @Depends Sensor.js
*/

import THREE from 'three';
import * as THREE from 'THREE';
import Sensor from 'MobileMapping/Sensor';

var Ori = {
Expand Down
2 changes: 1 addition & 1 deletion src/MobileMapping/Sensor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/


import THREE from 'three';
import * as THREE from 'THREE';


var Sensor = function(infos) {
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/BasicMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


import THREE from 'THREE';
import * as THREE from 'THREE';
import defaultValue from 'Core/defaultValue';
import c3DEngine from 'Renderer/c3DEngine';
import SimpleVS from 'Renderer/Shader/SimpleVS.glsl';
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/* global Float64Array*/

import Node from 'Scene/Node';
import THREE from 'THREE';
import * as THREE from 'THREE';

function Camera(width, height, debug) {
//Constructor
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/ItownsLineMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* and open the template in the editor.
*/

import THREE from 'THREE';
import * as THREE from 'THREE';
import BasicMaterial from 'Renderer/BasicMaterial';
import LineVS from 'Renderer/Shader/LineVS.glsl';
import LineFS from 'Renderer/Shader/LineFS.glsl';
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/ItownsPointMaterial.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import THREE from 'THREE';
import * as THREE from 'THREE';
import BasicMaterial from 'Renderer/BasicMaterial';
import PointVS from 'Renderer/Shader/PointVS.glsl';
import PointFS from 'Renderer/Shader/PointFS.glsl';
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/LayeredMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


import THREE from 'THREE';
import * as THREE from 'THREE';
import BasicMaterial from 'Renderer/BasicMaterial';
import gfxEngine from 'Renderer/c3DEngine';
import JavaTools from 'Core/System/JavaTools';
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/MatteIdsMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


import THREE from 'THREE';
import * as THREE from 'THREE';
import BasicMaterial from 'Renderer/BasicMaterial';
import MatteIdsFS from 'Renderer/Shader/MatteIdsFS.glsl';
import GlobeDepthVS from 'Renderer/Shader/GlobeDepthVS.glsl';
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/NodeMesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


import Node from 'Scene/Node';
import THREE from 'THREE';
import * as THREE from 'THREE';


var NodeMesh = function() {
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/ProjectiveTexturingMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import graphicEngine from 'Renderer/c3DEngine';
import THREE from 'three';
import * as THREE from 'THREE';
import Ori from 'MobileMapping/Ori';
import Shader from 'MobileMapping/Shader';
import url from 'url';
Expand Down
12 changes: 7 additions & 5 deletions src/Renderer/ThreeExtented/GlobeControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
// Zoom - middle mouse, or mousewheel / touch: two finger spread or squish
// Pan - right mouse, or arrow keys / touch: three finter swipe

/* global document,window*/

import THREE from 'three';
import * as THREE from 'THREE';
import Sphere from 'Core/Math/Sphere';
import CustomEvent from 'custom-event';

Expand Down Expand Up @@ -172,10 +170,11 @@ var snapShotCamera;

/////////////////////////

/* globals document,window */

function GlobeControls(camera, domElement, engine) {

var scene = engine.scene;

this.camera = camera;
snapShotCamera = new SnapCamera(camera);

Expand Down Expand Up @@ -225,8 +224,9 @@ function GlobeControls(camera, domElement, engine) {


if(enableTargetHelper)

{
this.pickingHelper = new THREE.AxisHelper( 500000 );
}

// Mouse buttons
this.mouseButtons = {
Expand Down Expand Up @@ -445,7 +445,9 @@ function GlobeControls(camera, domElement, engine) {
var delta = coord.altitude() - (bbox.top() + radiusCollision);

if(delta<0)
{
position.setLength(position.length()-delta);
}
}

return position;
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/ThreeExtented/KMZLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

//var JSZip = require("C:/Users/vcoindet/Documents/NetBeansProjects/itownsV1/src/Renderer/ThreeExtented/jszip.min");
import JSZip from 'Renderer/ThreeExtented/jszip.min';
import THREE from 'THREE';
import * as THREE from 'THREE';
import IoDriverXML from 'Core/Commander/Providers/IoDriverXML';
import GeoCoordinate,{UNIT} from 'Core/Geographic/GeoCoordinate';

Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/ThreeExtented/OBB.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


import THREE from 'three';
import * as THREE from 'THREE';

function OBB(min, max, lookAt, translate) {
THREE.Object3D.call(this);
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/ThreeExtented/OBBHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
/* global Uint16Array Float32Array*/

import THREE from 'three';
import * as THREE from 'THREE';

// TODO regler le probleme glsl
import fontJS from './fonts/optimer_regular.glsl';
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/ThreeExtented/SphereHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


import THREE from 'three';
import * as THREE from 'THREE';

function SphereHelper(radius) {
THREE.Mesh.call(this);
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/ThreeExtented/StarGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


import THREE from 'three';
import * as THREE from 'THREE';

function StarGeometry() {
THREE.Geometry.call(this);
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/ThreeExtented/threeExt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
*/

import THREE from 'three';
import * as THREE from 'THREE';


// mbredif: extend THREE.Matrix3 prototype to with some THREE.Matrix4 functionalities
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/c3DEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/* global Uint8Array Float64Array*/

import THREE from 'THREE';
import * as THREE from 'THREE';
import GlobeControls from 'GlobeControls';
import Camera from 'Renderer/Camera';
import Atmosphere from 'Globe/Atmosphere';
Expand Down
Loading

0 comments on commit ac5fefd

Please sign in to comment.