This commit is contained in:
2025-09-15 11:31:49 +05:30
parent b2ed93abc0
commit 304364eb65
3 changed files with 3 additions and 3 deletions

View File

@@ -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}

View File

@@ -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;

View File

@@ -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