@visactor/vtable-sheet 1.22.9 → 1.22.10-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/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/vtable-sheet.js +9 -9
- package/dist/vtable-sheet.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +6 -6
package/cjs/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import VTableSheet from './components/vtable-sheet';
|
|
|
2
2
|
import type { ISheetDefine, IVTableSheetOptions } from './ts-types';
|
|
3
3
|
import * as TYPES from './ts-types';
|
|
4
4
|
import * as VTable from './vtable';
|
|
5
|
-
export declare const version = "1.22.
|
|
5
|
+
export declare const version = "1.22.10-alpha.0";
|
|
6
6
|
export { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,iBAAiB,CAAC;AAEzC,IAAA,4BAAY,GAAE,CAAC","file":"index.js","sourcesContent":["import VTableSheet from './components/vtable-sheet';\nimport type { ISheetDefine, IVTableSheetOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport * as VTable from './vtable';\nimport { importStyles } from './styles/style-manager';\nexport const version = \"1.22.10-alpha.0\";\n// 导入样式\nimportStyles();\n/**\n * @namespace VTableSheet\n */\nexport { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };\n"]}
|
package/dist/vtable-sheet.js
CHANGED
|
@@ -48472,7 +48472,7 @@
|
|
|
48472
48472
|
}
|
|
48473
48473
|
}
|
|
48474
48474
|
activate(table) {
|
|
48475
|
-
var _a, _b, _c, _d, _e;
|
|
48475
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
48476
48476
|
if (this.activeChartInstance) return;
|
|
48477
48477
|
const {
|
|
48478
48478
|
col: col,
|
|
@@ -48525,7 +48525,7 @@
|
|
|
48525
48525
|
layer.main && drawParams.clear && hoverColor && (context.beginPath(), context.fillStyle = hoverColor, context.rect(viewBox.x1, viewBox.y1, viewBox.x2 - viewBox.x1, viewBox.y2 - viewBox.y1), context.fill());
|
|
48526
48526
|
}
|
|
48527
48527
|
},
|
|
48528
|
-
componentShowContent: table.options.chartDimensionLinkage && "scatter" !== this.attribute.spec.type ? {
|
|
48528
|
+
componentShowContent: (null === (_b = table.options.chartDimensionLinkage) || void 0 === _b ? void 0 : _b.showTooltip) && "scatter" !== this.attribute.spec.type ? {
|
|
48529
48529
|
tooltip: {
|
|
48530
48530
|
dimension: !1,
|
|
48531
48531
|
mark: !0
|
|
@@ -48536,7 +48536,7 @@
|
|
|
48536
48536
|
const chartStage = this.activeChartInstance.getStage(),
|
|
48537
48537
|
matrix = this.globalTransMatrix.clone(),
|
|
48538
48538
|
stageMatrix = this.stage.window.getViewBoxTransform();
|
|
48539
|
-
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 === (
|
|
48539
|
+
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 === (_d = null === (_c = table.internalProps.layoutMap) || void 0 === _c ? void 0 : _c.updateDataStateToActiveChartInstance) || void 0 === _d || _d.call(_c, this.activeChartInstance), this.activeChartInstance.on("click", params => {
|
|
48540
48540
|
var _a;
|
|
48541
48541
|
!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);
|
|
48542
48542
|
}), this.activeChartInstance.on("brushEnd", params => {
|
|
@@ -48544,7 +48544,7 @@
|
|
|
48544
48544
|
table.scenegraph.updateChartState(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData), Chart.temp = 0, setTimeout(() => {
|
|
48545
48545
|
Chart.temp = 1;
|
|
48546
48546
|
}, 0);
|
|
48547
|
-
}), table.options.chartDimensionLinkage && this.activeChartInstance.on("dimensionHover", params => {
|
|
48547
|
+
}), (null === (_e = table.options.chartDimensionLinkage) || void 0 === _e ? void 0 : _e.showTooltip) && this.activeChartInstance.on("dimensionHover", params => {
|
|
48548
48548
|
var _a, _b;
|
|
48549
48549
|
const dimensionInfo = null == params ? void 0 : params.dimensionInfo[0],
|
|
48550
48550
|
canvasXY = null === (_a = null == params ? void 0 : params.event) || void 0 === _a ? void 0 : _a.canvas,
|
|
@@ -48607,7 +48607,7 @@
|
|
|
48607
48607
|
}
|
|
48608
48608
|
}
|
|
48609
48609
|
}
|
|
48610
|
-
}), null === (
|
|
48610
|
+
}), null === (_g = (_f = table)._bindChartEvent) || void 0 === _g || _g.call(_f, this.activeChartInstance);
|
|
48611
48611
|
}
|
|
48612
48612
|
deactivate(table, {
|
|
48613
48613
|
releaseChartInstance = !0,
|
|
@@ -53168,12 +53168,12 @@
|
|
|
53168
53168
|
resetResidentHoverIcon(col, row, this);
|
|
53169
53169
|
}
|
|
53170
53170
|
deactivateChart(col, row) {
|
|
53171
|
-
var _a, _b, _c;
|
|
53171
|
+
var _a, _b, _c, _d;
|
|
53172
53172
|
if (-1 === col || -1 === row) return;
|
|
53173
53173
|
const cellGroup = this.getCell(col, row);
|
|
53174
53174
|
if (null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) {
|
|
53175
53175
|
const chartType = (null == cellGroup ? void 0 : cellGroup.firstChild).attribute.spec.type;
|
|
53176
|
-
null === (_c = null === (_b = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _b ? void 0 : _b.deactivate) || void 0 === _c || _c.call(_b, this.table, this.table.options.chartDimensionLinkage ? {
|
|
53176
|
+
null === (_c = null === (_b = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _b ? void 0 : _b.deactivate) || void 0 === _c || _c.call(_b, this.table, (null === (_d = this.table.options.chartDimensionLinkage) || void 0 === _d ? void 0 : _d.showTooltip) ? {
|
|
53177
53177
|
releaseChartInstance: "scatter" === chartType ? col !== this.table.stateManager.hover.cellPos.col && row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount : this.table.options.indicatorsAsCol ? row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount : col !== this.table.stateManager.hover.cellPos.col || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount,
|
|
53178
53178
|
releaseColumnChartInstance: col !== this.table.stateManager.hover.cellPos.col || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount,
|
|
53179
53179
|
releaseRowChartInstance: row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount
|
|
@@ -59981,7 +59981,7 @@
|
|
|
59981
59981
|
}
|
|
59982
59982
|
constructor(container, options = {}) {
|
|
59983
59983
|
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;
|
|
59984
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.
|
|
59984
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.10-alpha.0", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
59985
59985
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
59986
59986
|
options: options,
|
|
59987
59987
|
container: container
|
|
@@ -90959,7 +90959,7 @@
|
|
|
90959
90959
|
importStyle();
|
|
90960
90960
|
}
|
|
90961
90961
|
|
|
90962
|
-
const version = "1.22.
|
|
90962
|
+
const version = "1.22.10-alpha.0";
|
|
90963
90963
|
importStyles();
|
|
90964
90964
|
|
|
90965
90965
|
exports.TYPES = index;
|