@visactor/react-vchart 2.0.13 → 2.0.14-alpha.0
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 +7 -5
- package/build/index.min.js +1 -1
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -77554,14 +77554,16 @@
|
|
|
77554
77554
|
} else parseMarkInfoOfSimpleSeries();
|
|
77555
77555
|
}
|
|
77556
77556
|
} else "geo" === series.coordinate && (() => {
|
|
77557
|
-
var _a, _b;
|
|
77558
|
-
|
|
77557
|
+
var _a, _b, _c;
|
|
77558
|
+
console.log("parseMarkInfoOfGeoSeries");
|
|
77559
|
+
let originDatum = null === (_a = series.getViewData()) || void 0 === _a ? void 0 : _a.latestData.find(datumContainsArray(dimensionFields, dimensionData));
|
|
77560
|
+
const originMapDatum = null === (_c = null === (_b = series.getMapViewData) || void 0 === _b ? void 0 : _b.call(series)) || void 0 === _c ? void 0 : _c.latestData.find(datum => dimensionFields.every((key, i) => datum.properties[key] === (null == dimensionData ? void 0 : dimensionData[i])));
|
|
77559
77561
|
let markInfoMeasureData = measureData;
|
|
77560
|
-
if (!hasMeasureData) {
|
|
77562
|
+
if (originMapDatum && !originDatum && (originDatum = Object.assign({}, datum)), !hasMeasureData) {
|
|
77561
77563
|
if (measureData = getDataArrayFromFieldArray(measureFields, originDatum), markInfoMeasureData = measureData, !hasData(measureData) && !originDatum) return;
|
|
77562
|
-
measureData =
|
|
77564
|
+
measureData = [null];
|
|
77563
77565
|
}
|
|
77564
|
-
const pos = series.type === SeriesTypeEnum.pie ? series.dataToCentralPosition(
|
|
77566
|
+
const pos = series.type === SeriesTypeEnum.pie ? series.dataToCentralPosition(originMapDatum.properties) : series.dataToPosition(originMapDatum.properties);
|
|
77565
77567
|
isNil$1(pos) || isNaN(pos.x) || isNaN(pos.y) || markInfoList.push({
|
|
77566
77568
|
pos: pos,
|
|
77567
77569
|
data: {
|