@visactor/vtable-sheet 1.22.12-alpha.1 → 1.22.12-alpha.3
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 +104 -100
- 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 +6 -6
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.12-alpha.
|
|
5
|
+
export declare const version = "1.22.12-alpha.3";
|
|
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,iBAAiB,CAAC;AAEzC,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.12-alpha.
|
|
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,iBAAiB,CAAC;AAEzC,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.12-alpha.3\";\n// 导入样式\nimportStyles();\n/**\n * @namespace VTableSheet\n */\nexport { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };\n"]}
|
package/dist/vtable-sheet.js
CHANGED
|
@@ -12622,6 +12622,7 @@
|
|
|
12622
12622
|
var _a;
|
|
12623
12623
|
if (!states.length) return void this.clearStates(hasAnimation);
|
|
12624
12624
|
if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some((stateName, index) => this.currentStates[index] !== stateName))) return;
|
|
12625
|
+
this.stateSort && (states = states.sort(this.stateSort));
|
|
12625
12626
|
const stateAttrs = {};
|
|
12626
12627
|
states.forEach(stateName => {
|
|
12627
12628
|
var _a;
|
|
@@ -21501,7 +21502,7 @@
|
|
|
21501
21502
|
return !!this._inuse;
|
|
21502
21503
|
}
|
|
21503
21504
|
set inuse(use) {
|
|
21504
|
-
use !== !!this._inuse && (this._inuse = use, use ? (this.nativeContext.save(), this.reset()) : this.nativeContext.restore());
|
|
21505
|
+
use !== !!this._inuse && (this._inuse = use, use ? (this.nativeContext.save(), this.reset()) : (this.nativeContext.restore(), this._font = ""));
|
|
21505
21506
|
}
|
|
21506
21507
|
constructor(canvas, dpr) {
|
|
21507
21508
|
this.fillAttributes = Object.assign(Object.assign({}, DefaultFillStyle), {
|
|
@@ -27280,8 +27281,8 @@
|
|
|
27280
27281
|
}
|
|
27281
27282
|
parseParams(params, isTimeline, child) {
|
|
27282
27283
|
var _a, _b;
|
|
27283
|
-
const totalTime = this.resolveValue(params.totalTime,
|
|
27284
|
-
startTime = this.resolveValue(params.startTime,
|
|
27284
|
+
const totalTime = this.resolveValue(params.totalTime, child, void 0),
|
|
27285
|
+
startTime = this.resolveValue(params.startTime, child, 0),
|
|
27285
27286
|
parsedParams = Object.assign({}, params);
|
|
27286
27287
|
parsedParams.oneByOneDelay = 0, parsedParams.startTime = startTime, parsedParams.totalTime = totalTime;
|
|
27287
27288
|
const oneByOne = this.resolveValue(params.oneByOne, child, !1);
|
|
@@ -27330,11 +27331,10 @@
|
|
|
27330
27331
|
let oneByOneDelay = 0;
|
|
27331
27332
|
oneByOne && (oneByOneDelay = "number" == typeof oneByOne ? oneByOne : oneByOne ? delay + delayAfter + duration : 0), parsedParams.oneByOneDelay = oneByOneDelay, parsedParams.custom = null !== (_a = params.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = params.type) && void 0 !== _b ? _b : "fromTo"];
|
|
27332
27333
|
const customType = getCustomType(parsedParams.custom);
|
|
27333
|
-
|
|
27334
|
-
|
|
27335
|
-
|
|
27336
|
-
|
|
27337
|
-
}
|
|
27334
|
+
parsedParams.customType = customType;
|
|
27335
|
+
const _totalTime = delay + delayAfter + duration + oneByOneDelay * (this._target.count - 2),
|
|
27336
|
+
scale = isValidNumber$1(totalTime) ? totalTime / _totalTime : 1;
|
|
27337
|
+
parsedParams.delay = delay * scale, parsedParams.delayAfter = delayAfter * scale, parsedParams.duration = duration * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime;
|
|
27338
27338
|
}
|
|
27339
27339
|
return parsedParams;
|
|
27340
27340
|
}
|
|
@@ -27775,7 +27775,7 @@
|
|
|
27775
27775
|
}
|
|
27776
27776
|
class AStageAnimate extends ACustomAnimate {
|
|
27777
27777
|
constructor(customFrom, customTo, duration, easing, params) {
|
|
27778
|
-
super(customFrom, customTo, duration, easing, params), this.willCallBeforeStageRender = !0, this.willCallAfterStageRender = !0, this._beforeStageRender = () => {
|
|
27778
|
+
super(customFrom, customTo, duration, easing, params), this.willCallBeforeStageRender = !0, this.willCallAfterStageRender = !0, this.checkStatusAfterRender = !0, this._beforeStageRender = () => {
|
|
27779
27779
|
if (!this.willCallBeforeStageRender) return;
|
|
27780
27780
|
this.willCallBeforeStageRender = !1;
|
|
27781
27781
|
const stage = this.target.stage,
|
|
@@ -27788,7 +27788,7 @@
|
|
|
27788
27788
|
const stage = this.target.stage,
|
|
27789
27789
|
canvas = stage.window.getContext().canvas.nativeCanvas,
|
|
27790
27790
|
outputCanvas = this.afterStageRender(stage, canvas);
|
|
27791
|
-
outputCanvas && this.renderToStage(stage, outputCanvas);
|
|
27791
|
+
outputCanvas && this.renderToStage(stage, outputCanvas), this.checkStatusAfterRender && this.animate.status === AnimateStatus.END && this.animate.timeline.removeAnimate(this.animate);
|
|
27792
27792
|
}, this.props = {};
|
|
27793
27793
|
}
|
|
27794
27794
|
beforeStageRender(stage, canvas) {
|
|
@@ -47730,46 +47730,43 @@
|
|
|
47730
47730
|
return hoverMode;
|
|
47731
47731
|
}
|
|
47732
47732
|
|
|
47733
|
-
|
|
47734
|
-
brushingChartInstanceCellPos = {
|
|
47735
|
-
col: -1,
|
|
47736
|
-
row: -1
|
|
47737
|
-
};
|
|
47738
|
-
function setBrushingChartInstance(chartInstance, col, row) {
|
|
47739
|
-
brushingChartInstance = chartInstance, brushingChartInstanceCellPos = {
|
|
47733
|
+
function setBrushingChartInstance(chartInstance, col, row, scenegraph) {
|
|
47734
|
+
scenegraph.brushingChartInstance = chartInstance, scenegraph.brushingChartInstanceCellPos = {
|
|
47740
47735
|
col: col,
|
|
47741
47736
|
row: row
|
|
47742
47737
|
};
|
|
47743
47738
|
}
|
|
47739
|
+
function clearBrushingChartInstance(scenegraph) {
|
|
47740
|
+
scenegraph.brushingChartInstance = void 0, scenegraph.brushingChartInstanceCellPos = {
|
|
47741
|
+
col: -1,
|
|
47742
|
+
row: -1
|
|
47743
|
+
};
|
|
47744
|
+
}
|
|
47744
47745
|
function clearAndReleaseBrushingChartInstance(scenegraph) {
|
|
47745
47746
|
var _a, _b, _c;
|
|
47746
|
-
enableTooltipToAllChartInstances();
|
|
47747
|
-
const cellGroup = scenegraph.getCell(brushingChartInstanceCellPos.col, brushingChartInstanceCellPos.row);
|
|
47747
|
+
enableTooltipToAllChartInstances(scenegraph);
|
|
47748
|
+
const cellGroup = scenegraph.getCell(scenegraph.brushingChartInstanceCellPos.col, scenegraph.brushingChartInstanceCellPos.row);
|
|
47748
47749
|
(null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) && (null === (_c = null === (_b = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _b ? void 0 : _b.deactivate) || void 0 === _c || _c.call(_b, scenegraph.table, {
|
|
47749
47750
|
forceRelease: !0,
|
|
47750
47751
|
releaseChartInstance: !0,
|
|
47751
47752
|
releaseColumnChartInstance: !1,
|
|
47752
47753
|
releaseRowChartInstance: !1,
|
|
47753
47754
|
releaseAllChartInstance: !1
|
|
47754
|
-
})), isValid$2(chartInstanceListColumnByColumnDirection[brushingChartInstanceCellPos.col]) && delete chartInstanceListColumnByColumnDirection[brushingChartInstanceCellPos.col][brushingChartInstanceCellPos.row], isValid$2(chartInstanceListRowByRowDirection[brushingChartInstanceCellPos.row]) && delete chartInstanceListRowByRowDirection[brushingChartInstanceCellPos.row][brushingChartInstanceCellPos.col], brushingChartInstance = void 0, brushingChartInstanceCellPos = {
|
|
47755
|
+
})), isValid$2(scenegraph.chartInstanceListColumnByColumnDirection[scenegraph.brushingChartInstanceCellPos.col]) && delete scenegraph.chartInstanceListColumnByColumnDirection[scenegraph.brushingChartInstanceCellPos.col][scenegraph.brushingChartInstanceCellPos.row], isValid$2(scenegraph.chartInstanceListRowByRowDirection[scenegraph.brushingChartInstanceCellPos.row]) && delete scenegraph.chartInstanceListRowByRowDirection[scenegraph.brushingChartInstanceCellPos.row][scenegraph.brushingChartInstanceCellPos.col], scenegraph.brushingChartInstance = void 0, scenegraph.brushingChartInstanceCellPos = {
|
|
47755
47756
|
col: -1,
|
|
47756
47757
|
row: -1
|
|
47757
47758
|
};
|
|
47758
47759
|
}
|
|
47759
|
-
function getBrushingChartInstance() {
|
|
47760
|
-
return brushingChartInstance;
|
|
47760
|
+
function getBrushingChartInstance(scenegraph) {
|
|
47761
|
+
return scenegraph.brushingChartInstance;
|
|
47761
47762
|
}
|
|
47762
|
-
function getBrushingChartInstanceCellPos() {
|
|
47763
|
-
return brushingChartInstanceCellPos;
|
|
47763
|
+
function getBrushingChartInstanceCellPos(scenegraph) {
|
|
47764
|
+
return scenegraph.brushingChartInstanceCellPos;
|
|
47764
47765
|
}
|
|
47765
|
-
const chartInstanceListColumnByColumnDirection = {};
|
|
47766
|
-
const chartInstanceListRowByRowDirection = {};
|
|
47767
|
-
const delayRunDimensionHoverTimerForColumnDirection = [],
|
|
47768
|
-
delayRunDimensionHoverTimerForRowDirection = [],
|
|
47769
|
-
delayRunDimensionHoverTimerForViewRange = [];
|
|
47770
47766
|
function generateChartInstanceListByColumnDirection(col, dimensionValueOrXValue, positionValueOrYValue, canvasXY, table, hideTooltip = !1, isScatter = !1) {
|
|
47771
47767
|
var _a;
|
|
47772
|
-
|
|
47768
|
+
const scenegraph = table.scenegraph;
|
|
47769
|
+
clearDelayRunDimensionHoverTimerForColumnDirection(scenegraph), isValid$2(scenegraph.chartInstanceListColumnByColumnDirection[col]) || (scenegraph.chartInstanceListColumnByColumnDirection[col] = {});
|
|
47773
47770
|
const {
|
|
47774
47771
|
rowStart: rowStart
|
|
47775
47772
|
} = table.getBodyVisibleRowRange();
|
|
@@ -47778,24 +47775,24 @@
|
|
|
47778
47775
|
for (let i = rowStart; i <= rowEnd; i++) {
|
|
47779
47776
|
const cellGroup = table.scenegraph.getCell(col, i),
|
|
47780
47777
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
47781
|
-
chartInstanceListColumnByColumnDirection[col][i] || isValid$2(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance);
|
|
47778
|
+
scenegraph.chartInstanceListColumnByColumnDirection[col][i] || isValid$2(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), scenegraph.chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance);
|
|
47782
47779
|
const timer = setTimeout(() => {
|
|
47783
47780
|
var _a, _b, _c, _d;
|
|
47784
|
-
if (null === (_a = chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47781
|
+
if (null === (_a = scenegraph.chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47785
47782
|
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
47786
47783
|
let isShowTooltip = !isScatter;
|
|
47787
|
-
if (isScatter || "object" != typeof chartDimensionLinkage || (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeRow(i, table)), isScatter) table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || null === (_d = (_c = chartInstanceListColumnByColumnDirection[col][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
|
|
47784
|
+
if (isScatter || "object" != typeof chartDimensionLinkage || (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeRow(i, table)), isScatter) table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || null === (_d = (_c = scenegraph.chartInstanceListColumnByColumnDirection[col][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
|
|
47788
47785
|
const cellBoundry = table.getCellRelativeRect(col, i),
|
|
47789
47786
|
bodyBoundryTop = table.frozenRowCount ? table.getCellRelativeRect(col, table.frozenRowCount - 1).bottom : 0,
|
|
47790
47787
|
absolutePositionTop = Math.max(bodyBoundryTop, table.getCellRelativeRect(col, i).top);
|
|
47791
|
-
hideTooltip ? (table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || chartInstanceListColumnByColumnDirection[col][i].hideTooltip(), chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47788
|
+
hideTooltip ? (table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || scenegraph.chartInstanceListColumnByColumnDirection[col][i].hideTooltip(), scenegraph.chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47792
47789
|
tooltip: !1,
|
|
47793
47790
|
showTooltipOption: {
|
|
47794
47791
|
x: canvasXY.x - cellBoundry.left,
|
|
47795
47792
|
y: absolutePositionTop - cellBoundry.top,
|
|
47796
47793
|
activeType: "dimension"
|
|
47797
47794
|
}
|
|
47798
|
-
})) : chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47795
|
+
})) : scenegraph.chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47799
47796
|
tooltip: isShowTooltip,
|
|
47800
47797
|
showTooltipOption: {
|
|
47801
47798
|
x: canvasXY.x - cellBoundry.left,
|
|
@@ -47806,12 +47803,13 @@
|
|
|
47806
47803
|
}
|
|
47807
47804
|
}
|
|
47808
47805
|
}, 0);
|
|
47809
|
-
delayRunDimensionHoverTimerForColumnDirection.push(timer), table.scenegraph.updateNextFrame();
|
|
47806
|
+
scenegraph.delayRunDimensionHoverTimerForColumnDirection.push(timer), table.scenegraph.updateNextFrame();
|
|
47810
47807
|
}
|
|
47811
47808
|
}
|
|
47812
47809
|
function generateChartInstanceListByRowDirection(row, dimensionValueOrXValue, positionValueOrYValue, canvasXY, table, hideTooltip = !1, isScatter = !1) {
|
|
47813
47810
|
var _a;
|
|
47814
|
-
|
|
47811
|
+
const scenegraph = table.scenegraph;
|
|
47812
|
+
clearDelayRunDimensionHoverTimerForRowDirection(scenegraph), isValid$2(scenegraph.chartInstanceListRowByRowDirection[row]) || (scenegraph.chartInstanceListRowByRowDirection[row] = {});
|
|
47815
47813
|
const {
|
|
47816
47814
|
colStart: colStart
|
|
47817
47815
|
} = table.getBodyVisibleColRange();
|
|
@@ -47820,24 +47818,24 @@
|
|
|
47820
47818
|
for (let i = colStart; i <= colEnd; i++) {
|
|
47821
47819
|
const cellGroup = table.scenegraph.getCell(i, row),
|
|
47822
47820
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
47823
|
-
chartInstanceListRowByRowDirection[row][i] || isValid$2(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance);
|
|
47821
|
+
scenegraph.chartInstanceListRowByRowDirection[row][i] || isValid$2(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), scenegraph.chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance);
|
|
47824
47822
|
const timer = setTimeout(() => {
|
|
47825
47823
|
var _a, _b, _c, _d;
|
|
47826
|
-
if (null === (_a = chartInstanceListRowByRowDirection[row]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47824
|
+
if (null === (_a = scenegraph.chartInstanceListRowByRowDirection[row]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47827
47825
|
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
47828
47826
|
let isShowTooltip = !isScatter;
|
|
47829
|
-
if (isScatter || "object" != typeof chartDimensionLinkage || (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeColumn(i, table)), isScatter) table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || null === (_d = (_c = chartInstanceListRowByRowDirection[row][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
|
|
47827
|
+
if (isScatter || "object" != typeof chartDimensionLinkage || (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeColumn(i, table)), isScatter) table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || null === (_d = (_c = scenegraph.chartInstanceListRowByRowDirection[row][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
|
|
47830
47828
|
const cellBoundry = table.getCellRelativeRect(i, row),
|
|
47831
47829
|
bodyBoundryLeft = table.frozenColCount ? table.getCellRelativeRect(table.frozenColCount - 1, row).right : 0,
|
|
47832
47830
|
absolutePositionLeft = Math.max(bodyBoundryLeft, table.getCellRelativeRect(i, row).left);
|
|
47833
|
-
hideTooltip ? (table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || chartInstanceListRowByRowDirection[row][i].hideTooltip(), chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47831
|
+
hideTooltip ? (table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || scenegraph.chartInstanceListRowByRowDirection[row][i].hideTooltip(), scenegraph.chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47834
47832
|
tooltip: !1,
|
|
47835
47833
|
showTooltipOption: {
|
|
47836
47834
|
x: absolutePositionLeft - cellBoundry.left,
|
|
47837
47835
|
y: canvasXY.y - cellBoundry.top,
|
|
47838
47836
|
activeType: "dimension"
|
|
47839
47837
|
}
|
|
47840
|
-
})) : chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47838
|
+
})) : scenegraph.chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47841
47839
|
tooltip: isShowTooltip,
|
|
47842
47840
|
showTooltipOption: {
|
|
47843
47841
|
x: absolutePositionLeft - cellBoundry.left,
|
|
@@ -47848,12 +47846,13 @@
|
|
|
47848
47846
|
}
|
|
47849
47847
|
}
|
|
47850
47848
|
}, 0);
|
|
47851
|
-
delayRunDimensionHoverTimerForRowDirection.push(timer), table.scenegraph.updateNextFrame();
|
|
47849
|
+
scenegraph.delayRunDimensionHoverTimerForRowDirection.push(timer), table.scenegraph.updateNextFrame();
|
|
47852
47850
|
}
|
|
47853
47851
|
}
|
|
47854
47852
|
function generateChartInstanceListByViewRange(datum, table, deactivate = !1) {
|
|
47855
47853
|
var _a;
|
|
47856
|
-
|
|
47854
|
+
const scenegraph = table.scenegraph;
|
|
47855
|
+
clearDelayRunDimensionHoverTimerForViewRange(scenegraph);
|
|
47857
47856
|
const {
|
|
47858
47857
|
rowStart: rowStart
|
|
47859
47858
|
} = table.getBodyVisibleRowRange();
|
|
@@ -47865,22 +47864,22 @@
|
|
|
47865
47864
|
let colEnd = table.getBodyVisibleColRange().colEnd;
|
|
47866
47865
|
colEnd = Math.min(table.colCount - 1 - table.rightFrozenColCount, colEnd);
|
|
47867
47866
|
for (let col = colStart; col <= colEnd; col++) {
|
|
47868
|
-
isValid$2(chartInstanceListColumnByColumnDirection[col]) || (chartInstanceListColumnByColumnDirection[col] = {});
|
|
47867
|
+
isValid$2(scenegraph.chartInstanceListColumnByColumnDirection[col]) || (scenegraph.chartInstanceListColumnByColumnDirection[col] = {});
|
|
47869
47868
|
for (let i = rowStart; i <= rowEnd; i++) {
|
|
47870
47869
|
const cellGroup = table.scenegraph.getCell(col, i),
|
|
47871
47870
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
47872
|
-
chartInstanceListColumnByColumnDirection[col][i] || isValid$2(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance ? chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance : "pie" === chartNode.attribute.spec.type && (chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance));
|
|
47871
|
+
scenegraph.chartInstanceListColumnByColumnDirection[col][i] || isValid$2(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance ? scenegraph.chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance : "pie" === chartNode.attribute.spec.type && (chartNode.activate(table), scenegraph.chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance));
|
|
47873
47872
|
const timer = setTimeout(() => {
|
|
47874
47873
|
var _a, _b;
|
|
47875
|
-
if (null === (_a = chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47874
|
+
if (null === (_a = scenegraph.chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47876
47875
|
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
47877
47876
|
let isShowTooltip = !0;
|
|
47878
|
-
"object" == typeof chartDimensionLinkage && (deactivate ? (chartInstanceListColumnByColumnDirection[col][i].setHovered(), chartInstanceListColumnByColumnDirection[col][i].hideTooltip()) : (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeRow(i, table), isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeColumn(col, table), chartInstanceListColumnByColumnDirection[col][i].setHovered(datum), isShowTooltip && chartInstanceListColumnByColumnDirection[col][i].showTooltip(datum, {
|
|
47877
|
+
"object" == typeof chartDimensionLinkage && (deactivate ? (scenegraph.chartInstanceListColumnByColumnDirection[col][i].setHovered(), scenegraph.chartInstanceListColumnByColumnDirection[col][i].hideTooltip()) : (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeRow(i, table), isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeColumn(col, table), scenegraph.chartInstanceListColumnByColumnDirection[col][i].setHovered(datum), isShowTooltip && scenegraph.chartInstanceListColumnByColumnDirection[col][i].showTooltip(datum, {
|
|
47879
47878
|
activeType: "mark"
|
|
47880
47879
|
})));
|
|
47881
47880
|
}
|
|
47882
47881
|
}, 0);
|
|
47883
|
-
delayRunDimensionHoverTimerForViewRange.push(timer), table.scenegraph.updateNextFrame();
|
|
47882
|
+
scenegraph.delayRunDimensionHoverTimerForViewRange.push(timer), table.scenegraph.updateNextFrame();
|
|
47884
47883
|
}
|
|
47885
47884
|
}
|
|
47886
47885
|
}
|
|
@@ -47953,8 +47952,9 @@
|
|
|
47953
47952
|
}
|
|
47954
47953
|
function clearChartInstanceListByColumnDirection(col, excludedRow, table, forceRelease = !1) {
|
|
47955
47954
|
var _a;
|
|
47956
|
-
|
|
47957
|
-
|
|
47955
|
+
const scenegraph = table.scenegraph;
|
|
47956
|
+
if (isValid$2(scenegraph.chartInstanceListColumnByColumnDirection[col])) {
|
|
47957
|
+
for (const i in scenegraph.chartInstanceListColumnByColumnDirection[col]) {
|
|
47958
47958
|
if (isValid$2(excludedRow) && Number(i) === excludedRow) continue;
|
|
47959
47959
|
const cellGroup = table.scenegraph.getCell(col, Number(i)),
|
|
47960
47960
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
@@ -47963,14 +47963,15 @@
|
|
|
47963
47963
|
releaseChartInstance: !0,
|
|
47964
47964
|
releaseColumnChartInstance: !1,
|
|
47965
47965
|
releaseRowChartInstance: !1
|
|
47966
|
-
}), chartInstanceListColumnByColumnDirection[col][i] = null);
|
|
47966
|
+
}), scenegraph.chartInstanceListColumnByColumnDirection[col][i] = null);
|
|
47967
47967
|
}
|
|
47968
|
-
delete chartInstanceListColumnByColumnDirection[col];
|
|
47968
|
+
delete scenegraph.chartInstanceListColumnByColumnDirection[col];
|
|
47969
47969
|
}
|
|
47970
47970
|
}
|
|
47971
47971
|
function clearChartInstanceListByRowDirection(row, excludedCol, table, forceRelease = !1) {
|
|
47972
47972
|
var _a;
|
|
47973
|
-
|
|
47973
|
+
const scenegraph = table.scenegraph;
|
|
47974
|
+
if (isValid$2(scenegraph.chartInstanceListRowByRowDirection[row])) for (const i in scenegraph.chartInstanceListRowByRowDirection[row]) {
|
|
47974
47975
|
if (isValid$2(excludedCol) && Number(i) === excludedCol) continue;
|
|
47975
47976
|
const cellGroup = table.scenegraph.getCell(Number(i), row),
|
|
47976
47977
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
@@ -47979,43 +47980,43 @@
|
|
|
47979
47980
|
releaseChartInstance: !0,
|
|
47980
47981
|
releaseColumnChartInstance: !1,
|
|
47981
47982
|
releaseRowChartInstance: !1
|
|
47982
|
-
}), chartInstanceListRowByRowDirection[row][i] = null);
|
|
47983
|
+
}), scenegraph.chartInstanceListRowByRowDirection[row][i] = null);
|
|
47983
47984
|
}
|
|
47984
|
-
delete chartInstanceListRowByRowDirection[row];
|
|
47985
|
+
delete scenegraph.chartInstanceListRowByRowDirection[row];
|
|
47985
47986
|
}
|
|
47986
|
-
function clearDelayRunDimensionHoverTimerForColumnDirection() {
|
|
47987
|
-
for (const timer of delayRunDimensionHoverTimerForColumnDirection) clearTimeout(timer);
|
|
47988
|
-
delayRunDimensionHoverTimerForColumnDirection.length = 0;
|
|
47987
|
+
function clearDelayRunDimensionHoverTimerForColumnDirection(scenegraph) {
|
|
47988
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForColumnDirection) clearTimeout(timer);
|
|
47989
|
+
scenegraph.delayRunDimensionHoverTimerForColumnDirection.length = 0;
|
|
47989
47990
|
}
|
|
47990
|
-
function clearDelayRunDimensionHoverTimerForRowDirection() {
|
|
47991
|
-
for (const timer of delayRunDimensionHoverTimerForRowDirection) clearTimeout(timer);
|
|
47992
|
-
delayRunDimensionHoverTimerForRowDirection.length = 0;
|
|
47991
|
+
function clearDelayRunDimensionHoverTimerForRowDirection(scenegraph) {
|
|
47992
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForRowDirection) clearTimeout(timer);
|
|
47993
|
+
scenegraph.delayRunDimensionHoverTimerForRowDirection.length = 0;
|
|
47993
47994
|
}
|
|
47994
|
-
function clearDelayRunDimensionHoverTimerForViewRange() {
|
|
47995
|
-
for (const timer of delayRunDimensionHoverTimerForViewRange) clearTimeout(timer);
|
|
47996
|
-
delayRunDimensionHoverTimerForViewRange.length = 0;
|
|
47995
|
+
function clearDelayRunDimensionHoverTimerForViewRange(scenegraph) {
|
|
47996
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForViewRange) clearTimeout(timer);
|
|
47997
|
+
scenegraph.delayRunDimensionHoverTimerForViewRange.length = 0;
|
|
47997
47998
|
}
|
|
47998
|
-
function clearDelayRunDimensionHoverTimers() {
|
|
47999
|
-
for (const timer of delayRunDimensionHoverTimerForColumnDirection) clearTimeout(timer);
|
|
48000
|
-
delayRunDimensionHoverTimerForColumnDirection.length = 0;
|
|
48001
|
-
for (const timer of delayRunDimensionHoverTimerForRowDirection) clearTimeout(timer);
|
|
48002
|
-
delayRunDimensionHoverTimerForRowDirection.length = 0;
|
|
48003
|
-
for (const timer of delayRunDimensionHoverTimerForViewRange) clearTimeout(timer);
|
|
48004
|
-
delayRunDimensionHoverTimerForViewRange.length = 0;
|
|
47999
|
+
function clearDelayRunDimensionHoverTimers(scenegraph) {
|
|
48000
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForColumnDirection) clearTimeout(timer);
|
|
48001
|
+
scenegraph.delayRunDimensionHoverTimerForColumnDirection.length = 0;
|
|
48002
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForRowDirection) clearTimeout(timer);
|
|
48003
|
+
scenegraph.delayRunDimensionHoverTimerForRowDirection.length = 0;
|
|
48004
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForViewRange) clearTimeout(timer);
|
|
48005
|
+
scenegraph.delayRunDimensionHoverTimerForViewRange.length = 0;
|
|
48005
48006
|
}
|
|
48006
48007
|
function clearAllChartInstanceList(table, forceRelease = !1) {
|
|
48007
|
-
|
|
48008
|
-
|
|
48009
|
-
for (const
|
|
48008
|
+
const scenegraph = table.scenegraph;
|
|
48009
|
+
clearDelayRunDimensionHoverTimers(scenegraph);
|
|
48010
|
+
for (const col in scenegraph.chartInstanceListColumnByColumnDirection) clearChartInstanceListByColumnDirection(Number(col), void 0, table, forceRelease);
|
|
48011
|
+
for (const row in scenegraph.chartInstanceListRowByRowDirection) clearChartInstanceListByRowDirection(Number(row), void 0, table, forceRelease);
|
|
48010
48012
|
}
|
|
48011
|
-
|
|
48012
|
-
|
|
48013
|
-
return disabledTooltipToAllChartInstances;
|
|
48013
|
+
function isDisabledTooltipToAllChartInstances(scenegraph) {
|
|
48014
|
+
return scenegraph.disabledTooltipToAllChartInstances;
|
|
48014
48015
|
}
|
|
48015
|
-
function enableTooltipToAllChartInstances() {
|
|
48016
|
-
disabledTooltipToAllChartInstances = !1;
|
|
48017
|
-
for (const col in chartInstanceListColumnByColumnDirection) for (const row in chartInstanceListColumnByColumnDirection[col]) chartInstanceListColumnByColumnDirection[col][row].disableTooltip(!1);
|
|
48018
|
-
for (const row in chartInstanceListRowByRowDirection) for (const col in chartInstanceListRowByRowDirection[row]) chartInstanceListRowByRowDirection[row][col].disableTooltip(!1);
|
|
48016
|
+
function enableTooltipToAllChartInstances(scenegraph) {
|
|
48017
|
+
scenegraph.disabledTooltipToAllChartInstances = !1;
|
|
48018
|
+
for (const col in scenegraph.chartInstanceListColumnByColumnDirection) for (const row in scenegraph.chartInstanceListColumnByColumnDirection[col]) scenegraph.chartInstanceListColumnByColumnDirection[col][row].disableTooltip(!1);
|
|
48019
|
+
for (const row in scenegraph.chartInstanceListRowByRowDirection) for (const col in scenegraph.chartInstanceListRowByRowDirection[row]) scenegraph.chartInstanceListRowByRowDirection[row][col].disableTooltip(!1);
|
|
48019
48020
|
}
|
|
48020
48021
|
|
|
48021
48022
|
function isValidAlignDomain(domain) {
|
|
@@ -48738,13 +48739,13 @@
|
|
|
48738
48739
|
let brushChangeThrottle;
|
|
48739
48740
|
matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), chartStage.window.setViewBoxTransform && chartStage.window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), this.activeChartInstance.renderSync(), null === (_c = null === (_b = table.internalProps.layoutMap) || void 0 === _b ? void 0 : _b.updateDataStateToActiveChartInstance) || void 0 === _c || _c.call(_b, this.activeChartInstance), this.activeChartInstance.on("click", params => {
|
|
48740
48741
|
var _a, _b, _c, _d;
|
|
48741
|
-
!1 === (null === (_a = this.attribute.spec.select) || void 0 === _a ? void 0 : _a.enable) ? (null === (_b = this.attribute.spec.interactions) || void 0 === _b ? void 0 : _b.find(interaction => "element-select" === interaction.type && interaction.isMultiple)) ? table.scenegraph.updateChartState(null == params ? void 0 : params.datum, "multiple-select") : table.scenegraph.updateChartState(null, void 0) : !0 === (null === (_c = this.attribute.spec.select) || void 0 === _c ? void 0 : _c.enable) && "multiple" === (null === (_d = this.attribute.spec.select) || void 0 === _d ? void 0 : _d.mode) ? table.scenegraph.updateChartState(null == params ? void 0 : params.datum, "multiple-select") :
|
|
48742
|
+
Chart.temp && (!1 === (null === (_a = this.attribute.spec.select) || void 0 === _a ? void 0 : _a.enable) ? (null === (_b = this.attribute.spec.interactions) || void 0 === _b ? void 0 : _b.find(interaction => "element-select" === interaction.type && interaction.isMultiple)) ? table.scenegraph.updateChartState(null == params ? void 0 : params.datum, "multiple-select") : table.scenegraph.updateChartState(null, void 0) : !0 === (null === (_c = this.attribute.spec.select) || void 0 === _c ? void 0 : _c.enable) && "multiple" === (null === (_d = this.attribute.spec.select) || void 0 === _d ? void 0 : _d.mode) ? table.scenegraph.updateChartState(null == params ? void 0 : params.datum, "multiple-select") : (table.scenegraph.updateChartState(null, "brush"), table.scenegraph.updateChartState(null == params ? void 0 : params.datum, "click")), clearBrushingChartInstance(table.scenegraph));
|
|
48742
48743
|
}), (null === (_d = table.options.chartDimensionLinkage) || void 0 === _d ? void 0 : _d.listenBrushChange) && (brushChangeThrottle = cancellableThrottle(table.scenegraph.updateChartState.bind(table.scenegraph), null !== (_f = null === (_e = table.options.chartDimensionLinkage) || void 0 === _e ? void 0 : _e.brushChangeDelay) && void 0 !== _f ? _f : 100), this.activeChartInstance.on("brushChange", params => {
|
|
48743
48744
|
var _a;
|
|
48744
48745
|
brushChangeThrottle.throttled(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData, "brush");
|
|
48745
48746
|
})), this.activeChartInstance.on("brushStart", params => {
|
|
48746
|
-
const brushingChartInstance = getBrushingChartInstance();
|
|
48747
|
-
brushingChartInstance !== this.activeChartInstance && (brushingChartInstance && clearAndReleaseBrushingChartInstance(table.scenegraph), setBrushingChartInstance(this.activeChartInstance, col, row));
|
|
48747
|
+
const brushingChartInstance = getBrushingChartInstance(table.scenegraph);
|
|
48748
|
+
brushingChartInstance !== this.activeChartInstance && (brushingChartInstance && clearAndReleaseBrushingChartInstance(table.scenegraph), setBrushingChartInstance(this.activeChartInstance, col, row, table.scenegraph));
|
|
48748
48749
|
}), this.activeChartInstance.on("brushEnd", params => {
|
|
48749
48750
|
var _a;
|
|
48750
48751
|
null == brushChangeThrottle || brushChangeThrottle.cancel(), table.scenegraph.updateChartState(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData, "brush"), Chart.temp = 0, setTimeout(() => {
|
|
@@ -48770,7 +48771,7 @@
|
|
|
48770
48771
|
generateChartInstanceListByViewRange(datum, table, !0);
|
|
48771
48772
|
})), this.activeChartInstance.on("dimensionHover", params => {
|
|
48772
48773
|
var _a, _b;
|
|
48773
|
-
if (isDisabledTooltipToAllChartInstances()) return;
|
|
48774
|
+
if (isDisabledTooltipToAllChartInstances(table.scenegraph)) return;
|
|
48774
48775
|
this.activeChartInstance.disableTooltip(!1);
|
|
48775
48776
|
const dimensionInfo = null == params ? void 0 : params.dimensionInfo[0],
|
|
48776
48777
|
canvasXY = null === (_a = null == params ? void 0 : params.event) || void 0 === _a ? void 0 : _a.canvas,
|
|
@@ -48792,7 +48793,7 @@
|
|
|
48792
48793
|
const dimensionValue = dimensionInfo.value,
|
|
48793
48794
|
indicatorsAsCol = table.options.indicatorsAsCol;
|
|
48794
48795
|
if (delayRunDimensionHover ? (this.clearDelayRunDimensionHoverTimer(), this.delayRunDimensionHoverTimer = setTimeout(() => {
|
|
48795
|
-
isDisabledTooltipToAllChartInstances() || (indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1));
|
|
48796
|
+
isDisabledTooltipToAllChartInstances(table.scenegraph) || (indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1));
|
|
48796
48797
|
}, 100)) : indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1), indicatorsAsCol) {
|
|
48797
48798
|
const series = dimensionInfo.data[0].series,
|
|
48798
48799
|
width = "histogram" === this.attribute.spec.type || "line" === series.type || "area" === series.type ? 0 : series.getYAxisHelper().getBandwidth(0);
|
|
@@ -48833,7 +48834,7 @@
|
|
|
48833
48834
|
}
|
|
48834
48835
|
}
|
|
48835
48836
|
}
|
|
48836
|
-
})), null === (_j = (_h = table)._bindChartEvent) || void 0 === _j || _j.call(_h, this.activeChartInstance), isDisabledTooltipToAllChartInstances() && this.activeChartInstance.disableTooltip(!0);
|
|
48837
|
+
})), null === (_j = (_h = table)._bindChartEvent) || void 0 === _j || _j.call(_h, this.activeChartInstance), isDisabledTooltipToAllChartInstances(table.scenegraph) && this.activeChartInstance.disableTooltip(!0);
|
|
48837
48838
|
}
|
|
48838
48839
|
clearDelayRunDimensionHoverTimer() {
|
|
48839
48840
|
clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0;
|
|
@@ -48845,25 +48846,25 @@
|
|
|
48845
48846
|
releaseRowChartInstance = !0,
|
|
48846
48847
|
releaseAllChartInstance = !1
|
|
48847
48848
|
} = {}) {
|
|
48848
|
-
var
|
|
48849
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
48849
48850
|
if (this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), this.clearDelayRunDimensionHoverTimer(), releaseChartInstance) {
|
|
48850
|
-
!this.activeChartInstance || !forceRelease && getBrushingChartInstance() && getBrushingChartInstance() === this.activeChartInstance || (null === (
|
|
48851
|
+
!this.activeChartInstance || !forceRelease && getBrushingChartInstance(table.scenegraph) && getBrushingChartInstance(table.scenegraph) === this.activeChartInstance || (null === (_b = this.activeChartInstance) || void 0 === _b || _b.updateViewBox({
|
|
48851
48852
|
x1: -1e3,
|
|
48852
48853
|
x2: -800,
|
|
48853
48854
|
y1: -1e3,
|
|
48854
48855
|
y2: -800
|
|
48855
|
-
}, !1, !1), null === (
|
|
48856
|
+
}, !1, !1), null === (_c = this.activeChartInstance) || void 0 === _c || _c.release(), this.activeChartInstance = null);
|
|
48856
48857
|
const {
|
|
48857
48858
|
col: col,
|
|
48858
48859
|
row: row
|
|
48859
48860
|
} = this.parent;
|
|
48860
|
-
table.internalProps.layoutMap.isAxisCell(table.rowHeaderLevelCount - 1, row) && (null === (
|
|
48861
|
+
table.internalProps.layoutMap.isAxisCell(table.rowHeaderLevelCount - 1, row) && (null === (_e = null === (_d = table.scenegraph.getCell(table.rowHeaderLevelCount - 1, row).firstChild) || void 0 === _d ? void 0 : _d.hideLabelHoverOnAxis) || void 0 === _e || _e.call(_d)), table.internalProps.layoutMap.isAxisCell(col, table.rowCount - table.bottomFrozenRowCount) && (null === (_g = null === (_f = table.scenegraph.getCell(col, table.rowCount - table.bottomFrozenRowCount).firstChild) || void 0 === _f ? void 0 : _f.hideLabelHoverOnAxis) || void 0 === _g || _g.call(_f));
|
|
48861
48862
|
} else {
|
|
48862
48863
|
const {
|
|
48863
48864
|
col: col,
|
|
48864
48865
|
row: row
|
|
48865
48866
|
} = this.parent;
|
|
48866
|
-
releaseColumnChartInstance && table.internalProps.layoutMap.isAxisCell(col, table.rowCount - table.bottomFrozenRowCount) && (null === (
|
|
48867
|
+
releaseColumnChartInstance && table.internalProps.layoutMap.isAxisCell(col, table.rowCount - table.bottomFrozenRowCount) && (null === (_j = null === (_h = table.scenegraph.getCell(col, table.rowCount - table.bottomFrozenRowCount).firstChild) || void 0 === _h ? void 0 : _h.hideLabelHoverOnAxis) || void 0 === _j || _j.call(_h)), releaseRowChartInstance && table.internalProps.layoutMap.isAxisCell(table.rowHeaderLevelCount - 1, row) && (null === (_l = null === (_k = table.scenegraph.getCell(table.rowHeaderLevelCount - 1, row).firstChild) || void 0 === _k ? void 0 : _k.hideLabelHoverOnAxis) || void 0 === _l || _l.call(_k));
|
|
48867
48868
|
}
|
|
48868
48869
|
releaseAllChartInstance ? clearAllChartInstanceList(table, forceRelease) : (releaseColumnChartInstance && clearChartInstanceListByColumnDirection(this.parent.col, "scatter" === this.attribute.spec.type ? this.parent.row : void 0, table, forceRelease), releaseRowChartInstance && clearChartInstanceListByRowDirection(this.parent.row, "scatter" === this.attribute.spec.type ? this.parent.col : void 0, table, forceRelease));
|
|
48869
48870
|
}
|
|
@@ -52660,7 +52661,7 @@
|
|
|
52660
52661
|
}
|
|
52661
52662
|
function clearChartCacheImage(scenegraph) {
|
|
52662
52663
|
var _a;
|
|
52663
|
-
const brushingCellPos = getBrushingChartInstanceCellPos();
|
|
52664
|
+
const brushingCellPos = getBrushingChartInstanceCellPos(scenegraph);
|
|
52664
52665
|
for (let c = scenegraph.proxy.colStart; c <= scenegraph.proxy.colEnd; c++) {
|
|
52665
52666
|
const columnGroup = scenegraph.getColGroup(c);
|
|
52666
52667
|
null === (_a = null == columnGroup ? void 0 : columnGroup.getChildren()) || void 0 === _a || _a.forEach(cellNode => {
|
|
@@ -53171,7 +53172,10 @@
|
|
|
53171
53172
|
class Scenegraph {
|
|
53172
53173
|
constructor(table) {
|
|
53173
53174
|
let width, height;
|
|
53174
|
-
this._needUpdateContainer = !1, this.table = table, this.hasFrozen = !1, this.clear = !0, this.mergeMap = new Map(),
|
|
53175
|
+
this._needUpdateContainer = !1, this.table = table, this.hasFrozen = !1, this.clear = !0, this.mergeMap = new Map(), this.brushingChartInstance = void 0, this.brushingChartInstanceCellPos = {
|
|
53176
|
+
col: -1,
|
|
53177
|
+
row: -1
|
|
53178
|
+
}, this.chartInstanceListColumnByColumnDirection = {}, this.chartInstanceListRowByRowDirection = {}, this.delayRunDimensionHoverTimerForColumnDirection = [], this.delayRunDimensionHoverTimerForRowDirection = [], this.delayRunDimensionHoverTimerForViewRange = [], this.disabledTooltipToAllChartInstances = !1, setPoptipTheme(this.table.theme.textPopTipStyle), "node" === Env$1.mode ? (vglobal.setEnv("node", table.options.modeParams), width = table.canvasWidth, height = table.canvasHeight) : table.options.canvas && table.options.viewBox ? (vglobal.setEnv("browser"), width = table.options.viewBox.x2 - table.options.viewBox.x1, height = table.options.viewBox.y2 - table.options.viewBox.y1) : (vglobal.setEnv("browser"), width = table.canvas.width, height = table.canvas.height), this.stage = createStage(Object.assign({
|
|
53175
53179
|
canvas: table.canvas,
|
|
53176
53180
|
width: width,
|
|
53177
53181
|
height: height,
|
|
@@ -53429,8 +53433,8 @@
|
|
|
53429
53433
|
deactivateChart(col, row, forceRelease = !1) {
|
|
53430
53434
|
var _a, _b, _c, _d, _e, _f;
|
|
53431
53435
|
if (forceRelease) {
|
|
53432
|
-
const brushingChartInstanceCellPos = getBrushingChartInstanceCellPos(),
|
|
53433
|
-
brushingChartInstance = getBrushingChartInstance();
|
|
53436
|
+
const brushingChartInstanceCellPos = getBrushingChartInstanceCellPos(this),
|
|
53437
|
+
brushingChartInstance = getBrushingChartInstance(this);
|
|
53434
53438
|
brushingChartInstanceCellPos && brushingChartInstance && (clearAndReleaseBrushingChartInstance(this), clearCellChartCacheImage(brushingChartInstanceCellPos.col, brushingChartInstanceCellPos.row, this));
|
|
53435
53439
|
}
|
|
53436
53440
|
if (-1 === col || -1 === row) return;
|
|
@@ -53499,7 +53503,7 @@
|
|
|
53499
53503
|
var _a, _b, _c;
|
|
53500
53504
|
if (this.table.isPivotChart()) {
|
|
53501
53505
|
if (null == datum || 0 === (null == datum ? void 0 : datum.length) || 0 === Object.keys(datum).length) {
|
|
53502
|
-
const brushingChartInstance = getBrushingChartInstance();
|
|
53506
|
+
const brushingChartInstance = getBrushingChartInstance(this);
|
|
53503
53507
|
brushingChartInstance && (null === (_a = brushingChartInstance.getChart()) || void 0 === _a || _a.getComponentsByKey("brush")[0].clearBrushStateAndMask()), null === (_c = null === (_b = this.table.options.chartDimensionLinkage) || void 0 === _b ? void 0 : _b.clearChartState) || void 0 === _c || _c.call(_b);
|
|
53504
53508
|
}
|
|
53505
53509
|
updateChartState(this, datum, selectedDataMode);
|
|
@@ -60312,7 +60316,7 @@
|
|
|
60312
60316
|
}
|
|
60313
60317
|
constructor(container, options = {}) {
|
|
60314
60318
|
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;
|
|
60315
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.12-alpha.
|
|
60319
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.12-alpha.3", 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");
|
|
60316
60320
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
60317
60321
|
options: options,
|
|
60318
60322
|
container: container
|
|
@@ -91407,7 +91411,7 @@
|
|
|
91407
91411
|
importStyle();
|
|
91408
91412
|
}
|
|
91409
91413
|
|
|
91410
|
-
const version = "1.22.12-alpha.
|
|
91414
|
+
const version = "1.22.12-alpha.3";
|
|
91411
91415
|
importStyles();
|
|
91412
91416
|
|
|
91413
91417
|
exports.TYPES = index;
|