@visactor/vtable-calendar 1.18.3-alpha.0 → 1.18.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
|
@@ -49548,7 +49548,7 @@
|
|
|
49548
49548
|
constructor(container) {
|
|
49549
49549
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
49550
49550
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
49551
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.18.3-alpha.
|
|
49551
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.18.3-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");
|
|
49552
49552
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
49553
49553
|
options: options,
|
|
49554
49554
|
container: container
|
|
@@ -51307,9 +51307,11 @@
|
|
|
51307
51307
|
this.render();
|
|
51308
51308
|
const stage = this.scenegraph.stage;
|
|
51309
51309
|
if (stage) {
|
|
51310
|
-
|
|
51310
|
+
let contentWidth = this.tableX + this.getAllColsWidth(),
|
|
51311
51311
|
contentHeight = this.tableY + this.getAllRowsHeight();
|
|
51312
|
-
if (
|
|
51312
|
+
if (this.internalProps.legends && this.internalProps.legends.forEach(legend => {
|
|
51313
|
+
"right" === legend.orient ? contentWidth = Math.max(contentWidth, legend.legendComponent.globalAABBBounds.x2) : "bottom" === legend.orient && (contentHeight = Math.max(contentHeight, legend.legendComponent.globalAABBBounds.y2));
|
|
51314
|
+
}), this.internalProps.title && ("right" === this.internalProps.title._titleOption.orient ? contentWidth = Math.max(contentWidth, this.internalProps.title.getComponentGraphic().globalAABBBounds.x2) : "bottom" === this.internalProps.title._titleOption.orient && (contentHeight = Math.max(contentHeight, this.internalProps.title.getComponentGraphic().globalAABBBounds.y2))), contentWidth >= this.canvasWidth && contentHeight >= this.canvasHeight) {
|
|
51313
51315
|
stage.render();
|
|
51314
51316
|
return stage.window.getImageBuffer(type);
|
|
51315
51317
|
}
|