Hi Mounika,
Currently, we don’t have support for event triggered while nodes or connector added in a diagram, so we can consider this as a feature. In this feature, we will get the information after the node or connector added/removed in the diagram. Using this event, we cannot provide the cancel support, but we can return which node or connector is added/removed from the diagram. Is this functionality enough to satisfy your requirements? Once you confirm, we will consider this as a feature.
Note: During the event trigger, we can change the page width and height.
Regards,
Suganthi K.