@visactor/vtable 1.22.8-alpha.2 → 1.22.8-alpha.3
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/cjs/core/BaseTable.js +16 -13
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/plugins/custom-cell-style.js +1 -1
- package/cjs/plugins/index.js +1 -1
- package/cjs/scenegraph/scenegraph.js +1 -1
- package/cjs/state/state.js +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +154 -66
- package/dist/vtable.min.js +2 -2
- package/es/core/BaseTable.js +16 -13
- package/es/core/BaseTable.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/plugins/custom-cell-style.js +1 -1
- package/es/plugins/index.js +1 -1
- package/es/scenegraph/scenegraph.js +1 -1
- package/es/state/state.js +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +8 -8
package/es/core/BaseTable.js
CHANGED
|
@@ -90,7 +90,7 @@ export class BaseTable extends EventTarget {
|
|
|
90
90
|
}
|
|
91
91
|
constructor(container, options = {}) {
|
|
92
92
|
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;
|
|
93
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.8-alpha.
|
|
93
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.8-alpha.3", this.id = `VTable${Date.now()}`,
|
|
94
94
|
this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
|
|
95
95
|
"node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container,
|
|
96
96
|
container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
@@ -975,27 +975,30 @@ export class BaseTable extends EventTarget {
|
|
|
975
975
|
this.release();
|
|
976
976
|
}
|
|
977
977
|
release() {
|
|
978
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
978
|
+
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, _0, _1;
|
|
979
|
+
null === (_c = null === (_b = null === (_a = this.scenegraph) || void 0 === _a ? void 0 : _a.component) || void 0 === _b ? void 0 : _b.vScrollBar) || void 0 === _c || _c.release(),
|
|
980
|
+
null === (_f = null === (_e = null === (_d = this.scenegraph) || void 0 === _d ? void 0 : _d.component) || void 0 === _e ? void 0 : _e.hScrollBar) || void 0 === _f || _f.release(),
|
|
981
|
+
this.animationManager.clear(), this.animationManager.ticker.release(), null === (_j = null === (_h = null === (_g = this.scenegraph) || void 0 === _g ? void 0 : _g.stage) || void 0 === _h ? void 0 : _h.ticker) || void 0 === _j || _j.release();
|
|
979
982
|
const internalProps = this.internalProps;
|
|
980
983
|
if (this.isReleased) return;
|
|
981
|
-
null === (
|
|
982
|
-
null === (
|
|
983
|
-
null === (
|
|
984
|
-
null === (
|
|
985
|
-
this.eventManager.release(), null === (
|
|
986
|
-
null === (
|
|
984
|
+
null === (_l = null === (_k = internalProps.tooltipHandler) || void 0 === _k ? void 0 : _k.release) || void 0 === _l || _l.call(_k),
|
|
985
|
+
null === (_o = null === (_m = internalProps.menuHandler) || void 0 === _m ? void 0 : _m.release) || void 0 === _o || _o.call(_m),
|
|
986
|
+
null === (_p = super.release) || void 0 === _p || _p.call(this), this.pluginManager.release(),
|
|
987
|
+
null === (_r = null === (_q = internalProps.handler) || void 0 === _q ? void 0 : _q.release) || void 0 === _r || _r.call(_q),
|
|
988
|
+
this.eventManager.release(), null === (_t = null === (_s = internalProps.focusControl) || void 0 === _s ? void 0 : _s.release) || void 0 === _t || _t.call(_s),
|
|
989
|
+
null === (_u = internalProps.legends) || void 0 === _u || _u.forEach((legend => {
|
|
987
990
|
null == legend || legend.release();
|
|
988
|
-
})), null === (
|
|
989
|
-
null === (
|
|
991
|
+
})), null === (_v = internalProps.title) || void 0 === _v || _v.release(), internalProps.title = null,
|
|
992
|
+
null === (_w = internalProps.emptyTip) || void 0 === _w || _w.release(), internalProps.emptyTip = null,
|
|
990
993
|
internalProps.layoutMap.release(), internalProps.releaseList && (internalProps.releaseList.forEach((releaseObj => {
|
|
991
994
|
var _a;
|
|
992
995
|
return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
|
|
993
996
|
})), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release(),
|
|
994
997
|
internalProps.focusControl.release();
|
|
995
|
-
const parentElement = null === (
|
|
998
|
+
const parentElement = null === (_x = internalProps.element) || void 0 === _x ? void 0 : _x.parentElement;
|
|
996
999
|
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element),
|
|
997
|
-
null === (
|
|
998
|
-
this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (
|
|
1000
|
+
null === (_0 = null === (_z = null === (_y = this.editorManager) || void 0 === _y ? void 0 : _y.editingEditor) || void 0 === _z ? void 0 : _z.onEnd) || void 0 === _0 || _0.call(_z),
|
|
1001
|
+
this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_1 = this.reactCustomLayout) || void 0 === _1 || _1.clearCache(),
|
|
999
1002
|
clearChartRenderQueue();
|
|
1000
1003
|
}
|
|
1001
1004
|
fireListeners(type, event) {
|