@talrace/ngx-noder 0.0.26 → 0.0.27

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.
@@ -385,9 +385,10 @@ class FormatStyleHelper {
385
385
  }
386
386
 
387
387
  class ElementDataModel {
388
- constructor(type, guid) {
389
- this.type = type;
388
+ constructor(id, guid, type) {
389
+ this.id = id;
390
390
  this.guid = guid;
391
+ this.type = type;
391
392
  }
392
393
  }
393
394
 
@@ -13950,7 +13951,7 @@ class BaseToolbarComponent extends DestroyComponent {
13950
13951
  }
13951
13952
  async onCreateElement(model) {
13952
13953
  const data = await model.factoryMethod();
13953
- const element = new ElementDataModel(model.type, data.guid);
13954
+ const element = new ElementDataModel(data.id, data.guid, data.type);
13954
13955
  this.createElement.emit(element);
13955
13956
  }
13956
13957
  checkFontLoadedAndApplyStyle(style) {