@visactor/vtable-calendar 1.17.3-alpha.0 → 1.17.3-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
|
@@ -47523,7 +47523,7 @@
|
|
|
47523
47523
|
constructor(container) {
|
|
47524
47524
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
47525
47525
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
47526
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.17.3-alpha.
|
|
47526
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.17.3-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");
|
|
47527
47527
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
|
|
47528
47528
|
const {
|
|
47529
47529
|
frozenColCount = 0,
|
|
@@ -47907,9 +47907,9 @@
|
|
|
47907
47907
|
}
|
|
47908
47908
|
}
|
|
47909
47909
|
updateViewBox(newViewBox) {
|
|
47910
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
47911
|
-
const oldWidth = (null !== (_b = null === (_a = this.options) || void 0 === _a ? void 0 : _a.viewBox.x2) && void 0 !==
|
|
47912
|
-
oldHeight = (null !== (
|
|
47910
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
47911
|
+
const oldWidth = (null !== (_c = null === (_b = null === (_a = this.options) || void 0 === _a ? void 0 : _a.viewBox) || void 0 === _b ? void 0 : _b.x2) && void 0 !== _c ? _c : 0) - (null !== (_f = null === (_e = null === (_d = this.options) || void 0 === _d ? void 0 : _d.viewBox) || void 0 === _e ? void 0 : _e.x1) && void 0 !== _f ? _f : 0),
|
|
47912
|
+
oldHeight = (null !== (_j = null === (_h = null === (_g = this.options) || void 0 === _g ? void 0 : _g.viewBox) || void 0 === _h ? void 0 : _h.y2) && void 0 !== _j ? _j : 0) - (null !== (_m = null === (_l = null === (_k = this.options) || void 0 === _k ? void 0 : _k.viewBox) || void 0 === _l ? void 0 : _l.y1) && void 0 !== _m ? _m : 0),
|
|
47913
47913
|
newWidth = newViewBox.x2 - newViewBox.x1,
|
|
47914
47914
|
newHeight = newViewBox.y2 - newViewBox.y1;
|
|
47915
47915
|
this.options.viewBox = newViewBox, oldWidth !== newWidth || oldHeight !== newHeight ? this.resize() : this.scenegraph.stage.setViewBox(this.options.viewBox, !0);
|