@visactor/vtable 1.9.2-alpha.6 → 1.9.2-alpha.7

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.
Files changed (85) hide show
  1. package/cjs/ListTable.js +2 -1
  2. package/cjs/ListTable.js.map +1 -1
  3. package/cjs/components/menu/dom/logic/MenuElement.js +1 -1
  4. package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -1
  5. package/cjs/components/menu/dom/logic/MenuElementStyle.js +1 -1
  6. package/cjs/components/menu/dom/logic/MenuElementStyle.js.map +1 -1
  7. package/cjs/core/BaseTable.js +1 -1
  8. package/cjs/core/BaseTable.js.map +1 -1
  9. package/cjs/core/animation.js +2 -3
  10. package/cjs/core/animation.js.map +1 -1
  11. package/cjs/event/listener/table-group.js +3 -3
  12. package/cjs/event/listener/table-group.js.map +1 -1
  13. package/cjs/index.d.ts +1 -3
  14. package/cjs/index.js +2 -20
  15. package/cjs/index.js.map +1 -1
  16. package/cjs/plugins/chartModules.js +1 -1
  17. package/cjs/scenegraph/graphic/group.js +1 -2
  18. package/cjs/scenegraph/graphic/group.js.map +1 -1
  19. package/cjs/scenegraph/group-creater/cell-helper.js +2 -3
  20. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  21. package/cjs/scenegraph/layout/compute-row-height.js +1 -1
  22. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  23. package/cjs/scenegraph/utils/cell-border-stroke-width.js +9 -4
  24. package/cjs/scenegraph/utils/cell-border-stroke-width.js.map +1 -1
  25. package/cjs/state/state.js +2 -2
  26. package/cjs/state/state.js.map +1 -1
  27. package/cjs/tools/style.d.ts +2 -0
  28. package/cjs/tools/style.js +17 -4
  29. package/cjs/tools/style.js.map +1 -1
  30. package/cjs/ts-types/base-table.d.ts +2 -4
  31. package/cjs/ts-types/base-table.js.map +1 -1
  32. package/cjs/vrender.js.map +1 -1
  33. package/dist/vtable.js +128 -276
  34. package/dist/vtable.min.js +2 -2
  35. package/es/ListTable.js +1 -1
  36. package/es/ListTable.js.map +1 -1
  37. package/es/components/menu/dom/logic/MenuElement.js +1 -1
  38. package/es/components/menu/dom/logic/MenuElement.js.map +1 -1
  39. package/es/components/menu/dom/logic/MenuElementStyle.js +1 -1
  40. package/es/components/menu/dom/logic/MenuElementStyle.js.map +1 -1
  41. package/es/core/BaseTable.js +1 -1
  42. package/es/core/BaseTable.js.map +1 -1
  43. package/es/core/animation.js +3 -4
  44. package/es/core/animation.js.map +1 -1
  45. package/es/event/listener/table-group.js +3 -3
  46. package/es/event/listener/table-group.js.map +1 -1
  47. package/es/index.d.ts +1 -3
  48. package/es/index.js +1 -5
  49. package/es/index.js.map +1 -1
  50. package/es/plugins/chartModules.js +1 -1
  51. package/es/scenegraph/graphic/group.js +1 -2
  52. package/es/scenegraph/graphic/group.js.map +1 -1
  53. package/es/scenegraph/group-creater/cell-helper.js +1 -4
  54. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  55. package/es/scenegraph/layout/compute-row-height.js +1 -1
  56. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  57. package/es/scenegraph/utils/cell-border-stroke-width.js +3 -1
  58. package/es/scenegraph/utils/cell-border-stroke-width.js.map +1 -1
  59. package/es/state/state.js +2 -2
  60. package/es/state/state.js.map +1 -1
  61. package/es/tools/style.d.ts +2 -0
  62. package/es/tools/style.js +10 -0
  63. package/es/tools/style.js.map +1 -1
  64. package/es/ts-types/base-table.d.ts +2 -4
  65. package/es/ts-types/base-table.js.map +1 -1
  66. package/es/vrender.js.map +1 -1
  67. package/package.json +7 -7
  68. package/cjs/plugins/carousel-animation.d.ts +0 -29
  69. package/cjs/plugins/carousel-animation.js +0 -60
  70. package/cjs/plugins/carousel-animation.js.map +0 -1
  71. package/cjs/plugins/invert-highlight.d.ts +0 -19
  72. package/cjs/plugins/invert-highlight.js +0 -72
  73. package/cjs/plugins/invert-highlight.js.map +0 -1
  74. package/cjs/tools/cell-range.d.ts +0 -2
  75. package/cjs/tools/cell-range.js +0 -10
  76. package/cjs/tools/cell-range.js.map +0 -1
  77. package/es/plugins/carousel-animation.d.ts +0 -29
  78. package/es/plugins/carousel-animation.js +0 -52
  79. package/es/plugins/carousel-animation.js.map +0 -1
  80. package/es/plugins/invert-highlight.d.ts +0 -19
  81. package/es/plugins/invert-highlight.js +0 -69
  82. package/es/plugins/invert-highlight.js.map +0 -1
  83. package/es/tools/cell-range.d.ts +0 -2
  84. package/es/tools/cell-range.js +0 -4
  85. package/es/tools/cell-range.js.map +0 -1
