When i call replaceElement api,
i want to keep the text of the original element and change its shape only.
let elementRegistry = this.modeler.get('elementRegistry');
let element = elementRegistry.get(id);
let replace = this.modeler.get('replace');
let newElementData = {
type: type
};
return replace.replaceElement(element, newElementData);
}