Contain a rotated object inside another rotated object FabricJS
问题 I have two objects a parent (red) and a child (blue). The parent object is fixed and can't be moved , only the child object is movable and the child is always bigger than the parent. In whatever way the child object is moved it should always be contained inside the child, which means we should never see the red rectangle. Demo: https://codesandbox.io/s/force-contain-of-object-inside-another-object-fabric-js-7nt7q I know there are solutions to contain an object within the canvas or other