@visactor/vtable-gantt 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/cjs/plugins/interface.js +2 -1
- package/cjs/state/gantt-table-sync.js +0 -1
- package/cjs/tools/pixel-ratio.js +2 -1
- package/cjs/zoom-scale/ZoomScaleManager.js +1 -2
- package/dist/vtable-gantt.js +104 -100
- package/dist/vtable-gantt.min.js +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/plugins/interface.js +2 -1
- package/es/state/gantt-table-sync.js +1 -2
- package/es/tools/pixel-ratio.js +2 -1
- package/es/zoom-scale/ZoomScaleManager.js +1 -2
- package/package.json +3 -3
package/cjs/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as tools from './tools';
|
|
|
6
6
|
import * as VRender from './vrender';
|
|
7
7
|
import * as VTable from './vtable';
|
|
8
8
|
import * as plugins from './plugins';
|
|
9
|
-
export declare const version = "1.22.12-alpha.
|
|
9
|
+
export declare const version = "1.22.12-alpha.3";
|
|
10
10
|
export { TYPES, GanttConstructorOptions, Gantt, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, tools, VRender, VTable, plugins };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAwBlC,sBAAK;AAVP,mCAAgC;AAY9B,sFAZO,aAAK,OAYP;AAXP,+CAAiC;AAuB/B,sBAAK;AAtBP,mDAAqC;AAuBnC,0BAAO;AAtBT,iDAAmC;AAuBjC,wBAAM;AAtBR,mDAAqC;AAuBnC,0BAAO;AAtBI,QAAA,OAAO,GAAG,iBAAiB,CAAC","file":"index.js","sourcesContent":["import type { GanttConstructorOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType\n} from '@visactor/vtable';\nimport { Gantt } from './Gantt';\nimport * as tools from './tools';\nimport * as VRender from './vrender';\nimport * as VTable from './vtable';\nimport * as plugins from './plugins';\nexport const version = \"1.22.12-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAwBlC,sBAAK;AAVP,mCAAgC;AAY9B,sFAZO,aAAK,OAYP;AAXP,+CAAiC;AAuB/B,sBAAK;AAtBP,mDAAqC;AAuBnC,0BAAO;AAtBT,iDAAmC;AAuBjC,wBAAM;AAtBR,mDAAqC;AAuBnC,0BAAO;AAtBI,QAAA,OAAO,GAAG,iBAAiB,CAAC","file":"index.js","sourcesContent":["import type { GanttConstructorOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType\n} from '@visactor/vtable';\nimport { Gantt } from './Gantt';\nimport * as tools from './tools';\nimport * as VRender from './vrender';\nimport * as VTable from './vtable';\nimport * as plugins from './plugins';\nexport const version = \"1.22.12-alpha.3\";\n/**\n * @namespace VTableGantt\n */\nexport {\n TYPES,\n GanttConstructorOptions,\n Gantt,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n tools,\n VRender,\n VTable,\n plugins\n};\n"]}
|
package/cjs/plugins/interface.js
CHANGED
|
@@ -89,7 +89,6 @@ function _syncTableSize(gantt) {
|
|
|
89
89
|
gantt._updateSize(), (0, gantt_helper_1.updateSplitLineAndResizeLine)(gantt), gantt.zoomScaleManager && gantt.zoomScaleManager.handleTableWidthChange());
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
//# sourceMappingURL=gantt-table-sync.js.map
|
|
93
92
|
exports.syncScrollStateToTable = syncScrollStateToTable, exports.syncScrollStateFromTable = syncScrollStateFromTable,
|
|
94
93
|
exports.syncEditCellFromTable = syncEditCellFromTable, exports.syncTreeChangeFromTable = syncTreeChangeFromTable,
|
|
95
94
|
exports.syncSortFromTable = syncSortFromTable, exports.syncDragOrderFromTable = syncDragOrderFromTable,
|
package/cjs/tools/pixel-ratio.js
CHANGED
|
@@ -12,4 +12,5 @@ function getPixelRatio() {
|
|
|
12
12
|
exports.defaultPixelRatio;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
exports.defaultPixelRatio = 1, exports.getPixelRatio = getPixelRatio, getPixelRatio();
|
|
15
|
+
exports.defaultPixelRatio = 1, exports.getPixelRatio = getPixelRatio, getPixelRatio();
|
|
16
|
+
//# sourceMappingURL=pixel-ratio.js.map
|
package/dist/vtable-gantt.js
CHANGED
|
@@ -9640,6 +9640,7 @@
|
|
|
9640
9640
|
var _a;
|
|
9641
9641
|
if (!states.length) return void this.clearStates(hasAnimation);
|
|
9642
9642
|
if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some((stateName, index) => this.currentStates[index] !== stateName))) return;
|
|
9643
|
+
this.stateSort && (states = states.sort(this.stateSort));
|
|
9643
9644
|
const stateAttrs = {};
|
|
9644
9645
|
states.forEach(stateName => {
|
|
9645
9646
|
var _a;
|
|
@@ -18643,7 +18644,7 @@
|
|
|
18643
18644
|
return !!this._inuse;
|
|
18644
18645
|
}
|
|
18645
18646
|
set inuse(use) {
|
|
18646
|
-
use !== !!this._inuse && (this._inuse = use, use ? (this.nativeContext.save(), this.reset()) : this.nativeContext.restore());
|
|
18647
|
+
use !== !!this._inuse && (this._inuse = use, use ? (this.nativeContext.save(), this.reset()) : (this.nativeContext.restore(), this._font = ""));
|
|
18647
18648
|
}
|
|
18648
18649
|
constructor(canvas, dpr) {
|
|
18649
18650
|
this.fillAttributes = Object.assign(Object.assign({}, DefaultFillStyle), {
|
|
@@ -24482,8 +24483,8 @@
|
|
|
24482
24483
|
}
|
|
24483
24484
|
parseParams(params, isTimeline, child) {
|
|
24484
24485
|
var _a, _b;
|
|
24485
|
-
const totalTime = this.resolveValue(params.totalTime,
|
|
24486
|
-
startTime = this.resolveValue(params.startTime,
|
|
24486
|
+
const totalTime = this.resolveValue(params.totalTime, child, void 0),
|
|
24487
|
+
startTime = this.resolveValue(params.startTime, child, 0),
|
|
24487
24488
|
parsedParams = Object.assign({}, params);
|
|
24488
24489
|
parsedParams.oneByOneDelay = 0, parsedParams.startTime = startTime, parsedParams.totalTime = totalTime;
|
|
24489
24490
|
const oneByOne = this.resolveValue(params.oneByOne, child, !1);
|
|
@@ -24532,11 +24533,10 @@
|
|
|
24532
24533
|
let oneByOneDelay = 0;
|
|
24533
24534
|
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"];
|
|
24534
24535
|
const customType = getCustomType(parsedParams.custom);
|
|
24535
|
-
|
|
24536
|
-
|
|
24537
|
-
|
|
24538
|
-
|
|
24539
|
-
}
|
|
24536
|
+
parsedParams.customType = customType;
|
|
24537
|
+
const _totalTime = delay + delayAfter + duration + oneByOneDelay * (this._target.count - 2),
|
|
24538
|
+
scale = isValidNumber$1(totalTime) ? totalTime / _totalTime : 1;
|
|
24539
|
+
parsedParams.delay = delay * scale, parsedParams.delayAfter = delayAfter * scale, parsedParams.duration = duration * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime;
|
|
24540
24540
|
}
|
|
24541
24541
|
return parsedParams;
|
|
24542
24542
|
}
|
|
@@ -24977,7 +24977,7 @@
|
|
|
24977
24977
|
}
|
|
24978
24978
|
class AStageAnimate extends ACustomAnimate {
|
|
24979
24979
|
constructor(customFrom, customTo, duration, easing, params) {
|
|
24980
|
-
super(customFrom, customTo, duration, easing, params), this.willCallBeforeStageRender = !0, this.willCallAfterStageRender = !0, this._beforeStageRender = () => {
|
|
24980
|
+
super(customFrom, customTo, duration, easing, params), this.willCallBeforeStageRender = !0, this.willCallAfterStageRender = !0, this.checkStatusAfterRender = !0, this._beforeStageRender = () => {
|
|
24981
24981
|
if (!this.willCallBeforeStageRender) return;
|
|
24982
24982
|
this.willCallBeforeStageRender = !1;
|
|
24983
24983
|
const stage = this.target.stage,
|
|
@@ -24990,7 +24990,7 @@
|
|
|
24990
24990
|
const stage = this.target.stage,
|
|
24991
24991
|
canvas = stage.window.getContext().canvas.nativeCanvas,
|
|
24992
24992
|
outputCanvas = this.afterStageRender(stage, canvas);
|
|
24993
|
-
outputCanvas && this.renderToStage(stage, outputCanvas);
|
|
24993
|
+
outputCanvas && this.renderToStage(stage, outputCanvas), this.checkStatusAfterRender && this.animate.status === AnimateStatus.END && this.animate.timeline.removeAnimate(this.animate);
|
|
24994
24994
|
}, this.props = {};
|
|
24995
24995
|
}
|
|
24996
24996
|
beforeStageRender(stage, canvas) {
|
|
@@ -47612,46 +47612,43 @@
|
|
|
47612
47612
|
return hoverMode;
|
|
47613
47613
|
}
|
|
47614
47614
|
|
|
47615
|
-
|
|
47616
|
-
brushingChartInstanceCellPos = {
|
|
47617
|
-
col: -1,
|
|
47618
|
-
row: -1
|
|
47619
|
-
};
|
|
47620
|
-
function setBrushingChartInstance(chartInstance, col, row) {
|
|
47621
|
-
brushingChartInstance = chartInstance, brushingChartInstanceCellPos = {
|
|
47615
|
+
function setBrushingChartInstance(chartInstance, col, row, scenegraph) {
|
|
47616
|
+
scenegraph.brushingChartInstance = chartInstance, scenegraph.brushingChartInstanceCellPos = {
|
|
47622
47617
|
col: col,
|
|
47623
47618
|
row: row
|
|
47624
47619
|
};
|
|
47625
47620
|
}
|
|
47621
|
+
function clearBrushingChartInstance(scenegraph) {
|
|
47622
|
+
scenegraph.brushingChartInstance = void 0, scenegraph.brushingChartInstanceCellPos = {
|
|
47623
|
+
col: -1,
|
|
47624
|
+
row: -1
|
|
47625
|
+
};
|
|
47626
|
+
}
|
|
47626
47627
|
function clearAndReleaseBrushingChartInstance(scenegraph) {
|
|
47627
47628
|
var _a, _b, _c;
|
|
47628
|
-
enableTooltipToAllChartInstances();
|
|
47629
|
-
const cellGroup = scenegraph.getCell(brushingChartInstanceCellPos.col, brushingChartInstanceCellPos.row);
|
|
47629
|
+
enableTooltipToAllChartInstances(scenegraph);
|
|
47630
|
+
const cellGroup = scenegraph.getCell(scenegraph.brushingChartInstanceCellPos.col, scenegraph.brushingChartInstanceCellPos.row);
|
|
47630
47631
|
(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, {
|
|
47631
47632
|
forceRelease: !0,
|
|
47632
47633
|
releaseChartInstance: !0,
|
|
47633
47634
|
releaseColumnChartInstance: !1,
|
|
47634
47635
|
releaseRowChartInstance: !1,
|
|
47635
47636
|
releaseAllChartInstance: !1
|
|
47636
|
-
})), isValid$1(chartInstanceListColumnByColumnDirection[brushingChartInstanceCellPos.col]) && delete chartInstanceListColumnByColumnDirection[brushingChartInstanceCellPos.col][brushingChartInstanceCellPos.row], isValid$1(chartInstanceListRowByRowDirection[brushingChartInstanceCellPos.row]) && delete chartInstanceListRowByRowDirection[brushingChartInstanceCellPos.row][brushingChartInstanceCellPos.col], brushingChartInstance = void 0, brushingChartInstanceCellPos = {
|
|
47637
|
+
})), isValid$1(scenegraph.chartInstanceListColumnByColumnDirection[scenegraph.brushingChartInstanceCellPos.col]) && delete scenegraph.chartInstanceListColumnByColumnDirection[scenegraph.brushingChartInstanceCellPos.col][scenegraph.brushingChartInstanceCellPos.row], isValid$1(scenegraph.chartInstanceListRowByRowDirection[scenegraph.brushingChartInstanceCellPos.row]) && delete scenegraph.chartInstanceListRowByRowDirection[scenegraph.brushingChartInstanceCellPos.row][scenegraph.brushingChartInstanceCellPos.col], scenegraph.brushingChartInstance = void 0, scenegraph.brushingChartInstanceCellPos = {
|
|
47637
47638
|
col: -1,
|
|
47638
47639
|
row: -1
|
|
47639
47640
|
};
|
|
47640
47641
|
}
|
|
47641
|
-
function getBrushingChartInstance() {
|
|
47642
|
-
return brushingChartInstance;
|
|
47642
|
+
function getBrushingChartInstance(scenegraph) {
|
|
47643
|
+
return scenegraph.brushingChartInstance;
|
|
47643
47644
|
}
|
|
47644
|
-
function getBrushingChartInstanceCellPos() {
|
|
47645
|
-
return brushingChartInstanceCellPos;
|
|
47645
|
+
function getBrushingChartInstanceCellPos(scenegraph) {
|
|
47646
|
+
return scenegraph.brushingChartInstanceCellPos;
|
|
47646
47647
|
}
|
|
47647
|
-
const chartInstanceListColumnByColumnDirection = {};
|
|
47648
|
-
const chartInstanceListRowByRowDirection = {};
|
|
47649
|
-
const delayRunDimensionHoverTimerForColumnDirection = [],
|
|
47650
|
-
delayRunDimensionHoverTimerForRowDirection = [],
|
|
47651
|
-
delayRunDimensionHoverTimerForViewRange = [];
|
|
47652
47648
|
function generateChartInstanceListByColumnDirection(col, dimensionValueOrXValue, positionValueOrYValue, canvasXY, table, hideTooltip = !1, isScatter = !1) {
|
|
47653
47649
|
var _a;
|
|
47654
|
-
|
|
47650
|
+
const scenegraph = table.scenegraph;
|
|
47651
|
+
clearDelayRunDimensionHoverTimerForColumnDirection(scenegraph), isValid$1(scenegraph.chartInstanceListColumnByColumnDirection[col]) || (scenegraph.chartInstanceListColumnByColumnDirection[col] = {});
|
|
47655
47652
|
const {
|
|
47656
47653
|
rowStart: rowStart
|
|
47657
47654
|
} = table.getBodyVisibleRowRange();
|
|
@@ -47660,24 +47657,24 @@
|
|
|
47660
47657
|
for (let i = rowStart; i <= rowEnd; i++) {
|
|
47661
47658
|
const cellGroup = table.scenegraph.getCell(col, i),
|
|
47662
47659
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
47663
|
-
chartInstanceListColumnByColumnDirection[col][i] || isValid$1(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance);
|
|
47660
|
+
scenegraph.chartInstanceListColumnByColumnDirection[col][i] || isValid$1(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), scenegraph.chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance);
|
|
47664
47661
|
const timer = setTimeout(() => {
|
|
47665
47662
|
var _a, _b, _c, _d;
|
|
47666
|
-
if (null === (_a = chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47663
|
+
if (null === (_a = scenegraph.chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47667
47664
|
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
47668
47665
|
let isShowTooltip = !isScatter;
|
|
47669
|
-
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 {
|
|
47666
|
+
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 {
|
|
47670
47667
|
const cellBoundry = table.getCellRelativeRect(col, i),
|
|
47671
47668
|
bodyBoundryTop = table.frozenRowCount ? table.getCellRelativeRect(col, table.frozenRowCount - 1).bottom : 0,
|
|
47672
47669
|
absolutePositionTop = Math.max(bodyBoundryTop, table.getCellRelativeRect(col, i).top);
|
|
47673
|
-
hideTooltip ? (table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || chartInstanceListColumnByColumnDirection[col][i].hideTooltip(), chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47670
|
+
hideTooltip ? (table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || scenegraph.chartInstanceListColumnByColumnDirection[col][i].hideTooltip(), scenegraph.chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47674
47671
|
tooltip: !1,
|
|
47675
47672
|
showTooltipOption: {
|
|
47676
47673
|
x: canvasXY.x - cellBoundry.left,
|
|
47677
47674
|
y: absolutePositionTop - cellBoundry.top,
|
|
47678
47675
|
activeType: "dimension"
|
|
47679
47676
|
}
|
|
47680
|
-
})) : chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47677
|
+
})) : scenegraph.chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47681
47678
|
tooltip: isShowTooltip,
|
|
47682
47679
|
showTooltipOption: {
|
|
47683
47680
|
x: canvasXY.x - cellBoundry.left,
|
|
@@ -47688,12 +47685,13 @@
|
|
|
47688
47685
|
}
|
|
47689
47686
|
}
|
|
47690
47687
|
}, 0);
|
|
47691
|
-
delayRunDimensionHoverTimerForColumnDirection.push(timer), table.scenegraph.updateNextFrame();
|
|
47688
|
+
scenegraph.delayRunDimensionHoverTimerForColumnDirection.push(timer), table.scenegraph.updateNextFrame();
|
|
47692
47689
|
}
|
|
47693
47690
|
}
|
|
47694
47691
|
function generateChartInstanceListByRowDirection(row, dimensionValueOrXValue, positionValueOrYValue, canvasXY, table, hideTooltip = !1, isScatter = !1) {
|
|
47695
47692
|
var _a;
|
|
47696
|
-
|
|
47693
|
+
const scenegraph = table.scenegraph;
|
|
47694
|
+
clearDelayRunDimensionHoverTimerForRowDirection(scenegraph), isValid$1(scenegraph.chartInstanceListRowByRowDirection[row]) || (scenegraph.chartInstanceListRowByRowDirection[row] = {});
|
|
47697
47695
|
const {
|
|
47698
47696
|
colStart: colStart
|
|
47699
47697
|
} = table.getBodyVisibleColRange();
|
|
@@ -47702,24 +47700,24 @@
|
|
|
47702
47700
|
for (let i = colStart; i <= colEnd; i++) {
|
|
47703
47701
|
const cellGroup = table.scenegraph.getCell(i, row),
|
|
47704
47702
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
47705
|
-
chartInstanceListRowByRowDirection[row][i] || isValid$1(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance);
|
|
47703
|
+
scenegraph.chartInstanceListRowByRowDirection[row][i] || isValid$1(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), scenegraph.chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance);
|
|
47706
47704
|
const timer = setTimeout(() => {
|
|
47707
47705
|
var _a, _b, _c, _d;
|
|
47708
|
-
if (null === (_a = chartInstanceListRowByRowDirection[row]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47706
|
+
if (null === (_a = scenegraph.chartInstanceListRowByRowDirection[row]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47709
47707
|
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
47710
47708
|
let isShowTooltip = !isScatter;
|
|
47711
|
-
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 {
|
|
47709
|
+
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 {
|
|
47712
47710
|
const cellBoundry = table.getCellRelativeRect(i, row),
|
|
47713
47711
|
bodyBoundryLeft = table.frozenColCount ? table.getCellRelativeRect(table.frozenColCount - 1, row).right : 0,
|
|
47714
47712
|
absolutePositionLeft = Math.max(bodyBoundryLeft, table.getCellRelativeRect(i, row).left);
|
|
47715
|
-
hideTooltip ? (table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || chartInstanceListRowByRowDirection[row][i].hideTooltip(), chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47713
|
+
hideTooltip ? (table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || scenegraph.chartInstanceListRowByRowDirection[row][i].hideTooltip(), scenegraph.chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47716
47714
|
tooltip: !1,
|
|
47717
47715
|
showTooltipOption: {
|
|
47718
47716
|
x: absolutePositionLeft - cellBoundry.left,
|
|
47719
47717
|
y: canvasXY.y - cellBoundry.top,
|
|
47720
47718
|
activeType: "dimension"
|
|
47721
47719
|
}
|
|
47722
|
-
})) : chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47720
|
+
})) : scenegraph.chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
47723
47721
|
tooltip: isShowTooltip,
|
|
47724
47722
|
showTooltipOption: {
|
|
47725
47723
|
x: absolutePositionLeft - cellBoundry.left,
|
|
@@ -47730,12 +47728,13 @@
|
|
|
47730
47728
|
}
|
|
47731
47729
|
}
|
|
47732
47730
|
}, 0);
|
|
47733
|
-
delayRunDimensionHoverTimerForRowDirection.push(timer), table.scenegraph.updateNextFrame();
|
|
47731
|
+
scenegraph.delayRunDimensionHoverTimerForRowDirection.push(timer), table.scenegraph.updateNextFrame();
|
|
47734
47732
|
}
|
|
47735
47733
|
}
|
|
47736
47734
|
function generateChartInstanceListByViewRange(datum, table, deactivate = !1) {
|
|
47737
47735
|
var _a;
|
|
47738
|
-
|
|
47736
|
+
const scenegraph = table.scenegraph;
|
|
47737
|
+
clearDelayRunDimensionHoverTimerForViewRange(scenegraph);
|
|
47739
47738
|
const {
|
|
47740
47739
|
rowStart: rowStart
|
|
47741
47740
|
} = table.getBodyVisibleRowRange();
|
|
@@ -47747,22 +47746,22 @@
|
|
|
47747
47746
|
let colEnd = table.getBodyVisibleColRange().colEnd;
|
|
47748
47747
|
colEnd = Math.min(table.colCount - 1 - table.rightFrozenColCount, colEnd);
|
|
47749
47748
|
for (let col = colStart; col <= colEnd; col++) {
|
|
47750
|
-
isValid$1(chartInstanceListColumnByColumnDirection[col]) || (chartInstanceListColumnByColumnDirection[col] = {});
|
|
47749
|
+
isValid$1(scenegraph.chartInstanceListColumnByColumnDirection[col]) || (scenegraph.chartInstanceListColumnByColumnDirection[col] = {});
|
|
47751
47750
|
for (let i = rowStart; i <= rowEnd; i++) {
|
|
47752
47751
|
const cellGroup = table.scenegraph.getCell(col, i),
|
|
47753
47752
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
47754
|
-
chartInstanceListColumnByColumnDirection[col][i] || isValid$1(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance ? chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance : "pie" === chartNode.attribute.spec.type && (chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance));
|
|
47753
|
+
scenegraph.chartInstanceListColumnByColumnDirection[col][i] || isValid$1(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));
|
|
47755
47754
|
const timer = setTimeout(() => {
|
|
47756
47755
|
var _a, _b;
|
|
47757
|
-
if (null === (_a = chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47756
|
+
if (null === (_a = scenegraph.chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
|
|
47758
47757
|
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
47759
47758
|
let isShowTooltip = !0;
|
|
47760
|
-
"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, {
|
|
47759
|
+
"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, {
|
|
47761
47760
|
activeType: "mark"
|
|
47762
47761
|
})));
|
|
47763
47762
|
}
|
|
47764
47763
|
}, 0);
|
|
47765
|
-
delayRunDimensionHoverTimerForViewRange.push(timer), table.scenegraph.updateNextFrame();
|
|
47764
|
+
scenegraph.delayRunDimensionHoverTimerForViewRange.push(timer), table.scenegraph.updateNextFrame();
|
|
47766
47765
|
}
|
|
47767
47766
|
}
|
|
47768
47767
|
}
|
|
@@ -47835,8 +47834,9 @@
|
|
|
47835
47834
|
}
|
|
47836
47835
|
function clearChartInstanceListByColumnDirection(col, excludedRow, table, forceRelease = !1) {
|
|
47837
47836
|
var _a;
|
|
47838
|
-
|
|
47839
|
-
|
|
47837
|
+
const scenegraph = table.scenegraph;
|
|
47838
|
+
if (isValid$1(scenegraph.chartInstanceListColumnByColumnDirection[col])) {
|
|
47839
|
+
for (const i in scenegraph.chartInstanceListColumnByColumnDirection[col]) {
|
|
47840
47840
|
if (isValid$1(excludedRow) && Number(i) === excludedRow) continue;
|
|
47841
47841
|
const cellGroup = table.scenegraph.getCell(col, Number(i)),
|
|
47842
47842
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
@@ -47845,14 +47845,15 @@
|
|
|
47845
47845
|
releaseChartInstance: !0,
|
|
47846
47846
|
releaseColumnChartInstance: !1,
|
|
47847
47847
|
releaseRowChartInstance: !1
|
|
47848
|
-
}), chartInstanceListColumnByColumnDirection[col][i] = null);
|
|
47848
|
+
}), scenegraph.chartInstanceListColumnByColumnDirection[col][i] = null);
|
|
47849
47849
|
}
|
|
47850
|
-
delete chartInstanceListColumnByColumnDirection[col];
|
|
47850
|
+
delete scenegraph.chartInstanceListColumnByColumnDirection[col];
|
|
47851
47851
|
}
|
|
47852
47852
|
}
|
|
47853
47853
|
function clearChartInstanceListByRowDirection(row, excludedCol, table, forceRelease = !1) {
|
|
47854
47854
|
var _a;
|
|
47855
|
-
|
|
47855
|
+
const scenegraph = table.scenegraph;
|
|
47856
|
+
if (isValid$1(scenegraph.chartInstanceListRowByRowDirection[row])) for (const i in scenegraph.chartInstanceListRowByRowDirection[row]) {
|
|
47856
47857
|
if (isValid$1(excludedCol) && Number(i) === excludedCol) continue;
|
|
47857
47858
|
const cellGroup = table.scenegraph.getCell(Number(i), row),
|
|
47858
47859
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
@@ -47861,43 +47862,43 @@
|
|
|
47861
47862
|
releaseChartInstance: !0,
|
|
47862
47863
|
releaseColumnChartInstance: !1,
|
|
47863
47864
|
releaseRowChartInstance: !1
|
|
47864
|
-
}), chartInstanceListRowByRowDirection[row][i] = null);
|
|
47865
|
+
}), scenegraph.chartInstanceListRowByRowDirection[row][i] = null);
|
|
47865
47866
|
}
|
|
47866
|
-
delete chartInstanceListRowByRowDirection[row];
|
|
47867
|
+
delete scenegraph.chartInstanceListRowByRowDirection[row];
|
|
47867
47868
|
}
|
|
47868
|
-
function clearDelayRunDimensionHoverTimerForColumnDirection() {
|
|
47869
|
-
for (const timer of delayRunDimensionHoverTimerForColumnDirection) clearTimeout(timer);
|
|
47870
|
-
delayRunDimensionHoverTimerForColumnDirection.length = 0;
|
|
47869
|
+
function clearDelayRunDimensionHoverTimerForColumnDirection(scenegraph) {
|
|
47870
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForColumnDirection) clearTimeout(timer);
|
|
47871
|
+
scenegraph.delayRunDimensionHoverTimerForColumnDirection.length = 0;
|
|
47871
47872
|
}
|
|
47872
|
-
function clearDelayRunDimensionHoverTimerForRowDirection() {
|
|
47873
|
-
for (const timer of delayRunDimensionHoverTimerForRowDirection) clearTimeout(timer);
|
|
47874
|
-
delayRunDimensionHoverTimerForRowDirection.length = 0;
|
|
47873
|
+
function clearDelayRunDimensionHoverTimerForRowDirection(scenegraph) {
|
|
47874
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForRowDirection) clearTimeout(timer);
|
|
47875
|
+
scenegraph.delayRunDimensionHoverTimerForRowDirection.length = 0;
|
|
47875
47876
|
}
|
|
47876
|
-
function clearDelayRunDimensionHoverTimerForViewRange() {
|
|
47877
|
-
for (const timer of delayRunDimensionHoverTimerForViewRange) clearTimeout(timer);
|
|
47878
|
-
delayRunDimensionHoverTimerForViewRange.length = 0;
|
|
47877
|
+
function clearDelayRunDimensionHoverTimerForViewRange(scenegraph) {
|
|
47878
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForViewRange) clearTimeout(timer);
|
|
47879
|
+
scenegraph.delayRunDimensionHoverTimerForViewRange.length = 0;
|
|
47879
47880
|
}
|
|
47880
|
-
function clearDelayRunDimensionHoverTimers() {
|
|
47881
|
-
for (const timer of delayRunDimensionHoverTimerForColumnDirection) clearTimeout(timer);
|
|
47882
|
-
delayRunDimensionHoverTimerForColumnDirection.length = 0;
|
|
47883
|
-
for (const timer of delayRunDimensionHoverTimerForRowDirection) clearTimeout(timer);
|
|
47884
|
-
delayRunDimensionHoverTimerForRowDirection.length = 0;
|
|
47885
|
-
for (const timer of delayRunDimensionHoverTimerForViewRange) clearTimeout(timer);
|
|
47886
|
-
delayRunDimensionHoverTimerForViewRange.length = 0;
|
|
47881
|
+
function clearDelayRunDimensionHoverTimers(scenegraph) {
|
|
47882
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForColumnDirection) clearTimeout(timer);
|
|
47883
|
+
scenegraph.delayRunDimensionHoverTimerForColumnDirection.length = 0;
|
|
47884
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForRowDirection) clearTimeout(timer);
|
|
47885
|
+
scenegraph.delayRunDimensionHoverTimerForRowDirection.length = 0;
|
|
47886
|
+
for (const timer of scenegraph.delayRunDimensionHoverTimerForViewRange) clearTimeout(timer);
|
|
47887
|
+
scenegraph.delayRunDimensionHoverTimerForViewRange.length = 0;
|
|
47887
47888
|
}
|
|
47888
47889
|
function clearAllChartInstanceList(table, forceRelease = !1) {
|
|
47889
|
-
|
|
47890
|
-
|
|
47891
|
-
for (const
|
|
47890
|
+
const scenegraph = table.scenegraph;
|
|
47891
|
+
clearDelayRunDimensionHoverTimers(scenegraph);
|
|
47892
|
+
for (const col in scenegraph.chartInstanceListColumnByColumnDirection) clearChartInstanceListByColumnDirection(Number(col), void 0, table, forceRelease);
|
|
47893
|
+
for (const row in scenegraph.chartInstanceListRowByRowDirection) clearChartInstanceListByRowDirection(Number(row), void 0, table, forceRelease);
|
|
47892
47894
|
}
|
|
47893
|
-
|
|
47894
|
-
|
|
47895
|
-
return disabledTooltipToAllChartInstances;
|
|
47895
|
+
function isDisabledTooltipToAllChartInstances(scenegraph) {
|
|
47896
|
+
return scenegraph.disabledTooltipToAllChartInstances;
|
|
47896
47897
|
}
|
|
47897
|
-
function enableTooltipToAllChartInstances() {
|
|
47898
|
-
disabledTooltipToAllChartInstances = !1;
|
|
47899
|
-
for (const col in chartInstanceListColumnByColumnDirection) for (const row in chartInstanceListColumnByColumnDirection[col]) chartInstanceListColumnByColumnDirection[col][row].disableTooltip(!1);
|
|
47900
|
-
for (const row in chartInstanceListRowByRowDirection) for (const col in chartInstanceListRowByRowDirection[row]) chartInstanceListRowByRowDirection[row][col].disableTooltip(!1);
|
|
47898
|
+
function enableTooltipToAllChartInstances(scenegraph) {
|
|
47899
|
+
scenegraph.disabledTooltipToAllChartInstances = !1;
|
|
47900
|
+
for (const col in scenegraph.chartInstanceListColumnByColumnDirection) for (const row in scenegraph.chartInstanceListColumnByColumnDirection[col]) scenegraph.chartInstanceListColumnByColumnDirection[col][row].disableTooltip(!1);
|
|
47901
|
+
for (const row in scenegraph.chartInstanceListRowByRowDirection) for (const col in scenegraph.chartInstanceListRowByRowDirection[row]) scenegraph.chartInstanceListRowByRowDirection[row][col].disableTooltip(!1);
|
|
47901
47902
|
}
|
|
47902
47903
|
|
|
47903
47904
|
function isValidAlignDomain(domain) {
|
|
@@ -48620,13 +48621,13 @@
|
|
|
48620
48621
|
let brushChangeThrottle;
|
|
48621
48622
|
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 => {
|
|
48622
48623
|
var _a, _b, _c, _d;
|
|
48623
|
-
!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") :
|
|
48624
|
+
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));
|
|
48624
48625
|
}), (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 => {
|
|
48625
48626
|
var _a;
|
|
48626
48627
|
brushChangeThrottle.throttled(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData, "brush");
|
|
48627
48628
|
})), this.activeChartInstance.on("brushStart", params => {
|
|
48628
|
-
const brushingChartInstance = getBrushingChartInstance();
|
|
48629
|
-
brushingChartInstance !== this.activeChartInstance && (brushingChartInstance && clearAndReleaseBrushingChartInstance(table.scenegraph), setBrushingChartInstance(this.activeChartInstance, col, row));
|
|
48629
|
+
const brushingChartInstance = getBrushingChartInstance(table.scenegraph);
|
|
48630
|
+
brushingChartInstance !== this.activeChartInstance && (brushingChartInstance && clearAndReleaseBrushingChartInstance(table.scenegraph), setBrushingChartInstance(this.activeChartInstance, col, row, table.scenegraph));
|
|
48630
48631
|
}), this.activeChartInstance.on("brushEnd", params => {
|
|
48631
48632
|
var _a;
|
|
48632
48633
|
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(() => {
|
|
@@ -48652,7 +48653,7 @@
|
|
|
48652
48653
|
generateChartInstanceListByViewRange(datum, table, !0);
|
|
48653
48654
|
})), this.activeChartInstance.on("dimensionHover", params => {
|
|
48654
48655
|
var _a, _b;
|
|
48655
|
-
if (isDisabledTooltipToAllChartInstances()) return;
|
|
48656
|
+
if (isDisabledTooltipToAllChartInstances(table.scenegraph)) return;
|
|
48656
48657
|
this.activeChartInstance.disableTooltip(!1);
|
|
48657
48658
|
const dimensionInfo = null == params ? void 0 : params.dimensionInfo[0],
|
|
48658
48659
|
canvasXY = null === (_a = null == params ? void 0 : params.event) || void 0 === _a ? void 0 : _a.canvas,
|
|
@@ -48674,7 +48675,7 @@
|
|
|
48674
48675
|
const dimensionValue = dimensionInfo.value,
|
|
48675
48676
|
indicatorsAsCol = table.options.indicatorsAsCol;
|
|
48676
48677
|
if (delayRunDimensionHover ? (this.clearDelayRunDimensionHoverTimer(), this.delayRunDimensionHoverTimer = setTimeout(() => {
|
|
48677
|
-
isDisabledTooltipToAllChartInstances() || (indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1));
|
|
48678
|
+
isDisabledTooltipToAllChartInstances(table.scenegraph) || (indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1));
|
|
48678
48679
|
}, 100)) : indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1), indicatorsAsCol) {
|
|
48679
48680
|
const series = dimensionInfo.data[0].series,
|
|
48680
48681
|
width = "histogram" === this.attribute.spec.type || "line" === series.type || "area" === series.type ? 0 : series.getYAxisHelper().getBandwidth(0);
|
|
@@ -48715,7 +48716,7 @@
|
|
|
48715
48716
|
}
|
|
48716
48717
|
}
|
|
48717
48718
|
}
|
|
48718
|
-
})), null === (_j = (_h = table)._bindChartEvent) || void 0 === _j || _j.call(_h, this.activeChartInstance), isDisabledTooltipToAllChartInstances() && this.activeChartInstance.disableTooltip(!0);
|
|
48719
|
+
})), null === (_j = (_h = table)._bindChartEvent) || void 0 === _j || _j.call(_h, this.activeChartInstance), isDisabledTooltipToAllChartInstances(table.scenegraph) && this.activeChartInstance.disableTooltip(!0);
|
|
48719
48720
|
}
|
|
48720
48721
|
clearDelayRunDimensionHoverTimer() {
|
|
48721
48722
|
clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0;
|
|
@@ -48727,25 +48728,25 @@
|
|
|
48727
48728
|
releaseRowChartInstance = !0,
|
|
48728
48729
|
releaseAllChartInstance = !1
|
|
48729
48730
|
} = {}) {
|
|
48730
|
-
var
|
|
48731
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
48731
48732
|
if (this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), this.clearDelayRunDimensionHoverTimer(), releaseChartInstance) {
|
|
48732
|
-
!this.activeChartInstance || !forceRelease && getBrushingChartInstance() && getBrushingChartInstance() === this.activeChartInstance || (null === (
|
|
48733
|
+
!this.activeChartInstance || !forceRelease && getBrushingChartInstance(table.scenegraph) && getBrushingChartInstance(table.scenegraph) === this.activeChartInstance || (null === (_b = this.activeChartInstance) || void 0 === _b || _b.updateViewBox({
|
|
48733
48734
|
x1: -1e3,
|
|
48734
48735
|
x2: -800,
|
|
48735
48736
|
y1: -1e3,
|
|
48736
48737
|
y2: -800
|
|
48737
|
-
}, !1, !1), null === (
|
|
48738
|
+
}, !1, !1), null === (_c = this.activeChartInstance) || void 0 === _c || _c.release(), this.activeChartInstance = null);
|
|
48738
48739
|
const {
|
|
48739
48740
|
col: col,
|
|
48740
48741
|
row: row
|
|
48741
48742
|
} = this.parent;
|
|
48742
|
-
table.internalProps.layoutMap.isAxisCell(table.rowHeaderLevelCount - 1, row) && (null === (
|
|
48743
|
+
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));
|
|
48743
48744
|
} else {
|
|
48744
48745
|
const {
|
|
48745
48746
|
col: col,
|
|
48746
48747
|
row: row
|
|
48747
48748
|
} = this.parent;
|
|
48748
|
-
releaseColumnChartInstance && table.internalProps.layoutMap.isAxisCell(col, table.rowCount - table.bottomFrozenRowCount) && (null === (
|
|
48749
|
+
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));
|
|
48749
48750
|
}
|
|
48750
48751
|
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));
|
|
48751
48752
|
}
|
|
@@ -52542,7 +52543,7 @@
|
|
|
52542
52543
|
}
|
|
52543
52544
|
function clearChartCacheImage(scenegraph) {
|
|
52544
52545
|
var _a;
|
|
52545
|
-
const brushingCellPos = getBrushingChartInstanceCellPos();
|
|
52546
|
+
const brushingCellPos = getBrushingChartInstanceCellPos(scenegraph);
|
|
52546
52547
|
for (let c = scenegraph.proxy.colStart; c <= scenegraph.proxy.colEnd; c++) {
|
|
52547
52548
|
const columnGroup = scenegraph.getColGroup(c);
|
|
52548
52549
|
null === (_a = null == columnGroup ? void 0 : columnGroup.getChildren()) || void 0 === _a || _a.forEach(cellNode => {
|
|
@@ -53053,7 +53054,10 @@
|
|
|
53053
53054
|
let Scenegraph$1 = class Scenegraph {
|
|
53054
53055
|
constructor(table) {
|
|
53055
53056
|
let width, height;
|
|
53056
|
-
this._needUpdateContainer = !1, this.table = table, this.hasFrozen = !1, this.clear = !0, this.mergeMap = new Map(),
|
|
53057
|
+
this._needUpdateContainer = !1, this.table = table, this.hasFrozen = !1, this.clear = !0, this.mergeMap = new Map(), this.brushingChartInstance = void 0, this.brushingChartInstanceCellPos = {
|
|
53058
|
+
col: -1,
|
|
53059
|
+
row: -1
|
|
53060
|
+
}, this.chartInstanceListColumnByColumnDirection = {}, this.chartInstanceListRowByRowDirection = {}, this.delayRunDimensionHoverTimerForColumnDirection = [], this.delayRunDimensionHoverTimerForRowDirection = [], this.delayRunDimensionHoverTimerForViewRange = [], this.disabledTooltipToAllChartInstances = !1, setPoptipTheme(this.table.theme.textPopTipStyle), "node" === Env.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({
|
|
53057
53061
|
canvas: table.canvas,
|
|
53058
53062
|
width: width,
|
|
53059
53063
|
height: height,
|
|
@@ -53311,8 +53315,8 @@
|
|
|
53311
53315
|
deactivateChart(col, row, forceRelease = !1) {
|
|
53312
53316
|
var _a, _b, _c, _d, _e, _f;
|
|
53313
53317
|
if (forceRelease) {
|
|
53314
|
-
const brushingChartInstanceCellPos = getBrushingChartInstanceCellPos(),
|
|
53315
|
-
brushingChartInstance = getBrushingChartInstance();
|
|
53318
|
+
const brushingChartInstanceCellPos = getBrushingChartInstanceCellPos(this),
|
|
53319
|
+
brushingChartInstance = getBrushingChartInstance(this);
|
|
53316
53320
|
brushingChartInstanceCellPos && brushingChartInstance && (clearAndReleaseBrushingChartInstance(this), clearCellChartCacheImage(brushingChartInstanceCellPos.col, brushingChartInstanceCellPos.row, this));
|
|
53317
53321
|
}
|
|
53318
53322
|
if (-1 === col || -1 === row) return;
|
|
@@ -53381,7 +53385,7 @@
|
|
|
53381
53385
|
var _a, _b, _c;
|
|
53382
53386
|
if (this.table.isPivotChart()) {
|
|
53383
53387
|
if (null == datum || 0 === (null == datum ? void 0 : datum.length) || 0 === Object.keys(datum).length) {
|
|
53384
|
-
const brushingChartInstance = getBrushingChartInstance();
|
|
53388
|
+
const brushingChartInstance = getBrushingChartInstance(this);
|
|
53385
53389
|
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);
|
|
53386
53390
|
}
|
|
53387
53391
|
updateChartState(this, datum, selectedDataMode);
|
|
@@ -60194,7 +60198,7 @@
|
|
|
60194
60198
|
}
|
|
60195
60199
|
constructor(container, options = {}) {
|
|
60196
60200
|
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;
|
|
60197
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.12-alpha.
|
|
60201
|
+
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.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");
|
|
60198
60202
|
this.pluginManager = new PluginManager$1(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
60199
60203
|
options: options,
|
|
60200
60204
|
container: container
|
|
@@ -76511,7 +76515,7 @@
|
|
|
76511
76515
|
PluginManager: PluginManager
|
|
76512
76516
|
});
|
|
76513
76517
|
|
|
76514
|
-
const version = "1.22.12-alpha.
|
|
76518
|
+
const version = "1.22.12-alpha.3";
|
|
76515
76519
|
|
|
76516
76520
|
exports.Gantt = Gantt;
|
|
76517
76521
|
exports.TYPES = index$4;
|