@visactor/vchart-extension 1.13.21-alpha.7 → 1.13.21-alpha.8

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/build/index.js CHANGED
@@ -4582,7 +4582,7 @@
4582
4582
  const nodeDatums = allNodeElements.map(el => getDatumOfGraphic(el));
4583
4583
  const pickNodeDatums = nodeDatums.filter(d => d.key === nodeDatum.key);
4584
4584
  const highlightLinksData = [];
4585
- const highlightNodeKeys = [];
4585
+ const highlightNodeKeys = pickNodeDatums.map(d => d.key);
4586
4586
  this._activeTargetLink(nodeDatum, pickNodeDatums, allNodeElements, allLinkElements, highlightNodeKeys, highlightLinksData, highlightState, blurState);
4587
4587
  this._activeSourceLink(nodeDatum, pickNodeDatums, nodeDatums, allNodeElements, highlightNodeKeys, highlightLinksData, highlightState, blurState);
4588
4588
  this._highLightElements(allNodeElements, highlightNodeKeys, highlightState, blurState);
@@ -4668,6 +4668,9 @@
4668
4668
  });
4669
4669
  }
4670
4670
  }
4671
+ getSubNodeDatum(filter) {
4672
+ return this._nodeMark.getProductElements().filter((n) => filter(n.data[0]));
4673
+ }
4671
4674
  }
4672
4675
  CompareSankeySeries.type = 'compareSankey';
4673
4676
  const registerCompareSankeyChart = (option) => {