Make spec slightly transparent.

pull/4/head
Atul Varma 2021-02-15 20:34:49 -05:00
rodzic baf1f379b8
commit a44c43a04e
1 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -10,6 +10,8 @@ const ATTACHMENT_POINT_NORMAL_LENGTH = 50;
const ATTACHMENT_POINT_NORMAL_STROKE = 4;
const SPEC_OPACITY = 0.66;
const VisibleAttachmentPoint: React.FC<{
point: AttachmentPoint;
}> = ({ point: ap }) => {
@ -20,8 +22,15 @@ const VisibleAttachmentPoint: React.FC<{
return (
<>
<circle fill={color} r={ATTACHMENT_POINT_RADIUS} cx={x} cy={y} />
<circle
fill={color}
r={ATTACHMENT_POINT_RADIUS}
cx={x}
cy={y}
opacity={SPEC_OPACITY}
/>
<line
opacity={SPEC_OPACITY}
x1={x}
y1={y}
x2={x2}
@ -39,6 +48,7 @@ const BoundingBoxes: React.FC<{ fill: string; bboxes: BBox[] }> = (props) => (
const [width, height] = getBoundingBoxSize(b);
return (
<rect
opacity={SPEC_OPACITY}
key={i}
x={b.x.min}
y={b.y.min}