@visactor/react-vchart 2.0.13 → 2.0.14-alpha.1
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 +9 -5
- package/build/index.min.js +1 -1
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -77554,14 +77554,18 @@
|
|
|
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 nameMap = series.getNameMap(),
|
|
77561
|
+
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) => "name" === key ? nameMap[datum.properties[key]] === (null == dimensionData ? void 0 : dimensionData[i]) : datum.properties[key] === (null == dimensionData ? void 0 : dimensionData[i])));
|
|
77562
|
+
if (!originMapDatum) return;
|
|
77559
77563
|
let markInfoMeasureData = measureData;
|
|
77560
|
-
if (!hasMeasureData) {
|
|
77564
|
+
if (originMapDatum && !originDatum && (originDatum = Object.assign({}, datum)), !hasMeasureData) {
|
|
77561
77565
|
if (measureData = getDataArrayFromFieldArray(measureFields, originDatum), markInfoMeasureData = measureData, !hasData(measureData) && !originDatum) return;
|
|
77562
|
-
measureData
|
|
77566
|
+
hasData(measureData) || (measureData = [null]);
|
|
77563
77567
|
}
|
|
77564
|
-
const pos = series.
|
|
77568
|
+
const pos = series.dataToPosition(originDatum);
|
|
77565
77569
|
isNil$1(pos) || isNaN(pos.x) || isNaN(pos.y) || markInfoList.push({
|
|
77566
77570
|
pos: pos,
|
|
77567
77571
|
data: {
|