Make spec slightly transparent.
rodzic
baf1f379b8
commit
a44c43a04e
|
@ -10,6 +10,8 @@ const ATTACHMENT_POINT_NORMAL_LENGTH = 50;
|
||||||
|
|
||||||
const ATTACHMENT_POINT_NORMAL_STROKE = 4;
|
const ATTACHMENT_POINT_NORMAL_STROKE = 4;
|
||||||
|
|
||||||
|
const SPEC_OPACITY = 0.66;
|
||||||
|
|
||||||
const VisibleAttachmentPoint: React.FC<{
|
const VisibleAttachmentPoint: React.FC<{
|
||||||
point: AttachmentPoint;
|
point: AttachmentPoint;
|
||||||
}> = ({ point: ap }) => {
|
}> = ({ point: ap }) => {
|
||||||
|
@ -20,8 +22,15 @@ const VisibleAttachmentPoint: React.FC<{
|
||||||
|
|
||||||
return (
|
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
|
<line
|
||||||
|
opacity={SPEC_OPACITY}
|
||||||
x1={x}
|
x1={x}
|
||||||
y1={y}
|
y1={y}
|
||||||
x2={x2}
|
x2={x2}
|
||||||
|
@ -39,6 +48,7 @@ const BoundingBoxes: React.FC<{ fill: string; bboxes: BBox[] }> = (props) => (
|
||||||
const [width, height] = getBoundingBoxSize(b);
|
const [width, height] = getBoundingBoxSize(b);
|
||||||
return (
|
return (
|
||||||
<rect
|
<rect
|
||||||
|
opacity={SPEC_OPACITY}
|
||||||
key={i}
|
key={i}
|
||||||
x={b.x.min}
|
x={b.x.min}
|
||||||
y={b.y.min}
|
y={b.y.min}
|
||||||
|
|
Ładowanie…
Reference in New Issue