Rect Clipping

Hi,
Is it possible to achieve shape clipping in GoJs? Suppose, I have two node (i.e, node1 and node2). Node2 is inside of Node1, When I resize Node2(size of Node2 becomes greater than Node1) , then it should clip the remaining part of Node2.

Thanks in advance.

Nodes cannot be inside of each-other, unless one of them is a Group.

If you mean panels, then yes, Panels can clip their child contents. This typically happens when a combiation of strict sizes force the allowed space to be too small.

For instance, if you have a Shape inside of a Panel, and the Shape has a desired Size of (100,100), but the panel has a desired Size of (50,50), then the Shape will be clipped.