Michael Herzog 1 месяц назад
Родитель
Сommit
41b6d17a94
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      src/core/Clock.js

+ 7 - 0
src/core/Clock.js

@@ -1,11 +1,16 @@
+import { warn } from '../utils.js';
+
 /**
  * Class for keeping track of time.
+ *
+ * @deprecated since r183.
  */
 class Clock {
 
 	/**
 	 * Constructs a new clock.
 	 *
+	 * @deprecated since 183.
 	 * @param {boolean} [autoStart=true] - Whether to automatically start the clock when
 	 * `getDelta()` is called for the first time.
 	 */
@@ -53,6 +58,8 @@ class Clock {
 		 */
 		this.running = false;
 
+		warn( 'THREE.Clock: This module has been deprecated. Please use THREE.Timer instead.' ); // @deprecated, r183
+
 	}
 
 	/**

粤ICP备19079148号