@visactor/vtable 1.16.1 → 1.16.2-alpha.1
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 +4 -4
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/FouseInput.js +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.js +1 -1
- package/cjs/core/animation.js +1 -1
- package/cjs/core/factory.js +1 -1
- package/cjs/core/group-helper.js +1 -1
- package/cjs/core/record-helper.js +1 -1
- package/cjs/core/row-series-number-helper.js +1 -1
- package/cjs/core/style-helper.js +1 -1
- package/cjs/core/style.js +1 -1
- package/cjs/core/tableHelper.js +1 -1
- package/cjs/dataset/dataset-pivot-table.js +2 -1
- package/cjs/event/scroll.js +1 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/index.js +2 -1
- package/cjs/plugins/custom-cell-style.js +1 -1
- package/cjs/plugins/icons.js +1 -1
- package/cjs/plugins/invert-highlight.js +1 -1
- package/cjs/plugins/list-tree-stick-cell.js +1 -2
- package/cjs/plugins/themes.js +1 -1
- package/cjs/scenegraph/scenegraph.js +4 -4
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/state/state.js +1 -1
- package/cjs/themes/ARCO.js +1 -1
- package/cjs/themes/BRIGHT.js +1 -1
- package/cjs/themes/DARK.js +1 -1
- package/cjs/themes/DEFAULT.js +1 -1
- package/cjs/tools/diff-cell.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +1 -1
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/customElement.d.ts +4 -4
- package/cjs/ts-types/customElement.js.map +1 -1
- package/cjs/ts-types/index.d.ts +0 -1
- package/cjs/ts-types/index.js +9 -9
- package/cjs/ts-types/index.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +27 -25
- package/dist/vtable.min.js +2 -2
- package/es/core/BaseTable.js +4 -4
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/FouseInput.js +1 -1
- package/es/core/TABLE_EVENT_TYPE.js +1 -1
- package/es/core/animation.js +1 -1
- package/es/core/factory.js +1 -1
- package/es/core/group-helper.js +1 -1
- package/es/core/record-helper.js +1 -1
- package/es/core/row-series-number-helper.js +1 -1
- package/es/core/style-helper.js +1 -1
- package/es/core/style.js +1 -1
- package/es/core/tableHelper.js +1 -1
- package/es/dataset/dataset-pivot-table.js +2 -1
- package/es/event/scroll.js +1 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/index.js +2 -1
- package/es/plugins/custom-cell-style.js +1 -1
- package/es/plugins/icons.js +1 -1
- package/es/plugins/invert-highlight.js +1 -1
- package/es/plugins/list-tree-stick-cell.js +1 -2
- package/es/plugins/themes.js +1 -1
- package/es/scenegraph/scenegraph.js +4 -4
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/state/state.js +1 -1
- package/es/themes/ARCO.js +1 -1
- package/es/themes/BRIGHT.js +1 -1
- package/es/themes/DARK.js +1 -1
- package/es/themes/DEFAULT.js +1 -1
- package/es/tools/diff-cell.js.map +1 -1
- package/es/ts-types/base-table.d.ts +1 -1
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/customElement.d.ts +4 -4
- package/es/ts-types/customElement.js.map +1 -1
- package/es/ts-types/index.d.ts +0 -1
- package/es/ts-types/index.js +0 -2
- package/es/ts-types/index.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +5 -5
package/cjs/core/BaseTable.js
CHANGED
|
@@ -43,7 +43,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
43
43
|
}
|
|
44
44
|
constructor(container, options = {}) {
|
|
45
45
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
46
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.16.1", this.id = `VTable${Date.now()}`,
|
|
46
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.16.2-alpha.1", this.id = `VTable${Date.now()}`,
|
|
47
47
|
this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = (0, util_1.throttle2)(this.render.bind(this), 200),
|
|
48
48
|
!container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
49
49
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vrender_1.vglobal.isImageAnonymous = !1);
|
|
@@ -66,8 +66,8 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
66
66
|
this.columnWidthComputeMode = null !== (_b = options.columnWidthComputeMode) && void 0 !== _b ? _b : "normal";
|
|
67
67
|
const internalProps = this.internalProps = {};
|
|
68
68
|
void 0 !== showFrozenIcon && (this.showFrozenIcon = showFrozenIcon), "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showFrozenIcon = !1),
|
|
69
|
-
this.options.canvas ? (internalProps.element = this.options.canvas.parentElement,
|
|
70
|
-
internalProps.element.style.position = "relative", internalProps.focusControl = new FouseInput_1.FocusInput(this, internalProps.element),
|
|
69
|
+
this.options.canvas ? ("node" !== env_1.Env.mode && (internalProps.element = this.options.canvas.parentElement,
|
|
70
|
+
internalProps.element.style.position = "relative"), internalProps.focusControl = new FouseInput_1.FocusInput(this, internalProps.element),
|
|
71
71
|
internalProps.canvas = this.options.canvas, internalProps.context = internalProps.canvas.getContext("2d")) : "node" !== env_1.Env.mode && (internalProps.element = (0,
|
|
72
72
|
tableHelper_1.createRootElement)(this.padding), internalProps.focusControl = new FouseInput_1.FocusInput(this, internalProps.element),
|
|
73
73
|
internalProps.canvas = document.createElement("canvas"), internalProps.element.appendChild(internalProps.canvas),
|
|
@@ -1833,4 +1833,4 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
|
|
1835
1835
|
exports.BaseTable = BaseTable;
|
|
1836
|
-
//# sourceMappingURL=BaseTable.js.map
|
|
1836
|
+
//# sourceMappingURL=BaseTable.js.map
|