| 12345678910111213141516171819202122232425262728293031323334 |
- import styled from 'styles'
- import { Bounds } from 'types'
-
- export default function CenterHandle({
- bounds,
- isLocked,
- }: {
- bounds: Bounds
- isLocked: boolean
- }) {
- return (
- <StyledBounds
- width={bounds.width}
- height={bounds.height}
- pointerEvents="none"
- isLocked={isLocked}
- />
- )
- }
-
- const StyledBounds = styled('rect', {
- fill: 'none',
- stroke: '$bounds',
- zStrokeWidth: 2,
-
- variants: {
- isLocked: {
- true: {
- zStrokeWidth: 1,
- zDash: 2,
- },
- },
- },
- })
|