From 9d71e24e7982f6915e5f832512925bee9b245f35 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 20 八月 2024 16:13:26 +0800
Subject: [PATCH] #
---
src/components/path.jsx | 17 ++---------------
1 files changed, 2 insertions(+), 15 deletions(-)
diff --git a/src/components/path.jsx b/src/components/path.jsx
index dc73bd5..55dd37b 100644
--- a/src/components/path.jsx
+++ b/src/components/path.jsx
@@ -13,12 +13,10 @@
REAL_COMPARE_MAP_OFFSET_Z,
} from '../config/setting'
-const width = 20;
-
const getMajorPos = (position) => {
return {
x: position?.[2] * REAL_COMPARE_MAP_SCALE + REAL_COMPARE_MAP_OFFSET_X,
- y: position?.[1] * REAL_COMPARE_MAP_SCALE,
+ y: position?.[1] * REAL_COMPARE_MAP_SCALE + 10,
z: position?.[0] * REAL_COMPARE_MAP_SCALE + REAL_COMPARE_MAP_OFFSET_Z,
}
}
@@ -44,23 +42,12 @@
}, [points]);
- useEffect(() => {
- console.log(JSON.stringify(props.list));
- //[{"code":"00000052","position":[4961,0,2420],"serial":6},{"code":"00000053","position":[5491,0,2420],"serial":7},{"code":"00000054","position":[6021,0,2420],"serial":8}]
- }, [props])
-
return (
<>
<group>
- {/* <mesh position={} rotation={[]}>
- <planeGeometry
- args={[width, height]}
- ></planeGeometry>
- <meshBasicMaterial color="rgb(23,146,247)"></meshBasicMaterial>
- </mesh> */}
<line ref={lineRef}>
<bufferGeometry attach="geometry" />
- <lineBasicMaterial attach="material" color="rgb(23,146,247)" linewidth={width} />
+ <lineBasicMaterial attach="material" color="rgb(23,146,247)" linewidth={50} />
</line>
</group>
</>
--
Gitblit v1.9.1