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