@visactor/vtable-calendar 1.17.3-alpha.10 → 1.17.3-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/dist/vtable-calendar.js +22 -13
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +4 -4
package/dist/vtable-calendar.js
CHANGED
|
@@ -27715,6 +27715,7 @@
|
|
|
27715
27715
|
RESIZE_COLUMN_END: "resize_column_end",
|
|
27716
27716
|
RESIZE_ROW: "resize_row",
|
|
27717
27717
|
RESIZE_ROW_END: "resize_row_end",
|
|
27718
|
+
RESIZE_TABLE: "resize_table",
|
|
27718
27719
|
CHANGE_HEADER_POSITION_START: "change_header_position_start",
|
|
27719
27720
|
CHANGE_HEADER_POSITION: "change_header_position",
|
|
27720
27721
|
CHANGING_HEADER_POSITION: "changing_header_position",
|
|
@@ -39323,7 +39324,7 @@
|
|
|
39323
39324
|
}
|
|
39324
39325
|
isExtend && extendSelectRange();
|
|
39325
39326
|
};
|
|
39326
|
-
ifExtendSelectRange && extendSelectRange(), scene.selectingRangeComponents.forEach((selectComp, key) => {
|
|
39327
|
+
ifExtendSelectRange && (extendSelectRange(), selectRange.start.col > selectRange.end.col ? (selectRange.start.col = Math.max(startCol, endCol), selectRange.end.col = Math.min(startCol, endCol)) : (selectRange.start.col = Math.min(startCol, endCol), selectRange.end.col = Math.max(startCol, endCol)), selectRange.start.row > selectRange.end.row ? (selectRange.start.row = Math.max(startRow, endRow), selectRange.end.row = Math.min(startRow, endRow)) : (selectRange.start.row = Math.min(startRow, endRow), selectRange.end.row = Math.max(startRow, endRow))), scene.selectingRangeComponents.forEach((selectComp, key) => {
|
|
39327
39328
|
var _a;
|
|
39328
39329
|
selectComp.rect.delete(), null === (_a = selectComp.fillhandle) || void 0 === _a || _a.delete();
|
|
39329
39330
|
}), scene.selectingRangeComponents = new Map();
|
|
@@ -41690,7 +41691,7 @@
|
|
|
41690
41691
|
} : table.getCellRange(col, row);
|
|
41691
41692
|
currentRange.start.col < cellRange.end.col ? currentRange.end.col = cellRange.end.col : currentRange.start.col > cellRange.start.col && (currentRange.end.col = cellRange.start.col), currentRange.start.row < cellRange.end.row ? currentRange.end.row = cellRange.end.row : currentRange.start.row > cellRange.start.row && (currentRange.end.row = cellRange.start.row), "body" === state.select.headerSelectMode && (table.isRowHeader(col, row) ? (currentRange.start.col = table.rowHeaderLevelCount + table.leftRowSeriesNumberCount, currentRange.end.col = table.colCount - 1) : table.isColumnHeader(col, row) ? (currentRange.start.row = table.columnHeaderLevelCount, currentRange.end.row = table.rowCount - 1) : table.internalProps.layoutMap.isSeriesNumberInBody(col, row) ? (currentRange.start.col = table.leftRowSeriesNumberCount, currentRange.end.col = table.colCount - 1) : table.isCornerHeader(col, row) ? (currentRange.start.col = table.rowHeaderLevelCount + table.leftRowSeriesNumberCount, currentRange.start.row = table.columnHeaderLevelCount, currentRange.end.col = table.colCount - 1, currentRange.end.row = table.rowCount - 1) : table.isSeriesNumber(col, row) && (currentRange.start.col = table.leftRowSeriesNumberCount, currentRange.start.row = table.columnHeaderLevelCount, currentRange.end.col = table.colCount - 1, currentRange.end.row = table.rowCount - 1)), skipBodyMerge && (currentRange.skipBodyMerge = !0);
|
|
41692
41693
|
}
|
|
41693
|
-
scenegraph.updateCellSelectBorder(currentRange, extendSelectRange);
|
|
41694
|
+
currentRange && currentRange.start.row <= table.rowCount - 1 && currentRange.end.row <= table.rowCount - 1 && currentRange.start.col <= table.colCount - 1 && currentRange.end.col <= table.colCount - 1 && scenegraph.updateCellSelectBorder(currentRange, extendSelectRange);
|
|
41694
41695
|
}
|
|
41695
41696
|
}
|
|
41696
41697
|
} else {
|
|
@@ -41888,7 +41889,7 @@
|
|
|
41888
41889
|
}
|
|
41889
41890
|
cellPos.col = col, cellPos.row = row;
|
|
41890
41891
|
const currentRange = null === (_b = state.select.ranges) || void 0 === _b ? void 0 : _b[state.select.ranges.length - 1];
|
|
41891
|
-
currentRange && scenegraph.updateCellSelectBorder(currentRange, extendSelectRange);
|
|
41892
|
+
currentRange && currentRange.start.row <= table.rowCount - 1 && currentRange.end.row <= table.rowCount - 1 && currentRange.start.col <= table.colCount - 1 && currentRange.end.col <= table.colCount - 1 && scenegraph.updateCellSelectBorder(currentRange, extendSelectRange);
|
|
41892
41893
|
}
|
|
41893
41894
|
}
|
|
41894
41895
|
} else cellPos.col = -1, cellPos.row = -1, state.select.ranges = [], scenegraph.deleteAllSelectBorder();
|
|
@@ -47181,14 +47182,15 @@
|
|
|
47181
47182
|
} = getAxisOption(col, row, position, layout),
|
|
47182
47183
|
range = getAxisRange(layout.dataset.collectedValues, indicatorKeys, isZeroAlign, path, null != seriesIndice ? seriesIndice : index);
|
|
47183
47184
|
if (!range) return;
|
|
47184
|
-
|
|
47185
|
-
|
|
47186
|
-
|
|
47187
|
-
|
|
47188
|
-
|
|
47189
|
-
|
|
47190
|
-
|
|
47191
|
-
|
|
47185
|
+
let ticks;
|
|
47186
|
+
if (isPercent && (range.min = range.min < 0 ? -1 : 0, range.max = range.max > 0 ? 1 : 0), ((null == axisOption ? void 0 : axisOption.zero) || range.min === range.max) && (range.min = Math.min(range.min, 0), range.max = Math.max(range.max, 0)), (null == axisOption ? void 0 : axisOption.nice) || isTickAlign) {
|
|
47187
|
+
const getAxisDomainRangeAndLabels = Factory.getFunction("getAxisDomainRangeAndLabels"),
|
|
47188
|
+
{
|
|
47189
|
+
range: axisRange,
|
|
47190
|
+
ticks: selfTicks
|
|
47191
|
+
} = getAxisDomainRangeAndLabels(range.min, range.max, axisOption, isZeroAlign, "bottom" === position || "top" === position ? layout._table.getColWidth(col) || layout._table.tableNoFrameWidth : layout._table.getRowHeight(row) || layout._table.tableNoFrameHeight);
|
|
47192
|
+
(null == axisOption ? void 0 : axisOption.nice) && (range.min = axisRange[0], range.max = axisRange[1]), ticks = selfTicks;
|
|
47193
|
+
}
|
|
47192
47194
|
return isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max), {
|
|
47193
47195
|
index: null != seriesIndice ? seriesIndice : index,
|
|
47194
47196
|
range: range,
|
|
@@ -47480,7 +47482,7 @@
|
|
|
47480
47482
|
constructor(container) {
|
|
47481
47483
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
47482
47484
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
47483
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.17.3-alpha.
|
|
47485
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.17.3-alpha.3", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
47484
47486
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
|
|
47485
47487
|
const {
|
|
47486
47488
|
frozenColCount = 0,
|
|
@@ -47619,7 +47621,14 @@
|
|
|
47619
47621
|
var _a;
|
|
47620
47622
|
this._updateSize(), null === (_a = this.internalProps.legends) || void 0 === _a || _a.forEach(legend => {
|
|
47621
47623
|
null == legend || legend.resize();
|
|
47622
|
-
}), this.internalProps.title && this.internalProps.title.resize(), this.internalProps.emptyTip && this.internalProps.emptyTip.resize(), this.scenegraph.resize()
|
|
47624
|
+
}), this.internalProps.title && this.internalProps.title.resize(), this.internalProps.emptyTip && this.internalProps.emptyTip.resize(), this.scenegraph.resize(), setTimeout(() => {
|
|
47625
|
+
this.fireListeners(TABLE_EVENT_TYPE.RESIZE_TABLE, {
|
|
47626
|
+
tableX: this.tableX,
|
|
47627
|
+
tableY: this.tableY,
|
|
47628
|
+
tableWidth: this.tableNoFrameWidth,
|
|
47629
|
+
tableHeight: this.tableNoFrameHeight
|
|
47630
|
+
});
|
|
47631
|
+
}, 0);
|
|
47623
47632
|
}
|
|
47624
47633
|
get rowCount() {
|
|
47625
47634
|
return this.internalProps.rowCount;
|