@visactor/vtable 1.16.3-alpha.0 → 1.16.3-alpha.2
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 +2 -3
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/animation.js +17 -6
- package/cjs/core/animation.js.map +1 -1
- package/cjs/core/utils/get-cell-position.js +4 -3
- package/cjs/core/utils/get-cell-position.js.map +1 -1
- package/cjs/event/listener/container-dom.js +1 -1
- package/cjs/event/listener/container-dom.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/vrender.js.map +1 -1
- package/dist/vtable.js +32 -11
- package/dist/vtable.min.js +1 -1
- package/es/core/BaseTable.js +2 -3
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/animation.js +16 -5
- package/es/core/animation.js.map +1 -1
- package/es/core/utils/get-cell-position.js +4 -3
- package/es/core/utils/get-cell-position.js.map +1 -1
- package/es/event/listener/container-dom.js +1 -1
- package/es/event/listener/container-dom.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/vrender.js.map +1 -1
- package/package.json +2 -2
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.3-alpha.
|
|
46
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.16.3-alpha.2", 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);
|
|
@@ -398,8 +398,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
398
398
|
return this.internalProps.pixelRatio;
|
|
399
399
|
}
|
|
400
400
|
setPixelRatio(pixelRatio) {
|
|
401
|
-
|
|
402
|
-
if (pixelRatio !== (null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.pixelRatio)) {
|
|
401
|
+
if (pixelRatio !== this.internalProps.pixelRatio) {
|
|
403
402
|
this.internalProps.pixelRatio = pixelRatio;
|
|
404
403
|
const canvasWidth = this.canvasWidth;
|
|
405
404
|
this.internalProps.calcWidthContext = {
|