bug fix
This commit is contained in:
@@ -56,7 +56,7 @@ function Line({ points }: Readonly<LineProps>) {
|
||||
uuid={`${points[0].pointUuid}-${points[1].pointUuid}`}
|
||||
userData={{ points, path }}
|
||||
points={positions}
|
||||
lineWidth={7.5}
|
||||
lineWidth={Constants.lineConfig.width}
|
||||
color={isDeletable ? colors.defaultDeleteColor : colors.defaultLineColor}
|
||||
onClick={handleLineClick}
|
||||
onPointerOver={handlePointerOver}
|
||||
|
||||
@@ -10,7 +10,7 @@ interface ReferenceLineProps {
|
||||
function ReferenceLine({ points }: Readonly<ReferenceLineProps>) {
|
||||
const positions = useMemo(() => points.map((p) => new THREE.Vector3(...p.position)), [points]);
|
||||
|
||||
return <DreiLine points={positions} lineWidth={7.5} color={Constants.lineConfig.helperColor} />;
|
||||
return <DreiLine points={positions} lineWidth={Constants.lineConfig.width} color={Constants.lineConfig.helperColor} />;
|
||||
}
|
||||
|
||||
export default ReferenceLine;
|
||||
|
||||
@@ -331,7 +331,7 @@ export const pointConfig: PointConfig = {
|
||||
export const lineConfig: LineConfig = {
|
||||
tubularSegments: 64, // Number of tubular segments
|
||||
radius: 0.15, // Radius of the lines
|
||||
width: 20, // Width of the lines
|
||||
width: 7.5, // Width of the lines
|
||||
radialSegments: 8, // Number of radial segments
|
||||
wallName: "WallLine", // Name of the wall lines
|
||||
floorName: "FloorLine", // Name of the floor lines
|
||||
|
||||
Reference in New Issue
Block a user