@visactor/vtable 0.17.9 → 0.17.10-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/PivotTable.js +7 -1
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/event/scroll.js +1 -0
- package/cjs/event/util.js +0 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/themes/BRIGHT.js +2 -1
- package/cjs/themes/DARK.js +1 -2
- package/dist/vtable.js +19 -2
- package/dist/vtable.min.js +2 -2
- package/es/PivotTable.js +7 -1
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/event/scroll.js +2 -1
- package/es/event/util.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/themes/BRIGHT.js +2 -1
- package/es/themes/DARK.js +1 -2
- package/package.json +3 -3
package/cjs/event/scroll.js
CHANGED
|
@@ -51,5 +51,6 @@ function isScrollToRight(deltaX, state) {
|
|
|
51
51
|
return 0 !== totalWidth && deltaX >= 0 && Math.abs(state.scroll.horizontalBarPos - totalWidth) < 1;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
//# sourceMappingURL=scroll.js.map
|
|
54
55
|
exports.handleWhell = handleWhell, exports.isVerticalScrollable = isVerticalScrollable,
|
|
55
56
|
exports.isHorizontalScrollable = isHorizontalScrollable;
|
package/cjs/event/util.js
CHANGED
package/cjs/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { updateCell } from './scenegraph/group-creater/cell-helper';
|
|
|
15
15
|
import { renderChart } from './scenegraph/graphic/contributions/chart-render-helper';
|
|
16
16
|
export { getDataCellPath } from './tools/get-data-path';
|
|
17
17
|
export * from './render/jsx';
|
|
18
|
-
export declare const version = "0.17.
|
|
18
|
+
export declare const version = "0.17.10-alpha.1";
|
|
19
19
|
export { TYPES, core, ListTable, ListTableConstructorOptions, PivotTable, PivotTableConstructorOptions, PivotChartConstructorOptions, PivotChart, IHeaderTreeDefine, IDimension, IIndicator, ITitleDefine, ICornerDefine, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, themes, data, MousePointerCellEvent, getIcons, clearGlobal, register, DataStatistics, CustomLayout, updateCell, renderChart, graphicUtil };
|
|
20
20
|
declare function getIcons(): {
|
|
21
21
|
[key: string]: TYPES.ColumnIconOption;
|
package/cjs/index.js
CHANGED
|
@@ -128,6 +128,6 @@ Object.defineProperty(exports, "getDataCellPath", {
|
|
|
128
128
|
get: function() {
|
|
129
129
|
return get_data_path_1.getDataCellPath;
|
|
130
130
|
}
|
|
131
|
-
}), __exportStar(require("./render/jsx"), exports), exports.version = "0.17.
|
|
131
|
+
}), __exportStar(require("./render/jsx"), exports), exports.version = "0.17.10-alpha.1",
|
|
132
132
|
exports.getIcons = getIcons, exports.clearGlobal = clearGlobal, TYPES.AggregationType;
|
|
133
133
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAgD;AA4F9C,4FA5FO,qBAAW,OA4FP;AA1Fb,kDAAoC;AAoDlC,sBAAK;AAnDP,6CAA+B;AAoD7B,oBAAI;AAnDN,6CAA+B;AA2E7B,oBAAI;AA1EN,+CAAiC;AACjC,qDAAuC;AA8ErC,4BAAQ;AA7EV,iDAAmC;AAuEjC,wBAAM;AAtER,yEAA2D;AAgFzD,wCAAc;AA1DhB,2CAAwC;AA0BtC,0FA1BO,qBAAS,OA0BP;AAzBX,6CAA0C;A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phicUtil } from '@visactor/vrender';\n\nimport * as TYPES from './ts-types';\nimport * as core from './core';\nimport * as data from './data';\nimport * as icons from './icons';\nimport * as register from './register';\nimport * as themes from './themes';\nimport * as DataStatistics from './dataset/DataStatistics';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n ListTableConstructorOptions,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n TextAlignType,\n TextBaselineType\n} from './ts-types';\nimport { ListTable } from './ListTable';\nimport { PivotTable } from './PivotTable';\nimport { PivotChart } from './PivotChart';\nimport type { MousePointerCellEvent } from './ts-types/events';\nimport * as CustomLayout from './render/layout';\n\nimport { updateCell } from './scenegraph/group-creater/cell-helper';\nimport { renderChart } from './scenegraph/graphic/contributions/chart-render-helper';\n\n// import { container, loadCanvasPicker } from '@visactor/vrender';\n// loadCanvasPicker(container);\n\nexport { getDataCellPath } from './tools/get-data-path';\nexport * from './render/jsx';\n\nexport const version = \"0.17.10-alpha.1\";\n/**\n * @namespace VTable\n */\nexport {\n /**\n * Types\n * @namespace VTable.TYPES\n */\n TYPES,\n core,\n ListTable,\n ListTableConstructorOptions,\n PivotTable,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n PivotChart,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n themes,\n data,\n MousePointerCellEvent,\n getIcons,\n clearGlobal,\n //plugin registers\n register,\n /**\n * 暂不推荐使用\n */\n DataStatistics,\n CustomLayout,\n updateCell,\n renderChart,\n graphicUtil\n};\n\n/** @private */\nfunction getIcons(): {\n [key: string]: TYPES.ColumnIconOption;\n} {\n return icons.get();\n}\n/** 清理内部的全局变量 如注册的icon theme等 以及共享的header column类实例 */\nfunction clearGlobal() {\n register.clearAll();\n // headers.type.clearGlobal();\n // columns.type.clearGlobal();\n}\nTYPES.AggregationType;\n"]}
|
package/cjs/themes/BRIGHT.js
CHANGED
package/cjs/themes/DARK.js
CHANGED
package/dist/vtable.js
CHANGED
|
@@ -50300,7 +50300,7 @@
|
|
|
50300
50300
|
return TABLE_EVENT_TYPE;
|
|
50301
50301
|
}
|
|
50302
50302
|
options;
|
|
50303
|
-
version = "0.17.
|
|
50303
|
+
version = "0.17.10-alpha.1";
|
|
50304
50304
|
pagination;
|
|
50305
50305
|
id = `VTable${Date.now()}`;
|
|
50306
50306
|
headerStyleCache;
|
|
@@ -59617,6 +59617,14 @@
|
|
|
59617
59617
|
return false;
|
|
59618
59618
|
}
|
|
59619
59619
|
toggleHierarchyState(col, row) {
|
|
59620
|
+
let notFillWidth = false;
|
|
59621
|
+
let notFillHeight = false;
|
|
59622
|
+
if (this.autoFillWidth) {
|
|
59623
|
+
notFillWidth = this.getAllColsWidth() <= this.tableNoFrameWidth;
|
|
59624
|
+
}
|
|
59625
|
+
if (this.autoFillHeight) {
|
|
59626
|
+
notFillHeight = this.getAllRowsHeight() <= this.tableNoFrameHeight;
|
|
59627
|
+
}
|
|
59620
59628
|
const hierarchyState = this.getHierarchyState(col, row);
|
|
59621
59629
|
if (hierarchyState === HierarchyState.expand) {
|
|
59622
59630
|
this.fireListeners(PIVOT_TABLE_EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, {
|
|
@@ -59638,6 +59646,15 @@
|
|
|
59638
59646
|
this.clearCellStyleCache();
|
|
59639
59647
|
this.scenegraph.updateHierarchyIcon(col, row);
|
|
59640
59648
|
this.scenegraph.updateRow(result.removeCellPositions, result.addCellPositions, result.updateCellPositions);
|
|
59649
|
+
if (this.autoFillWidth && !notFillWidth) {
|
|
59650
|
+
notFillWidth = this.getAllColsWidth() <= this.tableNoFrameWidth;
|
|
59651
|
+
}
|
|
59652
|
+
if (this.autoFillHeight && !notFillHeight) {
|
|
59653
|
+
notFillHeight = this.getAllRowsHeight() <= this.tableNoFrameHeight;
|
|
59654
|
+
}
|
|
59655
|
+
if (this.widthMode === 'adaptive' || notFillWidth || this.heightMode === 'adaptive' || notFillHeight) {
|
|
59656
|
+
this.scenegraph.updateChartSize(0);
|
|
59657
|
+
}
|
|
59641
59658
|
}
|
|
59642
59659
|
getHeaderCellAddressByPath(dimensionPaths) {
|
|
59643
59660
|
const cellAddress = this.internalProps.layoutMap.getPivotCellAdress(dimensionPaths);
|
|
@@ -61273,7 +61290,7 @@
|
|
|
61273
61290
|
return new Tag$1(params ? params.attribute : {});
|
|
61274
61291
|
}
|
|
61275
61292
|
|
|
61276
|
-
const version = "0.17.
|
|
61293
|
+
const version = "0.17.10-alpha.1";
|
|
61277
61294
|
function getIcons() {
|
|
61278
61295
|
return get$2();
|
|
61279
61296
|
}
|