@visactor/vtable-calendar 1.22.9-alpha.1 → 1.22.9-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
|
@@ -56083,7 +56083,7 @@
|
|
|
56083
56083
|
}
|
|
56084
56084
|
constructor(container, options = {}) {
|
|
56085
56085
|
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;
|
|
56086
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.9-alpha.
|
|
56086
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.9-alpha.2", 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");
|
|
56087
56087
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56088
56088
|
options: options,
|
|
56089
56089
|
container: container
|
|
@@ -56598,7 +56598,7 @@
|
|
|
56598
56598
|
this.scenegraph.setRowHeight(row, height), this.scenegraph.updateChartSizeForResizeRowHeight(row), this.internalProps._heightResizedRowMap.add(row);
|
|
56599
56599
|
}
|
|
56600
56600
|
getRowsHeight(startRow, endRow) {
|
|
56601
|
-
var _a, _b;
|
|
56601
|
+
var _a, _b, _c;
|
|
56602
56602
|
if (startRow > endRow || 0 === this.rowCount) return 0;
|
|
56603
56603
|
startRow = Math.max(startRow, 0), endRow = Math.min(endRow, (null !== (_a = this.rowCount) && void 0 !== _a ? _a : 1 / 0) - 1);
|
|
56604
56604
|
let h = 0;
|
|
@@ -56618,7 +56618,7 @@
|
|
|
56618
56618
|
for (let i = bottomFrozenStartRow; i < endRow + 1; i++) currentBottomFrozenRowsHeight += this.getRowHeight(i);
|
|
56619
56619
|
h = this._getRangeSizeForContainerFit(startRow, endRow, h + currentBottomFrozenRowsHeight, "row");
|
|
56620
56620
|
}
|
|
56621
|
-
return Math.round(h);
|
|
56621
|
+
return (null === (_c = this.options.customConfig) || void 0 === _c ? void 0 : _c._disableColumnAndRowSizeRound) ? h : Math.round(h);
|
|
56622
56622
|
}
|
|
56623
56623
|
_getRangeSizeForContainerFit(start, end, totalSize, type = "col") {
|
|
56624
56624
|
var _a;
|