ngx-rs-ant 1.5.9 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1713,6 +1713,13 @@ class CamundaBpmnEditorComponent {
1713
1713
  '</bpmndi:BPMNDiagram>' +
1714
1714
  '</bpmn:definitions>';
1715
1715
  }
1716
+ set xml(xml) {
1717
+ this._xml = xml;
1718
+ this.loadXml();
1719
+ }
1720
+ get xml() {
1721
+ return this._xml;
1722
+ }
1716
1723
  ngOnInit() {
1717
1724
  if (!this.xml) {
1718
1725
  this.xml = this.initialDiagram;
@@ -1740,6 +1747,9 @@ class CamundaBpmnEditorComponent {
1740
1747
  this.modeler._container.removeChild(logo);
1741
1748
  }
1742
1749
  this.canvas = this.modeler.get('canvas');
1750
+ this.loadXml();
1751
+ }
1752
+ loadXml() {
1743
1753
  this.modeler.importXML(this.xml).then(() => {
1744
1754
  this.canvas.zoom('fit-viewport');
1745
1755
  });