@visactor/vtable-calendar 1.17.4-alpha.6 → 1.17.4-alpha.8

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.
@@ -36718,10 +36718,7 @@
36718
36718
  let fullImage = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
36719
36719
  let viewBox = arguments.length > 2 ? arguments[2] : undefined;
36720
36720
  if ("released" === stage.releaseStatus) return null;
36721
- const matrix = stage.window.getViewBoxTransform(),
36722
- window = renderToNewWindow(stage, fullImage, viewBox);
36723
- window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, 0, 0), stage.renderTo(window);
36724
- const c = window.getNativeHandler();
36721
+ const c = renderToNewWindow(stage, fullImage, viewBox).getNativeHandler();
36725
36722
  return c.nativeCanvas ? c.nativeCanvas : null;
36726
36723
  }
36727
36724
  function renderToNewWindow(stage) {
@@ -36747,7 +36744,7 @@
36747
36744
  canvasControled: !0,
36748
36745
  offscreen: !0,
36749
36746
  title: ""
36750
- }), stage.renderTo(window), window;
36747
+ }), window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, 0, 0), stage.renderTo(window), window;
36751
36748
  }
36752
36749
 
36753
36750
  var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -45050,7 +45047,7 @@
45050
45047
  }
45051
45048
  release() {
45052
45049
  this.gesture.release(), this.globalEventListeners.forEach(item => {
45053
- "document" === item.env ? document.removeEventListener(item.name, item.callback) : "body" === item.env ? document.body.removeEventListener(item.name, item.callback) : "window" === item.env && window.removeEventListener(item.name, item.callback);
45050
+ "document" === item.env ? document.removeEventListener(item.name, item.callback) : "body" === item.env ? document.body.removeEventListener(item.name, item.callback) : "window" === item.env ? window.removeEventListener(item.name, item.callback) : "vglobal" === item.env && vglobal.removeEventListener(item.name, item.callback);
45054
45051
  }), this.globalEventListeners = [];
45055
45052
  }
45056
45053
  enableScroll() {
@@ -47630,7 +47627,7 @@
47630
47627
  constructor(container) {
47631
47628
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
47632
47629
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
47633
- if (super(), this.showFrozenIcon = !0, this.version = "1.17.4-alpha.6", 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");
47630
+ if (super(), this.showFrozenIcon = !0, this.version = "1.17.4-alpha.8", 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");
47634
47631
  !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
47635
47632
  const {
47636
47633
  frozenColCount = 0,