@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/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;
|
|
93
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.16.1", this.id = `VTable${Date.now()}`,
|
|
93
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.16.2-alpha.1", 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);
|
|
@@ -111,8 +111,8 @@ export class BaseTable extends EventTarget {
|
|
|
111
111
|
this.canvasHeight = isNumber(canvasHeight) ? canvasHeight : void 0, this.columnWidthComputeMode = null !== (_b = options.columnWidthComputeMode) && void 0 !== _b ? _b : "normal";
|
|
112
112
|
const internalProps = this.internalProps = {};
|
|
113
113
|
void 0 !== showFrozenIcon && (this.showFrozenIcon = showFrozenIcon), "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showFrozenIcon = !1),
|
|
114
|
-
this.options.canvas ? (internalProps.element = this.options.canvas.parentElement,
|
|
115
|
-
internalProps.element.style.position = "relative", internalProps.focusControl = new FocusInput(this, internalProps.element),
|
|
114
|
+
this.options.canvas ? ("node" !== Env.mode && (internalProps.element = this.options.canvas.parentElement,
|
|
115
|
+
internalProps.element.style.position = "relative"), internalProps.focusControl = new FocusInput(this, internalProps.element),
|
|
116
116
|
internalProps.canvas = this.options.canvas, internalProps.context = internalProps.canvas.getContext("2d")) : "node" !== Env.mode && (internalProps.element = createRootElement(this.padding),
|
|
117
117
|
internalProps.focusControl = new FocusInput(this, internalProps.element), internalProps.canvas = document.createElement("canvas"),
|
|
118
118
|
internalProps.element.appendChild(internalProps.canvas), internalProps.context = internalProps.canvas.getContext("2d"),
|
|
@@ -1867,4 +1867,4 @@ export class BaseTable extends EventTarget {
|
|
|
1867
1867
|
return checkHasColumnAutoWidth(this);
|
|
1868
1868
|
}
|
|
1869
1869
|
}
|
|
1870
|
-
//# sourceMappingURL=BaseTable.js.map
|
|
1870
|
+
//# sourceMappingURL=BaseTable.js.map
|