@visactor/vtable 1.17.4-alpha.4 → 1.17.4-alpha.6
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/ListTable.js +2 -2
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js +0 -1
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js +1 -2
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +5 -6
- 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/scenegraph/graphic/chart.d.ts +2 -2
- package/cjs/scenegraph/graphic/chart.js +1 -1
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.d.ts +2 -3
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +8 -14
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/index.js +4 -2
- package/cjs/scenegraph/graphic/contributions/index.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/picker-interceptor.d.ts +8 -0
- package/cjs/scenegraph/graphic/contributions/picker-interceptor.js +42 -0
- package/cjs/scenegraph/graphic/contributions/picker-interceptor.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.d.ts +6 -0
- package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.js +31 -0
- package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.js.map +1 -0
- package/cjs/state/hover/update-position.js +3 -1
- package/cjs/state/hover/update-position.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +1 -0
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +37 -25
- package/dist/vtable.min.js +1 -1
- package/es/ListTable.js +1 -3
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js +1 -2
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js +0 -3
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +6 -7
- 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/scenegraph/graphic/chart.d.ts +2 -2
- package/es/scenegraph/graphic/chart.js +2 -2
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render-helper.d.ts +2 -3
- package/es/scenegraph/graphic/contributions/chart-render-helper.js +7 -11
- package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/es/scenegraph/graphic/contributions/index.js +5 -2
- package/es/scenegraph/graphic/contributions/index.js.map +1 -1
- package/es/scenegraph/graphic/contributions/picker-interceptor.d.ts +8 -0
- package/es/scenegraph/graphic/contributions/picker-interceptor.js +37 -0
- package/es/scenegraph/graphic/contributions/picker-interceptor.js.map +1 -0
- package/es/scenegraph/graphic/contributions/vchart-graphic-picker.d.ts +6 -0
- package/es/scenegraph/graphic/contributions/vchart-graphic-picker.js +29 -0
- package/es/scenegraph/graphic/contributions/vchart-graphic-picker.js.map +1 -0
- package/es/state/hover/update-position.js +3 -1
- package/es/state/hover/update-position.js.map +1 -1
- package/es/ts-types/base-table.d.ts +1 -0
- package/es/ts-types/base-table.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/es/core/BaseTable.js
CHANGED
|
@@ -48,7 +48,7 @@ import { FocusInput } from "./FouseInput";
|
|
|
48
48
|
|
|
49
49
|
import { defaultPixelRatio } from "../tools/pixel-ratio";
|
|
50
50
|
|
|
51
|
-
import {
|
|
51
|
+
import { setBatchRenderChartCount } from "../scenegraph/graphic/contributions/chart-render-helper";
|
|
52
52
|
|
|
53
53
|
import { NumberRangeMap } from "../layout/row-height-map";
|
|
54
54
|
|
|
@@ -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;
|
|
93
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.17.4-alpha.
|
|
93
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.17.4-alpha.6", this.id = `VTable${Date.now()}`,
|
|
94
94
|
this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
|
|
95
95
|
!container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
96
96
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
|
|
@@ -886,8 +886,7 @@ export class BaseTable extends EventTarget {
|
|
|
886
886
|
const {parentElement: parentElement} = internalProps.element;
|
|
887
887
|
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element),
|
|
888
888
|
null === (_q = null === (_p = null === (_o = this.editorManager) || void 0 === _o ? void 0 : _o.editingEditor) || void 0 === _p ? void 0 : _p.onEnd) || void 0 === _q || _q.call(_p),
|
|
889
|
-
this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_r = this.reactCustomLayout) || void 0 === _r || _r.clearCache()
|
|
890
|
-
clearChartRenderQueue();
|
|
889
|
+
this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_r = this.reactCustomLayout) || void 0 === _r || _r.clearCache();
|
|
891
890
|
}
|
|
892
891
|
fireListeners(type, event) {
|
|
893
892
|
return super.fireListeners(type, event);
|
|
@@ -935,9 +934,9 @@ export class BaseTable extends EventTarget {
|
|
|
935
934
|
null == legend || legend.release();
|
|
936
935
|
})), null === (_k = internalProps.title) || void 0 === _k || _k.release(), internalProps.title = null,
|
|
937
936
|
null === (_l = internalProps.emptyTip) || void 0 === _l || _l.release(), internalProps.emptyTip = null,
|
|
938
|
-
internalProps.layoutMap.release(),
|
|
939
|
-
this.
|
|
940
|
-
|
|
937
|
+
internalProps.layoutMap.release(), this.scenegraph.clearCells(), this.scenegraph.updateComponent(),
|
|
938
|
+
this.stateManager.updateOptionSetState(), this._updateSize(), this.eventManager.updateEventBinder(),
|
|
939
|
+
options.legends) {
|
|
941
940
|
internalProps.legends = [];
|
|
942
941
|
const createLegend = Factory.getFunction("createLegend");
|
|
943
942
|
if (Array.isArray(options.legends)) {
|