k-vtable 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +151 -0
- package/cjs/ListTable-all.d.ts +3 -0
- package/cjs/ListTable-all.js +20 -0
- package/cjs/ListTable-all.js.map +1 -0
- package/cjs/ListTable-simple.d.ts +3 -0
- package/cjs/ListTable-simple.js +14 -0
- package/cjs/ListTable-simple.js.map +1 -0
- package/cjs/ListTable.d.ts +101 -0
- package/cjs/ListTable.js +682 -0
- package/cjs/ListTable.js.map +1 -0
- package/cjs/PivotChart.d.ts +100 -0
- package/cjs/PivotChart.js +755 -0
- package/cjs/PivotChart.js.map +1 -0
- package/cjs/PivotTable-all.d.ts +3 -0
- package/cjs/PivotTable-all.js +19 -0
- package/cjs/PivotTable-all.js.map +1 -0
- package/cjs/PivotTable-simple.d.ts +3 -0
- package/cjs/PivotTable-simple.js +14 -0
- package/cjs/PivotTable-simple.js.map +1 -0
- package/cjs/PivotTable.d.ts +112 -0
- package/cjs/PivotTable.js +992 -0
- package/cjs/PivotTable.js.map +1 -0
- package/cjs/body-helper/body-helper.d.ts +20 -0
- package/cjs/body-helper/body-helper.js +121 -0
- package/cjs/body-helper/body-helper.js.map +1 -0
- package/cjs/body-helper/style/ButtonStyle.d.ts +45 -0
- package/cjs/body-helper/style/ButtonStyle.js +110 -0
- package/cjs/body-helper/style/ButtonStyle.js.map +1 -0
- package/cjs/body-helper/style/CheckboxStyle.d.ts +42 -0
- package/cjs/body-helper/style/CheckboxStyle.js +104 -0
- package/cjs/body-helper/style/CheckboxStyle.js.map +1 -0
- package/cjs/body-helper/style/ImageStyle.d.ts +7 -0
- package/cjs/body-helper/style/ImageStyle.js +24 -0
- package/cjs/body-helper/style/ImageStyle.js.map +1 -0
- package/cjs/body-helper/style/MultilineTextStyle.d.ts +13 -0
- package/cjs/body-helper/style/MultilineTextStyle.js +38 -0
- package/cjs/body-helper/style/MultilineTextStyle.js.map +1 -0
- package/cjs/body-helper/style/NumberStyle.d.ts +7 -0
- package/cjs/body-helper/style/NumberStyle.js +24 -0
- package/cjs/body-helper/style/NumberStyle.js.map +1 -0
- package/cjs/body-helper/style/ProgressBarStyle.d.ts +55 -0
- package/cjs/body-helper/style/ProgressBarStyle.js +139 -0
- package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -0
- package/cjs/body-helper/style/RadioStyle.d.ts +45 -0
- package/cjs/body-helper/style/RadioStyle.js +111 -0
- package/cjs/body-helper/style/RadioStyle.js.map +1 -0
- package/cjs/body-helper/style/Style.d.ts +95 -0
- package/cjs/body-helper/style/Style.js +225 -0
- package/cjs/body-helper/style/Style.js.map +1 -0
- package/cjs/body-helper/style/SwitchStyle.d.ts +36 -0
- package/cjs/body-helper/style/SwitchStyle.js +90 -0
- package/cjs/body-helper/style/SwitchStyle.js.map +1 -0
- package/cjs/body-helper/style.d.ts +11 -0
- package/cjs/body-helper/style.js +52 -0
- package/cjs/body-helper/style.js.map +1 -0
- package/cjs/chartModule.d.ts +3 -0
- package/cjs/chartModule.js +14 -0
- package/cjs/chartModule.js.map +1 -0
- package/cjs/components/axis/axis.d.ts +52 -0
- package/cjs/components/axis/axis.js +190 -0
- package/cjs/components/axis/axis.js.map +1 -0
- package/cjs/components/axis/band-scale.d.ts +18 -0
- package/cjs/components/axis/band-scale.js +54 -0
- package/cjs/components/axis/band-scale.js.map +1 -0
- package/cjs/components/axis/get-axis-attributes.d.ts +146 -0
- package/cjs/components/axis/get-axis-attributes.js +199 -0
- package/cjs/components/axis/get-axis-attributes.js.map +1 -0
- package/cjs/components/axis/get-axis-component-size.d.ts +6 -0
- package/cjs/components/axis/get-axis-component-size.js +138 -0
- package/cjs/components/axis/get-axis-component-size.js.map +1 -0
- package/cjs/components/axis/label-overlap.d.ts +3 -0
- package/cjs/components/axis/label-overlap.js +64 -0
- package/cjs/components/axis/label-overlap.js.map +1 -0
- package/cjs/components/axis/linear-scale.d.ts +48 -0
- package/cjs/components/axis/linear-scale.js +136 -0
- package/cjs/components/axis/linear-scale.js.map +1 -0
- package/cjs/components/empty-tip/empty-tip.d.ts +25 -0
- package/cjs/components/empty-tip/empty-tip.js +102 -0
- package/cjs/components/empty-tip/empty-tip.js.map +1 -0
- package/cjs/components/index.d.ts +6 -0
- package/cjs/components/index.js +44 -0
- package/cjs/components/index.js.map +1 -0
- package/cjs/components/legend/continue-legend/continue-legend.d.ts +24 -0
- package/cjs/components/legend/continue-legend/continue-legend.js +98 -0
- package/cjs/components/legend/continue-legend/continue-legend.js.map +1 -0
- package/cjs/components/legend/continue-legend/get-continue-legend-attributes.d.ts +5 -0
- package/cjs/components/legend/continue-legend/get-continue-legend-attributes.js +139 -0
- package/cjs/components/legend/continue-legend/get-continue-legend-attributes.js.map +1 -0
- package/cjs/components/legend/create-legend.d.ts +6 -0
- package/cjs/components/legend/create-legend.js +14 -0
- package/cjs/components/legend/create-legend.js.map +1 -0
- package/cjs/components/legend/discrete-legend/discrete-legend.d.ts +25 -0
- package/cjs/components/legend/discrete-legend/discrete-legend.js +115 -0
- package/cjs/components/legend/discrete-legend/discrete-legend.js.map +1 -0
- package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.d.ts +5 -0
- package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.js +90 -0
- package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.js.map +1 -0
- package/cjs/components/menu/dom/BaseMenu.d.ts +16 -0
- package/cjs/components/menu/dom/BaseMenu.js +33 -0
- package/cjs/components/menu/dom/BaseMenu.js.map +1 -0
- package/cjs/components/menu/dom/Menu.d.ts +9 -0
- package/cjs/components/menu/dom/Menu.js +24 -0
- package/cjs/components/menu/dom/Menu.js.map +1 -0
- package/cjs/components/menu/dom/MenuHandler.d.ts +24 -0
- package/cjs/components/menu/dom/MenuHandler.js +148 -0
- package/cjs/components/menu/dom/MenuHandler.js.map +1 -0
- package/cjs/components/menu/dom/logic/MenuContainer.d.ts +21 -0
- package/cjs/components/menu/dom/logic/MenuContainer.js +105 -0
- package/cjs/components/menu/dom/logic/MenuContainer.js.map +1 -0
- package/cjs/components/menu/dom/logic/MenuElement.d.ts +26 -0
- package/cjs/components/menu/dom/logic/MenuElement.js +287 -0
- package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -0
- package/cjs/components/menu/dom/logic/MenuElementStyle.d.ts +1 -0
- package/cjs/components/menu/dom/logic/MenuElementStyle.js +17 -0
- package/cjs/components/menu/dom/logic/MenuElementStyle.js.map +1 -0
- package/cjs/components/react/react-custom-layout.d.ts +27 -0
- package/cjs/components/react/react-custom-layout.js +179 -0
- package/cjs/components/react/react-custom-layout.js.map +1 -0
- package/cjs/components/title/title.d.ts +21 -0
- package/cjs/components/title/title.js +89 -0
- package/cjs/components/title/title.js.map +1 -0
- package/cjs/components/tooltip/BaseTooltip.d.ts +22 -0
- package/cjs/components/tooltip/BaseTooltip.js +35 -0
- package/cjs/components/tooltip/BaseTooltip.js.map +1 -0
- package/cjs/components/tooltip/Tooltip.d.ts +5 -0
- package/cjs/components/tooltip/Tooltip.js +16 -0
- package/cjs/components/tooltip/Tooltip.js.map +1 -0
- package/cjs/components/tooltip/TooltipHandler.d.ts +31 -0
- package/cjs/components/tooltip/TooltipHandler.js +132 -0
- package/cjs/components/tooltip/TooltipHandler.js.map +1 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElement.d.ts +34 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElement.js +163 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.d.ts +1 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js +17 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
- package/cjs/components/util/orient.d.ts +3 -0
- package/cjs/components/util/orient.js +14 -0
- package/cjs/components/util/orient.js.map +1 -0
- package/cjs/components/util/register.d.ts +3 -0
- package/cjs/components/util/register.js +15 -0
- package/cjs/components/util/register.js.map +1 -0
- package/cjs/components/util/transform.d.ts +5 -0
- package/cjs/components/util/transform.js +45 -0
- package/cjs/components/util/transform.js.map +1 -0
- package/cjs/core/BaseTable.d.ts +436 -0
- package/cjs/core/BaseTable.js +1866 -0
- package/cjs/core/BaseTable.js.map +1 -0
- package/cjs/core/FouseInput.d.ts +12 -0
- package/cjs/core/FouseInput.js +41 -0
- package/cjs/core/FouseInput.js.map +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +61 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +65 -0
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -0
- package/cjs/core/animation.d.ts +17 -0
- package/cjs/core/animation.js +61 -0
- package/cjs/core/animation.js.map +1 -0
- package/cjs/core/factory.d.ts +11 -0
- package/cjs/core/factory.js +29 -0
- package/cjs/core/factory.js.map +1 -0
- package/cjs/core/group-helper.d.ts +6 -0
- package/cjs/core/group-helper.js +22 -0
- package/cjs/core/group-helper.js.map +1 -0
- package/cjs/core/record-helper.d.ts +8 -0
- package/cjs/core/record-helper.js +428 -0
- package/cjs/core/record-helper.js.map +1 -0
- package/cjs/core/row-series-number-helper.d.ts +8 -0
- package/cjs/core/row-series-number-helper.js +46 -0
- package/cjs/core/row-series-number-helper.js.map +1 -0
- package/cjs/core/style-helper.d.ts +3 -0
- package/cjs/core/style-helper.js +110 -0
- package/cjs/core/style-helper.js.map +1 -0
- package/cjs/core/style.d.ts +1 -0
- package/cjs/core/style.js +17 -0
- package/cjs/core/style.js.map +1 -0
- package/cjs/core/tableHelper.d.ts +45 -0
- package/cjs/core/tableHelper.js +287 -0
- package/cjs/core/tableHelper.js.map +1 -0
- package/cjs/core/utils/get-cell-position.d.ts +12 -0
- package/cjs/core/utils/get-cell-position.js +214 -0
- package/cjs/core/utils/get-cell-position.js.map +1 -0
- package/cjs/core/utils/get-custom-merge-cell-func.d.ts +2 -0
- package/cjs/core/utils/get-custom-merge-cell-func.js +14 -0
- package/cjs/core/utils/get-custom-merge-cell-func.js.map +1 -0
- package/cjs/core.d.ts +3 -0
- package/cjs/core.js +15 -0
- package/cjs/core.js.map +1 -0
- package/cjs/data/CachedDataSource.d.ts +36 -0
- package/cjs/data/CachedDataSource.js +259 -0
- package/cjs/data/CachedDataSource.js.map +1 -0
- package/cjs/data/DataSource.d.ts +129 -0
- package/cjs/data/DataSource.js +758 -0
- package/cjs/data/DataSource.js.map +1 -0
- package/cjs/data.d.ts +4 -0
- package/cjs/data.js +24 -0
- package/cjs/data.js.map +1 -0
- package/cjs/dataset/DataStatistics.d.ts +10 -0
- package/cjs/dataset/DataStatistics.js +81 -0
- package/cjs/dataset/DataStatistics.js.map +1 -0
- package/cjs/dataset/dataset-pivot-table.d.ts +60 -0
- package/cjs/dataset/dataset-pivot-table.js +349 -0
- package/cjs/dataset/dataset-pivot-table.js.map +1 -0
- package/cjs/dataset/dataset.d.ts +108 -0
- package/cjs/dataset/dataset.js +810 -0
- package/cjs/dataset/dataset.js.map +1 -0
- package/cjs/dataset/flatDataToObject.d.ts +46 -0
- package/cjs/dataset/flatDataToObject.js +133 -0
- package/cjs/dataset/flatDataToObject.js.map +1 -0
- package/cjs/edit/edit-manager.d.ts +19 -0
- package/cjs/edit/edit-manager.js +124 -0
- package/cjs/edit/edit-manager.js.map +1 -0
- package/cjs/edit/editors.d.ts +5 -0
- package/cjs/edit/editors.js +10 -0
- package/cjs/edit/editors.js.map +1 -0
- package/cjs/event/EventHandler.d.ts +47 -0
- package/cjs/event/EventHandler.js +128 -0
- package/cjs/event/EventHandler.js.map +1 -0
- package/cjs/event/EventTarget.d.ts +12 -0
- package/cjs/event/EventTarget.js +67 -0
- package/cjs/event/EventTarget.js.map +1 -0
- package/cjs/event/component/button.d.ts +2 -0
- package/cjs/event/component/button.js +21 -0
- package/cjs/event/component/button.js.map +1 -0
- package/cjs/event/drill.d.ts +5 -0
- package/cjs/event/drill.js +38 -0
- package/cjs/event/drill.js.map +1 -0
- package/cjs/event/event.d.ts +63 -0
- package/cjs/event/event.js +208 -0
- package/cjs/event/event.js.map +1 -0
- package/cjs/event/helper.d.ts +2 -0
- package/cjs/event/helper.js +35 -0
- package/cjs/event/helper.js.map +1 -0
- package/cjs/event/listener/container-dom.d.ts +2 -0
- package/cjs/event/listener/container-dom.js +343 -0
- package/cjs/event/listener/container-dom.js.map +1 -0
- package/cjs/event/listener/scroll-bar.d.ts +2 -0
- package/cjs/event/listener/scroll-bar.js +80 -0
- package/cjs/event/listener/scroll-bar.js.map +1 -0
- package/cjs/event/listener/table-group.d.ts +6 -0
- package/cjs/event/listener/table-group.js +519 -0
- package/cjs/event/listener/table-group.js.map +1 -0
- package/cjs/event/listener/touch.d.ts +2 -0
- package/cjs/event/listener/touch.js +84 -0
- package/cjs/event/listener/touch.js.map +1 -0
- package/cjs/event/media-click.d.ts +2 -0
- package/cjs/event/media-click.js +85 -0
- package/cjs/event/media-click.js.map +1 -0
- package/cjs/event/scroll.d.ts +20 -0
- package/cjs/event/scroll.js +92 -0
- package/cjs/event/scroll.js.map +1 -0
- package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.d.ts +2 -0
- package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.js +31 -0
- package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.js.map +1 -0
- package/cjs/event/self-event-listener/base-table/dropdown-menu.d.ts +2 -0
- package/cjs/event/self-event-listener/base-table/dropdown-menu.js +16 -0
- package/cjs/event/self-event-listener/base-table/dropdown-menu.js.map +1 -0
- package/cjs/event/self-event-listener/base-table/icon.d.ts +2 -0
- package/cjs/event/self-event-listener/base-table/icon.js +23 -0
- package/cjs/event/self-event-listener/base-table/icon.js.map +1 -0
- package/cjs/event/self-event-listener/base-table/right-button-click.d.ts +2 -0
- package/cjs/event/self-event-listener/base-table/right-button-click.js +25 -0
- package/cjs/event/self-event-listener/base-table/right-button-click.js.map +1 -0
- package/cjs/event/self-event-listener/list-table/checkbox.d.ts +3 -0
- package/cjs/event/self-event-listener/list-table/checkbox.js +124 -0
- package/cjs/event/self-event-listener/list-table/checkbox.js.map +1 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-click.d.ts +2 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-click.js +43 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-click.js.map +1 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-hover.d.ts +2 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-hover.js +41 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-hover.js.map +1 -0
- package/cjs/event/self-event-listener/pivot-table/drill.d.ts +1 -0
- package/cjs/event/self-event-listener/pivot-table/drill.js +3 -0
- package/cjs/event/self-event-listener/pivot-table/drill.js.map +1 -0
- package/cjs/event/sparkline-event.d.ts +2 -0
- package/cjs/event/sparkline-event.js +27 -0
- package/cjs/event/sparkline-event.js.map +1 -0
- package/cjs/event/util.d.ts +20 -0
- package/cjs/event/util.js +46 -0
- package/cjs/event/util.js.map +1 -0
- package/cjs/header-helper/header-helper.d.ts +29 -0
- package/cjs/header-helper/header-helper.js +272 -0
- package/cjs/header-helper/header-helper.js.map +1 -0
- package/cjs/header-helper/style/CheckboxStyle.d.ts +42 -0
- package/cjs/header-helper/style/CheckboxStyle.js +104 -0
- package/cjs/header-helper/style/CheckboxStyle.js.map +1 -0
- package/cjs/header-helper/style/ImageStyle.d.ts +7 -0
- package/cjs/header-helper/style/ImageStyle.js +25 -0
- package/cjs/header-helper/style/ImageStyle.js.map +1 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.js +38 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
- package/cjs/header-helper/style/SortHeaderStyle.d.ts +1 -0
- package/cjs/header-helper/style/SortHeaderStyle.js +3 -0
- package/cjs/header-helper/style/SortHeaderStyle.js.map +1 -0
- package/cjs/header-helper/style/Style.d.ts +95 -0
- package/cjs/header-helper/style/Style.js +226 -0
- package/cjs/header-helper/style/Style.js.map +1 -0
- package/cjs/header-helper/style.d.ts +6 -0
- package/cjs/header-helper/style.js +35 -0
- package/cjs/header-helper/style.js.map +1 -0
- package/cjs/icons.d.ts +5 -0
- package/cjs/icons.js +299 -0
- package/cjs/icons.js.map +1 -0
- package/cjs/index.d.ts +33 -0
- package/cjs/index.js +215 -0
- package/cjs/index.js.map +1 -0
- package/cjs/layout/cell-range/simple-cell-range.d.ts +4 -0
- package/cjs/layout/cell-range/simple-cell-range.js +148 -0
- package/cjs/layout/cell-range/simple-cell-range.js.map +1 -0
- package/cjs/layout/chart-helper/get-axis-config.d.ts +39 -0
- package/cjs/layout/chart-helper/get-axis-config.js +398 -0
- package/cjs/layout/chart-helper/get-axis-config.js.map +1 -0
- package/cjs/layout/chart-helper/get-axis-domain.d.ts +11 -0
- package/cjs/layout/chart-helper/get-axis-domain.js +49 -0
- package/cjs/layout/chart-helper/get-axis-domain.js.map +1 -0
- package/cjs/layout/chart-helper/get-chart-spec.d.ts +13 -0
- package/cjs/layout/chart-helper/get-chart-spec.js +287 -0
- package/cjs/layout/chart-helper/get-chart-spec.js.map +1 -0
- package/cjs/layout/chart-helper/tick-align.d.ts +12 -0
- package/cjs/layout/chart-helper/tick-align.js +23 -0
- package/cjs/layout/chart-helper/tick-align.js.map +1 -0
- package/cjs/layout/chart-helper/zero-align.d.ts +10 -0
- package/cjs/layout/chart-helper/zero-align.js +119 -0
- package/cjs/layout/chart-helper/zero-align.js.map +1 -0
- package/cjs/layout/index.d.ts +1 -0
- package/cjs/layout/index.js +14 -0
- package/cjs/layout/index.js.map +1 -0
- package/cjs/layout/layout-helper.d.ts +20 -0
- package/cjs/layout/layout-helper.js +154 -0
- package/cjs/layout/layout-helper.js.map +1 -0
- package/cjs/layout/pivot-header-layout.d.ts +279 -0
- package/cjs/layout/pivot-header-layout.js +1845 -0
- package/cjs/layout/pivot-header-layout.js.map +1 -0
- package/cjs/layout/pivot-layout.d.ts +1 -0
- package/cjs/layout/pivot-layout.js +1 -0
- package/cjs/layout/pivot-layout.js.map +1 -0
- package/cjs/layout/row-height-map.d.ts +34 -0
- package/cjs/layout/row-height-map.js +176 -0
- package/cjs/layout/row-height-map.js.map +1 -0
- package/cjs/layout/simple-header-layout.d.ts +153 -0
- package/cjs/layout/simple-header-layout.js +779 -0
- package/cjs/layout/simple-header-layout.js.map +1 -0
- package/cjs/layout/tree-helper.d.ts +71 -0
- package/cjs/layout/tree-helper.js +405 -0
- package/cjs/layout/tree-helper.js.map +1 -0
- package/cjs/plugins/chartModules.d.ts +3 -0
- package/cjs/plugins/chartModules.js +6 -0
- package/cjs/plugins/chartModules.js.map +1 -0
- package/cjs/plugins/custom-cell-style.d.ts +26 -0
- package/cjs/plugins/custom-cell-style.js +113 -0
- package/cjs/plugins/custom-cell-style.js.map +1 -0
- package/cjs/plugins/icons.d.ts +12 -0
- package/cjs/plugins/icons.js +26 -0
- package/cjs/plugins/icons.js.map +1 -0
- package/cjs/plugins/invert-highlight.d.ts +1 -0
- package/cjs/plugins/invert-highlight.js +23 -0
- package/cjs/plugins/invert-highlight.js.map +1 -0
- package/cjs/plugins/list-tree-stick-cell.d.ts +18 -0
- package/cjs/plugins/list-tree-stick-cell.js +180 -0
- package/cjs/plugins/list-tree-stick-cell.js.map +1 -0
- package/cjs/plugins/themes.d.ts +4 -0
- package/cjs/plugins/themes.js +6 -0
- package/cjs/plugins/themes.js.map +1 -0
- package/cjs/register.d.ts +15 -0
- package/cjs/register.js +45 -0
- package/cjs/register.js.map +1 -0
- package/cjs/render/jsx/index.d.ts +8 -0
- package/cjs/render/jsx/index.js +91 -0
- package/cjs/render/jsx/index.js.map +1 -0
- package/cjs/render/layout/arc.d.ts +12 -0
- package/cjs/render/layout/arc.js +18 -0
- package/cjs/render/layout/arc.js.map +1 -0
- package/cjs/render/layout/circle.d.ts +12 -0
- package/cjs/render/layout/circle.js +18 -0
- package/cjs/render/layout/circle.js.map +1 -0
- package/cjs/render/layout/container.d.ts +14 -0
- package/cjs/render/layout/container.js +27 -0
- package/cjs/render/layout/container.js.map +1 -0
- package/cjs/render/layout/direction.d.ts +22 -0
- package/cjs/render/layout/direction.js +35 -0
- package/cjs/render/layout/direction.js.map +1 -0
- package/cjs/render/layout/element.d.ts +43 -0
- package/cjs/render/layout/element.js +27 -0
- package/cjs/render/layout/element.js.map +1 -0
- package/cjs/render/layout/group-element.d.ts +5 -0
- package/cjs/render/layout/group-element.js +16 -0
- package/cjs/render/layout/group-element.js.map +1 -0
- package/cjs/render/layout/group.d.ts +12 -0
- package/cjs/render/layout/group.js +18 -0
- package/cjs/render/layout/group.js.map +1 -0
- package/cjs/render/layout/icon.d.ts +21 -0
- package/cjs/render/layout/icon.js +50 -0
- package/cjs/render/layout/icon.js.map +1 -0
- package/cjs/render/layout/image.d.ts +14 -0
- package/cjs/render/layout/image.js +19 -0
- package/cjs/render/layout/image.js.map +1 -0
- package/cjs/render/layout/index.d.ts +13 -0
- package/cjs/render/layout/index.js +41 -0
- package/cjs/render/layout/index.js.map +1 -0
- package/cjs/render/layout/line.d.ts +1 -0
- package/cjs/render/layout/line.js +15 -0
- package/cjs/render/layout/line.js.map +1 -0
- package/cjs/render/layout/percent-calc.d.ts +5 -0
- package/cjs/render/layout/percent-calc.js +13 -0
- package/cjs/render/layout/percent-calc.js.map +1 -0
- package/cjs/render/layout/rect.d.ts +12 -0
- package/cjs/render/layout/rect.js +18 -0
- package/cjs/render/layout/rect.js.map +1 -0
- package/cjs/render/layout/tag.d.ts +14 -0
- package/cjs/render/layout/tag.js +21 -0
- package/cjs/render/layout/tag.js.map +1 -0
- package/cjs/render/layout/text.d.ts +13 -0
- package/cjs/render/layout/text.js +23 -0
- package/cjs/render/layout/text.js.map +1 -0
- package/cjs/scenegraph/animation/appear.d.ts +2 -0
- package/cjs/scenegraph/animation/appear.js +26 -0
- package/cjs/scenegraph/animation/appear.js.map +1 -0
- package/cjs/scenegraph/component/cell-content.d.ts +36 -0
- package/cjs/scenegraph/component/cell-content.js +109 -0
- package/cjs/scenegraph/component/cell-content.js.map +1 -0
- package/cjs/scenegraph/component/cell-mover.d.ts +21 -0
- package/cjs/scenegraph/component/cell-mover.js +119 -0
- package/cjs/scenegraph/component/cell-mover.js.map +1 -0
- package/cjs/scenegraph/component/custom.d.ts +16 -0
- package/cjs/scenegraph/component/custom.js +309 -0
- package/cjs/scenegraph/component/custom.js.map +1 -0
- package/cjs/scenegraph/component/drill-icon.d.ts +9 -0
- package/cjs/scenegraph/component/drill-icon.js +70 -0
- package/cjs/scenegraph/component/drill-icon.js.map +1 -0
- package/cjs/scenegraph/component/menu.d.ts +41 -0
- package/cjs/scenegraph/component/menu.js +217 -0
- package/cjs/scenegraph/component/menu.js.map +1 -0
- package/cjs/scenegraph/component/table-component.d.ts +52 -0
- package/cjs/scenegraph/component/table-component.js +560 -0
- package/cjs/scenegraph/component/table-component.js.map +1 -0
- package/cjs/scenegraph/component/util.d.ts +3 -0
- package/cjs/scenegraph/component/util.js +18 -0
- package/cjs/scenegraph/component/util.js.map +1 -0
- package/cjs/scenegraph/debug-tool/debug-tool.d.ts +34 -0
- package/cjs/scenegraph/debug-tool/debug-tool.js +125 -0
- package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -0
- package/cjs/scenegraph/debug-tool/index.d.ts +4 -0
- package/cjs/scenegraph/debug-tool/index.js +14 -0
- package/cjs/scenegraph/debug-tool/index.js.map +1 -0
- package/cjs/scenegraph/graphic/chart.d.ts +47 -0
- package/cjs/scenegraph/graphic/chart.js +129 -0
- package/cjs/scenegraph/graphic/chart.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.d.ts +11 -0
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +166 -0
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +11 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.js +74 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/draw-interceptor.d.ts +13 -0
- package/cjs/scenegraph/graphic/contributions/draw-interceptor.js +92 -0
- package/cjs/scenegraph/graphic/contributions/draw-interceptor.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.d.ts +79 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +341 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +38 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +75 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/index.d.ts +3 -0
- package/cjs/scenegraph/graphic/contributions/index.js +46 -0
- package/cjs/scenegraph/graphic/contributions/index.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.d.ts +18 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +91 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/text-contribution-render.d.ts +12 -0
- package/cjs/scenegraph/graphic/contributions/text-contribution-render.js +72 -0
- package/cjs/scenegraph/graphic/contributions/text-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/group.d.ts +37 -0
- package/cjs/scenegraph/graphic/group.js +135 -0
- package/cjs/scenegraph/graphic/group.js.map +1 -0
- package/cjs/scenegraph/graphic/icon.d.ts +47 -0
- package/cjs/scenegraph/graphic/icon.js +78 -0
- package/cjs/scenegraph/graphic/icon.js.map +1 -0
- package/cjs/scenegraph/graphic/mark.d.ts +4 -0
- package/cjs/scenegraph/graphic/mark.js +74 -0
- package/cjs/scenegraph/graphic/mark.js.map +1 -0
- package/cjs/scenegraph/graphic/text.d.ts +2 -0
- package/cjs/scenegraph/graphic/text.js +15 -0
- package/cjs/scenegraph/graphic/text.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-helper.d.ts +16 -0
- package/cjs/scenegraph/group-creater/cell-helper.js +325 -0
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/button-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/button-cell.js +146 -0
- package/cjs/scenegraph/group-creater/cell-type/button-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.d.ts +5 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +100 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +143 -0
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +15 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js +234 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/index.d.ts +10 -0
- package/cjs/scenegraph/group-creater/cell-type/index.js +67 -0
- package/cjs/scenegraph/group-creater/cell-type/index.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +11 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +390 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/radio-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/radio-cell.js +150 -0
- package/cjs/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +5 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +201 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/switch-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/switch-cell.js +152 -0
- package/cjs/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js +66 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js +139 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/column-helper.d.ts +14 -0
- package/cjs/scenegraph/group-creater/column-helper.js +142 -0
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -0
- package/cjs/scenegraph/group-creater/column.d.ts +4 -0
- package/cjs/scenegraph/group-creater/column.js +31 -0
- package/cjs/scenegraph/group-creater/column.js.map +1 -0
- package/cjs/scenegraph/group-creater/init-scenegraph.d.ts +2 -0
- package/cjs/scenegraph/group-creater/init-scenegraph.js +58 -0
- package/cjs/scenegraph/group-creater/init-scenegraph.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +3 -0
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +53 -0
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/default-width-height.d.ts +3 -0
- package/cjs/scenegraph/group-creater/progress/default-width-height.js +24 -0
- package/cjs/scenegraph/group-creater/progress/default-width-height.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/proxy.d.ts +79 -0
- package/cjs/scenegraph/group-creater/progress/proxy.js +341 -0
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.d.ts +4 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +173 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +4 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +190 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.d.ts +2 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.js +62 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.d.ts +2 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js +75 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.d.ts +2 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.js +37 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.d.ts +2 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.js +47 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/util.d.ts +8 -0
- package/cjs/scenegraph/group-creater/progress/update-position/util.js +98 -0
- package/cjs/scenegraph/group-creater/progress/update-position/util.js.map +1 -0
- package/cjs/scenegraph/icon/icon-update.d.ts +28 -0
- package/cjs/scenegraph/icon/icon-update.js +188 -0
- package/cjs/scenegraph/icon/icon-update.js.map +1 -0
- package/cjs/scenegraph/layout/compute-col-width.d.ts +4 -0
- package/cjs/scenegraph/layout/compute-col-width.js +344 -0
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -0
- package/cjs/scenegraph/layout/compute-row-height.d.ts +3 -0
- package/cjs/scenegraph/layout/compute-row-height.js +335 -0
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -0
- package/cjs/scenegraph/layout/frozen-react.d.ts +5 -0
- package/cjs/scenegraph/layout/frozen-react.js +91 -0
- package/cjs/scenegraph/layout/frozen-react.js.map +1 -0
- package/cjs/scenegraph/layout/frozen.d.ts +6 -0
- package/cjs/scenegraph/layout/frozen.js +330 -0
- package/cjs/scenegraph/layout/frozen.js.map +1 -0
- package/cjs/scenegraph/layout/height-util.d.ts +7 -0
- package/cjs/scenegraph/layout/height-util.js +127 -0
- package/cjs/scenegraph/layout/height-util.js.map +1 -0
- package/cjs/scenegraph/layout/move-cell.d.ts +2 -0
- package/cjs/scenegraph/layout/move-cell.js +50 -0
- package/cjs/scenegraph/layout/move-cell.js.map +1 -0
- package/cjs/scenegraph/layout/update-col.d.ts +3 -0
- package/cjs/scenegraph/layout/update-col.js +207 -0
- package/cjs/scenegraph/layout/update-col.js.map +1 -0
- package/cjs/scenegraph/layout/update-height.d.ts +6 -0
- package/cjs/scenegraph/layout/update-height.js +146 -0
- package/cjs/scenegraph/layout/update-height.js.map +1 -0
- package/cjs/scenegraph/layout/update-row.d.ts +3 -0
- package/cjs/scenegraph/layout/update-row.js +284 -0
- package/cjs/scenegraph/layout/update-row.js.map +1 -0
- package/cjs/scenegraph/layout/update-width.d.ts +2 -0
- package/cjs/scenegraph/layout/update-width.js +238 -0
- package/cjs/scenegraph/layout/update-width.js.map +1 -0
- package/cjs/scenegraph/refresh-node/update-chart.d.ts +7 -0
- package/cjs/scenegraph/refresh-node/update-chart.js +201 -0
- package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -0
- package/cjs/scenegraph/scenegraph.d.ts +182 -0
- package/cjs/scenegraph/scenegraph.js +898 -0
- package/cjs/scenegraph/scenegraph.js.map +1 -0
- package/cjs/scenegraph/select/create-select-border.d.ts +3 -0
- package/cjs/scenegraph/select/create-select-border.js +60 -0
- package/cjs/scenegraph/select/create-select-border.js.map +1 -0
- package/cjs/scenegraph/select/delete-select-border.d.ts +5 -0
- package/cjs/scenegraph/select/delete-select-border.js +37 -0
- package/cjs/scenegraph/select/delete-select-border.js.map +1 -0
- package/cjs/scenegraph/select/move-select-border.d.ts +2 -0
- package/cjs/scenegraph/select/move-select-border.js +15 -0
- package/cjs/scenegraph/select/move-select-border.js.map +1 -0
- package/cjs/scenegraph/select/update-select-border.d.ts +8 -0
- package/cjs/scenegraph/select/update-select-border.js +272 -0
- package/cjs/scenegraph/select/update-select-border.js.map +1 -0
- package/cjs/scenegraph/select/update-select-style.d.ts +3 -0
- package/cjs/scenegraph/select/update-select-style.js +13 -0
- package/cjs/scenegraph/select/update-select-style.js.map +1 -0
- package/cjs/scenegraph/stick-text/index.d.ts +3 -0
- package/cjs/scenegraph/stick-text/index.js +189 -0
- package/cjs/scenegraph/stick-text/index.js.map +1 -0
- package/cjs/scenegraph/style/corner-cell.d.ts +3 -0
- package/cjs/scenegraph/style/corner-cell.js +28 -0
- package/cjs/scenegraph/style/corner-cell.js.map +1 -0
- package/cjs/scenegraph/style/frame-border.d.ts +8 -0
- package/cjs/scenegraph/style/frame-border.js +144 -0
- package/cjs/scenegraph/style/frame-border.js.map +1 -0
- package/cjs/scenegraph/utils/border-line.d.ts +8 -0
- package/cjs/scenegraph/utils/border-line.js +51 -0
- package/cjs/scenegraph/utils/border-line.js.map +1 -0
- package/cjs/scenegraph/utils/break-string.d.ts +5 -0
- package/cjs/scenegraph/utils/break-string.js +24 -0
- package/cjs/scenegraph/utils/break-string.js.map +1 -0
- package/cjs/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
- package/cjs/scenegraph/utils/cell-border-stroke-width.js +21 -0
- package/cjs/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
- package/cjs/scenegraph/utils/cell-pos.d.ts +4 -0
- package/cjs/scenegraph/utils/cell-pos.js +18 -0
- package/cjs/scenegraph/utils/cell-pos.js.map +1 -0
- package/cjs/scenegraph/utils/deal-promise-data.d.ts +2 -0
- package/cjs/scenegraph/utils/deal-promise-data.js +12 -0
- package/cjs/scenegraph/utils/deal-promise-data.js.map +1 -0
- package/cjs/scenegraph/utils/empty-group.d.ts +2 -0
- package/cjs/scenegraph/utils/empty-group.js +10 -0
- package/cjs/scenegraph/utils/empty-group.js.map +1 -0
- package/cjs/scenegraph/utils/font.d.ts +1 -0
- package/cjs/scenegraph/utils/font.js +20 -0
- package/cjs/scenegraph/utils/font.js.map +1 -0
- package/cjs/scenegraph/utils/get-cell-merge.d.ts +3 -0
- package/cjs/scenegraph/utils/get-cell-merge.js +17 -0
- package/cjs/scenegraph/utils/get-cell-merge.js.map +1 -0
- package/cjs/scenegraph/utils/get-hierarchy-offset.d.ts +2 -0
- package/cjs/scenegraph/utils/get-hierarchy-offset.js +27 -0
- package/cjs/scenegraph/utils/get-hierarchy-offset.js.map +1 -0
- package/cjs/scenegraph/utils/get-prop.d.ts +4 -0
- package/cjs/scenegraph/utils/get-prop.js +44 -0
- package/cjs/scenegraph/utils/get-prop.js.map +1 -0
- package/cjs/scenegraph/utils/icon.d.ts +12 -0
- package/cjs/scenegraph/utils/icon.js +35 -0
- package/cjs/scenegraph/utils/icon.js.map +1 -0
- package/cjs/scenegraph/utils/is-merge-cell-group.d.ts +2 -0
- package/cjs/scenegraph/utils/is-merge-cell-group.js +16 -0
- package/cjs/scenegraph/utils/is-merge-cell-group.js.map +1 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.js +17 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
- package/cjs/scenegraph/utils/padding.d.ts +6 -0
- package/cjs/scenegraph/utils/padding.js +21 -0
- package/cjs/scenegraph/utils/padding.js.map +1 -0
- package/cjs/scenegraph/utils/render-service.d.ts +7 -0
- package/cjs/scenegraph/utils/render-service.js +27 -0
- package/cjs/scenegraph/utils/render-service.js.map +1 -0
- package/cjs/scenegraph/utils/text-icon-layout.d.ts +29 -0
- package/cjs/scenegraph/utils/text-icon-layout.js +335 -0
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -0
- package/cjs/scenegraph/utils/text-measure.d.ts +38 -0
- package/cjs/scenegraph/utils/text-measure.js +166 -0
- package/cjs/scenegraph/utils/text-measure.js.map +1 -0
- package/cjs/scenegraph/utils/text-pos.d.ts +8 -0
- package/cjs/scenegraph/utils/text-pos.js +27 -0
- package/cjs/scenegraph/utils/text-pos.js.map +1 -0
- package/cjs/scenegraph/utils/update-container.d.ts +2 -0
- package/cjs/scenegraph/utils/update-container.js +12 -0
- package/cjs/scenegraph/utils/update-container.js.map +1 -0
- package/cjs/state/cell-move/adjust-header.d.ts +3 -0
- package/cjs/state/cell-move/adjust-header.js +26 -0
- package/cjs/state/cell-move/adjust-header.js.map +1 -0
- package/cjs/state/cell-move/index.d.ts +4 -0
- package/cjs/state/cell-move/index.js +112 -0
- package/cjs/state/cell-move/index.js.map +1 -0
- package/cjs/state/checkbox/checkbox.d.ts +12 -0
- package/cjs/state/checkbox/checkbox.js +210 -0
- package/cjs/state/checkbox/checkbox.js.map +1 -0
- package/cjs/state/common/check-in-select.d.ts +7 -0
- package/cjs/state/common/check-in-select.js +63 -0
- package/cjs/state/common/check-in-select.js.map +1 -0
- package/cjs/state/drill/index.d.ts +2 -0
- package/cjs/state/drill/index.js +15 -0
- package/cjs/state/drill/index.js.map +1 -0
- package/cjs/state/frozen/index.d.ts +2 -0
- package/cjs/state/frozen/index.js +10 -0
- package/cjs/state/frozen/index.js.map +1 -0
- package/cjs/state/hover/col.d.ts +4 -0
- package/cjs/state/hover/col.js +24 -0
- package/cjs/state/hover/col.js.map +1 -0
- package/cjs/state/hover/is-cell-hover.d.ts +5 -0
- package/cjs/state/hover/is-cell-hover.js +49 -0
- package/cjs/state/hover/is-cell-hover.js.map +1 -0
- package/cjs/state/hover/row.d.ts +4 -0
- package/cjs/state/hover/row.js +22 -0
- package/cjs/state/hover/row.js.map +1 -0
- package/cjs/state/hover/single.d.ts +4 -0
- package/cjs/state/hover/single.js +18 -0
- package/cjs/state/hover/single.js.map +1 -0
- package/cjs/state/hover/update-cell.d.ts +2 -0
- package/cjs/state/hover/update-cell.js +24 -0
- package/cjs/state/hover/update-cell.js.map +1 -0
- package/cjs/state/hover/update-position.d.ts +2 -0
- package/cjs/state/hover/update-position.js +44 -0
- package/cjs/state/hover/update-position.js.map +1 -0
- package/cjs/state/radio/radio.d.ts +7 -0
- package/cjs/state/radio/radio.js +96 -0
- package/cjs/state/radio/radio.js.map +1 -0
- package/cjs/state/resize/update-resize-column.d.ts +2 -0
- package/cjs/state/resize/update-resize-column.js +85 -0
- package/cjs/state/resize/update-resize-column.js.map +1 -0
- package/cjs/state/resize/update-resize-row.d.ts +2 -0
- package/cjs/state/resize/update-resize-row.js +64 -0
- package/cjs/state/resize/update-resize-row.js.map +1 -0
- package/cjs/state/select/custom-select.d.ts +7 -0
- package/cjs/state/select/custom-select.js +36 -0
- package/cjs/state/select/custom-select.js.map +1 -0
- package/cjs/state/select/is-cell-select-highlight.d.ts +6 -0
- package/cjs/state/select/is-cell-select-highlight.js +88 -0
- package/cjs/state/select/is-cell-select-highlight.js.map +1 -0
- package/cjs/state/select/update-position.d.ts +4 -0
- package/cjs/state/select/update-position.js +308 -0
- package/cjs/state/select/update-position.js.map +1 -0
- package/cjs/state/sort/index.d.ts +2 -0
- package/cjs/state/sort/index.js +56 -0
- package/cjs/state/sort/index.js.map +1 -0
- package/cjs/state/spark-line/index.d.ts +3 -0
- package/cjs/state/spark-line/index.js +102 -0
- package/cjs/state/spark-line/index.js.map +1 -0
- package/cjs/state/state.d.ts +206 -0
- package/cjs/state/state.js +796 -0
- package/cjs/state/state.js.map +1 -0
- package/cjs/themes/ARCO.d.ts +3 -0
- package/cjs/themes/ARCO.js +113 -0
- package/cjs/themes/ARCO.js.map +1 -0
- package/cjs/themes/BRIGHT.d.ts +3 -0
- package/cjs/themes/BRIGHT.js +70 -0
- package/cjs/themes/BRIGHT.js.map +1 -0
- package/cjs/themes/DARK.d.ts +3 -0
- package/cjs/themes/DARK.js +103 -0
- package/cjs/themes/DARK.js.map +1 -0
- package/cjs/themes/DEFAULT.d.ts +3 -0
- package/cjs/themes/DEFAULT.js +86 -0
- package/cjs/themes/DEFAULT.js.map +1 -0
- package/cjs/themes/SIMPLIFY.d.ts +3 -0
- package/cjs/themes/SIMPLIFY.js +53 -0
- package/cjs/themes/SIMPLIFY.js.map +1 -0
- package/cjs/themes/component.d.ts +35 -0
- package/cjs/themes/component.js +47 -0
- package/cjs/themes/component.js.map +1 -0
- package/cjs/themes/theme.d.ts +67 -0
- package/cjs/themes/theme.js +777 -0
- package/cjs/themes/theme.js.map +1 -0
- package/cjs/themes.d.ts +28 -0
- package/cjs/themes.js +57 -0
- package/cjs/themes.js.map +1 -0
- package/cjs/tools/LimitPromiseQueue.d.ts +8 -0
- package/cjs/tools/LimitPromiseQueue.js +29 -0
- package/cjs/tools/LimitPromiseQueue.js.map +1 -0
- package/cjs/tools/NumberMap.d.ts +23 -0
- package/cjs/tools/NumberMap.js +123 -0
- package/cjs/tools/NumberMap.js.map +1 -0
- package/cjs/tools/Rect.d.ts +24 -0
- package/cjs/tools/Rect.js +70 -0
- package/cjs/tools/Rect.js.map +1 -0
- package/cjs/tools/calc.d.ts +8 -0
- package/cjs/tools/calc.js +205 -0
- package/cjs/tools/calc.js.map +1 -0
- package/cjs/tools/cell-range.d.ts +2 -0
- package/cjs/tools/cell-range.js +10 -0
- package/cjs/tools/cell-range.js.map +1 -0
- package/cjs/tools/debounce.d.ts +1 -0
- package/cjs/tools/debounce.js +51 -0
- package/cjs/tools/debounce.js.map +1 -0
- package/cjs/tools/diff-cell.d.ts +72 -0
- package/cjs/tools/diff-cell.js +170 -0
- package/cjs/tools/diff-cell.js.map +1 -0
- package/cjs/tools/dom.d.ts +1 -0
- package/cjs/tools/dom.js +11 -0
- package/cjs/tools/dom.js.map +1 -0
- package/cjs/tools/env.d.ts +19 -0
- package/cjs/tools/env.js +48 -0
- package/cjs/tools/env.js.map +1 -0
- package/cjs/tools/get-data-path/create-dataset.d.ts +11 -0
- package/cjs/tools/get-data-path/create-dataset.js +149 -0
- package/cjs/tools/get-data-path/create-dataset.js.map +1 -0
- package/cjs/tools/get-data-path/index.d.ts +2 -0
- package/cjs/tools/get-data-path/index.js +51 -0
- package/cjs/tools/get-data-path/index.js.map +1 -0
- package/cjs/tools/global.d.ts +15 -0
- package/cjs/tools/global.js +15 -0
- package/cjs/tools/global.js.map +1 -0
- package/cjs/tools/helper.d.ts +72 -0
- package/cjs/tools/helper.js +228 -0
- package/cjs/tools/helper.js.map +1 -0
- package/cjs/tools/icons.d.ts +4 -0
- package/cjs/tools/icons.js +10 -0
- package/cjs/tools/icons.js.map +1 -0
- package/cjs/tools/isx.d.ts +16 -0
- package/cjs/tools/isx.js +117 -0
- package/cjs/tools/isx.js.map +1 -0
- package/cjs/tools/join.d.ts +1 -0
- package/cjs/tools/join.js +12 -0
- package/cjs/tools/join.js.map +1 -0
- package/cjs/tools/merge-range.d.ts +11 -0
- package/cjs/tools/merge-range.js +35 -0
- package/cjs/tools/merge-range.js.map +1 -0
- package/cjs/tools/pixel-ratio.d.ts +2 -0
- package/cjs/tools/pixel-ratio.js +16 -0
- package/cjs/tools/pixel-ratio.js.map +1 -0
- package/cjs/tools/sort.d.ts +2 -0
- package/cjs/tools/sort.js +18 -0
- package/cjs/tools/sort.js.map +1 -0
- package/cjs/tools/style.d.ts +5 -0
- package/cjs/tools/style.js +30 -0
- package/cjs/tools/style.js.map +1 -0
- package/cjs/tools/update-row.d.ts +19 -0
- package/cjs/tools/update-row.js +38 -0
- package/cjs/tools/update-row.js.map +1 -0
- package/cjs/tools/util.d.ts +46 -0
- package/cjs/tools/util.js +279 -0
- package/cjs/tools/util.js.map +1 -0
- package/cjs/ts-types/animation/appear.d.ts +11 -0
- package/cjs/ts-types/animation/appear.js +6 -0
- package/cjs/ts-types/animation/appear.js.map +1 -0
- package/cjs/ts-types/animation/index.d.ts +1 -0
- package/cjs/ts-types/animation/index.js +21 -0
- package/cjs/ts-types/animation/index.js.map +1 -0
- package/cjs/ts-types/base-table.d.ts +641 -0
- package/cjs/ts-types/base-table.js +6 -0
- package/cjs/ts-types/base-table.js.map +1 -0
- package/cjs/ts-types/column/index.d.ts +2 -0
- package/cjs/ts-types/column/index.js +21 -0
- package/cjs/ts-types/column/index.js.map +1 -0
- package/cjs/ts-types/column/style.d.ts +151 -0
- package/cjs/ts-types/column/style.js +6 -0
- package/cjs/ts-types/column/style.js.map +1 -0
- package/cjs/ts-types/column/type.d.ts +2 -0
- package/cjs/ts-types/column/type.js +6 -0
- package/cjs/ts-types/column/type.js.map +1 -0
- package/cjs/ts-types/common.d.ts +114 -0
- package/cjs/ts-types/common.js +14 -0
- package/cjs/ts-types/common.js.map +1 -0
- package/cjs/ts-types/component/axis.d.ts +2 -0
- package/cjs/ts-types/component/axis.js +6 -0
- package/cjs/ts-types/component/axis.js.map +1 -0
- package/cjs/ts-types/component/empty-tip.d.ts +20 -0
- package/cjs/ts-types/component/empty-tip.js +6 -0
- package/cjs/ts-types/component/empty-tip.js.map +1 -0
- package/cjs/ts-types/component/index.d.ts +1 -0
- package/cjs/ts-types/component/index.js +21 -0
- package/cjs/ts-types/component/index.js.map +1 -0
- package/cjs/ts-types/component/legend.d.ts +18 -0
- package/cjs/ts-types/component/legend.js +6 -0
- package/cjs/ts-types/component/legend.js.map +1 -0
- package/cjs/ts-types/component/title.d.ts +49 -0
- package/cjs/ts-types/component/title.js +6 -0
- package/cjs/ts-types/component/title.js.map +1 -0
- package/cjs/ts-types/component/util.d.ts +1 -0
- package/cjs/ts-types/component/util.js +6 -0
- package/cjs/ts-types/component/util.js.map +1 -0
- package/cjs/ts-types/customElement.d.ts +128 -0
- package/cjs/ts-types/customElement.js +6 -0
- package/cjs/ts-types/customElement.js.map +1 -0
- package/cjs/ts-types/customLayout.d.ts +9 -0
- package/cjs/ts-types/customLayout.js +6 -0
- package/cjs/ts-types/customLayout.js.map +1 -0
- package/cjs/ts-types/dataset/aggregation.d.ts +192 -0
- package/cjs/ts-types/dataset/aggregation.js +423 -0
- package/cjs/ts-types/dataset/aggregation.js.map +1 -0
- package/cjs/ts-types/dataset/index.d.ts +1 -0
- package/cjs/ts-types/dataset/index.js +21 -0
- package/cjs/ts-types/dataset/index.js.map +1 -0
- package/cjs/ts-types/events.d.ts +363 -0
- package/cjs/ts-types/events.js +6 -0
- package/cjs/ts-types/events.js.map +1 -0
- package/cjs/ts-types/icon.d.ts +93 -0
- package/cjs/ts-types/icon.js +28 -0
- package/cjs/ts-types/icon.js.map +1 -0
- package/cjs/ts-types/index.d.ts +17 -0
- package/cjs/ts-types/index.js +29 -0
- package/cjs/ts-types/index.js.map +1 -0
- package/cjs/ts-types/list-table/define/basic-define.d.ts +50 -0
- package/cjs/ts-types/list-table/define/basic-define.js +6 -0
- package/cjs/ts-types/list-table/define/basic-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/button-define.d.ts +9 -0
- package/cjs/ts-types/list-table/define/button-define.js +6 -0
- package/cjs/ts-types/list-table/define/button-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/chart-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/chart-define.js +6 -0
- package/cjs/ts-types/list-table/define/chart-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/checkbox-define.d.ts +15 -0
- package/cjs/ts-types/list-table/define/checkbox-define.js +6 -0
- package/cjs/ts-types/list-table/define/checkbox-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/composite-define.d.ts +26 -0
- package/cjs/ts-types/list-table/define/composite-define.js +6 -0
- package/cjs/ts-types/list-table/define/composite-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/image-define.d.ts +17 -0
- package/cjs/ts-types/list-table/define/image-define.js +6 -0
- package/cjs/ts-types/list-table/define/image-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/index.d.ts +31 -0
- package/cjs/ts-types/list-table/define/index.js +6 -0
- package/cjs/ts-types/list-table/define/index.js.map +1 -0
- package/cjs/ts-types/list-table/define/link-define.d.ts +22 -0
- package/cjs/ts-types/list-table/define/link-define.js +6 -0
- package/cjs/ts-types/list-table/define/link-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.js +6 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/progressbar-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/progressbar-define.js +6 -0
- package/cjs/ts-types/list-table/define/progressbar-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/radio-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/radio-define.js +6 -0
- package/cjs/ts-types/list-table/define/radio-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/sparkline-define.d.ts +10 -0
- package/cjs/ts-types/list-table/define/sparkline-define.js +6 -0
- package/cjs/ts-types/list-table/define/sparkline-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/switch-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/switch-define.js +6 -0
- package/cjs/ts-types/list-table/define/switch-define.js.map +1 -0
- package/cjs/ts-types/list-table/index.d.ts +2 -0
- package/cjs/ts-types/list-table/index.js +21 -0
- package/cjs/ts-types/list-table/index.js.map +1 -0
- package/cjs/ts-types/list-table/layout-map/api.d.ts +126 -0
- package/cjs/ts-types/list-table/layout-map/api.js +6 -0
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -0
- package/cjs/ts-types/list-table/layout-map/index.d.ts +1 -0
- package/cjs/ts-types/list-table/layout-map/index.js +6 -0
- package/cjs/ts-types/list-table/layout-map/index.js.map +1 -0
- package/cjs/ts-types/menu.d.ts +74 -0
- package/cjs/ts-types/menu.js +6 -0
- package/cjs/ts-types/menu.js.map +1 -0
- package/cjs/ts-types/new-data-set.d.ts +158 -0
- package/cjs/ts-types/new-data-set.js +16 -0
- package/cjs/ts-types/new-data-set.js.map +1 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +10 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +15 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
- package/cjs/ts-types/pivot-table/corner.d.ts +37 -0
- package/cjs/ts-types/pivot-table/corner.js +6 -0
- package/cjs/ts-types/pivot-table/corner.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.d.ts +43 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.d.ts +10 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/index.d.ts +6 -0
- package/cjs/ts-types/pivot-table/dimension/index.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.d.ts +13 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/index.d.ts +4 -0
- package/cjs/ts-types/pivot-table/index.js +22 -0
- package/cjs/ts-types/pivot-table/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.d.ts +51 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.d.ts +11 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.d.ts +9 -0
- package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.d.ts +24 -0
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +17 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/index.d.ts +12 -0
- package/cjs/ts-types/pivot-table/indicator/index.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +22 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/title.d.ts +20 -0
- package/cjs/ts-types/pivot-table/title.js +6 -0
- package/cjs/ts-types/pivot-table/title.js.map +1 -0
- package/cjs/ts-types/sparkline.d.ts +37 -0
- package/cjs/ts-types/sparkline.js +6 -0
- package/cjs/ts-types/sparkline.js.map +1 -0
- package/cjs/ts-types/style-define.d.ts +72 -0
- package/cjs/ts-types/style-define.js +6 -0
- package/cjs/ts-types/style-define.js.map +1 -0
- package/cjs/ts-types/table-engine.d.ts +405 -0
- package/cjs/ts-types/table-engine.js +13 -0
- package/cjs/ts-types/table-engine.js.map +1 -0
- package/cjs/ts-types/theme.d.ts +164 -0
- package/cjs/ts-types/theme.js +6 -0
- package/cjs/ts-types/theme.js.map +1 -0
- package/cjs/ts-types/tooltip.d.ts +26 -0
- package/cjs/ts-types/tooltip.js +6 -0
- package/cjs/ts-types/tooltip.js.map +1 -0
- package/cjs/vrender.d.ts +8 -0
- package/cjs/vrender.js +61 -0
- package/cjs/vrender.js.map +1 -0
- package/dist/vtable.js +83482 -0
- package/dist/vtable.min.js +15 -0
- package/es/ListTable-all.d.ts +3 -0
- package/es/ListTable-all.js +17 -0
- package/es/ListTable-all.js.map +1 -0
- package/es/ListTable-simple.d.ts +3 -0
- package/es/ListTable-simple.js +8 -0
- package/es/ListTable-simple.js.map +1 -0
- package/es/ListTable.d.ts +101 -0
- package/es/ListTable.js +675 -0
- package/es/ListTable.js.map +1 -0
- package/es/PivotChart.d.ts +100 -0
- package/es/PivotChart.js +773 -0
- package/es/PivotChart.js.map +1 -0
- package/es/PivotTable-all.d.ts +3 -0
- package/es/PivotTable-all.js +13 -0
- package/es/PivotTable-all.js.map +1 -0
- package/es/PivotTable-simple.d.ts +3 -0
- package/es/PivotTable-simple.js +8 -0
- package/es/PivotTable-simple.js.map +1 -0
- package/es/PivotTable.d.ts +112 -0
- package/es/PivotTable.js +985 -0
- package/es/PivotTable.js.map +1 -0
- package/es/body-helper/body-helper.d.ts +20 -0
- package/es/body-helper/body-helper.js +112 -0
- package/es/body-helper/body-helper.js.map +1 -0
- package/es/body-helper/style/ButtonStyle.d.ts +45 -0
- package/es/body-helper/style/ButtonStyle.js +102 -0
- package/es/body-helper/style/ButtonStyle.js.map +1 -0
- package/es/body-helper/style/CheckboxStyle.d.ts +42 -0
- package/es/body-helper/style/CheckboxStyle.js +96 -0
- package/es/body-helper/style/CheckboxStyle.js.map +1 -0
- package/es/body-helper/style/ImageStyle.d.ts +7 -0
- package/es/body-helper/style/ImageStyle.js +16 -0
- package/es/body-helper/style/ImageStyle.js.map +1 -0
- package/es/body-helper/style/MultilineTextStyle.d.ts +13 -0
- package/es/body-helper/style/MultilineTextStyle.js +30 -0
- package/es/body-helper/style/MultilineTextStyle.js.map +1 -0
- package/es/body-helper/style/NumberStyle.d.ts +7 -0
- package/es/body-helper/style/NumberStyle.js +16 -0
- package/es/body-helper/style/NumberStyle.js.map +1 -0
- package/es/body-helper/style/ProgressBarStyle.d.ts +55 -0
- package/es/body-helper/style/ProgressBarStyle.js +131 -0
- package/es/body-helper/style/ProgressBarStyle.js.map +1 -0
- package/es/body-helper/style/RadioStyle.d.ts +45 -0
- package/es/body-helper/style/RadioStyle.js +103 -0
- package/es/body-helper/style/RadioStyle.js.map +1 -0
- package/es/body-helper/style/Style.d.ts +95 -0
- package/es/body-helper/style/Style.js +219 -0
- package/es/body-helper/style/Style.js.map +1 -0
- package/es/body-helper/style/SwitchStyle.d.ts +36 -0
- package/es/body-helper/style/SwitchStyle.js +82 -0
- package/es/body-helper/style/SwitchStyle.js.map +1 -0
- package/es/body-helper/style.d.ts +11 -0
- package/es/body-helper/style.js +28 -0
- package/es/body-helper/style.js.map +1 -0
- package/es/chartModule.d.ts +3 -0
- package/es/chartModule.js +10 -0
- package/es/chartModule.js.map +1 -0
- package/es/components/axis/axis.d.ts +52 -0
- package/es/components/axis/axis.js +198 -0
- package/es/components/axis/axis.js.map +1 -0
- package/es/components/axis/band-scale.d.ts +18 -0
- package/es/components/axis/band-scale.js +46 -0
- package/es/components/axis/band-scale.js.map +1 -0
- package/es/components/axis/get-axis-attributes.d.ts +146 -0
- package/es/components/axis/get-axis-attributes.js +200 -0
- package/es/components/axis/get-axis-attributes.js.map +1 -0
- package/es/components/axis/get-axis-component-size.d.ts +6 -0
- package/es/components/axis/get-axis-component-size.js +128 -0
- package/es/components/axis/get-axis-component-size.js.map +1 -0
- package/es/components/axis/label-overlap.d.ts +3 -0
- package/es/components/axis/label-overlap.js +57 -0
- package/es/components/axis/label-overlap.js.map +1 -0
- package/es/components/axis/linear-scale.d.ts +48 -0
- package/es/components/axis/linear-scale.js +115 -0
- package/es/components/axis/linear-scale.js.map +1 -0
- package/es/components/empty-tip/empty-tip.d.ts +25 -0
- package/es/components/empty-tip/empty-tip.js +98 -0
- package/es/components/empty-tip/empty-tip.js.map +1 -0
- package/es/components/index.d.ts +6 -0
- package/es/components/index.js +44 -0
- package/es/components/index.js.map +1 -0
- package/es/components/legend/continue-legend/continue-legend.d.ts +24 -0
- package/es/components/legend/continue-legend/continue-legend.js +96 -0
- package/es/components/legend/continue-legend/continue-legend.js.map +1 -0
- package/es/components/legend/continue-legend/get-continue-legend-attributes.d.ts +5 -0
- package/es/components/legend/continue-legend/get-continue-legend-attributes.js +132 -0
- package/es/components/legend/continue-legend/get-continue-legend-attributes.js.map +1 -0
- package/es/components/legend/create-legend.d.ts +6 -0
- package/es/components/legend/create-legend.js +8 -0
- package/es/components/legend/create-legend.js.map +1 -0
- package/es/components/legend/discrete-legend/discrete-legend.d.ts +25 -0
- package/es/components/legend/discrete-legend/discrete-legend.js +112 -0
- package/es/components/legend/discrete-legend/discrete-legend.js.map +1 -0
- package/es/components/legend/discrete-legend/get-discrete-legend-attributes.d.ts +5 -0
- package/es/components/legend/discrete-legend/get-discrete-legend-attributes.js +84 -0
- package/es/components/legend/discrete-legend/get-discrete-legend-attributes.js.map +1 -0
- package/es/components/menu/dom/BaseMenu.d.ts +16 -0
- package/es/components/menu/dom/BaseMenu.js +25 -0
- package/es/components/menu/dom/BaseMenu.js.map +1 -0
- package/es/components/menu/dom/Menu.d.ts +9 -0
- package/es/components/menu/dom/Menu.js +18 -0
- package/es/components/menu/dom/Menu.js.map +1 -0
- package/es/components/menu/dom/MenuHandler.d.ts +24 -0
- package/es/components/menu/dom/MenuHandler.js +146 -0
- package/es/components/menu/dom/MenuHandler.js.map +1 -0
- package/es/components/menu/dom/logic/MenuContainer.d.ts +21 -0
- package/es/components/menu/dom/logic/MenuContainer.js +102 -0
- package/es/components/menu/dom/logic/MenuContainer.js.map +1 -0
- package/es/components/menu/dom/logic/MenuElement.d.ts +26 -0
- package/es/components/menu/dom/logic/MenuElement.js +288 -0
- package/es/components/menu/dom/logic/MenuElement.js.map +1 -0
- package/es/components/menu/dom/logic/MenuElementStyle.d.ts +1 -0
- package/es/components/menu/dom/logic/MenuElementStyle.js +9 -0
- package/es/components/menu/dom/logic/MenuElementStyle.js.map +1 -0
- package/es/components/react/react-custom-layout.d.ts +27 -0
- package/es/components/react/react-custom-layout.js +169 -0
- package/es/components/react/react-custom-layout.js.map +1 -0
- package/es/components/title/title.d.ts +21 -0
- package/es/components/title/title.js +84 -0
- package/es/components/title/title.js.map +1 -0
- package/es/components/tooltip/BaseTooltip.d.ts +22 -0
- package/es/components/tooltip/BaseTooltip.js +27 -0
- package/es/components/tooltip/BaseTooltip.js.map +1 -0
- package/es/components/tooltip/Tooltip.d.ts +5 -0
- package/es/components/tooltip/Tooltip.js +10 -0
- package/es/components/tooltip/Tooltip.js.map +1 -0
- package/es/components/tooltip/TooltipHandler.d.ts +31 -0
- package/es/components/tooltip/TooltipHandler.js +134 -0
- package/es/components/tooltip/TooltipHandler.js.map +1 -0
- package/es/components/tooltip/logic/BubbleTooltipElement.d.ts +34 -0
- package/es/components/tooltip/logic/BubbleTooltipElement.js +162 -0
- package/es/components/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.d.ts +1 -0
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.js +9 -0
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
- package/es/components/util/orient.d.ts +3 -0
- package/es/components/util/orient.js +8 -0
- package/es/components/util/orient.js.map +1 -0
- package/es/components/util/register.d.ts +3 -0
- package/es/components/util/register.js +8 -0
- package/es/components/util/register.js.map +1 -0
- package/es/components/util/transform.d.ts +5 -0
- package/es/components/util/transform.js +34 -0
- package/es/components/util/transform.js.map +1 -0
- package/es/core/BaseTable.d.ts +436 -0
- package/es/core/BaseTable.js +1900 -0
- package/es/core/BaseTable.js.map +1 -0
- package/es/core/FouseInput.d.ts +12 -0
- package/es/core/FouseInput.js +33 -0
- package/es/core/FouseInput.js.map +1 -0
- package/es/core/TABLE_EVENT_TYPE.d.ts +61 -0
- package/es/core/TABLE_EVENT_TYPE.js +61 -0
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -0
- package/es/core/animation.d.ts +17 -0
- package/es/core/animation.js +54 -0
- package/es/core/animation.js.map +1 -0
- package/es/core/factory.d.ts +11 -0
- package/es/core/factory.js +23 -0
- package/es/core/factory.js.map +1 -0
- package/es/core/group-helper.d.ts +6 -0
- package/es/core/group-helper.js +14 -0
- package/es/core/group-helper.js.map +1 -0
- package/es/core/record-helper.d.ts +8 -0
- package/es/core/record-helper.js +425 -0
- package/es/core/record-helper.js.map +1 -0
- package/es/core/row-series-number-helper.d.ts +8 -0
- package/es/core/row-series-number-helper.js +15 -0
- package/es/core/row-series-number-helper.js.map +1 -0
- package/es/core/style-helper.d.ts +3 -0
- package/es/core/style-helper.js +86 -0
- package/es/core/style-helper.js.map +1 -0
- package/es/core/style.d.ts +1 -0
- package/es/core/style.js +9 -0
- package/es/core/style.js.map +1 -0
- package/es/core/tableHelper.d.ts +45 -0
- package/es/core/tableHelper.js +253 -0
- package/es/core/tableHelper.js.map +1 -0
- package/es/core/utils/get-cell-position.d.ts +12 -0
- package/es/core/utils/get-cell-position.js +202 -0
- package/es/core/utils/get-cell-position.js.map +1 -0
- package/es/core/utils/get-custom-merge-cell-func.d.ts +2 -0
- package/es/core/utils/get-custom-merge-cell-func.js +6 -0
- package/es/core/utils/get-custom-merge-cell-func.js.map +1 -0
- package/es/core.d.ts +3 -0
- package/es/core.js +4 -0
- package/es/core.js.map +1 -0
- package/es/data/CachedDataSource.d.ts +36 -0
- package/es/data/CachedDataSource.js +249 -0
- package/es/data/CachedDataSource.js.map +1 -0
- package/es/data/DataSource.d.ts +129 -0
- package/es/data/DataSource.js +732 -0
- package/es/data/DataSource.js.map +1 -0
- package/es/data.d.ts +4 -0
- package/es/data.js +6 -0
- package/es/data.js.map +1 -0
- package/es/dataset/DataStatistics.d.ts +10 -0
- package/es/dataset/DataStatistics.js +74 -0
- package/es/dataset/DataStatistics.js.map +1 -0
- package/es/dataset/dataset-pivot-table.d.ts +60 -0
- package/es/dataset/dataset-pivot-table.js +340 -0
- package/es/dataset/dataset-pivot-table.js.map +1 -0
- package/es/dataset/dataset.d.ts +108 -0
- package/es/dataset/dataset.js +803 -0
- package/es/dataset/dataset.js.map +1 -0
- package/es/dataset/flatDataToObject.d.ts +46 -0
- package/es/dataset/flatDataToObject.js +124 -0
- package/es/dataset/flatDataToObject.js.map +1 -0
- package/es/edit/edit-manager.d.ts +19 -0
- package/es/edit/edit-manager.js +121 -0
- package/es/edit/edit-manager.js.map +1 -0
- package/es/edit/editors.d.ts +5 -0
- package/es/edit/editors.js +6 -0
- package/es/edit/editors.js.map +1 -0
- package/es/event/EventHandler.d.ts +47 -0
- package/es/event/EventHandler.js +119 -0
- package/es/event/EventHandler.js.map +1 -0
- package/es/event/EventTarget.d.ts +12 -0
- package/es/event/EventTarget.js +58 -0
- package/es/event/EventTarget.js.map +1 -0
- package/es/event/component/button.d.ts +2 -0
- package/es/event/component/button.js +13 -0
- package/es/event/component/button.js.map +1 -0
- package/es/event/drill.d.ts +5 -0
- package/es/event/drill.js +32 -0
- package/es/event/drill.js.map +1 -0
- package/es/event/event.d.ts +63 -0
- package/es/event/event.js +240 -0
- package/es/event/event.js.map +1 -0
- package/es/event/helper.d.ts +2 -0
- package/es/event/helper.js +27 -0
- package/es/event/helper.js.map +1 -0
- package/es/event/listener/container-dom.d.ts +2 -0
- package/es/event/listener/container-dom.js +348 -0
- package/es/event/listener/container-dom.js.map +1 -0
- package/es/event/listener/scroll-bar.d.ts +2 -0
- package/es/event/listener/scroll-bar.js +75 -0
- package/es/event/listener/scroll-bar.js.map +1 -0
- package/es/event/listener/table-group.d.ts +6 -0
- package/es/event/listener/table-group.js +522 -0
- package/es/event/listener/table-group.js.map +1 -0
- package/es/event/listener/touch.d.ts +2 -0
- package/es/event/listener/touch.js +76 -0
- package/es/event/listener/touch.js.map +1 -0
- package/es/event/media-click.d.ts +2 -0
- package/es/event/media-click.js +85 -0
- package/es/event/media-click.js.map +1 -0
- package/es/event/scroll.d.ts +20 -0
- package/es/event/scroll.js +81 -0
- package/es/event/scroll.js.map +1 -0
- package/es/event/self-event-listener/base-table/dbclick-auto-column-width.d.ts +2 -0
- package/es/event/self-event-listener/base-table/dbclick-auto-column-width.js +25 -0
- package/es/event/self-event-listener/base-table/dbclick-auto-column-width.js.map +1 -0
- package/es/event/self-event-listener/base-table/dropdown-menu.d.ts +2 -0
- package/es/event/self-event-listener/base-table/dropdown-menu.js +8 -0
- package/es/event/self-event-listener/base-table/dropdown-menu.js.map +1 -0
- package/es/event/self-event-listener/base-table/icon.d.ts +2 -0
- package/es/event/self-event-listener/base-table/icon.js +18 -0
- package/es/event/self-event-listener/base-table/icon.js.map +1 -0
- package/es/event/self-event-listener/base-table/right-button-click.d.ts +2 -0
- package/es/event/self-event-listener/base-table/right-button-click.js +17 -0
- package/es/event/self-event-listener/base-table/right-button-click.js.map +1 -0
- package/es/event/self-event-listener/list-table/checkbox.d.ts +3 -0
- package/es/event/self-event-listener/list-table/checkbox.js +117 -0
- package/es/event/self-event-listener/list-table/checkbox.js.map +1 -0
- package/es/event/self-event-listener/pivot-chart/axis-click.d.ts +2 -0
- package/es/event/self-event-listener/pivot-chart/axis-click.js +37 -0
- package/es/event/self-event-listener/pivot-chart/axis-click.js.map +1 -0
- package/es/event/self-event-listener/pivot-chart/axis-hover.d.ts +2 -0
- package/es/event/self-event-listener/pivot-chart/axis-hover.js +33 -0
- package/es/event/self-event-listener/pivot-chart/axis-hover.js.map +1 -0
- package/es/event/self-event-listener/pivot-table/drill.d.ts +1 -0
- package/es/event/self-event-listener/pivot-table/drill.js +3 -0
- package/es/event/self-event-listener/pivot-table/drill.js.map +1 -0
- package/es/event/sparkline-event.d.ts +2 -0
- package/es/event/sparkline-event.js +19 -0
- package/es/event/sparkline-event.js.map +1 -0
- package/es/event/util.d.ts +20 -0
- package/es/event/util.js +38 -0
- package/es/event/util.js.map +1 -0
- package/es/header-helper/header-helper.d.ts +29 -0
- package/es/header-helper/header-helper.js +252 -0
- package/es/header-helper/header-helper.js.map +1 -0
- package/es/header-helper/style/CheckboxStyle.d.ts +42 -0
- package/es/header-helper/style/CheckboxStyle.js +96 -0
- package/es/header-helper/style/CheckboxStyle.js.map +1 -0
- package/es/header-helper/style/ImageStyle.d.ts +7 -0
- package/es/header-helper/style/ImageStyle.js +17 -0
- package/es/header-helper/style/ImageStyle.js.map +1 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.js +30 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
- package/es/header-helper/style/SortHeaderStyle.d.ts +1 -0
- package/es/header-helper/style/SortHeaderStyle.js +3 -0
- package/es/header-helper/style/SortHeaderStyle.js.map +1 -0
- package/es/header-helper/style/Style.d.ts +95 -0
- package/es/header-helper/style/Style.js +220 -0
- package/es/header-helper/style/Style.js.map +1 -0
- package/es/header-helper/style.d.ts +6 -0
- package/es/header-helper/style.js +17 -0
- package/es/header-helper/style.js.map +1 -0
- package/es/icons.d.ts +5 -0
- package/es/icons.js +295 -0
- package/es/icons.js.map +1 -0
- package/es/index.d.ts +33 -0
- package/es/index.js +68 -0
- package/es/index.js.map +1 -0
- package/es/layout/cell-range/simple-cell-range.d.ts +4 -0
- package/es/layout/cell-range/simple-cell-range.js +141 -0
- package/es/layout/cell-range/simple-cell-range.js.map +1 -0
- package/es/layout/chart-helper/get-axis-config.d.ts +39 -0
- package/es/layout/chart-helper/get-axis-config.js +391 -0
- package/es/layout/chart-helper/get-axis-config.js.map +1 -0
- package/es/layout/chart-helper/get-axis-domain.d.ts +11 -0
- package/es/layout/chart-helper/get-axis-domain.js +44 -0
- package/es/layout/chart-helper/get-axis-domain.js.map +1 -0
- package/es/layout/chart-helper/get-chart-spec.d.ts +13 -0
- package/es/layout/chart-helper/get-chart-spec.js +281 -0
- package/es/layout/chart-helper/get-chart-spec.js.map +1 -0
- package/es/layout/chart-helper/tick-align.d.ts +12 -0
- package/es/layout/chart-helper/tick-align.js +16 -0
- package/es/layout/chart-helper/tick-align.js.map +1 -0
- package/es/layout/chart-helper/zero-align.d.ts +10 -0
- package/es/layout/chart-helper/zero-align.js +111 -0
- package/es/layout/chart-helper/zero-align.js.map +1 -0
- package/es/layout/index.d.ts +1 -0
- package/es/layout/index.js +1 -0
- package/es/layout/index.js.map +1 -0
- package/es/layout/layout-helper.d.ts +20 -0
- package/es/layout/layout-helper.js +146 -0
- package/es/layout/layout-helper.js.map +1 -0
- package/es/layout/pivot-header-layout.d.ts +279 -0
- package/es/layout/pivot-header-layout.js +1832 -0
- package/es/layout/pivot-header-layout.js.map +1 -0
- package/es/layout/pivot-layout.d.ts +1 -0
- package/es/layout/pivot-layout.js +1 -0
- package/es/layout/pivot-layout.js.map +1 -0
- package/es/layout/row-height-map.d.ts +34 -0
- package/es/layout/row-height-map.js +168 -0
- package/es/layout/row-height-map.js.map +1 -0
- package/es/layout/simple-header-layout.d.ts +153 -0
- package/es/layout/simple-header-layout.js +780 -0
- package/es/layout/simple-header-layout.js.map +1 -0
- package/es/layout/tree-helper.d.ts +71 -0
- package/es/layout/tree-helper.js +401 -0
- package/es/layout/tree-helper.js.map +1 -0
- package/es/plugins/chartModules.d.ts +3 -0
- package/es/plugins/chartModules.js +2 -0
- package/es/plugins/chartModules.js.map +1 -0
- package/es/plugins/custom-cell-style.d.ts +26 -0
- package/es/plugins/custom-cell-style.js +107 -0
- package/es/plugins/custom-cell-style.js.map +1 -0
- package/es/plugins/icons.d.ts +12 -0
- package/es/plugins/icons.js +22 -0
- package/es/plugins/icons.js.map +1 -0
- package/es/plugins/invert-highlight.d.ts +1 -0
- package/es/plugins/invert-highlight.js +14 -0
- package/es/plugins/invert-highlight.js.map +1 -0
- package/es/plugins/list-tree-stick-cell.d.ts +18 -0
- package/es/plugins/list-tree-stick-cell.js +178 -0
- package/es/plugins/list-tree-stick-cell.js.map +1 -0
- package/es/plugins/themes.d.ts +4 -0
- package/es/plugins/themes.js +2 -0
- package/es/plugins/themes.js.map +1 -0
- package/es/register.d.ts +15 -0
- package/es/register.js +44 -0
- package/es/register.js.map +1 -0
- package/es/render/jsx/index.d.ts +8 -0
- package/es/render/jsx/index.js +16 -0
- package/es/render/jsx/index.js.map +1 -0
- package/es/render/layout/arc.d.ts +12 -0
- package/es/render/layout/arc.js +12 -0
- package/es/render/layout/arc.js.map +1 -0
- package/es/render/layout/circle.d.ts +12 -0
- package/es/render/layout/circle.js +12 -0
- package/es/render/layout/circle.js.map +1 -0
- package/es/render/layout/container.d.ts +14 -0
- package/es/render/layout/container.js +21 -0
- package/es/render/layout/container.js.map +1 -0
- package/es/render/layout/direction.d.ts +22 -0
- package/es/render/layout/direction.js +31 -0
- package/es/render/layout/direction.js.map +1 -0
- package/es/render/layout/element.d.ts +43 -0
- package/es/render/layout/element.js +19 -0
- package/es/render/layout/element.js.map +1 -0
- package/es/render/layout/group-element.d.ts +5 -0
- package/es/render/layout/group-element.js +8 -0
- package/es/render/layout/group-element.js.map +1 -0
- package/es/render/layout/group.d.ts +12 -0
- package/es/render/layout/group.js +12 -0
- package/es/render/layout/group.js.map +1 -0
- package/es/render/layout/icon.d.ts +21 -0
- package/es/render/layout/icon.js +21 -0
- package/es/render/layout/icon.js.map +1 -0
- package/es/render/layout/image.d.ts +14 -0
- package/es/render/layout/image.js +13 -0
- package/es/render/layout/image.js.map +1 -0
- package/es/render/layout/index.d.ts +13 -0
- package/es/render/layout/index.js +26 -0
- package/es/render/layout/index.js.map +1 -0
- package/es/render/layout/line.d.ts +1 -0
- package/es/render/layout/line.js +2 -0
- package/es/render/layout/line.js.map +1 -0
- package/es/render/layout/percent-calc.d.ts +5 -0
- package/es/render/layout/percent-calc.js +7 -0
- package/es/render/layout/percent-calc.js.map +1 -0
- package/es/render/layout/rect.d.ts +12 -0
- package/es/render/layout/rect.js +12 -0
- package/es/render/layout/rect.js.map +1 -0
- package/es/render/layout/tag.d.ts +14 -0
- package/es/render/layout/tag.js +15 -0
- package/es/render/layout/tag.js.map +1 -0
- package/es/render/layout/text.d.ts +13 -0
- package/es/render/layout/text.js +17 -0
- package/es/render/layout/text.js.map +1 -0
- package/es/scenegraph/animation/appear.d.ts +2 -0
- package/es/scenegraph/animation/appear.js +20 -0
- package/es/scenegraph/animation/appear.js.map +1 -0
- package/es/scenegraph/component/cell-content.d.ts +36 -0
- package/es/scenegraph/component/cell-content.js +105 -0
- package/es/scenegraph/component/cell-content.js.map +1 -0
- package/es/scenegraph/component/cell-mover.d.ts +21 -0
- package/es/scenegraph/component/cell-mover.js +113 -0
- package/es/scenegraph/component/cell-mover.js.map +1 -0
- package/es/scenegraph/component/custom.d.ts +16 -0
- package/es/scenegraph/component/custom.js +311 -0
- package/es/scenegraph/component/custom.js.map +1 -0
- package/es/scenegraph/component/drill-icon.d.ts +9 -0
- package/es/scenegraph/component/drill-icon.js +41 -0
- package/es/scenegraph/component/drill-icon.js.map +1 -0
- package/es/scenegraph/component/menu.d.ts +41 -0
- package/es/scenegraph/component/menu.js +215 -0
- package/es/scenegraph/component/menu.js.map +1 -0
- package/es/scenegraph/component/table-component.d.ts +52 -0
- package/es/scenegraph/component/table-component.js +564 -0
- package/es/scenegraph/component/table-component.js.map +1 -0
- package/es/scenegraph/component/util.d.ts +3 -0
- package/es/scenegraph/component/util.js +12 -0
- package/es/scenegraph/component/util.js.map +1 -0
- package/es/scenegraph/debug-tool/debug-tool.d.ts +34 -0
- package/es/scenegraph/debug-tool/debug-tool.js +113 -0
- package/es/scenegraph/debug-tool/debug-tool.js.map +1 -0
- package/es/scenegraph/debug-tool/index.d.ts +4 -0
- package/es/scenegraph/debug-tool/index.js +6 -0
- package/es/scenegraph/debug-tool/index.js.map +1 -0
- package/es/scenegraph/graphic/chart.d.ts +47 -0
- package/es/scenegraph/graphic/chart.js +123 -0
- package/es/scenegraph/graphic/chart.js.map +1 -0
- package/es/scenegraph/graphic/contributions/chart-render-helper.d.ts +11 -0
- package/es/scenegraph/graphic/contributions/chart-render-helper.js +159 -0
- package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -0
- package/es/scenegraph/graphic/contributions/chart-render.d.ts +11 -0
- package/es/scenegraph/graphic/contributions/chart-render.js +76 -0
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/draw-interceptor.d.ts +13 -0
- package/es/scenegraph/graphic/contributions/draw-interceptor.js +66 -0
- package/es/scenegraph/graphic/contributions/draw-interceptor.js.map +1 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.d.ts +79 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.js +346 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +38 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.js +69 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/index.d.ts +3 -0
- package/es/scenegraph/graphic/contributions/index.js +38 -0
- package/es/scenegraph/graphic/contributions/index.js.map +1 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.d.ts +18 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js +90 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/text-contribution-render.d.ts +12 -0
- package/es/scenegraph/graphic/contributions/text-contribution-render.js +69 -0
- package/es/scenegraph/graphic/contributions/text-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/group.d.ts +37 -0
- package/es/scenegraph/graphic/group.js +127 -0
- package/es/scenegraph/graphic/group.js.map +1 -0
- package/es/scenegraph/graphic/icon.d.ts +47 -0
- package/es/scenegraph/graphic/icon.js +70 -0
- package/es/scenegraph/graphic/icon.js.map +1 -0
- package/es/scenegraph/graphic/mark.d.ts +4 -0
- package/es/scenegraph/graphic/mark.js +66 -0
- package/es/scenegraph/graphic/mark.js.map +1 -0
- package/es/scenegraph/graphic/text.d.ts +2 -0
- package/es/scenegraph/graphic/text.js +2 -0
- package/es/scenegraph/graphic/text.js.map +1 -0
- package/es/scenegraph/group-creater/cell-helper.d.ts +16 -0
- package/es/scenegraph/group-creater/cell-helper.js +325 -0
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/button-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/button-cell.js +137 -0
- package/es/scenegraph/group-creater/cell-type/button-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.d.ts +5 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.js +76 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +138 -0
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +15 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.js +206 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/index.d.ts +10 -0
- package/es/scenegraph/group-creater/cell-type/index.js +64 -0
- package/es/scenegraph/group-creater/cell-type/index.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +11 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +389 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/radio-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/radio-cell.js +143 -0
- package/es/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +5 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +202 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/switch-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/switch-cell.js +150 -0
- package/es/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.js +66 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.js +127 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
- package/es/scenegraph/group-creater/column-helper.d.ts +14 -0
- package/es/scenegraph/group-creater/column-helper.js +141 -0
- package/es/scenegraph/group-creater/column-helper.js.map +1 -0
- package/es/scenegraph/group-creater/column.d.ts +4 -0
- package/es/scenegraph/group-creater/column.js +26 -0
- package/es/scenegraph/group-creater/column.js.map +1 -0
- package/es/scenegraph/group-creater/init-scenegraph.d.ts +2 -0
- package/es/scenegraph/group-creater/init-scenegraph.js +50 -0
- package/es/scenegraph/group-creater/init-scenegraph.js.map +1 -0
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +3 -0
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +46 -0
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -0
- package/es/scenegraph/group-creater/progress/default-width-height.d.ts +3 -0
- package/es/scenegraph/group-creater/progress/default-width-height.js +18 -0
- package/es/scenegraph/group-creater/progress/default-width-height.js.map +1 -0
- package/es/scenegraph/group-creater/progress/proxy.d.ts +79 -0
- package/es/scenegraph/group-creater/progress/proxy.js +357 -0
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.d.ts +4 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +168 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +4 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +185 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.d.ts +2 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.js +56 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-vertical.d.ts +2 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js +70 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-column.d.ts +2 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-column.js +29 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-column.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-row.d.ts +2 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-row.js +39 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/util.d.ts +8 -0
- package/es/scenegraph/group-creater/progress/update-position/util.js +88 -0
- package/es/scenegraph/group-creater/progress/update-position/util.js.map +1 -0
- package/es/scenegraph/icon/icon-update.d.ts +28 -0
- package/es/scenegraph/icon/icon-update.js +178 -0
- package/es/scenegraph/icon/icon-update.js.map +1 -0
- package/es/scenegraph/layout/compute-col-width.d.ts +4 -0
- package/es/scenegraph/layout/compute-col-width.js +320 -0
- package/es/scenegraph/layout/compute-col-width.js.map +1 -0
- package/es/scenegraph/layout/compute-row-height.d.ts +3 -0
- package/es/scenegraph/layout/compute-row-height.js +340 -0
- package/es/scenegraph/layout/compute-row-height.js.map +1 -0
- package/es/scenegraph/layout/frozen-react.d.ts +5 -0
- package/es/scenegraph/layout/frozen-react.js +82 -0
- package/es/scenegraph/layout/frozen-react.js.map +1 -0
- package/es/scenegraph/layout/frozen.d.ts +6 -0
- package/es/scenegraph/layout/frozen.js +328 -0
- package/es/scenegraph/layout/frozen.js.map +1 -0
- package/es/scenegraph/layout/height-util.d.ts +7 -0
- package/es/scenegraph/layout/height-util.js +118 -0
- package/es/scenegraph/layout/height-util.js.map +1 -0
- package/es/scenegraph/layout/move-cell.d.ts +2 -0
- package/es/scenegraph/layout/move-cell.js +44 -0
- package/es/scenegraph/layout/move-cell.js.map +1 -0
- package/es/scenegraph/layout/update-col.d.ts +3 -0
- package/es/scenegraph/layout/update-col.js +204 -0
- package/es/scenegraph/layout/update-col.js.map +1 -0
- package/es/scenegraph/layout/update-height.d.ts +6 -0
- package/es/scenegraph/layout/update-height.js +149 -0
- package/es/scenegraph/layout/update-height.js.map +1 -0
- package/es/scenegraph/layout/update-row.d.ts +3 -0
- package/es/scenegraph/layout/update-row.js +278 -0
- package/es/scenegraph/layout/update-row.js.map +1 -0
- package/es/scenegraph/layout/update-width.d.ts +2 -0
- package/es/scenegraph/layout/update-width.js +247 -0
- package/es/scenegraph/layout/update-width.js.map +1 -0
- package/es/scenegraph/refresh-node/update-chart.d.ts +7 -0
- package/es/scenegraph/refresh-node/update-chart.js +196 -0
- package/es/scenegraph/refresh-node/update-chart.js.map +1 -0
- package/es/scenegraph/scenegraph.d.ts +182 -0
- package/es/scenegraph/scenegraph.js +908 -0
- package/es/scenegraph/scenegraph.js.map +1 -0
- package/es/scenegraph/select/create-select-border.d.ts +3 -0
- package/es/scenegraph/select/create-select-border.js +51 -0
- package/es/scenegraph/select/create-select-border.js.map +1 -0
- package/es/scenegraph/select/delete-select-border.d.ts +5 -0
- package/es/scenegraph/select/delete-select-border.js +29 -0
- package/es/scenegraph/select/delete-select-border.js.map +1 -0
- package/es/scenegraph/select/move-select-border.d.ts +2 -0
- package/es/scenegraph/select/move-select-border.js +9 -0
- package/es/scenegraph/select/move-select-border.js.map +1 -0
- package/es/scenegraph/select/update-select-border.d.ts +8 -0
- package/es/scenegraph/select/update-select-border.js +263 -0
- package/es/scenegraph/select/update-select-border.js.map +1 -0
- package/es/scenegraph/select/update-select-style.d.ts +3 -0
- package/es/scenegraph/select/update-select-style.js +7 -0
- package/es/scenegraph/select/update-select-style.js.map +1 -0
- package/es/scenegraph/stick-text/index.d.ts +3 -0
- package/es/scenegraph/stick-text/index.js +179 -0
- package/es/scenegraph/stick-text/index.js.map +1 -0
- package/es/scenegraph/style/corner-cell.d.ts +3 -0
- package/es/scenegraph/style/corner-cell.js +22 -0
- package/es/scenegraph/style/corner-cell.js.map +1 -0
- package/es/scenegraph/style/frame-border.d.ts +8 -0
- package/es/scenegraph/style/frame-border.js +138 -0
- package/es/scenegraph/style/frame-border.js.map +1 -0
- package/es/scenegraph/utils/border-line.d.ts +8 -0
- package/es/scenegraph/utils/border-line.js +45 -0
- package/es/scenegraph/utils/border-line.js.map +1 -0
- package/es/scenegraph/utils/break-string.d.ts +5 -0
- package/es/scenegraph/utils/break-string.js +16 -0
- package/es/scenegraph/utils/break-string.js.map +1 -0
- package/es/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
- package/es/scenegraph/utils/cell-border-stroke-width.js +12 -0
- package/es/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
- package/es/scenegraph/utils/cell-pos.d.ts +4 -0
- package/es/scenegraph/utils/cell-pos.js +12 -0
- package/es/scenegraph/utils/cell-pos.js.map +1 -0
- package/es/scenegraph/utils/deal-promise-data.d.ts +2 -0
- package/es/scenegraph/utils/deal-promise-data.js +6 -0
- package/es/scenegraph/utils/deal-promise-data.js.map +1 -0
- package/es/scenegraph/utils/empty-group.d.ts +2 -0
- package/es/scenegraph/utils/empty-group.js +6 -0
- package/es/scenegraph/utils/empty-group.js.map +1 -0
- package/es/scenegraph/utils/font.d.ts +1 -0
- package/es/scenegraph/utils/font.js +6 -0
- package/es/scenegraph/utils/font.js.map +1 -0
- package/es/scenegraph/utils/get-cell-merge.d.ts +3 -0
- package/es/scenegraph/utils/get-cell-merge.js +11 -0
- package/es/scenegraph/utils/get-cell-merge.js.map +1 -0
- package/es/scenegraph/utils/get-hierarchy-offset.d.ts +2 -0
- package/es/scenegraph/utils/get-hierarchy-offset.js +21 -0
- package/es/scenegraph/utils/get-hierarchy-offset.js.map +1 -0
- package/es/scenegraph/utils/get-prop.d.ts +4 -0
- package/es/scenegraph/utils/get-prop.js +36 -0
- package/es/scenegraph/utils/get-prop.js.map +1 -0
- package/es/scenegraph/utils/icon.d.ts +12 -0
- package/es/scenegraph/utils/icon.js +29 -0
- package/es/scenegraph/utils/icon.js.map +1 -0
- package/es/scenegraph/utils/is-merge-cell-group.d.ts +2 -0
- package/es/scenegraph/utils/is-merge-cell-group.js +6 -0
- package/es/scenegraph/utils/is-merge-cell-group.js.map +1 -0
- package/es/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
- package/es/scenegraph/utils/keep-aspect-ratio.js +11 -0
- package/es/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
- package/es/scenegraph/utils/padding.d.ts +6 -0
- package/es/scenegraph/utils/padding.js +14 -0
- package/es/scenegraph/utils/padding.js.map +1 -0
- package/es/scenegraph/utils/render-service.d.ts +7 -0
- package/es/scenegraph/utils/render-service.js +19 -0
- package/es/scenegraph/utils/render-service.js.map +1 -0
- package/es/scenegraph/utils/text-icon-layout.d.ts +29 -0
- package/es/scenegraph/utils/text-icon-layout.js +334 -0
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -0
- package/es/scenegraph/utils/text-measure.d.ts +38 -0
- package/es/scenegraph/utils/text-measure.js +163 -0
- package/es/scenegraph/utils/text-measure.js.map +1 -0
- package/es/scenegraph/utils/text-pos.d.ts +8 -0
- package/es/scenegraph/utils/text-pos.js +20 -0
- package/es/scenegraph/utils/text-pos.js.map +1 -0
- package/es/scenegraph/utils/update-container.d.ts +2 -0
- package/es/scenegraph/utils/update-container.js +6 -0
- package/es/scenegraph/utils/update-container.js.map +1 -0
- package/es/state/cell-move/adjust-header.d.ts +3 -0
- package/es/state/cell-move/adjust-header.js +20 -0
- package/es/state/cell-move/adjust-header.js.map +1 -0
- package/es/state/cell-move/index.d.ts +4 -0
- package/es/state/cell-move/index.js +106 -0
- package/es/state/cell-move/index.js.map +1 -0
- package/es/state/checkbox/checkbox.d.ts +12 -0
- package/es/state/checkbox/checkbox.js +199 -0
- package/es/state/checkbox/checkbox.js.map +1 -0
- package/es/state/common/check-in-select.d.ts +7 -0
- package/es/state/common/check-in-select.js +53 -0
- package/es/state/common/check-in-select.js.map +1 -0
- package/es/state/drill/index.d.ts +2 -0
- package/es/state/drill/index.js +9 -0
- package/es/state/drill/index.js.map +1 -0
- package/es/state/frozen/index.d.ts +2 -0
- package/es/state/frozen/index.js +4 -0
- package/es/state/frozen/index.js.map +1 -0
- package/es/state/hover/col.d.ts +4 -0
- package/es/state/hover/col.js +16 -0
- package/es/state/hover/col.js.map +1 -0
- package/es/state/hover/is-cell-hover.d.ts +5 -0
- package/es/state/hover/is-cell-hover.js +44 -0
- package/es/state/hover/is-cell-hover.js.map +1 -0
- package/es/state/hover/row.d.ts +4 -0
- package/es/state/hover/row.js +14 -0
- package/es/state/hover/row.js.map +1 -0
- package/es/state/hover/single.d.ts +4 -0
- package/es/state/hover/single.js +10 -0
- package/es/state/hover/single.js.map +1 -0
- package/es/state/hover/update-cell.d.ts +2 -0
- package/es/state/hover/update-cell.js +15 -0
- package/es/state/hover/update-cell.js.map +1 -0
- package/es/state/hover/update-position.d.ts +2 -0
- package/es/state/hover/update-position.js +36 -0
- package/es/state/hover/update-position.js.map +1 -0
- package/es/state/radio/radio.d.ts +7 -0
- package/es/state/radio/radio.js +80 -0
- package/es/state/radio/radio.js.map +1 -0
- package/es/state/resize/update-resize-column.d.ts +2 -0
- package/es/state/resize/update-resize-column.js +79 -0
- package/es/state/resize/update-resize-column.js.map +1 -0
- package/es/state/resize/update-resize-row.d.ts +2 -0
- package/es/state/resize/update-resize-row.js +58 -0
- package/es/state/resize/update-resize-row.js.map +1 -0
- package/es/state/select/custom-select.d.ts +7 -0
- package/es/state/select/custom-select.js +30 -0
- package/es/state/select/custom-select.js.map +1 -0
- package/es/state/select/is-cell-select-highlight.d.ts +6 -0
- package/es/state/select/is-cell-select-highlight.js +81 -0
- package/es/state/select/is-cell-select-highlight.js.map +1 -0
- package/es/state/select/update-position.d.ts +4 -0
- package/es/state/select/update-position.js +300 -0
- package/es/state/select/update-position.js.map +1 -0
- package/es/state/sort/index.d.ts +2 -0
- package/es/state/sort/index.js +50 -0
- package/es/state/sort/index.js.map +1 -0
- package/es/state/spark-line/index.d.ts +3 -0
- package/es/state/spark-line/index.js +96 -0
- package/es/state/spark-line/index.js.map +1 -0
- package/es/state/state.d.ts +206 -0
- package/es/state/state.js +834 -0
- package/es/state/state.js.map +1 -0
- package/es/themes/ARCO.d.ts +3 -0
- package/es/themes/ARCO.js +109 -0
- package/es/themes/ARCO.js.map +1 -0
- package/es/themes/BRIGHT.d.ts +3 -0
- package/es/themes/BRIGHT.js +66 -0
- package/es/themes/BRIGHT.js.map +1 -0
- package/es/themes/DARK.d.ts +3 -0
- package/es/themes/DARK.js +99 -0
- package/es/themes/DARK.js.map +1 -0
- package/es/themes/DEFAULT.d.ts +3 -0
- package/es/themes/DEFAULT.js +82 -0
- package/es/themes/DEFAULT.js.map +1 -0
- package/es/themes/SIMPLIFY.d.ts +3 -0
- package/es/themes/SIMPLIFY.js +49 -0
- package/es/themes/SIMPLIFY.js.map +1 -0
- package/es/themes/component.d.ts +35 -0
- package/es/themes/component.js +42 -0
- package/es/themes/component.js.map +1 -0
- package/es/themes/theme.d.ts +67 -0
- package/es/themes/theme.js +752 -0
- package/es/themes/theme.js.map +1 -0
- package/es/themes.d.ts +28 -0
- package/es/themes.js +64 -0
- package/es/themes.js.map +1 -0
- package/es/tools/LimitPromiseQueue.d.ts +8 -0
- package/es/tools/LimitPromiseQueue.js +21 -0
- package/es/tools/LimitPromiseQueue.js.map +1 -0
- package/es/tools/NumberMap.d.ts +23 -0
- package/es/tools/NumberMap.js +117 -0
- package/es/tools/NumberMap.js.map +1 -0
- package/es/tools/Rect.d.ts +24 -0
- package/es/tools/Rect.js +62 -0
- package/es/tools/Rect.js.map +1 -0
- package/es/tools/calc.d.ts +8 -0
- package/es/tools/calc.js +201 -0
- package/es/tools/calc.js.map +1 -0
- package/es/tools/cell-range.d.ts +2 -0
- package/es/tools/cell-range.js +4 -0
- package/es/tools/cell-range.js.map +1 -0
- package/es/tools/debounce.d.ts +1 -0
- package/es/tools/debounce.js +43 -0
- package/es/tools/debounce.js.map +1 -0
- package/es/tools/diff-cell.d.ts +72 -0
- package/es/tools/diff-cell.js +160 -0
- package/es/tools/diff-cell.js.map +1 -0
- package/es/tools/dom.d.ts +1 -0
- package/es/tools/dom.js +5 -0
- package/es/tools/dom.js.map +1 -0
- package/es/tools/env.d.ts +19 -0
- package/es/tools/env.js +42 -0
- package/es/tools/env.js.map +1 -0
- package/es/tools/get-data-path/create-dataset.d.ts +11 -0
- package/es/tools/get-data-path/create-dataset.js +147 -0
- package/es/tools/get-data-path/create-dataset.js.map +1 -0
- package/es/tools/get-data-path/index.d.ts +2 -0
- package/es/tools/get-data-path/index.js +51 -0
- package/es/tools/get-data-path/index.js.map +1 -0
- package/es/tools/global.d.ts +15 -0
- package/es/tools/global.js +30 -0
- package/es/tools/global.js.map +1 -0
- package/es/tools/helper.d.ts +72 -0
- package/es/tools/helper.js +226 -0
- package/es/tools/helper.js.map +1 -0
- package/es/tools/icons.d.ts +4 -0
- package/es/tools/icons.js +4 -0
- package/es/tools/icons.js.map +1 -0
- package/es/tools/isx.d.ts +16 -0
- package/es/tools/isx.js +79 -0
- package/es/tools/isx.js.map +1 -0
- package/es/tools/join.d.ts +1 -0
- package/es/tools/join.js +6 -0
- package/es/tools/join.js.map +1 -0
- package/es/tools/merge-range.d.ts +11 -0
- package/es/tools/merge-range.js +28 -0
- package/es/tools/merge-range.js.map +1 -0
- package/es/tools/pixel-ratio.d.ts +2 -0
- package/es/tools/pixel-ratio.js +12 -0
- package/es/tools/pixel-ratio.js.map +1 -0
- package/es/tools/sort.d.ts +2 -0
- package/es/tools/sort.js +12 -0
- package/es/tools/sort.js.map +1 -0
- package/es/tools/style.d.ts +5 -0
- package/es/tools/style.js +20 -0
- package/es/tools/style.js.map +1 -0
- package/es/tools/update-row.d.ts +19 -0
- package/es/tools/update-row.js +32 -0
- package/es/tools/update-row.js.map +1 -0
- package/es/tools/util.d.ts +46 -0
- package/es/tools/util.js +231 -0
- package/es/tools/util.js.map +1 -0
- package/es/ts-types/animation/appear.d.ts +11 -0
- package/es/ts-types/animation/appear.js +2 -0
- package/es/ts-types/animation/appear.js.map +1 -0
- package/es/ts-types/animation/index.d.ts +1 -0
- package/es/ts-types/animation/index.js +2 -0
- package/es/ts-types/animation/index.js.map +1 -0
- package/es/ts-types/base-table.d.ts +641 -0
- package/es/ts-types/base-table.js +2 -0
- package/es/ts-types/base-table.js.map +1 -0
- package/es/ts-types/column/index.d.ts +2 -0
- package/es/ts-types/column/index.js +4 -0
- package/es/ts-types/column/index.js.map +1 -0
- package/es/ts-types/column/style.d.ts +151 -0
- package/es/ts-types/column/style.js +2 -0
- package/es/ts-types/column/style.js.map +1 -0
- package/es/ts-types/column/type.d.ts +2 -0
- package/es/ts-types/column/type.js +2 -0
- package/es/ts-types/column/type.js.map +1 -0
- package/es/ts-types/common.d.ts +114 -0
- package/es/ts-types/common.js +13 -0
- package/es/ts-types/common.js.map +1 -0
- package/es/ts-types/component/axis.d.ts +2 -0
- package/es/ts-types/component/axis.js +2 -0
- package/es/ts-types/component/axis.js.map +1 -0
- package/es/ts-types/component/empty-tip.d.ts +20 -0
- package/es/ts-types/component/empty-tip.js +2 -0
- package/es/ts-types/component/empty-tip.js.map +1 -0
- package/es/ts-types/component/index.d.ts +1 -0
- package/es/ts-types/component/index.js +2 -0
- package/es/ts-types/component/index.js.map +1 -0
- package/es/ts-types/component/legend.d.ts +18 -0
- package/es/ts-types/component/legend.js +2 -0
- package/es/ts-types/component/legend.js.map +1 -0
- package/es/ts-types/component/title.d.ts +49 -0
- package/es/ts-types/component/title.js +2 -0
- package/es/ts-types/component/title.js.map +1 -0
- package/es/ts-types/component/util.d.ts +1 -0
- package/es/ts-types/component/util.js +2 -0
- package/es/ts-types/component/util.js.map +1 -0
- package/es/ts-types/customElement.d.ts +128 -0
- package/es/ts-types/customElement.js +2 -0
- package/es/ts-types/customElement.js.map +1 -0
- package/es/ts-types/customLayout.d.ts +9 -0
- package/es/ts-types/customLayout.js +2 -0
- package/es/ts-types/customLayout.js.map +1 -0
- package/es/ts-types/dataset/aggregation.d.ts +192 -0
- package/es/ts-types/dataset/aggregation.js +397 -0
- package/es/ts-types/dataset/aggregation.js.map +1 -0
- package/es/ts-types/dataset/index.d.ts +1 -0
- package/es/ts-types/dataset/index.js +2 -0
- package/es/ts-types/dataset/index.js.map +1 -0
- package/es/ts-types/events.d.ts +363 -0
- package/es/ts-types/events.js +2 -0
- package/es/ts-types/events.js.map +1 -0
- package/es/ts-types/icon.d.ts +93 -0
- package/es/ts-types/icon.js +30 -0
- package/es/ts-types/icon.js.map +1 -0
- package/es/ts-types/index.d.ts +17 -0
- package/es/ts-types/index.js +34 -0
- package/es/ts-types/index.js.map +1 -0
- package/es/ts-types/list-table/define/basic-define.d.ts +50 -0
- package/es/ts-types/list-table/define/basic-define.js +2 -0
- package/es/ts-types/list-table/define/basic-define.js.map +1 -0
- package/es/ts-types/list-table/define/button-define.d.ts +9 -0
- package/es/ts-types/list-table/define/button-define.js +2 -0
- package/es/ts-types/list-table/define/button-define.js.map +1 -0
- package/es/ts-types/list-table/define/chart-define.d.ts +11 -0
- package/es/ts-types/list-table/define/chart-define.js +2 -0
- package/es/ts-types/list-table/define/chart-define.js.map +1 -0
- package/es/ts-types/list-table/define/checkbox-define.d.ts +15 -0
- package/es/ts-types/list-table/define/checkbox-define.js +2 -0
- package/es/ts-types/list-table/define/checkbox-define.js.map +1 -0
- package/es/ts-types/list-table/define/composite-define.d.ts +26 -0
- package/es/ts-types/list-table/define/composite-define.js +2 -0
- package/es/ts-types/list-table/define/composite-define.js.map +1 -0
- package/es/ts-types/list-table/define/image-define.d.ts +17 -0
- package/es/ts-types/list-table/define/image-define.js +2 -0
- package/es/ts-types/list-table/define/image-define.js.map +1 -0
- package/es/ts-types/list-table/define/index.d.ts +31 -0
- package/es/ts-types/list-table/define/index.js +2 -0
- package/es/ts-types/list-table/define/index.js.map +1 -0
- package/es/ts-types/list-table/define/link-define.d.ts +22 -0
- package/es/ts-types/list-table/define/link-define.js +2 -0
- package/es/ts-types/list-table/define/link-define.js.map +1 -0
- package/es/ts-types/list-table/define/multilinetext-define.d.ts +11 -0
- package/es/ts-types/list-table/define/multilinetext-define.js +2 -0
- package/es/ts-types/list-table/define/multilinetext-define.js.map +1 -0
- package/es/ts-types/list-table/define/progressbar-define.d.ts +11 -0
- package/es/ts-types/list-table/define/progressbar-define.js +2 -0
- package/es/ts-types/list-table/define/progressbar-define.js.map +1 -0
- package/es/ts-types/list-table/define/radio-define.d.ts +11 -0
- package/es/ts-types/list-table/define/radio-define.js +2 -0
- package/es/ts-types/list-table/define/radio-define.js.map +1 -0
- package/es/ts-types/list-table/define/sparkline-define.d.ts +10 -0
- package/es/ts-types/list-table/define/sparkline-define.js +2 -0
- package/es/ts-types/list-table/define/sparkline-define.js.map +1 -0
- package/es/ts-types/list-table/define/switch-define.d.ts +11 -0
- package/es/ts-types/list-table/define/switch-define.js +2 -0
- package/es/ts-types/list-table/define/switch-define.js.map +1 -0
- package/es/ts-types/list-table/index.d.ts +2 -0
- package/es/ts-types/list-table/index.js +4 -0
- package/es/ts-types/list-table/index.js.map +1 -0
- package/es/ts-types/list-table/layout-map/api.d.ts +126 -0
- package/es/ts-types/list-table/layout-map/api.js +2 -0
- package/es/ts-types/list-table/layout-map/api.js.map +1 -0
- package/es/ts-types/list-table/layout-map/index.d.ts +1 -0
- package/es/ts-types/list-table/layout-map/index.js +2 -0
- package/es/ts-types/list-table/layout-map/index.js.map +1 -0
- package/es/ts-types/menu.d.ts +74 -0
- package/es/ts-types/menu.js +2 -0
- package/es/ts-types/menu.js.map +1 -0
- package/es/ts-types/new-data-set.d.ts +158 -0
- package/es/ts-types/new-data-set.js +15 -0
- package/es/ts-types/new-data-set.js.map +1 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +10 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +13 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
- package/es/ts-types/pivot-table/corner.d.ts +37 -0
- package/es/ts-types/pivot-table/corner.js +2 -0
- package/es/ts-types/pivot-table/corner.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.d.ts +43 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.d.ts +10 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/index.d.ts +6 -0
- package/es/ts-types/pivot-table/dimension/index.js +2 -0
- package/es/ts-types/pivot-table/dimension/index.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.d.ts +13 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/index.d.ts +4 -0
- package/es/ts-types/pivot-table/index.js +8 -0
- package/es/ts-types/pivot-table/index.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.d.ts +51 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.d.ts +11 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/checkbox-indicator.d.ts +9 -0
- package/es/ts-types/pivot-table/indicator/checkbox-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/composite-indicator.d.ts +24 -0
- package/es/ts-types/pivot-table/indicator/composite-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +17 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/index.d.ts +12 -0
- package/es/ts-types/pivot-table/indicator/index.js +2 -0
- package/es/ts-types/pivot-table/indicator/index.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +22 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/title.d.ts +20 -0
- package/es/ts-types/pivot-table/title.js +2 -0
- package/es/ts-types/pivot-table/title.js.map +1 -0
- package/es/ts-types/sparkline.d.ts +37 -0
- package/es/ts-types/sparkline.js +2 -0
- package/es/ts-types/sparkline.js.map +1 -0
- package/es/ts-types/style-define.d.ts +72 -0
- package/es/ts-types/style-define.js +2 -0
- package/es/ts-types/style-define.js.map +1 -0
- package/es/ts-types/table-engine.d.ts +405 -0
- package/es/ts-types/table-engine.js +13 -0
- package/es/ts-types/table-engine.js.map +1 -0
- package/es/ts-types/theme.d.ts +164 -0
- package/es/ts-types/theme.js +2 -0
- package/es/ts-types/theme.js.map +1 -0
- package/es/ts-types/tooltip.d.ts +26 -0
- package/es/ts-types/tooltip.js +2 -0
- package/es/ts-types/tooltip.js.map +1 -0
- package/es/vrender.d.ts +8 -0
- package/es/vrender.js +27 -0
- package/es/vrender.js.map +1 -0
- package/package.json +132 -0
|
@@ -0,0 +1,1900 @@
|
|
|
1
|
+
import * as columnStyleContents from "../body-helper/style";
|
|
2
|
+
|
|
3
|
+
import { importStyle } from "./style";
|
|
4
|
+
|
|
5
|
+
import * as style from "../tools/style";
|
|
6
|
+
|
|
7
|
+
import { InteractionState, Placement } from "../ts-types";
|
|
8
|
+
|
|
9
|
+
import { event, style as utilStyle } from "../tools/helper";
|
|
10
|
+
|
|
11
|
+
import { TABLE_EVENT_TYPE } from "./TABLE_EVENT_TYPE";
|
|
12
|
+
|
|
13
|
+
import { EventHandler } from "../event/EventHandler";
|
|
14
|
+
|
|
15
|
+
import { EventTarget } from "../event/EventTarget";
|
|
16
|
+
|
|
17
|
+
import { NumberMap } from "../tools/NumberMap";
|
|
18
|
+
|
|
19
|
+
import { Rect } from "../tools/Rect";
|
|
20
|
+
|
|
21
|
+
import { throttle2 } from "../tools/util";
|
|
22
|
+
|
|
23
|
+
import themes from "../themes";
|
|
24
|
+
|
|
25
|
+
import { Env } from "../tools/env";
|
|
26
|
+
|
|
27
|
+
import { Scenegraph } from "../scenegraph/scenegraph";
|
|
28
|
+
|
|
29
|
+
import { StateManager } from "../state/state";
|
|
30
|
+
|
|
31
|
+
import { EventManager } from "../event/event";
|
|
32
|
+
|
|
33
|
+
import { BodyHelper } from "../body-helper/body-helper";
|
|
34
|
+
|
|
35
|
+
import { HeaderHelper } from "../header-helper/header-helper";
|
|
36
|
+
|
|
37
|
+
import { AABBBounds, isNumber, isBoolean, isValid, cloneDeep } from "@visactor/vutils";
|
|
38
|
+
|
|
39
|
+
import { measureTextBounds, textMeasure } from "../scenegraph/utils/text-measure";
|
|
40
|
+
|
|
41
|
+
import { getProp } from "../scenegraph/utils/get-prop";
|
|
42
|
+
|
|
43
|
+
import { IconCache } from "../plugins/icons";
|
|
44
|
+
|
|
45
|
+
import { _applyColWidthLimits, _getScrollableVisibleRect, _setDataSource, _toPxWidth, checkHasColumnAutoWidth, createRootElement, getStyleTheme, updateRootElementPadding } from "./tableHelper";
|
|
46
|
+
|
|
47
|
+
import { FocusInput } from "./FouseInput";
|
|
48
|
+
|
|
49
|
+
import { defaultPixelRatio } from "../tools/pixel-ratio";
|
|
50
|
+
|
|
51
|
+
import { clearChartRenderQueue, setBatchRenderChartCount } from "../scenegraph/graphic/contributions/chart-render-helper";
|
|
52
|
+
|
|
53
|
+
import { NumberRangeMap } from "../layout/row-height-map";
|
|
54
|
+
|
|
55
|
+
import { RowSeriesNumberHelper } from "./row-series-number-helper";
|
|
56
|
+
|
|
57
|
+
import { hideCellSelectBorder, restoreCellSelectBorder } from "../scenegraph/select/update-select-border";
|
|
58
|
+
|
|
59
|
+
import { ReactCustomLayout } from "../components/react/react-custom-layout";
|
|
60
|
+
|
|
61
|
+
import { hasAutoImageColumn } from "../layout/layout-helper";
|
|
62
|
+
|
|
63
|
+
import { Factory } from "./factory";
|
|
64
|
+
|
|
65
|
+
import { getCellAt, getCellAtRelativePosition, getColAt, getRowAt, getTargetColAt, getTargetColAtConsiderRightFrozen, getTargetRowAt, getTargetRowAtConsiderBottomFrozen } from "./utils/get-cell-position";
|
|
66
|
+
|
|
67
|
+
import { getCellStyle } from "./style-helper";
|
|
68
|
+
|
|
69
|
+
import { createReactContainer } from "../scenegraph/layout/frozen-react";
|
|
70
|
+
|
|
71
|
+
import { setIconColor } from "../icons";
|
|
72
|
+
|
|
73
|
+
import { TableAnimationManager } from "./animation";
|
|
74
|
+
|
|
75
|
+
import { checkCellInSelect } from "../state/common/check-in-select";
|
|
76
|
+
|
|
77
|
+
import { isCellDisableSelect } from "../state/select/is-cell-select-highlight";
|
|
78
|
+
|
|
79
|
+
import { getCustomMergeCellFunc } from "./utils/get-custom-merge-cell-func";
|
|
80
|
+
|
|
81
|
+
import { vglobal } from "./../vrender";
|
|
82
|
+
|
|
83
|
+
const {toBoxArray: toBoxArray} = utilStyle, {isTouchEvent: isTouchEvent} = event, rangeReg = /^\$(\d+)\$(\d+)$/;
|
|
84
|
+
|
|
85
|
+
importStyle();
|
|
86
|
+
|
|
87
|
+
export class BaseTable extends EventTarget {
|
|
88
|
+
static get EVENT_TYPE() {
|
|
89
|
+
return TABLE_EVENT_TYPE;
|
|
90
|
+
}
|
|
91
|
+
constructor(container, options = {}) {
|
|
92
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
93
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.17.5", this.id = `VTable${Date.now()}`,
|
|
94
|
+
this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
|
|
95
|
+
!container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
96
|
+
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
|
|
97
|
+
const {frozenColCount: frozenColCount = 0, unfreezeAllOnExceedsMaxWidth: unfreezeAllOnExceedsMaxWidth, frozenRowCount: frozenRowCount, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, widthAdaptiveMode: widthAdaptiveMode = "only-body", heightAdaptiveMode: heightAdaptiveMode = "only-body", keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", resize: resize, dragHeaderMode: dragHeaderMode, dragOrder: dragOrder, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, mode: mode, modeParams: modeParams, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight, clearDOM: clearDOM = !0} = options;
|
|
98
|
+
this.container = container, this.options = options, this._widthMode = widthMode,
|
|
99
|
+
this._heightMode = heightMode, this._widthAdaptiveMode = widthAdaptiveMode, this._heightAdaptiveMode = heightAdaptiveMode,
|
|
100
|
+
this._autoFillWidth = autoFillWidth, this._autoFillHeight = autoFillHeight, this.customRender = customRender,
|
|
101
|
+
this.padding = {
|
|
102
|
+
top: 0,
|
|
103
|
+
right: 0,
|
|
104
|
+
left: 0,
|
|
105
|
+
bottom: 0
|
|
106
|
+
}, padding && ("number" == typeof padding ? (this.padding.top = padding, this.padding.left = padding,
|
|
107
|
+
this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top),
|
|
108
|
+
padding.bottom && (this.padding.bottom = padding.bottom), padding.left && (this.padding.left = padding.left),
|
|
109
|
+
padding.right && (this.padding.right = padding.right))), (isValid(canvasHeight) || isValid(canvasWidth)) && (this.canvasSizeSeted = !0),
|
|
110
|
+
this.tableNoFrameWidth = 0, this.tableNoFrameHeight = 0, this.canvasWidth = isNumber(canvasWidth) ? canvasWidth : void 0,
|
|
111
|
+
this.canvasHeight = isNumber(canvasHeight) ? canvasHeight : void 0, this.columnWidthComputeMode = null !== (_b = options.columnWidthComputeMode) && void 0 !== _b ? _b : "normal";
|
|
112
|
+
const internalProps = this.internalProps = {};
|
|
113
|
+
void 0 !== showFrozenIcon && (this.showFrozenIcon = showFrozenIcon), "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showFrozenIcon = !1),
|
|
114
|
+
this.options.canvas ? ("node" !== Env.mode && (internalProps.element = this.options.canvas.parentElement,
|
|
115
|
+
internalProps.element.style.position = "relative"), internalProps.focusControl = new FocusInput(this, internalProps.element),
|
|
116
|
+
internalProps.canvas = this.options.canvas, internalProps.context = internalProps.canvas.getContext("2d")) : "node" !== Env.mode && (internalProps.element = createRootElement(this.padding),
|
|
117
|
+
internalProps.focusControl = new FocusInput(this, internalProps.element), internalProps.canvas = document.createElement("canvas"),
|
|
118
|
+
internalProps.element.appendChild(internalProps.canvas), internalProps.context = internalProps.canvas.getContext("2d"),
|
|
119
|
+
(null === (_c = options.customConfig) || void 0 === _c ? void 0 : _c.createReactContainer) && createReactContainer(this)),
|
|
120
|
+
internalProps.handler = new EventHandler, isNumber(this.options.resizeTime) && (internalProps.handler.resizeTime = this.options.resizeTime),
|
|
121
|
+
internalProps.pixelRatio = pixelRatio, internalProps.frozenColCount = frozenColCount,
|
|
122
|
+
internalProps.frozenRowCount = frozenRowCount, internalProps.unfreezeAllOnExceedsMaxWidth = null == unfreezeAllOnExceedsMaxWidth || unfreezeAllOnExceedsMaxWidth,
|
|
123
|
+
internalProps.defaultRowHeight = defaultRowHeight, internalProps.defaultHeaderRowHeight = null != defaultHeaderRowHeight ? defaultHeaderRowHeight : defaultRowHeight,
|
|
124
|
+
internalProps.defaultColWidth = defaultColWidth, internalProps.defaultHeaderColWidth = null != defaultHeaderColWidth ? defaultHeaderColWidth : defaultColWidth,
|
|
125
|
+
internalProps.keyboardOptions = keyboardOptions, internalProps.eventOptions = eventOptions,
|
|
126
|
+
internalProps.rowSeriesNumber = rowSeriesNumber, internalProps.columnResizeMode = null !== (_d = null == resize ? void 0 : resize.columnResizeMode) && void 0 !== _d ? _d : columnResizeMode,
|
|
127
|
+
internalProps.rowResizeMode = null !== (_e = null == resize ? void 0 : resize.rowResizeMode) && void 0 !== _e ? _e : rowResizeMode,
|
|
128
|
+
internalProps.dragHeaderMode = null !== (_g = null !== (_f = null == dragOrder ? void 0 : dragOrder.dragHeaderMode) && void 0 !== _f ? _f : dragHeaderMode) && void 0 !== _g ? _g : "none",
|
|
129
|
+
internalProps.renderChartAsync = renderChartAsync, setBatchRenderChartCount(renderChartAsyncBatchCount),
|
|
130
|
+
internalProps.overscrollBehavior = null != overscrollBehavior ? overscrollBehavior : "auto",
|
|
131
|
+
internalProps._rowHeightsMap = new NumberRangeMap(this), internalProps._rowRangeHeightsMap = new Map,
|
|
132
|
+
internalProps._colRangeWidthsMap = new Map, internalProps._widthResizedColMap = new Set,
|
|
133
|
+
internalProps._heightResizedRowMap = new Set, this.colWidthsMap = new NumberMap,
|
|
134
|
+
this.colContentWidthsMap = new NumberMap, this.colWidthsLimit = {};
|
|
135
|
+
const that = this;
|
|
136
|
+
if (internalProps.calcWidthContext = {
|
|
137
|
+
_: internalProps,
|
|
138
|
+
get full() {
|
|
139
|
+
var _a;
|
|
140
|
+
return "node" === Env.mode ? that.canvasWidth / (null != pixelRatio ? pixelRatio : 1) : this._.canvas.width / (null !== (_a = this._.context.pixelRatio) && void 0 !== _a ? _a : window.devicePixelRatio);
|
|
141
|
+
}
|
|
142
|
+
}, internalProps.cellTextOverflows = {}, internalProps.focusedTable = !1, internalProps.theme = themes.of(null !== (_h = options.theme) && void 0 !== _h ? _h : themes.DEFAULT),
|
|
143
|
+
internalProps.theme.isPivot = this.isPivotTable(), setIconColor(internalProps.theme.functionalIconsStyle),
|
|
144
|
+
container ? (clearDOM && (container.innerHTML = ""), container.appendChild(internalProps.element),
|
|
145
|
+
this._updateSize()) : this._updateSize(), internalProps.bodyHelper = new BodyHelper(this),
|
|
146
|
+
internalProps.headerHelper = new HeaderHelper(this), internalProps.rowSeriesNumberHelper = new RowSeriesNumberHelper(this),
|
|
147
|
+
internalProps.autoWrapText = options.autoWrapText, internalProps.enableLineBreak = options.enableLineBreak,
|
|
148
|
+
internalProps.allowFrozenColCount = null !== (_j = options.allowFrozenColCount) && void 0 !== _j ? _j : 0,
|
|
149
|
+
internalProps.limitMaxAutoWidth = null !== (_k = options.limitMaxAutoWidth) && void 0 !== _k ? _k : 450,
|
|
150
|
+
internalProps.limitMinWidth = null != limitMinWidth ? "number" == typeof limitMinWidth ? limitMinWidth : limitMinWidth ? 10 : 0 : 10,
|
|
151
|
+
internalProps.limitMinHeight = null != limitMinHeight ? "number" == typeof limitMinHeight ? limitMinHeight : limitMinHeight ? 10 : 0 : 10,
|
|
152
|
+
this.scenegraph = new Scenegraph(this), this.stateManager = new StateManager(this),
|
|
153
|
+
this.eventManager = new EventManager(this), this.animationManager = new TableAnimationManager(this),
|
|
154
|
+
options.legends) {
|
|
155
|
+
internalProps.legends = [];
|
|
156
|
+
const createLegend = Factory.getFunction("createLegend");
|
|
157
|
+
if (Array.isArray(options.legends)) {
|
|
158
|
+
for (let i = 0; i < options.legends.length; i++) internalProps.legends.push(createLegend(options.legends[i], this));
|
|
159
|
+
this.scenegraph.tableGroup.setAttributes({
|
|
160
|
+
x: this.tableX,
|
|
161
|
+
y: this.tableY
|
|
162
|
+
});
|
|
163
|
+
} else internalProps.legends.push(createLegend(options.legends, this)), this.scenegraph.tableGroup.setAttributes({
|
|
164
|
+
x: this.tableX,
|
|
165
|
+
y: this.tableY
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
if (internalProps.tooltip = Object.assign({
|
|
169
|
+
parentElement: this.getElement(),
|
|
170
|
+
renderMode: "html",
|
|
171
|
+
isShowOverflowTextTooltip: !1,
|
|
172
|
+
confine: !0,
|
|
173
|
+
position: Placement.bottom
|
|
174
|
+
}, options.tooltip), "html" === internalProps.tooltip.renderMode) {
|
|
175
|
+
const TooltipHandler = Factory.getComponent("tooltipHandler");
|
|
176
|
+
TooltipHandler && (internalProps.tooltipHandler = new TooltipHandler(this, internalProps.tooltip.confine));
|
|
177
|
+
}
|
|
178
|
+
if (internalProps.menu = Object.assign({
|
|
179
|
+
renderMode: "html"
|
|
180
|
+
}, options.menu), Array.isArray(null === (_l = options.menu) || void 0 === _l ? void 0 : _l.dropDownMenuHighlight) && this.setDropDownMenuHighlight(null === (_m = options.menu) || void 0 === _m ? void 0 : _m.dropDownMenuHighlight),
|
|
181
|
+
(Array.isArray(null === (_o = options.menu) || void 0 === _o ? void 0 : _o.defaultHeaderMenuItems) || "function" == typeof (null === (_p = options.menu) || void 0 === _p ? void 0 : _p.defaultHeaderMenuItems)) && (this.globalDropDownMenu = options.menu.defaultHeaderMenuItems),
|
|
182
|
+
"html" === internalProps.menu.renderMode) {
|
|
183
|
+
const MenuHandler = Factory.getComponent("menuHandler");
|
|
184
|
+
internalProps.menuHandler = new MenuHandler(this);
|
|
185
|
+
}
|
|
186
|
+
this.headerStyleCache = new Map, this.bodyStyleCache = new Map, this.bodyMergeTitleCache = new Map,
|
|
187
|
+
this.bodyBottomStyleCache = new Map, internalProps.stick = {
|
|
188
|
+
changedCells: new Map
|
|
189
|
+
}, internalProps.customMergeCell = getCustomMergeCellFunc(options.customMergeCell);
|
|
190
|
+
const CustomCellStylePlugin = Factory.getComponent("customCellStylePlugin");
|
|
191
|
+
CustomCellStylePlugin && (this.customCellStylePlugin = new CustomCellStylePlugin(this, null !== (_q = options.customCellStyle) && void 0 !== _q ? _q : [], null !== (_r = options.customCellStyleArrangement) && void 0 !== _r ? _r : [])),
|
|
192
|
+
this._adjustCanvasSizeByOption();
|
|
193
|
+
}
|
|
194
|
+
_adjustCanvasSizeByOption() {
|
|
195
|
+
"auto" !== this.options.canvasHeight && "auto" !== this.options.canvasWidth || setTimeout((() => {
|
|
196
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
197
|
+
let canvasWidth, canvasHeight;
|
|
198
|
+
if ("auto" === this.options.canvasHeight) {
|
|
199
|
+
let borderWidth = 0;
|
|
200
|
+
if (null === (_a = this.theme.frameStyle) || void 0 === _a ? void 0 : _a.innerBorder) {
|
|
201
|
+
borderWidth += null !== (_d = toBoxArray(null !== (_c = null === (_b = this.internalProps.theme.frameStyle) || void 0 === _b ? void 0 : _b.shadowBlur) && void 0 !== _c ? _c : [ 0 ])[1]) && void 0 !== _d ? _d : 0;
|
|
202
|
+
} else if (this.theme.frameStyle) {
|
|
203
|
+
const lineWidths = toBoxArray(null !== (_f = null === (_e = this.internalProps.theme.frameStyle) || void 0 === _e ? void 0 : _e.borderLineWidth) && void 0 !== _f ? _f : [ null ]), shadowWidths = toBoxArray(null !== (_h = null === (_g = this.internalProps.theme.frameStyle) || void 0 === _g ? void 0 : _g.shadowBlur) && void 0 !== _h ? _h : [ 0 ]);
|
|
204
|
+
borderWidth += (null !== (_j = lineWidths[0]) && void 0 !== _j ? _j : 0) + (null !== (_k = shadowWidths[0]) && void 0 !== _k ? _k : 0) + ((null !== (_l = lineWidths[2]) && void 0 !== _l ? _l : 0) + (null !== (_m = shadowWidths[2]) && void 0 !== _m ? _m : 0));
|
|
205
|
+
}
|
|
206
|
+
canvasHeight = Math.min(this.options.maxCanvasHeight ? this.options.maxCanvasHeight - borderWidth : 2e4, this.getAllRowsHeight()) + borderWidth;
|
|
207
|
+
} else canvasHeight = this.canvasHeight;
|
|
208
|
+
if ("auto" === this.options.canvasWidth) {
|
|
209
|
+
let borderWidth = 0;
|
|
210
|
+
if (null === (_o = this.theme.frameStyle) || void 0 === _o ? void 0 : _o.innerBorder) {
|
|
211
|
+
borderWidth += null !== (_r = toBoxArray(null !== (_q = null === (_p = this.internalProps.theme.frameStyle) || void 0 === _p ? void 0 : _p.shadowBlur) && void 0 !== _q ? _q : [ 0 ])[2]) && void 0 !== _r ? _r : 0;
|
|
212
|
+
} else if (this.theme.frameStyle) {
|
|
213
|
+
const lineWidths = toBoxArray(null !== (_t = null === (_s = this.internalProps.theme.frameStyle) || void 0 === _s ? void 0 : _s.borderLineWidth) && void 0 !== _t ? _t : [ null ]), shadowWidths = toBoxArray(null !== (_v = null === (_u = this.internalProps.theme.frameStyle) || void 0 === _u ? void 0 : _u.shadowBlur) && void 0 !== _v ? _v : [ 0 ]);
|
|
214
|
+
borderWidth += (null !== (_w = lineWidths[1]) && void 0 !== _w ? _w : 0) + (null !== (_x = shadowWidths[1]) && void 0 !== _x ? _x : 0) + ((null !== (_y = lineWidths[3]) && void 0 !== _y ? _y : 0) + (null !== (_z = shadowWidths[3]) && void 0 !== _z ? _z : 0));
|
|
215
|
+
}
|
|
216
|
+
canvasWidth = Math.min(this.options.maxCanvasWidth ? this.options.maxCanvasWidth - borderWidth : 2e4, this.getAllColsWidth()) + borderWidth;
|
|
217
|
+
} else canvasWidth = this.canvasWidth;
|
|
218
|
+
this.setCanvasSize(canvasWidth, canvasHeight);
|
|
219
|
+
}), 0);
|
|
220
|
+
}
|
|
221
|
+
getContainer() {
|
|
222
|
+
return this.container;
|
|
223
|
+
}
|
|
224
|
+
getElement() {
|
|
225
|
+
return this.internalProps.element;
|
|
226
|
+
}
|
|
227
|
+
get canvas() {
|
|
228
|
+
return this.internalProps.canvas;
|
|
229
|
+
}
|
|
230
|
+
setCanvasSize(canvasWidth, canvasHeight) {
|
|
231
|
+
this.canvasWidth = canvasWidth, this.canvasHeight = canvasHeight, this.options.canvasHeight = canvasHeight,
|
|
232
|
+
this.options.canvasWidth = canvasWidth, this.resize();
|
|
233
|
+
}
|
|
234
|
+
resize() {
|
|
235
|
+
var _a;
|
|
236
|
+
this._updateSize(), null === (_a = this.internalProps.legends) || void 0 === _a || _a.forEach((legend => {
|
|
237
|
+
null == legend || legend.resize();
|
|
238
|
+
})), this.internalProps.title && this.internalProps.title.resize(), this.internalProps.emptyTip && this.internalProps.emptyTip.resize(),
|
|
239
|
+
this.scenegraph.resize();
|
|
240
|
+
}
|
|
241
|
+
get rowCount() {
|
|
242
|
+
return this.internalProps.rowCount;
|
|
243
|
+
}
|
|
244
|
+
set rowCount(rowCount) {
|
|
245
|
+
this.internalProps.rowCount = rowCount;
|
|
246
|
+
}
|
|
247
|
+
get colCount() {
|
|
248
|
+
var _a;
|
|
249
|
+
return null !== (_a = this.internalProps.colCount) && void 0 !== _a ? _a : 0;
|
|
250
|
+
}
|
|
251
|
+
set colCount(colCount) {
|
|
252
|
+
this.internalProps.colCount = colCount;
|
|
253
|
+
}
|
|
254
|
+
get frozenColCount() {
|
|
255
|
+
var _a, _b, _c, _d, _e;
|
|
256
|
+
return null !== (_e = null !== (_c = null === (_b = null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.layoutMap) || void 0 === _b ? void 0 : _b.frozenColCount) && void 0 !== _c ? _c : null === (_d = this.internalProps) || void 0 === _d ? void 0 : _d.frozenColCount) && void 0 !== _e ? _e : 0;
|
|
257
|
+
}
|
|
258
|
+
set frozenColCount(frozenColCount) {
|
|
259
|
+
frozenColCount >= this.colCount && (frozenColCount = 0), this.internalProps.frozenColCount = frozenColCount,
|
|
260
|
+
this.options.frozenColCount = frozenColCount;
|
|
261
|
+
const maxFrozenWidth = this._getMaxFrozenWidth();
|
|
262
|
+
if (this.getColsWidth(0, frozenColCount - 1) > maxFrozenWidth) if (this.internalProps.unfreezeAllOnExceedsMaxWidth) this.internalProps.frozenColCount = 0; else {
|
|
263
|
+
const computedFrozenColCount = this._getComputedFrozenColCount(frozenColCount);
|
|
264
|
+
this.internalProps.frozenColCount = computedFrozenColCount;
|
|
265
|
+
}
|
|
266
|
+
this.stateManager.setFrozenCol(this.internalProps.frozenColCount);
|
|
267
|
+
}
|
|
268
|
+
setFrozenColCount(frozenColCount) {
|
|
269
|
+
frozenColCount >= this.colCount && (frozenColCount = 0), this.internalProps.frozenColCount = frozenColCount,
|
|
270
|
+
this.options.frozenColCount = frozenColCount;
|
|
271
|
+
const maxFrozenWidth = this._getMaxFrozenWidth();
|
|
272
|
+
if (this.getColsWidth(0, frozenColCount - 1) > maxFrozenWidth) if (this.internalProps.unfreezeAllOnExceedsMaxWidth) this.internalProps.frozenColCount = 0; else {
|
|
273
|
+
const computedFrozenColCount = this._getComputedFrozenColCount(frozenColCount);
|
|
274
|
+
this.internalProps.frozenColCount = computedFrozenColCount;
|
|
275
|
+
}
|
|
276
|
+
this.stateManager.setFrozenCol(this.internalProps.frozenColCount);
|
|
277
|
+
}
|
|
278
|
+
_setFrozenColCount(frozenColCount) {
|
|
279
|
+
frozenColCount >= this.colCount && (frozenColCount = 0), this.internalProps.frozenColCount = frozenColCount;
|
|
280
|
+
}
|
|
281
|
+
_resetFrozenColCount() {
|
|
282
|
+
this.options.frozenColCount && (this.tableNoFrameWidth - this.getColsWidth(0, this.options.frozenColCount - 1) <= 120 ? this._setFrozenColCount(0) : this.frozenColCount !== this.options.frozenColCount && this._setFrozenColCount(this.options.frozenColCount));
|
|
283
|
+
}
|
|
284
|
+
get frozenRowCount() {
|
|
285
|
+
var _a, _b, _c, _d, _e;
|
|
286
|
+
return null !== (_e = null !== (_c = null === (_b = null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.layoutMap) || void 0 === _b ? void 0 : _b.frozenRowCount) && void 0 !== _c ? _c : null === (_d = this.internalProps) || void 0 === _d ? void 0 : _d.frozenRowCount) && void 0 !== _e ? _e : 0;
|
|
287
|
+
}
|
|
288
|
+
set frozenRowCount(frozenRowCount) {
|
|
289
|
+
this.internalProps.frozenRowCount = frozenRowCount, this.stateManager.setFrozenRow(this.internalProps.frozenRowCount);
|
|
290
|
+
}
|
|
291
|
+
get rightFrozenColCount() {
|
|
292
|
+
var _a, _b, _c, _d, _e;
|
|
293
|
+
return null !== (_e = null !== (_c = null === (_b = null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.layoutMap) || void 0 === _b ? void 0 : _b.rightFrozenColCount) && void 0 !== _c ? _c : null === (_d = this.internalProps) || void 0 === _d ? void 0 : _d.rightFrozenColCount) && void 0 !== _e ? _e : 0;
|
|
294
|
+
}
|
|
295
|
+
set rightFrozenColCount(rightFrozenColCount) {
|
|
296
|
+
this.scenegraph.dealWidthRightFrozen(rightFrozenColCount);
|
|
297
|
+
}
|
|
298
|
+
get bottomFrozenRowCount() {
|
|
299
|
+
var _a, _b, _c, _d, _e;
|
|
300
|
+
return null !== (_e = null !== (_c = null === (_b = null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.layoutMap) || void 0 === _b ? void 0 : _b.bottomFrozenRowCount) && void 0 !== _c ? _c : null === (_d = this.internalProps) || void 0 === _d ? void 0 : _d.bottomFrozenRowCount) && void 0 !== _e ? _e : 0;
|
|
301
|
+
}
|
|
302
|
+
set bottomFrozenRowCount(bottomFrozenRowCount) {
|
|
303
|
+
this.scenegraph.dealWidthBottomFrozen(bottomFrozenRowCount);
|
|
304
|
+
}
|
|
305
|
+
get defaultRowHeight() {
|
|
306
|
+
return isNumber(this.internalProps.defaultRowHeight) ? this.internalProps.defaultRowHeight : 40;
|
|
307
|
+
}
|
|
308
|
+
set defaultRowHeight(defaultRowHeight) {
|
|
309
|
+
this.internalProps.defaultRowHeight = defaultRowHeight, this.options.defaultRowHeight = defaultRowHeight;
|
|
310
|
+
}
|
|
311
|
+
get defaultHeaderRowHeight() {
|
|
312
|
+
return this.internalProps.defaultHeaderRowHeight;
|
|
313
|
+
}
|
|
314
|
+
set defaultHeaderRowHeight(defaultHeaderRowHeight) {
|
|
315
|
+
this.internalProps.defaultHeaderRowHeight = defaultHeaderRowHeight, this.options.defaultHeaderRowHeight = defaultHeaderRowHeight;
|
|
316
|
+
}
|
|
317
|
+
get defaultColWidth() {
|
|
318
|
+
return this.internalProps.defaultColWidth;
|
|
319
|
+
}
|
|
320
|
+
set defaultColWidth(defaultColWidth) {
|
|
321
|
+
this.internalProps.defaultColWidth = defaultColWidth, this.options.defaultColWidth = defaultColWidth;
|
|
322
|
+
}
|
|
323
|
+
get defaultHeaderColWidth() {
|
|
324
|
+
return this.internalProps.defaultHeaderColWidth;
|
|
325
|
+
}
|
|
326
|
+
set defaultHeaderColWidth(defaultHeaderColWidth) {
|
|
327
|
+
this.internalProps.defaultHeaderColWidth = defaultHeaderColWidth, this.options.defaultHeaderColWidth = defaultHeaderColWidth;
|
|
328
|
+
}
|
|
329
|
+
get colWidthsMap() {
|
|
330
|
+
return this.internalProps._colWidthsMap;
|
|
331
|
+
}
|
|
332
|
+
set colWidthsMap(colWidthsMap) {
|
|
333
|
+
this.internalProps._colWidthsMap = colWidthsMap;
|
|
334
|
+
}
|
|
335
|
+
get colContentWidthsMap() {
|
|
336
|
+
return this.internalProps._colContentWidthsMap;
|
|
337
|
+
}
|
|
338
|
+
set colContentWidthsMap(colContentWidthsMap) {
|
|
339
|
+
this.internalProps._colContentWidthsMap = colContentWidthsMap;
|
|
340
|
+
}
|
|
341
|
+
get _colRangeWidthsMap() {
|
|
342
|
+
return this.internalProps._colRangeWidthsMap;
|
|
343
|
+
}
|
|
344
|
+
set _colRangeWidthsMap(_colRangeWidthsMap) {
|
|
345
|
+
this.internalProps._colRangeWidthsMap = _colRangeWidthsMap;
|
|
346
|
+
}
|
|
347
|
+
get _rowRangeHeightsMap() {
|
|
348
|
+
return this.internalProps._rowRangeHeightsMap;
|
|
349
|
+
}
|
|
350
|
+
set _rowRangeHeightsMap(_rowRangeHeightsMap) {
|
|
351
|
+
this.internalProps._rowRangeHeightsMap = _rowRangeHeightsMap;
|
|
352
|
+
}
|
|
353
|
+
get rowHeightsMap() {
|
|
354
|
+
return this.internalProps._rowHeightsMap;
|
|
355
|
+
}
|
|
356
|
+
set rowHeightsMap(rowHeightsMap) {
|
|
357
|
+
this.internalProps._rowHeightsMap = rowHeightsMap;
|
|
358
|
+
}
|
|
359
|
+
get colWidthsLimit() {
|
|
360
|
+
return this.internalProps._colWidthsLimit;
|
|
361
|
+
}
|
|
362
|
+
set colWidthsLimit(colWidthsLimit) {
|
|
363
|
+
this.internalProps._colWidthsLimit = colWidthsLimit;
|
|
364
|
+
}
|
|
365
|
+
get keyboardOptions() {
|
|
366
|
+
var _a;
|
|
367
|
+
return null !== (_a = this.internalProps.keyboardOptions) && void 0 !== _a ? _a : null;
|
|
368
|
+
}
|
|
369
|
+
set keyboardOptions(keyboardOptions) {
|
|
370
|
+
this.internalProps.keyboardOptions = null != keyboardOptions ? keyboardOptions : void 0;
|
|
371
|
+
}
|
|
372
|
+
get eventOptions() {
|
|
373
|
+
var _a;
|
|
374
|
+
return null !== (_a = this.internalProps.eventOptions) && void 0 !== _a ? _a : null;
|
|
375
|
+
}
|
|
376
|
+
set eventOptions(eventOptions) {
|
|
377
|
+
this.internalProps.eventOptions = null != eventOptions ? eventOptions : void 0;
|
|
378
|
+
}
|
|
379
|
+
get widthMode() {
|
|
380
|
+
return this._widthMode;
|
|
381
|
+
}
|
|
382
|
+
set widthMode(widthMode) {
|
|
383
|
+
widthMode !== this._widthMode && (this._widthMode = widthMode, this.options.widthMode = widthMode);
|
|
384
|
+
}
|
|
385
|
+
get heightMode() {
|
|
386
|
+
return this._heightMode;
|
|
387
|
+
}
|
|
388
|
+
set heightMode(heightMode) {
|
|
389
|
+
heightMode !== this._heightMode && (this._heightMode = heightMode, this.options.heightMode = heightMode);
|
|
390
|
+
}
|
|
391
|
+
get autoFillWidth() {
|
|
392
|
+
return this._autoFillWidth;
|
|
393
|
+
}
|
|
394
|
+
set autoFillWidth(autoFillWidth) {
|
|
395
|
+
autoFillWidth !== this._autoFillWidth && (this._autoFillWidth = autoFillWidth);
|
|
396
|
+
}
|
|
397
|
+
get autoFillHeight() {
|
|
398
|
+
return this._autoFillHeight;
|
|
399
|
+
}
|
|
400
|
+
set autoFillHeight(autoFillHeight) {
|
|
401
|
+
autoFillHeight !== this._autoFillHeight && (this._autoFillHeight = autoFillHeight);
|
|
402
|
+
}
|
|
403
|
+
get widthAdaptiveMode() {
|
|
404
|
+
return this._widthAdaptiveMode;
|
|
405
|
+
}
|
|
406
|
+
set widthAdaptiveMode(widthAdaptiveMode) {
|
|
407
|
+
widthAdaptiveMode !== this._widthAdaptiveMode && (this._widthAdaptiveMode = widthAdaptiveMode);
|
|
408
|
+
}
|
|
409
|
+
get heightAdaptiveMode() {
|
|
410
|
+
return this._heightAdaptiveMode;
|
|
411
|
+
}
|
|
412
|
+
set heightAdaptiveMode(heightAdaptiveMode) {
|
|
413
|
+
heightAdaptiveMode !== this._heightAdaptiveMode && (this._heightAdaptiveMode = heightAdaptiveMode);
|
|
414
|
+
}
|
|
415
|
+
_colWidthDefineToPxWidth(width) {
|
|
416
|
+
return "auto" === width ? 0 : _toPxWidth(this, width);
|
|
417
|
+
}
|
|
418
|
+
_getMaxFrozenWidth() {
|
|
419
|
+
var _a;
|
|
420
|
+
const maxFrozenWidth = null !== (_a = this.options.maxFrozenWidth) && void 0 !== _a ? _a : "80%";
|
|
421
|
+
return _toPxWidth(this, maxFrozenWidth);
|
|
422
|
+
}
|
|
423
|
+
_getComputedFrozenColCount(frozenColCount) {
|
|
424
|
+
const maxFrozenWidth = this._getMaxFrozenWidth();
|
|
425
|
+
let computedfrozenColCount = frozenColCount;
|
|
426
|
+
for (;this.getColsWidth(0, computedfrozenColCount - 1) > maxFrozenWidth && (computedfrozenColCount--,
|
|
427
|
+
!(computedfrozenColCount <= 0)); ) ;
|
|
428
|
+
return computedfrozenColCount;
|
|
429
|
+
}
|
|
430
|
+
_getColWidthLimits(col) {
|
|
431
|
+
const limit = this.colWidthsLimit[col];
|
|
432
|
+
if (!limit) return null;
|
|
433
|
+
const result = {};
|
|
434
|
+
return limit.min && (result.min = _toPxWidth(this, limit.min), result.minDef = limit.min),
|
|
435
|
+
limit.max && (result.max = _toPxWidth(this, limit.max), result.maxDef = limit.max),
|
|
436
|
+
result;
|
|
437
|
+
}
|
|
438
|
+
_adjustColWidth(col, orgWidth) {
|
|
439
|
+
const limits = this._getColWidthLimits(col);
|
|
440
|
+
return Math.max(_applyColWidthLimits(limits, orgWidth), 0);
|
|
441
|
+
}
|
|
442
|
+
get pixelRatio() {
|
|
443
|
+
return this.internalProps.pixelRatio;
|
|
444
|
+
}
|
|
445
|
+
setPixelRatio(pixelRatio) {
|
|
446
|
+
var _a;
|
|
447
|
+
if (pixelRatio !== (null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.pixelRatio)) {
|
|
448
|
+
this.internalProps.pixelRatio = pixelRatio;
|
|
449
|
+
const canvasWidth = this.canvasWidth;
|
|
450
|
+
this.internalProps.calcWidthContext = {
|
|
451
|
+
_: this.internalProps,
|
|
452
|
+
get full() {
|
|
453
|
+
var _a;
|
|
454
|
+
return "node" === Env.mode ? canvasWidth / (null != pixelRatio ? pixelRatio : 1) : this._.canvas.width / (null !== (_a = this._.context.pixelRatio) && void 0 !== _a ? _a : window.devicePixelRatio);
|
|
455
|
+
}
|
|
456
|
+
}, this.scenegraph.setPixelRatio(pixelRatio);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
_updateSize() {
|
|
460
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
461
|
+
const {padding: padding} = this;
|
|
462
|
+
let widthP = 0, heightP = 0;
|
|
463
|
+
if (this.tableX = 0, this.tableY = 0, this.options.canvas && this.options.viewBox) widthP = this.options.viewBox.x2 - this.options.viewBox.x1,
|
|
464
|
+
heightP = this.options.viewBox.y2 - this.options.viewBox.y1, (null === (_a = null == this ? void 0 : this.scenegraph) || void 0 === _a ? void 0 : _a.stage) && (this.options.viewBox ? this.scenegraph.stage.setViewBox(this.options.viewBox, !1) : this.scenegraph.stage.resize(widthP, heightP)); else if ("browser" === Env.mode) {
|
|
465
|
+
const element = this.getElement();
|
|
466
|
+
let widthWithoutPadding = 0, heightWithoutPadding = 0;
|
|
467
|
+
const isDefWidth = isValid(this.canvasWidth), isDefHeight = isValid(this.canvasHeight);
|
|
468
|
+
this.canvasSizeSeted && (isDefWidth && (widthWithoutPadding = this.canvasWidth),
|
|
469
|
+
isDefHeight && (heightWithoutPadding = this.canvasHeight));
|
|
470
|
+
if ((!isDefWidth || !isDefHeight) && element.parentElement) {
|
|
471
|
+
const computedStyle = element.parentElement.style || window.getComputedStyle(element.parentElement);
|
|
472
|
+
isDefWidth || (widthWithoutPadding = element.parentElement.offsetWidth - (parseInt(computedStyle.paddingLeft, 10) || 0) - (parseInt(computedStyle.paddingRight, 10) || 0)),
|
|
473
|
+
isDefHeight || (heightWithoutPadding = element.parentElement.offsetHeight - parseInt(computedStyle.paddingTop || "0px", 10) - parseInt(computedStyle.paddingBottom || "0px", 20)),
|
|
474
|
+
widthWithoutPadding = (null != widthWithoutPadding ? widthWithoutPadding : 1) - (this.options.tableSizeAntiJitter ? 1 : 0),
|
|
475
|
+
heightWithoutPadding = (null != heightWithoutPadding ? heightWithoutPadding : 1) - (this.options.tableSizeAntiJitter ? 1 : 0);
|
|
476
|
+
}
|
|
477
|
+
element.style.width = widthWithoutPadding && widthWithoutPadding - padding.left - padding.right + "px" || "0px",
|
|
478
|
+
element.style.height = heightWithoutPadding && heightWithoutPadding - padding.top - padding.bottom + "px" || "0px";
|
|
479
|
+
const {canvas: canvas} = this.internalProps;
|
|
480
|
+
widthP = (null !== (_c = null === (_b = canvas.parentElement) || void 0 === _b ? void 0 : _b.offsetWidth) && void 0 !== _c ? _c : 1) - (this.options.tableSizeAntiJitter ? 1 : 0),
|
|
481
|
+
heightP = (null !== (_e = null === (_d = canvas.parentElement) || void 0 === _d ? void 0 : _d.offsetHeight) && void 0 !== _e ? _e : 1) - (this.options.tableSizeAntiJitter ? 1 : 0),
|
|
482
|
+
(null === (_f = null == this ? void 0 : this.scenegraph) || void 0 === _f ? void 0 : _f.stage) ? (null === (_g = this.options) || void 0 === _g ? void 0 : _g.viewBox) && !(null === (_h = this.options) || void 0 === _h ? void 0 : _h.canvas) && this.scenegraph.stage.resize(widthP, heightP) : (canvas.style.width = "",
|
|
483
|
+
canvas.style.height = "", canvas.width = widthP, canvas.height = heightP, canvas.style.width = `${widthP}px`,
|
|
484
|
+
canvas.style.height = `${heightP}px`), (null === (_j = this.options) || void 0 === _j ? void 0 : _j.viewBox) && (widthP = this.options.viewBox.x2 - this.options.viewBox.x1,
|
|
485
|
+
heightP = this.options.viewBox.y2 - this.options.viewBox.y1), (null === (_k = null == this ? void 0 : this.scenegraph) || void 0 === _k ? void 0 : _k.stage) && (this.options.viewBox ? this.scenegraph.stage.setViewBox(this.options.viewBox, !1) : this.scenegraph.stage.resize(widthP, heightP));
|
|
486
|
+
} else "node" === Env.mode && (widthP = this.canvasWidth - 1, heightP = this.canvasHeight - 1);
|
|
487
|
+
const width = Math.floor(widthP - style.getVerticalScrollBarSize(this.getTheme().scrollStyle)), height = Math.floor(heightP - style.getHorizontalScrollBarSize(this.getTheme().scrollStyle));
|
|
488
|
+
if (null === (_l = this.internalProps.theme) || void 0 === _l ? void 0 : _l.frameStyle) {
|
|
489
|
+
const lineWidths = toBoxArray(null !== (_o = null === (_m = this.internalProps.theme.frameStyle) || void 0 === _m ? void 0 : _m.borderLineWidth) && void 0 !== _o ? _o : [ null ]), shadowWidths = toBoxArray(null !== (_q = null === (_p = this.internalProps.theme.frameStyle) || void 0 === _p ? void 0 : _p.shadowBlur) && void 0 !== _q ? _q : [ 0 ]);
|
|
490
|
+
(null === (_r = this.theme.frameStyle) || void 0 === _r ? void 0 : _r.innerBorder) ? (this.tableX = 0,
|
|
491
|
+
this.tableY = 0, this.tableNoFrameWidth = width - (null !== (_s = shadowWidths[1]) && void 0 !== _s ? _s : 0),
|
|
492
|
+
this.tableNoFrameHeight = height - (null !== (_t = shadowWidths[2]) && void 0 !== _t ? _t : 0)) : (this.tableX = (null !== (_u = lineWidths[3]) && void 0 !== _u ? _u : 0) + (null !== (_v = shadowWidths[3]) && void 0 !== _v ? _v : 0),
|
|
493
|
+
this.tableY = (null !== (_w = lineWidths[0]) && void 0 !== _w ? _w : 0) + (null !== (_x = shadowWidths[0]) && void 0 !== _x ? _x : 0),
|
|
494
|
+
this.tableNoFrameWidth = width - ((null !== (_y = lineWidths[1]) && void 0 !== _y ? _y : 0) + (null !== (_z = shadowWidths[1]) && void 0 !== _z ? _z : 0)) - ((null !== (_0 = lineWidths[3]) && void 0 !== _0 ? _0 : 0) + (null !== (_1 = shadowWidths[3]) && void 0 !== _1 ? _1 : 0)),
|
|
495
|
+
this.tableNoFrameHeight = height - ((null !== (_2 = lineWidths[0]) && void 0 !== _2 ? _2 : 0) + (null !== (_3 = shadowWidths[0]) && void 0 !== _3 ? _3 : 0)) - ((null !== (_4 = lineWidths[2]) && void 0 !== _4 ? _4 : 0) + (null !== (_5 = shadowWidths[2]) && void 0 !== _5 ? _5 : 0)));
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
updateViewBox(newViewBox) {
|
|
499
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
500
|
+
const oldWidth = (null !== (_c = null === (_b = null === (_a = this.options) || void 0 === _a ? void 0 : _a.viewBox) || void 0 === _b ? void 0 : _b.x2) && void 0 !== _c ? _c : 0) - (null !== (_f = null === (_e = null === (_d = this.options) || void 0 === _d ? void 0 : _d.viewBox) || void 0 === _e ? void 0 : _e.x1) && void 0 !== _f ? _f : 0), oldHeight = (null !== (_j = null === (_h = null === (_g = this.options) || void 0 === _g ? void 0 : _g.viewBox) || void 0 === _h ? void 0 : _h.y2) && void 0 !== _j ? _j : 0) - (null !== (_m = null === (_l = null === (_k = this.options) || void 0 === _k ? void 0 : _k.viewBox) || void 0 === _l ? void 0 : _l.y1) && void 0 !== _m ? _m : 0), newWidth = newViewBox.x2 - newViewBox.x1, newHeight = newViewBox.y2 - newViewBox.y1;
|
|
501
|
+
this.options.viewBox = newViewBox, oldWidth !== newWidth || oldHeight !== newHeight ? this.resize() : this.scenegraph.stage.setViewBox(this.options.viewBox, !0);
|
|
502
|
+
}
|
|
503
|
+
setViewBoxTransform(a, b, c, d, e, f) {
|
|
504
|
+
this.internalProps.modifiedViewBoxTransform = !0, this.scenegraph.stage.window.setViewBoxTransform(a, b, c, d, e, f);
|
|
505
|
+
}
|
|
506
|
+
get rowHierarchyType() {
|
|
507
|
+
return this.dataSource.rowHierarchyType;
|
|
508
|
+
}
|
|
509
|
+
getColsWidth(startCol, endCol) {
|
|
510
|
+
var _a;
|
|
511
|
+
if (startCol > endCol) return 0;
|
|
512
|
+
startCol = Math.max(startCol, 0), endCol = Math.min(endCol, (null !== (_a = this.colCount) && void 0 !== _a ? _a : 1 / 0) - 1);
|
|
513
|
+
const cachedColWidth = this._colRangeWidthsMap.get(`$${startCol}$${endCol}`);
|
|
514
|
+
if (null != cachedColWidth) return cachedColWidth;
|
|
515
|
+
const cachedLowerColWidth = this._colRangeWidthsMap.get(`$${startCol}$${endCol - 1}`);
|
|
516
|
+
if (null != cachedLowerColWidth) {
|
|
517
|
+
const addWidth = cachedLowerColWidth + this.getColWidth(endCol);
|
|
518
|
+
return startCol >= 0 && endCol >= 0 && !Number.isNaN(addWidth) && this._colRangeWidthsMap.set(`$${startCol}$${endCol}`, Math.round(addWidth)),
|
|
519
|
+
Math.round(addWidth);
|
|
520
|
+
}
|
|
521
|
+
let w = 0;
|
|
522
|
+
for (let col = startCol; col <= endCol; col++) w += this.getColWidth(col);
|
|
523
|
+
return startCol >= 0 && endCol >= 0 && this._colRangeWidthsMap.set(`$${startCol}$${endCol}`, Math.round(w)),
|
|
524
|
+
Math.round(w);
|
|
525
|
+
}
|
|
526
|
+
getRowHeight(row) {
|
|
527
|
+
var _a;
|
|
528
|
+
if (isValid(this.rowHeightsMap.get(row))) {
|
|
529
|
+
if (null === (_a = this.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) {
|
|
530
|
+
const height = this.rowHeightsMap.get(row);
|
|
531
|
+
let heightRange;
|
|
532
|
+
return heightRange = row < this.frozenRowCount ? this.rowHeightsMap.getSumInRange(0, row) : row >= this.rowCount - this.bottomFrozenRowCount ? this.rowHeightsMap.getSumInRange(row, this.rowCount - 1) : this.rowHeightsMap.getSumInRange(this.frozenRowCount, row),
|
|
533
|
+
heightRange = Number(heightRange.toFixed(2)), Number.isInteger(heightRange) ? Math.ceil(height) : Math.floor(height);
|
|
534
|
+
}
|
|
535
|
+
return this.rowHeightsMap.get(row);
|
|
536
|
+
}
|
|
537
|
+
const defaultHeight = this.getDefaultRowHeight(row);
|
|
538
|
+
return isNumber(defaultHeight) ? defaultHeight : this.defaultRowHeight;
|
|
539
|
+
}
|
|
540
|
+
getDefaultColumnWidth(col) {
|
|
541
|
+
var _a, _b;
|
|
542
|
+
return this.isRowHeader(col, 0) || this.isCornerHeader(col, 0) ? Array.isArray(this.defaultHeaderColWidth) ? null !== (_a = this.defaultHeaderColWidth[col]) && void 0 !== _a ? _a : this.defaultColWidth : this.defaultHeaderColWidth : this.isRightFrozenColumn(col, this.columnHeaderLevelCount) && this.isPivotTable() ? Array.isArray(this.defaultHeaderColWidth) ? null !== (_b = this.defaultHeaderColWidth[this.rowHeaderLevelCount - this.rightFrozenColCount]) && void 0 !== _b ? _b : this.defaultColWidth : this.defaultHeaderColWidth : this.defaultColWidth;
|
|
543
|
+
}
|
|
544
|
+
getDefaultRowHeight(row) {
|
|
545
|
+
var _a, _b;
|
|
546
|
+
return this.isColumnHeader(0, row) || this.isCornerHeader(0, row) || this.isSeriesNumberInHeader(0, row) ? Array.isArray(this.defaultHeaderRowHeight) ? null !== (_a = this.defaultHeaderRowHeight[row]) && void 0 !== _a ? _a : this.internalProps.defaultRowHeight : this.defaultHeaderRowHeight : this.isBottomFrozenRow(row) ? Array.isArray(this.defaultHeaderRowHeight) ? null !== (_b = this.defaultHeaderRowHeight[this.columnHeaderLevelCount > 0 ? this.columnHeaderLevelCount - this.bottomFrozenRowCount : 0]) && void 0 !== _b ? _b : this.internalProps.defaultRowHeight : this.defaultHeaderRowHeight : this.internalProps.defaultRowHeight;
|
|
547
|
+
}
|
|
548
|
+
_setRowHeight(row, height, clearCache) {
|
|
549
|
+
var _a;
|
|
550
|
+
this.rowHeightsMap.put(row, (null === (_a = this.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) ? height : Math.round(height)),
|
|
551
|
+
clearCache && this._clearRowRangeHeightsMap(row);
|
|
552
|
+
}
|
|
553
|
+
setRowHeight(row, height) {
|
|
554
|
+
this.scenegraph.setRowHeight(row, height), this.scenegraph.updateChartSizeForResizeRowHeight(row),
|
|
555
|
+
this.internalProps._heightResizedRowMap.add(row);
|
|
556
|
+
}
|
|
557
|
+
getRowsHeight(startRow, endRow) {
|
|
558
|
+
var _a, _b;
|
|
559
|
+
if (startRow > endRow || 0 === this.rowCount) return 0;
|
|
560
|
+
startRow = Math.max(startRow, 0), endRow = Math.min(endRow, (null !== (_a = this.rowCount) && void 0 !== _a ? _a : 1 / 0) - 1);
|
|
561
|
+
let h = 0;
|
|
562
|
+
const isDefaultRowHeightIsAuto = "auto" === this.options.defaultRowHeight;
|
|
563
|
+
if ("standard" !== this.heightMode || this.options.customComputeRowHeight || this.autoFillHeight || !this.internalProps.layoutMap || this.hasAutoImageColumn() || isDefaultRowHeightIsAuto || 0 !== this.internalProps._heightResizedRowMap.size) {
|
|
564
|
+
if (null === (_b = this.options.customConfig) || void 0 === _b ? void 0 : _b._disableColumnAndRowSizeRound) {
|
|
565
|
+
const tempH = this.rowHeightsMap.getSumInRange(startRow, endRow);
|
|
566
|
+
let heightRange;
|
|
567
|
+
return heightRange = endRow < this.frozenRowCount ? this.rowHeightsMap.getSumInRange(0, endRow) : endRow >= this.rowCount - this.bottomFrozenRowCount ? this.rowHeightsMap.getSumInRange(endRow, this.rowCount - 1) : this.rowHeightsMap.getSumInRange(this.frozenRowCount, endRow),
|
|
568
|
+
heightRange = Number(heightRange.toFixed(2)), Number.isInteger(heightRange) ? Math.ceil(tempH) : Math.floor(tempH);
|
|
569
|
+
}
|
|
570
|
+
h = this.rowHeightsMap.getSumInRange(startRow, endRow);
|
|
571
|
+
} else {
|
|
572
|
+
for (let i = startRow; i < Math.min(endRow + 1, this.columnHeaderLevelCount); i++) h += this.getRowHeight(i);
|
|
573
|
+
endRow >= this.columnHeaderLevelCount && (h += this.defaultRowHeight * (Math.min(endRow, this.rowCount - this.bottomFrozenRowCount - 1) - Math.max(this.columnHeaderLevelCount, startRow) + 1));
|
|
574
|
+
for (let i = this.rowCount - this.bottomFrozenRowCount; i < endRow + 1; i++) h += this.getRowHeight(i);
|
|
575
|
+
}
|
|
576
|
+
return Math.round(h);
|
|
577
|
+
}
|
|
578
|
+
getColWidthDefined(col) {
|
|
579
|
+
var _a;
|
|
580
|
+
const {layoutMap: layoutMap} = this.internalProps;
|
|
581
|
+
if ("autoWidth" === this.widthMode) return "auto";
|
|
582
|
+
const {width: width} = null !== (_a = null == layoutMap ? void 0 : layoutMap.getColumnWidthDefined(col)) && void 0 !== _a ? _a : {};
|
|
583
|
+
return "number" == typeof width && width <= 0 ? 0 : width || this.getDefaultColumnWidth(col);
|
|
584
|
+
}
|
|
585
|
+
getColWidthDefinedNumber(col) {
|
|
586
|
+
const width = this.getColWidthDefined(col);
|
|
587
|
+
return this._adjustColWidth(col, this._colWidthDefineToPxWidth(width));
|
|
588
|
+
}
|
|
589
|
+
isAutoRowHeight(row) {
|
|
590
|
+
return "autoHeight" === this.heightMode || (!!this.options.customComputeRowHeight || (row >= 0 && row < this.columnHeaderLevelCount ? "auto" === this.getDefaultRowHeight(row) : "auto" === this.internalProps.defaultRowHeight));
|
|
591
|
+
}
|
|
592
|
+
getColWidth(col) {
|
|
593
|
+
var _a;
|
|
594
|
+
const width = null !== (_a = this.colWidthsMap.get(col)) && void 0 !== _a ? _a : this.getDefaultColumnWidth(col);
|
|
595
|
+
return "adaptive" === this.widthMode && "number" == typeof width || this.transpose && "number" == typeof width ? this._colWidthDefineToPxWidth(width) : this._adjustColWidth(col, this._colWidthDefineToPxWidth(width));
|
|
596
|
+
}
|
|
597
|
+
_setColWidth(col, width, clearCache, skipCheckFrozen) {
|
|
598
|
+
this.colWidthsMap.put(col, "number" == typeof width ? Math.round(width) : width),
|
|
599
|
+
clearCache && this._clearColRangeWidthsMap(col), skipCheckFrozen || this.stateManager.checkFrozen();
|
|
600
|
+
}
|
|
601
|
+
setColWidth(col, width) {
|
|
602
|
+
this.scenegraph.setColWidth(col, width), this.scenegraph.updateChartSizeForResizeColWidth(col),
|
|
603
|
+
this.internalProps._widthResizedColMap.add(col);
|
|
604
|
+
}
|
|
605
|
+
_clearColRangeWidthsMap(col) {
|
|
606
|
+
if ("number" != typeof col) this._colRangeWidthsMap.clear(); else {
|
|
607
|
+
const keys = this._colRangeWidthsMap.keys();
|
|
608
|
+
for (const key of keys) {
|
|
609
|
+
const reg = rangeReg.exec(key);
|
|
610
|
+
if (reg) {
|
|
611
|
+
const start = Number(reg[1]), end = Number(reg[2]);
|
|
612
|
+
col >= start && col <= end && this._colRangeWidthsMap.delete(key);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
_clearRowRangeHeightsMap(row) {
|
|
618
|
+
this.rowHeightsMap.clearRange();
|
|
619
|
+
}
|
|
620
|
+
_getColContentWidth(col) {
|
|
621
|
+
return Number(this.colContentWidthsMap.get(col));
|
|
622
|
+
}
|
|
623
|
+
_setColContentWidth(col, width) {
|
|
624
|
+
this.colContentWidthsMap.put(col, width);
|
|
625
|
+
}
|
|
626
|
+
getAllRowsHeight() {
|
|
627
|
+
if (this.internalProps.rowCount <= 0) return 0;
|
|
628
|
+
return this.getRowsHeight(0, this.internalProps.rowCount - 1);
|
|
629
|
+
}
|
|
630
|
+
getAllColsWidth() {
|
|
631
|
+
if (this.internalProps.colCount <= 0) return 0;
|
|
632
|
+
return this.getColsWidth(0, this.internalProps.colCount - 1);
|
|
633
|
+
}
|
|
634
|
+
getMaxColWidth(col) {
|
|
635
|
+
var _a;
|
|
636
|
+
const obj = this.colWidthsLimit[col];
|
|
637
|
+
let max = null !== (_a = obj && obj.max) && void 0 !== _a ? _a : 1 / 0;
|
|
638
|
+
return "string" == typeof max && (max = _toPxWidth(this, max)), max;
|
|
639
|
+
}
|
|
640
|
+
setMaxColWidth(col, maxwidth) {
|
|
641
|
+
(this.colWidthsLimit[col] || (this.colWidthsLimit[col] = {})).max = maxwidth;
|
|
642
|
+
}
|
|
643
|
+
getMinColWidth(col) {
|
|
644
|
+
var _a;
|
|
645
|
+
const obj = this.colWidthsLimit[col];
|
|
646
|
+
let min = null !== (_a = obj && obj.min) && void 0 !== _a ? _a : 0;
|
|
647
|
+
return "string" == typeof min && (min = _toPxWidth(this, min)), min;
|
|
648
|
+
}
|
|
649
|
+
setMinColWidth(col, minwidth) {
|
|
650
|
+
(this.colWidthsLimit[col] || (this.colWidthsLimit[col] = {})).min = minwidth;
|
|
651
|
+
}
|
|
652
|
+
getCellRect(col, row) {
|
|
653
|
+
var _a, _b;
|
|
654
|
+
const isFrozenCell = this.isFrozenCell(col, row);
|
|
655
|
+
let absoluteLeft;
|
|
656
|
+
const width = this.getColWidth(col);
|
|
657
|
+
let absoluteTop;
|
|
658
|
+
absoluteLeft = isFrozenCell && isFrozenCell.col && this.isRightFrozenColumn(col, row) ? this.getAllColsWidth() <= this.tableNoFrameWidth ? this.getColsWidth(0, col - 1) || 0 : this.tableNoFrameWidth - (null !== (_a = this.getColsWidth(col, this.colCount - 1)) && void 0 !== _a ? _a : 0) : this.getColsWidth(0, col - 1) || 0;
|
|
659
|
+
const height = this.getRowHeight(row);
|
|
660
|
+
return absoluteTop = isFrozenCell && isFrozenCell.row && this.isBottomFrozenRow(col, row) ? this.getAllRowsHeight() <= this.tableNoFrameHeight ? this.getRowsHeight(0, row - 1) : this.tableNoFrameHeight - (null !== (_b = this.getRowsHeight(row, this.rowCount - 1)) && void 0 !== _b ? _b : 0) : this.getRowsHeight(0, row - 1),
|
|
661
|
+
new Rect(Math.round(absoluteLeft), Math.round(absoluteTop), Math.round(width), Math.round(height));
|
|
662
|
+
}
|
|
663
|
+
getMergeCellRect(col, row) {
|
|
664
|
+
const cellRange = this.getCellRange(col, row), absoluteLeft = this.getColsWidth(0, cellRange.start.col - 1) || 0, width = this.getColsWidth(cellRange.start.col, cellRange.end.col), absoluteTop = this.getRowsHeight(0, cellRange.start.row - 1) || 0, height = this.getRowsHeight(cellRange.start.row, cellRange.end.row);
|
|
665
|
+
return new Rect(Math.round(absoluteLeft), Math.round(absoluteTop), Math.round(width), Math.round(height));
|
|
666
|
+
}
|
|
667
|
+
getCellRelativeRect(col, row) {
|
|
668
|
+
const isFrozenCell = this.isFrozenCell(col, row);
|
|
669
|
+
let relativeX = !0, relativeY = !0;
|
|
670
|
+
(null == isFrozenCell ? void 0 : isFrozenCell.col) && (null == isFrozenCell ? void 0 : isFrozenCell.row) ? (relativeX = !1,
|
|
671
|
+
relativeY = !1) : (null == isFrozenCell ? void 0 : isFrozenCell.col) ? relativeX = !1 : (null == isFrozenCell ? void 0 : isFrozenCell.row) && (relativeY = !1);
|
|
672
|
+
const cellRect = this.getCellRect(col, row);
|
|
673
|
+
return this._toRelativeRect(cellRect, relativeX, relativeY);
|
|
674
|
+
}
|
|
675
|
+
getCellRangeRelativeRect(range) {
|
|
676
|
+
if (range.start) {
|
|
677
|
+
const isFrozenCell = this.isFrozenCell(range.start.col, range.start.row);
|
|
678
|
+
let relativeX = !0, relativeY = !0;
|
|
679
|
+
return (null == isFrozenCell ? void 0 : isFrozenCell.col) && (null == isFrozenCell ? void 0 : isFrozenCell.row) ? (relativeX = !1,
|
|
680
|
+
relativeY = !1) : (null == isFrozenCell ? void 0 : isFrozenCell.col) ? relativeX = !1 : (null == isFrozenCell ? void 0 : isFrozenCell.row) && (relativeY = !1),
|
|
681
|
+
this._toRelativeRect(this.getCellsRect(range.start.col, range.start.row, range.end.col, range.end.row), relativeX, relativeY);
|
|
682
|
+
}
|
|
683
|
+
const cellRange = this.getCellRange(range.col, range.row), isFrozenCell = this.isFrozenCell(range.col, range.row);
|
|
684
|
+
let relativeX = !0, relativeY = !0;
|
|
685
|
+
return (null == isFrozenCell ? void 0 : isFrozenCell.col) && (null == isFrozenCell ? void 0 : isFrozenCell.row) ? (relativeX = !1,
|
|
686
|
+
relativeY = !1) : (null == isFrozenCell ? void 0 : isFrozenCell.col) ? relativeX = !1 : (null == isFrozenCell ? void 0 : isFrozenCell.row) && (relativeY = !1),
|
|
687
|
+
this._toRelativeRect(this.getCellsRect(cellRange.start.col, cellRange.start.row, cellRange.end.col, cellRange.end.row), relativeX, relativeY);
|
|
688
|
+
}
|
|
689
|
+
getVisibleCellRangeRelativeRect(range) {
|
|
690
|
+
let cellRange;
|
|
691
|
+
return cellRange = range.start ? range : this.getCellRange(range.col, range.row),
|
|
692
|
+
this._getVisiableRect(this.getCellRangeRelativeRect(range), cellRange);
|
|
693
|
+
}
|
|
694
|
+
_getVisiableRect(relativeRectObj, cellRange) {
|
|
695
|
+
const targetLeft = cellRange.start.col >= this.frozenColCount ? Math.max(relativeRectObj.left, this.frozenColCount >= 1 ? this.getColsWidth(0, this.frozenColCount - 1) : 0) : relativeRectObj.left, targetRight = Math.min(relativeRectObj.right, this.tableNoFrameWidth), rect = relativeRectObj.copy();
|
|
696
|
+
rect.left = targetLeft, rect.right = targetRight;
|
|
697
|
+
const targetTop = cellRange.start.row >= this.frozenRowCount ? Math.max(relativeRectObj.top, this.frozenRowCount >= 1 ? this.getRowsHeight(0, this.frozenRowCount - 1) : 0) : relativeRectObj.top, targetBottom = Math.min(relativeRectObj.bottom, this.tableNoFrameHeight);
|
|
698
|
+
return rect.top = targetTop, rect.bottom = targetBottom, rect;
|
|
699
|
+
}
|
|
700
|
+
getCellsRect(startCol, startRow, endCol, endRow) {
|
|
701
|
+
var _a, _b, _c, _d, _e, _f;
|
|
702
|
+
let absoluteLeft = this.getColsWidth(0, startCol - 1) || 0, width = this.getColsWidth(startCol, endCol);
|
|
703
|
+
const scrollLeft = this.scrollLeft;
|
|
704
|
+
this.isLeftFrozenColumn(startCol) && this.isRightFrozenColumn(endCol) ? width = this.tableNoFrameWidth - (null !== (_a = this.getColsWidth(startCol + 1, this.colCount - 1)) && void 0 !== _a ? _a : 0) - absoluteLeft : this.isLeftFrozenColumn(startCol) && !this.isLeftFrozenColumn(endCol) ? width = Math.max(width - scrollLeft, this.getColsWidth(startCol, this.frozenColCount - 1)) : !this.isRightFrozenColumn(startCol) && this.isRightFrozenColumn(endCol) ? (absoluteLeft = Math.min(absoluteLeft - scrollLeft, this.tableNoFrameWidth - this.getRightFrozenColsWidth()),
|
|
705
|
+
width = this.tableNoFrameWidth - (null !== (_b = this.getColsWidth(startCol + 1, this.colCount - 1)) && void 0 !== _b ? _b : 0) - absoluteLeft) : this.isRightFrozenColumn(startCol) && (absoluteLeft = this.tableNoFrameWidth - (null !== (_c = this.getColsWidth(startCol, this.colCount - 1)) && void 0 !== _c ? _c : 0));
|
|
706
|
+
let absoluteTop = this.getRowsHeight(0, startRow - 1), height = this.getRowsHeight(startRow, endRow);
|
|
707
|
+
const scrollTop = this.scrollTop;
|
|
708
|
+
return this.isTopFrozenRow(startRow) && this.isBottomFrozenRow(endRow) ? height = this.tableNoFrameHeight - (null !== (_d = this.getRowsHeight(startRow + 1, this.rowCount - 1)) && void 0 !== _d ? _d : 0) - absoluteTop : this.isTopFrozenRow(startRow) && !this.isTopFrozenRow(endRow) ? height = Math.max(height - scrollTop, this.getRowsHeight(startRow, this.frozenRowCount - 1)) : !this.isBottomFrozenRow(startRow) && this.isBottomFrozenRow(endRow) ? (absoluteTop = Math.min(absoluteTop - scrollTop, this.tableNoFrameHeight - this.getBottomFrozenRowsHeight()),
|
|
709
|
+
height = this.tableNoFrameHeight - (null !== (_e = this.getRowsHeight(startRow + 1, this.rowCount - 1)) && void 0 !== _e ? _e : 0) - absoluteTop) : this.isBottomFrozenRow(startRow) && (absoluteTop = this.tableNoFrameHeight - (null !== (_f = this.getRowsHeight(startRow, this.rowCount - 1)) && void 0 !== _f ? _f : 0)),
|
|
710
|
+
new Rect(Math.round(absoluteLeft), Math.round(absoluteTop), Math.round(width), Math.round(height));
|
|
711
|
+
}
|
|
712
|
+
getCellsRectWidth(startCol, startRow, endCol, endRow) {
|
|
713
|
+
const isFrozenStartCell = this.isFrozenCell(startCol, startRow), isFrozenEndCell = this.isFrozenCell(endCol, endRow);
|
|
714
|
+
let width = this.getColsWidth(startCol, endCol);
|
|
715
|
+
if (isFrozenStartCell && isFrozenStartCell.col) {
|
|
716
|
+
const scrollLeft = this.scrollLeft;
|
|
717
|
+
isFrozenEndCell && isFrozenEndCell.col || (width -= scrollLeft, width = Math.max(width, this.getColsWidth(startCol, this.frozenColCount - 1)));
|
|
718
|
+
}
|
|
719
|
+
return width;
|
|
720
|
+
}
|
|
721
|
+
getCellRangeRect(range) {
|
|
722
|
+
if (range.start) return this.getCellsRect(range.start.col, range.start.row, range.end.col, range.end.row);
|
|
723
|
+
const cellRange = this.getCellRange(range.col, range.row);
|
|
724
|
+
return this.getCellsRect(cellRange.start.col, cellRange.start.row, cellRange.end.col, cellRange.end.row);
|
|
725
|
+
}
|
|
726
|
+
getCellRangeRectWidth(range) {
|
|
727
|
+
if (range.start) return this.getCellsRectWidth(range.start.col, range.start.row, range.end.col, range.end.row);
|
|
728
|
+
const cellRange = this.getCellRange(range.col, range.row);
|
|
729
|
+
return this.getCellsRectWidth(cellRange.start.col, cellRange.start.row, cellRange.end.col, cellRange.end.row);
|
|
730
|
+
}
|
|
731
|
+
isFrozenCell(col, row) {
|
|
732
|
+
const isFrozenRow = this.isFrozenRow(row), isFrozenCol = this.isFrozenColumn(col);
|
|
733
|
+
return isFrozenRow || isFrozenCol ? {
|
|
734
|
+
row: isFrozenRow,
|
|
735
|
+
col: isFrozenCol
|
|
736
|
+
} : null;
|
|
737
|
+
}
|
|
738
|
+
getRowAt(absoluteY) {
|
|
739
|
+
return getRowAt(absoluteY, this);
|
|
740
|
+
}
|
|
741
|
+
getColAt(absoluteX) {
|
|
742
|
+
return getColAt(absoluteX, this);
|
|
743
|
+
}
|
|
744
|
+
getCellAt(absoluteX, absoluteY) {
|
|
745
|
+
return getCellAt(absoluteX, absoluteY, this);
|
|
746
|
+
}
|
|
747
|
+
getCellAtRelativePosition(relativeX, relativeY) {
|
|
748
|
+
return getCellAtRelativePosition(relativeX, relativeY, this);
|
|
749
|
+
}
|
|
750
|
+
_checkRowCol(col, row) {
|
|
751
|
+
return col >= 0 && col < this.colCount && row >= 0 && row < this.rowCount;
|
|
752
|
+
}
|
|
753
|
+
_makeVisibleCell(col, row) {
|
|
754
|
+
if (this._checkRowCol(col, row)) {
|
|
755
|
+
const isFrozenCell = this.isFrozenCell(col, row);
|
|
756
|
+
if (isFrozenCell && isFrozenCell.col && isFrozenCell.row) return;
|
|
757
|
+
const rect = this.getCellRect(col, row), visibleRect = _getScrollableVisibleRect(this);
|
|
758
|
+
if (visibleRect.contains(rect)) return;
|
|
759
|
+
isFrozenCell && isFrozenCell.col || this.getColsWidth(0, this.frozenColCount - 1) + rect.width > this.canvas.width || (rect.left < visibleRect.left ? this.scrollLeft -= visibleRect.left - rect.left : visibleRect.right < rect.right && (this.scrollLeft -= visibleRect.right - rect.right)),
|
|
760
|
+
isFrozenCell && isFrozenCell.row || this.getRowsHeight(0, this.frozenRowCount - 1) + rect.height > this.canvas.height || (rect.top < visibleRect.top ? this.scrollTop -= visibleRect.top - rect.top : visibleRect.bottom < rect.bottom && (this.scrollTop -= visibleRect.bottom - rect.bottom));
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
render() {
|
|
764
|
+
this.scenegraph.renderSceneGraph();
|
|
765
|
+
}
|
|
766
|
+
renderAsync() {
|
|
767
|
+
return this.scenegraph.updateNextFrame(), new Promise(((resolve, reject) => {
|
|
768
|
+
setTimeout((() => {
|
|
769
|
+
resolve();
|
|
770
|
+
}), 0);
|
|
771
|
+
}));
|
|
772
|
+
}
|
|
773
|
+
_toRelativeRect(absoluteRect, relativeX = !0, relativeY = !0) {
|
|
774
|
+
var _a, _b, _c, _d;
|
|
775
|
+
const rect = absoluteRect.copy(), visibleRect = this.getVisibleRect();
|
|
776
|
+
return rect.offsetLeft(this.tableX - (relativeX ? visibleRect.left : 0)), rect.offsetTop(this.tableY - (relativeY ? visibleRect.top : 0)),
|
|
777
|
+
rect.offsetLeft(null !== (_b = null === (_a = this.options.viewBox) || void 0 === _a ? void 0 : _a.x1) && void 0 !== _b ? _b : 0),
|
|
778
|
+
rect.offsetTop(null !== (_d = null === (_c = this.options.viewBox) || void 0 === _c ? void 0 : _c.y1) && void 0 !== _d ? _d : 0),
|
|
779
|
+
rect;
|
|
780
|
+
}
|
|
781
|
+
getVisibleRect() {
|
|
782
|
+
const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, width = this.tableNoFrameWidth, height = this.tableNoFrameHeight;
|
|
783
|
+
return new Rect(scrollLeft, scrollTop, width, height);
|
|
784
|
+
}
|
|
785
|
+
get visibleRowCount() {
|
|
786
|
+
const {frozenRowCount: frozenRowCount} = this, visibleRect = this.getVisibleRect(), visibleTop = frozenRowCount > 0 ? visibleRect.top + this.getRowsHeight(0, frozenRowCount - 1) : visibleRect.top, initRow = this.getTargetRowAt(visibleTop);
|
|
787
|
+
if (!initRow) return 0;
|
|
788
|
+
const startRow = Math.max(initRow.top >= visibleTop ? initRow.row : initRow.row + 1, frozenRowCount);
|
|
789
|
+
let absoluteTop = this.getRowsHeight(0, startRow - 1), count = 0;
|
|
790
|
+
const {rowCount: rowCount} = this;
|
|
791
|
+
for (let row = startRow; row < rowCount; row++) {
|
|
792
|
+
const bottom = absoluteTop + this.getRowHeight(row);
|
|
793
|
+
if (visibleRect.bottom < bottom) break;
|
|
794
|
+
count++, absoluteTop = bottom;
|
|
795
|
+
}
|
|
796
|
+
return count;
|
|
797
|
+
}
|
|
798
|
+
getBodyVisibleCellRange() {
|
|
799
|
+
const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, frozenRowsHeight = this.getFrozenRowsHeight(), frozenColsWidth = this.getFrozenColsWidth(), bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), rightFrozenColsWidth = this.getRightFrozenColsWidth(), {row: rowStart} = this.getRowAt(scrollTop + frozenRowsHeight + 1), {col: colStart} = this.getColAt(scrollLeft + frozenColsWidth + 1), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight).row : this.rowCount - 1, colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth).col : this.colCount - 1;
|
|
800
|
+
return colEnd < 0 || rowEnd < 0 ? null : {
|
|
801
|
+
rowStart: rowStart,
|
|
802
|
+
colStart: colStart,
|
|
803
|
+
rowEnd: rowEnd,
|
|
804
|
+
colEnd: colEnd
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
getBodyVisibleRowRange() {
|
|
808
|
+
const {scrollTop: scrollTop} = this, frozenRowsHeight = this.getFrozenRowsHeight(), bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), {row: rowStart} = this.getRowAt(scrollTop + frozenRowsHeight + 1), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight).row : this.rowCount - 1;
|
|
809
|
+
return rowEnd < 0 ? null : {
|
|
810
|
+
rowStart: rowStart,
|
|
811
|
+
rowEnd: rowEnd
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
getBodyVisibleColRange() {
|
|
815
|
+
const {scrollLeft: scrollLeft} = this, frozenColsWidth = this.getFrozenColsWidth(), rightFrozenColsWidth = this.getRightFrozenColsWidth(), {col: colStart} = this.getColAt(scrollLeft + frozenColsWidth + 1), colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth).col : this.colCount - 1;
|
|
816
|
+
return colEnd < 0 ? null : {
|
|
817
|
+
colStart: colStart,
|
|
818
|
+
colEnd: colEnd
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
get visibleColCount() {
|
|
822
|
+
const {frozenColCount: frozenColCount} = this, visibleRect = this.getVisibleRect(), visibleLeft = frozenColCount > 0 ? visibleRect.left + this.getColsWidth(0, frozenColCount - 1) : visibleRect.left, initCol = this.getTargetColAt(visibleLeft);
|
|
823
|
+
if (!initCol) return 0;
|
|
824
|
+
const startCol = Math.max(initCol.left >= visibleLeft ? initCol.col : initCol.col + 1, frozenColCount);
|
|
825
|
+
let absoluteLeft = this.getColsWidth(0, startCol - 1), count = 0;
|
|
826
|
+
const {colCount: colCount} = this;
|
|
827
|
+
for (let col = startCol; col < colCount; col++) {
|
|
828
|
+
const right = absoluteLeft + this.getColWidth(col);
|
|
829
|
+
if (visibleRect.right < right) break;
|
|
830
|
+
count++, absoluteLeft = right;
|
|
831
|
+
}
|
|
832
|
+
return count;
|
|
833
|
+
}
|
|
834
|
+
get scrollTop() {
|
|
835
|
+
return this.stateManager.scroll.verticalBarPos;
|
|
836
|
+
}
|
|
837
|
+
set scrollTop(scrollTop) {
|
|
838
|
+
this.stateManager.setScrollTop(scrollTop);
|
|
839
|
+
}
|
|
840
|
+
get scrollLeft() {
|
|
841
|
+
return this.stateManager.scroll.horizontalBarPos;
|
|
842
|
+
}
|
|
843
|
+
set scrollLeft(scrollLeft) {
|
|
844
|
+
this.stateManager.setScrollLeft(scrollLeft);
|
|
845
|
+
}
|
|
846
|
+
getScrollLeft() {
|
|
847
|
+
return this.scrollLeft;
|
|
848
|
+
}
|
|
849
|
+
getScrollTop() {
|
|
850
|
+
return this.scrollTop;
|
|
851
|
+
}
|
|
852
|
+
setScrollLeft(num) {
|
|
853
|
+
this.scrollLeft = Math.ceil(num);
|
|
854
|
+
}
|
|
855
|
+
setScrollTop(num) {
|
|
856
|
+
this.scrollTop = Math.ceil(num);
|
|
857
|
+
}
|
|
858
|
+
getCellOverflowText(col, row) {
|
|
859
|
+
return this.scenegraph.getCellOverflowText(col, row);
|
|
860
|
+
}
|
|
861
|
+
addReleaseObj(releaseObj) {
|
|
862
|
+
if (!releaseObj || !releaseObj.release || "function" != typeof releaseObj.release) throw new Error("not releaseObj!");
|
|
863
|
+
(this.internalProps.releaseList = this.internalProps.releaseList || []).push(releaseObj);
|
|
864
|
+
}
|
|
865
|
+
dispose() {
|
|
866
|
+
this.release();
|
|
867
|
+
}
|
|
868
|
+
release() {
|
|
869
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
870
|
+
const internalProps = this.internalProps;
|
|
871
|
+
if (this.isReleased) return;
|
|
872
|
+
null === (_b = null === (_a = internalProps.tooltipHandler) || void 0 === _a ? void 0 : _a.release) || void 0 === _b || _b.call(_a),
|
|
873
|
+
null === (_d = null === (_c = internalProps.menuHandler) || void 0 === _c ? void 0 : _c.release) || void 0 === _d || _d.call(_c),
|
|
874
|
+
IconCache.clearAll(), null === (_e = super.release) || void 0 === _e || _e.call(this),
|
|
875
|
+
null === (_g = null === (_f = internalProps.handler) || void 0 === _f ? void 0 : _f.release) || void 0 === _g || _g.call(_f),
|
|
876
|
+
this.eventManager.release(), null === (_j = null === (_h = internalProps.focusControl) || void 0 === _h ? void 0 : _h.release) || void 0 === _j || _j.call(_h),
|
|
877
|
+
null === (_k = internalProps.legends) || void 0 === _k || _k.forEach((legend => {
|
|
878
|
+
null == legend || legend.release();
|
|
879
|
+
})), null === (_l = internalProps.title) || void 0 === _l || _l.release(), internalProps.title = null,
|
|
880
|
+
null === (_m = internalProps.emptyTip) || void 0 === _m || _m.release(), internalProps.emptyTip = null,
|
|
881
|
+
internalProps.layoutMap.release(), internalProps.releaseList && (internalProps.releaseList.forEach((releaseObj => {
|
|
882
|
+
var _a;
|
|
883
|
+
return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
|
|
884
|
+
})), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release(),
|
|
885
|
+
internalProps.focusControl.release();
|
|
886
|
+
const {parentElement: parentElement} = internalProps.element;
|
|
887
|
+
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element),
|
|
888
|
+
null === (_q = null === (_p = null === (_o = this.editorManager) || void 0 === _o ? void 0 : _o.editingEditor) || void 0 === _p ? void 0 : _p.onEnd) || void 0 === _q || _q.call(_p),
|
|
889
|
+
this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_r = this.reactCustomLayout) || void 0 === _r || _r.clearCache(),
|
|
890
|
+
clearChartRenderQueue();
|
|
891
|
+
}
|
|
892
|
+
fireListeners(type, event) {
|
|
893
|
+
return super.fireListeners(type, event);
|
|
894
|
+
}
|
|
895
|
+
updateOption(options) {
|
|
896
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
897
|
+
this.options = options, this._hasAutoImageColumn = void 0;
|
|
898
|
+
const {frozenColCount: frozenColCount = 0, unfreezeAllOnExceedsMaxWidth: unfreezeAllOnExceedsMaxWidth, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth = 80, keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", resize: resize, dragHeaderMode: dragHeaderMode, dragOrder: dragOrder, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, pixelRatio: pixelRatio, widthMode: widthMode, heightMode: heightMode, autoFillWidth: autoFillWidth, autoFillHeight: autoFillHeight, widthAdaptiveMode: widthAdaptiveMode, heightAdaptiveMode: heightAdaptiveMode, customRender: customRender, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight} = options;
|
|
899
|
+
pixelRatio && pixelRatio !== this.internalProps.pixelRatio && (this.internalProps.pixelRatio = pixelRatio),
|
|
900
|
+
padding && ("number" == typeof padding ? (this.padding.top = padding, this.padding.left = padding,
|
|
901
|
+
this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top),
|
|
902
|
+
padding.bottom && (this.padding.bottom = padding.bottom), padding.left && (this.padding.left = padding.left),
|
|
903
|
+
padding.right && (this.padding.right = padding.right))), this.showFrozenIcon = "boolean" != typeof showFrozenIcon || showFrozenIcon,
|
|
904
|
+
"number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showFrozenIcon = !1),
|
|
905
|
+
this.widthMode = null != widthMode ? widthMode : "standard", this.heightMode = null != heightMode ? heightMode : "standard",
|
|
906
|
+
this._widthAdaptiveMode = null != widthAdaptiveMode ? widthAdaptiveMode : "only-body",
|
|
907
|
+
this._heightAdaptiveMode = null != heightAdaptiveMode ? heightAdaptiveMode : "only-body",
|
|
908
|
+
this.autoFillWidth = null != autoFillWidth && autoFillWidth, this.autoFillHeight = null != autoFillHeight && autoFillHeight,
|
|
909
|
+
this.customRender = customRender, this.canvasWidth = isNumber(canvasWidth) ? canvasWidth : void 0,
|
|
910
|
+
this.canvasHeight = isNumber(canvasHeight) ? canvasHeight : void 0;
|
|
911
|
+
const internalProps = this.internalProps;
|
|
912
|
+
if ("node" === Env.mode || options.canvas || updateRootElementPadding(internalProps.element, this.padding),
|
|
913
|
+
this.columnWidthComputeMode = null !== (_a = options.columnWidthComputeMode) && void 0 !== _a ? _a : "normal",
|
|
914
|
+
internalProps.frozenColCount = frozenColCount, internalProps.unfreezeAllOnExceedsMaxWidth = null == unfreezeAllOnExceedsMaxWidth || unfreezeAllOnExceedsMaxWidth,
|
|
915
|
+
internalProps.defaultRowHeight = defaultRowHeight, internalProps.defaultHeaderRowHeight = null != defaultHeaderRowHeight ? defaultHeaderRowHeight : defaultRowHeight,
|
|
916
|
+
internalProps.defaultColWidth = defaultColWidth, internalProps.defaultHeaderColWidth = null != defaultHeaderColWidth ? defaultHeaderColWidth : defaultColWidth,
|
|
917
|
+
internalProps.keyboardOptions = keyboardOptions, internalProps.eventOptions = eventOptions,
|
|
918
|
+
internalProps.rowSeriesNumber = rowSeriesNumber, internalProps.columnResizeMode = null !== (_b = null == resize ? void 0 : resize.columnResizeMode) && void 0 !== _b ? _b : columnResizeMode,
|
|
919
|
+
internalProps.rowResizeMode = null !== (_c = null == resize ? void 0 : resize.rowResizeMode) && void 0 !== _c ? _c : rowResizeMode,
|
|
920
|
+
internalProps.dragHeaderMode = null !== (_e = null !== (_d = null == dragOrder ? void 0 : dragOrder.dragHeaderMode) && void 0 !== _d ? _d : dragHeaderMode) && void 0 !== _e ? _e : "none",
|
|
921
|
+
internalProps.renderChartAsync = renderChartAsync, setBatchRenderChartCount(renderChartAsyncBatchCount),
|
|
922
|
+
internalProps.overscrollBehavior = null != overscrollBehavior ? overscrollBehavior : "auto",
|
|
923
|
+
internalProps.cellTextOverflows = {}, internalProps._rowHeightsMap = new NumberRangeMap(this),
|
|
924
|
+
internalProps._rowRangeHeightsMap = new Map, internalProps._colRangeWidthsMap = new Map,
|
|
925
|
+
internalProps._widthResizedColMap = new Set, internalProps._heightResizedRowMap = new Set,
|
|
926
|
+
this.colWidthsMap = new NumberMap, this.colContentWidthsMap = new NumberMap, this.colWidthsLimit = {},
|
|
927
|
+
internalProps.stick.changedCells.clear(), internalProps.theme = themes.of(null !== (_f = options.theme) && void 0 !== _f ? _f : themes.DEFAULT),
|
|
928
|
+
internalProps.theme.isPivot = this.isPivotTable(), setIconColor(internalProps.theme.functionalIconsStyle),
|
|
929
|
+
this.scenegraph.updateStageBackground(), internalProps.autoWrapText = options.autoWrapText,
|
|
930
|
+
internalProps.enableLineBreak = options.enableLineBreak, internalProps.allowFrozenColCount = null !== (_g = options.allowFrozenColCount) && void 0 !== _g ? _g : 0,
|
|
931
|
+
internalProps.limitMaxAutoWidth = null !== (_h = options.limitMaxAutoWidth) && void 0 !== _h ? _h : 450,
|
|
932
|
+
internalProps.limitMinWidth = null != limitMinWidth ? "number" == typeof limitMinWidth ? limitMinWidth : limitMinWidth ? 10 : 0 : 10,
|
|
933
|
+
internalProps.limitMinHeight = null != limitMinHeight ? "number" == typeof limitMinHeight ? limitMinHeight : limitMinHeight ? 10 : 0 : 10,
|
|
934
|
+
null === (_j = internalProps.legends) || void 0 === _j || _j.forEach((legend => {
|
|
935
|
+
null == legend || legend.release();
|
|
936
|
+
})), null === (_k = internalProps.title) || void 0 === _k || _k.release(), internalProps.title = null,
|
|
937
|
+
null === (_l = internalProps.emptyTip) || void 0 === _l || _l.release(), internalProps.emptyTip = null,
|
|
938
|
+
internalProps.layoutMap.release(), clearChartRenderQueue(), this.scenegraph.clearCells(),
|
|
939
|
+
this.scenegraph.updateComponent(), this.stateManager.updateOptionSetState(), this._updateSize(),
|
|
940
|
+
this.eventManager.updateEventBinder(), options.legends) {
|
|
941
|
+
internalProps.legends = [];
|
|
942
|
+
const createLegend = Factory.getFunction("createLegend");
|
|
943
|
+
if (Array.isArray(options.legends)) {
|
|
944
|
+
for (let i = 0; i < options.legends.length; i++) internalProps.legends.push(createLegend(options.legends[i], this));
|
|
945
|
+
this.scenegraph.tableGroup.setAttributes({
|
|
946
|
+
x: this.tableX,
|
|
947
|
+
y: this.tableY
|
|
948
|
+
});
|
|
949
|
+
} else internalProps.legends.push(createLegend(options.legends, this)), this.scenegraph.tableGroup.setAttributes({
|
|
950
|
+
x: this.tableX,
|
|
951
|
+
y: this.tableY
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
if (internalProps.tooltip = Object.assign({
|
|
955
|
+
parentElement: this.getElement(),
|
|
956
|
+
renderMode: "html",
|
|
957
|
+
isShowOverflowTextTooltip: !1,
|
|
958
|
+
confine: !0,
|
|
959
|
+
position: Placement.bottom
|
|
960
|
+
}, options.tooltip), "html" === internalProps.tooltip.renderMode && !internalProps.tooltipHandler) {
|
|
961
|
+
const TooltipHandler = Factory.getComponent("tooltipHandler");
|
|
962
|
+
internalProps.tooltipHandler = new TooltipHandler(this, internalProps.tooltip.confine);
|
|
963
|
+
}
|
|
964
|
+
if (internalProps.menu = Object.assign({
|
|
965
|
+
renderMode: "html"
|
|
966
|
+
}, options.menu), Array.isArray(null === (_m = options.menu) || void 0 === _m ? void 0 : _m.dropDownMenuHighlight) && this.setDropDownMenuHighlight(null === (_o = options.menu) || void 0 === _o ? void 0 : _o.dropDownMenuHighlight),
|
|
967
|
+
(Array.isArray(null === (_p = options.menu) || void 0 === _p ? void 0 : _p.defaultHeaderMenuItems) || "function" == typeof (null === (_q = options.menu) || void 0 === _q ? void 0 : _q.defaultHeaderMenuItems)) && (this.globalDropDownMenu = options.menu.defaultHeaderMenuItems),
|
|
968
|
+
"html" === internalProps.menu.renderMode && !internalProps.menuHandler) {
|
|
969
|
+
const MenuHandler = Factory.getComponent("menuHandler");
|
|
970
|
+
internalProps.menuHandler = new MenuHandler(this);
|
|
971
|
+
}
|
|
972
|
+
this.clearCellStyleCache(), this.clearColWidthCache(), this.clearRowHeightCache(),
|
|
973
|
+
internalProps.customMergeCell = getCustomMergeCellFunc(options.customMergeCell),
|
|
974
|
+
null === (_r = this.customCellStylePlugin) || void 0 === _r || _r.updateCustomCell(null !== (_s = options.customCellStyle) && void 0 !== _s ? _s : [], null !== (_t = options.customCellStyleArrangement) && void 0 !== _t ? _t : []),
|
|
975
|
+
this._adjustCanvasSizeByOption();
|
|
976
|
+
}
|
|
977
|
+
renderWithRecreateCells() {
|
|
978
|
+
this.internalProps.stick.changedCells.clear();
|
|
979
|
+
const oldHoverState = {
|
|
980
|
+
col: this.stateManager.hover.cellPos.col,
|
|
981
|
+
row: this.stateManager.hover.cellPos.row
|
|
982
|
+
};
|
|
983
|
+
this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, this.scenegraph.clearCells(),
|
|
984
|
+
this.clearCellStyleCache(), this.scenegraph.createSceneGraph(), this.stateManager.updateHoverPos(oldHoverState.col, oldHoverState.row),
|
|
985
|
+
this.render();
|
|
986
|
+
}
|
|
987
|
+
getFrozenRowsHeight() {
|
|
988
|
+
return this.getRowsHeight(0, this.frozenRowCount - 1);
|
|
989
|
+
}
|
|
990
|
+
getFrozenColsWidth() {
|
|
991
|
+
return this.getColsWidth(0, this.frozenColCount - 1);
|
|
992
|
+
}
|
|
993
|
+
getBottomFrozenRowsHeight() {
|
|
994
|
+
if (this.bottomFrozenRowCount > 0) {
|
|
995
|
+
let height = 0;
|
|
996
|
+
for (let row = this.rowCount - this.bottomFrozenRowCount; row <= this.rowCount - 1; row++) height += this.getRowHeight(row);
|
|
997
|
+
return height;
|
|
998
|
+
}
|
|
999
|
+
return 0;
|
|
1000
|
+
}
|
|
1001
|
+
getRightFrozenColsWidth() {
|
|
1002
|
+
if (this.rightFrozenColCount > 0) {
|
|
1003
|
+
let width = 0;
|
|
1004
|
+
for (let col = this.colCount - this.rightFrozenColCount; col <= this.colCount - 1; col++) width += this.getColWidth(col);
|
|
1005
|
+
return width;
|
|
1006
|
+
}
|
|
1007
|
+
return 0;
|
|
1008
|
+
}
|
|
1009
|
+
getDrawRange() {
|
|
1010
|
+
const width = Math.min(this.tableNoFrameWidth, this.getAllColsWidth()), height = Math.min(this.tableNoFrameHeight, this.getAllRowsHeight());
|
|
1011
|
+
return new Rect(this.tableX, this.tableY, width, height);
|
|
1012
|
+
}
|
|
1013
|
+
_getMouseAbstractPoint(evt, isAddScroll = !0) {
|
|
1014
|
+
var _a, _b, _c, _d;
|
|
1015
|
+
let e;
|
|
1016
|
+
if (!evt) return {
|
|
1017
|
+
inTable: !1,
|
|
1018
|
+
x: void 0,
|
|
1019
|
+
y: void 0
|
|
1020
|
+
};
|
|
1021
|
+
e = isTouchEvent(evt) ? evt.changedTouches[0] : evt;
|
|
1022
|
+
const clientX = e.clientX || e.pageX + window.scrollX, clientY = e.clientY || e.pageY + window.scrollY, rect = this.internalProps.canvas.getBoundingClientRect();
|
|
1023
|
+
let inTable = !0;
|
|
1024
|
+
rect.right <= clientX && (inTable = !1), rect.bottom <= clientY && (inTable = !1);
|
|
1025
|
+
const currentWidth = rect.width, widthRatio = currentWidth / (this.canvas.offsetWidth || currentWidth), currentHeight = rect.height, heightRatio = currentHeight / (this.canvas.offsetHeight || currentHeight), point = {
|
|
1026
|
+
x: (clientX - rect.left) / widthRatio + (isAddScroll ? this.scrollLeft : 0) - (null !== (_b = null === (_a = this.options.viewBox) || void 0 === _a ? void 0 : _a.x1) && void 0 !== _b ? _b : 0),
|
|
1027
|
+
y: (clientY - rect.top) / heightRatio + (isAddScroll ? this.scrollTop : 0) - (null !== (_d = null === (_c = this.options.viewBox) || void 0 === _c ? void 0 : _c.y1) && void 0 !== _d ? _d : 0),
|
|
1028
|
+
inTable: inTable
|
|
1029
|
+
};
|
|
1030
|
+
if (this.internalProps.modifiedViewBoxTransform && this.scenegraph.stage.window.getViewBoxTransform()) {
|
|
1031
|
+
this.scenegraph.stage.window.getViewBoxTransform().transformPoint(point, point);
|
|
1032
|
+
}
|
|
1033
|
+
return point;
|
|
1034
|
+
}
|
|
1035
|
+
getTheme() {
|
|
1036
|
+
return this.internalProps.theme;
|
|
1037
|
+
}
|
|
1038
|
+
getTargetColAt(absoluteX) {
|
|
1039
|
+
return getTargetColAt(absoluteX, this);
|
|
1040
|
+
}
|
|
1041
|
+
getTargetRowAt(absoluteY) {
|
|
1042
|
+
const targetRow = getTargetRowAt(absoluteY, this);
|
|
1043
|
+
return targetRow && (targetRow.row = Math.min(targetRow.row, this.rowCount - 1)),
|
|
1044
|
+
targetRow;
|
|
1045
|
+
}
|
|
1046
|
+
getTargetColAtConsiderRightFrozen(absoluteX, isConsider) {
|
|
1047
|
+
return getTargetColAtConsiderRightFrozen(absoluteX, isConsider, this);
|
|
1048
|
+
}
|
|
1049
|
+
getTargetRowAtConsiderBottomFrozen(absoluteY, isConsider) {
|
|
1050
|
+
return getTargetRowAtConsiderBottomFrozen(absoluteY, isConsider, this);
|
|
1051
|
+
}
|
|
1052
|
+
clearSelected() {
|
|
1053
|
+
this.stateManager.updateSelectPos(-1, -1);
|
|
1054
|
+
}
|
|
1055
|
+
selectCell(col, row, isShift, isCtrl, makeSelectCellVisible, skipBodyMerge = !1) {
|
|
1056
|
+
var _a, _b, _c;
|
|
1057
|
+
const isHasSelected = !!(null === (_a = this.stateManager.select.ranges) || void 0 === _a ? void 0 : _a.length);
|
|
1058
|
+
this.stateManager.updateSelectPos(col, row, isShift, isCtrl, !1, null === (_c = null != makeSelectCellVisible ? makeSelectCellVisible : null === (_b = this.options.select) || void 0 === _b ? void 0 : _b.makeSelectCellVisible) || void 0 === _c || _c, skipBodyMerge),
|
|
1059
|
+
this.stateManager.endSelectCells(!0, isHasSelected);
|
|
1060
|
+
}
|
|
1061
|
+
selectCells(cellRanges) {
|
|
1062
|
+
const {scrollLeft: scrollLeft, scrollTop: scrollTop} = this;
|
|
1063
|
+
cellRanges.forEach(((cellRange, index) => {
|
|
1064
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1065
|
+
cellRange.start.col === cellRange.end.col && cellRange.start.row === cellRange.end.row ? this.stateManager.updateSelectPos(cellRange.start.col, cellRange.start.row, !1, index >= 1, !1, null === (_b = null === (_a = this.options.select) || void 0 === _a ? void 0 : _a.makeSelectCellVisible) || void 0 === _b || _b, !0) : (this.stateManager.updateSelectPos(cellRange.start.col, cellRange.start.row, !1, index >= 1, !1, null === (_d = null === (_c = this.options.select) || void 0 === _c ? void 0 : _c.makeSelectCellVisible) || void 0 === _d || _d, !0),
|
|
1066
|
+
this.stateManager.updateInteractionState(InteractionState.grabing), this.stateManager.updateSelectPos(cellRange.end.col, cellRange.end.row, !1, index >= 1, !1, null === (_f = null === (_e = this.options.select) || void 0 === _e ? void 0 : _e.makeSelectCellVisible) || void 0 === _f || _f, !0)),
|
|
1067
|
+
this.stateManager.endSelectCells(!1, !1), this.stateManager.updateInteractionState(InteractionState.default);
|
|
1068
|
+
})), this.setScrollTop(scrollTop), this.setScrollLeft(scrollLeft);
|
|
1069
|
+
}
|
|
1070
|
+
get recordsCount() {
|
|
1071
|
+
var _a;
|
|
1072
|
+
return null === (_a = this.records) || void 0 === _a ? void 0 : _a.length;
|
|
1073
|
+
}
|
|
1074
|
+
get allowFrozenColCount() {
|
|
1075
|
+
return this.internalProps.allowFrozenColCount;
|
|
1076
|
+
}
|
|
1077
|
+
get rowHeaderLevelCount() {
|
|
1078
|
+
return this.internalProps.layoutMap.rowHeaderLevelCount;
|
|
1079
|
+
}
|
|
1080
|
+
get columnHeaderLevelCount() {
|
|
1081
|
+
return this.internalProps.layoutMap.columnHeaderLevelCount;
|
|
1082
|
+
}
|
|
1083
|
+
get records() {
|
|
1084
|
+
return this.internalProps.records;
|
|
1085
|
+
}
|
|
1086
|
+
get dataSource() {
|
|
1087
|
+
return this.internalProps.dataSource;
|
|
1088
|
+
}
|
|
1089
|
+
set dataSource(dataSource) {
|
|
1090
|
+
this.scenegraph.clearCells(), _setDataSource(this, dataSource), this.refreshRowColCount(),
|
|
1091
|
+
this.scenegraph.createSceneGraph(), this.render();
|
|
1092
|
+
}
|
|
1093
|
+
get autoWrapText() {
|
|
1094
|
+
return this.internalProps.autoWrapText;
|
|
1095
|
+
}
|
|
1096
|
+
set autoWrapText(autoWrapText) {
|
|
1097
|
+
this.internalProps.autoWrapText = autoWrapText, this.options.autoWrapText = autoWrapText;
|
|
1098
|
+
}
|
|
1099
|
+
get enableLineBreak() {
|
|
1100
|
+
return this.internalProps.enableLineBreak;
|
|
1101
|
+
}
|
|
1102
|
+
set enableLineBreak(enableLineBreak) {
|
|
1103
|
+
this.internalProps.enableLineBreak = enableLineBreak, this.options.enableLineBreak = enableLineBreak;
|
|
1104
|
+
}
|
|
1105
|
+
updateAutoWrapText(autoWrapText) {
|
|
1106
|
+
this.internalProps.autoWrapText !== autoWrapText && (this.internalProps.autoWrapText = autoWrapText,
|
|
1107
|
+
this.options.autoWrapText = autoWrapText, this.scenegraph.clearCells(), this.clearCellStyleCache(),
|
|
1108
|
+
this.scenegraph.createSceneGraph(), this.render());
|
|
1109
|
+
}
|
|
1110
|
+
get theme() {
|
|
1111
|
+
return this.internalProps.theme;
|
|
1112
|
+
}
|
|
1113
|
+
set theme(theme) {
|
|
1114
|
+
this.internalProps.theme = themes.of(null != theme ? theme : themes.DEFAULT), this.internalProps.theme.isPivot = this.isPivotTable(),
|
|
1115
|
+
this.options.theme = theme, setIconColor(this.internalProps.theme.functionalIconsStyle);
|
|
1116
|
+
}
|
|
1117
|
+
updateTheme(theme) {
|
|
1118
|
+
const oldHoverState = {
|
|
1119
|
+
col: this.stateManager.hover.cellPos.col,
|
|
1120
|
+
row: this.stateManager.hover.cellPos.row
|
|
1121
|
+
};
|
|
1122
|
+
this.internalProps.theme = themes.of(null != theme ? theme : themes.DEFAULT), this.internalProps.theme.isPivot = this.isPivotTable(),
|
|
1123
|
+
setIconColor(this.internalProps.theme.functionalIconsStyle), this.options.theme = theme,
|
|
1124
|
+
this.scenegraph.updateComponent(), this.scenegraph.updateStageBackground(), this.scenegraph.clearCells(),
|
|
1125
|
+
this.clearCellStyleCache(), this.scenegraph.createSceneGraph(), this.stateManager.updateHoverPos(oldHoverState.col, oldHoverState.row),
|
|
1126
|
+
this.render();
|
|
1127
|
+
}
|
|
1128
|
+
getBodyField(col, row) {
|
|
1129
|
+
return this.internalProps.layoutMap.getBody(col, row).field;
|
|
1130
|
+
}
|
|
1131
|
+
getBodyColumnDefine(col, row) {
|
|
1132
|
+
const body = this.internalProps.layoutMap.getBody(col, row);
|
|
1133
|
+
return null == body ? void 0 : body.define;
|
|
1134
|
+
}
|
|
1135
|
+
getBodyColumnType(col, row) {
|
|
1136
|
+
var _a, _b;
|
|
1137
|
+
const cellType = null !== (_b = null === (_a = this.internalProps.layoutMap.getBody(col, row)) || void 0 === _a ? void 0 : _a.cellType) && void 0 !== _b ? _b : "text";
|
|
1138
|
+
return getProp("cellType", {
|
|
1139
|
+
cellType: cellType
|
|
1140
|
+
}, col, row, this);
|
|
1141
|
+
}
|
|
1142
|
+
getCellType(col, row) {
|
|
1143
|
+
let cellType;
|
|
1144
|
+
return this.isSeriesNumberInHeader(col, row) ? this.internalProps.layoutMap.getSeriesNumberHeader(col, row).cellType : (cellType = this.isHeader(col, row) ? this.internalProps.layoutMap.getHeader(col, row).headerType : this.internalProps.layoutMap.getBody(col, row).cellType,
|
|
1145
|
+
getProp("cellType", {
|
|
1146
|
+
cellType: cellType
|
|
1147
|
+
}, col, row, this));
|
|
1148
|
+
}
|
|
1149
|
+
getHeaderField(col, row) {
|
|
1150
|
+
return this.internalProps.layoutMap.getHeaderField(col, row);
|
|
1151
|
+
}
|
|
1152
|
+
getHeaderDefine(col, row) {
|
|
1153
|
+
const hd = this.internalProps.layoutMap.getHeader(col, row);
|
|
1154
|
+
return null == hd ? void 0 : hd.define;
|
|
1155
|
+
}
|
|
1156
|
+
getCellLocation(col, row) {
|
|
1157
|
+
return this.internalProps.layoutMap.getCellLocation(col, row);
|
|
1158
|
+
}
|
|
1159
|
+
getCellHeaderPaths(col, row) {
|
|
1160
|
+
return this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
1161
|
+
}
|
|
1162
|
+
getHeadersDefine(col, row) {
|
|
1163
|
+
const headers = [];
|
|
1164
|
+
for (;;) {
|
|
1165
|
+
const header = this.getHeaderDefine(col, row);
|
|
1166
|
+
if (!header || !header.field && !header.columns) break;
|
|
1167
|
+
headers.push(header), row++;
|
|
1168
|
+
}
|
|
1169
|
+
return headers;
|
|
1170
|
+
}
|
|
1171
|
+
_getHeaderLayoutMap(col, row) {
|
|
1172
|
+
return this.internalProps.layoutMap.getHeader(col, row);
|
|
1173
|
+
}
|
|
1174
|
+
_getBodyLayoutMap(col, row) {
|
|
1175
|
+
return this.internalProps.layoutMap.getBody(col, row);
|
|
1176
|
+
}
|
|
1177
|
+
getContext() {
|
|
1178
|
+
return this.internalProps.context;
|
|
1179
|
+
}
|
|
1180
|
+
getRecordByCell(col, row) {
|
|
1181
|
+
if (!this.internalProps.layoutMap.isHeader(col, row)) return this.getCellOriginRecord(col, row);
|
|
1182
|
+
}
|
|
1183
|
+
getRecordByRowCol(col, row) {
|
|
1184
|
+
return this.getRecordByCell(col, row);
|
|
1185
|
+
}
|
|
1186
|
+
getRecordStartRowByRecordIndex(index) {
|
|
1187
|
+
return this.internalProps.layoutMap.getRecordStartRowByRecordIndex(index);
|
|
1188
|
+
}
|
|
1189
|
+
_getHeaderCellBySortState(sortState) {
|
|
1190
|
+
const {layoutMap: layoutMap} = this.internalProps, hd = layoutMap.headerObjects.find((col => col && col.field === sortState.field));
|
|
1191
|
+
if (hd) {
|
|
1192
|
+
return layoutMap.getHeaderCellAdressById(hd.id);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
getCellRange(col, row) {
|
|
1196
|
+
var _a;
|
|
1197
|
+
if (this.internalProps.customMergeCell) {
|
|
1198
|
+
const customMerge = this.internalProps.customMergeCell(col, row, this);
|
|
1199
|
+
if (customMerge && customMerge.range && (isValid(customMerge.text) || customMerge.customLayout || customMerge.customRender)) {
|
|
1200
|
+
return {
|
|
1201
|
+
start: {
|
|
1202
|
+
col: Math.max(customMerge.range.start.col, 0),
|
|
1203
|
+
row: Math.max(customMerge.range.start.row, 0)
|
|
1204
|
+
},
|
|
1205
|
+
end: {
|
|
1206
|
+
col: Math.min(customMerge.range.end.col, this.colCount - 1),
|
|
1207
|
+
row: Math.min(customMerge.range.end.row, this.rowCount - 1)
|
|
1208
|
+
},
|
|
1209
|
+
isCustom: !0
|
|
1210
|
+
};
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.getCellRange(col, row);
|
|
1214
|
+
}
|
|
1215
|
+
hasCustomMerge() {
|
|
1216
|
+
return !!this.internalProps.customMergeCell;
|
|
1217
|
+
}
|
|
1218
|
+
getCustomMerge(col, row) {
|
|
1219
|
+
if (this.internalProps.customMergeCell) {
|
|
1220
|
+
const customMerge = this.internalProps.customMergeCell(col, row, this);
|
|
1221
|
+
if (customMerge && customMerge.range && (isValid(customMerge.text) || customMerge.customLayout || this.customRender)) {
|
|
1222
|
+
if (customMerge.style) {
|
|
1223
|
+
const styleClass = this.internalProps.bodyHelper.getStyleClass("text"), style = customMerge.style, fullStyle = columnStyleContents.of(style, this.theme.bodyStyle, {
|
|
1224
|
+
col: col,
|
|
1225
|
+
row: row,
|
|
1226
|
+
table: this,
|
|
1227
|
+
value: customMerge.text,
|
|
1228
|
+
dataValue: this.getCellOriginValue(col, row),
|
|
1229
|
+
cellHeaderPaths: this.getCellHeaderPaths(col, row)
|
|
1230
|
+
}, styleClass, this.options.autoWrapText, this.theme);
|
|
1231
|
+
customMerge.style = fullStyle;
|
|
1232
|
+
}
|
|
1233
|
+
return customMerge.range = {
|
|
1234
|
+
start: {
|
|
1235
|
+
col: Math.max(customMerge.range.start.col, 0),
|
|
1236
|
+
row: Math.max(customMerge.range.start.row, 0)
|
|
1237
|
+
},
|
|
1238
|
+
end: {
|
|
1239
|
+
col: Math.min(customMerge.range.end.col, this.colCount - 1),
|
|
1240
|
+
row: Math.min(customMerge.range.end.row, this.rowCount - 1)
|
|
1241
|
+
},
|
|
1242
|
+
isCustom: !0
|
|
1243
|
+
}, customMerge;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
isCellRangeEqual(col, row, targetCol, targetRow) {
|
|
1248
|
+
return this.internalProps.layoutMap.isCellRangeEqual(col, row, targetCol, targetRow);
|
|
1249
|
+
}
|
|
1250
|
+
_getLayoutCellId(col, row) {
|
|
1251
|
+
return this.internalProps.layoutMap.getCellId(col, row);
|
|
1252
|
+
}
|
|
1253
|
+
getHeaderDescription(col, row) {
|
|
1254
|
+
var _a;
|
|
1255
|
+
const field = this._getHeaderLayoutMap(col, row), fieldDef = null == field ? void 0 : field.define, description = null !== (_a = null == fieldDef ? void 0 : fieldDef.description) && void 0 !== _a ? _a : null == field ? void 0 : field.description;
|
|
1256
|
+
if ("function" == typeof description) {
|
|
1257
|
+
return description({
|
|
1258
|
+
col: col,
|
|
1259
|
+
row: row,
|
|
1260
|
+
value: this.getCellValue(col, row),
|
|
1261
|
+
dataValue: this.getCellOriginValue(col, row)
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
return description;
|
|
1265
|
+
}
|
|
1266
|
+
setDropDownMenuHighlight(cells) {
|
|
1267
|
+
this.stateManager.setDropDownMenuHighlight(cells);
|
|
1268
|
+
}
|
|
1269
|
+
_dropDownMenuIsHighlight(colNow, rowNow, index) {
|
|
1270
|
+
return this.stateManager.dropDownMenuIsHighlight(colNow, rowNow, index);
|
|
1271
|
+
}
|
|
1272
|
+
isSeriesNumberInBody(col, row) {
|
|
1273
|
+
return this.internalProps.layoutMap && this.internalProps.layoutMap.isSeriesNumberInBody(col, row);
|
|
1274
|
+
}
|
|
1275
|
+
isSeriesNumberInHeader(col, row) {
|
|
1276
|
+
return this.internalProps.layoutMap && this.internalProps.layoutMap.isSeriesNumberInHeader(col, row);
|
|
1277
|
+
}
|
|
1278
|
+
isHeader(col, row) {
|
|
1279
|
+
return this.internalProps.layoutMap && this.internalProps.layoutMap.isHeader(col, row);
|
|
1280
|
+
}
|
|
1281
|
+
isColumnHeader(col, row) {
|
|
1282
|
+
var _a;
|
|
1283
|
+
return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isColumnHeader(col, row);
|
|
1284
|
+
}
|
|
1285
|
+
isRowHeader(col, row) {
|
|
1286
|
+
var _a;
|
|
1287
|
+
return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isRowHeader(col, row);
|
|
1288
|
+
}
|
|
1289
|
+
isCornerHeader(col, row) {
|
|
1290
|
+
var _a;
|
|
1291
|
+
return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isCornerHeader(col, row);
|
|
1292
|
+
}
|
|
1293
|
+
isFrozenColumn(col, row) {
|
|
1294
|
+
return this.isLeftFrozenColumn(col, row) || this.isRightFrozenColumn(col, row);
|
|
1295
|
+
}
|
|
1296
|
+
isLeftFrozenColumn(col, row) {
|
|
1297
|
+
var _a;
|
|
1298
|
+
return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isFrozenColumn(col, row);
|
|
1299
|
+
}
|
|
1300
|
+
isRightFrozenColumn(col, row) {
|
|
1301
|
+
var _a;
|
|
1302
|
+
return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isRightFrozenColumn(col, row);
|
|
1303
|
+
}
|
|
1304
|
+
isFrozenRow(col, row) {
|
|
1305
|
+
return this.isTopFrozenRow(col, row) || this.isBottomFrozenRow(col, row);
|
|
1306
|
+
}
|
|
1307
|
+
isTopFrozenRow(col, row) {
|
|
1308
|
+
var _a;
|
|
1309
|
+
return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isFrozenRow(col, row);
|
|
1310
|
+
}
|
|
1311
|
+
isBottomFrozenRow(col, row) {
|
|
1312
|
+
var _a;
|
|
1313
|
+
return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isBottomFrozenRow(col, row);
|
|
1314
|
+
}
|
|
1315
|
+
getCellInfo(col, row) {
|
|
1316
|
+
if (col >= 0 && row >= 0) {
|
|
1317
|
+
const colDef = this.isHeader(col, row) ? this.getHeaderDefine(col, row) : this.getBodyColumnDefine(col, row);
|
|
1318
|
+
return {
|
|
1319
|
+
col: col,
|
|
1320
|
+
row: row,
|
|
1321
|
+
field: this.getHeaderField(col, row),
|
|
1322
|
+
cellHeaderPaths: this.internalProps.layoutMap.getCellHeaderPaths(col, row),
|
|
1323
|
+
title: null == colDef ? void 0 : colDef.title,
|
|
1324
|
+
cellType: this.getCellType(col, row),
|
|
1325
|
+
originData: this.getCellOriginRecord(col, row),
|
|
1326
|
+
cellRange: this.getCellRangeRelativeRect({
|
|
1327
|
+
col: col,
|
|
1328
|
+
row: row
|
|
1329
|
+
}),
|
|
1330
|
+
value: this.getCellValue(col, row),
|
|
1331
|
+
dataValue: this.getCellOriginValue(col, row),
|
|
1332
|
+
cellLocation: this.getCellLocation(col, row),
|
|
1333
|
+
scaleRatio: this.canvas.getBoundingClientRect().width / this.canvas.offsetWidth
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
_hasField(field, col, row) {
|
|
1338
|
+
var _a;
|
|
1339
|
+
if (null === field) return !1;
|
|
1340
|
+
if (this.internalProps.layoutMap.isHeader(col, row)) return !1;
|
|
1341
|
+
const index = this.getRecordShowIndexByCell(col, row);
|
|
1342
|
+
return null === (_a = this.internalProps.dataSource) || void 0 === _a ? void 0 : _a.hasField(index, field);
|
|
1343
|
+
}
|
|
1344
|
+
_getCellStyle(col, row) {
|
|
1345
|
+
return getCellStyle(col, row, this);
|
|
1346
|
+
}
|
|
1347
|
+
clearCellStyleCache() {
|
|
1348
|
+
this.headerStyleCache.clear(), this.bodyStyleCache.clear(), this.bodyMergeTitleCache.clear(),
|
|
1349
|
+
this.bodyBottomStyleCache.clear();
|
|
1350
|
+
}
|
|
1351
|
+
clearRowHeightCache() {
|
|
1352
|
+
this.internalProps._rowHeightsMap.clear(), this._clearRowRangeHeightsMap();
|
|
1353
|
+
}
|
|
1354
|
+
clearColWidthCache() {
|
|
1355
|
+
this.internalProps._colWidthsMap.clear(), this._clearColRangeWidthsMap();
|
|
1356
|
+
}
|
|
1357
|
+
_canResizeColumn(col, row) {
|
|
1358
|
+
if (!(col >= 0 && row >= 0)) return !1;
|
|
1359
|
+
if (this.isCellRangeEqual(col, row, col + 1, row)) return !1;
|
|
1360
|
+
if ("none" === this.internalProps.columnResizeMode) return !1;
|
|
1361
|
+
if ("header" === this.internalProps.columnResizeMode) {
|
|
1362
|
+
if (!this.isHeader(col, row)) return !1;
|
|
1363
|
+
} else if ("body" === this.internalProps.columnResizeMode && this.isHeader(col, row)) return !1;
|
|
1364
|
+
const limit = this.colWidthsLimit[col];
|
|
1365
|
+
return !(limit && limit.min && limit.max) || limit.max !== limit.min;
|
|
1366
|
+
}
|
|
1367
|
+
_canResizeRow(col, row) {
|
|
1368
|
+
if (!(col >= 0 && row >= 0)) return !1;
|
|
1369
|
+
if (this.isCellRangeEqual(col, row, col, row + 1)) return !1;
|
|
1370
|
+
if ("none" === this.internalProps.rowResizeMode) return !1;
|
|
1371
|
+
if ("header" === this.internalProps.rowResizeMode) {
|
|
1372
|
+
if (!this.isHeader(col, row)) return !1;
|
|
1373
|
+
} else if ("body" === this.internalProps.rowResizeMode && this.isHeader(col, row)) return !1;
|
|
1374
|
+
return !0;
|
|
1375
|
+
}
|
|
1376
|
+
_canDragHeaderPosition(col, row) {
|
|
1377
|
+
var _a;
|
|
1378
|
+
if (this.isHeader(col, row) && (this.stateManager.isSelected(col, row) || "body" === (null === (_a = this.options.select) || void 0 === _a ? void 0 : _a.headerSelectMode) && checkCellInSelect(col, row, [ this.getCellRange(this.stateManager.select.cellPos.col, this.stateManager.select.cellPos.row) ]) || isCellDisableSelect(this, col, row))) {
|
|
1379
|
+
if ("disabled" === this.internalProps.frozenColDragHeaderMode && this.isFrozenColumn(col)) return !1;
|
|
1380
|
+
if (this.stateManager.isSelected(col, row)) {
|
|
1381
|
+
const selectRange = this.stateManager.select.ranges[0];
|
|
1382
|
+
if (this.isColumnHeader(col, row)) {
|
|
1383
|
+
if (selectRange.end.row !== this.rowCount - 1) return !1;
|
|
1384
|
+
} else {
|
|
1385
|
+
if (!this.isRowHeader(col, row)) return !1;
|
|
1386
|
+
if (selectRange.end.col !== this.colCount - 1) return !1;
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
const define = this.getHeaderDefine(col, row);
|
|
1390
|
+
if (!define) return !1;
|
|
1391
|
+
if (void 0 === define.dragHeader) {
|
|
1392
|
+
if ("all" === this.internalProps.dragHeaderMode) return !0;
|
|
1393
|
+
if ("column" === this.internalProps.dragHeaderMode) {
|
|
1394
|
+
if (this.isColumnHeader(col, row)) return !0;
|
|
1395
|
+
} else if ("row" === this.internalProps.dragHeaderMode && this.isRowHeader(col, row)) return !0;
|
|
1396
|
+
return !1;
|
|
1397
|
+
}
|
|
1398
|
+
return define.dragHeader;
|
|
1399
|
+
}
|
|
1400
|
+
return !1;
|
|
1401
|
+
}
|
|
1402
|
+
getCellIcons(col, row) {
|
|
1403
|
+
var _a, _b, _c;
|
|
1404
|
+
let icons;
|
|
1405
|
+
if (this.isHeader(col, row)) icons = this.internalProps.headerHelper.getIcons(col, row); else if (this.internalProps.layoutMap.isSeriesNumber(col, row)) {
|
|
1406
|
+
if (!this.options.groupBy || !(null === (_a = this.getCellRawRecord(col, row)) || void 0 === _a ? void 0 : _a.vtableMerge)) {
|
|
1407
|
+
(null === (_c = null === (_b = this.internalProps.layoutMap.getSeriesNumberBody(col, row)) || void 0 === _b ? void 0 : _b.define) || void 0 === _c ? void 0 : _c.dragOrder) && (icons = this.internalProps.rowSeriesNumberHelper.getIcons(col, row));
|
|
1408
|
+
}
|
|
1409
|
+
const cellValue = this.getCellValue(col, row), dataValue = this.getCellOriginValue(col, row), ctx = this.internalProps.context, cellIcon = this.internalProps.bodyHelper.getIcons(col, row, cellValue, dataValue, ctx);
|
|
1410
|
+
(null == icons ? void 0 : icons.length) > 0 ? icons = icons.concat(cellIcon) : (null == cellIcon ? void 0 : cellIcon.length) > 0 && (icons = cellIcon);
|
|
1411
|
+
} else {
|
|
1412
|
+
const cellValue = this.getCellValue(col, row), dataValue = this.getCellOriginValue(col, row), ctx = this.internalProps.context;
|
|
1413
|
+
icons = this.internalProps.bodyHelper.getIcons(col, row, cellValue, dataValue, ctx);
|
|
1414
|
+
}
|
|
1415
|
+
return icons;
|
|
1416
|
+
}
|
|
1417
|
+
showDropDownMenu(col, row, dropDownMenuOptions) {
|
|
1418
|
+
let menuType = "dropdown-menu";
|
|
1419
|
+
dropDownMenuOptions && (menuType = Array.isArray(dropDownMenuOptions.content) ? "dropdown-menu" : "container"),
|
|
1420
|
+
"html" === this.internalProps.menu.renderMode && (this.stateManager.menu.isShow = !0,
|
|
1421
|
+
this.internalProps.menuHandler._bindToCell(col, row, menuType, dropDownMenuOptions));
|
|
1422
|
+
}
|
|
1423
|
+
showTooltip(col, row, tooltipOptions) {
|
|
1424
|
+
"html" === this.internalProps.tooltip.renderMode && this.internalProps.tooltipHandler._bindToCell(col, row, tooltipOptions);
|
|
1425
|
+
}
|
|
1426
|
+
getCellStyle(col, row) {
|
|
1427
|
+
const actStyle = this._getCellStyle(col, row), theme = getStyleTheme(actStyle, this, col, row, getProp).theme, {autoWrapText: autoWrapText, lineClamp: lineClamp, textOverflow: textOverflow} = actStyle;
|
|
1428
|
+
return {
|
|
1429
|
+
textAlign: theme.text.textAlign,
|
|
1430
|
+
textBaseline: theme.text.textBaseline,
|
|
1431
|
+
bgColor: isBoolean(theme.group.fill) ? getProp("bgColor", actStyle, col, row, this) : theme.group.fill,
|
|
1432
|
+
color: isBoolean(theme.text.fill) ? getProp("color", actStyle, col, row, this) : theme.text.fill,
|
|
1433
|
+
strokeColor: isBoolean(theme.text.stroke) ? getProp("strokeColor", actStyle, col, row, this) : theme.text.stroke,
|
|
1434
|
+
fontFamily: theme.text.fontFamily,
|
|
1435
|
+
fontSize: theme.text.fontSize,
|
|
1436
|
+
fontWeight: theme.text.fontWeight,
|
|
1437
|
+
fontVariant: theme.text.fontVariant,
|
|
1438
|
+
fontStyle: theme.text.fontStyle,
|
|
1439
|
+
lineHeight: theme.text.lineHeight,
|
|
1440
|
+
autoWrapText: null != autoWrapText && autoWrapText,
|
|
1441
|
+
lineClamp: null != lineClamp ? lineClamp : "auto",
|
|
1442
|
+
textOverflow: textOverflow,
|
|
1443
|
+
borderColor: isBoolean(theme.group.stroke) ? getProp("borderColor", actStyle, col, row, this) : theme.group.stroke,
|
|
1444
|
+
borderLineWidth: theme.group.lineWidth,
|
|
1445
|
+
borderLineDash: theme.group.lineDash,
|
|
1446
|
+
underline: !!theme.text.underline,
|
|
1447
|
+
underlineDash: theme.text.underlineDash,
|
|
1448
|
+
underlineOffset: theme.text.underlineOffset,
|
|
1449
|
+
lineThrough: !!theme.text.lineThrough,
|
|
1450
|
+
padding: theme._vtable.padding,
|
|
1451
|
+
underlineWidth: theme.text.underline,
|
|
1452
|
+
lineThroughLineWidth: theme.text.lineThrough,
|
|
1453
|
+
_strokeArrayWidth: theme.group.strokeArrayWidth,
|
|
1454
|
+
_strokeArrayColor: theme.group.strokeArrayColor,
|
|
1455
|
+
_linkColor: getProp("linkColor", actStyle, col, row, this)
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
getAllBodyCells(colMaxCount, rowMaxCount) {
|
|
1459
|
+
const start_col = this.rowHeaderLevelCount, start_row = this.columnHeaderLevelCount, end_col = this.colCount - 1, end_row = this.rowCount - 1;
|
|
1460
|
+
return Array(Math.min(null != rowMaxCount ? rowMaxCount : 2e3, end_row - start_row + 1, this.rowCount)).fill(0).map(((_, i) => Array(Math.min(null != colMaxCount ? colMaxCount : 2e3, end_col - start_col + 1, this.colCount)).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
|
|
1461
|
+
}
|
|
1462
|
+
getAllCells(colMaxCount, rowMaxCount) {
|
|
1463
|
+
const start_col = 0, start_row = 0, end_col = this.colCount - 1, end_row = this.rowCount - 1;
|
|
1464
|
+
return Array(Math.min(null != rowMaxCount ? rowMaxCount : 2e3, end_row - start_row + 1, this.rowCount)).fill(0).map(((_, i) => Array(Math.min(null != colMaxCount ? colMaxCount : 2e3, end_col - start_col + 1, this.colCount)).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
|
|
1465
|
+
}
|
|
1466
|
+
getAllColumnHeaderCells() {
|
|
1467
|
+
const start_col = this.rowHeaderLevelCount, start_row = 0, end_col = this.colCount - 1, end_row = this.columnHeaderLevelCount - 1;
|
|
1468
|
+
return Array(end_row - start_row + 1).fill(0).map(((_, i) => Array(end_col - start_col + 1).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
|
|
1469
|
+
}
|
|
1470
|
+
getAllRowHeaderCells() {
|
|
1471
|
+
const start_col = 0, start_row = this.columnHeaderLevelCount, end_col = this.rowHeaderLevelCount - 1, end_row = this.rowCount - 1;
|
|
1472
|
+
return Array(end_row - start_row + 1).fill(0).map(((_, i) => Array(end_col - start_col + 1).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
|
|
1473
|
+
}
|
|
1474
|
+
getCopyValue() {
|
|
1475
|
+
var _a, _b, _c;
|
|
1476
|
+
if ((null === (_b = null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.ranges) || void 0 === _b ? void 0 : _b.length) > 0) {
|
|
1477
|
+
const ranges = this.stateManager.select.ranges;
|
|
1478
|
+
let minCol = Math.min(ranges[0].start.col, ranges[0].end.col), maxCol = Math.max(ranges[0].start.col, ranges[0].end.col), minRow = Math.min(ranges[0].start.row, ranges[0].end.row), maxRow = Math.max(ranges[0].start.row, ranges[0].end.row);
|
|
1479
|
+
ranges.forEach((a => {
|
|
1480
|
+
minCol = Math.min(minCol, a.start.col, a.end.col), maxCol = Math.max(maxCol, a.start.col, a.end.col),
|
|
1481
|
+
minRow = Math.min(minRow, a.start.row, a.end.row), maxRow = Math.max(maxRow, a.start.row, a.end.row);
|
|
1482
|
+
}));
|
|
1483
|
+
const isExistDataInRow = r => {
|
|
1484
|
+
let isExist = !1;
|
|
1485
|
+
return ranges.forEach((range => {
|
|
1486
|
+
const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row);
|
|
1487
|
+
minRow <= r && maxRow >= r && (isExist = !0);
|
|
1488
|
+
})), isExist;
|
|
1489
|
+
}, isExistDataInCol = c => {
|
|
1490
|
+
let isExist = !1;
|
|
1491
|
+
return ranges.forEach((range => {
|
|
1492
|
+
const minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
|
|
1493
|
+
minCol <= c && maxCol >= c && (isExist = !0);
|
|
1494
|
+
})), isExist;
|
|
1495
|
+
}, getRangeExistDataInCell = (c, r) => {
|
|
1496
|
+
let isExistRange;
|
|
1497
|
+
return ranges.forEach((range => {
|
|
1498
|
+
const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row), minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
|
|
1499
|
+
minCol <= c && maxCol >= c && minRow <= r && maxRow >= r && (isExistRange = range);
|
|
1500
|
+
})), isExistRange;
|
|
1501
|
+
}, getCopyCellValue = (col, row, range) => {
|
|
1502
|
+
const cellRange = this.getCellRange(col, row);
|
|
1503
|
+
let copyStartCol = cellRange.start.col, copyStartRow = cellRange.start.row;
|
|
1504
|
+
if (range) {
|
|
1505
|
+
const rangeMinCol = Math.min(range.start.col, range.end.col), rangeMinRow = Math.min(range.start.row, range.end.row);
|
|
1506
|
+
copyStartCol = Math.max(rangeMinCol, cellRange.start.col), copyStartRow = Math.max(rangeMinRow, cellRange.start.row);
|
|
1507
|
+
}
|
|
1508
|
+
if (copyStartCol !== col || copyStartRow !== row) return "";
|
|
1509
|
+
return this.getCellValue(col, row);
|
|
1510
|
+
};
|
|
1511
|
+
let copyValue = "";
|
|
1512
|
+
for (let r = minRow; r <= maxRow; r++) {
|
|
1513
|
+
if (isExistDataInRow(r)) {
|
|
1514
|
+
for (let c = minCol; c <= maxCol; c++) {
|
|
1515
|
+
if (isExistDataInCol(c)) {
|
|
1516
|
+
const range = getRangeExistDataInCell(c, r);
|
|
1517
|
+
if (range) {
|
|
1518
|
+
const copyCellValue = getCopyCellValue(c, r, range);
|
|
1519
|
+
if ("undefined" != typeof Promise && copyCellValue instanceof Promise) ; else {
|
|
1520
|
+
const strCellValue = isValid(copyCellValue) ? `${copyCellValue}` : "";
|
|
1521
|
+
/^\[object .*\]$/.exec(strCellValue) || (copyValue += strCellValue);
|
|
1522
|
+
}
|
|
1523
|
+
(c < range.end.col || c < maxCol) && (copyValue += "\t");
|
|
1524
|
+
} else copyValue += "\t";
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
r < maxRow && (copyValue += "\r\n");
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
return (null === (_c = this.options) || void 0 === _c ? void 0 : _c.formatCopyValue) && (copyValue = this.options.formatCopyValue(copyValue)),
|
|
1531
|
+
copyValue;
|
|
1532
|
+
}
|
|
1533
|
+
return "";
|
|
1534
|
+
}
|
|
1535
|
+
getSelectedCellInfos() {
|
|
1536
|
+
var _a;
|
|
1537
|
+
if (!(null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.ranges)) return null;
|
|
1538
|
+
const ranges = this.stateManager.select.ranges;
|
|
1539
|
+
if (!ranges.length) return [];
|
|
1540
|
+
let minCol = Math.min(ranges[0].start.col, ranges[0].end.col), maxCol = Math.max(ranges[0].start.col, ranges[0].end.col), minRow = Math.min(ranges[0].start.row, ranges[0].end.row), maxRow = Math.max(ranges[0].start.row, ranges[0].end.row);
|
|
1541
|
+
ranges.forEach((a => {
|
|
1542
|
+
minCol = Math.min(minCol, a.start.col, a.end.col), maxCol = Math.max(maxCol, a.start.col, a.end.col),
|
|
1543
|
+
minRow = Math.min(minRow, a.start.row, a.end.row), maxRow = Math.max(maxRow, a.start.row, a.end.row);
|
|
1544
|
+
}));
|
|
1545
|
+
const isExistDataInRow = r => {
|
|
1546
|
+
let isExist = !1;
|
|
1547
|
+
return ranges.forEach((range => {
|
|
1548
|
+
const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row);
|
|
1549
|
+
minRow <= r && maxRow >= r && (isExist = !0);
|
|
1550
|
+
})), isExist;
|
|
1551
|
+
}, isExistDataInCol = c => {
|
|
1552
|
+
let isExist = !1;
|
|
1553
|
+
return ranges.forEach((range => {
|
|
1554
|
+
const minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
|
|
1555
|
+
minCol <= c && maxCol >= c && (isExist = !0);
|
|
1556
|
+
})), isExist;
|
|
1557
|
+
}, getRangeExistDataInCell = (c, r) => {
|
|
1558
|
+
let isExistRange;
|
|
1559
|
+
return ranges.forEach((range => {
|
|
1560
|
+
const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row), minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
|
|
1561
|
+
minCol <= c && maxCol >= c && minRow <= r && maxRow >= r && (isExistRange = range);
|
|
1562
|
+
})), isExistRange;
|
|
1563
|
+
}, cellInfoArray = [];
|
|
1564
|
+
for (let r = minRow; r <= maxRow; r++) {
|
|
1565
|
+
if (isExistDataInRow(r)) {
|
|
1566
|
+
const cellInfoRow = [];
|
|
1567
|
+
for (let c = minCol; c <= maxCol; c++) {
|
|
1568
|
+
if (isExistDataInCol(c)) {
|
|
1569
|
+
if (getRangeExistDataInCell(c, r)) {
|
|
1570
|
+
const cellInfo = this.getCellInfo(c, r);
|
|
1571
|
+
cellInfoRow.push(cellInfo);
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
cellInfoArray.push(cellInfoRow);
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
return cellInfoArray;
|
|
1579
|
+
}
|
|
1580
|
+
getSelectedCellRanges() {
|
|
1581
|
+
const ranges = this.stateManager.select.ranges;
|
|
1582
|
+
return ranges.length ? cloneDeep(ranges) : [];
|
|
1583
|
+
}
|
|
1584
|
+
measureText(text, font) {
|
|
1585
|
+
return textMeasure.measureText(text, font);
|
|
1586
|
+
}
|
|
1587
|
+
measureTextBounds(attribute) {
|
|
1588
|
+
return measureTextBounds(attribute);
|
|
1589
|
+
}
|
|
1590
|
+
getCustomRender(col, row) {
|
|
1591
|
+
let customRender;
|
|
1592
|
+
if ("body" !== this.getCellLocation(col, row)) {
|
|
1593
|
+
const define = this.getHeaderDefine(col, row);
|
|
1594
|
+
customRender = null == define ? void 0 : define.headerCustomRender;
|
|
1595
|
+
} else {
|
|
1596
|
+
const define = this.getBodyColumnDefine(col, row);
|
|
1597
|
+
customRender = (null == define ? void 0 : define.customRender) || this.customRender;
|
|
1598
|
+
}
|
|
1599
|
+
return customRender;
|
|
1600
|
+
}
|
|
1601
|
+
getCustomLayout(col, row) {
|
|
1602
|
+
let customLayout;
|
|
1603
|
+
if ("body" !== this.getCellLocation(col, row)) {
|
|
1604
|
+
const define = this.getHeaderDefine(col, row);
|
|
1605
|
+
customLayout = null == define ? void 0 : define.headerCustomLayout;
|
|
1606
|
+
} else {
|
|
1607
|
+
const define = this.getBodyColumnDefine(col, row);
|
|
1608
|
+
customLayout = null == define ? void 0 : define.customLayout;
|
|
1609
|
+
}
|
|
1610
|
+
return customLayout;
|
|
1611
|
+
}
|
|
1612
|
+
hasAutoImageColumn() {
|
|
1613
|
+
return void 0 === this._hasAutoImageColumn && (this._hasAutoImageColumn = hasAutoImageColumn(this)),
|
|
1614
|
+
this._hasAutoImageColumn;
|
|
1615
|
+
}
|
|
1616
|
+
_getActiveChartInstance() {
|
|
1617
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1618
|
+
const cellGroup = this.scenegraph.getCell(null === (_b = null === (_a = this.stateManager.hover) || void 0 === _a ? void 0 : _a.cellPos) || void 0 === _b ? void 0 : _b.col, null === (_d = null === (_c = this.stateManager.hover) || void 0 === _c ? void 0 : _c.cellPos) || void 0 === _d ? void 0 : _d.row);
|
|
1619
|
+
return "chart" === (null === (_f = null === (_e = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _e ? void 0 : _e[0]) || void 0 === _f ? void 0 : _f.type) ? cellGroup.getChildren()[0].activeChartInstance : null;
|
|
1620
|
+
}
|
|
1621
|
+
cellIsInVisualView(col, row) {
|
|
1622
|
+
var _a, _b, _c, _d;
|
|
1623
|
+
const drawRange = this.getDrawRange(), rect = this.getCellRelativeRect(col, row);
|
|
1624
|
+
if (col < this.frozenColCount && row < this.frozenRowCount) return !0;
|
|
1625
|
+
let colHeaderRangeRect, rowHeaderRangeRect, bottomFrozenRangeRect, rightFrozenRangeRect;
|
|
1626
|
+
if (this.frozenRowCount >= 1 && (colHeaderRangeRect = this.getCellRangeRelativeRect({
|
|
1627
|
+
start: {
|
|
1628
|
+
col: 0,
|
|
1629
|
+
row: 0
|
|
1630
|
+
},
|
|
1631
|
+
end: {
|
|
1632
|
+
col: this.colCount - 1,
|
|
1633
|
+
row: this.frozenRowCount - 1
|
|
1634
|
+
}
|
|
1635
|
+
})), this.frozenColCount >= 1 && (rowHeaderRangeRect = this.getCellRangeRelativeRect({
|
|
1636
|
+
start: {
|
|
1637
|
+
col: 0,
|
|
1638
|
+
row: 0
|
|
1639
|
+
},
|
|
1640
|
+
end: {
|
|
1641
|
+
col: this.frozenColCount - 1,
|
|
1642
|
+
row: this.rowCount - 1
|
|
1643
|
+
}
|
|
1644
|
+
})), this.bottomFrozenRowCount >= 1 && (bottomFrozenRangeRect = this.getCellRangeRelativeRect({
|
|
1645
|
+
start: {
|
|
1646
|
+
col: 0,
|
|
1647
|
+
row: this.rowCount - this.bottomFrozenRowCount
|
|
1648
|
+
},
|
|
1649
|
+
end: {
|
|
1650
|
+
col: this.colCount - 1,
|
|
1651
|
+
row: this.rowCount - 1
|
|
1652
|
+
}
|
|
1653
|
+
})), this.rightFrozenColCount >= 1 && (rightFrozenRangeRect = this.getCellRangeRelativeRect({
|
|
1654
|
+
start: {
|
|
1655
|
+
col: this.colCount - this.rightFrozenColCount,
|
|
1656
|
+
row: 0
|
|
1657
|
+
},
|
|
1658
|
+
end: {
|
|
1659
|
+
col: this.colCount - 1,
|
|
1660
|
+
row: this.rowCount - 1
|
|
1661
|
+
}
|
|
1662
|
+
})), rect.top >= drawRange.top && rect.bottom <= drawRange.bottom && rect.left >= drawRange.left && rect.right <= drawRange.right) {
|
|
1663
|
+
if (this.isFrozenCell(col, row)) return !0;
|
|
1664
|
+
if (rect.top >= (null !== (_a = null == colHeaderRangeRect ? void 0 : colHeaderRangeRect.bottom) && void 0 !== _a ? _a : rect.top) && rect.left >= (null !== (_b = null == rowHeaderRangeRect ? void 0 : rowHeaderRangeRect.right) && void 0 !== _b ? _b : rect.left) && rect.bottom <= (null !== (_c = null == bottomFrozenRangeRect ? void 0 : bottomFrozenRangeRect.top) && void 0 !== _c ? _c : rect.bottom) && rect.right <= (null !== (_d = null == rightFrozenRangeRect ? void 0 : rightFrozenRangeRect.left) && void 0 !== _d ? _d : rect.right)) return !0;
|
|
1665
|
+
}
|
|
1666
|
+
return !1;
|
|
1667
|
+
}
|
|
1668
|
+
getCustomMergeValue(col, row) {
|
|
1669
|
+
if (this.internalProps.customMergeCell) {
|
|
1670
|
+
const customMerge = this.getCustomMerge(col, row);
|
|
1671
|
+
if (customMerge) {
|
|
1672
|
+
const {text: text} = customMerge;
|
|
1673
|
+
return text;
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
exportImg() {
|
|
1678
|
+
return this.scenegraph.stage.toCanvas().toDataURL();
|
|
1679
|
+
}
|
|
1680
|
+
exportCellImg(col, row, options) {
|
|
1681
|
+
var _a, _b, _c, _d;
|
|
1682
|
+
const isInView = this.cellIsInVisualView(col, row), {scrollTop: scrollTop, scrollLeft: scrollLeft} = this;
|
|
1683
|
+
isInView || this.scrollToCell({
|
|
1684
|
+
col: col,
|
|
1685
|
+
row: row
|
|
1686
|
+
});
|
|
1687
|
+
const cellRect = this.getCellRelativeRect(col, row);
|
|
1688
|
+
(null === (_b = null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.ranges) || void 0 === _b ? void 0 : _b.length) > 0 && hideCellSelectBorder(this.scenegraph);
|
|
1689
|
+
const {col: hoverCol, row: hoverRow} = this.stateManager.hover.cellPos;
|
|
1690
|
+
let oldFill, oldStroke;
|
|
1691
|
+
if (this.stateManager.updateHoverPos(-1, -1), this.scenegraph.component.hideVerticalScrollBar(),
|
|
1692
|
+
this.scenegraph.component.hideHorizontalScrollBar(), this.scenegraph.tableGroup.border.setAttribute("visible", !1),
|
|
1693
|
+
null == options ? void 0 : options.disableBackground) {
|
|
1694
|
+
const cellGroup = this.scenegraph.getCell(col, row);
|
|
1695
|
+
oldFill = cellGroup.attribute.fill, cellGroup.setAttribute("fill", "transparent");
|
|
1696
|
+
}
|
|
1697
|
+
if (null == options ? void 0 : options.disableBorder) {
|
|
1698
|
+
const cellGroup = this.scenegraph.getCell(col, row);
|
|
1699
|
+
oldStroke = cellGroup.attribute.stroke, cellGroup.setAttribute("stroke", !1);
|
|
1700
|
+
}
|
|
1701
|
+
this.scenegraph.renderSceneGraph();
|
|
1702
|
+
let sizeOffset = 0;
|
|
1703
|
+
"bottom-right" === this.theme.cellBorderClipDirection && (sizeOffset = 1);
|
|
1704
|
+
const c = this.scenegraph.stage.toCanvas(!1, (new AABBBounds).set(cellRect.left + this.tableX + 1, cellRect.top + this.tableY + 1, cellRect.right + this.tableX - sizeOffset, cellRect.bottom + this.tableY - sizeOffset));
|
|
1705
|
+
if (isInView || (this.setScrollTop(scrollTop), this.setScrollLeft(scrollLeft)),
|
|
1706
|
+
this.scenegraph.tableGroup.border.setAttribute("visible", !0), oldFill) {
|
|
1707
|
+
this.scenegraph.getCell(col, row).setAttribute("fill", oldFill);
|
|
1708
|
+
}
|
|
1709
|
+
if (oldStroke) {
|
|
1710
|
+
this.scenegraph.getCell(col, row).setAttribute("stroke", oldStroke);
|
|
1711
|
+
}
|
|
1712
|
+
return (null === (_d = null === (_c = this.stateManager.select) || void 0 === _c ? void 0 : _c.ranges) || void 0 === _d ? void 0 : _d.length) > 0 && restoreCellSelectBorder(this.scenegraph),
|
|
1713
|
+
this.stateManager.updateHoverPos(hoverCol, hoverRow), this.scenegraph.updateNextFrame(),
|
|
1714
|
+
c.toDataURL();
|
|
1715
|
+
}
|
|
1716
|
+
exportCellRangeImg(cellRange) {
|
|
1717
|
+
var _a, _b, _c, _d;
|
|
1718
|
+
const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, minCol = Math.min(cellRange.start.col, cellRange.end.col), minRow = Math.min(cellRange.start.row, cellRange.end.row), maxCol = Math.max(cellRange.start.col, cellRange.end.col), maxRow = Math.max(cellRange.start.row, cellRange.end.row), isInView = this.cellIsInVisualView(minCol, minRow), isMaxCellInView = this.cellIsInVisualView(maxCol, maxRow);
|
|
1719
|
+
isInView && isMaxCellInView || this.scrollToCell({
|
|
1720
|
+
col: minCol,
|
|
1721
|
+
row: minRow
|
|
1722
|
+
});
|
|
1723
|
+
const cellRect = this.getCellRangeRelativeRect({
|
|
1724
|
+
start: {
|
|
1725
|
+
col: minCol,
|
|
1726
|
+
row: minRow
|
|
1727
|
+
},
|
|
1728
|
+
end: {
|
|
1729
|
+
col: maxCol,
|
|
1730
|
+
row: maxRow
|
|
1731
|
+
}
|
|
1732
|
+
});
|
|
1733
|
+
(null === (_b = null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.ranges) || void 0 === _b ? void 0 : _b.length) > 0 && hideCellSelectBorder(this.scenegraph);
|
|
1734
|
+
const {col: hoverCol, row: hoverRow} = this.stateManager.hover.cellPos;
|
|
1735
|
+
this.stateManager.updateHoverPos(-1, -1), this.scenegraph.component.hideVerticalScrollBar(),
|
|
1736
|
+
this.scenegraph.component.hideHorizontalScrollBar(), this.scenegraph.renderSceneGraph();
|
|
1737
|
+
const base64Image = this.scenegraph.stage.toCanvas(!1, (new AABBBounds).set(cellRect.left + this.tableX + 1, cellRect.top + this.tableY + 1, cellRect.right + this.tableX, cellRect.bottom + this.tableY)).toDataURL();
|
|
1738
|
+
return isInView && isMaxCellInView || (this.setScrollTop(scrollTop), this.setScrollLeft(scrollLeft)),
|
|
1739
|
+
(null === (_d = null === (_c = this.stateManager.select) || void 0 === _c ? void 0 : _c.ranges) || void 0 === _d ? void 0 : _d.length) > 0 && restoreCellSelectBorder(this.scenegraph),
|
|
1740
|
+
this.stateManager.updateHoverPos(hoverCol, hoverRow), base64Image;
|
|
1741
|
+
}
|
|
1742
|
+
exportCanvas() {
|
|
1743
|
+
return this.scenegraph.stage.toCanvas();
|
|
1744
|
+
}
|
|
1745
|
+
getImageBuffer(type = "image/png") {
|
|
1746
|
+
if ("node" !== this.options.mode) return;
|
|
1747
|
+
this.render();
|
|
1748
|
+
const stage = this.scenegraph.stage;
|
|
1749
|
+
if (stage) {
|
|
1750
|
+
const contentWidth = this.tableX + this.getAllColsWidth(), contentHeight = this.tableY + this.getAllRowsHeight();
|
|
1751
|
+
if (contentWidth >= this.canvasWidth && contentHeight >= this.canvasHeight) {
|
|
1752
|
+
stage.render();
|
|
1753
|
+
return stage.window.getImageBuffer(type);
|
|
1754
|
+
}
|
|
1755
|
+
return this.scenegraph.stage.toCanvas(!1, (new AABBBounds).set(0, 0, Math.min(this.canvasWidth, contentWidth), Math.min(this.canvasHeight, contentHeight))).toBuffer(type);
|
|
1756
|
+
}
|
|
1757
|
+
return null;
|
|
1758
|
+
}
|
|
1759
|
+
getBodyIndexByTableIndex(col, row) {
|
|
1760
|
+
return {
|
|
1761
|
+
col: col - this.rowHeaderLevelCount - this.leftRowSeriesNumberCount,
|
|
1762
|
+
row: row - this.columnHeaderLevelCount
|
|
1763
|
+
};
|
|
1764
|
+
}
|
|
1765
|
+
getTableIndexByBodyIndex(col, row) {
|
|
1766
|
+
return {
|
|
1767
|
+
col: col + this.rowHeaderLevelCount + this.leftRowSeriesNumberCount,
|
|
1768
|
+
row: row + this.columnHeaderLevelCount
|
|
1769
|
+
};
|
|
1770
|
+
}
|
|
1771
|
+
onVChartEvent(type, query, callback) {
|
|
1772
|
+
this._chartEventMap[type] || (this._chartEventMap[type] = []), "function" == typeof query ? this._chartEventMap[type].push({
|
|
1773
|
+
callback: query
|
|
1774
|
+
}) : this._chartEventMap[type].push({
|
|
1775
|
+
callback: callback,
|
|
1776
|
+
query: query
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
offVChartEvent(type, callback) {
|
|
1780
|
+
this._chartEventMap[type] && (this._chartEventMap[type] = callback ? this._chartEventMap[type].filter((e => e.callback !== callback)) : []);
|
|
1781
|
+
}
|
|
1782
|
+
_bindChartEvent(activeChartInstance) {
|
|
1783
|
+
if (activeChartInstance) for (const key in this._chartEventMap) (this._chartEventMap[key] || []).forEach((e => {
|
|
1784
|
+
e.query ? activeChartInstance.on(key, e.query, e.callback) : activeChartInstance.on(key, e.callback);
|
|
1785
|
+
}));
|
|
1786
|
+
}
|
|
1787
|
+
changeRecordOrder(source, target) {}
|
|
1788
|
+
hasCustomCellStyle(customStyleId) {
|
|
1789
|
+
var _a;
|
|
1790
|
+
return null === (_a = this.customCellStylePlugin) || void 0 === _a ? void 0 : _a.hasCustomCellStyle(customStyleId);
|
|
1791
|
+
}
|
|
1792
|
+
registerCustomCellStyle(customStyleId, customStyle) {
|
|
1793
|
+
var _a;
|
|
1794
|
+
null === (_a = this.customCellStylePlugin) || void 0 === _a || _a.registerCustomCellStyle(customStyleId, customStyle);
|
|
1795
|
+
}
|
|
1796
|
+
arrangeCustomCellStyle(cellPos, customStyleId, forceFastUpdate) {
|
|
1797
|
+
var _a;
|
|
1798
|
+
null === (_a = this.customCellStylePlugin) || void 0 === _a || _a.arrangeCustomCellStyle(cellPos, customStyleId, forceFastUpdate);
|
|
1799
|
+
}
|
|
1800
|
+
isSeriesNumber(col, row) {
|
|
1801
|
+
return this.internalProps.layoutMap.isSeriesNumber(col, row);
|
|
1802
|
+
}
|
|
1803
|
+
isHasSeriesNumber() {
|
|
1804
|
+
var _a;
|
|
1805
|
+
return (null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.leftRowSeriesNumberColumnCount) > 0;
|
|
1806
|
+
}
|
|
1807
|
+
get leftRowSeriesNumberCount() {
|
|
1808
|
+
var _a, _b;
|
|
1809
|
+
return null !== (_b = null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.leftRowSeriesNumberColumnCount) && void 0 !== _b ? _b : 0;
|
|
1810
|
+
}
|
|
1811
|
+
setMinMaxLimitWidth(setWidth = !1) {
|
|
1812
|
+
var _a, _b;
|
|
1813
|
+
const internalProps = this.internalProps;
|
|
1814
|
+
for (let col = 0; col < internalProps.layoutMap.columnWidths.length; col++) {
|
|
1815
|
+
if (this.internalProps._widthResizedColMap.has(col)) continue;
|
|
1816
|
+
const {width: width, minWidth: minWidth, maxWidth: maxWidth} = null !== (_b = null === (_a = internalProps.layoutMap.columnWidths) || void 0 === _a ? void 0 : _a[col]) && void 0 !== _b ? _b : {};
|
|
1817
|
+
setWidth && width && ("string" == typeof width && "auto" !== width || "number" == typeof width && width > 0) && this._setColWidth(col, width),
|
|
1818
|
+
minWidth && ("number" == typeof minWidth && minWidth > 0 || "string" == typeof minWidth) && this.setMinColWidth(col, minWidth),
|
|
1819
|
+
maxWidth && ("number" == typeof maxWidth && maxWidth > 0 || "string" == typeof maxWidth) && this.setMaxColWidth(col, maxWidth);
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
setSortedIndexMap(field, filedMap) {
|
|
1823
|
+
var _a;
|
|
1824
|
+
null === (_a = this.dataSource) || void 0 === _a || _a.setSortedIndexMap(field, filedMap);
|
|
1825
|
+
}
|
|
1826
|
+
checkReactCustomLayout() {
|
|
1827
|
+
this.reactCustomLayout || (this.reactCustomLayout = new ReactCustomLayout(this));
|
|
1828
|
+
}
|
|
1829
|
+
get bodyDomContainer() {
|
|
1830
|
+
return this.internalProps.bodyDomContainer;
|
|
1831
|
+
}
|
|
1832
|
+
get headerDomContainer() {
|
|
1833
|
+
return this.internalProps.headerDomContainer;
|
|
1834
|
+
}
|
|
1835
|
+
get frozenBodyDomContainer() {
|
|
1836
|
+
return this.internalProps.frozenBodyDomContainer;
|
|
1837
|
+
}
|
|
1838
|
+
get frozenHeaderDomContainer() {
|
|
1839
|
+
return this.internalProps.frozenHeaderDomContainer;
|
|
1840
|
+
}
|
|
1841
|
+
get rightFrozenBodyDomContainer() {
|
|
1842
|
+
return this.internalProps.rightFrozenBodyDomContainer;
|
|
1843
|
+
}
|
|
1844
|
+
get rightFrozenHeaderDomContainer() {
|
|
1845
|
+
return this.internalProps.rightFrozenHeaderDomContainer;
|
|
1846
|
+
}
|
|
1847
|
+
get frozenBottomDomContainer() {
|
|
1848
|
+
return this.internalProps.frozenBottomDomContainer;
|
|
1849
|
+
}
|
|
1850
|
+
get bottomDomContainer() {
|
|
1851
|
+
return this.internalProps.bottomDomContainer;
|
|
1852
|
+
}
|
|
1853
|
+
get rightFrozenBottomDomContainer() {
|
|
1854
|
+
return this.internalProps.rightFrozenBottomDomContainer;
|
|
1855
|
+
}
|
|
1856
|
+
showMoverLine(col, row) {
|
|
1857
|
+
this.scenegraph.component.showMoveCol(col, row, 0), this.scenegraph.renderSceneGraph();
|
|
1858
|
+
}
|
|
1859
|
+
hideMoverLine(col, row) {
|
|
1860
|
+
this.scenegraph.component.hideMoveCol(), this.scenegraph.renderSceneGraph();
|
|
1861
|
+
}
|
|
1862
|
+
disableScroll() {
|
|
1863
|
+
this.eventManager.disableScroll();
|
|
1864
|
+
}
|
|
1865
|
+
enableScroll() {
|
|
1866
|
+
this.eventManager.enableScroll();
|
|
1867
|
+
}
|
|
1868
|
+
getGroupTitleLevel(col, row) {}
|
|
1869
|
+
scrollToRow(row, animationOption) {
|
|
1870
|
+
animationOption ? this.animationManager.scrollTo({
|
|
1871
|
+
row: row
|
|
1872
|
+
}, animationOption) : this.scrollToCell({
|
|
1873
|
+
row: row
|
|
1874
|
+
});
|
|
1875
|
+
}
|
|
1876
|
+
scrollToCol(col, animationOption) {
|
|
1877
|
+
animationOption ? this.animationManager.scrollTo({
|
|
1878
|
+
col: col
|
|
1879
|
+
}, animationOption) : this.scrollToCell({
|
|
1880
|
+
col: col
|
|
1881
|
+
});
|
|
1882
|
+
}
|
|
1883
|
+
scrollToCell(cellAddr, animationOption) {
|
|
1884
|
+
if (animationOption) return void this.animationManager.scrollTo(cellAddr, animationOption);
|
|
1885
|
+
const drawRange = this.getDrawRange();
|
|
1886
|
+
if (isValid(cellAddr.col) && cellAddr.col >= this.frozenColCount) {
|
|
1887
|
+
const frozenWidth = this.getFrozenColsWidth(), left = this.getColsWidth(0, cellAddr.col - 1);
|
|
1888
|
+
this.scrollLeft = Math.min(left - frozenWidth, this.getAllColsWidth() - drawRange.width);
|
|
1889
|
+
}
|
|
1890
|
+
if (isValid(cellAddr.row) && cellAddr.row >= this.frozenRowCount) {
|
|
1891
|
+
const frozenHeight = this.getFrozenRowsHeight(), top = this.getRowsHeight(0, cellAddr.row - 1);
|
|
1892
|
+
this.scrollTop = Math.min(top - frozenHeight, this.getAllRowsHeight() - drawRange.height);
|
|
1893
|
+
}
|
|
1894
|
+
this.render();
|
|
1895
|
+
}
|
|
1896
|
+
checkHasColumnAutoWidth() {
|
|
1897
|
+
return checkHasColumnAutoWidth(this);
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
//# sourceMappingURL=BaseTable.js.map
|