@visactor/vtable-calendar 1.22.7-alpha.8 → 1.22.7-alpha.9
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
|
@@ -51605,7 +51605,7 @@
|
|
|
51605
51605
|
}
|
|
51606
51606
|
setScrollTop(top, event, triggerEvent = !0) {
|
|
51607
51607
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
51608
|
-
if (!this.table) return;
|
|
51608
|
+
if (!this.table || !this.table.scenegraph) return;
|
|
51609
51609
|
const totalHeight = this.table.getAllRowsHeight(),
|
|
51610
51610
|
sizeTolerance = (null === (_a = this.table.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) ? 1 : 0;
|
|
51611
51611
|
top = Math.max(0, Math.min(top, totalHeight - (null !== (_c = null === (_b = this.table.scenegraph) || void 0 === _b ? void 0 : _b.height) && void 0 !== _c ? _c : 0) - sizeTolerance)), top = Math.ceil(top);
|
|
@@ -56045,7 +56045,7 @@
|
|
|
56045
56045
|
}
|
|
56046
56046
|
constructor(container, options = {}) {
|
|
56047
56047
|
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;
|
|
56048
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.7-alpha.
|
|
56048
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.7-alpha.9", 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");
|
|
56049
56049
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56050
56050
|
options: options,
|
|
56051
56051
|
container: container
|