@visactor/vrender-components 1.0.8-alpha.2 → 1.0.9-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.
Files changed (56) hide show
  1. package/cjs/animation/label-animate.js +2 -2
  2. package/cjs/animation/label-animate.js.map +1 -1
  3. package/cjs/empty-tip/empty-tip.js +1 -2
  4. package/cjs/index.d.ts +1 -2
  5. package/cjs/index.js +2 -3
  6. package/cjs/index.js.map +1 -1
  7. package/cjs/indicator/register.js +2 -1
  8. package/cjs/label/base.js +5 -6
  9. package/cjs/label/base.js.map +1 -1
  10. package/dist/index.es.js +88 -1023
  11. package/es/animation/label-animate.js +2 -2
  12. package/es/animation/label-animate.js.map +1 -1
  13. package/es/empty-tip/empty-tip.js +1 -2
  14. package/es/index.d.ts +1 -2
  15. package/es/index.js +1 -3
  16. package/es/index.js.map +1 -1
  17. package/es/indicator/register.js +2 -1
  18. package/es/label/base.js +5 -6
  19. package/es/label/base.js.map +1 -1
  20. package/package.json +4 -4
  21. package/cjs/table-series-number/event-manager.d.ts +0 -15
  22. package/cjs/table-series-number/event-manager.js +0 -149
  23. package/cjs/table-series-number/event-manager.js.map +0 -1
  24. package/cjs/table-series-number/index.d.ts +0 -2
  25. package/cjs/table-series-number/index.js +0 -21
  26. package/cjs/table-series-number/index.js.map +0 -1
  27. package/cjs/table-series-number/register.d.ts +0 -1
  28. package/cjs/table-series-number/register.js +0 -14
  29. package/cjs/table-series-number/register.js.map +0 -1
  30. package/cjs/table-series-number/table-series-number.d.ts +0 -76
  31. package/cjs/table-series-number/table-series-number.js +0 -534
  32. package/cjs/table-series-number/table-series-number.js.map +0 -1
  33. package/cjs/table-series-number/tools.d.ts +0 -1
  34. package/cjs/table-series-number/tools.js +0 -14
  35. package/cjs/table-series-number/tools.js.map +0 -1
  36. package/cjs/table-series-number/type.d.ts +0 -79
  37. package/cjs/table-series-number/type.js +0 -16
  38. package/cjs/table-series-number/type.js.map +0 -1
  39. package/es/table-series-number/event-manager.d.ts +0 -15
  40. package/es/table-series-number/event-manager.js +0 -143
  41. package/es/table-series-number/event-manager.js.map +0 -1
  42. package/es/table-series-number/index.d.ts +0 -2
  43. package/es/table-series-number/index.js +0 -4
  44. package/es/table-series-number/index.js.map +0 -1
  45. package/es/table-series-number/register.d.ts +0 -1
  46. package/es/table-series-number/register.js +0 -6
  47. package/es/table-series-number/register.js.map +0 -1
  48. package/es/table-series-number/table-series-number.d.ts +0 -76
  49. package/es/table-series-number/table-series-number.js +0 -542
  50. package/es/table-series-number/table-series-number.js.map +0 -1
  51. package/es/table-series-number/tools.d.ts +0 -1
  52. package/es/table-series-number/tools.js +0 -8
  53. package/es/table-series-number/tools.js.map +0 -1
  54. package/es/table-series-number/type.d.ts +0 -79
  55. package/es/table-series-number/type.js +0 -15
  56. package/es/table-series-number/type.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/table-series-number/table-series-number.ts"],"names":[],"mappings":";;;AAAA,mCAA2C;AAC3C,6CAAoE;AACpE,uCAAiD;AACjD,iCAAuE;AAEvE,mDAAgE;AAEhE,yDAAsD;AAEtD,yCAA4D;AAE5D,MAAM,SAAS,GACb,4pDAA4pD,CAAC;AAE/pD,IAAA,yCAA8B,GAAE,CAAC;AACjC,MAAa,iBAAkB,SAAQ,wBAAwD;IAmH7F,YAAY,UAAuC,EAAE,OAAwD;QAC3G,KAAK,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,EAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,cAAK,EAAC,EAAE,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC;QA9BxG,SAAI,GAAG,mBAAmB,CAAC;QAa3B,+BAA0B,GAAW,CAAC,CAAC;QAEvC,+BAA0B,GAAW,CAAC,CAAC;QAEvC,kBAAa,GAAW,CAAC,CAAC;QAC1B,qCAAgC,GAAW,IAAI,CAAC;QAChD,q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EAAE,IAAI;IACX,MAAM,EAAE,IAAI;CACb,CAAC","file":"table-series-number.js","sourcesContent":["import { generateColField } from './tools';\nimport { isValid, merge, normalizePadding } from '@visactor/vutils';\nimport { AbstractComponent } from '../core/base';\nimport { SeriesNumberCellStateValue, SeriesNumberEvent } from './type';\nimport type { TableSeriesNumberAttributes } from './type';\nimport { TableSeriesNumberEventManager } from './event-manager';\nimport type { FederatedPointerEvent, Group, IGroup, IText } from '@visactor/vrender-core';\nimport { parsePadding } from '@visactor/vrender-core';\nimport type { ComponentOptions } from '../interface';\nimport { loadTableSeriesNumberComponent } from './register';\n\nconst cornerSvg =\n '<svg t=\"1716726614852\" class=\"icon\" viewBox=\"0 0 1194 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"2621\" width=\"200\" height=\"200\"><path d=\"M1038.694079 367.237067c13.265507 23.342857-16.633865-40.004445-63.05621-40.004446H219.018794c-26.558738 0-46.46393 13.334815-63.05621 40.004446S0.006238 607.277601 0.006238 650.608819V940.647979a82.351494 82.351494 0 0 0 82.961402 83.349526H1111.702885a82.337632 82.337632 0 0 0 82.975264-83.349526V650.608819c0-43.331218-155.970208-283.371753-155.970208-283.371752zM730.066575 667.284269a136.328386 136.328386 0 0 1-132.738243 133.33429 133.417459 133.417459 0 0 1-132.738243-133.33429v-6.681269a40.6698 40.6698 0 0 0-36.497473-26.66963H73.015044l119.458874-220.02445s23.231965-40.004445 53.103614-40.004446h713.481918c26.544876 0 29.871649 10.008042 46.436207 40.004446L1128.33675 633.947231H769.904682c-26.184476 0-39.838107 7.623855-39.838107 33.337038zM338.505391 210.559919l-89.601086-86.69016a22.178487 22.178487 0 0 1 0-33.26773 21.984425 21.984425 0 0 1 33.170699 0l89.601087 86.676299a22.317102 22.317102 0 0 1 0 33.26773 24.950798 24.950798 0 0 1-33.1707 0z m252.197118-40.059891a25.532983 25.532983 0 0 1-6.639685-16.633865l-3.326773-126.694606A28.263709 28.263709 0 0 1 603.995739 0.515788c13.251646-3.326773 23.204242 10.021904 26.544877 23.342858V153.866163a28.249847 28.249847 0 0 1-23.259688 26.66963c-6.611961-3.312911-13.279369-3.312911-16.578419-10.035765z m235.646421 33.337038a22.372548 22.372548 0 0 1 0-33.337038l86.288175-90.030795a22.039871 22.039871 0 0 1 33.170699 0 22.289379 22.289379 0 0 1 0 33.364761l-82.961401 90.003072a25.962691 25.962691 0 0 1-36.483611 0z\" fill=\"#8a8a8a\" p-id=\"2622\"></path></svg>';\n\nloadTableSeriesNumberComponent();\nexport class TableSeriesNumber extends AbstractComponent<Required<TableSeriesNumberAttributes>> {\n static defaultAttributes: Partial<TableSeriesNumberAttributes> = {\n frozenRowCount: 0,\n frozenColCount: 0,\n rightFrozenColCount: 0,\n bottomFrozenRowCount: 0,\n pickable: false,\n rowCount: 100,\n colCount: 100,\n rowHeight: 20,\n colWidth: 50,\n rowSeriesNumberWidth: 30,\n colSeriesNumberHeight: 30,\n rowSeriesNumberCellStyle: {\n text: {\n fontSize: 14,\n fill: '#7A7A7A',\n pickable: false,\n textAlign: 'left',\n textBaseline: 'middle',\n padding: [2, 4, 2, 4]\n },\n borderLine: {\n stroke: '#D9D9D9',\n lineWidth: 1,\n pickable: false\n },\n bgColor: '#F9F9F9',\n states: {\n hover: {\n fill: '#98C8A5',\n opacity: 0.7\n },\n select: {\n fill: 'yellow',\n opacity: 0.7\n }\n }\n },\n colSeriesNumberCellStyle: {\n text: {\n fontSize: 14,\n fill: '#7A7A7A',\n pickable: false,\n textAlign: 'left',\n textBaseline: 'middle',\n padding: [2, 4, 2, 4]\n },\n borderLine: {\n stroke: '#D9D9D9',\n lineWidth: 1,\n pickable: false\n },\n bgColor: '#F9F9F9',\n states: {\n hover: {\n fill: '#98C8A5',\n opacity: 0.7\n },\n select: {\n fill: 'orange',\n opacity: 0.7\n }\n }\n },\n cornerCellStyle: {\n borderLine: {\n stroke: '#D9D9D9',\n lineWidth: 1,\n pickable: false\n },\n bgColor: '#F9F9F9',\n states: {\n hover: {\n fill: '#98C8A5',\n opacity: 0.7\n },\n select: {\n fill: '#98C8A5',\n opacity: 0.7\n }\n }\n },\n hover: true,\n select: true\n };\n name = 'tableSeriesNumber';\n protected _tableSeriesNumberContainer: IGroup;\n // protected _title: Tag | null = null;\n _cornerGroup: IGroup;\n _rowSeriesNumberGroup: IGroup;\n _colSeriesNumberGroup: IGroup;\n _frozenTopRowSeriesNumberGroup: IGroup;\n _frozenLeftColSeriesNumberGroup: IGroup;\n _frozenRightColSeriesNumberGroup: IGroup;\n _frozenBottomRowSeriesNumberGroup: IGroup;\n\n // _lastClickItem: IGroup;\n // 记录rowSeriesNumberGroup中第一个元素的索引\n _firstRowSeriesNumberIndex: number = 0;\n // 记录colSeriesNumberGroup中第一个元素的索引\n _firstColSeriesNumberIndex: number = 0;\n // 文字最大宽度\n _maxTextWidth: number = 0;\n _changeRowSeriesNumberWidthTimer: number = null;\n interactionState: {\n _lastHoverItem: IGroup;\n _lastClickItem: IGroup;\n selectIndexs?: Set<string>; //记录选中的行号或列号 cellGroup的name\n // selectColIndexs?:number[],\n } = { selectIndexs: new Set(), _lastHoverItem: null, _lastClickItem: null };\n _parsedRowSeriesNumberCellPadding: number[] = [0, 0, 0, 0];\n _parsedColSeriesNumberCellPadding: number[] = [0, 0, 0, 0];\n initRenderAll: boolean = false;\n _eventManager: TableSeriesNumberEventManager;\n constructor(attributes: TableSeriesNumberAttributes, options?: ComponentOptions & { initRenderAll?: boolean }) {\n super(options?.skipDefault ? attributes : merge({}, TableSeriesNumber.defaultAttributes, attributes));\n this.initRenderAll = options?.initRenderAll || false;\n this._skipRenderAttributes.push('frozenTopRow');\n this._skipRenderAttributes.push('frozenLeftCol');\n this._skipRenderAttributes.push('frozenRightCol');\n this._skipRenderAttributes.push('frozenBottomRow');\n this._skipRenderAttributes.push('rowCount');\n this._skipRenderAttributes.push('colCount');\n this._skipRenderAttributes.push('hover');\n this._skipRenderAttributes.push('select');\n if (this.attribute.rowSeriesNumberCellStyle.text.padding) {\n const padding = parsePadding(this.attribute.rowSeriesNumberCellStyle.text.padding);\n if (typeof padding === 'number') {\n this._parsedRowSeriesNumberCellPadding = [padding, padding, padding, padding];\n } else {\n this._parsedRowSeriesNumberCellPadding = padding;\n }\n }\n if (this.attribute.colSeriesNumberCellStyle.text.padding) {\n const padding = parsePadding(this.attribute.colSeriesNumberCellStyle.text.padding);\n if (typeof padding === 'number') {\n this._parsedColSeriesNumberCellPadding = [padding, padding, padding, padding];\n } else {\n this._parsedColSeriesNumberCellPadding = padding;\n }\n }\n this._eventManager = new TableSeriesNumberEventManager(this);\n // this.render();\n }\n\n get rowSeriesNumberWidth() {\n const { rowSeriesNumberWidth } = this.attribute;\n if (this._maxTextWidth) {\n return Math.max(\n this._maxTextWidth + this._parsedRowSeriesNumberCellPadding[3] + this._parsedRowSeriesNumberCellPadding[1],\n typeof rowSeriesNumberWidth === 'number' ? rowSeriesNumberWidth : 40\n );\n }\n return typeof rowSeriesNumberWidth === 'number' ? rowSeriesNumberWidth : 40;\n }\n get colSeriesNumberHeight() {\n const { colSeriesNumberHeight } = this.attribute;\n return typeof colSeriesNumberHeight === 'number' ? colSeriesNumberHeight : 20;\n }\n get rowCount() {\n const { rowCount } = this.attribute;\n return rowCount;\n }\n get colCount() {\n const { colCount } = this.attribute;\n return colCount;\n }\n protected bindEvents(): void {\n this._eventManager.bindEvents();\n }\n dispatchTableSeriesNumberEvent(event: any, ...args: any) {\n this._dispatchEvent(event, ...args);\n }\n render() {\n // this.removeAllChild(true);\n const {\n rowCount,\n colCount,\n rowSeriesNumberWidth,\n colSeriesNumberHeight,\n rowSeriesNumberCellStyle,\n colSeriesNumberCellStyle,\n rowHeight,\n colWidth\n } = this.attribute;\n // 创建一个内部的 container 用于存储所有的元素\n const innerView = this.createOrUpdateChild(\n 'tableSeriesNumberContainer',\n {\n x: 0,\n y: 0,\n fill: 'rgba(1,1,1,0)',\n width: this.rowSeriesNumberWidth + colCount * (typeof colWidth === 'number' ? colWidth : 20),\n height: this.colSeriesNumberHeight + rowCount * (typeof rowHeight === 'number' ? rowHeight : 20),\n pickable: false,\n childrenPickable: true\n },\n 'group'\n ) as IGroup;\n // innerView.name = LEGEND_ELEMENT_NAME.innerView;\n // this.add(innerView);\n this._tableSeriesNumberContainer = innerView;\n\n this._renderContent();\n\n // this._bindEvents();\n }\n _renderContent() {\n this._renderRowSeriesNumber();\n this._renderColSeriesNumber();\n // this.refreshRowSeriesNumberGroup(0,100);\n\n this._renderFrozenTopRowSeriesNumber();\n this._renderFrozenLeftColSeriesNumber();\n this._renderCorner();\n if (this.initRenderAll) {\n this.recreateCellsToRowSeriesNumberGroup(0, this.attribute.rowCount - 1);\n this.recreateCellsToColSeriesNumberGroup(0, this.attribute.colCount - 1);\n let y = 0;\n for (let i = 0; i < this.attribute.rowCount; i++) {\n this.setRowSeriesNumberCellAttributes(i, {\n y,\n height: typeof this.attribute.rowHeight === 'number' ? this.attribute.rowHeight : 20\n });\n y += typeof this.attribute.rowHeight === 'number' ? this.attribute.rowHeight : 20;\n }\n let x = 0;\n for (let i = 0; i < this.attribute.colCount; i++) {\n this.setColSeriesNumberCellAttributes(i, {\n x,\n width: typeof this.attribute.colWidth === 'number' ? this.attribute.colWidth : 20\n });\n x += typeof this.attribute.colWidth === 'number' ? this.attribute.colWidth : 20;\n }\n }\n // this._renderFrozenRightSeriesNumber();\n // this._renderFrozenBottomSeriesNumber();\n }\n _renderCorner() {\n const {\n rowCount,\n colCount,\n cornerCellStyle: cornerSeriesNumberCellStyle,\n rowSeriesNumberWidth,\n colSeriesNumberHeight,\n rowSeriesNumberCellStyle,\n colSeriesNumberCellStyle,\n rowHeight,\n colWidth\n } = this.attribute;\n // 组织角头\n const cornerGroup = this._tableSeriesNumberContainer.createOrUpdateChild(\n 'cornerSeriesNumberCell',\n {\n x: 0,\n y: 0,\n fill: cornerSeriesNumberCellStyle.bgColor,\n stroke: cornerSeriesNumberCellStyle.borderLine.stroke,\n lineWidth: cornerSeriesNumberCellStyle.borderLine.lineWidth,\n pickable: true,\n width: this.rowSeriesNumberWidth,\n height: this.colSeriesNumberHeight\n },\n 'group'\n ) as IGroup;\n // cornerGroup.name = `conerSeriesNumberCell`;\n cornerGroup.id = '0,0';\n cornerGroup.states = cornerSeriesNumberCellStyle.states;\n // this._tableSeriesNumberContainer.add(cornerGroup);\n this._cornerGroup = cornerGroup;\n }\n _renderRowSeriesNumber() {\n const {\n frozenRowCount,\n rowCount,\n colCount,\n rowSeriesNumberWidth,\n colSeriesNumberHeight,\n rowSeriesNumberCellStyle,\n colSeriesNumberCellStyle,\n rowHeight,\n colWidth\n } = this.attribute;\n\n //组织行号Group\n const rowSeriesNumberGroup = this._tableSeriesNumberContainer.createOrUpdateChild(\n 'rowSeriesNumberCellGroup',\n {\n x: 0,\n y: this.colSeriesNumberHeight, //后续setFrozenRowCount会重新设置y\n pickable: true,\n fill: rowSeriesNumberCellStyle.bgColor,\n width: this.rowSeriesNumberWidth,\n height: rowCount * (typeof rowHeight === 'number' ? rowHeight : 20)\n },\n 'group'\n ) as IGroup;\n // this._tableSeriesNumberContainer.add(rowSeriesNumberGroup);\n this._rowSeriesNumberGroup = rowSeriesNumberGroup;\n // //组织每个行号单元格\n // for (let i = 0; i < rowCount - frozenRowCount; i++) {\n // const cellGroup = this._rowSeriesNumberGroup.createOrUpdateChild(`rowSeriesNumberCell-${i}`,{\n // x: 0,\n // y: i * (typeof rowHeight === 'number' ? rowHeight : 20),\n // pickable: true,\n // fill: rowSeriesNumberCellStyle.bgColor,\n // stroke: rowSeriesNumberCellStyle.borderLine.stroke,\n // lineWidth: rowSeriesNumberCellStyle.borderLine.lineWidth,\n // width: this.rowSeriesNumberWidth,\n // height: typeof rowHeight === 'number' ? rowHeight : 20\n // },'group') as IGroup;\n // // cellGroup.name = `rowSeriesNumberCell-${i}`;\n // cellGroup.id = i;\n // cellGroup.states = rowSeriesNumberCellStyle.states;\n // // rowSeriesNumberGroup.add(cellGroup);\n\n // const text = cellGroup.createOrUpdateChild(`rowSeriesNumberCellText-${i}`,{\n // x: 0,\n // y: typeof rowHeight === 'number' ? rowHeight : 20,\n // text: `${i + 1 + frozenRowCount}`,\n // pickable: false,\n // ...rowSeriesNumberCellStyle.text\n // },'text');\n // // cellGroup.add(text);\n // }\n }\n _renderColSeriesNumber() {\n const {\n frozenColCount,\n rowCount,\n colCount,\n rowSeriesNumberWidth,\n colSeriesNumberHeight,\n rowSeriesNumberCellStyle,\n colSeriesNumberCellStyle,\n rowHeight,\n colWidth\n } = this.attribute;\n //组织列号Group\n const colSeriesNumberGroup = this._tableSeriesNumberContainer.createOrUpdateChild(\n 'colSeriesNumberCellGroup',\n {\n x: this.rowSeriesNumberWidth + frozenColCount * (typeof colWidth === 'number' ? colWidth : 20),\n y: 0,\n pickable: true,\n fill: colSeriesNumberCellStyle.bgColor,\n width: colCount * (typeof colWidth === 'number' ? colWidth : 20),\n height: this.colSeriesNumberHeight\n },\n 'group'\n ) as IGroup;\n // this._tableSeriesNumberContainer.add(colSeriesNumberGroup);\n this._colSeriesNumberGroup = colSeriesNumberGroup;\n // //组织每个列号单元格\n // for (let i = 0; i < colCount - frozenColCount; i++) {\n // const cellGroup = this._colSeriesNumberGroup.createOrUpdateChild(`colSeriesNumberCell-${i}`,{\n // x: i * (typeof colWidth === 'number' ? colWidth : 20),\n // y: 0,\n // pickable: true,\n // fill: colSeriesNumberCellStyle.bgColor,\n // stroke: colSeriesNumberCellStyle.borderLine.stroke,\n // width: typeof colWidth === 'number' ? colWidth : 20,\n // height: this.colSeriesNumberHeight\n // },'group') as IGroup;\n // // cellGroup.name = `colSeriesNumberCell-${i}`;\n // cellGroup.id = i;\n // // colSeriesNumberGroup.add(cellGroup);\n // const text = cellGroup.createOrUpdateChild(`colSeriesNumberCellText-${i}`,{\n // x: 0,\n // y: this.colSeriesNumberHeight,\n // text: generateColField(i + frozenColCount),\n // pickable: false,\n // ...colSeriesNumberCellStyle.text\n // },'text');\n // // cellGroup.add(text);\n // cellGroup.states = colSeriesNumberCellStyle.states;\n // }\n }\n _renderFrozenTopRowSeriesNumber() {\n const {\n frozenRowCount,\n colCount,\n rowSeriesNumberWidth,\n colSeriesNumberHeight,\n rowSeriesNumberCellStyle,\n colSeriesNumberCellStyle,\n rowHeight,\n colWidth\n } = this.attribute;\n const frozenTopSeriesNumberGroup = this._tableSeriesNumberContainer.createOrUpdateChild(\n 'frozenTopSeriesNumberGroup',\n {\n x: 0,\n y: this.colSeriesNumberHeight,\n width: this.rowSeriesNumberWidth,\n height: frozenRowCount * (typeof rowHeight === 'number' ? rowHeight : 20)\n },\n 'group'\n ) as IGroup;\n this._frozenTopRowSeriesNumberGroup = frozenTopSeriesNumberGroup;\n // for (let i = 0; i < frozenRowCount; i++) {\n // const cellGroup = this._frozenTopRowSeriesNumberGroup.createOrUpdateChild(`rowSeriesNumberCell-${i}`,{\n // x: 0,\n // y: i * (typeof rowHeight === 'number' ? rowHeight : 20),\n // pickable: true,\n // // display: 'flex',\n // fill: rowSeriesNumberCellStyle.bgColor,\n // stroke: rowSeriesNumberCellStyle.borderLine.stroke,\n // lineWidth: rowSeriesNumberCellStyle.borderLine.lineWidth,\n // width: this.rowSeriesNumberWidth,\n // height: typeof rowHeight === 'number' ? rowHeight : 20\n // },'group') as IGroup;\n // cellGroup.id = i;\n // cellGroup.states = rowSeriesNumberCellStyle.states;\n // const text = cellGroup.createOrUpdateChild(`rowSeriesNumberCellText-${i}`,{\n // x: 0,\n // y: typeof rowHeight === 'number' ? rowHeight : 20,\n // text: `${i + 1}`,\n // pickable: false,\n // ...rowSeriesNumberCellStyle.text\n // },'text');\n // }\n }\n _renderFrozenLeftColSeriesNumber() {\n const {\n frozenColCount,\n rowCount,\n rowSeriesNumberWidth,\n colSeriesNumberHeight,\n rowSeriesNumberCellStyle,\n colSeriesNumberCellStyle,\n rowHeight,\n colWidth\n } = this.attribute;\n const frozenLeftSeriesNumberGroup = this._tableSeriesNumberContainer.createOrUpdateChild(\n 'frozenLeftSeriesNumberGroup',\n {\n x: this.rowSeriesNumberWidth,\n y: 0,\n height: this.colSeriesNumberHeight,\n width: frozenColCount * (typeof colWidth === 'number' ? colWidth : 20)\n },\n 'group'\n ) as IGroup;\n this._frozenLeftColSeriesNumberGroup = frozenLeftSeriesNumberGroup;\n // for (let i = 0; i < frozenColCount; i++) {\n // const cellGroup = this._frozenLeftColSeriesNumberGroup.createOrUpdateChild(`colSeriesNumberCell-${i}`,{\n // x: i * (typeof colWidth === 'number' ? colWidth : 20),\n // y: 0,\n // pickable: true,\n // fill: colSeriesNumberCellStyle.bgColor,\n // stroke: colSeriesNumberCellStyle.borderLine.stroke,\n // lineWidth: colSeriesNumberCellStyle.borderLine.lineWidth,\n // width: typeof colWidth === 'number' ? colWidth : 20,\n // height: this.colSeriesNumberHeight\n // },'group') as IGroup;\n // cellGroup.id = i;\n // cellGroup.states = colSeriesNumberCellStyle.states;\n // const text = cellGroup.createOrUpdateChild(`colSeriesNumberCellText-${i}`,{\n // x: 0,\n // y: this.colSeriesNumberHeight,\n // text: generateColField(i),\n // pickable: false,\n // ...colSeriesNumberCellStyle.text\n // },'text');\n // }\n }\n\n recreateCellsToRowSeriesNumberGroup(startIndex: number, endIndex: number) {\n const {\n frozenRowCount,\n rowCount,\n colCount,\n rowSeriesNumberWidth,\n colSeriesNumberHeight,\n rowSeriesNumberCellStyle,\n colSeriesNumberCellStyle,\n rowHeight,\n colWidth\n } = this.attribute;\n this._frozenTopRowSeriesNumberGroup.removeAllChild();\n this._rowSeriesNumberGroup.removeAllChild();\n\n //#region根据textBaseline 计算每个cell中text的y坐标\n let y = 0;\n const height =\n (typeof rowHeight === 'number' ? rowHeight : 20) -\n this._parsedRowSeriesNumberCellPadding[0] -\n this._parsedRowSeriesNumberCellPadding[2];\n if (rowSeriesNumberCellStyle.text.textBaseline === 'middle') {\n y = this._parsedRowSeriesNumberCellPadding[0] + (height - rowSeriesNumberCellStyle.text.fontSize) / 2;\n } else if (rowSeriesNumberCellStyle.text.textBaseline === 'bottom') {\n y = this._parsedRowSeriesNumberCellPadding[0] + height - rowSeriesNumberCellStyle.text.fontSize;\n } else {\n y = this._parsedRowSeriesNumberCellPadding[0];\n }\n //#endregion\n\n //#region 根据textAlign 计算子元素Text的x坐标\n let x;\n const width =\n this.rowSeriesNumberWidth - this._parsedRowSeriesNumberCellPadding[3] - this._parsedRowSeriesNumberCellPadding[1];\n const textAlign = this.attribute.rowSeriesNumberCellStyle.text.textAlign;\n const padding = this._parsedRowSeriesNumberCellPadding;\n if (textAlign === 'center') {\n x = padding[3] + +width / 2;\n } else if (textAlign === 'right') {\n x = padding[3] + width;\n } else {\n x = padding[3];\n }\n //#endregion\n\n // #region 冻结行序号\n for (let i = 0; i < frozenRowCount; i++) {\n const cellGroup = this._frozenTopRowSeriesNumberGroup.createOrUpdateChild(\n `rowSeriesNumberCell-${i}`,\n {\n x: 0,\n y: 0,\n pickable: true,\n fill: rowSeriesNumberCellStyle.bgColor,\n stroke: rowSeriesNumberCellStyle.borderLine.stroke,\n lineWidth: rowSeriesNumberCellStyle.borderLine.lineWidth,\n width: this.rowSeriesNumberWidth,\n height: typeof rowHeight === 'number' ? rowHeight : 20\n },\n 'group'\n ) as IGroup;\n cellGroup.id = i;\n cellGroup.states = rowSeriesNumberCellStyle.states;\n if (this.interactionState.selectIndexs?.has(cellGroup.name)) {\n cellGroup.useStates([SeriesNumberCellStateValue.select]);\n }\n\n const text = cellGroup.createOrUpdateChild(\n `rowSeriesNumberCellText-${i}`,\n {\n x,\n y,\n text: `${i + 1}`,\n pickable: false,\n dx: 0,\n ...rowSeriesNumberCellStyle.text,\n textBaseline: 'top'\n },\n 'text'\n );\n }\n // #endregion\n this._firstRowSeriesNumberIndex = Math.max(startIndex, frozenRowCount) - frozenRowCount;\n let thisTextMaxWidth: number = 0;\n for (let i = this._firstRowSeriesNumberIndex; i <= endIndex - frozenRowCount; i++) {\n const cellGroup = this._rowSeriesNumberGroup.createOrUpdateChild(\n `rowSeriesNumberCell-${i + frozenRowCount}`,\n {\n x: 0,\n y: 0,\n pickable: true,\n fill: rowSeriesNumberCellStyle.bgColor,\n stroke: rowSeriesNumberCellStyle.borderLine.stroke,\n lineWidth: rowSeriesNumberCellStyle.borderLine.lineWidth,\n width: this.rowSeriesNumberWidth,\n height: typeof rowHeight === 'number' ? rowHeight : 20\n },\n 'group'\n ) as IGroup;\n\n cellGroup.id = i + frozenRowCount;\n cellGroup.states = rowSeriesNumberCellStyle.states;\n //判断是否是当前选中的行号\n if (this.interactionState.selectIndexs?.has(cellGroup.name)) {\n cellGroup.useStates([SeriesNumberCellStateValue.select]);\n }\n const text = cellGroup.createOrUpdateChild(\n `rowSeriesNumberCellText-${i + frozenRowCount}`,\n {\n x,\n y,\n text: `${i + 1 + frozenRowCount}`,\n pickable: false,\n dx: 0,\n ...rowSeriesNumberCellStyle.text,\n textBaseline: 'top'\n },\n 'text'\n );\n if (i === endIndex - frozenRowCount) {\n thisTextMaxWidth = (text as IText).clipedWidth;\n }\n }\n //对比新的宽和原来宽度差别大于1 则赋新值,并通知事件\n // 节流,防止频繁触发。频繁触发时,只取最后一次的值。\n clearTimeout(this._changeRowSeriesNumberWidthTimer);\n this._changeRowSeriesNumberWidthTimer = setTimeout(() => {\n if (Math.abs(thisTextMaxWidth - this._maxTextWidth) >= 6) {\n const oldWidth = this._maxTextWidth;\n this._maxTextWidth = thisTextMaxWidth;\n this.changeRowSeriesNumberWidth(Math.max(this.rowSeriesNumberWidth, 20));\n this._dispatchEvent(SeriesNumberEvent.rowSeriesNumberWidthChange, {\n newWidth: this.rowSeriesNumberWidth,\n oldWidth\n });\n }\n }, 100);\n }\n\n recreateCellsToColSeriesNumberGroup(startIndex: number, endIndex: number) {\n const { colCount, colSeriesNumberCellStyle, frozenColCount, colWidth } = this\n .attribute as TableSeriesNumberAttributes;\n this._frozenLeftColSeriesNumberGroup.removeAllChild();\n this._colSeriesNumberGroup.removeAllChild();\n\n //#region 根据textBaseline 计算每个cell中text的y坐标\n let y = 0;\n const height =\n this.colSeriesNumberHeight -\n this._parsedColSeriesNumberCellPadding[0] -\n this._parsedColSeriesNumberCellPadding[2];\n if (colSeriesNumberCellStyle.text.textBaseline === 'middle') {\n y = this._parsedColSeriesNumberCellPadding[0] + (height - colSeriesNumberCellStyle.text.fontSize) / 2;\n } else if (colSeriesNumberCellStyle.text.textBaseline === 'bottom') {\n y = this._parsedColSeriesNumberCellPadding[0] + height - colSeriesNumberCellStyle.text.fontSize;\n } else {\n y = this._parsedColSeriesNumberCellPadding[0];\n }\n //#endregion\n\n //#region 根据textAlign 计算子元素Text的x坐标\n let x;\n const width =\n (typeof colWidth === 'number' ? colWidth : 20) -\n this._parsedColSeriesNumberCellPadding[3] -\n this._parsedColSeriesNumberCellPadding[1];\n const textAlign = this.attribute.colSeriesNumberCellStyle.text.textAlign;\n const padding = this._parsedColSeriesNumberCellPadding;\n if (textAlign === 'center') {\n x = padding[3] + +width / 2;\n } else if (textAlign === 'right') {\n x = padding[3] + width;\n } else {\n x = padding[3];\n }\n //#endregion\n\n // #region 冻结列序号\n for (let i = 0; i < frozenColCount; i++) {\n const cellGroup = this._frozenLeftColSeriesNumberGroup.createOrUpdateChild(\n `colSeriesNumberCell-${i}`,\n {\n x: 0,\n y: 0,\n pickable: true,\n fill: colSeriesNumberCellStyle.bgColor,\n stroke: colSeriesNumberCellStyle.borderLine.stroke,\n lineWidth: colSeriesNumberCellStyle.borderLine.lineWidth,\n width: typeof colWidth === 'number' ? colWidth : 20,\n height: this.colSeriesNumberHeight\n },\n 'group'\n ) as IGroup;\n cellGroup.id = i;\n cellGroup.states = colSeriesNumberCellStyle.states;\n if (this.interactionState.selectIndexs?.has(cellGroup.name)) {\n cellGroup.useStates([SeriesNumberCellStateValue.select]);\n }\n const text = cellGroup.createOrUpdateChild(\n `colSeriesNumberCellText-${i}`,\n {\n x,\n y,\n dx: 0,\n text: generateColField(i),\n pickable: false,\n ...colSeriesNumberCellStyle.text,\n textBaseline: 'top'\n },\n 'text'\n );\n }\n // #endregion\n\n this._firstColSeriesNumberIndex = Math.max(startIndex, frozenColCount) - frozenColCount;\n for (let i = this._firstColSeriesNumberIndex; i <= endIndex - frozenColCount; i++) {\n const cellGroup = this._colSeriesNumberGroup.createOrUpdateChild(\n `colSeriesNumberCell-${i + frozenColCount}`,\n {\n x: 0,\n y: 0,\n pickable: true,\n fill: colSeriesNumberCellStyle.bgColor,\n stroke: colSeriesNumberCellStyle.borderLine.stroke,\n lineWidth: colSeriesNumberCellStyle.borderLine.lineWidth,\n width: typeof colWidth === 'number' ? colWidth : 20,\n height: this.colSeriesNumberHeight\n },\n 'group'\n ) as IGroup;\n cellGroup.id = i + frozenColCount;\n cellGroup.states = colSeriesNumberCellStyle.states;\n //判断是否是当前选中的列号\n if (this.interactionState.selectIndexs?.has(cellGroup.name)) {\n cellGroup.useStates([SeriesNumberCellStateValue.select]);\n }\n const text = cellGroup.createOrUpdateChild(\n `colSeriesNumberCellText-${i + frozenColCount}`,\n {\n x,\n y,\n dx: 0,\n text: generateColField(i + frozenColCount),\n pickable: false,\n ...colSeriesNumberCellStyle.text,\n textBaseline: 'top'\n },\n 'text'\n );\n }\n }\n\n changeRowSeriesNumberWidth(newWidth: number) {\n const {\n rowHeight,\n rowCount: oldRowCount,\n frozenRowCount,\n frozenColCount: frozenLeftCol,\n rowSeriesNumberCellStyle\n } = this.attribute as TableSeriesNumberAttributes;\n // 修改角头宽度\n this._cornerGroup.setAttributes({\n width: newWidth\n });\n\n //修改行序号冻结部分宽度\n this._frozenTopRowSeriesNumberGroup.setAttributes({\n width: newWidth\n });\n for (let i = 0; i < this._frozenTopRowSeriesNumberGroup.children.length; i++) {\n this.setRowSeriesNumberCellAttributes(i, {\n width: newWidth\n });\n }\n\n //修改行序号整体宽度\n this._rowSeriesNumberGroup.setAttributes({\n width: newWidth\n });\n for (let i = 0; i < this._rowSeriesNumberGroup.children.length; i++) {\n this.setRowSeriesNumberCellAttributes(i + this._firstRowSeriesNumberIndex + frozenRowCount, {\n width: newWidth\n });\n }\n\n // 修改列序号Group x坐标\n this._frozenLeftColSeriesNumberGroup.setAttributes({\n x: newWidth\n });\n // 修改列序号Group x坐标\n this._colSeriesNumberGroup.setAttributes({\n x: newWidth + this._frozenLeftColSeriesNumberGroup.getAttributes().width\n });\n }\n\n getRowSeriesNumberCellGroup(index: number) {\n const { frozenRowCount } = this.getAttributes() as TableSeriesNumberAttributes;\n if (index >= 0 && index < frozenRowCount) {\n return this._frozenTopRowSeriesNumberGroup.children[index];\n }\n const rowSeriesNumberGroup = this._rowSeriesNumberGroup;\n const rowSeriesNumberCell = rowSeriesNumberGroup.children[index - frozenRowCount - this._firstRowSeriesNumberIndex];\n return rowSeriesNumberCell;\n }\n getColSeriesNumberCellGroup(index: number) {\n const { frozenColCount } = this.getAttributes() as TableSeriesNumberAttributes;\n if (index >= 0 && index < frozenColCount) {\n return this._frozenLeftColSeriesNumberGroup.children[index];\n }\n const colSeriesNumberGroup = this._colSeriesNumberGroup;\n const colSeriesNumberCell = colSeriesNumberGroup.children[index - frozenColCount - this._firstColSeriesNumberIndex];\n return colSeriesNumberCell;\n }\n getRowSeriesNumberCellAttributes(index: number) {\n const { frozenRowCount } = this.getAttributes() as TableSeriesNumberAttributes;\n if (index >= 0 && index < frozenRowCount) {\n return this._frozenTopRowSeriesNumberGroup.children[index].attribute;\n }\n const rowSeriesNumberGroup = this._rowSeriesNumberGroup;\n const rowSeriesNumberCell = rowSeriesNumberGroup.children[index - frozenRowCount - this._firstRowSeriesNumberIndex];\n return rowSeriesNumberCell.attribute;\n }\n getColSeriesNumberCellAttributes(index: number) {\n const { frozenColCount } = this.getAttributes() as TableSeriesNumberAttributes;\n if (index >= 0 && index < frozenColCount) {\n return this._frozenLeftColSeriesNumberGroup.children[index].attribute;\n }\n const colSeriesNumberGroup = this._colSeriesNumberGroup;\n const colSeriesNumberCell = colSeriesNumberGroup.children[index - frozenColCount - this._firstColSeriesNumberIndex];\n return colSeriesNumberCell.attribute;\n }\n\n setRowSeriesNumberCellAttributes(index: number, attributes: TableSeriesNumberAttributes) {\n //找到rowSeriesNumberGroup中对应的子元素,并设置其属性\n const { frozenRowCount } = this.getAttributes() as TableSeriesNumberAttributes;\n let targetCellGroup: IGroup;\n if (index >= 0 && index < frozenRowCount) {\n const { height: oldHeight, width: oldWidth, y } = this._frozenTopRowSeriesNumberGroup.getAttributes();\n targetCellGroup = this._frozenTopRowSeriesNumberGroup.children[index];\n targetCellGroup.setAttributes(attributes);\n if (attributes.height) {\n this._frozenTopRowSeriesNumberGroup.setAttributes({\n height: this._frozenTopRowSeriesNumberGroup.getAttributes().height + (attributes.height - oldHeight)\n });\n }\n if (attributes.width) {\n this._frozenTopRowSeriesNumberGroup.setAttributes({\n width: this._frozenTopRowSeriesNumberGroup.getAttributes().width + (attributes.width - oldWidth)\n });\n }\n if (attributes.height) {\n this._rowSeriesNumberGroup.setAttributes({\n y:\n this._frozenTopRowSeriesNumberGroup.getAttributes().height +\n this._frozenTopRowSeriesNumberGroup.getAttributes().y\n });\n }\n } else {\n const rowSeriesNumberGroup = this._rowSeriesNumberGroup;\n targetCellGroup = rowSeriesNumberGroup.children[index - frozenRowCount - this._firstRowSeriesNumberIndex];\n targetCellGroup.setAttributes(attributes);\n }\n //#region 更新子元素Text的x坐标\n if (attributes.width) {\n // debugger\n let x;\n const width =\n attributes.width - this._parsedRowSeriesNumberCellPadding[3] - this._parsedRowSeriesNumberCellPadding[1];\n const textAlign = this.attribute.rowSeriesNumberCellStyle.text.textAlign;\n const padding = this._parsedRowSeriesNumberCellPadding;\n if (textAlign === 'center') {\n x = padding[3] + +width / 2;\n } else if (textAlign === 'right') {\n x = padding[3] + width;\n } else {\n x = padding[3];\n }\n // debugger\n targetCellGroup.children[0].setAttributes({\n x\n });\n }\n //#endregion\n\n //#region 更新子元素Text的y坐标\n if (attributes.height) {\n const height =\n attributes.height - this._parsedRowSeriesNumberCellPadding[0] - this._parsedRowSeriesNumberCellPadding[2];\n const textBaseline = this.attribute.rowSeriesNumberCellStyle.text.textBaseline;\n const padding = this._parsedRowSeriesNumberCellPadding;\n let y;\n if (textBaseline === 'middle') {\n y = padding[0] + (height - this.attribute.rowSeriesNumberCellStyle.text.fontSize) / 2;\n } else if (textBaseline === 'bottom') {\n y = padding[0] + height - this.attribute.rowSeriesNumberCellStyle.text.fontSize;\n } else {\n y = padding[0];\n }\n targetCellGroup.children[0].setAttributes({\n y\n });\n }\n //#endregion\n }\n setColSeriesNumberCellAttributes(index: number, attributes: TableSeriesNumberAttributes) {\n //找到colSeriesNumberGroup中对应的子元素,并设置其属性\n const { frozenColCount: frozenColCount } = this.getAttributes() as TableSeriesNumberAttributes;\n let targetCellGroup: IGroup;\n if (index >= 0 && index < frozenColCount) {\n targetCellGroup = this._frozenLeftColSeriesNumberGroup.children[index];\n const { height: oldHeight, width: oldWidth } = targetCellGroup.getAttributes();\n targetCellGroup.setAttributes(attributes);\n\n if (attributes.height) {\n this._frozenLeftColSeriesNumberGroup.setAttributes({\n height: this._frozenLeftColSeriesNumberGroup.getAttributes().height + (attributes.height - oldHeight)\n });\n }\n if (attributes.width) {\n this._frozenLeftColSeriesNumberGroup.setAttributes({\n width: this._frozenLeftColSeriesNumberGroup.getAttributes().width + (attributes.width - oldWidth)\n });\n }\n if (attributes.width) {\n this._colSeriesNumberGroup.setAttributes({\n x:\n this._frozenLeftColSeriesNumberGroup.getAttributes().width +\n this._frozenLeftColSeriesNumberGroup.getAttributes().x\n });\n }\n } else {\n const colSeriesNumberGroup = this._colSeriesNumberGroup;\n targetCellGroup = colSeriesNumberGroup.children[index - frozenColCount - this._firstColSeriesNumberIndex];\n targetCellGroup.setAttributes(attributes);\n }\n //#region 更新子元素Text的x坐标\n if (attributes.width) {\n let x;\n const width =\n attributes.width - this._parsedColSeriesNumberCellPadding[3] - this._parsedColSeriesNumberCellPadding[1];\n const textAlign = this.attribute.colSeriesNumberCellStyle.text.textAlign;\n const padding = this._parsedColSeriesNumberCellPadding;\n if (textAlign === 'center') {\n x = padding[3] + +width / 2;\n } else if (textAlign === 'right') {\n x = padding[3] + width;\n } else {\n x = padding[3];\n }\n targetCellGroup.children[0].setAttributes({\n x\n });\n }\n //#endregion\n\n //#region 更新子元素Text的y坐标\n if (attributes.height) {\n const height =\n attributes.height - this._parsedColSeriesNumberCellPadding[0] - this._parsedColSeriesNumberCellPadding[2];\n const textBaseline = this.attribute.colSeriesNumberCellStyle.text.textBaseline;\n const padding = this._parsedColSeriesNumberCellPadding;\n let y;\n if (textBaseline === 'middle') {\n y = padding[0] + (height - this.attribute.colSeriesNumberCellStyle.text.fontSize) / 2;\n } else if (textBaseline === 'bottom') {\n y = padding[0] + height - this.attribute.colSeriesNumberCellStyle.text.fontSize;\n } else {\n y = padding[0];\n }\n targetCellGroup.children[0].setAttributes({\n y\n });\n }\n //#endregion\n }\n setRowSeriesNumberGroupAttributes(attributes: TableSeriesNumberAttributes) {\n this._rowSeriesNumberGroup.setAttributes(attributes);\n }\n setColSeriesNumberGroupAttributes(attributes: TableSeriesNumberAttributes) {\n this._colSeriesNumberGroup.setAttributes(attributes);\n }\n addSelectedIndex(isRow: boolean, index: number) {\n let name: string;\n if (isRow) {\n name = `rowSeriesNumberCell-${index}`;\n } else {\n name = `colSeriesNumberCell-${index}`;\n }\n this.interactionState.selectIndexs.add(name);\n }\n addRowSelectedRanges(ranges: { startIndex: number; endIndex: number }[]) {\n const t0 = performance.now();\n for (let i = 0; i < ranges.length; i++) {\n const { startIndex, endIndex } = ranges[i];\n for (let j = startIndex; j <= endIndex; j++) {\n const name = `rowSeriesNumberCell-${j}`;\n this.interactionState.selectIndexs.add(name);\n }\n }\n const t1 = performance.now();\n }\n addColSelectedRanges(ranges: { startIndex: number; endIndex: number }[]) {\n for (let i = 0; i < ranges.length; i++) {\n const { startIndex, endIndex } = ranges[i];\n for (let j = startIndex; j <= endIndex; j++) {\n const name = `colSeriesNumberCell-${j}`;\n this.interactionState.selectIndexs.add(name);\n }\n }\n }\n addCornderSelected() {\n this.interactionState.selectIndexs.add(this._cornerGroup.name);\n }\n resetAllSelectedIndexs({ rowIndexs, colIndexs }: { rowIndexs?: number[]; colIndexs?: number[] }) {\n this.interactionState.selectIndexs = new Set();\n if (rowIndexs) {\n for (let i = 0; i < rowIndexs.length; i++) {\n const name = `rowSeriesNumberCell-${rowIndexs[i]}`;\n this.interactionState.selectIndexs.add(name);\n }\n }\n if (colIndexs) {\n for (let i = 0; i < colIndexs.length; i++) {\n const name = `colSeriesNumberCell-${colIndexs[i]}`;\n this.interactionState.selectIndexs.add(name);\n }\n }\n }\n removeSelectedIndex(isRow: boolean, index: number) {\n let name: string;\n if (isRow) {\n name = `rowSeriesNumberLeftCell-${index}`;\n } else {\n name = `colSeriesNumberCell-${index}`;\n }\n this.interactionState.selectIndexs.delete(name);\n }\n removeAllSelectedIndexs() {\n for (const name of this.interactionState.selectIndexs) {\n const isRow = name.startsWith('row');\n const isCol = name.startsWith('col');\n const index = Number(name.split('-')[1]);\n if (isRow) {\n this.getRowSeriesNumberCellGroup(index)?.removeState(SeriesNumberCellStateValue.select);\n } else if (isCol) {\n this.getColSeriesNumberCellGroup(index)?.removeState(SeriesNumberCellStateValue.select);\n } else {\n this._cornerGroup.removeState(SeriesNumberCellStateValue.select);\n }\n }\n this.interactionState.selectIndexs.clear();\n }\n removeOneGroupSelected(group: IGroup) {\n this.interactionState.selectIndexs.delete(group.name);\n group.removeState(SeriesNumberCellStateValue.select);\n }\n addOneGroupSelected(group: IGroup) {\n this.interactionState.selectIndexs.add(group.name);\n group.useStates([SeriesNumberCellStateValue.select]);\n }\n renderSelectedIndexsState() {\n const { rowSeriesNumberCellStyle, colSeriesNumberCellStyle } = this.attribute as TableSeriesNumberAttributes;\n for (const name of this.interactionState.selectIndexs) {\n const isRow = name.startsWith('row');\n const isCol = name.startsWith('col');\n const index = Number(name.split('-')[1]);\n if (isRow) {\n this.getRowSeriesNumberCellGroup(index)?.useStates([SeriesNumberCellStateValue.select]);\n } else if (isCol) {\n this.getColSeriesNumberCellGroup(index)?.useStates([SeriesNumberCellStateValue.select]);\n } else {\n this._cornerGroup.useStates([SeriesNumberCellStateValue.select]);\n }\n }\n this.stage.render();\n }\n}\n"]}
@@ -1 +0,0 @@
1
- export declare function generateColField(index: number): string;
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- function generateColField(index) {
4
- if (index < 26) return String.fromCharCode(65 + index);
5
- const title = [];
6
- for (index++; index > 0; ) index--, title.unshift(String.fromCharCode(65 + index % 26)),
7
- index = Math.floor(index / 26);
8
- return title.join("");
9
- }
10
-
11
- Object.defineProperty(exports, "__esModule", {
12
- value: !0
13
- }), exports.generateColField = void 0, exports.generateColField = generateColField;
14
- //# sourceMappingURL=tools.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/table-series-number/tools.ts"],"names":[],"mappings":";;;AAKA,SAAgB,gBAAgB,CAAC,KAAa;IAE5C,IAAI,KAAK,GAAG,EAAE,EAAE;QACd,OAAO,MAAM,CAAC,YAAY,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC;KACxC;IAED,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,KAAK,EAAE,CAAC;IAER,OAAO,KAAK,GAAG,CAAC,EAAE;QAChB,KAAK,EAAE,CAAC;QACR,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACtD,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;KAChC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxB,CAAC;AAhBD,4CAgBC","file":"tools.js","sourcesContent":["/**\n * 生成excel的列标题,规则和excel一致,如A~Z,AA~AZ,AB~AZ,AA~ZZ,AAA~ZZZ\n * @param index 从0开始\n * @returns\n */\nexport function generateColField(index: number): string {\n // 处理0-25的情况(A-Z)\n if (index < 26) {\n return String.fromCharCode(65 + index);\n }\n\n const title = [];\n index++; // 调整索引,使得第一个26变成AA\n\n while (index > 0) {\n index--; // 每次循环前减1,以正确处理进位\n title.unshift(String.fromCharCode(65 + (index % 26)));\n index = Math.floor(index / 26);\n }\n\n return title.join('');\n}\n"]}
@@ -1,79 +0,0 @@
1
- import type { IColor, IGroupGraphicAttribute, ILineGraphicAttribute, ITextGraphicAttribute } from '@visactor/vrender-core';
2
- export declare enum SeriesNumberCellStateValue {
3
- hover = "hover",
4
- select = "select"
5
- }
6
- export declare enum SeriesNumberEvent {
7
- seriesNumberCellHover = "seriesNumberCellHover",
8
- seriesNumberCellUnHover = "seriesNumberCellUnHover",
9
- seriesNumberCellClick = "seriesNumberCellClick",
10
- seriesNumberCellClickUp = "seriesNumberCellClickUp",
11
- seriesNumberCellCancelClick = "seriesNumberCellCancelClick",
12
- rowSeriesNumberWidthChange = "rowSeriesNumberWidthChange",
13
- resizeRowHeightStart = "resizeRowHeightStart",
14
- resizeColWidthStart = "resizeColWidthStart"
15
- }
16
- export type TableSeriesNumberAttributes = IGroupGraphicAttribute & {
17
- frozenRowCount?: number;
18
- frozenColCount?: number;
19
- rightFrozenColCount?: number;
20
- bottomFrozenRowCount?: number;
21
- rowSeriesNumberGenerate?: (index: number) => string;
22
- rowSeriesNumberWidth?: number | 'auto';
23
- rowHeight?: number | 'auto';
24
- rowCount?: number;
25
- rowSeriesNumberCellStyle?: {
26
- text?: ITextGraphicAttribute & {
27
- padding?: number | number[];
28
- };
29
- borderLine?: ILineGraphicAttribute;
30
- bgColor?: IColor;
31
- states?: {
32
- hover: {
33
- fill: IColor;
34
- opacity: number;
35
- };
36
- select?: {
37
- fill: IColor;
38
- opacity: number;
39
- };
40
- };
41
- };
42
- colSeriesNumberGenerate?: (index: number) => string;
43
- colSeriesNumberHeight?: number | 'auto';
44
- colWidth?: number | 'auto';
45
- colSeriesNumberCellStyle?: {
46
- text?: ITextGraphicAttribute & {
47
- padding?: number | number[];
48
- };
49
- borderLine?: ILineGraphicAttribute;
50
- bgColor?: IColor;
51
- states?: {
52
- hover: {
53
- fill: IColor;
54
- opacity: number;
55
- };
56
- select?: {
57
- fill: IColor;
58
- opacity: number;
59
- };
60
- };
61
- };
62
- colCount?: number;
63
- cornerCellStyle?: {
64
- borderLine?: ILineGraphicAttribute;
65
- bgColor?: IColor;
66
- states?: {
67
- hover: {
68
- fill: IColor;
69
- opacity: number;
70
- };
71
- select?: {
72
- fill: IColor;
73
- opacity: number;
74
- };
75
- };
76
- };
77
- select?: boolean;
78
- hover?: boolean;
79
- };
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- var SeriesNumberCellStateValue, SeriesNumberEvent;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: !0
7
- }), exports.SeriesNumberEvent = exports.SeriesNumberCellStateValue = void 0, function(SeriesNumberCellStateValue) {
8
- SeriesNumberCellStateValue.hover = "hover", SeriesNumberCellStateValue.select = "select";
9
- }(SeriesNumberCellStateValue = exports.SeriesNumberCellStateValue || (exports.SeriesNumberCellStateValue = {})),
10
- function(SeriesNumberEvent) {
11
- SeriesNumberEvent.seriesNumberCellHover = "seriesNumberCellHover", SeriesNumberEvent.seriesNumberCellUnHover = "seriesNumberCellUnHover",
12
- SeriesNumberEvent.seriesNumberCellClick = "seriesNumberCellClick", SeriesNumberEvent.seriesNumberCellClickUp = "seriesNumberCellClickUp",
13
- SeriesNumberEvent.seriesNumberCellCancelClick = "seriesNumberCellCancelClick", SeriesNumberEvent.rowSeriesNumberWidthChange = "rowSeriesNumberWidthChange",
14
- SeriesNumberEvent.resizeRowHeightStart = "resizeRowHeightStart", SeriesNumberEvent.resizeColWidthStart = "resizeColWidthStart";
15
- }(SeriesNumberEvent = exports.SeriesNumberEvent || (exports.SeriesNumberEvent = {}));
16
- //# sourceMappingURL=type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/table-series-number/type.ts"],"names":[],"mappings":";;;AASA,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,6CAAe,CAAA;IACf,+CAAiB,CAAA;AACnB,CAAC,EAHW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAGrC;AACD,IAAY,iBAaX;AAbD,WAAY,iBAAiB;IAC3B,oEAA+C,CAAA;IAC/C,wEAAmD,CAAA;IACnD,oEAA+C,CAAA;IAC/C,wEAAmD,CAAA;IACnD,gFAA2D,CAAA;IAC3D,8EAAyD,CAAA;IAGzD,kEAA6C,CAAA;IAG7C,gEAA2C,CAAA;AAC7C,CAAC,EAbW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAa5B","file":"type.js","sourcesContent":["import type {\n IColor,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILineGraphicAttribute,\n ITextGraphicAttribute\n} from '@visactor/vrender-core';\n\n// export type EmptyTipIcon = IImageGraphicAttribute;\nexport enum SeriesNumberCellStateValue {\n hover = 'hover',\n select = 'select'\n}\nexport enum SeriesNumberEvent {\n seriesNumberCellHover = 'seriesNumberCellHover',\n seriesNumberCellUnHover = 'seriesNumberCellUnHover',\n seriesNumberCellClick = 'seriesNumberCellClick',\n seriesNumberCellClickUp = 'seriesNumberCellClickUp',\n seriesNumberCellCancelClick = 'seriesNumberCellCancelClick',\n rowSeriesNumberWidthChange = 'rowSeriesNumberWidthChange',\n\n /** 调整行高开始 */\n resizeRowHeightStart = 'resizeRowHeightStart',\n\n /** 调整列宽开始 */\n resizeColWidthStart = 'resizeColWidthStart'\n}\nexport type TableSeriesNumberAttributes = IGroupGraphicAttribute & {\n frozenRowCount?: number;\n frozenColCount?: number;\n rightFrozenColCount?: number;\n bottomFrozenRowCount?: number;\n rowSeriesNumberGenerate?: (index: number) => string;\n rowSeriesNumberWidth?: number | 'auto';\n rowHeight?: number | 'auto';\n rowCount?: number;\n rowSeriesNumberCellStyle?: {\n text?: ITextGraphicAttribute & { padding?: number | number[] };\n borderLine?: ILineGraphicAttribute;\n bgColor?: IColor;\n states?: {\n hover: {\n fill: IColor;\n opacity: number;\n };\n select?: {\n fill: IColor;\n opacity: number;\n };\n };\n };\n colSeriesNumberGenerate?: (index: number) => string;\n colSeriesNumberHeight?: number | 'auto';\n colWidth?: number | 'auto';\n colSeriesNumberCellStyle?: {\n text?: ITextGraphicAttribute & { padding?: number | number[] };\n borderLine?: ILineGraphicAttribute;\n bgColor?: IColor;\n states?: {\n hover: {\n fill: IColor;\n opacity: number;\n };\n select?: {\n fill: IColor;\n opacity: number;\n };\n };\n };\n colCount?: number;\n cornerCellStyle?: {\n borderLine?: ILineGraphicAttribute;\n bgColor?: IColor;\n states?: {\n hover: {\n fill: IColor;\n opacity: number;\n };\n select?: {\n fill: IColor;\n opacity: number;\n };\n };\n };\n /**\n * 是否开启选中交互\n */\n select?: boolean;\n // | {\n // /**\n // * 触发选中交互的事件类型\n // * @since 0.20.13\n // **/\n // trigger?: GraphicEventType;\n // };\n\n /**\n * 是否开启 hover 交互\n */\n hover?: boolean;\n // | {\n // /**\n // * 触发hover交互的事件类型\n // * @since 0.20.13\n // **/\n // trigger?: GraphicEventType;\n // /**\n // * 触发取消hover交互的事件类型\n // * @since 0.20.13\n // **/\n // triggerOff?: GraphicEventType;\n // };\n};\n"]}
@@ -1,15 +0,0 @@
1
- import type { TableSeriesNumber } from './table-series-number';
2
- export declare class TableSeriesNumberEventManager {
3
- private _tableSeriesNumber;
4
- isPointerDownStartSelect: boolean;
5
- constructor(tableSeriesNumber: TableSeriesNumber);
6
- bindEvents(): void;
7
- private _onPointermove;
8
- private _onPointerleave;
9
- private _onPointerdown;
10
- private _onPointerup;
11
- private _hoverHandler;
12
- private _unHoverHandler;
13
- private _clickHandler;
14
- private _unClickHandler;
15
- }
@@ -1,143 +0,0 @@
1
- import { vglobal } from "@visactor/vrender-core";
2
-
3
- import { SeriesNumberCellStateValue, SeriesNumberEvent } from "./type";
4
-
5
- export class TableSeriesNumberEventManager {
6
- constructor(tableSeriesNumber) {
7
- this.isPointerDownStartSelect = !1, this._onPointermove = e => {
8
- const target = e.target;
9
- if (this.isPointerDownStartSelect) {
10
- if (this._tableSeriesNumber.interactionState.selectIndexs.has(target.name)) {
11
- if (this._tableSeriesNumber.interactionState._lastClickItem && this._tableSeriesNumber.interactionState._lastClickItem.id === target.id) return;
12
- this._tableSeriesNumber.renderSelectedIndexsState(), this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellClick, {
13
- seriesNumberCell: target,
14
- event: e,
15
- isDragSelect: !0
16
- });
17
- } else this._tableSeriesNumber.interactionState.selectIndexs.add(target.name), this._tableSeriesNumber.renderSelectedIndexsState(),
18
- this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellClick, {
19
- seriesNumberCell: target,
20
- event: e,
21
- isDragSelect: !0
22
- });
23
- this._tableSeriesNumber.interactionState._lastClickItem = target;
24
- } else {
25
- if (target.name.startsWith("col")) {
26
- Number(target.name.split("-")[1]);
27
- const canvasPointXY = target.stage.window.pointTransform(e.canvasX, e.canvasY), XYtoTarget = {
28
- x: 0,
29
- y: 0
30
- };
31
- target.globalTransMatrix.transformPoint(canvasPointXY, XYtoTarget), XYtoTarget.x <= 4 || XYtoTarget.x <= target.getAttributes().width && XYtoTarget.x >= target.getAttributes().width - 4 ? target.setAttribute("cursor", "col-resize") : target.setAttribute("cursor", "default");
32
- } else if (target.name.startsWith("row")) {
33
- Number(target.name.split("-")[1]);
34
- const canvasPointXY = target.stage.window.pointTransform(e.canvasX, e.canvasY), XYtoTarget = {
35
- x: 0,
36
- y: 0
37
- };
38
- target.globalTransMatrix.transformPoint(canvasPointXY, XYtoTarget), XYtoTarget.y <= 4 || XYtoTarget.y <= target.getAttributes().height && XYtoTarget.y >= target.getAttributes().height - 4 ? target.setAttribute("cursor", "row-resize") : target.setAttribute("cursor", "default");
39
- }
40
- if (this._tableSeriesNumber.interactionState._lastHoverItem) {
41
- if (this._tableSeriesNumber.interactionState._lastHoverItem.id === target.id) return;
42
- this._unHoverHandler(this._tableSeriesNumber.interactionState._lastHoverItem, e);
43
- }
44
- this._tableSeriesNumber.getAttributes().hover && this._hoverHandler(target, e);
45
- }
46
- }, this._onPointerleave = e => {
47
- this._tableSeriesNumber.interactionState._lastHoverItem && (this._unHoverHandler(this._tableSeriesNumber.interactionState._lastHoverItem, e),
48
- this._tableSeriesNumber.interactionState._lastHoverItem = null);
49
- }, this._onPointerdown = e => {
50
- var _a;
51
- const target = e.target;
52
- if (target.name.startsWith("col")) {
53
- const colIndex = Number(target.name.split("-")[1]), canvasPointXY = target.stage.window.pointTransform(e.canvasX, e.canvasY), XYtoTarget = {
54
- x: 0,
55
- y: 0
56
- };
57
- if (target.globalTransMatrix.transformPoint(canvasPointXY, XYtoTarget), XYtoTarget.x <= 4 || XYtoTarget.x <= target.getAttributes().width && XYtoTarget.x >= target.getAttributes().width - 4) {
58
- let resizeTargetColIndex = colIndex;
59
- return XYtoTarget.x <= 4 && (resizeTargetColIndex = colIndex - 1), void this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.resizeColWidthStart, {
60
- colIndex: resizeTargetColIndex,
61
- event: e
62
- });
63
- }
64
- } else if (target.name.startsWith("row")) {
65
- const rowIndex = Number(target.name.split("-")[1]), canvasPointXY = target.stage.window.pointTransform(e.canvasX, e.canvasY), XYtoTarget = {
66
- x: 0,
67
- y: 0
68
- };
69
- if (target.globalTransMatrix.transformPoint(canvasPointXY, XYtoTarget), XYtoTarget.y <= 4 || XYtoTarget.y <= target.getAttributes().height && XYtoTarget.y >= target.getAttributes().height - 4) {
70
- let resizeTargetRowIndex = rowIndex;
71
- return XYtoTarget.y <= 4 && (resizeTargetRowIndex = rowIndex - 1), void this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.resizeRowHeightStart, {
72
- rowIndex: resizeTargetRowIndex,
73
- event: e
74
- });
75
- }
76
- }
77
- if (this.isPointerDownStartSelect = !0, null === (_a = this._tableSeriesNumber.interactionState.selectIndexs) || void 0 === _a ? void 0 : _a.size) if (this._tableSeriesNumber.interactionState.selectIndexs.has(target.name)) if (e.nativeEvent.ctrlKey || e.nativeEvent.metaKey) this._tableSeriesNumber.removeOneGroupSelected(target),
78
- this._unClickHandler(target.name, e); else {
79
- this._tableSeriesNumber.removeAllSelectedIndexs();
80
- for (const name of this._tableSeriesNumber.interactionState.selectIndexs) this._unClickHandler(name, e);
81
- } else if (e.nativeEvent.ctrlKey || e.nativeEvent.metaKey) ; else {
82
- this._tableSeriesNumber.removeAllSelectedIndexs();
83
- for (const name of this._tableSeriesNumber.interactionState.selectIndexs) (target.name.startsWith("row") && name.startsWith("row") || target.name.startsWith("col") && name.startsWith("col")) && this._unClickHandler(name, e);
84
- }
85
- this._clickHandler(target, e);
86
- }, this._onPointerup = e => {
87
- const target = e.target;
88
- this.isPointerDownStartSelect && (this.isPointerDownStartSelect = !1, this._tableSeriesNumber.interactionState._lastClickItem = null,
89
- this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellClickUp, {
90
- seriesNumberCell: target,
91
- event: e
92
- }));
93
- }, this._tableSeriesNumber = tableSeriesNumber;
94
- }
95
- bindEvents() {
96
- const {hover: hover = !0, select: select = !0} = this._tableSeriesNumber.attribute;
97
- hover && (this._tableSeriesNumber._rowSeriesNumberGroup.addEventListener("pointermove", this._onPointermove),
98
- this._tableSeriesNumber._rowSeriesNumberGroup.addEventListener("pointerleave", this._onPointerleave),
99
- this._tableSeriesNumber._colSeriesNumberGroup.addEventListener("pointermove", this._onPointermove),
100
- this._tableSeriesNumber._colSeriesNumberGroup.addEventListener("pointerleave", this._onPointerleave),
101
- this._tableSeriesNumber._cornerGroup.addEventListener("pointermove", this._onPointermove),
102
- this._tableSeriesNumber._cornerGroup.addEventListener("pointerleave", this._onPointerleave),
103
- this._tableSeriesNumber._frozenTopRowSeriesNumberGroup.addEventListener("pointermove", this._onPointermove),
104
- this._tableSeriesNumber._frozenTopRowSeriesNumberGroup.addEventListener("pointerleave", this._onPointerleave),
105
- this._tableSeriesNumber._frozenLeftColSeriesNumberGroup.addEventListener("pointermove", this._onPointermove),
106
- this._tableSeriesNumber._frozenLeftColSeriesNumberGroup.addEventListener("pointerleave", this._onPointerleave)),
107
- select && (this._tableSeriesNumber._rowSeriesNumberGroup.addEventListener("pointerdown", this._onPointerdown),
108
- this._tableSeriesNumber._colSeriesNumberGroup.addEventListener("pointerdown", this._onPointerdown),
109
- this._tableSeriesNumber._cornerGroup.addEventListener("pointerdown", this._onPointerdown),
110
- this._tableSeriesNumber._frozenTopRowSeriesNumberGroup.addEventListener("pointerdown", this._onPointerdown),
111
- this._tableSeriesNumber._frozenLeftColSeriesNumberGroup.addEventListener("pointerdown", this._onPointerdown),
112
- vglobal.addEventListener("pointerup", this._onPointerup));
113
- }
114
- _hoverHandler(seriesNumberCell, e) {
115
- this._tableSeriesNumber.interactionState._lastHoverItem = seriesNumberCell, seriesNumberCell.hasState(SeriesNumberCellStateValue.select) ? seriesNumberCell.useStates([ SeriesNumberCellStateValue.select, SeriesNumberCellStateValue.hover ]) : seriesNumberCell.useStates([ SeriesNumberCellStateValue.hover ]),
116
- this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellHover, {
117
- seriesNumberCell: seriesNumberCell,
118
- event: e
119
- });
120
- }
121
- _unHoverHandler(seriesNumberCell, e) {
122
- seriesNumberCell.removeState(SeriesNumberCellStateValue.hover), this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellUnHover, {
123
- seriesNumberCell: seriesNumberCell,
124
- event: e
125
- });
126
- }
127
- _clickHandler(seriesNumberCell, e) {
128
- this._tableSeriesNumber.addOneGroupSelected(seriesNumberCell), this._tableSeriesNumber.interactionState._lastClickItem = seriesNumberCell,
129
- this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellClick, {
130
- seriesNumberCell: seriesNumberCell,
131
- event: e
132
- });
133
- }
134
- _unClickHandler(seriesNumberIndex, e) {
135
- const seriesNumberCell = seriesNumberIndex.startsWith("row") ? this._tableSeriesNumber.getRowSeriesNumberCellGroup(Number(seriesNumberIndex.split("-")[1])) : this._tableSeriesNumber.getColSeriesNumberCellGroup(Number(seriesNumberIndex.split("-")[1]));
136
- null == seriesNumberCell || seriesNumberCell.removeState(SeriesNumberCellStateValue.select),
137
- this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellCancelClick, {
138
- index: seriesNumberIndex,
139
- event: e
140
- });
141
- }
142
- }
143
- //# sourceMappingURL=event-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/table-series-number/event-manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAmE,MAAM,wBAAwB,CAAC;AAClH,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEvE,MAAM,OAAO,6BAA6B;IAGxC,YAAY,iBAAoC;QADhD,6BAAwB,GAAY,KAAK,CAAC;QAiFlC,mBAAc,GAAG,CAAC,CAAwB,EAAE,EAAE;YAEpD,MAAM,MAAM,GAAG,CAAC,CAAC,MAA2B,CAAC;YAC7C,IAAI,IAAI,CAAC,wBAAwB,EAAE;gBACjC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;oBAC3E,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBACvE,IAAI,CAAC,kBAAkB,CAAC,yBAAyB,EAAE,CAAC;oBACpD,IAAI,CAAC,kBAAkB,CAAC,8BAA8B,CAAC,iBAAiB,CAAC,qBAAqB,EAAE;wBAC9F,gBAAgB,EAAE,MAAM;wBACxB,KAAK,EAAE,CAAC;wBACR,YAAY,EAAE,IAAI;qBACnB,CAAC,CAAC;iBACJ;qBAAM;oBACL,IACE,IAAI,CAAC,kBAAkB,CA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YAC5B,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,2BAA2B,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9F,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,2BAA2B,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACjG,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,WAAW,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;QACjE,IAAI,CAAC,kBAAkB,CAAC,8BAA8B,CAAC,iBAAiB,CAAC,2BAA2B,EAAE;YACpG,KAAK,EAAE,iBAAiB;YACxB,KAAK,EAAE,CAAC;SACT,CAAC,CAAC;IACL,CAAC;CACF","file":"event-manager.js","sourcesContent":["import type { TableSeriesNumber } from './table-series-number';\nimport { vglobal, type FederatedPointerEvent, type Group, type IGroup, type IText } from '@visactor/vrender-core';\nimport { SeriesNumberCellStateValue, SeriesNumberEvent } from './type';\n\nexport class TableSeriesNumberEventManager {\n private _tableSeriesNumber: TableSeriesNumber;\n isPointerDownStartSelect: boolean = false;\n constructor(tableSeriesNumber: TableSeriesNumber) {\n this._tableSeriesNumber = tableSeriesNumber;\n }\n\n bindEvents() {\n //ff\n const { hover = true, select = true } = this._tableSeriesNumber.attribute;\n\n if (hover) {\n this._tableSeriesNumber._rowSeriesNumberGroup.addEventListener(\n 'pointermove',\n this._onPointermove as EventListenerOrEventListenerObject\n );\n this._tableSeriesNumber._rowSeriesNumberGroup.addEventListener(\n 'pointerleave',\n this._onPointerleave as EventListenerOrEventListenerObject\n );\n\n this._tableSeriesNumber._colSeriesNumberGroup.addEventListener(\n 'pointermove',\n this._onPointermove as EventListenerOrEventListenerObject\n );\n this._tableSeriesNumber._colSeriesNumberGroup.addEventListener(\n 'pointerleave',\n this._onPointerleave as EventListenerOrEventListenerObject\n );\n\n this._tableSeriesNumber._cornerGroup.addEventListener(\n 'pointermove',\n this._onPointermove as EventListenerOrEventListenerObject\n );\n this._tableSeriesNumber._cornerGroup.addEventListener(\n 'pointerleave',\n this._onPointerleave as EventListenerOrEventListenerObject\n );\n\n this._tableSeriesNumber._frozenTopRowSeriesNumberGroup.addEventListener(\n 'pointermove',\n this._onPointermove as EventListenerOrEventListenerObject\n );\n this._tableSeriesNumber._frozenTopRowSeriesNumberGroup.addEventListener(\n 'pointerleave',\n this._onPointerleave as EventListenerOrEventListenerObject\n );\n\n this._tableSeriesNumber._frozenLeftColSeriesNumberGroup.addEventListener(\n 'pointermove',\n this._onPointermove as EventListenerOrEventListenerObject\n );\n this._tableSeriesNumber._frozenLeftColSeriesNumberGroup.addEventListener(\n 'pointerleave',\n this._onPointerleave as EventListenerOrEventListenerObject\n );\n }\n\n if (select) {\n this._tableSeriesNumber._rowSeriesNumberGroup.addEventListener(\n 'pointerdown',\n this._onPointerdown as EventListenerOrEventListenerObject\n );\n this._tableSeriesNumber._colSeriesNumberGroup.addEventListener(\n 'pointerdown',\n this._onPointerdown as EventListenerOrEventListenerObject\n );\n this._tableSeriesNumber._cornerGroup.addEventListener(\n 'pointerdown',\n this._onPointerdown as EventListenerOrEventListenerObject\n );\n this._tableSeriesNumber._frozenTopRowSeriesNumberGroup.addEventListener(\n 'pointerdown',\n this._onPointerdown as EventListenerOrEventListenerObject\n );\n this._tableSeriesNumber._frozenLeftColSeriesNumberGroup.addEventListener(\n 'pointerdown',\n this._onPointerdown as EventListenerOrEventListenerObject\n );\n\n vglobal.addEventListener('pointerup', this._onPointerup as EventListenerOrEventListenerObject);\n }\n }\n private _onPointermove = (e: FederatedPointerEvent) => {\n //ff\n const target = e.target as unknown as IGroup;\n if (this.isPointerDownStartSelect) {\n if (!this._tableSeriesNumber.interactionState.selectIndexs.has(target.name)) {\n this._tableSeriesNumber.interactionState.selectIndexs.add(target.name);\n this._tableSeriesNumber.renderSelectedIndexsState();\n this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellClick, {\n seriesNumberCell: target,\n event: e,\n isDragSelect: true\n });\n } else {\n if (\n this._tableSeriesNumber.interactionState._lastClickItem &&\n this._tableSeriesNumber.interactionState._lastClickItem.id === target.id\n ) {\n return;\n }\n this._tableSeriesNumber.renderSelectedIndexsState();\n this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellClick, {\n seriesNumberCell: target,\n event: e,\n isDragSelect: true\n });\n }\n this._tableSeriesNumber.interactionState._lastClickItem = target;\n return;\n }\n\n if (target.name.startsWith('col')) {\n //判断鼠标是否位于列间隔线附近,如果是则设置cursor为col-resize\n const colIndex = Number(target.name.split('-')[1]);\n const canvasPointXY = target.stage.window.pointTransform(e.canvasX, e.canvasY);\n const XYtoTarget = { x: 0, y: 0 };\n\n target.globalTransMatrix.transformPoint(canvasPointXY, XYtoTarget);\n if (\n XYtoTarget.x <= 4 ||\n (XYtoTarget.x <= target.getAttributes().width && XYtoTarget.x >= target.getAttributes().width - 4)\n ) {\n target.setAttribute('cursor', 'col-resize');\n } else {\n target.setAttribute('cursor', 'default');\n }\n } else if (target.name.startsWith('row')) {\n //判断鼠标是否位于行间隔线附近,如果是则设置cursor为row-resize\n const rowIndex = Number(target.name.split('-')[1]);\n const canvasPointXY = target.stage.window.pointTransform(e.canvasX, e.canvasY);\n const XYtoTarget = { x: 0, y: 0 };\n\n target.globalTransMatrix.transformPoint(canvasPointXY, XYtoTarget);\n if (\n XYtoTarget.y <= 4 ||\n (XYtoTarget.y <= target.getAttributes().height && XYtoTarget.y >= target.getAttributes().height - 4)\n ) {\n target.setAttribute('cursor', 'row-resize');\n } else {\n target.setAttribute('cursor', 'default');\n }\n }\n // // 如果上个激活元素存在,则判断当前元素是否和上个激活元素相同,相同则不做处理,不相同则触发 unhover\n if (this._tableSeriesNumber.interactionState._lastHoverItem) {\n if (this._tableSeriesNumber.interactionState._lastHoverItem.id === target.id) {\n return;\n }\n this._unHoverHandler(this._tableSeriesNumber.interactionState._lastHoverItem, e);\n }\n if ((this._tableSeriesNumber.getAttributes() as any).hover) {\n this._hoverHandler(target, e);\n }\n };\n private _onPointerleave = (e: FederatedPointerEvent) => {\n //ff\n if (this._tableSeriesNumber.interactionState._lastHoverItem) {\n this._unHoverHandler(this._tableSeriesNumber.interactionState._lastHoverItem, e);\n this._tableSeriesNumber.interactionState._lastHoverItem = null;\n }\n };\n private _onPointerdown = (e: FederatedPointerEvent) => {\n //ff\n const target = e.target as unknown as IGroup;\n\n if (target.name.startsWith('col')) {\n //判断鼠标是否位于列间隔线附近,如果是则触发resizeColWidthStart事件\n const colIndex = Number(target.name.split('-')[1]);\n const canvasPointXY = target.stage.window.pointTransform(e.canvasX, e.canvasY);\n const XYtoTarget = { x: 0, y: 0 };\n\n target.globalTransMatrix.transformPoint(canvasPointXY, XYtoTarget);\n if (\n XYtoTarget.x <= 4 ||\n (XYtoTarget.x <= target.getAttributes().width && XYtoTarget.x >= target.getAttributes().width - 4)\n ) {\n let resizeTargetColIndex = colIndex;\n if (XYtoTarget.x <= 4) {\n resizeTargetColIndex = colIndex - 1;\n }\n this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.resizeColWidthStart, {\n colIndex: resizeTargetColIndex,\n event: e\n });\n return;\n }\n } else if (target.name.startsWith('row')) {\n //判断鼠标是否位于行间隔线附近,如果是则触发resizeRowHeightStart事件\n const rowIndex = Number(target.name.split('-')[1]);\n const canvasPointXY = target.stage.window.pointTransform(e.canvasX, e.canvasY);\n const XYtoTarget = { x: 0, y: 0 };\n\n target.globalTransMatrix.transformPoint(canvasPointXY, XYtoTarget);\n if (\n XYtoTarget.y <= 4 ||\n (XYtoTarget.y <= target.getAttributes().height && XYtoTarget.y >= target.getAttributes().height - 4)\n ) {\n let resizeTargetRowIndex = rowIndex;\n if (XYtoTarget.y <= 4) {\n resizeTargetRowIndex = rowIndex - 1;\n }\n this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.resizeRowHeightStart, {\n rowIndex: resizeTargetRowIndex,\n event: e\n });\n return;\n }\n }\n this.isPointerDownStartSelect = true;\n if (this._tableSeriesNumber.interactionState.selectIndexs?.size) {\n if (this._tableSeriesNumber.interactionState.selectIndexs.has(target.name)) {\n if (e.nativeEvent.ctrlKey || e.nativeEvent.metaKey) {\n this._tableSeriesNumber.removeOneGroupSelected(target);\n this._unClickHandler(target.name, e);\n } else {\n this._tableSeriesNumber.removeAllSelectedIndexs();\n for (const name of this._tableSeriesNumber.interactionState.selectIndexs) {\n this._unClickHandler(name, e);\n }\n }\n } else {\n if (e.nativeEvent.ctrlKey || e.nativeEvent.metaKey) {\n // nothing\n } else {\n this._tableSeriesNumber.removeAllSelectedIndexs();\n for (const name of this._tableSeriesNumber.interactionState.selectIndexs) {\n if (\n (target.name.startsWith('row') && name.startsWith('row')) ||\n (target.name.startsWith('col') && name.startsWith('col'))\n ) {\n this._unClickHandler(name, e);\n }\n }\n }\n }\n }\n this._clickHandler(target, e);\n };\n private _onPointerup = (e: FederatedPointerEvent) => {\n //ff\n const target = e.target as unknown as IGroup;\n if (this.isPointerDownStartSelect) {\n this.isPointerDownStartSelect = false;\n this._tableSeriesNumber.interactionState._lastClickItem = null;\n this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellClickUp, {\n seriesNumberCell: target,\n event: e\n });\n }\n };\n\n private _hoverHandler(seriesNumberCell: IGroup, e: FederatedPointerEvent) {\n this._tableSeriesNumber.interactionState._lastHoverItem = seriesNumberCell;\n //需兼顾select状态\n if (seriesNumberCell.hasState(SeriesNumberCellStateValue.select)) {\n seriesNumberCell.useStates([SeriesNumberCellStateValue.select, SeriesNumberCellStateValue.hover]);\n } else {\n seriesNumberCell.useStates([SeriesNumberCellStateValue.hover]);\n }\n\n this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellHover, {\n seriesNumberCell,\n event: e\n });\n }\n\n private _unHoverHandler(seriesNumberCell: IGroup, e: FederatedPointerEvent) {\n seriesNumberCell.removeState(SeriesNumberCellStateValue.hover);\n this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellUnHover, {\n seriesNumberCell,\n event: e\n });\n }\n\n private _clickHandler(seriesNumberCell: IGroup, e: FederatedPointerEvent) {\n // this._tableSeriesNumber.interactionState.selectIndexs.add(seriesNumberCell.name);\n // seriesNumberCell.useStates([SeriesNumberCellStateValue.select]);\n this._tableSeriesNumber.addOneGroupSelected(seriesNumberCell);\n this._tableSeriesNumber.interactionState._lastClickItem = seriesNumberCell;\n this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellClick, {\n seriesNumberCell,\n event: e\n });\n }\n private _unClickHandler(seriesNumberIndex: string, e: FederatedPointerEvent) {\n const isRow = seriesNumberIndex.startsWith('row');\n // const isCol = seriesNumberIndex.startsWith('col');\n\n // this._tableSeriesNumber.interactionState.selectIndexs.delete(seriesNumberIndex);\n // this._tableSeriesNumber.removeOneGroupSelected(seriesNumberIndex);\n const seriesNumberCell = isRow\n ? this._tableSeriesNumber.getRowSeriesNumberCellGroup(Number(seriesNumberIndex.split('-')[1]))\n : this._tableSeriesNumber.getColSeriesNumberCellGroup(Number(seriesNumberIndex.split('-')[1]));\n seriesNumberCell?.removeState(SeriesNumberCellStateValue.select);\n this._tableSeriesNumber.dispatchTableSeriesNumberEvent(SeriesNumberEvent.seriesNumberCellCancelClick, {\n index: seriesNumberIndex,\n event: e\n });\n }\n}\n"]}
@@ -1,2 +0,0 @@
1
- export * from './table-series-number';
2
- export * from './type';
@@ -1,4 +0,0 @@
1
- export * from "./table-series-number";
2
-
3
- export * from "./type";
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/table-series-number/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC","file":"index.js","sourcesContent":["export * from './table-series-number';\nexport * from './type';\n"]}
@@ -1 +0,0 @@
1
- export declare function loadTableSeriesNumberComponent(): void;
@@ -1,6 +0,0 @@
1
- import { registerGroup, registerImage, registerText } from "@visactor/vrender-kits";
2
-
3
- export function loadTableSeriesNumberComponent() {
4
- registerGroup(), registerText(), registerImage();
5
- }
6
- //# sourceMappingURL=register.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/table-series-number/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAgB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAElG,MAAM,UAAU,8BAA8B;IAC5C,aAAa,EAAE,CAAC;IAEhB,YAAY,EAAE,CAAC;IACf,aAAa,EAAE,CAAC;AAClB,CAAC","file":"register.js","sourcesContent":["import { registerGroup, registerImage, registerRect, registerText } from '@visactor/vrender-kits';\n\nexport function loadTableSeriesNumberComponent() {\n registerGroup();\n // registerRect();\n registerText();\n registerImage();\n}\n"]}
@@ -1,76 +0,0 @@
1
- import { AbstractComponent } from '../core/base';
2
- import type { TableSeriesNumberAttributes } from './type';
3
- import { TableSeriesNumberEventManager } from './event-manager';
4
- import type { IGroup } from '@visactor/vrender-core';
5
- import type { ComponentOptions } from '../interface';
6
- export declare class TableSeriesNumber extends AbstractComponent<Required<TableSeriesNumberAttributes>> {
7
- static defaultAttributes: Partial<TableSeriesNumberAttributes>;
8
- name: string;
9
- protected _tableSeriesNumberContainer: IGroup;
10
- _cornerGroup: IGroup;
11
- _rowSeriesNumberGroup: IGroup;
12
- _colSeriesNumberGroup: IGroup;
13
- _frozenTopRowSeriesNumberGroup: IGroup;
14
- _frozenLeftColSeriesNumberGroup: IGroup;
15
- _frozenRightColSeriesNumberGroup: IGroup;
16
- _frozenBottomRowSeriesNumberGroup: IGroup;
17
- _firstRowSeriesNumberIndex: number;
18
- _firstColSeriesNumberIndex: number;
19
- _maxTextWidth: number;
20
- _changeRowSeriesNumberWidthTimer: number;
21
- interactionState: {
22
- _lastHoverItem: IGroup;
23
- _lastClickItem: IGroup;
24
- selectIndexs?: Set<string>;
25
- };
26
- _parsedRowSeriesNumberCellPadding: number[];
27
- _parsedColSeriesNumberCellPadding: number[];
28
- initRenderAll: boolean;
29
- _eventManager: TableSeriesNumberEventManager;
30
- constructor(attributes: TableSeriesNumberAttributes, options?: ComponentOptions & {
31
- initRenderAll?: boolean;
32
- });
33
- get rowSeriesNumberWidth(): number;
34
- get colSeriesNumberHeight(): number;
35
- get rowCount(): number;
36
- get colCount(): number;
37
- protected bindEvents(): void;
38
- dispatchTableSeriesNumberEvent(event: any, ...args: any): void;
39
- render(): void;
40
- _renderContent(): void;
41
- _renderCorner(): void;
42
- _renderRowSeriesNumber(): void;
43
- _renderColSeriesNumber(): void;
44
- _renderFrozenTopRowSeriesNumber(): void;
45
- _renderFrozenLeftColSeriesNumber(): void;
46
- recreateCellsToRowSeriesNumberGroup(startIndex: number, endIndex: number): void;
47
- recreateCellsToColSeriesNumberGroup(startIndex: number, endIndex: number): void;
48
- changeRowSeriesNumberWidth(newWidth: number): void;
49
- getRowSeriesNumberCellGroup(index: number): any;
50
- getColSeriesNumberCellGroup(index: number): any;
51
- getRowSeriesNumberCellAttributes(index: number): any;
52
- getColSeriesNumberCellAttributes(index: number): any;
53
- setRowSeriesNumberCellAttributes(index: number, attributes: TableSeriesNumberAttributes): void;
54
- setColSeriesNumberCellAttributes(index: number, attributes: TableSeriesNumberAttributes): void;
55
- setRowSeriesNumberGroupAttributes(attributes: TableSeriesNumberAttributes): void;
56
- setColSeriesNumberGroupAttributes(attributes: TableSeriesNumberAttributes): void;
57
- addSelectedIndex(isRow: boolean, index: number): void;
58
- addRowSelectedRanges(ranges: {
59
- startIndex: number;
60
- endIndex: number;
61
- }[]): void;
62
- addColSelectedRanges(ranges: {
63
- startIndex: number;
64
- endIndex: number;
65
- }[]): void;
66
- addCornderSelected(): void;
67
- resetAllSelectedIndexs({ rowIndexs, colIndexs }: {
68
- rowIndexs?: number[];
69
- colIndexs?: number[];
70
- }): void;
71
- removeSelectedIndex(isRow: boolean, index: number): void;
72
- removeAllSelectedIndexs(): void;
73
- removeOneGroupSelected(group: IGroup): void;
74
- addOneGroupSelected(group: IGroup): void;
75
- renderSelectedIndexsState(): void;
76
- }