Event when size of an element changed

hello,

is there a possibility to detect when the size of an element has changed?
For example as this (pseudocode)
if(elementSize.changed)
alert(‘size of an element was changed’);

There is the resize.end event you can use

const eventBus = modeler.get('eventBus');

eventBus.on('resize.end', function(event) {
  console.log(event.context.shape);
});