@visactor/vtable 1.1.2-alpha.0 → 1.1.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/core/BaseTable.js +2 -12
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/event/EventHandler.d.ts +1 -2
- package/cjs/event/EventHandler.js +3 -6
- package/cjs/event/EventHandler.js.map +1 -1
- package/cjs/event/listener/container-dom.js +2 -3
- 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/scenegraph/graphic/contributions/group-contribution-render.js +24 -16
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/utils/break-string.js +3 -2
- package/cjs/scenegraph/utils/break-string.js.map +1 -1
- package/cjs/tools/pixel-ratio.d.ts +0 -1
- package/cjs/tools/pixel-ratio.js +5 -6
- package/cjs/tools/pixel-ratio.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +0 -1
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +70158 -71790
- package/dist/vtable.min.js +12 -12
- package/es/core/BaseTable.js +2 -12
- package/es/core/BaseTable.js.map +1 -1
- package/es/event/EventHandler.d.ts +1 -2
- package/es/event/EventHandler.js +3 -6
- package/es/event/EventHandler.js.map +1 -1
- package/es/event/listener/container-dom.js +1 -4
- 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/scenegraph/graphic/contributions/group-contribution-render.js +24 -16
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +1 -1
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/utils/break-string.js +4 -1
- package/es/scenegraph/utils/break-string.js.map +1 -1
- package/es/tools/pixel-ratio.d.ts +0 -1
- package/es/tools/pixel-ratio.js +4 -5
- package/es/tools/pixel-ratio.js.map +1 -1
- package/es/ts-types/base-table.d.ts +0 -1
- package/es/ts-types/base-table.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +6 -6
package/es/core/BaseTable.js
CHANGED
|
@@ -84,7 +84,7 @@ export class BaseTable extends EventTarget {
|
|
|
84
84
|
}
|
|
85
85
|
constructor(container, options = {}) {
|
|
86
86
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
87
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.1.
|
|
87
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.1.3-alpha.0", this.id = `VTable${Date.now()}`,
|
|
88
88
|
this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
|
|
89
89
|
!container && "node" !== options.mode) throw new Error("vtable's container is undefined");
|
|
90
90
|
const {frozenColCount: frozenColCount = 0, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, widthAdaptiveMode: widthAdaptiveMode = "only-body", heightAdaptiveMode: heightAdaptiveMode = "only-body", keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", dragHeaderMode: dragHeaderMode, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, mode: mode, modeParams: modeParams, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight, clearDOM: clearDOM = !0} = options;
|
|
@@ -359,17 +359,7 @@ export class BaseTable extends EventTarget {
|
|
|
359
359
|
return Math.max(_applyColWidthLimits(limits, orgWidth), 0);
|
|
360
360
|
}
|
|
361
361
|
setPixelRatio(pixelRatio) {
|
|
362
|
-
|
|
363
|
-
this.internalProps.pixelRatio = pixelRatio;
|
|
364
|
-
const canvasWidth = this.options.canvasWidth;
|
|
365
|
-
this.internalProps.calcWidthContext = {
|
|
366
|
-
_: this.internalProps,
|
|
367
|
-
get full() {
|
|
368
|
-
var _a;
|
|
369
|
-
return "node" === Env.mode ? canvasWidth / (null != pixelRatio ? pixelRatio : 1) : this._.canvas.width / (null !== (_a = this._.context.pixelRatio) && void 0 !== _a ? _a : window.devicePixelRatio);
|
|
370
|
-
}
|
|
371
|
-
}, this.scenegraph.setPixelRatio(pixelRatio);
|
|
372
|
-
}
|
|
362
|
+
this.internalProps.pixelRatio = pixelRatio, this.scenegraph.setPixelRatio(pixelRatio);
|
|
373
363
|
}
|
|
374
364
|
_updateSize() {
|
|
375
365
|
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;
|