Filled shapes may be selected from the center (#440)
This commit is contained in:
parent
52ae47371d
commit
86c651764c
3 changed files with 3 additions and 3 deletions
|
@ -99,7 +99,7 @@ export class DrawUtil extends TDShapeUtil<T, E> {
|
|||
<SVGContainer ref={ref} id={shape.id + '_svg'} {...events}>
|
||||
<g opacity={isGhost ? GHOSTED_OPACITY : 1}>
|
||||
<path
|
||||
className={shouldFill && isSelected ? 'tl-fill-hitarea' : 'tl-stroke-hitarea'}
|
||||
className={shouldFill || isSelected ? 'tl-fill-hitarea' : 'tl-stroke-hitarea'}
|
||||
d={pathTDSnapshot}
|
||||
/>
|
||||
{shouldFill && (
|
||||
|
|
|
@ -69,7 +69,7 @@ export class EllipseUtil extends TDShapeUtil<T, E> {
|
|||
/>
|
||||
)}
|
||||
<ellipse
|
||||
className={isSelected ? 'tl-fill-hitarea' : 'tl-stroke-hitarea'}
|
||||
className={style.isFilled || isSelected ? 'tl-fill-hitarea' : 'tl-stroke-hitarea'}
|
||||
cx={radiusX}
|
||||
cy={radiusY}
|
||||
rx={radiusX}
|
||||
|
|
|
@ -64,7 +64,7 @@ export class RectangleUtil extends TDShapeUtil<T, E> {
|
|||
/>
|
||||
)}
|
||||
<path
|
||||
className={isSelected ? 'tl-fill-hitarea' : 'tl-stroke-hitarea'}
|
||||
className={style.isFilled || isSelected ? 'tl-fill-hitarea' : 'tl-stroke-hitarea'}
|
||||
d={indicatorPath}
|
||||
/>
|
||||
<path
|
||||
|
|
Loading…
Reference in a new issue