@visactor/vtable-calendar 1.13.1-alpha.0 → 1.13.1-alpha.2
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
CHANGED
|
@@ -46326,7 +46326,7 @@
|
|
|
46326
46326
|
constructor(container) {
|
|
46327
46327
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
46328
46328
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
46329
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.13.1-alpha.
|
|
46329
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.13.1-alpha.2", 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");
|
|
46330
46330
|
const {
|
|
46331
46331
|
frozenColCount = 0,
|
|
46332
46332
|
frozenRowCount: frozenRowCount,
|
|
@@ -50074,11 +50074,11 @@
|
|
|
50074
50074
|
proxy = table.scenegraph.proxy,
|
|
50075
50075
|
{
|
|
50076
50076
|
rowStart: rowStart,
|
|
50077
|
-
rowLimit: rowLimit
|
|
50078
|
-
bodyBottomRow: bodyBottomRow
|
|
50077
|
+
rowLimit: rowLimit
|
|
50079
50078
|
} = proxy;
|
|
50080
50079
|
let {
|
|
50081
|
-
rowEnd: rowEnd
|
|
50080
|
+
rowEnd: rowEnd,
|
|
50081
|
+
bodyBottomRow: bodyBottomRow
|
|
50082
50082
|
} = proxy,
|
|
50083
50083
|
updateRow = 1 / 0;
|
|
50084
50084
|
for (let i = 0; i < addCellPositions.length; i++) {
|
|
@@ -50093,11 +50093,11 @@
|
|
|
50093
50093
|
for (let i = 0; i < removeCellPositions.length; i++) {
|
|
50094
50094
|
const {
|
|
50095
50095
|
row: cellRow
|
|
50096
|
-
} = removeCellPositions[i];
|
|
50097
|
-
cellRow < rowStart || cellRow > rowEnd
|
|
50096
|
+
} = removeCellPositions[removeCellPositions.length - i - 1];
|
|
50097
|
+
cellRow < rowStart || cellRow > rowEnd ? bodyBottomRow-- : rowEnd === bodyBottomRow ? (removeCells.push({
|
|
50098
50098
|
col: col,
|
|
50099
50099
|
row: cellRow
|
|
50100
|
-
}) : updateRow = Math.min(updateRow, cellRow));
|
|
50100
|
+
}), updateRow--) : (updateRow = Math.min(updateRow, cellRow), bodyBottomRow--);
|
|
50101
50101
|
}
|
|
50102
50102
|
if (updateRow !== 1 / 0) for (let i = updateRow; i <= rowEnd; i++) updateCells.push({
|
|
50103
50103
|
col: col,
|