@antv/g-lite 1.0.66 → 1.0.67

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/index.esm.js CHANGED
@@ -12497,7 +12497,9 @@ var RenderingService = /*#__PURE__*/function () {
12497
12497
  if (index === -1) {
12498
12498
  // remove from sorted list
12499
12499
  var _index = sortable.sorted.indexOf(child);
12500
- sortable.sorted.splice(_index, 1);
12500
+ if (_index >= 0) {
12501
+ sortable.sorted.splice(_index, 1);
12502
+ }
12501
12503
  } else {
12502
12504
  if (sortable.sorted.length === 0) {
12503
12505
  sortable.sorted.push(child);
@@ -12927,7 +12929,9 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
12927
12929
  // parent needs re-sort
12928
12930
  var sortable = parent.sortable;
12929
12931
  if ((sortable === null || sortable === void 0 ? void 0 : (_sortable$sorted = sortable.sorted) === null || _sortable$sorted === void 0 ? void 0 : _sortable$sorted.length) || ((_child$style = child.style) === null || _child$style === void 0 ? void 0 : _child$style.zIndex)) {
12930
- sortable.dirtyChildren.push(child);
12932
+ if (sortable.dirtyChildren.indexOf(child) === -1) {
12933
+ sortable.dirtyChildren.push(child);
12934
+ }
12931
12935
  // if (sortable) {
12932
12936
  // only child has z-Index
12933
12937
  sortable.dirty = true;
@@ -12960,7 +12964,9 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
12960
12964
  var sortable = child.parentNode.sortable;
12961
12965
  // if (sortable) {
12962
12966
  if ((sortable === null || sortable === void 0 ? void 0 : (_sortable$sorted2 = sortable.sorted) === null || _sortable$sorted2 === void 0 ? void 0 : _sortable$sorted2.length) || ((_child$style2 = child.style) === null || _child$style2 === void 0 ? void 0 : _child$style2.zIndex)) {
12963
- sortable.dirtyChildren.push(child);
12967
+ if (sortable.dirtyChildren.indexOf(child) === -1) {
12968
+ sortable.dirtyChildren.push(child);
12969
+ }
12964
12970
  sortable.dirty = true;
12965
12971
  sortable.dirtyReason = SortReason.REMOVED;
12966
12972
  }
package/dist/index.js CHANGED
@@ -12489,7 +12489,9 @@ var RenderingService = /*#__PURE__*/function () {
12489
12489
  if (index === -1) {
12490
12490
  // remove from sorted list
12491
12491
  var _index = sortable.sorted.indexOf(child);
12492
- sortable.sorted.splice(_index, 1);
12492
+ if (_index >= 0) {
12493
+ sortable.sorted.splice(_index, 1);
12494
+ }
12493
12495
  } else {
12494
12496
  if (sortable.sorted.length === 0) {
12495
12497
  sortable.sorted.push(child);
@@ -12919,7 +12921,9 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
12919
12921
  // parent needs re-sort
12920
12922
  var sortable = parent.sortable;
12921
12923
  if ((sortable === null || sortable === void 0 ? void 0 : (_sortable$sorted = sortable.sorted) === null || _sortable$sorted === void 0 ? void 0 : _sortable$sorted.length) || ((_child$style = child.style) === null || _child$style === void 0 ? void 0 : _child$style.zIndex)) {
12922
- sortable.dirtyChildren.push(child);
12924
+ if (sortable.dirtyChildren.indexOf(child) === -1) {
12925
+ sortable.dirtyChildren.push(child);
12926
+ }
12923
12927
  // if (sortable) {
12924
12928
  // only child has z-Index
12925
12929
  sortable.dirty = true;
@@ -12952,7 +12956,9 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
12952
12956
  var sortable = child.parentNode.sortable;
12953
12957
  // if (sortable) {
12954
12958
  if ((sortable === null || sortable === void 0 ? void 0 : (_sortable$sorted2 = sortable.sorted) === null || _sortable$sorted2 === void 0 ? void 0 : _sortable$sorted2.length) || ((_child$style2 = child.style) === null || _child$style2 === void 0 ? void 0 : _child$style2.zIndex)) {
12955
- sortable.dirtyChildren.push(child);
12959
+ if (sortable.dirtyChildren.indexOf(child) === -1) {
12960
+ sortable.dirtyChildren.push(child);
12961
+ }
12956
12962
  sortable.dirty = true;
12957
12963
  sortable.dirtyReason = exports.SortReason.REMOVED;
12958
12964
  }
package/dist/index.umd.js CHANGED
@@ -19463,7 +19463,9 @@
19463
19463
  if (index === -1) {
19464
19464
  // remove from sorted list
19465
19465
  var _index = sortable.sorted.indexOf(child);
19466
- sortable.sorted.splice(_index, 1);
19466
+ if (_index >= 0) {
19467
+ sortable.sorted.splice(_index, 1);
19468
+ }
19467
19469
  } else {
19468
19470
  if (sortable.sorted.length === 0) {
19469
19471
  sortable.sorted.push(child);
@@ -19893,7 +19895,9 @@
19893
19895
  // parent needs re-sort
19894
19896
  var sortable = parent.sortable;
19895
19897
  if ((sortable === null || sortable === void 0 ? void 0 : (_sortable$sorted = sortable.sorted) === null || _sortable$sorted === void 0 ? void 0 : _sortable$sorted.length) || ((_child$style = child.style) === null || _child$style === void 0 ? void 0 : _child$style.zIndex)) {
19896
- sortable.dirtyChildren.push(child);
19898
+ if (sortable.dirtyChildren.indexOf(child) === -1) {
19899
+ sortable.dirtyChildren.push(child);
19900
+ }
19897
19901
  // if (sortable) {
19898
19902
  // only child has z-Index
19899
19903
  sortable.dirty = true;
@@ -19926,7 +19930,9 @@
19926
19930
  var sortable = child.parentNode.sortable;
19927
19931
  // if (sortable) {
19928
19932
  if ((sortable === null || sortable === void 0 ? void 0 : (_sortable$sorted2 = sortable.sorted) === null || _sortable$sorted2 === void 0 ? void 0 : _sortable$sorted2.length) || ((_child$style2 = child.style) === null || _child$style2 === void 0 ? void 0 : _child$style2.zIndex)) {
19929
- sortable.dirtyChildren.push(child);
19933
+ if (sortable.dirtyChildren.indexOf(child) === -1) {
19934
+ sortable.dirtyChildren.push(child);
19935
+ }
19930
19936
  sortable.dirty = true;
19931
19937
  sortable.dirtyReason = exports.SortReason.REMOVED;
19932
19938
  }