@visactor/vtable-calendar 1.16.3-alpha.1 → 1.16.3-alpha.3
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/dist/vtable-calendar.js +13 -12
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +3 -3
package/dist/vtable-calendar.js
CHANGED
|
@@ -36132,7 +36132,7 @@
|
|
|
36132
36132
|
}
|
|
36133
36133
|
}
|
|
36134
36134
|
activate(table) {
|
|
36135
|
-
var _a, _b, _c, _d
|
|
36135
|
+
var _a, _b, _c, _d;
|
|
36136
36136
|
this.active = !0;
|
|
36137
36137
|
const {
|
|
36138
36138
|
col: col,
|
|
@@ -36150,7 +36150,7 @@
|
|
|
36150
36150
|
y1: y1 - table.scrollTop,
|
|
36151
36151
|
y2: y2 - table.scrollTop
|
|
36152
36152
|
});
|
|
36153
|
-
|
|
36153
|
+
this.activeChartInstance = new this.attribute.ClassType(this.attribute.spec, merge$1({}, this.attribute.tableChartOption, {
|
|
36154
36154
|
renderCanvas: this.attribute.canvas,
|
|
36155
36155
|
mode: "desktop-browser",
|
|
36156
36156
|
canvasControled: !1,
|
|
@@ -36178,7 +36178,7 @@
|
|
|
36178
36178
|
const chartStage = this.activeChartInstance.getStage(),
|
|
36179
36179
|
matrix = this.globalTransMatrix.clone(),
|
|
36180
36180
|
stageMatrix = this.stage.window.getViewBoxTransform();
|
|
36181
|
-
matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), chartStage.window.setViewBoxTransform && chartStage.window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), this.activeChartInstance.renderSync(), null === (
|
|
36181
|
+
matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), chartStage.window.setViewBoxTransform && chartStage.window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), this.activeChartInstance.renderSync(), null === (_b = null === (_a = table.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.updateDataStateToActiveChartInstance) || void 0 === _b || _b.call(_a, this.activeChartInstance), this.activeChartInstance.on("click", params => {
|
|
36182
36182
|
var _a;
|
|
36183
36183
|
!1 === (null === (_a = this.attribute.spec.select) || void 0 === _a ? void 0 : _a.enable) ? table.scenegraph.updateChartState(null) : Chart.temp && table.scenegraph.updateChartState(null == params ? void 0 : params.datum);
|
|
36184
36184
|
}), this.activeChartInstance.on("brushEnd", params => {
|
|
@@ -36186,7 +36186,7 @@
|
|
|
36186
36186
|
table.scenegraph.updateChartState(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData), Chart.temp = 0, setTimeout(() => {
|
|
36187
36187
|
Chart.temp = 1;
|
|
36188
36188
|
}, 0);
|
|
36189
|
-
}), null === (
|
|
36189
|
+
}), null === (_d = (_c = table)._bindChartEvent) || void 0 === _d || _d.call(_c, this.activeChartInstance);
|
|
36190
36190
|
}
|
|
36191
36191
|
deactivate() {
|
|
36192
36192
|
var _a, _b;
|
|
@@ -40589,10 +40589,10 @@
|
|
|
40589
40589
|
null === (_b = null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) || void 0 === _b || _b.call(_a);
|
|
40590
40590
|
}
|
|
40591
40591
|
activateChart(col, row) {
|
|
40592
|
-
var _a, _b
|
|
40592
|
+
var _a, _b;
|
|
40593
40593
|
if (-1 === col || -1 === row) return;
|
|
40594
40594
|
const cellGroup = this.getCell(col, row);
|
|
40595
|
-
|
|
40595
|
+
null === (_b = null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.activate) || void 0 === _b || _b.call(_a, this.table);
|
|
40596
40596
|
}
|
|
40597
40597
|
removeInteractionBorder(col, row) {
|
|
40598
40598
|
const cellGroup = this.getCell(col, row);
|
|
@@ -43831,7 +43831,7 @@
|
|
|
43831
43831
|
!1 !== (null === (_a = table.eventOptions) || void 0 === _a ? void 0 : _a.preventDefaultContextMenu) && e.preventDefault();
|
|
43832
43832
|
}), table.options.canvas || handler.on(table.getContainer(), "resize", e => {
|
|
43833
43833
|
var _a;
|
|
43834
|
-
0 === e.width && 0 === e.height || ((table.autoFillWidth || table.autoFillHeight) && (null === (_a = table.editorManager) || void 0 === _a || _a.completeEdit()), isValid$3(table.options.pixelRatio) || table.setPixelRatio(getPixelRatio()), e.windowSizeNotChange || table.resize());
|
|
43834
|
+
table.isReleased || 0 === e.width && 0 === e.height || ((table.autoFillWidth || table.autoFillHeight) && (null === (_a = table.editorManager) || void 0 === _a || _a.completeEdit()), isValid$3(table.options.pixelRatio) || table.setPixelRatio(getPixelRatio()), e.windowSizeNotChange || table.resize());
|
|
43835
43835
|
});
|
|
43836
43836
|
const regex = /<tr[^>]*>([\s\S]*?)<\/tr>/g,
|
|
43837
43837
|
cellRegex = /<td[^>]*>([\s\S]*?)<\/td>/g;
|
|
@@ -46095,7 +46095,7 @@
|
|
|
46095
46095
|
right: 0,
|
|
46096
46096
|
width: 0
|
|
46097
46097
|
};
|
|
46098
|
-
if (isConsider && absoluteX > _this.tableNoFrameWidth - _this.getRightFrozenColsWidth() && absoluteX < _this.tableNoFrameWidth && absoluteX <= _this.getAllColsWidth()) for (let i = 0; i < _this.rightFrozenColCount; i++) if (absoluteX > _this.tableNoFrameWidth - _this.getColsWidth(_this.colCount - i - 1, _this.colCount - 1)) return {
|
|
46098
|
+
if (absoluteX -= _this.tableX, isConsider && absoluteX > _this.tableNoFrameWidth - _this.getRightFrozenColsWidth() && absoluteX < _this.tableNoFrameWidth && absoluteX <= _this.getAllColsWidth()) for (let i = 0; i < _this.rightFrozenColCount; i++) if (absoluteX > _this.tableNoFrameWidth - _this.getColsWidth(_this.colCount - i - 1, _this.colCount - 1)) return {
|
|
46099
46099
|
col: _this.colCount - i - 1,
|
|
46100
46100
|
left: void 0,
|
|
46101
46101
|
right: void 0,
|
|
@@ -46147,8 +46147,8 @@
|
|
|
46147
46147
|
y > _this.tableNoFrameHeight - _this.getBottomFrozenRowsHeight() && y < _this.tableNoFrameHeight && y <= _this.getAllRowsHeight() && (bottomFrozen = !0);
|
|
46148
46148
|
let rightFrozen = !1;
|
|
46149
46149
|
x > _this.tableNoFrameWidth - _this.getRightFrozenColsWidth() && x < _this.tableNoFrameWidth && x <= _this.getAllColsWidth() && (rightFrozen = !0);
|
|
46150
|
-
const colInfo = getTargetColAtConsiderRightFrozen(leftFrozen || rightFrozen ? x : x + _this.scrollLeft, rightFrozen, _this),
|
|
46151
|
-
rowInfo = getTargetRowAtConsiderBottomFrozen(topFrozen || bottomFrozen ? y : y + _this.scrollTop, bottomFrozen, _this);
|
|
46150
|
+
const colInfo = getTargetColAtConsiderRightFrozen((leftFrozen || rightFrozen ? x : x + _this.scrollLeft) + _this.tableX, rightFrozen, _this),
|
|
46151
|
+
rowInfo = getTargetRowAtConsiderBottomFrozen((topFrozen || bottomFrozen ? y : y + _this.scrollTop) + _this.tableY, bottomFrozen, _this);
|
|
46152
46152
|
if (colInfo && rowInfo) {
|
|
46153
46153
|
const {
|
|
46154
46154
|
row: row,
|
|
@@ -46990,7 +46990,7 @@
|
|
|
46990
46990
|
constructor(container) {
|
|
46991
46991
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
46992
46992
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
46993
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.16.3-alpha.
|
|
46993
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.16.3-alpha.3", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
46994
46994
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
|
|
46995
46995
|
const {
|
|
46996
46996
|
frozenColCount = 0,
|
|
@@ -47329,7 +47329,8 @@
|
|
|
47329
47329
|
return this.internalProps.pixelRatio;
|
|
47330
47330
|
}
|
|
47331
47331
|
setPixelRatio(pixelRatio) {
|
|
47332
|
-
|
|
47332
|
+
var _a;
|
|
47333
|
+
if (pixelRatio !== (null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.pixelRatio)) {
|
|
47333
47334
|
this.internalProps.pixelRatio = pixelRatio;
|
|
47334
47335
|
const canvasWidth = this.canvasWidth;
|
|
47335
47336
|
this.internalProps.calcWidthContext = {
|