@visactor/vtable 1.23.2 → 1.23.3-alpha.0
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/body-helper/body-helper.js +2 -1
- package/cjs/body-helper/style.js +1 -2
- 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/scenegraph/scenegraph.js +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +19 -10
- package/dist/vtable.min.js +2 -2
- package/es/body-helper/body-helper.js +2 -1
- package/es/body-helper/style.js +1 -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/scenegraph/scenegraph.js +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +9 -9
|
@@ -108,4 +108,5 @@ export class BodyHelper {
|
|
|
108
108
|
var _a, _b;
|
|
109
109
|
return this.expandIcon.width + (null !== (_a = this.expandIcon.marginLeft) && void 0 !== _a ? _a : 0) + (null !== (_b = this.expandIcon.marginRight) && void 0 !== _b ? _b : 0);
|
|
110
110
|
}
|
|
111
|
-
}
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=body-helper.js.map
|
package/es/body-helper/style.js
CHANGED
|
@@ -25,5 +25,4 @@ export function of(columnStyle, bodyStyle, styleArg, StyleClassDef = Style, glob
|
|
|
25
25
|
return columnStyle || bodyStyle ? columnStyle instanceof Style ? columnStyle : "function" == typeof columnStyle ? of(columnStyle(styleArg), bodyStyle, styleArg, StyleClassDef, globalAutoWrapText, theme) : (columnStyle || (columnStyle = {}),
|
|
26
26
|
globalAutoWrapText && !isValid(columnStyle.autoWrapText) && (columnStyle.autoWrapText = !0),
|
|
27
27
|
StyleClassDef === CheckboxStyle ? new CheckboxStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_a = theme.checkboxStyle) && void 0 !== _a ? _a : {}) : StyleClassDef === RadioStyle ? new RadioStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_b = theme.radioStyle) && void 0 !== _b ? _b : {}) : StyleClassDef === SwitchStyle ? new SwitchStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_c = theme.switchStyle) && void 0 !== _c ? _c : {}) : StyleClassDef === ButtonStyle ? new ButtonStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_d = theme.buttonStyle) && void 0 !== _d ? _d : {}) : new StyleClassDef(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {})) : StyleClassDef.DEFAULT;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=style.js.map
|
|
28
|
+
}
|
package/es/core/BaseTable.js
CHANGED
|
@@ -91,7 +91,7 @@ export class BaseTable extends EventTarget {
|
|
|
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
93
|
if (super(), this.showFrozenIcon = !0, this._tableBorderWidth_left = 0, this._tableBorderWidth_right = 0,
|
|
94
|
-
this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.
|
|
94
|
+
this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.3-alpha.0",
|
|
95
95
|
this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {},
|
|
96
96
|
this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container,
|
|
97
97
|
container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null),
|
|
@@ -989,26 +989,29 @@ export class BaseTable extends EventTarget {
|
|
|
989
989
|
this.release();
|
|
990
990
|
}
|
|
991
991
|
release() {
|
|
992
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
992
|
+
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;
|
|
993
|
+
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(),
|
|
994
|
+
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(),
|
|
995
|
+
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();
|
|
993
996
|
const internalProps = this.internalProps;
|
|
994
997
|
if (this.isReleased) return;
|
|
995
|
-
null === (
|
|
996
|
-
null === (
|
|
997
|
-
null === (
|
|
998
|
-
null === (
|
|
999
|
-
this.eventManager.release(), null === (
|
|
1000
|
-
null === (
|
|
998
|
+
null === (_l = null === (_k = internalProps.tooltipHandler) || void 0 === _k ? void 0 : _k.release) || void 0 === _l || _l.call(_k),
|
|
999
|
+
null === (_o = null === (_m = internalProps.menuHandler) || void 0 === _m ? void 0 : _m.release) || void 0 === _o || _o.call(_m),
|
|
1000
|
+
null === (_p = super.release) || void 0 === _p || _p.call(this), this.pluginManager.release(),
|
|
1001
|
+
null === (_r = null === (_q = internalProps.handler) || void 0 === _q ? void 0 : _q.release) || void 0 === _r || _r.call(_q),
|
|
1002
|
+
this.eventManager.release(), null === (_t = null === (_s = internalProps.focusControl) || void 0 === _s ? void 0 : _s.release) || void 0 === _t || _t.call(_s),
|
|
1003
|
+
null === (_u = internalProps.legends) || void 0 === _u || _u.forEach((legend => {
|
|
1001
1004
|
null == legend || legend.release();
|
|
1002
|
-
})), null === (
|
|
1003
|
-
null === (
|
|
1005
|
+
})), null === (_v = internalProps.title) || void 0 === _v || _v.release(), internalProps.title = null,
|
|
1006
|
+
null === (_w = internalProps.emptyTip) || void 0 === _w || _w.release(), internalProps.emptyTip = null,
|
|
1004
1007
|
internalProps.layoutMap.release(), internalProps.releaseList && (internalProps.releaseList.forEach((releaseObj => {
|
|
1005
1008
|
var _a;
|
|
1006
1009
|
return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
|
|
1007
1010
|
})), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release();
|
|
1008
|
-
const parentElement = null === (
|
|
1011
|
+
const parentElement = null === (_x = internalProps.element) || void 0 === _x ? void 0 : _x.parentElement;
|
|
1009
1012
|
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element),
|
|
1010
|
-
null === (
|
|
1011
|
-
this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (
|
|
1013
|
+
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),
|
|
1014
|
+
this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_1 = this.reactCustomLayout) || void 0 === _1 || _1.clearCache(),
|
|
1012
1015
|
clearChartRenderQueue();
|
|
1013
1016
|
}
|
|
1014
1017
|
fireListeners(type, event) {
|