Closed canbax closed 3 years ago
When constraint arrays are empty, we could just ignore them I think.
I added basic validity check for constraint options. If it isn't an array or an empty array, then we ignore that option. Other than this, entering the correct format is the responsibility of the user since we cannot check whether every input is valid or not.
If
relativePlacementConstraint
is an empty array I get an error saying.Maybe it is intentional. Or maybe it should be like this. I'm not sure.