@@ -1,19 +0,0 @@
1
- import type { Group } from '../scenegraph/graphic/group';
2
- import type { CellRange } from '../ts-types';
3
- import type { BaseTableAPI } from '../ts-types/base-table';
4
- export interface InvertHighlightPluginOptions {
5
- fill?: string;
6
- opacity?: number;
7
- }
8
- export declare class InvertHighlightPlugin {
9
- table: BaseTableAPI;
10
- range?: CellRange;
11
- _fill: string;
12
- _opacity: number;
13
- constructor(table: BaseTableAPI, options?: InvertHighlightPluginOptions);
14
- setInvertHighlightRange(range?: CellRange): void;
15
- deleteAllCellGroupShadow(): void;
16
- updateCellGroupShadow(): void;
17
- updateCellGroupShadowInContainer(container: Group, range?: CellRange): void;
18
- }
19
- export declare function onBeforeAttributeUpdateForInvertHighlight(val: Record<string, any>, attribute: any): void;
@@ -1,69 +0,0 @@
1
- import { createRect } from "./../vrender";
2
-
3
- import { isSameRange } from "../tools/cell-range";
4
-
5
- import { cellInRange } from "../tools/helper";
6
-
7
- import { isValid } from "@visactor/vutils";
8
-
9
- export class InvertHighlightPlugin {
10
- constructor(table, options) {
11
- var _a, _b;
12
- this.table = table, this._fill = null !== (_a = null == options ? void 0 : options.fill) && void 0 !== _a ? _a : "#000",
13
- this._opacity = null !== (_b = null == options ? void 0 : options.opacity) && void 0 !== _b ? _b : .5;
14
- }
15
- setInvertHighlightRange(range) {
16
- isSameRange(this.range, range) || (this.range = range, range ? this.updateCellGroupShadow() : this.deleteAllCellGroupShadow(),
17
- this.table.scenegraph.updateNextFrame());
18
- }
19
- deleteAllCellGroupShadow() {
20
- this.table.isPivotTable() || (this.updateCellGroupShadowInContainer(this.table.scenegraph.rowHeaderGroup),
21
- this.updateCellGroupShadowInContainer(this.table.scenegraph.leftBottomCornerGroup)),
22
- this.updateCellGroupShadowInContainer(this.table.scenegraph.bodyGroup), this.updateCellGroupShadowInContainer(this.table.scenegraph.rightFrozenGroup),
23
- this.updateCellGroupShadowInContainer(this.table.scenegraph.bottomFrozenGroup),
24
- this.updateCellGroupShadowInContainer(this.table.scenegraph.rightBottomCornerGroup);
25
- }
26
- updateCellGroupShadow() {
27
- this.table.isPivotTable() || (this.updateCellGroupShadowInContainer(this.table.scenegraph.rowHeaderGroup, this.range),
28
- this.updateCellGroupShadowInContainer(this.table.scenegraph.leftBottomCornerGroup, this.range)),
29
- this.updateCellGroupShadowInContainer(this.table.scenegraph.bodyGroup, this.range),
30
- this.updateCellGroupShadowInContainer(this.table.scenegraph.rightFrozenGroup, this.range),
31
- this.updateCellGroupShadowInContainer(this.table.scenegraph.bottomFrozenGroup),
32
- this.range, this.updateCellGroupShadowInContainer(this.table.scenegraph.rightBottomCornerGroup, this.range);
33
- }
34
- updateCellGroupShadowInContainer(container, range) {
35
- container.forEachChildrenSkipChild((column => {
36
- "column" === column.role && column.forEachChildrenSkipChild((cell => {
37
- if ("cell" !== cell.role) return;
38
- cell.attachShadow(cell.shadowRoot);
39
- const shadowGroup = cell.shadowRoot;
40
- if (range) {
41
- if (cellInRange(range, cell.col, cell.row)) shadowGroup.removeAllChild(); else if (!shadowGroup.firstChild) {
42
- const shadowRect = createRect({
43
- x: 0,
44
- y: 0,
45
- width: cell.attribute.width,
46
- height: cell.attribute.height,
47
- fill: this._fill,
48
- opacity: this._opacity
49
- });
50
- shadowRect.name = "shadow-rect", shadowGroup.appendChild(shadowRect);
51
- }
52
- } else shadowGroup.removeAllChild();
53
- }));
54
- }));
55
- }
56
- }
57
-
58
- export function onBeforeAttributeUpdateForInvertHighlight(val, attribute) {
59
- var _a, _b;
60
- const graphic = this;
61
- if (graphic.shadowRoot && graphic.shadowRoot.childrenCount && (isValid(val.width) || isValid(val.height))) {
62
- const shadowRect = graphic.shadowRoot.findChildrenByName("shadow-rect")[0];
63
- shadowRect && shadowRect.setAttributes({
64
- width: null !== (_a = val.width) && void 0 !== _a ? _a : shadowRect.attribute.width,
65
- height: null !== (_b = val.height) && void 0 !== _b ? _b : shadowRect.attribute.height
66
- });
67
- }
68
- }
69
- //# sourceMappingURL=invert-highlight.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/plugins/invert-highlight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAO3C,MAAM,OAAO,qBAAqB;IAMhC,YAAY,KAAmB,EAAE,OAAsC;;QACrE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,MAAM,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,GAAG,CAAC;IAC1C,CAAC;IAED,uBAAuB,CAAC,KAAiB;QACvC,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;YAClC,OAAO;SACR;QAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,EAAE;YAEV,IAAI,CAAC,wBAAwB,EAAE,CAAC;SACjC;aAAM;YAEL,IAAI,CAAC,qBAAqB,EAAE,CAAC;SAC9B;QAED,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,eAAe,EA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;aACJ;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,UAAU,yCAAyC,CAAC,GAAwB,EAAE,SAAc;;IAEhG,MAAM,OAAO,GAAG,IAAW,CAAC;IAC5B,IAAI,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC,aAAa,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE;QACzG,MAAM,UAAU,GAAI,OAAO,CAAC,UAAoB,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAS,CAAC;QAC9F,IAAI,UAAU,EAAE;YACd,UAAU,CAAC,aAAa,CAAC;gBACvB,KAAK,EAAE,MAAA,GAAG,CAAC,KAAK,mCAAI,UAAU,CAAC,SAAS,CAAC,KAAK;gBAC9C,MAAM,EAAE,MAAA,GAAG,CAAC,MAAM,mCAAI,UAAU,CAAC,SAAS,CAAC,MAAM;aAClD,CAAC,CAAC;SACJ;KACF;AACH,CAAC","file":"invert-highlight.js","sourcesContent":["import type { Rect } from './../vrender';\nimport { createRect } from './../vrender';\nimport type { Group } from '../scenegraph/graphic/group';\nimport { isSameRange } from '../tools/cell-range';\nimport type { CellRange } from '../ts-types';\nimport type { BaseTableAPI } from '../ts-types/base-table';\nimport { cellInRange } from '../tools/helper';\nimport { isValid } from '@visactor/vutils';\n\nexport interface InvertHighlightPluginOptions {\n fill?: string;\n opacity?: number;\n}\n\nexport class InvertHighlightPlugin {\n table: BaseTableAPI;\n range?: CellRange;\n _fill: string;\n _opacity: number;\n\n constructor(table: BaseTableAPI, options?: InvertHighlightPluginOptions) {\n this.table = table;\n\n this._fill = options?.fill ?? '#000';\n this._opacity = options?.opacity ?? 0.5;\n }\n\n setInvertHighlightRange(range?: CellRange) {\n if (isSameRange(this.range, range)) {\n return;\n }\n\n this.range = range;\n if (!range) {\n // reset highlight\n this.deleteAllCellGroupShadow();\n } else {\n // update highlight\n this.updateCellGroupShadow();\n }\n\n this.table.scenegraph.updateNextFrame();\n }\n\n deleteAllCellGroupShadow() {\n if (!this.table.isPivotTable()) {\n this.updateCellGroupShadowInContainer(this.table.scenegraph.rowHeaderGroup);\n this.updateCellGroupShadowInContainer(this.table.scenegraph.leftBottomCornerGroup);\n }\n this.updateCellGroupShadowInContainer(this.table.scenegraph.bodyGroup);\n this.updateCellGroupShadowInContainer(this.table.scenegraph.rightFrozenGroup);\n this.updateCellGroupShadowInContainer(this.table.scenegraph.bottomFrozenGroup);\n this.updateCellGroupShadowInContainer(this.table.scenegraph.rightBottomCornerGroup);\n }\n\n updateCellGroupShadow() {\n if (!this.table.isPivotTable()) {\n this.updateCellGroupShadowInContainer(this.table.scenegraph.rowHeaderGroup, this.range);\n this.updateCellGroupShadowInContainer(this.table.scenegraph.leftBottomCornerGroup, this.range);\n }\n this.updateCellGroupShadowInContainer(this.table.scenegraph.bodyGroup, this.range);\n this.updateCellGroupShadowInContainer(this.table.scenegraph.rightFrozenGroup, this.range);\n this.updateCellGroupShadowInContainer(this.table.scenegraph.bottomFrozenGroup), this.range;\n this.updateCellGroupShadowInContainer(this.table.scenegraph.rightBottomCornerGroup, this.range);\n }\n updateCellGroupShadowInContainer(container: Group, range?: CellRange) {\n container.forEachChildrenSkipChild((column: Group) => {\n if (column.role === 'column') {\n column.forEachChildrenSkipChild((cell: Group) => {\n if (cell.role !== 'cell') {\n return;\n }\n cell.attachShadow(cell.shadowRoot);\n const shadowGroup = cell.shadowRoot;\n if (!range) {\n // no highlight\n shadowGroup.removeAllChild();\n } else if (cellInRange(range, cell.col, cell.row)) {\n // inside highlight\n shadowGroup.removeAllChild();\n } else if (!shadowGroup.firstChild) {\n // outside highlight\n const shadowRect = createRect({\n x: 0,\n y: 0,\n width: cell.attribute.width,\n height: cell.attribute.height,\n fill: this._fill,\n opacity: this._opacity\n });\n shadowRect.name = 'shadow-rect';\n shadowGroup.appendChild(shadowRect);\n }\n });\n }\n });\n }\n}\n\nexport function onBeforeAttributeUpdateForInvertHighlight(val: Record<string, any>, attribute: any) {\n // @ts-ignore\n const graphic = this as any;\n if (graphic.shadowRoot && graphic.shadowRoot.childrenCount && (isValid(val.width) || isValid(val.height))) {\n const shadowRect = (graphic.shadowRoot as Group).findChildrenByName('shadow-rect')[0] as Rect;\n if (shadowRect) {\n shadowRect.setAttributes({\n width: val.width ?? shadowRect.attribute.width,\n height: val.height ?? shadowRect.attribute.height\n });\n }\n }\n}\n"]}
@@ -1,2 +0,0 @@
1
- import type { CellRange } from '../ts-types';
2
- export declare function isSameRange(range1: CellRange | undefined | null, range2: CellRange | undefined | null): boolean;
@@ -1,4 +0,0 @@
1
- export function isSameRange(range1, range2) {
2
- return !range1 && !range2 || !(!range1 || !range2) && (range1.start.col === range2.start.col && range1.start.row === range2.start.row && range1.end.col === range2.end.col && range1.end.row === range2.end.row);
3
- }
4
- //# sourceMappingURL=cell-range.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/tools/cell-range.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,WAAW,CAAC,MAAoC,EAAE,MAAoC;IACpG,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE;QACtB,OAAO,IAAI,CAAC;KACb;IAED,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE;QACtB,OAAO,KAAK,CAAC;KACd;IAED,OAAO,CACL,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,MAAM,CAAC,KAAK,CAAC,GAAG;QACrC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,MAAM,CAAC,KAAK,CAAC,GAAG;QACrC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC,GAAG;QACjC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC,GAAG,CAClC,CAAC;AACJ,CAAC","file":"cell-range.js","sourcesContent":["import type { CellRange } from '../ts-types';\n\nexport function isSameRange(range1: CellRange | undefined | null, range2: CellRange | undefined | null) {\n if (!range1 && !range2) {\n return true;\n }\n\n if (!range1 || !range2) {\n return false;\n }\n\n return (\n range1.start.col === range2.start.col &&\n range1.start.row === range2.start.row &&\n range1.end.col === range2.end.col &&\n range1.end.row === range2.end.row\n );\n}\n"]}