@visactor/vchart-extension 1.13.21-alpha.6 → 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
@@ -4267,6 +4267,10 @@
4267
4267
  };
4268
4268
 
4269
4269
  class CompareSankeyChartSpecTransformer extends vchart.SankeyChartSpecTransformer {
4270
+ constructor() {
4271
+ super(...arguments);
4272
+ this.seriesType = 'compareSankey';
4273
+ }
4270
4274
  transformSpec(spec) {
4271
4275
  super.transformSpec(spec);
4272
4276
  }
@@ -4578,7 +4582,7 @@
4578
4582
  const nodeDatums = allNodeElements.map(el => getDatumOfGraphic(el));
4579
4583
  const pickNodeDatums = nodeDatums.filter(d => d.key === nodeDatum.key);
4580
4584
  const highlightLinksData = [];
4581
- const highlightNodeKeys = [];
4585
+ const highlightNodeKeys = pickNodeDatums.map(d => d.key);
4582
4586
  this._activeTargetLink(nodeDatum, pickNodeDatums, allNodeElements, allLinkElements, highlightNodeKeys, highlightLinksData, highlightState, blurState);
4583
4587
  this._activeSourceLink(nodeDatum, pickNodeDatums, nodeDatums, allNodeElements, highlightNodeKeys, highlightLinksData, highlightState, blurState);
4584
4588
  this._highLightElements(allNodeElements, highlightNodeKeys, highlightState, blurState);
@@ -4664,6 +4668,9 @@
4664
4668
  });
4665
4669
  }
4666
4670
  }
4671
+ getSubNodeDatum(filter) {
4672
+ return this._nodeMark.getProductElements().filter((n) => filter(n.data[0]));
4673
+ }
4667
4674
  }
4668
4675
  CompareSankeySeries.type = 'compareSankey';
4669
4676
  const registerCompareSankeyChart = (option) => {