@progress/kendo-charts 2.3.0-dev.202404030928 → 2.3.0-dev.202404070723

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.
@@ -24,9 +24,8 @@ export var Sankey = (function (Observable) {
24
24
 
25
25
  if (options && options.data) {
26
26
  this._redraw();
27
+ this._initResizeObserver();
27
28
  }
28
-
29
- this._initResizeObserver();
30
29
  }
31
30
 
32
31
  if ( Observable ) Sankey.__proto__ = Observable;
@@ -74,7 +73,7 @@ export var Sankey = (function (Observable) {
74
73
  var width = ref.width;
75
74
  var height = ref.height;
76
75
  if (entry.target !== this$1.element ||
77
- (this$1.size.width === width && this$1.size.height === height)) {
76
+ (this$1.size && this$1.size.width === width && this$1.size.height === height)) {
78
77
  return;
79
78
  }
80
79
  this$1.size = { width: width, height: height };
@@ -24,9 +24,8 @@ export class Sankey extends Observable {
24
24
 
25
25
  if (options && options.data) {
26
26
  this._redraw();
27
+ this._initResizeObserver();
27
28
  }
28
-
29
- this._initResizeObserver();
30
29
  }
31
30
 
32
31
  destroy() {
@@ -65,7 +64,7 @@ export class Sankey extends Observable {
65
64
  entries.forEach(entry => {
66
65
  const { width, height } = entry.contentRect;
67
66
  if (entry.target !== this.element ||
68
- (this.size.width === width && this.size.height === height)) {
67
+ (this.size && this.size.width === width && this.size.height === height)) {
69
68
  return;
70
69
  }
71
70
  this.size = { width, height };