跳到主要内容

边界限制

limitX / limitY 会限制旋转后矩形包围盒在父坐标系内的活动范围。

<ReactDragResizeRotate w={180} h={120} r={15} limitX={[20, 620]} limitY={[20, 420]} />