three-render-objects 1.27.2 → 1.27.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -626,7 +626,7 @@ var threeRenderObjects = Kapsule__default["default"]({
|
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
if (changedProps.hasOwnProperty('skyRadius') && state.skyRadius) {
|
|
629
|
-
state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = state.skyRadius);
|
|
629
|
+
state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = Math.min(state.controls.maxDistance, state.skyRadius));
|
|
630
630
|
state.camera.far = state.skyRadius * 2.5;
|
|
631
631
|
state.camera.updateProjectionMatrix();
|
|
632
632
|
state.skysphere.geometry = new three.SphereGeometry(state.skyRadius);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 1.27.
|
|
1
|
+
// Version 1.27.4 three-render-objects - https://github.com/vasturiano/three-render-objects
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('three')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['three'], factory) :
|
|
@@ -135,9 +135,6 @@
|
|
|
135
135
|
|
|
136
136
|
super();
|
|
137
137
|
|
|
138
|
-
if ( domElement === undefined ) console.warn( 'THREE.TrackballControls: The second parameter "domElement" is now mandatory.' );
|
|
139
|
-
if ( domElement === document ) console.error( 'THREE.TrackballControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.' );
|
|
140
|
-
|
|
141
138
|
const scope = this;
|
|
142
139
|
const STATE = { NONE: - 1, ROTATE: 0, ZOOM: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_ZOOM_PAN: 4 };
|
|
143
140
|
|
|
@@ -938,9 +935,6 @@
|
|
|
938
935
|
|
|
939
936
|
super();
|
|
940
937
|
|
|
941
|
-
if ( domElement === undefined ) console.warn( 'THREE.OrbitControls: The second parameter "domElement" is now mandatory.' );
|
|
942
|
-
if ( domElement === document ) console.error( 'THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.' );
|
|
943
|
-
|
|
944
938
|
this.object = object;
|
|
945
939
|
this.domElement = domElement;
|
|
946
940
|
this.domElement.style.touchAction = 'none'; // disable touch scroll
|
|
@@ -2141,13 +2135,6 @@
|
|
|
2141
2135
|
|
|
2142
2136
|
super();
|
|
2143
2137
|
|
|
2144
|
-
if ( domElement === undefined ) {
|
|
2145
|
-
|
|
2146
|
-
console.warn( 'THREE.FlyControls: The second parameter "domElement" is now mandatory.' );
|
|
2147
|
-
domElement = document;
|
|
2148
|
-
|
|
2149
|
-
}
|
|
2150
|
-
|
|
2151
2138
|
this.object = object;
|
|
2152
2139
|
this.domElement = domElement;
|
|
2153
2140
|
|
|
@@ -5352,7 +5339,7 @@
|
|
|
5352
5339
|
}
|
|
5353
5340
|
|
|
5354
5341
|
if (changedProps.hasOwnProperty('skyRadius') && state.skyRadius) {
|
|
5355
|
-
state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = state.skyRadius);
|
|
5342
|
+
state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = Math.min(state.controls.maxDistance, state.skyRadius));
|
|
5356
5343
|
state.camera.far = state.skyRadius * 2.5;
|
|
5357
5344
|
state.camera.updateProjectionMatrix();
|
|
5358
5345
|
state.skysphere.geometry = new three.SphereGeometry(state.skyRadius);
|