@visactor/vtable-calendar 1.20.1 → 1.20.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
|
@@ -31003,7 +31003,7 @@
|
|
|
31003
31003
|
width: width,
|
|
31004
31004
|
height: height
|
|
31005
31005
|
} = item.attribute;
|
|
31006
|
-
contentWidth < startX + width && (startX = 0, startY += height + spaceRow, pages += 1), index > 0 && item.setAttributes({
|
|
31006
|
+
contentWidth < startX + width && index > 0 && (startX = 0, startY += height + spaceRow, pages += 1), index > 0 && item.setAttributes({
|
|
31007
31007
|
x: startX,
|
|
31008
31008
|
y: startY
|
|
31009
31009
|
}), startX += spaceCol + width;
|
|
@@ -31014,9 +31014,10 @@
|
|
|
31014
31014
|
if (compWidth = this._itemMaxWidth * maxCol + (maxCol - 1) * spaceCol, compHeight = maxHeight, contentWidth = compWidth, comp = this._createPager(compStyle), this._pagerComponent = comp, this._innerView.add(comp), contentHeight = maxHeight - comp.AABBBounds.height() - pagerSpace - renderStartY, contentHeight <= 0) return this._innerView.removeChild(comp), !1;
|
|
31015
31015
|
itemsContainer.getChildren().forEach((item, index) => {
|
|
31016
31016
|
const {
|
|
31017
|
+
width: width,
|
|
31017
31018
|
height: height
|
|
31018
31019
|
} = item.attribute;
|
|
31019
|
-
contentHeight < startY + height && (startY = 0, startX += this._itemMaxWidth + spaceCol, pages += 1), index > 0 && item.setAttributes({
|
|
31020
|
+
contentHeight < startY + height && index > 0 && (startY = 0, startX += this._itemMaxWidth + spaceCol, pages += 1), index > 0 && item.setAttributes({
|
|
31020
31021
|
x: startX,
|
|
31021
31022
|
y: startY
|
|
31022
31023
|
}), startY += spaceRow + height;
|
|
@@ -48729,7 +48730,7 @@
|
|
|
48729
48730
|
return col < this.table.rowHeaderLevelCount ? this.table.getColsWidth(0, col - 1) : col < this.table.colCount - this.table.rightFrozenColCount ? this.table.getColsWidth(this.table.rowHeaderLevelCount, col - 1) : col < this.table.colCount ? this.table.getColsWidth(this.table.colCount - this.table.bottomFrozenRowCount, col - 1) : 0;
|
|
48730
48731
|
}
|
|
48731
48732
|
getCellGroupY(row) {
|
|
48732
|
-
return row < this.table.frozenRowCount ? this.table.getRowsHeight(0, row - 1) : row < this.table.rowCount - this.table.bottomFrozenRowCount ? this.table.getRowsHeight(this.table.
|
|
48733
|
+
return row < this.table.frozenRowCount ? this.table.getRowsHeight(0, row - 1) : row < this.table.rowCount - this.table.bottomFrozenRowCount ? this.table.getRowsHeight(this.table.columnHeaderLevelCount, row - 1) : row < this.table.rowCount ? this.table.getRowsHeight(this.table.rowCount - this.table.bottomFrozenRowCount, row - 1) : 0;
|
|
48733
48734
|
}
|
|
48734
48735
|
getCellGroupX(col) {
|
|
48735
48736
|
return col < this.table.rowHeaderLevelCount ? this.table.getColsWidth(0, col - 1) : col < this.table.colCount - this.table.rightFrozenColCount ? this.table.getColsWidth(this.table.rowHeaderLevelCount, col - 1) : col < this.table.colCount ? this.table.getColsWidth(this.table.colCount - this.table.rightFrozenColCount, col - 1) : 0;
|
|
@@ -55462,7 +55463,7 @@
|
|
|
55462
55463
|
}
|
|
55463
55464
|
constructor(container, options = {}) {
|
|
55464
55465
|
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;
|
|
55465
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.20.
|
|
55466
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.20.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");
|
|
55466
55467
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
55467
55468
|
options: options,
|
|
55468
55469
|
container: container
|