I'm trying to build a custom boundry shape for the cdk Drag Drop directive
I tried to set the boundry as a polygon, I've put a sample code in the stackblitz for quick understanding on the problem, ie the boundry of the drag restriction is not respected when its a polygon.
https://stackblitz.com/edit/ifyv2h?file=src%2Fexample%2Fcdk-drag-drop-boundary-example.css
i will say try with the cdkDragStart and cdkDragMove events and manually check the postion for example
with
also as far as i know clip-path property only response to the visual rendering of the element, does not restrict the movement of the element in actuality . try this approach and let me know.