@visactor/vtable-calendar 1.20.0-alpha.4 → 1.20.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vtable-calendar.js +94 -41
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +8 -5
package/dist/vtable-calendar.js
CHANGED
|
@@ -588,7 +588,15 @@
|
|
|
588
588
|
const VGlobal = Symbol.for("VGlobal");
|
|
589
589
|
const DEFAULT_TEXT_FONT_FAMILY$2 = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
|
|
590
590
|
|
|
591
|
-
|
|
591
|
+
const container = new Container$1();
|
|
592
|
+
|
|
593
|
+
const RenderService = Symbol.for("RenderService");
|
|
594
|
+
|
|
595
|
+
class Application {
|
|
596
|
+
get renderService() {
|
|
597
|
+
return this._renderService || (this._renderService = container.get(RenderService)), this._renderService;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
592
600
|
const application = new Application();
|
|
593
601
|
|
|
594
602
|
let idx = 0;
|
|
@@ -5549,8 +5557,6 @@
|
|
|
5549
5557
|
};
|
|
5550
5558
|
DefaultTextMeasureContribution = __decorate$15([injectable()], DefaultTextMeasureContribution);
|
|
5551
5559
|
|
|
5552
|
-
const container = new Container$1();
|
|
5553
|
-
|
|
5554
5560
|
const CanvasFactory = Symbol.for("CanvasFactory");
|
|
5555
5561
|
const Context2dFactory = Symbol.for("Context2dFactory");
|
|
5556
5562
|
|
|
@@ -13973,7 +13979,7 @@
|
|
|
13973
13979
|
doFill && (fillCb ? fillCb(context, arc.attribute, arcAttribute) : fVisible && (context.setCommonStyle(arc, arc.attribute, originX - x, originY - y, arcAttribute), context.fill()));
|
|
13974
13980
|
}
|
|
13975
13981
|
_runStroke(arc, context, x, y, arcAttribute, doStroke, isFullStroke, sVisible, strokeCb) {
|
|
13976
|
-
doStroke && isFullStroke && (strokeCb
|
|
13982
|
+
doStroke && isFullStroke && (strokeCb ? strokeCb(context, arc.attribute, arcAttribute) : sVisible && (context.setStrokeStyle(arc, arc.attribute, x, y, arcAttribute), context.stroke()));
|
|
13977
13983
|
}
|
|
13978
13984
|
draw(arc, renderService, drawContext, params) {
|
|
13979
13985
|
const arcAttribute = getTheme(arc, null == params ? void 0 : params.theme).arc;
|
|
@@ -15632,7 +15638,6 @@
|
|
|
15632
15638
|
decorator(target, key, paramIndex);
|
|
15633
15639
|
};
|
|
15634
15640
|
};
|
|
15635
|
-
const RenderService = Symbol.for("RenderService");
|
|
15636
15641
|
let DefaultRenderService = class {
|
|
15637
15642
|
constructor(drawContribution) {
|
|
15638
15643
|
this.drawContribution = drawContribution;
|
|
@@ -16521,8 +16526,6 @@
|
|
|
16521
16526
|
application.transformUtil = transformUtil;
|
|
16522
16527
|
const graphicService = container.get(GraphicService);
|
|
16523
16528
|
application.graphicService = graphicService;
|
|
16524
|
-
const renderService = container.get(RenderService);
|
|
16525
|
-
application.renderService = renderService;
|
|
16526
16529
|
const layerService = container.get(LayerService);
|
|
16527
16530
|
application.layerService = layerService;
|
|
16528
16531
|
|
|
@@ -46386,13 +46389,12 @@
|
|
|
46386
46389
|
}), selectComp.fillhandle) {
|
|
46387
46390
|
const fillHandle = null === (_a = scene.table.options.excelOptions) || void 0 === _a ? void 0 : _a.fillHandle;
|
|
46388
46391
|
let lastCellBound,
|
|
46392
|
+
handlerX,
|
|
46389
46393
|
visible = !0;
|
|
46390
46394
|
"function" == typeof fillHandle && (visible = fillHandle({
|
|
46391
46395
|
selectRanges: scene.table.stateManager.select.ranges,
|
|
46392
46396
|
table: scene.table
|
|
46393
|
-
})), lastCellBound =
|
|
46394
|
-
const handlerX = lastCellBound.x2 - scene.tableGroup.attribute.x - 3;
|
|
46395
|
-
lastCellBound = computeRectCellRangeEndRow < table.rowCount - 1 ? scene.highPerformanceGetCell(computeRectCellRangeEndCol, computeRectCellRangeEndRow).globalAABBBounds : scene.highPerformanceGetCell(computeRectCellRangeEndCol, computeRectCellRangeStartRow - 1).globalAABBBounds;
|
|
46397
|
+
})), endCol < table.colCount - 1 ? (lastCellBound = scene.highPerformanceGetCell(endCol, endRow).globalAABBBounds, handlerX = lastCellBound.x2 - scene.tableGroup.attribute.x - 3) : 0 === startCol ? (lastCellBound = scene.highPerformanceGetCell(0, endRow).globalAABBBounds, handlerX = lastCellBound.x1 - scene.tableGroup.attribute.x) : (lastCellBound = scene.highPerformanceGetCell(startCol - 1, endRow).globalAABBBounds, handlerX = lastCellBound.x2 - scene.tableGroup.attribute.x - 3), lastCellBound = endRow < table.rowCount - 1 ? scene.highPerformanceGetCell(endCol, endRow).globalAABBBounds : scene.highPerformanceGetCell(endCol, startRow - 1).globalAABBBounds;
|
|
46396
46398
|
const handlerY = lastCellBound.y2 - scene.tableGroup.attribute.y - 3;
|
|
46397
46399
|
null === (_b = selectComp.fillhandle) || void 0 === _b || _b.setAttributes({
|
|
46398
46400
|
x: handlerX,
|
|
@@ -51328,7 +51330,7 @@
|
|
|
51328
51330
|
}, 0);
|
|
51329
51331
|
}
|
|
51330
51332
|
}), table.scenegraph.tableGroup.addEventListener("rightdown", e => {
|
|
51331
|
-
var _a, _b, _c, _d, _e, _f;
|
|
51333
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
51332
51334
|
const eventArgsSet = getCellEventArgsSet(e);
|
|
51333
51335
|
if (eventArgsSet.eventArgs) {
|
|
51334
51336
|
stateManager.triggerContextMenu(eventArgsSet.eventArgs.col, eventArgsSet.eventArgs.row, eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y);
|
|
@@ -51350,11 +51352,12 @@
|
|
|
51350
51352
|
break;
|
|
51351
51353
|
}
|
|
51352
51354
|
}
|
|
51353
|
-
|
|
51355
|
+
const disableSelectOnContextMenu = null === (_a = table.options.select) || void 0 === _a ? void 0 : _a.disableSelectOnContextMenu;
|
|
51356
|
+
if (cellInRange || disableSelectOnContextMenu || table.selectCell(col, row), table.hasListeners(TABLE_EVENT_TYPE.CONTEXTMENU_CELL)) {
|
|
51354
51357
|
const cellInfo = table.getCellInfo(col, row);
|
|
51355
51358
|
let icon, position;
|
|
51356
|
-
if (null === (
|
|
51357
|
-
const iconInfo = getIconAndPositionFromTarget(null === (
|
|
51359
|
+
if (null === (_b = eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.target) {
|
|
51360
|
+
const iconInfo = getIconAndPositionFromTarget(null === (_c = eventArgsSet.eventArgs) || void 0 === _c ? void 0 : _c.target);
|
|
51358
51361
|
iconInfo && (icon = iconInfo.icon, position = iconInfo.position);
|
|
51359
51362
|
}
|
|
51360
51363
|
const cellsEvent = Object.assign(Object.assign({}, cellInfo), {
|
|
@@ -51365,10 +51368,10 @@
|
|
|
51365
51368
|
position: position,
|
|
51366
51369
|
funcType: icon.attribute.funcType
|
|
51367
51370
|
} : void 0,
|
|
51368
|
-
target: null === (
|
|
51369
|
-
mergeCellInfo: null === (
|
|
51371
|
+
target: null === (_d = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _d ? void 0 : _d.target,
|
|
51372
|
+
mergeCellInfo: null === (_e = eventArgsSet.eventArgs) || void 0 === _e ? void 0 : _e.mergeInfo
|
|
51370
51373
|
});
|
|
51371
|
-
(null === (
|
|
51374
|
+
(null === (_g = null === (_f = table.options.eventOptions) || void 0 === _f ? void 0 : _f.contextmenuReturnAllSelectedCells) || void 0 === _g || _g) && (cellInRanges(table.stateManager.select.ranges, col, row) ? cellsEvent.cells = table.getSelectedCellInfos() : cellsEvent.cells = [[cellInfo]]), table.fireListeners(TABLE_EVENT_TYPE.CONTEXTMENU_CELL, cellsEvent);
|
|
51372
51375
|
}
|
|
51373
51376
|
}
|
|
51374
51377
|
}
|
|
@@ -52421,11 +52424,22 @@
|
|
|
52421
52424
|
lastRow = Math.max(this.table.stateManager.select.ranges[this.table.stateManager.select.ranges.length - 1].start.row, this.table.stateManager.select.ranges[this.table.stateManager.select.ranges.length - 1].end.row),
|
|
52422
52425
|
startCol = Math.min(this.table.stateManager.select.ranges[this.table.stateManager.select.ranges.length - 1].start.col, this.table.stateManager.select.ranges[this.table.stateManager.select.ranges.length - 1].end.col),
|
|
52423
52426
|
startRow = Math.min(this.table.stateManager.select.ranges[this.table.stateManager.select.ranges.length - 1].start.row, this.table.stateManager.select.ranges[this.table.stateManager.select.ranges.length - 1].end.row);
|
|
52424
|
-
let
|
|
52425
|
-
|
|
52426
|
-
|
|
52427
|
-
|
|
52428
|
-
|
|
52427
|
+
let lastCellBoundTargetX;
|
|
52428
|
+
if (lastCol < this.table.colCount - 1) {
|
|
52429
|
+
lastCellBoundTargetX = this.table.scenegraph.highPerformanceGetCell(lastCol, lastRow).globalAABBBounds.x2;
|
|
52430
|
+
} else if (0 === startCol) {
|
|
52431
|
+
lastCellBoundTargetX = this.table.scenegraph.highPerformanceGetCell(0, lastRow).globalAABBBounds.x1;
|
|
52432
|
+
} else {
|
|
52433
|
+
lastCellBoundTargetX = this.table.scenegraph.highPerformanceGetCell(startCol - 1, lastRow).globalAABBBounds.x2;
|
|
52434
|
+
}
|
|
52435
|
+
const distanceX = Math.abs(eventArgsSet.abstractPos.x - lastCellBoundTargetX);
|
|
52436
|
+
let lastCellBoundTargetY;
|
|
52437
|
+
if (lastRow < this.table.rowCount - 1) {
|
|
52438
|
+
lastCellBoundTargetY = this.table.scenegraph.highPerformanceGetCell(lastCol, lastRow).globalAABBBounds.y2;
|
|
52439
|
+
} else {
|
|
52440
|
+
lastCellBoundTargetY = this.table.scenegraph.highPerformanceGetCell(lastCol, startRow - 1).globalAABBBounds.y2;
|
|
52441
|
+
}
|
|
52442
|
+
const distanceY = Math.abs(eventArgsSet.abstractPos.y - lastCellBoundTargetY),
|
|
52429
52443
|
squareSize = 18;
|
|
52430
52444
|
if ((null === (_e = this.table.stateManager.fillHandle) || void 0 === _e ? void 0 : _e.isFilling) || distanceX <= squareSize / 2 && distanceY <= squareSize / 2) return update && this.table.stateManager.startFillSelect(eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y), !0;
|
|
52431
52445
|
}
|
|
@@ -54674,7 +54688,7 @@
|
|
|
54674
54688
|
}
|
|
54675
54689
|
|
|
54676
54690
|
function getAxisConfigInPivotChart(col, row, layout) {
|
|
54677
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
54691
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
54678
54692
|
if (layout._table.isPivotChart()) if (layout.indicatorsAsCol) {
|
|
54679
54693
|
if (layout.hasTwoIndicatorAxes && row === layout.columnHeaderLevelCount - 1 && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
|
|
54680
54694
|
const axisRange = getRange("top", col, row + 1, col, layout.columnHeaderLevelCount - 1, col, row, 1, layout);
|
|
@@ -54713,7 +54727,10 @@
|
|
|
54713
54727
|
const info = layout.getIndicatorInfo(key);
|
|
54714
54728
|
info && (indicatorInfo = info);
|
|
54715
54729
|
});
|
|
54716
|
-
const axisRange = getRange("bottom", col, row - 1, col, row, col, row, 0, layout)
|
|
54730
|
+
const axisRange = getRange("bottom", col, row - 1, col, row, col, row, 0, layout),
|
|
54731
|
+
{
|
|
54732
|
+
chartType: chartType
|
|
54733
|
+
} = getAxisOption(col, row - 1, "bottom", layout);
|
|
54717
54734
|
if (!axisRange) return;
|
|
54718
54735
|
const chartCellStyle = layout._table._getCellStyle(col, row - 1),
|
|
54719
54736
|
padding = getQuadProps(getProp("padding", chartCellStyle, col, row - 1, layout._table)),
|
|
@@ -54726,12 +54743,21 @@
|
|
|
54726
54743
|
targetRange: targetRange,
|
|
54727
54744
|
theme: theme
|
|
54728
54745
|
} = axisRange;
|
|
54729
|
-
|
|
54746
|
+
isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
|
|
54747
|
+
let domain = [];
|
|
54748
|
+
if ("heatmap" === chartType) {
|
|
54749
|
+
const colDimensionKey = layout.getDimensionKeyInChartSpec(col, layout.rowCount - layout.bottomFrozenRowCount - 1, "xField"),
|
|
54750
|
+
data = null !== (_a = layout.dataset.collectedValues[colDimensionKey]) && void 0 !== _a ? _a : [],
|
|
54751
|
+
colPath = layout.getColKeysPath(col, row);
|
|
54752
|
+
domain = null !== (_b = null == data ? void 0 : data[null != colPath ? colPath : ""]) && void 0 !== _b ? _b : [];
|
|
54753
|
+
}
|
|
54754
|
+
return merge$1({
|
|
54730
54755
|
title: {
|
|
54731
54756
|
visible: !0,
|
|
54732
54757
|
text: null == indicatorInfo ? void 0 : indicatorInfo.title
|
|
54733
54758
|
},
|
|
54734
|
-
range: range
|
|
54759
|
+
range: range,
|
|
54760
|
+
domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
|
|
54735
54761
|
}, axisOption, {
|
|
54736
54762
|
orient: "bottom",
|
|
54737
54763
|
type: (null == axisOption ? void 0 : axisOption.type) || "linear",
|
|
@@ -54749,9 +54775,9 @@
|
|
|
54749
54775
|
if (col === layout.rowHeaderLevelCount - 1 && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
|
|
54750
54776
|
let rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.rowHeaderLevelCount, row);
|
|
54751
54777
|
isArray$7(rowDimensionKey) && (rowDimensionKey = rowDimensionKey[0]);
|
|
54752
|
-
const data = null !== (
|
|
54778
|
+
const data = null !== (_c = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _c ? _c : [],
|
|
54753
54779
|
rowPath = layout.getRowKeysPath(col, row),
|
|
54754
|
-
domain = null !== (
|
|
54780
|
+
domain = null !== (_d = data[null != rowPath ? rowPath : ""]) && void 0 !== _d ? _d : [],
|
|
54755
54781
|
{
|
|
54756
54782
|
axisOption: axisOption,
|
|
54757
54783
|
theme: theme,
|
|
@@ -54769,9 +54795,9 @@
|
|
|
54769
54795
|
}
|
|
54770
54796
|
}, axisOption, {
|
|
54771
54797
|
orient: "left",
|
|
54772
|
-
type: null !== (
|
|
54798
|
+
type: null !== (_e = null == axisOption ? void 0 : axisOption.type) && void 0 !== _e ? _e : "band",
|
|
54773
54799
|
__vtableChartTheme: theme,
|
|
54774
|
-
inverse: transformInverse(axisOption, "horizontal" === (null !== (
|
|
54800
|
+
inverse: transformInverse(axisOption, "horizontal" === (null !== (_f = null == spec ? void 0 : spec.direction) && void 0 !== _f ? _f : "scatter" === chartType ? "vertical" : "horizontal")),
|
|
54775
54801
|
__vtablePadding: padding
|
|
54776
54802
|
});
|
|
54777
54803
|
}
|
|
@@ -54783,7 +54809,10 @@
|
|
|
54783
54809
|
const info = layout.getIndicatorInfo(key);
|
|
54784
54810
|
info && (indicatorInfo = info);
|
|
54785
54811
|
});
|
|
54786
|
-
const axisRange = getRange("left", col + 1, row, col, row, col, row, 0, layout)
|
|
54812
|
+
const axisRange = getRange("left", col + 1, row, col, row, col, row, 0, layout),
|
|
54813
|
+
{
|
|
54814
|
+
chartType: chartType
|
|
54815
|
+
} = getAxisOption(col + 1, row, "left", layout);
|
|
54787
54816
|
if (!axisRange) return;
|
|
54788
54817
|
const chartCellStyle = layout._table._getCellStyle(col + 1, row),
|
|
54789
54818
|
padding = getQuadProps(getProp("padding", chartCellStyle, col + 1, row, layout._table)),
|
|
@@ -54796,13 +54825,22 @@
|
|
|
54796
54825
|
targetRange: targetRange,
|
|
54797
54826
|
theme: theme
|
|
54798
54827
|
} = axisRange;
|
|
54799
|
-
|
|
54828
|
+
isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
|
|
54829
|
+
let domain = [];
|
|
54830
|
+
if ("heatmap" === chartType) {
|
|
54831
|
+
const rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.rowHeaderLevelCount, row, "yField"),
|
|
54832
|
+
data = null !== (_g = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _g ? _g : [],
|
|
54833
|
+
rowPath = layout.getRowKeysPath(col, row);
|
|
54834
|
+
domain = null !== (_h = null == data ? void 0 : data[null != rowPath ? rowPath : ""]) && void 0 !== _h ? _h : [];
|
|
54835
|
+
}
|
|
54836
|
+
return merge$1({
|
|
54800
54837
|
title: {
|
|
54801
54838
|
visible: !0,
|
|
54802
54839
|
text: null == indicatorInfo ? void 0 : indicatorInfo.title,
|
|
54803
54840
|
autoRotate: !0
|
|
54804
54841
|
},
|
|
54805
|
-
range: range
|
|
54842
|
+
range: range,
|
|
54843
|
+
domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
|
|
54806
54844
|
}, axisOption, {
|
|
54807
54845
|
orient: "left",
|
|
54808
54846
|
type: (null == axisOption ? void 0 : axisOption.type) || "linear",
|
|
@@ -54818,7 +54856,10 @@
|
|
|
54818
54856
|
});
|
|
54819
54857
|
}
|
|
54820
54858
|
if (col === layout.colCount - layout.rightFrozenColCount && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
|
|
54821
|
-
const axisRange = getRange("right", col - 1, row, layout.rowHeaderLevelCount - 1, row, col, row, 1, layout)
|
|
54859
|
+
const axisRange = getRange("right", col - 1, row, layout.rowHeaderLevelCount - 1, row, col, row, 1, layout),
|
|
54860
|
+
{
|
|
54861
|
+
chartType: chartType
|
|
54862
|
+
} = getAxisOption(col - 1, row, "right", layout);
|
|
54822
54863
|
if (!axisRange) return;
|
|
54823
54864
|
const chartCellStyle = layout._table._getCellStyle(col - 1, row),
|
|
54824
54865
|
padding = getQuadProps(getProp("padding", chartCellStyle, col - 1, row, layout._table)),
|
|
@@ -54831,11 +54872,20 @@
|
|
|
54831
54872
|
targetRange: targetRange,
|
|
54832
54873
|
theme: theme
|
|
54833
54874
|
} = axisRange;
|
|
54834
|
-
|
|
54875
|
+
isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
|
|
54876
|
+
let domain = [];
|
|
54877
|
+
if ("heatmap" === chartType) {
|
|
54878
|
+
const rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.colCount - layout.rightFrozenColCount - 1, row, "yField"),
|
|
54879
|
+
data = null !== (_j = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _j ? _j : [],
|
|
54880
|
+
rowPath = layout.getRowKeysPath(col, row);
|
|
54881
|
+
domain = null !== (_k = null == data ? void 0 : data[null != rowPath ? rowPath : ""]) && void 0 !== _k ? _k : [];
|
|
54882
|
+
}
|
|
54883
|
+
return merge$1({
|
|
54835
54884
|
range: range,
|
|
54836
54885
|
title: {
|
|
54837
54886
|
autoRotate: !0
|
|
54838
|
-
}
|
|
54887
|
+
},
|
|
54888
|
+
domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
|
|
54839
54889
|
}, axisOption, {
|
|
54840
54890
|
orient: "right",
|
|
54841
54891
|
type: (null == axisOption ? void 0 : axisOption.type) || "linear",
|
|
@@ -54853,9 +54903,9 @@
|
|
|
54853
54903
|
if (row === layout.rowCount - layout.bottomFrozenRowCount && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
|
|
54854
54904
|
let columnDimensionKey = layout.getDimensionKeyInChartSpec(col, layout.columnHeaderLevelCount);
|
|
54855
54905
|
isArray$7(columnDimensionKey) && (columnDimensionKey = columnDimensionKey[0]);
|
|
54856
|
-
const data = null !== (
|
|
54906
|
+
const data = null !== (_l = layout.dataset.collectedValues[columnDimensionKey]) && void 0 !== _l ? _l : [],
|
|
54857
54907
|
colPath = layout.getColKeysPath(col, row),
|
|
54858
|
-
domain = null !== (
|
|
54908
|
+
domain = null !== (_m = null == data ? void 0 : data[null != colPath ? colPath : ""]) && void 0 !== _m ? _m : [],
|
|
54859
54909
|
{
|
|
54860
54910
|
axisOption: axisOption,
|
|
54861
54911
|
isPercent: isPercent,
|
|
@@ -54870,7 +54920,7 @@
|
|
|
54870
54920
|
range: "linear" === (null == axisOption ? void 0 : axisOption.type) ? domain : void 0
|
|
54871
54921
|
}, axisOption, {
|
|
54872
54922
|
orient: "bottom",
|
|
54873
|
-
type: null !== (
|
|
54923
|
+
type: null !== (_o = null == axisOption ? void 0 : axisOption.type) && void 0 !== _o ? _o : "band",
|
|
54874
54924
|
__vtableChartTheme: theme,
|
|
54875
54925
|
__vtablePadding: padding
|
|
54876
54926
|
});
|
|
@@ -55377,7 +55427,7 @@
|
|
|
55377
55427
|
}
|
|
55378
55428
|
constructor(container, options = {}) {
|
|
55379
55429
|
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;
|
|
55380
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.20.
|
|
55430
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.20.1-alpha.0", 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");
|
|
55381
55431
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
55382
55432
|
options: options,
|
|
55383
55433
|
container: container
|
|
@@ -55596,6 +55646,9 @@
|
|
|
55596
55646
|
set frozenRowCount(frozenRowCount) {
|
|
55597
55647
|
this.internalProps.frozenRowCount = frozenRowCount, this.options.frozenRowCount = frozenRowCount, this.stateManager.setFrozenRow(this.internalProps.frozenRowCount);
|
|
55598
55648
|
}
|
|
55649
|
+
_setFrozenRowCount(frozenRowCount) {
|
|
55650
|
+
this.internalProps.frozenRowCount = frozenRowCount, this.stateManager.setFrozenRow(this.internalProps.frozenRowCount);
|
|
55651
|
+
}
|
|
55599
55652
|
get rightFrozenColCount() {
|
|
55600
55653
|
var _a, _b, _c, _d, _e;
|
|
55601
55654
|
return null !== (_e = null !== (_c = null === (_b = null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.layoutMap) || void 0 === _b ? void 0 : _b.rightFrozenColCount) && void 0 !== _c ? _c : null === (_d = this.internalProps) || void 0 === _d ? void 0 : _d.rightFrozenColCount) && void 0 !== _e ? _e : 0;
|
|
@@ -60755,7 +60808,7 @@
|
|
|
60755
60808
|
} = table.internalProps;
|
|
60756
60809
|
if (!layoutMap) return;
|
|
60757
60810
|
const dataCount = null !== (_b = null === (_a = table.internalProps.dataSource) || void 0 === _a ? void 0 : _a.length) && void 0 !== _b ? _b : 0;
|
|
60758
|
-
layoutMap.recordsCount = dataCount + (dataCount > 0 || this.options.showAggregationWhenEmpty ? layoutMap.hasAggregationOnTopCount + layoutMap.hasAggregationOnBottomCount : 0), table.transpose ? (table.rowCount = null !== (_c = layoutMap.rowCount) && void 0 !== _c ? _c : 0, table.colCount = null !== (_d = layoutMap.colCount) && void 0 !== _d ? _d : 0, this.internalProps.frozenColCount = Math.max((null !== (_e = layoutMap.headerLevelCount) && void 0 !== _e ? _e : 0) + layoutMap.leftRowSeriesNumberColumnCount, null !== (_f = this.options.frozenColCount) && void 0 !== _f ? _f : 0), this.internalProps.frozenRowCount = null !== (_g = this.options.frozenRowCount) && void 0 !== _g ? _g : 0, table.bottomFrozenRowCount !== (null !== (_h = this.options.bottomFrozenRowCount) && void 0 !== _h ? _h : 0) && (table.bottomFrozenRowCount = null !== (_j = this.options.bottomFrozenRowCount) && void 0 !== _j ? _j : 0), table.rightFrozenColCount !== (null !== (_k = this.options.rightFrozenColCount) && void 0 !== _k ? _k : 0) && (table.rightFrozenColCount = null !== (_l = this.options.rightFrozenColCount) && void 0 !== _l ? _l : 0)) : (table.colCount = null !== (_m = layoutMap.colCount) && void 0 !== _m ? _m : 0, table.rowCount = layoutMap.recordsCount * layoutMap.bodyRowSpanCount + layoutMap.headerLevelCount, this.internalProps.frozenColCount = null !== (_o = this.options.frozenColCount) && void 0 !== _o ? _o : 0, this.options.frozenColCount >= this.colCount && (this.internalProps.frozenColCount = 0), table.
|
|
60811
|
+
layoutMap.recordsCount = dataCount + (dataCount > 0 || this.options.showAggregationWhenEmpty ? layoutMap.hasAggregationOnTopCount + layoutMap.hasAggregationOnBottomCount : 0), table.transpose ? (table.rowCount = null !== (_c = layoutMap.rowCount) && void 0 !== _c ? _c : 0, table.colCount = null !== (_d = layoutMap.colCount) && void 0 !== _d ? _d : 0, this.internalProps.frozenColCount = Math.max((null !== (_e = layoutMap.headerLevelCount) && void 0 !== _e ? _e : 0) + layoutMap.leftRowSeriesNumberColumnCount, null !== (_f = this.options.frozenColCount) && void 0 !== _f ? _f : 0), this.internalProps.frozenRowCount = null !== (_g = this.options.frozenRowCount) && void 0 !== _g ? _g : 0, table.bottomFrozenRowCount !== (null !== (_h = this.options.bottomFrozenRowCount) && void 0 !== _h ? _h : 0) && (table.bottomFrozenRowCount = null !== (_j = this.options.bottomFrozenRowCount) && void 0 !== _j ? _j : 0), table.rightFrozenColCount !== (null !== (_k = this.options.rightFrozenColCount) && void 0 !== _k ? _k : 0) && (table.rightFrozenColCount = null !== (_l = this.options.rightFrozenColCount) && void 0 !== _l ? _l : 0)) : (table.colCount = null !== (_m = layoutMap.colCount) && void 0 !== _m ? _m : 0, table.rowCount = layoutMap.recordsCount * layoutMap.bodyRowSpanCount + layoutMap.headerLevelCount, this.internalProps.frozenColCount = null !== (_o = this.options.frozenColCount) && void 0 !== _o ? _o : 0, this.options.frozenColCount >= this.colCount && (this.internalProps.frozenColCount = 0), table._setFrozenRowCount(Math.max(layoutMap.headerLevelCount, null !== (_p = this.options.frozenRowCount) && void 0 !== _p ? _p : 0)), table.bottomFrozenRowCount !== (null !== (_q = this.options.bottomFrozenRowCount) && void 0 !== _q ? _q : 0) && (table.bottomFrozenRowCount = null !== (_r = this.options.bottomFrozenRowCount) && void 0 !== _r ? _r : 0), table.rightFrozenColCount !== (null !== (_s = this.options.rightFrozenColCount) && void 0 !== _s ? _s : 0) && (table.rightFrozenColCount = null !== (_t = this.options.rightFrozenColCount) && void 0 !== _t ? _t : 0)), this.stateManager.setFrozenCol(this.internalProps.frozenColCount);
|
|
60759
60812
|
}
|
|
60760
60813
|
getFieldData(field, col, row) {
|
|
60761
60814
|
if (null === field) return null;
|