@visactor/vtable-sheet 1.22.5-alpha.1 → 1.22.5
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/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/vtable-sheet.js +91 -36
- package/dist/vtable-sheet.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +7 -7
package/cjs/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import VTableSheet from './components/vtable-sheet';
|
|
|
2
2
|
import type { ISheetDefine, IVTableSheetOptions } from './ts-types';
|
|
3
3
|
import * as TYPES from './ts-types';
|
|
4
4
|
import * as VTable from './vtable';
|
|
5
|
-
export declare const version = "1.22.5
|
|
5
|
+
export declare const version = "1.22.5";
|
|
6
6
|
export { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,IAAA,4BAAY,GAAE,CAAC","file":"index.js","sourcesContent":["import VTableSheet from './components/vtable-sheet';\nimport type { ISheetDefine, IVTableSheetOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport * as VTable from './vtable';\nimport { importStyles } from './styles/style-manager';\nexport const version = \"1.22.5\";\n// 导入样式\nimportStyles();\n/**\n * @namespace VTableSheet\n */\nexport { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };\n"]}
|
package/dist/vtable-sheet.js
CHANGED
|
@@ -3366,7 +3366,7 @@
|
|
|
3366
3366
|
|
|
3367
3367
|
const EnvContribution = Symbol.for("EnvContribution");
|
|
3368
3368
|
const VGlobal = Symbol.for("VGlobal");
|
|
3369
|
-
const DEFAULT_TEXT_FONT_FAMILY$2 = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui
|
|
3369
|
+
const DEFAULT_TEXT_FONT_FAMILY$2 = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,'-apple-system',segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
|
|
3370
3370
|
|
|
3371
3371
|
const container = new Container$2();
|
|
3372
3372
|
|
|
@@ -7248,7 +7248,7 @@
|
|
|
7248
7248
|
textAlign: "left",
|
|
7249
7249
|
textBaseline: "alphabetic",
|
|
7250
7250
|
fontSize: 16,
|
|
7251
|
-
fontFamily: "PingFang SC,Microsoft Yahei,system-ui
|
|
7251
|
+
fontFamily: "PingFang SC,Microsoft Yahei,system-ui,'-apple-system',segoe ui,\n Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol",
|
|
7252
7252
|
fontWeight: "",
|
|
7253
7253
|
ellipsis: "…",
|
|
7254
7254
|
fontVariant: "",
|
|
@@ -14145,9 +14145,10 @@
|
|
|
14145
14145
|
}
|
|
14146
14146
|
updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds) {
|
|
14147
14147
|
const {
|
|
14148
|
-
|
|
14149
|
-
|
|
14150
|
-
|
|
14148
|
+
size = symbolTheme.size
|
|
14149
|
+
} = attribute,
|
|
14150
|
+
symbolClass = this.getParsedPath();
|
|
14151
|
+
return symbolClass ? (symbolClass.bounds(size, aabbBounds), aabbBounds) : aabbBounds;
|
|
14151
14152
|
}
|
|
14152
14153
|
needUpdateTags(keys) {
|
|
14153
14154
|
return super.needUpdateTags(keys, SYMBOL_UPDATE_TAG_KEY);
|
|
@@ -14156,8 +14157,9 @@
|
|
|
14156
14157
|
return super.needUpdateTag(key, SYMBOL_UPDATE_TAG_KEY);
|
|
14157
14158
|
}
|
|
14158
14159
|
toCustomPath() {
|
|
14159
|
-
const symbolInstance = this.getParsedPath()
|
|
14160
|
-
|
|
14160
|
+
const symbolInstance = this.getParsedPath();
|
|
14161
|
+
if (!symbolInstance) return null;
|
|
14162
|
+
const size = this.attribute.size,
|
|
14161
14163
|
formattedSize = isArray$c(size) ? size : [size, size];
|
|
14162
14164
|
return symbolInstance.path ? new CustomPath2D().fromCustomPath2D(symbolInstance.path, 0, 0, formattedSize[0], formattedSize[1]) : new CustomPath2D().fromString(symbolInstance.pathStr, 0, 0, formattedSize[0], formattedSize[1]);
|
|
14163
14165
|
}
|
|
@@ -19732,7 +19734,7 @@
|
|
|
19732
19734
|
}));
|
|
19733
19735
|
}
|
|
19734
19736
|
enableAutoRefresh() {
|
|
19735
|
-
this.autoRefresh || (this.autoRefresh = !0, this.pluginService.register(new AutoRefreshPlugin()));
|
|
19737
|
+
this.autoRefresh || "node" === this.global.env || (this.autoRefresh = !0, this.pluginService.register(new AutoRefreshPlugin()));
|
|
19736
19738
|
}
|
|
19737
19739
|
disableAutoRefresh() {
|
|
19738
19740
|
this.autoRefresh && (this.autoRefresh = !1, this.pluginService.findPluginsByName("AutoRefreshPlugin").forEach(plugin => {
|
|
@@ -33083,7 +33085,7 @@
|
|
|
33083
33085
|
labelStyle: labelStyle
|
|
33084
33086
|
} = op,
|
|
33085
33087
|
radius = null == getRadius ? void 0 : getRadius();
|
|
33086
|
-
if (!radius) return convertDomainToTickData(scale.domain());
|
|
33088
|
+
if (!radius || radius <= 0) return convertDomainToTickData(scale.domain());
|
|
33087
33089
|
let scaleTicks;
|
|
33088
33090
|
if (isValid$6(tickStep)) scaleTicks = scale.stepTicks(tickStep);else if (isValid$6(forceTickCount)) scaleTicks = scale.forceTicks(forceTickCount);else if (isValid$6(tickCount)) {
|
|
33089
33091
|
const range = scale.range(),
|
|
@@ -47514,7 +47516,14 @@
|
|
|
47514
47516
|
isShowTooltip = rowEnd2 !== rowEnd;
|
|
47515
47517
|
}
|
|
47516
47518
|
}
|
|
47517
|
-
isScatter ? null === (_d = (_c = chartInstanceListColumnByColumnDirection[col][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue) : hideTooltip ? chartInstanceListColumnByColumnDirection[col][i].hideTooltip()
|
|
47519
|
+
isScatter ? null === (_d = (_c = chartInstanceListColumnByColumnDirection[col][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue) : hideTooltip ? (chartInstanceListColumnByColumnDirection[col][i].hideTooltip(), chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47520
|
+
tooltip: !1,
|
|
47521
|
+
showTooltipOption: {
|
|
47522
|
+
x: canvasXY.x,
|
|
47523
|
+
y: absolutePosition.top + 3,
|
|
47524
|
+
activeType: "dimension"
|
|
47525
|
+
}
|
|
47526
|
+
})) : chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47518
47527
|
tooltip: isShowTooltip,
|
|
47519
47528
|
showTooltipOption: {
|
|
47520
47529
|
x: canvasXY.x,
|
|
@@ -47571,7 +47580,14 @@
|
|
|
47571
47580
|
isShowTooltip = colEnd2 !== colEnd;
|
|
47572
47581
|
}
|
|
47573
47582
|
}
|
|
47574
|
-
isScatter ? null === (_d = (_c = chartInstanceListRowByRowDirection[row][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue) : hideTooltip ? chartInstanceListRowByRowDirection[row][i].hideTooltip()
|
|
47583
|
+
isScatter ? null === (_d = (_c = chartInstanceListRowByRowDirection[row][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue) : hideTooltip ? (chartInstanceListRowByRowDirection[row][i].hideTooltip(), chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47584
|
+
tooltip: !1,
|
|
47585
|
+
showTooltipOption: {
|
|
47586
|
+
x: absolutePosition.left + 3,
|
|
47587
|
+
y: canvasXY.y,
|
|
47588
|
+
activeType: "dimension"
|
|
47589
|
+
}
|
|
47590
|
+
})) : chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47575
47591
|
tooltip: isShowTooltip,
|
|
47576
47592
|
showTooltipOption: {
|
|
47577
47593
|
x: absolutePosition.left + 3,
|
|
@@ -47779,6 +47795,9 @@
|
|
|
47779
47795
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
47780
47796
|
if (layout._table.isPivotChart()) if (layout.indicatorsAsCol) {
|
|
47781
47797
|
if (layout.hasTwoIndicatorAxes && row === layout.columnHeaderLevelCount - 1 && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
|
|
47798
|
+
const indicatorKey = layout.getIndicatorKey(col, row),
|
|
47799
|
+
indicatorInfo = layout.getIndicatorInfo(indicatorKey);
|
|
47800
|
+
if (!(null == indicatorInfo ? void 0 : indicatorInfo.hasTwoIndicatorAxes)) return;
|
|
47782
47801
|
const axisRange = getRange("top", col, row + 1, col, layout.columnHeaderLevelCount - 1, col, row, 1, layout);
|
|
47783
47802
|
if (!axisRange) return;
|
|
47784
47803
|
const chartCellStyle = layout._table._getCellStyle(col, row + 1),
|
|
@@ -47944,17 +47963,20 @@
|
|
|
47944
47963
|
});
|
|
47945
47964
|
}
|
|
47946
47965
|
if (col === layout.colCount - layout.rightFrozenColCount && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
|
|
47947
|
-
const
|
|
47948
|
-
|
|
47966
|
+
const indicatorKey = layout.getIndicatorKey(col, row),
|
|
47967
|
+
indicatorInfo = layout.getIndicatorInfo(indicatorKey);
|
|
47968
|
+
if (!(null == indicatorInfo ? void 0 : indicatorInfo.hasTwoIndicatorAxes)) return;
|
|
47969
|
+
const {
|
|
47970
|
+
axisOption: axisOption,
|
|
47949
47971
|
chartType: chartType
|
|
47950
|
-
} = getAxisOption(col - 1, row, "right", layout)
|
|
47972
|
+
} = getAxisOption(col - 1, row, "right", layout),
|
|
47973
|
+
axisRange = getRange("right", col - 1, row, layout.rowHeaderLevelCount - 1, row, col, row, 1, layout);
|
|
47951
47974
|
if (!axisRange) return;
|
|
47952
47975
|
const chartCellStyle = layout._table._getCellStyle(col - 1, row),
|
|
47953
47976
|
bodyChartCellPadding = getQuadProps(getProp("padding", chartCellStyle, col - 1, row, layout._table)),
|
|
47954
47977
|
{
|
|
47955
47978
|
range: range,
|
|
47956
47979
|
ticks: ticks,
|
|
47957
|
-
axisOption: axisOption,
|
|
47958
47980
|
index: index,
|
|
47959
47981
|
targetTicks: targetTicks,
|
|
47960
47982
|
targetRange: targetRange,
|
|
@@ -48049,7 +48071,7 @@
|
|
|
48049
48071
|
}
|
|
48050
48072
|
}
|
|
48051
48073
|
const axisOption = null !== (_e = layout._table.pivotChartAxes.find(axisOption => axisOption.orient === orient)) && void 0 !== _e ? _e : {};
|
|
48052
|
-
axisOption.labelHoverOnAxis
|
|
48074
|
+
axisOption && !axisOption.labelHoverOnAxis && (axisOption.labelHoverOnAxis = null === (_g = null === (_f = layout._table.options.chartDimensionLinkage) || void 0 === _f ? void 0 : _f.labelHoverOnAxis) || void 0 === _g ? void 0 : _g[orient]);
|
|
48053
48075
|
const {
|
|
48054
48076
|
isZeroAlign: isZeroAlign,
|
|
48055
48077
|
isTickAlign: isTickAlign
|
|
@@ -48085,7 +48107,7 @@
|
|
|
48085
48107
|
};
|
|
48086
48108
|
}
|
|
48087
48109
|
function getAxisRange(collectedValues, indicatorKeys, isZeroAlign, colPath, seriesId) {
|
|
48088
|
-
var _a;
|
|
48110
|
+
var _a, _b;
|
|
48089
48111
|
if (isArray$a(seriesId)) {
|
|
48090
48112
|
const range = {
|
|
48091
48113
|
min: 1 / 0,
|
|
@@ -48097,10 +48119,10 @@
|
|
|
48097
48119
|
}
|
|
48098
48120
|
return isFinite(range.min) && isFinite(range.max) ? range : null;
|
|
48099
48121
|
}
|
|
48100
|
-
let defaultKey = null == indicatorKeys ? void 0 : indicatorKeys[seriesId];
|
|
48122
|
+
let defaultKey = null !== (_a = null == indicatorKeys ? void 0 : indicatorKeys[seriesId]) && void 0 !== _a ? _a : null == indicatorKeys ? void 0 : indicatorKeys[0];
|
|
48101
48123
|
if (isArray$a(defaultKey) && (defaultKey = defaultKey[0]), !defaultKey) return null;
|
|
48102
48124
|
const data = collectedValues[defaultKey],
|
|
48103
|
-
range = merge$1({}, null !== (
|
|
48125
|
+
range = merge$1({}, null !== (_b = null == data ? void 0 : data[null != colPath ? colPath : ""]) && void 0 !== _b ? _b : {
|
|
48104
48126
|
min: 0,
|
|
48105
48127
|
max: 1
|
|
48106
48128
|
});
|
|
@@ -48217,7 +48239,7 @@
|
|
|
48217
48239
|
const CHART_NUMBER_TYPE = genNumberType();
|
|
48218
48240
|
class Chart extends Rect$2 {
|
|
48219
48241
|
constructor(isShareChartSpec, params) {
|
|
48220
|
-
if (super(params), this.type = "chart", this.activeChartInstanceHoverOnMark = null, this.numberType = CHART_NUMBER_TYPE, this.isShareChartSpec = isShareChartSpec, params.chartInstance) this.chartInstance = params.chartInstance;else {
|
|
48242
|
+
if (super(params), this.type = "chart", this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), this.delayRunDimensionHoverTimer = void 0, this.numberType = CHART_NUMBER_TYPE, this.isShareChartSpec = isShareChartSpec, params.chartInstance) this.chartInstance = params.chartInstance;else {
|
|
48221
48243
|
const chartInstance = this.chartInstance = new params.ClassType(params.spec, merge$1({}, this.attribute.tableChartOption, {
|
|
48222
48244
|
renderCanvas: params.canvas,
|
|
48223
48245
|
mode: "node" === this.attribute.mode ? "node" : "desktop-browser",
|
|
@@ -48316,20 +48338,52 @@
|
|
|
48316
48338
|
getAxisConfigInPivotChart(table.rowHeaderLevelCount - 1, row, table.internalProps.layoutMap).labelHoverOnAxis && table.scenegraph.getCell(table.rowHeaderLevelCount - 1, row).firstChild.showLabelHoverOnAxis(canvasXY.y - table.getCellRelativeRect(col, row).top, yValue);
|
|
48317
48339
|
getAxisConfigInPivotChart(col, table.rowCount - table.bottomFrozenRowCount, table.internalProps.layoutMap).labelHoverOnAxis && table.scenegraph.getCell(col, table.rowCount - table.bottomFrozenRowCount).firstChild.showLabelHoverOnAxis(canvasXY.x - table.getCellRelativeRect(col, row).left, xValue);
|
|
48318
48340
|
} else {
|
|
48319
|
-
let
|
|
48320
|
-
const preMark = this.activeChartInstanceHoverOnMark
|
|
48321
|
-
|
|
48322
|
-
|
|
48323
|
-
|
|
48341
|
+
let justShowMarkTooltip = !0;
|
|
48342
|
+
const preMark = this.activeChartInstanceHoverOnMark,
|
|
48343
|
+
prev_justShowMarkTooltip = this.justShowMarkTooltip;
|
|
48344
|
+
params.mark && params.datum && !Array.isArray(params.datum) ? (this.activeChartInstanceHoverOnMark = params.mark, justShowMarkTooltip = !0) : (this.activeChartInstanceHoverOnMark = null, justShowMarkTooltip = !1), this.justShowMarkTooltip = justShowMarkTooltip;
|
|
48345
|
+
let delayRunDimensionHover = !1;
|
|
48346
|
+
if (!0 === prev_justShowMarkTooltip && !1 === justShowMarkTooltip ? (this.justShowMarkTooltipTimer = Date.now(), delayRunDimensionHover = !0) : !1 === prev_justShowMarkTooltip && !1 === justShowMarkTooltip ? delayRunDimensionHover = Date.now() - this.justShowMarkTooltipTimer < 100 : (!1 === prev_justShowMarkTooltip && !0 === justShowMarkTooltip || !0 === prev_justShowMarkTooltip && !0 === justShowMarkTooltip) && (delayRunDimensionHover = !1, clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0), "enter" === params.action || "move" === params.action || preMark !== this.activeChartInstanceHoverOnMark) {
|
|
48347
|
+
const dimensionValue = dimensionInfo.value,
|
|
48348
|
+
indicatorsAsCol = table.options.indicatorsAsCol;
|
|
48349
|
+
if (delayRunDimensionHover ? (clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = setTimeout(() => {
|
|
48350
|
+
indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1);
|
|
48351
|
+
}, 100)) : indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1), indicatorsAsCol) {
|
|
48324
48352
|
const series = dimensionInfo.data[0].series,
|
|
48325
|
-
width = series.getYAxisHelper().getBandwidth(0)
|
|
48326
|
-
|
|
48327
|
-
getAxisConfigInPivotChart(table.rowHeaderLevelCount - 1, row, table.internalProps.layoutMap)
|
|
48353
|
+
width = "histogram" === this.attribute.spec.type || "boxPlot" === this.attribute.spec.type || "line" === series.type || "area" === series.type ? 0 : series.getYAxisHelper().getBandwidth(0);
|
|
48354
|
+
let y = series.valueToPositionY(dimensionValue);
|
|
48355
|
+
const axisConfig = getAxisConfigInPivotChart(table.rowHeaderLevelCount - 1, row, table.internalProps.layoutMap);
|
|
48356
|
+
let hoverOnLabelValue = yValue;
|
|
48357
|
+
if ("histogram" === this.attribute.spec.type) {
|
|
48358
|
+
const {
|
|
48359
|
+
series: series,
|
|
48360
|
+
datum: datum
|
|
48361
|
+
} = dimensionInfo.data[0];
|
|
48362
|
+
if (datum.length > 0) {
|
|
48363
|
+
const rangeStartValue = datum[0][series.fieldY[0]],
|
|
48364
|
+
rangeEndValue = datum[0][series.fieldY2];
|
|
48365
|
+
hoverOnLabelValue = rangeStartValue + " ~ " + rangeEndValue, y = (series.valueToPositionY(rangeStartValue) + series.valueToPositionY(rangeEndValue)) / 2;
|
|
48366
|
+
}
|
|
48367
|
+
}
|
|
48368
|
+
axisConfig.labelHoverOnAxis && table.scenegraph.getCell(table.rowHeaderLevelCount - 1, row).firstChild.showLabelHoverOnAxis(y + ("line" === series.type || "area" === series.type ? 0 : width / 2), hoverOnLabelValue);
|
|
48328
48369
|
} else {
|
|
48329
48370
|
const series = dimensionInfo.data[0].series,
|
|
48330
|
-
width = series.getXAxisHelper().getBandwidth(0)
|
|
48331
|
-
|
|
48332
|
-
getAxisConfigInPivotChart(col, table.rowCount - table.bottomFrozenRowCount, table.internalProps.layoutMap)
|
|
48371
|
+
width = "histogram" === this.attribute.spec.type || "boxPlot" === this.attribute.spec.type || "line" === series.type || "area" === series.type ? 0 : series.getXAxisHelper().getBandwidth(0);
|
|
48372
|
+
let x = series.valueToPositionX(dimensionValue);
|
|
48373
|
+
const axisConfig = getAxisConfigInPivotChart(col, table.rowCount - table.bottomFrozenRowCount, table.internalProps.layoutMap);
|
|
48374
|
+
let hoverOnLabelValue = dimensionValue;
|
|
48375
|
+
if ("histogram" === this.attribute.spec.type) {
|
|
48376
|
+
const {
|
|
48377
|
+
series: series,
|
|
48378
|
+
datum: datum
|
|
48379
|
+
} = dimensionInfo.data[0];
|
|
48380
|
+
if (datum.length > 0) {
|
|
48381
|
+
const rangeStartValue = datum[0][series.fieldX[0]],
|
|
48382
|
+
rangeEndValue = datum[0][series.fieldX2];
|
|
48383
|
+
hoverOnLabelValue = rangeStartValue + " ~ " + rangeEndValue, x = (series.valueToPositionX(rangeStartValue) + series.valueToPositionX(rangeEndValue)) / 2;
|
|
48384
|
+
}
|
|
48385
|
+
}
|
|
48386
|
+
axisConfig.labelHoverOnAxis && table.scenegraph.getCell(col, table.rowCount - table.bottomFrozenRowCount).firstChild.showLabelHoverOnAxis(x + width / 2, hoverOnLabelValue);
|
|
48333
48387
|
}
|
|
48334
48388
|
}
|
|
48335
48389
|
}
|
|
@@ -48342,7 +48396,7 @@
|
|
|
48342
48396
|
releaseRowChartInstance = !0
|
|
48343
48397
|
} = {}) {
|
|
48344
48398
|
var _a, _b, _c, _d, _e, _f;
|
|
48345
|
-
if (this.activeChartInstanceHoverOnMark = null, releaseChartInstance) {
|
|
48399
|
+
if (this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0, releaseChartInstance) {
|
|
48346
48400
|
null === (_a = this.activeChartInstance) || void 0 === _a || _a.updateViewBox({
|
|
48347
48401
|
x1: -1e3,
|
|
48348
48402
|
x2: -800,
|
|
@@ -52143,7 +52197,7 @@
|
|
|
52143
52197
|
const table = scenegraph.table;
|
|
52144
52198
|
if (table.isPivotChart()) {
|
|
52145
52199
|
const preSelectItemsCount = table._selectedDataItemsInChart.length;
|
|
52146
|
-
if ((null
|
|
52200
|
+
if ((null == datum || 0 === (null == datum ? void 0 : datum.length) || 0 === Object.keys(datum).length) && 0 === preSelectItemsCount) return;
|
|
52147
52201
|
const newSelectedDataItemsInChart = [];
|
|
52148
52202
|
if (Array.isArray(datum)) datum.forEach(dataItem => {
|
|
52149
52203
|
if (dataItem && 0 !== dataItem.key && Object.keys(dataItem).length > 0) {
|
|
@@ -59610,7 +59664,7 @@
|
|
|
59610
59664
|
}
|
|
59611
59665
|
constructor(container, options = {}) {
|
|
59612
59666
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
59613
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.5
|
|
59667
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.5", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
59614
59668
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
59615
59669
|
options: options,
|
|
59616
59670
|
container: container
|
|
@@ -62859,7 +62913,7 @@
|
|
|
62859
62913
|
domainLine: {
|
|
62860
62914
|
visible: !0,
|
|
62861
62915
|
style: {
|
|
62862
|
-
lineWidth:
|
|
62916
|
+
lineWidth: 0,
|
|
62863
62917
|
stroke: "#D9DDE4",
|
|
62864
62918
|
strokeOpacity: 1
|
|
62865
62919
|
}
|
|
@@ -62949,6 +63003,7 @@
|
|
|
62949
63003
|
function getAxisAttributes(option) {
|
|
62950
63004
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
62951
63005
|
const spec = merge$1({}, option);
|
|
63006
|
+
option.labelHoverOnAxis && !1 === spec.domainLine.visible && (spec.domainLine.style.lineWidth = 0, spec.domainLine.visible = !0);
|
|
62952
63007
|
let titleTextStyle,
|
|
62953
63008
|
titleAngle = null !== (_b = null === (_a = spec.title) || void 0 === _a ? void 0 : _a.angle) && void 0 !== _b ? _b : 0;
|
|
62954
63009
|
"left" !== spec.orient && "right" !== spec.orient || (null === (_c = spec.title) || void 0 === _c ? void 0 : _c.autoRotate) && isNil$3(spec.title.angle) && (titleAngle = "left" === spec.orient ? -90 : 90, titleTextStyle = DEFAULT_TITLE_STYLE[spec.orient]);
|
|
@@ -80792,7 +80847,7 @@
|
|
|
80792
80847
|
importStyle();
|
|
80793
80848
|
}
|
|
80794
80849
|
|
|
80795
|
-
const version = "1.22.5
|
|
80850
|
+
const version = "1.22.5";
|
|
80796
80851
|
importStyles();
|
|
80797
80852
|
|
|
80798
80853
|
exports.TYPES = index;
|