orcasvn-react-diagrams 0.1.24 → 0.1.25

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.
package/dist/cjs/index.js CHANGED
@@ -823,7 +823,7 @@ var EditorContext = /** @class */ (function () {
823
823
  return this._elements.find(function (e) { return e.id === elementId; });
824
824
  };
825
825
  EditorContext.prototype.addElement = function (element) {
826
- this._elements.push(element);
826
+ this._elements = __spreadArray(__spreadArray([], this._elements, true), [element], false);
827
827
  };
828
828
  EditorContext.prototype.removeElement = function (elementId) {
829
829
  this._elements = this._elements.filter(function (e) { return e.id !== elementId; });
@@ -832,7 +832,7 @@ var EditorContext = /** @class */ (function () {
832
832
  return this._links.find(function (l) { return l.id === linkId; });
833
833
  };
834
834
  EditorContext.prototype.addLink = function (link) {
835
- this._links.push(link);
835
+ this._links = __spreadArray(__spreadArray([], this._links, true), [link], false);
836
836
  };
837
837
  EditorContext.prototype.removeLink = function (linkId) {
838
838
  this._links = this._links.filter(function (l) { return l.id !== linkId; });
@@ -841,7 +841,7 @@ var EditorContext = /** @class */ (function () {
841
841
  return this._texts.find(function (t) { return t.id === textId; });
842
842
  };
843
843
  EditorContext.prototype.addText = function (text) {
844
- this._texts.push(text);
844
+ this._texts = __spreadArray(__spreadArray([], this._texts, true), [text], false);
845
845
  };
846
846
  EditorContext.prototype.removeText = function (textId) {
847
847
  this._texts = this._texts.filter(function (t) { return t.id !== textId; });
package/dist/esm/index.js CHANGED
@@ -819,7 +819,7 @@ var EditorContext = /** @class */ (function () {
819
819
  return this._elements.find(function (e) { return e.id === elementId; });
820
820
  };
821
821
  EditorContext.prototype.addElement = function (element) {
822
- this._elements.push(element);
822
+ this._elements = __spreadArray(__spreadArray([], this._elements, true), [element], false);
823
823
  };
824
824
  EditorContext.prototype.removeElement = function (elementId) {
825
825
  this._elements = this._elements.filter(function (e) { return e.id !== elementId; });
@@ -828,7 +828,7 @@ var EditorContext = /** @class */ (function () {
828
828
  return this._links.find(function (l) { return l.id === linkId; });
829
829
  };
830
830
  EditorContext.prototype.addLink = function (link) {
831
- this._links.push(link);
831
+ this._links = __spreadArray(__spreadArray([], this._links, true), [link], false);
832
832
  };
833
833
  EditorContext.prototype.removeLink = function (linkId) {
834
834
  this._links = this._links.filter(function (l) { return l.id !== linkId; });
@@ -837,7 +837,7 @@ var EditorContext = /** @class */ (function () {
837
837
  return this._texts.find(function (t) { return t.id === textId; });
838
838
  };
839
839
  EditorContext.prototype.addText = function (text) {
840
- this._texts.push(text);
840
+ this._texts = __spreadArray(__spreadArray([], this._texts, true), [text], false);
841
841
  };
842
842
  EditorContext.prototype.removeText = function (textId) {
843
843
  this._texts = this._texts.filter(function (t) { return t.id !== textId; });