You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

center-handle.tsx 354B

123456789101112131415161718
  1. import styled from "styles"
  2. import { Bounds } from "types"
  3. export default function CenterHandle({ bounds }: { bounds: Bounds }) {
  4. return (
  5. <StyledBounds
  6. width={bounds.width}
  7. height={bounds.height}
  8. pointerEvents="none"
  9. />
  10. )
  11. }
  12. const StyledBounds = styled("rect", {
  13. fill: "none",
  14. stroke: "$bounds",
  15. zStrokeWidth: 2,
  16. })