-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Three v79 to v80 #187
Conversation
568dac8
to
3739d03
Compare
3739d03
to
13ec530
Compare
13ec530
to
4463af6
Compare
4463af6
to
62c69a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that using import * as THREE from 'THREE';
is a good idea.
I'd prefer to explicitely list imported elements ; what do you think?
@@ -225,8 +224,9 @@ function GlobeControls(camera, domElement, engine) { | |||
|
|||
|
|||
if(enableTargetHelper) | |||
|
|||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (enableTargetHelper) {
@@ -445,7 +445,9 @@ function GlobeControls(camera, domElement, engine) { | |||
var delta = coord.altitude() - (bbox.top() + radiusCollision); | |||
|
|||
if(delta<0) | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (delta < 0) {
Yes, I think too For example in https://github.com/iTowns/itowns2/blob/ThreeV80/src/Renderer/BasicMaterial.js#L8 import * as THREE from 'THREE'; becomes import {RawShaderMaterial,Color,Matrix4} from 'THREE'; But we lose name's module THREE.RawShaderMaterial.call(this); becomes RawShaderMaterial.call(this); I didn't find import method to load specific member and keeping name's module :( |
What's wrong with |
In most language wildcard imports are considered a bad practice, hence my question. So it looks good but I need to test before giving my approval :-) |
62c69a4
to
efc5151
Compare
efc5151
to
57d0128
Compare
57d0128
to
e9b7acd
Compare
1b5c442
to
7b94f76
Compare
7b94f76
to
da30816
Compare
the Three library now uses ES6 Modules
LGTM |
Change Three v79 to v80
the Three library now uses ES6 Modules