浏览代码

Updated builds

Mr.doob 4 年之前
父节点
当前提交
3d59a07b32
共有 3 个文件被更改,包括 7 次插入2 次删除
  1. 4 1
      build/three.js
  2. 0 0
      build/three.min.js
  3. 3 1
      build/three.module.js

+ 4 - 1
build/three.js

@@ -6672,7 +6672,7 @@
 
 
 		setColorName(style) {
 		setColorName(style) {
 			// color keywords
 			// color keywords
-			const hex = _colorKeywords[style];
+			const hex = _colorKeywords[style.toLowerCase()];
 
 
 			if (hex !== undefined) {
 			if (hex !== undefined) {
 				// red
 				// red
@@ -16237,6 +16237,9 @@
 					if (inputPose !== null) {
 					if (inputPose !== null) {
 						targetRay.matrix.fromArray(inputPose.transform.matrix);
 						targetRay.matrix.fromArray(inputPose.transform.matrix);
 						targetRay.matrix.decompose(targetRay.position, targetRay.rotation, targetRay.scale);
 						targetRay.matrix.decompose(targetRay.position, targetRay.rotation, targetRay.scale);
+						this.dispatchEvent({
+							type: 'move'
+						});
 					}
 					}
 				}
 				}
 
 

文件差异内容过多而无法显示
+ 0 - 0
build/three.min.js


+ 3 - 1
build/three.module.js

@@ -8641,7 +8641,7 @@ class Color {
 	setColorName( style ) {
 	setColorName( style ) {
 
 
 		// color keywords
 		// color keywords
-		const hex = _colorKeywords[ style ];
+		const hex = _colorKeywords[ style.toLowerCase() ];
 
 
 		if ( hex !== undefined ) {
 		if ( hex !== undefined ) {
 
 
@@ -21952,6 +21952,8 @@ class WebXRController {
 					targetRay.matrix.fromArray( inputPose.transform.matrix );
 					targetRay.matrix.fromArray( inputPose.transform.matrix );
 					targetRay.matrix.decompose( targetRay.position, targetRay.rotation, targetRay.scale );
 					targetRay.matrix.decompose( targetRay.position, targetRay.rotation, targetRay.scale );
 
 
+					this.dispatchEvent( { type: 'move' } );
+
 				}
 				}
 
 
 			}
 			}

部分文件因为文件数量过多而无法显示