From 5c6d7b33b73a34d226a91541c446db0c2d6227d9 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 19 四月 2024 15:44:25 +0800
Subject: [PATCH] #

---
 src/components/tunnel.jsx |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/src/components/tunnel.jsx b/src/components/tunnel.jsx
index c800e08..de01e88 100644
--- a/src/components/tunnel.jsx
+++ b/src/components/tunnel.jsx
@@ -2,15 +2,7 @@
 import { Vector3 } from 'three';
 import { MeshReflectorMaterial, Html } from '@react-three/drei';
 
-// export interface ITunnelProps {
-//   x: number;
-//   y: number;
-//   width: number;
-//   height: number;
-//   tunnelNumber: string;
-// }
 const Tunnel = ({ x, y, width, height, tunnelNumber }) => {
-  // 宸烽亾鐨勪綅缃�
   const innerPosition = new Vector3(x + width / 2, 1.1, y + height / 2);
   const outerPosition = new Vector3(x + width / 2, 1, y + height / 2);
   const textPosition = new Vector3(x + width / 2, 1.2, y + height / 2);
@@ -38,20 +30,6 @@
         ></planeGeometry>
         <meshBasicMaterial color="rgb(221, 165, 15)"></meshBasicMaterial>
       </mesh>
-      {/* <Text
-				fontSize={24}
-				color="white"
-				anchorX="center"
-				anchorY="middle"
-				position={textPosition}
-				rotation={[-Math.PI / 2, 0, 0]}
-				matrixWorldAutoUpdate
-				getObjectsByProperty={null}
-				getVertexPosition={null}
-			>
-				{tunnelNumber}
-				<meshPhongMaterial color={"white"}></meshPhongMaterial>
-			</Text> */}
       <Html scale={100} rotation={[-Math.PI / 2, 0, 0]} position={textPosition} transform occlude>
         {tunnelNumber}
       </Html>

--
Gitblit v1.9.1