#
luxiaotao1123
2024-08-20 9d71e24e7982f6915e5f832512925bee9b245f35
src/components/area.jsx
@@ -11,7 +11,7 @@
  const position = new THREE.Vector3(x + width / 2, Y, y + height / 2);
  const size = [width, 1, height];
  textHeight ||= Y + 50;
  // textHeight ||= Y + 50;
  useFrame(() => {
    const box = meshRef.current;
@@ -41,8 +41,6 @@
        <Text
          position={new THREE.Vector3(position.x, textHeight, position.z)}
          text={textContent}
          scale={new THREE.Vector3(100, 100, 100)}
          fontSize={100}
        />
      )}
    </group>