three-render-objects 1.27.3 → 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.
@@ -1,4 +1,4 @@
1
- // Version 1.27.3 three-render-objects - https://github.com/vasturiano/three-render-objects
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