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 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=pivot-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/layout/pivot-layout.ts"],"names":[],"mappings":"","file":"pivot-layout.js","sourcesContent":["// import type { Dataset } from '../dataset/dataset';\n// import { isValid, transpose } from '../tools/util';\n// import type { HeaderData, IndicatorData, LayoutMapAPI, WidthData } from '../ts-types/list-table/layout-map/api';\n// // import { EmptyDataCache } from './utils';\n// import {\n// type CellAddress,\n// type CellRange,\n// type CellLocation,\n// type ICornerDefine,\n// type IDataConfig,\n// type IDimension,\n// type IDimensionInfo,\n// type IHeaderTreeDefine,\n// type IIndicator,\n// type IPivotTableCellHeaderPaths,\n// type ITitleDefine,\n// type LayoutObjectId,\n// type ShowColumnRowType,\n// HierarchyState\n// } from '../ts-types';\n// import type { PivotTable } from '../PivotTable';\n// import { IndicatorDimensionKeyPlaceholder } from '../tools/global';\n// import type { PivotChart } from '../PivotChart';\n// import { cloneDeep, isArray } from '@visactor/vutils';\n// import { getAxisConfigInPivotChart } from './chart-helper/get-axis-config';\n// import { getChartAxes, getChartDataId, getChartSpec, getRawChartSpec } from './chart-helper/get-chart-spec';\n// import type { ITableAxisOption } from '../ts-types/component/axis';\n// import { DimensionTree, type IPivotLayoutHeadNode } from './pivot-layout-helper';\n// import type { ILinkDimension } from '../ts-types/pivot-table/dimension/link-dimension';\n// import type { IImageDimension } from '../ts-types/pivot-table/dimension/image-dimension';\n\n// export const sharedVar = { seqId: 0 };\n// let colIndex = 0;\n\n// import type { TextStyle } from '../body-helper/style';\n// import { getQuadProps } from '../scenegraph/utils/padding';\n// /**\n// * 简化配置,包含数据处理的 布局辅助计算类\n// */\n\n// const EMPTY_HEADER: HeaderData = {\n// isEmpty: true,\n// id: undefined,\n// field: undefined,\n// headerType: undefined,\n// define: undefined\n// };\n// export class PivotLayoutMap implements LayoutMapAPI {\n// private _headerObjects: HeaderData[] = [];\n// private _headerObjectMap: { [key: LayoutObjectId]: HeaderData } = {};\n// // private _emptyDataCache = new EmptyDataCache();\n// private _indicatorObjects: IndicatorData[] = [];\n// private _columnWidths: WidthData[] = [];\n// rowDimensionTree: DimensionTree;\n// rowTree: IHeaderTreeDefine[];\n// columnTree: IHeaderTreeDefine[];\n// rowsDefine: (IDimension | string)[];\n// columnsDefine: (IDimension | string)[];\n// indicatorsDefine: (IIndicator | string)[];\n\n// indicatorKeys: string[];\n\n// _showRowHeader = true;\n// _showColumnHeader = true;\n// _rowHeaderTitle: ITitleDefine;\n// _columnHeaderTitle: ITitleDefine;\n// // transpose: boolean = false;\n// /**\n// * 通过indicatorsAsCol和hideIndicatorName判断指标值显示在column还是row 还是根本不显示\n// */\n// private _indicatorShowType: ShowColumnRowType = 'column';\n// indicatorsAsCol = true;\n// hideIndicatorName = false;\n// indicatorDimensionKey: string = IndicatorDimensionKeyPlaceholder;\n// indicatorTitle: string;\n// /**\n// * 对应dataset中的rowKeys,行表头的每行表头键值,包含小计总计\n// */\n// private rowKeysPath: string[][];\n// /**\n// * 对应dataset中的colKeys,列表头的每列表头键值,包含小计总计\n// */\n// private colKeysPath: string[][];\n// /**\n// * 通过colKeys的二维数组,转置得到。这样就对应单元格横向结构\n// */\n// private convertColKeys: string[][];\n\n// /**\n// * 对应dataset中的rowAttrs,行表头对应的维度名\n// */\n// rows: string[];\n// /**\n// * 对应dataset中的colAttrs,列表头对应的维度名\n// */\n// columns: string[];\n// /**\n// * rowAttrs和指标显示的结合,如果指标显示在行表头,这里会比rowAttrs多一个值\n// */\n// private rowShowAttrs: string[];\n// /**\n// * rowAttrs和指标显示的结合,如果指标显示在列表头,这里会比colAttrs多一个值\n// */\n// private colShowAttrs: string[];\n// /**\n// * 对应dataset中的tree,body每一个单元格对应的计算结果\n// */\n// tree: any;\n\n// dataset: Dataset;\n// dataConfig: IDataConfig;\n\n// _rowCount: number;\n// _colCount: number;\n// _bodyRowCount: number;\n\n// // dimensions: IDimension[];\n// cornerSetting: ICornerDefine;\n// _table: PivotTable | PivotChart;\n\n// /**层级维度结构显示形式 */\n// rowHierarchyType?: 'grid' | 'tree';\n// rowExpandLevel?: number;\n// rowHierarchyIndent?: number;\n// //#region pivotChart专有\n// hasTwoIndicatorAxes: boolean;\n// /** 图表spec中barWidth的收集 */\n// _chartItemSpanSize: number;\n// _chartPaddingInner: number;\n// _chartPaddingOuter: number;\n// _chartItemBandSize: number;\n// _chartPadding?: number | number[];\n// constructor(table: PivotTable | PivotChart, dataset: Dataset) {\n// this._table = table;\n// this._chartItemSpanSize = 0;\n// this._chartItemBandSize = 0;\n// this.rowHierarchyType = (table as PivotTable).options.rowHierarchyType;\n// this.rowExpandLevel = (table as PivotTable).options.rowExpandLevel ?? 1;\n// this.rowHierarchyIndent = (table as PivotTable).options.rowHierarchyIndent ?? 20;\n// this.rowTree = table.options.rowTree;\n// this.columnTree = table.options.columnTree;\n// this.rowsDefine = table.options.rows ?? [];\n// this.columnsDefine = table.options.columns ?? [];\n// this.indicatorsDefine = table.options.indicators ?? [];\n// this.indicatorTitle = table.options.indicatorTitle;\n// this.dataset = dataset;\n// this.dataConfig = dataset.dataConfig;\n// this.indicatorKeys = dataset.indicatorKeys;\n// this.indicatorsAsCol = table.options.indicatorsAsCol ?? true;\n// this.hideIndicatorName = table.options.hideIndicatorName ?? false;\n// this.showRowHeader = table.options.showRowHeader ?? true;\n// this.showColumnHeader = table.options.showColumnHeader ?? true;\n// this.rowHeaderTitle = table.options.rowHeaderTitle;\n// this.columnHeaderTitle = table.options.columnHeaderTitle;\n// // this.dimensions = [];\n// this.cornerSetting = table.options.corner ?? { titleOnDimension: 'column' };\n\n// this.columns = dataset.columns;\n// this.rows = dataset.rows;\n// this.rowKeysPath = dataset.rowKeysPath;\n// this.colKeysPath = dataset.colKeysPath;\n\n// this.tree = dataset.tree;\n\n// if (!this.rowTree) {\n// this.rowTree = dataset.rowHeaderTree;\n// this.rowDimensionTree = new DimensionTree(\n// (this.rowTree as IPivotLayoutHeadNode[]) ?? [],\n// this.rowHierarchyType,\n// this.rowExpandLevel\n// );\n// const _headerCellIds: any[] = [];\n// this._addHeadersForTreeMode(\n// this.rowKeysPath,\n// 0,\n// this.rowDimensionTree.tree.children,\n// [],\n// this.rowDimensionTree.totalLevel,\n// true,\n// this.rowsDefine\n// );\n// this.rowKeysPath = transpose(this.rowKeysPath);\n// this._headerObjectMap = this._headerObjects.reduce((o, e) => {\n// o[e.id as number] = e;\n// return o;\n// }, {} as { [key: LayoutObjectId]: HeaderData });\n// }\n// this.initState();\n// this.convertColKeys = transpose(this.colKeysPath);\n// }\n// /**\n// * 初始化该类的计算变量\n// */\n// private initState() {\n// if (this.indicatorsAsCol && !this.hideIndicatorName) {\n// this._indicatorShowType = 'column';\n// } else if (!this.indicatorsAsCol && !this.hideIndicatorName) {\n// this._indicatorShowType = 'row';\n// } else {\n// this._indicatorShowType = 'none';\n// }\n\n// this.colShowAttrs =\n// this._indicatorShowType === 'column' ? this.columns.concat(this.indicatorDimensionKey) : Array.from(this.columns);\n// this.rowShowAttrs =\n// this._indicatorShowType === 'row' ? this.rows.concat(this.indicatorDimensionKey) : Array.from(this.rows);\n\n// this._bodyRowCount = this.rowKeysPath.length * (!this.indicatorsAsCol ? this.indicatorKeys.length : 1);\n// this.initHeaderObjects();\n// this.initIndicatorObjects();\n// //#region 处理headerTitle\n// if (this.rowHeaderTitle) {\n// const cell_id = 'rowHeaderTitle';\n// const title =\n// typeof this.rowHeaderTitle.title === 'string'\n// ? this.rowHeaderTitle.title\n// : (this.rowsDefine.reduce((title: string, value) => {\n// if (typeof value === 'string') {\n// return title;\n// }\n// return title + (title ? `/${value.title}` : `${value.title}`);\n// }, '') as string);\n// this._headerObjectMap[title] = {\n// id: title,\n// title,\n// field: cell_id,\n// headerType: this.rowHeaderTitle.headerType ?? 'text',\n// style: this.rowHeaderTitle.headerStyle,\n// define: <any>{\n// // id:\n// }\n// };\n// this._headerObjectMap[cell_id] = {\n// id: cell_id,\n// title: '',\n// field: cell_id,\n// headerType: this.cornerSetting.headerType ?? 'text',\n// style: this.cornerSetting.headerStyle,\n// define: <any>{\n// // id:\n// }\n// };\n// this._headerObjects.push(this._headerObjectMap[title]);\n// this._headerObjects.push(this._headerObjectMap[cell_id]);\n// this.rowShowAttrs.unshift(cell_id);\n// this.rowKeysPath.forEach((rowKey, index) => {\n// rowKey.unshift(title);\n// });\n// }\n// if (this.columnHeaderTitle) {\n// const cell_id = 'columnHeaderTitleCell';\n// const title =\n// typeof this.columnHeaderTitle.title === 'string'\n// ? this.columnHeaderTitle.title\n// : (this.columnsDefine.reduce((title: string, value) => {\n// if (typeof value === 'string') {\n// return title;\n// }\n// return title + (title ? `/${value.title}` : `${value.title}`);\n// }, '') as string);\n// this._headerObjectMap[title] = {\n// id: title,\n// title,\n// field: cell_id,\n// headerType: this.columnHeaderTitle.headerType ?? 'text',\n// style: this.columnHeaderTitle.headerStyle,\n// define: <any>{\n// // id:\n// }\n// };\n// this._headerObjectMap[cell_id] = {\n// id: cell_id,\n// title: '',\n// field: cell_id,\n// headerType: this.cornerSetting.headerType ?? 'text',\n// style: this.cornerSetting.headerStyle,\n// define: <any>{\n// // id:\n// }\n// };\n// this._headerObjects.push(this._headerObjectMap[title]);\n// this._headerObjects.push(this._headerObjectMap[cell_id]);\n// this.colShowAttrs.unshift(cell_id);\n// this.colKeysPath.forEach((columnKey, index) => {\n// columnKey.unshift(title);\n// });\n// }\n\n// if (this._table.isPivotChart()) {\n// this.hasTwoIndicatorAxes = this._indicatorObjects.some(indicatorObject => {\n// if (\n// indicatorObject.chartSpec &&\n// indicatorObject.chartSpec.series &&\n// indicatorObject.chartSpec.series.length > 1\n// ) {\n// return true;\n// }\n// return false;\n// });\n// this._chartItemSpanSize = 0;\n// this._chartItemBandSize = 0;\n// // this._chartPadding ;\n// this._indicatorObjects.find(indicatorObject => {\n// if ((indicatorObject?.style as TextStyle)?.padding) {\n// this._chartPadding = (indicatorObject.style as TextStyle).padding as number;\n// }\n// if (indicatorObject.chartSpec?.barWidth) {\n// this._chartItemSpanSize = indicatorObject.chartSpec?.barWidth;\n// }\n// const bandAxisConfig = indicatorObject.chartSpec?.axes?.find((axis: any) => {\n// return axis.type === 'band';\n// });\n// if (bandAxisConfig?.bandSize) {\n// this._chartItemBandSize = bandAxisConfig?.bandSize;\n// this._chartPaddingInner =\n// (isArray(bandAxisConfig.paddingInner) ? bandAxisConfig.paddingInner[0] : bandAxisConfig.paddingInner) ?? 0;\n// this._chartPaddingOuter =\n// (isArray(bandAxisConfig.paddingOuter) ? bandAxisConfig.paddingOuter[0] : bandAxisConfig.paddingOuter) ?? 0;\n// }\n// if (this._chartItemSpanSize > 0) {\n// return true;\n// }\n// indicatorObject.chartSpec.series?.find((seriesObject: any) => {\n// if (seriesObject.barWidth) {\n// this._chartItemSpanSize = seriesObject.barWidth;\n// }\n// if (this._chartItemSpanSize > 0) {\n// return true;\n// }\n// return false;\n// });\n// // if (this._chartItemSpanSize > 0) {\n// // return true;\n// // }\n// return false;\n// });\n\n// if (this.indicatorsAsCol) {\n// const cell_id = 'rowHeaderEmpty';\n// this._headerObjectMap[cell_id] = {\n// id: cell_id,\n// title: '',\n// field: cell_id,\n// headerType: this.cornerSetting.headerType ?? 'text',\n// style: this.cornerSetting.headerStyle,\n// define: <any>{\n// // id:\n// }\n// };\n// this._headerObjects.push(this._headerObjectMap[cell_id]);\n// this.rowShowAttrs.push(cell_id);\n\n// // deal with sub indicator axis\n\n// if (!this.hasTwoIndicatorAxes) {\n// this.colShowAttrs.pop();\n// }\n// } else {\n// const axisOption = ((this._table as PivotChart).pivotChartAxes as ITableAxisOption[]).find(axisOption => {\n// return axisOption.orient === 'left';\n// });\n// if (axisOption?.visible === false) {\n// this.rowShowAttrs.pop();\n// }\n// }\n// }\n\n// //#endregion\n// this._colCount =\n// (this.colKeysPath.length === 0 ? 1 : this.colKeysPath.length) *\n// (this.indicatorsAsCol ? this.indicatorKeys.length : 1) +\n// this.rowHeaderLevelCount +\n// this.rightFrozenColCount;\n// this._rowCount =\n// (this.rowKeysPath.length === 0 ? 1 : this.rowKeysPath.length) *\n// (!this.indicatorsAsCol ? this.indicatorKeys.length : 1) +\n// this.columnHeaderLevelCount +\n// this.bottomFrozenRowCount;\n// this.setColumnWidths();\n// }\n// private setColumnWidths() {\n// const returnWidths: WidthData[] = new Array(this.colCount).fill(undefined);\n// if (this.showRowHeader) {\n// if (this.rowHeaderTitle) {\n// returnWidths[0] = {};\n// }\n// this.rowShowAttrs.forEach((objKey, index) => {\n// const dimension = this.rowsDefine?.find(dimension =>\n// typeof dimension === 'string' ? false : dimension.dimensionKey === objKey\n// ) as IDimension;\n// dimension &&\n// (returnWidths[index + (this.rowHeaderTitle ? 1 : 0)] = {\n// width: dimension.width,\n// minWidth: dimension.minWidth,\n// maxWidth: dimension.maxWidth\n// });\n// });\n// }\n// if (this.indicatorsAsCol) {\n// for (let i = this.rowHeaderLevelCount; i < this.colCount; i++) {\n// const cellDefine = this.getBody(i, this.columnHeaderLevelCount);\n// returnWidths[i] = {\n// width: cellDefine?.width,\n// minWidth: cellDefine?.minWidth,\n// maxWidth: cellDefine?.maxWidth\n// };\n// }\n// } else {\n// let width: string | number = 0;\n// let maxWidth: string | number;\n// let minWidth: string | number;\n// let isAuto;\n// this._indicatorObjects.forEach((obj, index) => {\n// if (typeof obj.width === 'number') {\n// width = Math.max(obj.width, <number>width);\n// } else if (obj.width === 'auto') {\n// isAuto = true;\n// }\n// if (typeof obj.minWidth === 'number') {\n// minWidth = Math.max(obj.minWidth, <number>minWidth);\n// }\n// if (typeof obj.maxWidth === 'number') {\n// maxWidth = Math.max(obj.maxWidth, <number>maxWidth);\n// }\n// });\n// width = width > 0 ? width : isAuto ? 'auto' : undefined;\n// returnWidths.fill(\n// { width, minWidth, maxWidth },\n// this.rowHeaderLevelCount,\n// this.colCount - this.rightFrozenColCount\n// );\n// }\n// this._columnWidths = returnWidths;\n// }\n\n// private _addHeadersForTreeMode(\n// _headerCellIds: number[][] | string[][],\n// row: number,\n// header: IPivotLayoutHeadNode[],\n// roots: number[],\n// totalLevel: number,\n// show: boolean,\n// dimensions: (IDimension | string)[]\n// ): HeaderData[] {\n// function _newRow(row: number): number[] | string[] {\n// const newRow: number[] | string[] = (_headerCellIds[row] = []);\n// if (colIndex === 0) {\n// return newRow;\n// }\n// const prev = _headerCellIds[row - 1];\n// for (let col = 0; col < prev?.length; col++) {\n// newRow[col] = prev[col];\n// }\n// return newRow;\n// }\n// const results: HeaderData[] = [];\n// if (!_headerCellIds[row]) {\n// _newRow(row);\n// }\n// header.forEach(hd => {\n// const id = hd.id;\n// // const dimensionInfo: IDimension =\n// // (this.rowsDefine?.find(dimension =>\n// // typeof dimension === 'string' ? false : dimension.dimensionKey === hd.dimensionKey\n// // ) as IDimension) ??\n// // (this.columnsDefine?.find(dimension =>\n// // typeof dimension === 'string' ? false : dimension.dimensionKey === hd.dimensionKey\n// // ) as IDimension);\n// const dimensionInfo: IDimension = dimensions.find(dimension =>\n// typeof dimension === 'string' ? false : dimension.dimensionKey === hd.dimensionKey\n// ) as IDimension;\n\n// const cell: HeaderData = {\n// id,\n// title: hd.value,\n// field: hd.dimensionKey,\n// //如果不是整棵树的叶子节点,都靠左显示\n// style:\n// hd.level + 1 === totalLevel || typeof dimensionInfo?.headerStyle === 'function'\n// ? dimensionInfo?.headerStyle\n// : Object.assign({}, dimensionInfo?.headerStyle, { textAlign: 'left' }),\n// headerType: dimensionInfo?.headerType ?? 'text',\n// headerIcon: dimensionInfo?.headerIcon,\n// define: Object.assign(<any>hd, {\n// linkJump: (dimensionInfo as ILinkDimension)?.linkJump,\n// linkDetect: (dimensionInfo as ILinkDimension)?.linkDetect,\n// templateLink: (dimensionInfo as ILinkDimension)?.templateLink,\n\n// // image相关 to be fixed\n// keepAspectRatio: (dimensionInfo as IImageDimension)?.keepAspectRatio ?? false,\n// imageAutoSizing: (dimensionInfo as IImageDimension)?.imageAutoSizing,\n\n// headerCustomRender: dimensionInfo?.headerCustomRender,\n// headerCustomLayout: dimensionInfo?.headerCustomLayout,\n// dragHeader: dimensionInfo?.dragHeader\n// }), //这里不能新建对象,要用hd保持引用关系\n// fieldFormat: dimensionInfo?.headerFormat,\n// // iconPositionList:[]\n// dropDownMenu: dimensionInfo?.dropDownMenu,\n// pivotInfo: {\n// value: hd.value,\n// dimensionKey: hd.dimensionKey,\n// isPivotCorner: false\n// // customInfo: dimensionInfo?.customInfo\n// },\n// hierarchyLevel: hd.level,\n// dimensionTotalLevel: totalLevel,\n// hierarchyState: hd.level + 1 === totalLevel ? undefined : hd.hierarchyState,\n// width: dimensionInfo?.width,\n// minWidth: dimensionInfo?.minWidth,\n// maxWidth: dimensionInfo?.maxWidth,\n// parentCellId: roots[roots.length - 1]\n// };\n\n// results[id] = cell;\n// // this._cellIdDiemnsionMap.set(id, {\n// // dimensionKey: hd.dimensionKey,\n// // value: hd.value\n// // });\n// this._headerObjects[id] = cell;\n// _headerCellIds[row][colIndex] = id;\n// for (let r = row - 1; r >= 0; r--) {\n// _headerCellIds[r][colIndex] = roots[r];\n// }\n// if (hd.hierarchyState === HierarchyState.expand && (hd as IPivotLayoutHeadNode).children) {\n// //row传值 colIndex++和_addHeaders有区别\n// show && colIndex++;\n// this._addHeadersForTreeMode(\n// _headerCellIds,\n// row,\n// (hd as IPivotLayoutHeadNode).children ?? [],\n// [...roots, id],\n// totalLevel,\n// show && hd.hierarchyState === HierarchyState.expand, //当前节点show 且当前节点状态为展开 则传给子节点为show:true\n// dimensions\n// ).forEach(c => results.push(c));\n// } else {\n// // columns.push([\"\"])//代码一个路径\n// show && colIndex++;\n// for (let r = row + 1; r < _headerCellIds.length; r++) {\n// _headerCellIds[r][colIndex] = id;\n// }\n// }\n// });\n// return results;\n// }\n// get columnWidths(): WidthData[] {\n// return this._columnWidths;\n// }\n// getColumnWidthDefined(col: number): WidthData {\n// return this._columnWidths[col];\n// }\n// private getDimensionInfo(dimensionKey: string) {\n// const dimensionInfo: IDimension =\n// (this.rowsDefine?.find(dimension =>\n// typeof dimension === 'string' ? false : dimension.dimensionKey === dimensionKey\n// ) as IDimension) ??\n// (this.columnsDefine?.find(dimension =>\n// typeof dimension === 'string' ? false : dimension.dimensionKey === dimensionKey\n// ) as IDimension);\n// return dimensionInfo;\n// }\n\n// getIndicatorInfo(indicatorKey: string, indicatorValue = '') {\n// const indicatorInfo = this.indicatorsDefine?.find(indicator => {\n// if (typeof indicator === 'string') {\n// return false;\n// }\n// if (indicatorKey) {\n// return indicator.indicatorKey === indicatorKey;\n// }\n// if (indicatorValue) {\n// return indicator.title === indicatorValue;\n// }\n// return false;\n// }) as IIndicator;\n// return indicatorInfo;\n// }\n\n// getColKeysPath() {\n// return this.colKeysPath;\n// }\n// getRowKeysPath() {\n// return this.rowKeysPath;\n// }\n// /**\n// * 初始化_headerObjects\n// */\n// private initHeaderObjects() {\n// /**行表头headerObject */\n// // for (let i = 0, len = this.rowKeysPath.length; i <= len - 1; i++) {\n// // const rowKey = this.rowKeysPath[i];\n// // for (let j = 0, len2 = rowKey.length; j <= len2 - 1; j++) {\n// // if (!this._headerObjectMap[rowKey[j]]) {\n// // const ids = rowKey[j].split(this.dataset.stringJoinChar);\n// // const dimensionInfo = this.getDimensionInfo(this.rows[ids.length - 1]);\n// // this._headerObjectMap[rowKey[j]] = {\n// // id: rowKey[j],\n// // field: <string>dimensionInfo?.dimensionKey ?? this.rows[ids.length - 1],\n// // title: <string>ids[ids.length - 1],\n// // style: dimensionInfo?.headerStyle,\n// // define: {\n// // field: <string>dimensionInfo?.dimensionKey ?? this.rows[ids.length - 1],\n// // headerType: dimensionInfo?.headerType ?? 'text',\n// // cellType: 'text'\n// // }, //TODO 需要将define的用处 梳理清楚\n// // fieldFormat: dimensionInfo?.headerFormat,\n// // dropDownMenu: dimensionInfo?.dropDownMenu,\n// // headerType: dimensionInfo?.headerType ?? 'text',\n// // width: dimensionInfo?.width\n// // };\n// // this._headerObjects.push(this._headerObjectMap[rowKey[j]]);\n// // }\n// // }\n// // }\n// /**列表头headerObject */\n// for (let i = 0, len = this.colKeysPath.length; i <= len - 1; i++) {\n// const colKey = this.colKeysPath[i];\n// for (let j = 0, len2 = colKey.length; j <= len2 - 1; j++) {\n// if (!this._headerObjectMap[colKey[j]]) {\n// const ids = colKey[j].split(this.dataset.stringJoinChar);\n// const dimensionInfo = this.getDimensionInfo(this.columns[ids.length - 1]);\n// this._headerObjectMap[colKey[j]] = {\n// id: colKey[j],\n// field: <string>dimensionInfo?.dimensionKey ?? this.columns[ids.length - 1],\n// title: <string>ids[ids.length - 1],\n// style: dimensionInfo?.headerStyle,\n// define: {\n// field: <string>dimensionInfo?.dimensionKey ?? this.columns[ids.length - 1],\n// headerType: dimensionInfo?.headerType ?? 'text',\n// cellType: 'text'\n// },\n// fieldFormat: dimensionInfo?.headerFormat,\n// dropDownMenu: dimensionInfo?.dropDownMenu,\n// headerType: dimensionInfo?.headerType ?? 'text',\n// width: dimensionInfo?.width\n// };\n// this._headerObjects.push(this._headerObjectMap[colKey[j]]);\n// }\n// }\n// }\n// /**指标表头headerObject */\n// // const indicatorDimensionInfo = this.getIndicatorInfo(this.indicatorDimensionKey);\n// this.indicatorsDefine.forEach(indicator => {\n// const indicatorKey = typeof indicator === 'string' ? indicator : indicator.indicatorKey;\n// const indicatorInfo = typeof indicator === 'string' ? undefined : indicator;\n// if (!this._headerObjectMap[indicatorKey]) {\n// this._headerObjectMap[indicatorKey] = {\n// id: indicatorKey,\n// field: this.indicatorDimensionKey,\n// title: indicatorInfo?.title ?? indicatorKey,\n// style: indicatorInfo?.headerStyle, //?? indicatorDimensionInfo?.headerStyle,\n// define: {\n// field: this.indicatorDimensionKey,\n// headerType: indicatorInfo?.headerType ?? 'text',\n// cellType: 'text'\n// },\n// // fieldFormat: indicatorDimensionInfo?.headerFormat,\n// dropDownMenu: indicatorInfo?.dropDownMenu,\n// headerType: indicatorInfo?.headerType ?? 'text',\n// width: indicatorInfo?.width\n// };\n// this._headerObjects.push(this._headerObjectMap[indicatorKey]);\n// }\n// });\n// /**角表headerObject */\n// let cornerAttrs;\n// if (this.cornerSetting.titleOnDimension === 'column') {\n// cornerAttrs = this.colShowAttrs;\n// } else if (this.cornerSetting.titleOnDimension === 'row') {\n// cornerAttrs = this.rowShowAttrs;\n// }\n// cornerAttrs?.forEach(cornerAttrStr => {\n// if (!this._headerObjectMap[cornerAttrStr]) {\n// const dimensionInfo = this.getDimensionInfo(cornerAttrStr);\n// this._headerObjectMap[cornerAttrStr] = {\n// id: cornerAttrStr,\n// field: cornerAttrStr,\n// title:\n// cornerAttrStr === this.indicatorDimensionKey ? this.indicatorTitle : dimensionInfo?.title ?? cornerAttrStr,\n// style: this.cornerSetting?.headerStyle,\n// define: {\n// field: cornerAttrStr,\n// headerType: this.cornerSetting?.headerType ?? 'text',\n// cellType: 'text'\n// },\n// dropDownMenu: dimensionInfo?.dropDownMenu,\n// headerType: this.cornerSetting?.headerType ?? 'text',\n// width: dimensionInfo?.width\n// };\n// this._headerObjects.push(this._headerObjectMap[cornerAttrStr]);\n// }\n// });\n// }\n// /**\n// * 初始化_indicatorObjects\n// */\n// private initIndicatorObjects() {\n// // const indicatorDimensionInfo = this.dimensions?.find(\n// // (dimension) => dimension.dimensionKey === this.indicatorDimensionKey\n// // );\n// this.indicatorKeys.forEach(indicatorKey => {\n// const indicatorInfo = this.indicatorsDefine?.find(indicator => {\n// if (typeof indicator === 'string') {\n// return false;\n// }\n// return indicator.indicatorKey === indicatorKey;\n// }) as IIndicator;\n// this._indicatorObjects.push({\n// id: indicatorKey,\n// indicatorKey: indicatorKey,\n// field: indicatorKey,\n// define: Object.assign(\n// {\n// field: indicatorKey,\n// headerType: 'text',\n// cellType: indicatorInfo?.cellType ?? (indicatorInfo as any)?.columnType ?? 'text'\n// },\n// indicatorInfo as any\n// ),\n// fieldFormat: indicatorInfo?.format,\n// cellType: indicatorInfo?.cellType ?? (indicatorInfo as any)?.columnType ?? 'text',\n// chartModule: indicatorInfo && ('chartModule' in indicatorInfo ? indicatorInfo?.chartModule : null),\n// chartSpec: indicatorInfo && ('chartSpec' in indicatorInfo ? indicatorInfo?.chartSpec : null),\n// sparklineSpec: indicatorInfo && ('sparklineSpec' in indicatorInfo ? indicatorInfo?.sparklineSpec : null),\n// style: indicatorInfo?.style,\n// icon: indicatorInfo?.icon,\n// width: indicatorInfo?.width,\n// minWidth: indicatorInfo?.minWidth,\n// maxWidth: indicatorInfo?.maxWidth,\n// disableColumnResize: indicatorInfo?.disableColumnResize\n// });\n// });\n// }\n// get showColumnHeader(): boolean {\n// return this._showColumnHeader;\n// }\n// set showColumnHeader(_showColumnHeader: boolean) {\n// this._showColumnHeader = _showColumnHeader;\n// }\n// get showRowHeader(): boolean {\n// return this._showRowHeader;\n// }\n// set showRowHeader(_showRowHeader: boolean) {\n// this._showRowHeader = _showRowHeader;\n// }\n// get columnHeaderTitle(): ITitleDefine {\n// return this._columnHeaderTitle;\n// }\n// set columnHeaderTitle(_columnHeaderTitle: ITitleDefine) {\n// this._columnHeaderTitle = _columnHeaderTitle;\n// }\n// get rowHeaderTitle(): ITitleDefine {\n// return this._rowHeaderTitle;\n// }\n// set rowHeaderTitle(_rowHeaderTitle: ITitleDefine) {\n// this._rowHeaderTitle = _rowHeaderTitle;\n// }\n// getCellLocation(col: number, row: number): CellLocation {\n// if (this.isCornerHeader(col, row)) {\n// return 'cornerHeader';\n// } else if (this.isColumnHeader(col, row)) {\n// return 'columnHeader';\n// } else if (this.isRowHeader(col, row)) {\n// return 'rowHeader';\n// }\n// return 'body';\n// }\n\n// isHeader(col: number, row: number): boolean {\n// if (col < this.rowHeaderLevelCount) {\n// return true;\n// }\n// if (row < this.columnHeaderLevelCount) {\n// return true;\n// }\n// if (col >= this.colCount - this.rightFrozenColCount) {\n// return true;\n// }\n// if (row >= this.rowCount - this.bottomFrozenRowCount) {\n// return true;\n// }\n// return false;\n// }\n// isCornerHeader(col: number, row: number): boolean {\n// if (col < this.rowHeaderLevelCount && row < this.columnHeaderLevelCount) {\n// return true;\n// }\n// return false;\n// }\n// isColumnHeader(col: number, row: number): boolean {\n// if (col >= this.rowHeaderLevelCount && row < this.columnHeaderLevelCount) {\n// return true;\n// }\n// return false;\n// }\n// isRightFrozenColumn(col: number, row: number): boolean {\n// if (\n// col >= this.colCount - this.rightFrozenColCount &&\n// row >= this.columnHeaderLevelCount &&\n// row < this.rowCount - this.bottomFrozenRowCount\n// ) {\n// return true;\n// }\n// return false;\n// }\n// isBottomFrozenRow(col: number, row: number): boolean {\n// if (\n// col >= this.rowHeaderLevelCount &&\n// row >= this.rowCount - this.bottomFrozenRowCount &&\n// col < this.colCount - this.rightFrozenColCount\n// ) {\n// return true;\n// }\n// return false;\n// }\n// isLeftBottomCorner(col: number, row: number): boolean {\n// if (col < this.rowHeaderLevelCount && row >= this.rowCount - this.bottomFrozenRowCount) {\n// return true;\n// }\n// return false;\n// }\n// isRightTopCorner(col: number, row: number): boolean {\n// if (col >= this.colCount - this.rightFrozenColCount && row < this.columnHeaderLevelCount) {\n// return true;\n// }\n// return false;\n// }\n// isRightBottomCorner(col: number, row: number): boolean {\n// if (col >= this.colCount - this.rightFrozenColCount && row >= this.rowCount - this.bottomFrozenRowCount) {\n// return true;\n// }\n// return false;\n// }\n// /**\n// * 是否为行表头,不包含角头\n// * @param col\n// * @param row\n// * @returns\n// */\n// isRowHeader(col: number, row: number): boolean {\n// if (col < this.rowHeaderLevelCount && row >= this.columnHeaderLevelCount) {\n// return true;\n// }\n// return false;\n// }\n// /**\n// * 判读是否为指标名称单元格。非角头部分,行表头或者列表头显示的指标名\n// * @param col\n// * @param row\n// * @returns\n// */\n// isColumnIndicatorHeader(col: number, row: number): boolean {\n// if (\n// this._indicatorShowType === 'column' &&\n// row === this.columnHeaderLevelCount - 1 &&\n// col >= this.rowHeaderLevelCount\n// ) {\n// return true;\n// }\n// return false;\n// }\n// /**\n// * 判读是否为指标名称单元格。非角头部分,行表头或者列表头显示的指标名\n// * @param col\n// * @param row\n// * @returns\n// */\n// isRowIndicatorHeader(col: number, row: number): boolean {\n// if (\n// this._indicatorShowType === 'row' &&\n// col === this.rowHeaderLevelCount - 1 &&\n// row >= this.columnHeaderLevelCount\n// ) {\n// return true;\n// }\n// return false;\n// }\n// /**\n// * 判读是否为指标名称单元格。非角头部分,行表头或者列表头显示的指标名\n// * @param col\n// * @param row\n// * @returns\n// */\n// isIndicatorHeader(col: number, row: number): boolean {\n// return this.isColumnIndicatorHeader(col, row) || this.isRowIndicatorHeader(col, row);\n// }\n\n// getColumnHeaderRange(): CellRange {\n// return {\n// start: { col: this.rowHeaderLevelCount, row: 0 },\n// end: { col: this.colCount - 1, row: this.columnHeaderLevelCount - 1 }\n// };\n// }\n// getRowHeaderRange(): CellRange {\n// return {\n// start: { col: 0, row: this.columnHeaderLevelCount },\n// end: { col: this.rowHeaderLevelCount - 1, row: this.rowCount - 1 }\n// };\n// }\n// getCornerHeaderRange(): CellRange {\n// return {\n// start: { col: 0, row: 0 },\n// end: { col: this.rowHeaderLevelCount - 1, row: this.columnHeaderLevelCount - 1 }\n// };\n// }\n// getBodyRange(): CellRange {\n// return {\n// start: { col: this.rowHeaderLevelCount, row: this.columnHeaderLevelCount },\n// end: { col: this.colCount - 1, row: this.rowCount - 1 }\n// };\n// }\n// resetCellIds() {\n// // for (let row = 0; row < this.columnHeaderLevelCount; row++) {}\n// }\n// get headerLevelCount(): number {\n// return this.columnHeaderLevelCount;\n// }\n// get columnHeaderLevelCount(): number {\n// const colLevelCount = this.colShowAttrs.length;\n// if (this.showColumnHeader) {\n// const count = !this.indicatorsAsCol\n// ? colLevelCount\n// : this.hideIndicatorName //设置隐藏表头,且表头最下面一级就是指标维度 则-1\n// ? this.colShowAttrs[this.colShowAttrs.length - 1] === this.indicatorDimensionKey\n// ? colLevelCount - 1\n// : colLevelCount\n// : colLevelCount;\n\n// // if (this.indicatorsAsCol && this._table.isPivotChart()) {\n// // // 指标在列上,指标及其对应坐标轴显示在底部,下侧冻结行数为1;\n// // // 如果指标对应两个轴,则第二个轴显示在上部,columnHeaderLevelCount不变,否则columnHeader不显示指标,columnHeaderLevelCount - 1\n// // // count -= 1;\n// // } else if (this._table.isPivotChart()) {\n// // // 指标在行上,维度对应坐标轴显示在底部,下侧冻结行数为1,上侧不变\n// // }\n\n// return count;\n// }\n// return !this.indicatorsAsCol ? 0 : this.hideIndicatorName ? 0 : 1;\n// }\n// get rowHeaderLevelCount(): number {\n// const rowLevelCount = this.rowShowAttrs.length;\n// if (this.showRowHeader) {\n// if (this.rowHierarchyType === 'tree') {\n// if (this.rowHeaderTitle) {\n// return 2;\n// }\n// return 1;\n// }\n// const count = this.indicatorsAsCol\n// ? rowLevelCount\n// : this.hideIndicatorName //设置隐藏表头,且表头最下面一级就是指标维度 则-1\n// ? this.rowShowAttrs[this.rowShowAttrs.length - 1] === this.indicatorDimensionKey\n// ? rowLevelCount - 1\n// : rowLevelCount\n// : rowLevelCount;\n\n// // if (this.indicatorsAsCol && this._table.isPivotChart()) {\n// // // 指标在列上,维度对应坐标轴显示在左侧,rowHeaderLevelCount + 1;\n// // count += 1;\n// // } else if (this._table.isPivotChart()) {\n// // // 指标在行上,指标对应坐标轴显示在左侧指标单元格,rowHeaderLevelCount不变\n// // }\n\n// return count;\n// }\n// return this.indicatorsAsCol ? 0 : this.hideIndicatorName ? 0 : 1;\n// }\n// get colCount(): number {\n// return this._colCount;\n// }\n// get rowCount(): number {\n// return this._rowCount;\n// }\n// get bodyRowCount() {\n// return this._bodyRowCount;\n// }\n// get bottomFrozenRowCount(): number {\n// if (!this._table.isPivotChart()) {\n// return 0;\n// }\n// const axisOption = ((this._table as PivotChart).pivotChartAxes as ITableAxisOption[]).find(axisOption => {\n// return axisOption.orient === 'bottom';\n// });\n// if (axisOption?.visible === false) {\n// return 0;\n// }\n// if (this.indicatorsAsCol) {\n// // 指标在列上,指标及其对应坐标轴显示在底部,下侧冻结行数为1\n// return 1;\n// }\n// return 1; // 指标在行上,维度对应坐标轴显示在底部,下侧冻结行数为1\n// }\n// get rightFrozenColCount(): number {\n// if (!this._table.isPivotChart()) {\n// return 0;\n// }\n// const axisOption = ((this._table as PivotChart).pivotChartAxes as ITableAxisOption[]).find(axisOption => {\n// return axisOption.orient === 'right';\n// });\n// if (axisOption?.visible === false) {\n// return 0;\n// }\n\n// if (this.indicatorsAsCol) {\n// return 0; // 指标在列上,没有图表需要显示右轴\n// } else if (this.hasTwoIndicatorAxes) {\n// // 查找指标,判断是否有双轴情况,如果有,则右侧冻结列数为1\n// return 1;\n// }\n// return 0;\n// }\n// get leftAxesCount(): number {\n// if (!this._table.isPivotChart()) {\n// return 0;\n// }\n// const axisOption = ((this._table as PivotChart).pivotChartAxes as ITableAxisOption[]).find(axisOption => {\n// return axisOption.orient === 'left';\n// });\n// if (axisOption?.visible === false) {\n// return 0;\n// }\n// if (this.indicatorsAsCol) {\n// return 1; // 左侧维度轴\n// }\n// return 1; // 左侧主指标轴\n// }\n// get topAxesCount(): number {\n// if (!this._table.isPivotChart()) {\n// return 0;\n// }\n// const axisOption = ((this._table as PivotChart).pivotChartAxes as ITableAxisOption[]).find(axisOption => {\n// return axisOption.orient === 'top';\n// });\n// if (axisOption?.visible === false) {\n// return 0;\n// }\n// if (this.indicatorsAsCol && this.hasTwoIndicatorAxes) {\n// return 1; // 顶部副指标\n// }\n// return 0; // 顶部无轴\n// }\n// get rightAxesCount(): number {\n// return this.rightFrozenColCount;\n// }\n// get bottomAxesCount(): number {\n// return this.bottomFrozenRowCount;\n// }\n\n// get headerObjects(): HeaderData[] {\n// return this._headerObjects;\n// }\n// get columnObjects(): IndicatorData[] {\n// return this._indicatorObjects;\n// }\n// /**\n// * 其他layout文件这个函数返回的是id值,这里其实是返回的维度成员名\n// * @param col\n// * @param row\n// * @returns\n// */\n// getCellId(col: number, row: number): LayoutObjectId {\n// if (\n// (col < this.rowHeaderLevelCount && row >= this.rowCount - this.bottomFrozenRowCount) ||\n// (row < this.columnHeaderLevelCount && col >= this.colCount - this.rightFrozenColCount)\n// ) {\n// return 0;\n// }\n// if (row >= 0 && col >= 0) {\n// if (this.isCornerHeader(col, row)) {\n// if (this.cornerSetting.titleOnDimension === 'column') {\n// return this.colShowAttrs[row];\n// } else if (this.cornerSetting.titleOnDimension === 'row') {\n// return this.rowShowAttrs[col];\n// }\n// } else if (this.isColumnHeader(col, row)) {\n// if (row < this.columns.length + (this.columnHeaderTitle ? 1 : 0)) {\n// return (\n// this.convertColKeys[row]?.[\n// this.indicatorsAsCol\n// ? Math.floor((col - this.rowHeaderLevelCount) / this.indicatorKeys.length)\n// : col - this.rowHeaderLevelCount\n// ] ?? `colHeaderAxis-${col}-${row}`\n// );\n// }\n// return this.indicatorKeys[(col - this.rowHeaderLevelCount) % this.indicatorKeys.length];\n// } else if (this.isRowHeader(col, row)) {\n// if (col < this.rows.length + (this.rowHeaderTitle ? 1 : 0)) {\n// return (\n// this.rowKeysPath[\n// !this.indicatorsAsCol\n// ? Math.floor((row - this.columnHeaderLevelCount) / this.indicatorKeys.length)\n// : row - this.columnHeaderLevelCount\n// ]?.[col] ?? `rowHeaderAxis-${col}-${row}`\n// );\n// }\n// if (this.indicatorsAsCol && col === this.rowHeaderLevelCount - 1) {\n// return `rowHeaderAxis-${col}-${row}`;\n// }\n// return this.indicatorKeys[(row - this.columnHeaderLevelCount) % this.indicatorKeys.length];\n// } else if (this.isRightFrozenColumn(col, row)) {\n// if (!this.indicatorsAsCol) {\n// return this.indicatorKeys[(row - this.columnHeaderLevelCount) % this.indicatorKeys.length];\n// }\n// return this.rowKeysPath[row - this.columnHeaderLevelCount][this.rowHeaderLevelCount - 1];\n// } else if (this.isBottomFrozenRow(col, row)) {\n// if (this.indicatorsAsCol) {\n// return this.indicatorKeys[(col - this.rowHeaderLevelCount) % this.indicatorKeys.length];\n// }\n// return this.convertColKeys[this.convertColKeys.length - 1]?.[\n// Math.floor((col - this.rowHeaderLevelCount) / this.indicatorKeys.length)\n// ];\n// }\n// }\n// return 0;\n// }\n// /**\n// * 获取单元格所代表的指标名称\n// * @param col\n// * @param row\n// * @returns\n// */\n// getIndicatorKey(col: number, row: number) {\n// if (this.isHeader(col, row)) {\n// return '';\n// }\n// if (this.indicatorsAsCol) {\n// const bodyCol = col - this.rowHeaderLevelCount;\n// return this.indicatorKeys[bodyCol % this.indicatorKeys.length];\n// }\n// const bodyRow = row - this.columnHeaderLevelCount;\n// return this.indicatorKeys[bodyRow % this.indicatorKeys.length];\n// }\n// getHeader(col: number, row: number): HeaderData {\n// let id = this.getCellId(col, row) as string;\n// if (id?.toString().startsWith('rowHeaderAxis')) {\n// id = 'rowHeaderEmpty';\n// // } else if (id.toString().startsWith('colHeaderAxis')) {\n// }\n// return this._headerObjectMap[id as number | string]! ?? EMPTY_HEADER;\n// }\n// getHeaderField(col: number, row: number) {\n// const id = this.getCellId(col, row);\n// return this._headerObjectMap[id as number]?.field || this.getBody(col, row)?.field;\n// }\n// getHeaderFieldKey(col: number, row: number): undefined {\n// return undefined;\n// }\n// getHeaderCellAdressById(id: number): CellAddress | undefined {\n// return undefined;\n// }\n// getHeaderCellAddressByField(field: string): CellAddress | undefined {\n// throw new Error(`Method not implemented.${field}`);\n// }\n// // getBody(_col: number, _row: number): IndicatorData {\n// // // const dimensionInfo = this.dimensions?.find((dimension: IDimension) => {\n// // // return dimension.indicators?.length! > 0;\n// // // });\n// // // if (this.indicatorsAsCol)\n// // // return this.indicators[\n// // // (_col - this.rowHeaderLevelCount) % (dimensionInfo?.indicators?.length ?? 0)\n// // // ];\n// // // return this.indicators[\n// // // (_row - this.columnHeaderLevelCount) % (dimensionInfo?.indicators?.length ?? 0)\n// // // ];\n// // // const dimensionInfo = this.dimensions?.[this.indicatorDimensionKey];\n// // let indicatorInfo;\n// // if (this.indicatorsAsCol) {\n// // indicatorInfo = this.getIndicatorInfo(\n// // this?.indicators?.[(_col - this.rowHeaderLevelCount) % (this.indicators?.length ?? 0)]\n// // );\n// // } else {\n// // indicatorInfo = this.getIndicatorInfo(\n// // this?.indicators?.[(_row - this.columnHeaderLevelCount) % (this.indicators?.length ?? 0)]\n// // );\n// // }\n// // return {\n// // id: 0,\n// // indicatorKey: this.indicators[(_col - this.rowHeaderLevelCount) % (this.indicators?.length ?? 0)],\n// // field: this.indicators[(_col - this.rowHeaderLevelCount) % (this.indicators?.length ?? 0)],\n// // cellType: indicatorInfo?.cellType ?? 'text',\n// // style: indicatorInfo?.style,\n// // define: {\n// // field: this.indicators[(_col - this.rowHeaderLevelCount) % (this.indicators?.length ?? 0)],\n// // headerType: 'text',\n// // cellType: indicatorInfo?.cellType ?? 'text'\n// // }\n// // };\n// // }\n// getBody(_col: number, _row: number): IndicatorData {\n// // let indicatorData;\n// //正常情况下 通过行号或者列号可以取到Indicator的配置信息 但如果指标在前维度在后的情况下(如风神:列配置【指标名称,地区】) indicators中的数量是和真正指标值一样数量\n// // if (this.indicatorsAsCol) indicatorData = this.indicators[_col - this.rowHeaderLevelCount];\n// // else indicatorData = this.indicators[_row - this.columnHeaderLevelCount];\n// // if (indicatorData) return indicatorData;\n// const paths = this.getCellHeaderPaths(_col, _row);\n// if (this.indicatorsAsCol) {\n// const indicatorKey = paths.colHeaderPaths.find(colPath => colPath.indicatorKey)?.indicatorKey;\n// return (\n// this._indicatorObjects.find(indicator => indicator.indicatorKey === indicatorKey) ??\n// this._indicatorObjects[0] ?? {\n// id: '',\n// field: undefined,\n// indicatorKey: undefined,\n// cellType: undefined,\n// define: undefined\n// }\n// );\n// }\n// const indicatorKey = paths.rowHeaderPaths.find(rowPath => rowPath.indicatorKey)?.indicatorKey;\n// return (\n// this._indicatorObjects.find(indicator => indicator.indicatorKey === indicatorKey) ??\n// this._indicatorObjects[0] ?? {\n// id: '',\n// field: undefined,\n// indicatorKey: undefined,\n// cellType: undefined,\n// define: undefined\n// }\n// );\n// }\n// // getBodyLayoutRangeById(id: LayoutObjectId): CellRange {\n// // for (let col = 0; col < (this.colCount ?? 0); col++) {\n// // if (id === this.columnObjects[col].id) {\n// // return {\n// // start: { col, row: 0 },\n// // end: { col, row: 0 }\n// // };\n// // }\n// // }\n\n// // throw new Error(`can not found body layout @id=${id as number}`);\n// // }\n// /**\n// * 这个结果直接影响合并单元格\n// * 目前body部分 都按不合并\n// * 指标名称isIndicator 不合并\n// * 列表头部分,合并情况只考虑横向合并\n// * 行表头部分,合并情况只考虑纵向合并\n// * @param col\n// * @param row\n// * @returns\n// */\n// getCellRange(col: number, row: number): CellRange {\n// const result: CellRange = { start: { col, row }, end: { col, row } };\n// if (!this.isHeader(col, row) || col === -1 || row === -1 || this.isIndicatorHeader(col, row)) {\n// return result;\n// }\n\n// if (this.isRightFrozenColumn(col, row) || this.isBottomFrozenRow(col, row)) {\n// return result;\n// }\n\n// //in header\n// const id = this.getCellId(col, row);\n// for (let c = col - 1; c >= 0; c--) {\n// if (id !== this.getCellId(c, row)) {\n// break;\n// }\n// result.start.col = c;\n// }\n// for (let c = col + 1; c < (this.colCount ?? 0); c++) {\n// if (id !== this.getCellId(c, row)) {\n// break;\n// }\n// result.end.col = c;\n// }\n// for (let r = row - 1; r >= 0; r--) {\n// if (id !== this.getCellId(col, r)) {\n// break;\n// }\n// result.start.row = r;\n// }\n// for (let r = row + 1; r < (this.rowCount ?? 0); r++) {\n// if (id !== this.getCellId(col, r)) {\n// break;\n// }\n// result.end.row = r;\n// }\n// return result;\n// }\n// isCellRangeEqual(col: number, row: number, targetCol: number, targetRow: number): boolean {\n// const range1 = this.getCellRange(col, row);\n// const range2 = this.getCellRange(targetCol, targetRow);\n// return (\n// range1.start.col === range2.start.col &&\n// range1.end.col === range2.end.col &&\n// range1.start.row === range2.start.row &&\n// range1.end.row === range2.end.row\n// );\n// }\n// /**\n// * 根据行号,得出body部分也就是数据部分 是第几条\n// * @param row\n// * @returns\n// */\n// getRecordIndexByCell(row: number): number {\n// if (row < this.columnHeaderLevelCount) {\n// return -1;\n// }\n// return this.indicatorsAsCol\n// ? row - this.columnHeaderLevelCount\n// : Math.floor((row - this.columnHeaderLevelCount) / this.indicatorKeys.length);\n// }\n// /**\n// * 根据列号,得出body部分也就是数据部分 是第几条\n// * @param col\n// * @returns\n// */\n// getRecordIndexByCol(col: number): number {\n// if (col < this.rowHeaderLevelCount) {\n// return -1;\n// }\n// // return col - this.rowHeaderLevelCount;\n// return !this.indicatorsAsCol\n// ? col - this.rowHeaderLevelCount\n// : Math.floor((col - this.rowHeaderLevelCount) / this.indicatorKeys.length);\n// }\n// getRecordStartRowByRecordIndex(index: number): number {\n// return this.columnHeaderLevelCount + index;\n// }\n\n// // getCellRangeTranspose(): CellRange {\n// // return { start: { col: 0, row: 0 }, end: { col: 0, row: 0 } };\n// // }\n// /**\n// * 计算一个单元格 行列维度信息\n// * @param col\n// * @param row\n// * @returns\n// */\n// getCellHeaderPaths(col: number, row: number): IPivotTableCellHeaderPaths {\n// const recordCol = this.getRecordIndexByCol(col);\n// const recordRow = this.getRecordIndexByCell(row);\n// let colPath;\n// let rowPath;\n// let colHeaderPaths: string[];\n// let rowHeaderPaths: string[];\n// if (recordCol >= 0) {\n// colPath = this.colKeysPath[recordCol];\n// colHeaderPaths = colPath?.[colPath.length - 1]?.split(this.dataset.stringJoinChar);\n// if (colHeaderPaths && this.showColumnHeader && row < this.columns.length - 1) {\n// colHeaderPaths = colHeaderPaths.slice(0, row + 1);\n// } else if (!colHeaderPaths) {\n// colHeaderPaths = [];\n// }\n// }\n// if (recordRow >= 0) {\n// rowPath = this.rowKeysPath[recordRow];\n// rowHeaderPaths = rowPath?.[rowPath.length - 1]?.split(this.dataset.stringJoinChar);\n// if (rowHeaderPaths && this.showRowHeader && col < this.rows.length - 1) {\n// rowHeaderPaths = rowHeaderPaths.slice(0, col + 1);\n// } else if (!rowHeaderPaths) {\n// rowHeaderPaths = [];\n// }\n// }\n// if (colHeaderPaths && this.indicatorsAsCol && col >= this.rowHeaderLevelCount) {\n// colHeaderPaths.push(this.indicatorKeys[(col - this.rowHeaderLevelCount) % this.indicatorKeys.length]);\n// } else if (rowHeaderPaths && row >= this.columnHeaderLevelCount) {\n// rowHeaderPaths.push(this.indicatorKeys[(row - this.columnHeaderLevelCount) % this.indicatorKeys.length]);\n// }\n// return {\n// colHeaderPaths:\n// colHeaderPaths?.map((key: string, index: number) => {\n// const indicatorObject = this._indicatorObjects.find(indicator => indicator.indicatorKey === key);\n// return {\n// dimensionKey: !indicatorObject ? this.colShowAttrs[index] : undefined,\n// indicatorKey: indicatorObject ? key : undefined,\n// value: !indicatorObject ? key : (indicatorObject.define.title as string)\n// };\n// }) ?? [],\n// rowHeaderPaths:\n// rowHeaderPaths?.map((key: string, index: number) => {\n// const indicatorObject = this._indicatorObjects.find(indicator => indicator.indicatorKey === key);\n// return {\n// dimensionKey: !indicatorObject ? this.rowShowAttrs[index] : undefined,\n// indicatorKey: indicatorObject ? key : undefined,\n// value: !indicatorObject ? key : (indicatorObject.define.title as string)\n// };\n// }) ?? []\n// };\n// }\n// /**\n// * 通过dimensionPath获取到对应的表头地址col row, dimensionPath不要求必须按照表头层级顺序传递\n// * @param dimensions\n// * @returns\n// */\n// getCellAdressByHeaderPath(\n// dimensionPaths:\n// | {\n// colHeaderPaths: IDimensionInfo[];\n// rowHeaderPaths: IDimensionInfo[];\n// }\n// | IDimensionInfo[]\n// ): CellAddress | undefined {\n// let colHeaderPaths;\n// let rowHeaderPaths;\n// if (Array.isArray(dimensionPaths)) {\n// if (dimensionPaths.length > this.rowShowAttrs.length + this.colShowAttrs.length) {\n// //如果传入的path长度比行列维度层级多的话 无法匹配\n// return undefined;\n// }\n// // 如果传入的是整体的path 按照行列维度区分开\n// colHeaderPaths = dimensionPaths.filter(\n// (path: IDimensionInfo) => this.colShowAttrs.indexOf(path.dimensionKey) >= 0\n// );\n// rowHeaderPaths = dimensionPaths.filter(\n// (path: IDimensionInfo) => this.rowShowAttrs.indexOf(path.dimensionKey) >= 0\n// );\n// } else {\n// colHeaderPaths = dimensionPaths.colHeaderPaths;\n// rowHeaderPaths = dimensionPaths.rowHeaderPaths;\n// }\n\n// if (!Array.isArray(colHeaderPaths) && !Array.isArray(rowHeaderPaths)) {\n// return undefined;\n// }\n// // 行列维度path根据key排序\n// colHeaderPaths?.sort((a, b) => {\n// return (\n// this.colShowAttrs.indexOf(a.dimensionKey ?? this.indicatorDimensionKey) -\n// this.colShowAttrs.indexOf(b.dimensionKey ?? this.indicatorDimensionKey)\n// );\n// });\n// rowHeaderPaths?.sort((a, b) => {\n// return (\n// this.rowShowAttrs.indexOf(a.dimensionKey ?? this.indicatorDimensionKey) -\n// this.rowShowAttrs.indexOf(b.dimensionKey ?? this.indicatorDimensionKey)\n// );\n// });\n// let needLowestLevel = false; // needLowestLevel来标记是否需要 提供到最底层的维度层级信息\n// // 如果行列维度都有值 说明是匹配body单元格 那这个时候 维度层级应该是满的\n// if (colHeaderPaths?.length >= 1 && rowHeaderPaths?.length >= 1) {\n// needLowestLevel = true;\n// }\n// //这里相当于默认了行列号为0\n// let col = 0;\n// let row = 0;\n// let defaultCol;\n// let defaultRow;\n// let rowTree = this.rowTree;\n// let columnTree = this.columnTree;\n// let toFindIndicator;\n// // 按照colHeaderPaths维度层级寻找到底层维度值节点\n// if (colHeaderPaths) {\n// for (let i = 0; i < colHeaderPaths.length; i++) {\n// const colDimension = colHeaderPaths[i];\n// if (colDimension.indicatorKey) {\n// toFindIndicator = colDimension.indicatorKey;\n// break;\n// }\n// for (let j = 0; j < columnTree.length; j++) {\n// const dimension = columnTree[j];\n// if (\n// !isValid(colDimension.indicatorKey) &&\n// dimension.dimensionKey === colDimension.dimensionKey &&\n// dimension.value === colDimension.value\n// ) {\n// columnTree = dimension.children;\n// if (!columnTree || columnTree.length === 0 || columnTree?.[0]?.indicatorKey) {\n// col += j;\n// }\n// break;\n// }\n// col += dimension.children?.[0]?.indicatorKey ? 0 : dimension.children?.length ?? 0;\n// }\n// }\n// }\n// // 按照rowHeaderPaths维度层级寻找到底层维度值节点\n// if (rowHeaderPaths) {\n// for (let i = 0; i < rowHeaderPaths.length; i++) {\n// const rowDimension = rowHeaderPaths[i];\n// if (rowDimension.indicatorKey) {\n// toFindIndicator = rowDimension.indicatorKey;\n// break;\n// }\n// // 判断级别,找到distDimension\n// // let isCol = false;\n// for (let j = 0; j < rowTree.length; j++) {\n// const dimension = rowTree[j];\n// if (\n// !isValid(rowDimension.indicatorKey) &&\n// dimension.dimensionKey === rowDimension.dimensionKey &&\n// dimension.value === rowDimension.value\n// ) {\n// rowTree = dimension.children;\n// if (!rowTree || rowTree.length === 0 || rowTree?.[0]?.indicatorKey) {\n// row += j;\n// }\n// break;\n// }\n// row += dimension.children?.[0]?.indicatorKey ? 0 : dimension.children?.length ?? 0;\n// }\n// }\n// }\n// col =\n// (this.indicatorsAsCol ? col * this.indicatorKeys.length + this.indicatorKeys.indexOf(toFindIndicator) : col) +\n// this.rowHeaderLevelCount;\n\n// row =\n// (!this.indicatorsAsCol ? row * this.indicatorKeys.length + this.indicatorKeys.indexOf(toFindIndicator) : row) +\n// this.columnHeaderLevelCount;\n// if (isValid(col) || isValid(row)) {\n// return { col: col ?? defaultCol, row: row ?? defaultRow };\n// }\n// return undefined;\n// }\n// getHeaderDimension(col: number, row: number): IDimension | undefined {\n// if (this.isHeader(col, row)) {\n// const header = this.getHeader(col, row);\n// const dimension =\n// this.rowsDefine?.find(dimension => typeof dimension !== 'string' && dimension.dimensionKey === header.field) ??\n// this.columnsDefine?.find(dimension => typeof dimension !== 'string' && dimension.dimensionKey === header.field);\n// return dimension as IDimension;\n// }\n// return undefined;\n// }\n// updateDataset(dataset: Dataset) {\n// this.dataset = dataset;\n// this.dataConfig = dataset.dataConfig;\n// this.rowKeysPath = dataset.rowKeysPath;\n// this.colKeysPath = dataset.colKeysPath;\n// this.tree = dataset.tree;\n// this._indicatorObjects = [];\n// this._headerObjects = [];\n// this._headerObjectMap = {};\n// this.initState();\n// this.convertColKeys = transpose(this.colKeysPath);\n// }\n\n// // 为列宽计算专用,兼容列表 对齐pivot-header-layout文件\n// isHeaderForColWidth(col: number, row: number): boolean {\n// return this.isHeader(col, row);\n// }\n// getHeaderForColWidth(col: number, row: number): HeaderData {\n// return this.getHeader(col, row);\n// }\n\n// // TODO: 补充Header Move\n\n// setChartInstance(_col: number, _row: number, chartInstance: any) {\n// const paths = this.getCellHeaderPaths(_col, _row);\n// let indicatorObj;\n// if (this.indicatorsAsCol) {\n// const indicatorKey = paths.colHeaderPaths.find(colPath => colPath.indicatorKey)?.indicatorKey;\n// indicatorObj = this._indicatorObjects.find(indicator => indicator.indicatorKey === indicatorKey);\n// } else {\n// const indicatorKey = paths.rowHeaderPaths.find(rowPath => rowPath.indicatorKey)?.indicatorKey;\n// indicatorObj = this._indicatorObjects.find(indicator => indicator.indicatorKey === indicatorKey);\n// }\n// indicatorObj && (indicatorObj.chartInstance = chartInstance);\n// }\n\n// getChartInstance(_col: number, _row: number) {\n// const paths = this.getCellHeaderPaths(_col, _row);\n// let indicatorObj;\n// if (this.indicatorsAsCol) {\n// const indicatorKey = paths.colHeaderPaths.find(colPath => colPath.indicatorKey)?.indicatorKey;\n// indicatorObj = this._indicatorObjects.find(indicator => indicator.indicatorKey === indicatorKey);\n// } else {\n// const indicatorKey = paths.rowHeaderPaths.find(rowPath => rowPath.indicatorKey)?.indicatorKey;\n// indicatorObj = this._indicatorObjects.find(indicator => indicator.indicatorKey === indicatorKey);\n// }\n// return indicatorObj?.chartInstance;\n// }\n\n// //#region pivot chart 区别于 pivot table 的特有方法\n// /** 将_selectedDataItemsInChart保存的数据状态同步到各个图表实例中 */\n// _generateChartState() {\n// const state = {\n// vtable_selected: {\n// filter: (datum: any) => {\n// if ((this._table as PivotChart)._selectedDataItemsInChart.length >= 1) {\n// const match = (this._table as PivotChart)._selectedDataItemsInChart.find(item => {\n// for (const itemKey in item) {\n// if (item[itemKey] !== datum[itemKey]) {\n// return false;\n// }\n// }\n// return true;\n// });\n// return !!match;\n// } else if ((this._table as PivotChart)._selectedDimensionInChart?.length) {\n// // 判断维度点击\n// const match = (this._table as PivotChart)._selectedDimensionInChart.every(item => {\n// if (datum[item.key] !== item.value) {\n// return false;\n// }\n// return true;\n// });\n// return !!match;\n// }\n// return false;\n// }\n// },\n// vtable_selected_reverse: {\n// filter: (datum: any) => {\n// if ((this._table as PivotChart)._selectedDataItemsInChart.length >= 1) {\n// const match = (this._table as PivotChart)._selectedDataItemsInChart.find(item => {\n// for (const itemKey in item) {\n// if (item[itemKey] !== datum[itemKey]) {\n// return false;\n// }\n// }\n// return true;\n// });\n// return !match;\n// } else if ((this._table as PivotChart)._selectedDimensionInChart?.length) {\n// // 判断维度点击\n// const match = (this._table as PivotChart)._selectedDimensionInChart.every(item => {\n// if (datum[item.key] !== item.value) {\n// return false;\n// }\n// return true;\n// });\n// return !match;\n// }\n// return false;\n// }\n// }\n// };\n// return state;\n// }\n// updateDataStateToChartInstance(activeChartInstance?: any): void {\n// if (!activeChartInstance) {\n// activeChartInstance = (this._table as PivotChart)._getActiveChartInstance();\n// }\n// const state = this._generateChartState();\n// this._indicatorObjects.forEach((_indicatorObject: IndicatorData) => {\n// const chartInstance = _indicatorObject.chartInstance;\n// chartInstance.updateState(state);\n// });\n// activeChartInstance?.updateState(state);\n// }\n// updateDataStateToActiveChartInstance(activeChartInstance?: any): void {\n// if (!activeChartInstance) {\n// activeChartInstance = (this._table as PivotChart)._getActiveChartInstance();\n// }\n// const state = this._generateChartState();\n// activeChartInstance?.updateState(state);\n// }\n// /** 获取某一图表列的最优宽度,计算逻辑是根据图表的xField的维度值个数 * barWidth */\n// getOptimunWidthForChart(col: number) {\n// const path = this.getCellHeaderPaths(col, this.columnHeaderLevelCount).colHeaderPaths;\n// let collectedValues: any;\n// for (const key in this.dataset.collectValuesBy) {\n// if (this.dataset.collectValuesBy[key].type === 'xField' && !this.dataset.collectValuesBy[key].range) {\n// collectedValues =\n// this.dataset.collectedValues[key][\n// path\n// .map(pathObj => {\n// return pathObj.value;\n// })\n// .join(this.dataset.stringJoinChar)\n// ];\n// break;\n// }\n// }\n// let width;\n// if (this._chartItemBandSize) {\n// // width = (collectedValues?.length ?? 0) * this._chartItemBandSize;\n// width = scaleWholeRangeSize(\n// collectedValues?.length ?? 0,\n// this._chartItemBandSize,\n// this._chartPaddingInner,\n// this._chartPaddingOuter\n// );\n// } else {\n// const barWidth = this._chartItemSpanSize || 25;\n// width = (collectedValues?.length ?? 0) * (barWidth + barWidth / 3);\n// }\n\n// const padding = getQuadProps(this._chartPadding ?? (this._table.theme.bodyStyle.padding as number) ?? 0);\n// return width + padding[1] + padding[3];\n// }\n// /** 获取某一图表列的最优高度,计算逻辑是根据图表的yField的维度值个数 * barWidth */\n// getOptimunHeightForChart(row: number) {\n// const path = this.getCellHeaderPaths(this.rowHeaderLevelCount, row).rowHeaderPaths;\n// let collectedValues: any;\n// for (const key in this.dataset.collectValuesBy) {\n// if (this.dataset.collectValuesBy[key].type === 'yField' && !this.dataset.collectValuesBy[key].range) {\n// collectedValues =\n// this.dataset.collectedValues[key][\n// path\n// .map(pathObj => {\n// return pathObj.value;\n// })\n// .join(this.dataset.stringJoinChar)\n// ];\n// break;\n// }\n// }\n// let height;\n// if (this._chartItemBandSize) {\n// // height = (collectedValues?.length ?? 0) * this._chartItemBandSize;\n// height = scaleWholeRangeSize(\n// collectedValues?.length ?? 0,\n// this._chartItemBandSize,\n// this._chartPaddingInner,\n// this._chartPaddingOuter\n// );\n// } else {\n// const barWidth = this._chartItemSpanSize || 25;\n// height = (collectedValues?.length ?? 0) * (barWidth + barWidth / 3);\n// }\n// const padding = getQuadProps(this._chartPadding ?? (this._table.theme.bodyStyle.padding as number) ?? 0);\n// return height + padding[0] + padding[2];\n// }\n// /**\n// * 获取图表对应的指标值\n// * */\n// getIndicatorKeyInChartSpec(_col: number, _row: number) {\n// // const paths = this.getCellHeaderPaths(_col, _row);\n// // let indicatorObj;\n// // if (this.indicatorsAsCol) {\n// // const indicatorKey = paths.colHeaderPaths.find(colPath => colPath.indicatorKey)?.indicatorKey;\n// // indicatorObj = this._indicatorObjects.find(indicator => indicator.indicatorKey === indicatorKey);\n// // } else {\n// // const indicatorKey = paths.rowHeaderPaths.find(rowPath => rowPath.indicatorKey)?.indicatorKey;\n// // indicatorObj = this._indicatorObjects.find(indicator => indicator.indicatorKey === indicatorKey);\n// // }\n// // const chartSpec = indicatorObj?.chartSpec;\n// const chartSpec = this.getRawChartSpec(_col, _row);\n// const indicatorKeys: string[] = [];\n// if (chartSpec) {\n// if (this.indicatorsAsCol === false) {\n// if (chartSpec.series) {\n// chartSpec.series.forEach((chartSeries: any) => {\n// const yField = chartSeries.yField;\n// indicatorKeys.push(yField);\n// });\n// } else {\n// indicatorKeys.push(chartSpec.yField);\n// }\n// } else {\n// if (chartSpec.series) {\n// chartSpec.series.forEach((chartSeries: any) => {\n// const xField = chartSeries.xField;\n// indicatorKeys.push(xField);\n// });\n// } else {\n// indicatorKeys.push(chartSpec.xField);\n// }\n// }\n// return indicatorKeys;\n// }\n// return null;\n// }\n\n// /**\n// * 获取图表对应的指标值\n// * */\n// getDimensionKeyInChartSpec(_col: number, _row: number) {\n// // const paths = this.getCellHeaderPaths(_col, _row);\n// // let indicatorObj;\n// // if (this.indicatorsAsCol) {\n// // const indicatorKey = paths.colHeaderPaths.find(colPath => colPath.indicatorKey)?.indicatorKey;\n// // indicatorObj = this._indicatorObjects.find(indicator => indicator.indicatorKey === indicatorKey);\n// // } else {\n// // const indicatorKey = paths.rowHeaderPaths.find(rowPath => rowPath.indicatorKey)?.indicatorKey;\n// // indicatorObj = this._indicatorObjects.find(indicator => indicator.indicatorKey === indicatorKey);\n// // }\n// // const chartSpec = indicatorObj?.chartSpec;\n// const chartSpec = this.getRawChartSpec(_col, _row);\n// const dimensionKeys: string[] = [];\n// if (chartSpec) {\n// if (this.indicatorsAsCol === false) {\n// dimensionKeys.push(chartSpec.xField ?? chartSpec?.series[0]?.xField);\n// } else {\n// dimensionKeys.push(chartSpec.yField ?? chartSpec?.series[0]?.yField);\n// }\n// return dimensionKeys;\n// }\n// return null;\n// }\n\n// getAxisConfigInPivotChart(col: number, row: number): any {\n// return getAxisConfigInPivotChart(col, row, this);\n// }\n// getRawChartSpec(col: number, row: number): any {\n// return getRawChartSpec(col, row, this);\n// }\n// getChartSpec(col: number, row: number): any {\n// return getChartSpec(col, row, this);\n// }\n// getChartAxes(col: number, row: number): any {\n// return getChartAxes(col, row, this);\n// }\n// getChartDataId(col: number, row: number): any {\n// return getChartDataId(col, row, this);\n// }\n// isEmpty(col: number, row: number): boolean {\n// if (!this._table.isPivotChart()) {\n// return false;\n// }\n// if (col > this.colCount - this.rightFrozenColCount - 1 || row > this.rowCount - this.bottomFrozenRowCount - 1) {\n// return true;\n// }\n// if (this.hasTwoIndicatorAxes && this.indicatorsAsCol && row === this.columnHeaderLevelCount - 1) {\n// return true;\n// }\n// return false;\n// }\n// //#endregion\n// release() {\n// const activeChartInstance = (this._table as PivotChart)._getActiveChartInstance();\n// activeChartInstance?.release();\n// this._indicatorObjects.forEach(indicatorObject => {\n// indicatorObject.chartInstance?.release();\n// });\n// }\n\n// clearCellRangeMap() {\n// // do nothing\n// }\n// }\n\n// // FIXME: 等 vscale 暴露这两个方法后,删掉这两个方法\n\n// /** 计算 scale 的实际 range 长度 */\n// function scaleWholeRangeSize(count: number, bandwidth: number, paddingInner: number, paddingOuter: number) {\n// if (paddingInner === 1) {\n// paddingInner = 0; // 保护\n// // FIXME: vscale 同样需要加保护,目前这里加了保护以后,在 paddingInner为 1 的情况还是会崩溃\n// }\n// const space = bandSpace(count, paddingInner, paddingOuter);\n// const step = bandwidth / (1 - paddingInner);\n// const wholeSize = space * step;\n// return wholeSize;\n// }\n\n// function bandSpace(count: number, paddingInner: number, paddingOuter: number): number {\n// let space;\n// // count 等于 1 时需要特殊处理,否则 step 会超出 range 范围\n// // 计算公式: step = paddingOuter * step * 2 + paddingInner * step + bandwidth\n// if (count === 1) {\n// space = count + paddingOuter * 2;\n// } else {\n// space = count - paddingInner + paddingOuter * 2;\n// }\n// return count ? (space > 0 ? space : 1) : 0;\n// }\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { BaseTableAPI } from '../ts-types/base-table';
|
|
2
|
+
export declare class NumberRangeMap {
|
|
3
|
+
data: Map<number, number>;
|
|
4
|
+
cumulativeSum: Map<number, number>;
|
|
5
|
+
difference: Map<number, number>;
|
|
6
|
+
totalSum: number;
|
|
7
|
+
table: BaseTableAPI;
|
|
8
|
+
isUpdate: boolean;
|
|
9
|
+
private _keys;
|
|
10
|
+
private _sorted;
|
|
11
|
+
constructor(table: BaseTableAPI);
|
|
12
|
+
get length(): number;
|
|
13
|
+
clear(): void;
|
|
14
|
+
clearRange(): void;
|
|
15
|
+
add(position: number, value: number): void;
|
|
16
|
+
remove(position: number): void;
|
|
17
|
+
put(position: number, newValue: number): void;
|
|
18
|
+
get(position: number): number;
|
|
19
|
+
has(position: number): boolean;
|
|
20
|
+
private _sort;
|
|
21
|
+
updateDifference(position: number, difference: number): void;
|
|
22
|
+
getSumInRange(start: number, end: number): number;
|
|
23
|
+
updateCumulativeSum(position: number, difference: number): void;
|
|
24
|
+
calculatePrefixSum(position: number): number;
|
|
25
|
+
getCumulativeSum(position: number): number;
|
|
26
|
+
update(): void;
|
|
27
|
+
dealDiffenence(): void;
|
|
28
|
+
insert(position: number, value?: number): void;
|
|
29
|
+
getLastIndex(): number;
|
|
30
|
+
delLast(): void;
|
|
31
|
+
delete(position: number): void;
|
|
32
|
+
adjustOrder(sourceIndex: number, targetIndex: number, moveCount: number): void;
|
|
33
|
+
exchangeOrder(sourceIndex: number, sourceCount: number, targetIndex: number, targetCount: number, insertIndex: number): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { isValid } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
export class NumberRangeMap {
|
|
4
|
+
constructor(table) {
|
|
5
|
+
this.isUpdate = !1, this._keys = [], this._sorted = !1, this.data = new Map, this._keys.length = 0,
|
|
6
|
+
this.cumulativeSum = new Map, this.difference = new Map, this.totalSum = 0, this.table = table;
|
|
7
|
+
}
|
|
8
|
+
get length() {
|
|
9
|
+
return this.data.size;
|
|
10
|
+
}
|
|
11
|
+
clear() {
|
|
12
|
+
this._keys = [], this.data.clear(), this.cumulativeSum.clear(), this.difference.clear(),
|
|
13
|
+
this.totalSum = 0;
|
|
14
|
+
}
|
|
15
|
+
clearRange() {
|
|
16
|
+
this.cumulativeSum.clear(), this.difference.clear();
|
|
17
|
+
}
|
|
18
|
+
add(position, value) {
|
|
19
|
+
if (!isValid(value)) return;
|
|
20
|
+
const defaultValue = this.table.getRowHeight(position);
|
|
21
|
+
this.data.has(position) || (this._keys.push(position), this._sorted = !1), this.data.set(position, value),
|
|
22
|
+
this.totalSum += value, this.updateDifference(position, value - defaultValue);
|
|
23
|
+
}
|
|
24
|
+
remove(position) {
|
|
25
|
+
if (this.data.has(position)) {
|
|
26
|
+
const value = this.data.get(position);
|
|
27
|
+
this.data.delete(position);
|
|
28
|
+
const index = this._keys.indexOf(position);
|
|
29
|
+
-1 !== index && this._keys.splice(index, 1), this.totalSum -= value;
|
|
30
|
+
const defaultValue = this.table.getRowHeight(position);
|
|
31
|
+
this.updateDifference(position, defaultValue - value);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
put(position, newValue) {
|
|
35
|
+
if (isValid(newValue)) if (this.data.has(position)) {
|
|
36
|
+
const oldValue = this.data.get(position);
|
|
37
|
+
if (oldValue === newValue) return;
|
|
38
|
+
this.data.set(position, newValue);
|
|
39
|
+
const difference = newValue - oldValue;
|
|
40
|
+
this.totalSum += difference, this.updateDifference(position, difference);
|
|
41
|
+
} else this.add(position, newValue);
|
|
42
|
+
}
|
|
43
|
+
get(position) {
|
|
44
|
+
return this.data.get(position);
|
|
45
|
+
}
|
|
46
|
+
has(position) {
|
|
47
|
+
return this.data.has(position);
|
|
48
|
+
}
|
|
49
|
+
_sort() {
|
|
50
|
+
const {_keys: keys} = this;
|
|
51
|
+
this._sorted || (keys.sort(((a, b) => a < b ? -1 : a > b ? 1 : 0)), this._sorted = !0);
|
|
52
|
+
}
|
|
53
|
+
updateDifference(position, difference) {
|
|
54
|
+
var _a;
|
|
55
|
+
const oldDifference = null !== (_a = this.difference.get(position)) && void 0 !== _a ? _a : 0;
|
|
56
|
+
this.difference.set(position, oldDifference + difference), this.update();
|
|
57
|
+
}
|
|
58
|
+
getSumInRange(start, end) {
|
|
59
|
+
return this.calculatePrefixSum(end) - this.calculatePrefixSum(start - 1);
|
|
60
|
+
}
|
|
61
|
+
updateCumulativeSum(position, difference) {
|
|
62
|
+
for (const [pos, sum] of this.cumulativeSum) pos >= position && this.cumulativeSum.set(pos, sum + difference);
|
|
63
|
+
}
|
|
64
|
+
calculatePrefixSum(position) {
|
|
65
|
+
if (position < 0) return 0;
|
|
66
|
+
if (this.cumulativeSum.has(position)) {
|
|
67
|
+
let cache = this.cumulativeSum.get(position);
|
|
68
|
+
for (const [pos, difference] of this.difference) pos <= position && (cache += difference);
|
|
69
|
+
return cache;
|
|
70
|
+
}
|
|
71
|
+
return this.dealDiffenence(), this.getCumulativeSum(position);
|
|
72
|
+
}
|
|
73
|
+
getCumulativeSum(position) {
|
|
74
|
+
var _a;
|
|
75
|
+
let sum = 0;
|
|
76
|
+
for (let i = position; i >= 0; i--) {
|
|
77
|
+
if (this.cumulativeSum.has(i)) {
|
|
78
|
+
sum += this.cumulativeSum.get(i);
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
sum += null !== (_a = this.data.get(i)) && void 0 !== _a ? _a : this.table.getRowHeight(i);
|
|
82
|
+
}
|
|
83
|
+
return this.cumulativeSum.set(position, sum), sum;
|
|
84
|
+
}
|
|
85
|
+
update() {
|
|
86
|
+
this.isUpdate || (this.isUpdate = !0, setTimeout((() => {
|
|
87
|
+
this.dealDiffenence(), this.isUpdate = !1;
|
|
88
|
+
}), 0));
|
|
89
|
+
}
|
|
90
|
+
dealDiffenence() {
|
|
91
|
+
for (const [sumPos] of this.cumulativeSum) for (const [difPos, difference] of this.difference) if (sumPos >= difPos) {
|
|
92
|
+
const oldSum = this.cumulativeSum.get(sumPos);
|
|
93
|
+
this.cumulativeSum.set(sumPos, oldSum + difference);
|
|
94
|
+
}
|
|
95
|
+
this.difference.clear();
|
|
96
|
+
}
|
|
97
|
+
insert(position, value) {
|
|
98
|
+
for (let i = position; i <= this.getLastIndex(); i++) this.cumulativeSum.delete(i);
|
|
99
|
+
const lastIndex = this.getLastIndex() + 1;
|
|
100
|
+
this.adjustOrder(position, position + 1, lastIndex - position), isValid(value) && this.put(position, value);
|
|
101
|
+
}
|
|
102
|
+
getLastIndex() {
|
|
103
|
+
return this._sort(), this._keys[this._keys.length - 1];
|
|
104
|
+
}
|
|
105
|
+
delLast() {
|
|
106
|
+
const lastIndex = this.getLastIndex();
|
|
107
|
+
this.remove(lastIndex);
|
|
108
|
+
}
|
|
109
|
+
delete(position) {
|
|
110
|
+
if (!this.has(position)) return;
|
|
111
|
+
for (let i = position; i <= this.getLastIndex(); i++) this.cumulativeSum.delete(i);
|
|
112
|
+
const lastIndex = this.getLastIndex();
|
|
113
|
+
this.adjustOrder(position + 1, position, lastIndex - position), this.delLast();
|
|
114
|
+
}
|
|
115
|
+
adjustOrder(sourceIndex, targetIndex, moveCount) {
|
|
116
|
+
this.clearRange(), this._sort();
|
|
117
|
+
const {_keys: keys} = this;
|
|
118
|
+
if (sourceIndex > targetIndex) {
|
|
119
|
+
const sourceVals = [];
|
|
120
|
+
for (let i = indexFirst(keys, sourceIndex + moveCount - 1); i >= 0; i--) {
|
|
121
|
+
const key = keys[i];
|
|
122
|
+
if (key >= sourceIndex) sourceVals.push(this.get(key)); else if (targetIndex <= key && key < sourceIndex) this.put(key + moveCount, this.get(key)); else if (key < targetIndex) break;
|
|
123
|
+
}
|
|
124
|
+
for (let i = 0; i < moveCount; i++) this.put(targetIndex + i, sourceVals[moveCount - 1 - i]);
|
|
125
|
+
}
|
|
126
|
+
const {length: length} = keys;
|
|
127
|
+
if (sourceIndex < targetIndex) {
|
|
128
|
+
const sourceVals = [];
|
|
129
|
+
for (let i = indexFirst(keys, sourceIndex); i < length; i++) {
|
|
130
|
+
const key = keys[i];
|
|
131
|
+
if (key >= sourceIndex && key < sourceIndex + moveCount) sourceVals.push(this.get(key)); else if (sourceIndex + moveCount <= key && key <= targetIndex) this.put(key - moveCount, this.get(key)); else if (key > targetIndex) break;
|
|
132
|
+
}
|
|
133
|
+
for (let i = 0; i < moveCount; i++) this.put(targetIndex + i, sourceVals[i]);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exchangeOrder(sourceIndex, sourceCount, targetIndex, targetCount, insertIndex) {
|
|
137
|
+
const {_keys: keys} = this;
|
|
138
|
+
if (this._sorted || (keys.sort(((a, b) => a < b ? -1 : a > b ? 1 : 0)), this._sorted = !0),
|
|
139
|
+
sourceIndex > targetIndex) {
|
|
140
|
+
const targetVals = [], sourceVals = [];
|
|
141
|
+
for (let i = indexFirst(keys, targetIndex); i < indexFirst(keys, sourceIndex) + sourceCount; i++) {
|
|
142
|
+
const key = keys[i];
|
|
143
|
+
key >= sourceIndex && key < sourceIndex + sourceCount ? sourceVals.push(this.get(key)) : targetVals.push(this.get(key));
|
|
144
|
+
}
|
|
145
|
+
for (let i = 0; i < sourceCount; i++) this.put(insertIndex + i, sourceVals[i]);
|
|
146
|
+
for (let i = 0; i < targetVals.length; i++) this.put(insertIndex + sourceCount + i, targetVals[i]);
|
|
147
|
+
} else {
|
|
148
|
+
const targetVals = [], sourceVals = [];
|
|
149
|
+
for (let i = indexFirst(keys, sourceIndex); i < indexFirst(keys, targetIndex) + targetCount; i++) {
|
|
150
|
+
const key = keys[i];
|
|
151
|
+
key >= sourceIndex && key < sourceIndex + sourceCount ? sourceVals.push(this.get(key)) : targetVals.push(this.get(key));
|
|
152
|
+
}
|
|
153
|
+
for (let i = 0; i < sourceCount; i++) this.put(insertIndex + i, sourceVals[i]);
|
|
154
|
+
for (let i = 0; i < targetVals.length; i++) this.put(sourceIndex + i, targetVals[i]);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function indexFirst(arr, elm) {
|
|
160
|
+
let low = 0, high = arr.length - 1;
|
|
161
|
+
for (;low <= high; ) {
|
|
162
|
+
const i = Math.floor((low + high) / 2);
|
|
163
|
+
if (arr[i] === elm) return i;
|
|
164
|
+
arr[i] > elm ? high = i - 1 : low = i + 1;
|
|
165
|
+
}
|
|
166
|
+
return high < 0 ? 0 : high;
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=row-height-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/layout/row-height-map.ts"],"names":[],"mappings":"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","file":"row-height-map.js","sourcesContent":["import { isValid } from '@visactor/vutils';\nimport type { BaseTableAPI } from '../ts-types/base-table';\n\nexport class NumberRangeMap {\n data: Map<number, number>;\n cumulativeSum: Map<number, number>;\n difference: Map<number, number>;\n totalSum: number;\n table: BaseTableAPI;\n isUpdate = false;\n private _keys: number[] = [];\n private _sorted = false;\n\n constructor(table: BaseTableAPI) {\n this.data = new Map();\n this._keys.length = 0;\n this.cumulativeSum = new Map();\n this.difference = new Map();\n this.totalSum = 0;\n this.table = table;\n }\n\n get length() {\n return this.data.size;\n }\n\n clear() {\n this._keys = [];\n this.data.clear();\n this.cumulativeSum.clear();\n this.difference.clear();\n this.totalSum = 0;\n }\n\n clearRange() {\n this.cumulativeSum.clear();\n this.difference.clear();\n }\n\n add(position: number, value: number) {\n if (!isValid(value)) {\n return;\n }\n const defaultValue = this.table.getRowHeight(position);\n if (!this.data.has(position)) {\n this._keys.push(position);\n this._sorted = false;\n }\n this.data.set(position, value);\n this.totalSum += value;\n // this.updateCumulativeSum(position, value);\n this.updateDifference(position, value - defaultValue);\n }\n\n remove(position: number) {\n if (this.data.has(position)) {\n const value = this.data.get(position);\n this.data.delete(position);\n const index = this._keys.indexOf(position);\n if (index !== -1) {\n this._keys.splice(index, 1); // 使用 splice() 方法删除指定索引位置的元素\n }\n this.totalSum -= value;\n const defaultValue = this.table.getRowHeight(position);\n // this.updateCumulativeSum(position, -value);\n this.updateDifference(position, defaultValue - value);\n }\n }\n\n put(position: number, newValue: number) {\n if (!isValid(newValue)) {\n return;\n }\n if (this.data.has(position)) {\n const oldValue = this.data.get(position);\n\n if (oldValue === newValue) {\n return;\n }\n this.data.set(position, newValue);\n const difference = newValue - oldValue;\n this.totalSum += difference;\n // this.updateCumulativeSum(position, difference);\n this.updateDifference(position, difference);\n } else {\n this.add(position, newValue);\n }\n }\n\n get(position: number) {\n return this.data.get(position);\n }\n\n has(position: number) {\n return this.data.has(position);\n }\n\n private _sort() {\n const { _keys: keys } = this;\n if (!this._sorted) {\n keys.sort((a, b) => {\n if (a < b) {\n return -1;\n }\n if (a > b) {\n return 1;\n }\n return 0;\n });\n this._sorted = true;\n }\n }\n\n updateDifference(position: number, difference: number) {\n const oldDifference = this.difference.get(position) ?? 0;\n this.difference.set(position, oldDifference + difference);\n this.update();\n }\n\n getSumInRange(start: number, end: number) {\n return this.calculatePrefixSum(end) - this.calculatePrefixSum(start - 1);\n }\n\n updateCumulativeSum(position: number, difference: number) {\n // 更新累加和\n for (const [pos, sum] of this.cumulativeSum) {\n if (pos >= position) {\n this.cumulativeSum.set(pos, sum + difference);\n }\n }\n }\n\n calculatePrefixSum(position: number) {\n if (position < 0) {\n return 0;\n }\n if (this.cumulativeSum.has(position)) {\n let cache = this.cumulativeSum.get(position);\n for (const [pos, difference] of this.difference) {\n if (pos <= position) {\n cache += difference;\n }\n }\n return cache;\n }\n\n this.dealDiffenence();\n return this.getCumulativeSum(position);\n }\n\n getCumulativeSum(position: number) {\n let sum = 0;\n for (let i = position; i >= 0; i--) {\n if (this.cumulativeSum.has(i)) {\n sum += this.cumulativeSum.get(i);\n break;\n } else {\n sum += this.data.get(i) ?? this.table.getRowHeight(i);\n }\n // if (i === position && this.cumulativeSum.has(i + 1)) {\n // sum += this.cumulativeSum.get(i + 1) - (this.data.get(i + 1) ?? this.table.getRowHeight(i + 1));\n // break;\n // }\n }\n this.cumulativeSum.set(position, sum);\n return sum;\n }\n\n update() {\n if (this.isUpdate) {\n return;\n }\n this.isUpdate = true;\n setTimeout(() => {\n this.dealDiffenence();\n this.isUpdate = false;\n }, 0);\n }\n\n dealDiffenence() {\n for (const [sumPos] of this.cumulativeSum) {\n for (const [difPos, difference] of this.difference) {\n if (sumPos >= difPos) {\n const oldSum = this.cumulativeSum.get(sumPos);\n this.cumulativeSum.set(sumPos, oldSum + difference);\n }\n }\n }\n\n this.difference.clear();\n }\n\n // add and reorder\n insert(position: number, value?: number) {\n // clear all sum cover position\n for (let i = position; i <= this.getLastIndex(); i++) {\n this.cumulativeSum.delete(i);\n }\n const lastIndex = this.getLastIndex() + 1;\n this.adjustOrder(position, position + 1, lastIndex - position);\n if (isValid(value)) {\n this.put(position, value);\n }\n }\n\n getLastIndex() {\n this._sort();\n return this._keys[this._keys.length - 1];\n }\n\n delLast() {\n const lastIndex = this.getLastIndex();\n this.remove(lastIndex);\n }\n\n // del and reorder\n delete(position: number) {\n if (!this.has(position)) {\n return;\n }\n\n // clear all sum cover position\n for (let i = position; i <= this.getLastIndex(); i++) {\n this.cumulativeSum.delete(i);\n }\n\n const lastIndex = this.getLastIndex();\n\n this.adjustOrder(position + 1, position, lastIndex - position);\n this.delLast();\n }\n\n /**\n * 将sourceIndex位置开始 往后moveCount个值 调整到targetIndex位置处\n * @param sourceIndex\n * @param targetIndex\n * @param moveCount\n */\n adjustOrder(sourceIndex: number, targetIndex: number, moveCount: number) {\n this.clearRange();\n this._sort();\n const { _keys: keys } = this;\n\n if (sourceIndex > targetIndex) {\n const sourceVals = [];\n for (let i = indexFirst(keys, sourceIndex + moveCount - 1); i >= 0; i--) {\n const key = keys[i];\n if (key >= sourceIndex) {\n sourceVals.push(this.get(key));\n } else if (targetIndex <= key && key < sourceIndex) {\n this.put(key + moveCount, this.get(key));\n } else if (key < targetIndex) {\n break;\n }\n }\n for (let i = 0; i < moveCount; i++) {\n this.put(targetIndex + i, sourceVals[moveCount - 1 - i]);\n }\n }\n const { length } = keys;\n if (sourceIndex < targetIndex) {\n const sourceVals = [];\n for (let i = indexFirst(keys, sourceIndex); i < length; i++) {\n const key = keys[i];\n if (key >= sourceIndex && key < sourceIndex + moveCount) {\n sourceVals.push(this.get(key));\n } else if (sourceIndex + moveCount <= key && key <= targetIndex) {\n this.put(key - moveCount, this.get(key));\n } else if (key > targetIndex) {\n break;\n }\n }\n for (let i = 0; i < moveCount; i++) {\n this.put(targetIndex + i, sourceVals[i]);\n }\n }\n }\n\n exchangeOrder(\n sourceIndex: number,\n sourceCount: number,\n targetIndex: number,\n targetCount: number,\n insertIndex: number\n ) {\n const { _keys: keys } = this;\n if (!this._sorted) {\n keys.sort((a, b) => {\n if (a < b) {\n return -1;\n }\n if (a > b) {\n return 1;\n }\n return 0;\n });\n this._sorted = true;\n }\n if (sourceIndex > targetIndex) {\n //先将target部分的值存起来\n const targetVals = [];\n const sourceVals = [];\n for (let i = indexFirst(keys, targetIndex); i < indexFirst(keys, sourceIndex) + sourceCount; i++) {\n const key = keys[i];\n if (key >= sourceIndex && key < sourceIndex + sourceCount) {\n sourceVals.push(this.get(key));\n } else {\n targetVals.push(this.get(key));\n }\n }\n for (let i = 0; i < sourceCount; i++) {\n this.put(insertIndex + i, sourceVals[i]);\n }\n\n for (let i = 0; i < targetVals.length; i++) {\n this.put(insertIndex + sourceCount + i, targetVals[i]);\n }\n } else {\n //先将target部分的值存起来\n const targetVals = [];\n const sourceVals = [];\n for (let i = indexFirst(keys, sourceIndex); i < indexFirst(keys, targetIndex) + targetCount; i++) {\n const key = keys[i];\n if (key >= sourceIndex && key < sourceIndex + sourceCount) {\n sourceVals.push(this.get(key));\n } else {\n targetVals.push(this.get(key));\n }\n }\n for (let i = 0; i < sourceCount; i++) {\n this.put(insertIndex + i, sourceVals[i]);\n }\n\n for (let i = 0; i < targetVals.length; i++) {\n this.put(sourceIndex + i, targetVals[i]);\n }\n }\n }\n}\n\nfunction indexFirst(arr: number[], elm: number): number {\n let low = 0;\n let high = arr.length - 1;\n while (low <= high) {\n const i = Math.floor((low + high) / 2);\n if (arr[i] === elm) {\n return i;\n } else if (arr[i] > elm) {\n high = i - 1;\n } else {\n low = i + 1;\n }\n }\n return high < 0 ? 0 : high;\n}\n"]}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { ListTable } from '../ListTable';
|
|
2
|
+
import type { CellAddress, CellRange, CellLocation, IListTableCellHeaderPaths, LayoutObjectId, IRowSeriesNumber } from '../ts-types';
|
|
3
|
+
import type { ColumnsDefine } from '../ts-types/list-table/define';
|
|
4
|
+
import type { ColumnData, ColumnDefine, HeaderData, LayoutMapAPI, SeriesNumberColumnData, WidthData } from '../ts-types/list-table/layout-map/api';
|
|
5
|
+
import type { Aggregator } from '../ts-types/dataset/aggregation';
|
|
6
|
+
import { DimensionTree } from './tree-helper';
|
|
7
|
+
export declare class SimpleHeaderLayoutMap implements LayoutMapAPI {
|
|
8
|
+
private seqId;
|
|
9
|
+
private _headerObjects;
|
|
10
|
+
private _headerObjectMap;
|
|
11
|
+
private _headerObjectsIncludeHided;
|
|
12
|
+
private _headerCellIds;
|
|
13
|
+
private _columns;
|
|
14
|
+
private _columnsIncludeHided;
|
|
15
|
+
rowSeriesNumberColumn: SeriesNumberColumnData[];
|
|
16
|
+
leftRowSeriesNumberColumn: SeriesNumberColumnData[];
|
|
17
|
+
rightRowSeriesNumberColumn: SeriesNumberColumnData[];
|
|
18
|
+
leftRowSeriesNumberColumnCount: number;
|
|
19
|
+
rightRowSeriesNumberColumnCount: number;
|
|
20
|
+
columnTree: DimensionTree;
|
|
21
|
+
readonly bodyRowSpanCount: number;
|
|
22
|
+
hierarchyIndent?: number;
|
|
23
|
+
hierarchyTextStartAlignment?: boolean;
|
|
24
|
+
_transpose: boolean;
|
|
25
|
+
_showHeader: boolean;
|
|
26
|
+
_recordsCount: number;
|
|
27
|
+
_table: ListTable;
|
|
28
|
+
_hasAggregation: boolean;
|
|
29
|
+
_hasAggregationOnTopCount: number;
|
|
30
|
+
_hasAggregationOnBottomCount: number;
|
|
31
|
+
rowHierarchyType?: 'grid' | 'tree';
|
|
32
|
+
_cellRangeMap: Map<string, CellRange>;
|
|
33
|
+
constructor(table: ListTable, columns: ColumnsDefine, showHeader: boolean, hierarchyIndent: number);
|
|
34
|
+
handleRowSeriesNumber(rowSeriesNumber: IRowSeriesNumber): void;
|
|
35
|
+
get transpose(): boolean;
|
|
36
|
+
set transpose(_transpose: boolean);
|
|
37
|
+
get showHeader(): boolean;
|
|
38
|
+
set showHeader(_showHeader: boolean);
|
|
39
|
+
isSeriesNumberInHeader(col: number, row: number): boolean;
|
|
40
|
+
isSeriesNumberInBody(col: number, row: number): boolean;
|
|
41
|
+
isSeriesNumber(col: number, row: number): boolean;
|
|
42
|
+
getSeriesNumberHeader(col: number, row: number): SeriesNumberColumnData;
|
|
43
|
+
getSeriesNumberBody(col: number, row: number): SeriesNumberColumnData;
|
|
44
|
+
isHeader(col: number, row: number): boolean;
|
|
45
|
+
isAggregation(col: number, row: number): boolean;
|
|
46
|
+
isTopAggregation(col: number, row: number): boolean;
|
|
47
|
+
isBottomAggregation(col: number, row: number): boolean;
|
|
48
|
+
get hasAggregation(): boolean;
|
|
49
|
+
get hasAggregationOnTopCount(): number;
|
|
50
|
+
get hasAggregationOnBottomCount(): number;
|
|
51
|
+
getAggregatorsByCell(col: number, row: number): any;
|
|
52
|
+
getAggregatorsByCellRange(startCol: number, startRow: number, endCol: number, endRow: number): Aggregator[];
|
|
53
|
+
getAggregatorOnTop(col: number, row: number): Aggregator;
|
|
54
|
+
getAggregatorOnBottom(col: number, row: number): Aggregator;
|
|
55
|
+
getAggregatorCellAddress(startCol: number, startRow: number, endCol: number, endRow: number): {
|
|
56
|
+
col: number;
|
|
57
|
+
row: number;
|
|
58
|
+
}[];
|
|
59
|
+
getCellLocation(col: number, row: number): CellLocation;
|
|
60
|
+
isRowHeader(col: number, row: number): boolean;
|
|
61
|
+
isColumnHeader(col: number, row: number): boolean;
|
|
62
|
+
isFrozenColumn(col: number, row?: number): boolean;
|
|
63
|
+
isRightFrozenColumn(col: number, row?: number): boolean;
|
|
64
|
+
isFrozenRow(col: number, row?: number): boolean;
|
|
65
|
+
isBottomFrozenRow(col: number, row?: number): boolean;
|
|
66
|
+
isLeftTopCorner(col: number, row: number): boolean;
|
|
67
|
+
isLeftBottomCorner(col: number, row: number): boolean;
|
|
68
|
+
isRightTopCorner(col: number, row: number): boolean;
|
|
69
|
+
isRightBottomCorner(col: number, row: number): boolean;
|
|
70
|
+
isCornerHeader(col: number, row: number): boolean;
|
|
71
|
+
getColumnHeaderRange(): CellRange;
|
|
72
|
+
getRowHeaderRange(): CellRange | undefined;
|
|
73
|
+
getCornerHeaderRange(): CellRange | undefined;
|
|
74
|
+
getBodyRange(): CellRange;
|
|
75
|
+
get headerLevelCount(): number;
|
|
76
|
+
get columnHeaderLevelCount(): number;
|
|
77
|
+
get rowHeaderLevelCount(): number;
|
|
78
|
+
get frozenColCount(): number;
|
|
79
|
+
get frozenRowCount(): number;
|
|
80
|
+
get bottomFrozenRowCount(): number;
|
|
81
|
+
get rightFrozenColCount(): number;
|
|
82
|
+
get colCount(): number;
|
|
83
|
+
get rowCount(): number;
|
|
84
|
+
get bodyRowCount(): number;
|
|
85
|
+
get bodyColCount(): number;
|
|
86
|
+
get recordsCount(): number;
|
|
87
|
+
set recordsCount(recordsCount: number);
|
|
88
|
+
get headerObjects(): HeaderData[];
|
|
89
|
+
get columnObjects(): ColumnData[];
|
|
90
|
+
get headerObjectsIncludeHided(): HeaderData[];
|
|
91
|
+
get columnWidths(): WidthData[];
|
|
92
|
+
getColumnWidthDefined(col: number): WidthData;
|
|
93
|
+
getCellId(col: number, row: number): LayoutObjectId;
|
|
94
|
+
getHeader(col: number, row: number): HeaderData | SeriesNumberColumnData;
|
|
95
|
+
getHeaderField(col: number, row: number): import("../ts-types").FieldDef;
|
|
96
|
+
getHeaderCellAdressById(id: number): CellAddress | undefined;
|
|
97
|
+
getHeaderCellAddressByField(field: string): CellAddress | undefined;
|
|
98
|
+
getBody(col: number, _row: number): ColumnData | SeriesNumberColumnData;
|
|
99
|
+
getBodyLayoutRangeById(id: LayoutObjectId): CellRange;
|
|
100
|
+
getCellRange(col: number, row: number): CellRange;
|
|
101
|
+
isCellRangeEqual(col: number, row: number, targetCol: number, targetRow: number): boolean;
|
|
102
|
+
getRecordShowIndexByCell(col: number, row: number): number;
|
|
103
|
+
getRecordStartRowByRecordIndex(index: number): number;
|
|
104
|
+
private _addHeaders;
|
|
105
|
+
private _newRow;
|
|
106
|
+
getCellHeaderPaths(col: number, row: number): IListTableCellHeaderPaths;
|
|
107
|
+
private getParentCellId;
|
|
108
|
+
canMoveHeaderPosition(source: CellAddress, target: CellAddress): boolean;
|
|
109
|
+
moveHeaderPosition(source: CellAddress, target: CellAddress): {
|
|
110
|
+
sourceIndex: number;
|
|
111
|
+
targetIndex: number;
|
|
112
|
+
sourceSize: number;
|
|
113
|
+
targetSize: number;
|
|
114
|
+
moveType: 'column' | 'row';
|
|
115
|
+
};
|
|
116
|
+
toggleHierarchyState(diffDataIndices: {
|
|
117
|
+
add: number[];
|
|
118
|
+
remove: number[];
|
|
119
|
+
}): {
|
|
120
|
+
addCellPositions: {
|
|
121
|
+
col: number;
|
|
122
|
+
row: number;
|
|
123
|
+
}[];
|
|
124
|
+
removeCellPositions: {
|
|
125
|
+
col: number;
|
|
126
|
+
row: number;
|
|
127
|
+
}[];
|
|
128
|
+
};
|
|
129
|
+
setChartInstance(_col: number, _row: number, chartInstance: any): void;
|
|
130
|
+
getChartInstance(_col: number, _row: number): any;
|
|
131
|
+
checkHasChart(): boolean;
|
|
132
|
+
getAxisConfigInPivotChart(col: number, row: number): any;
|
|
133
|
+
isEmpty(col: number, row: number): boolean;
|
|
134
|
+
isAxisCell(col: number, row: number): boolean;
|
|
135
|
+
getChartAxes(col: number, row: number): any[];
|
|
136
|
+
isShareChartSpec(col: number, row: number): boolean;
|
|
137
|
+
isNoChartDataRenderNothing(col: number, row: number): boolean;
|
|
138
|
+
getChartSpec(col: number, row: number): any;
|
|
139
|
+
getRawChartSpec(col: number, row: number): any;
|
|
140
|
+
getChartDataId(col: number, row: number): any;
|
|
141
|
+
release(): void;
|
|
142
|
+
clearCellRangeMap(): void;
|
|
143
|
+
updateColumnTitle(col: number, row: number, title: string): void;
|
|
144
|
+
getColumnByField(field: string | number): {
|
|
145
|
+
col: number;
|
|
146
|
+
columnDefine: ColumnData;
|
|
147
|
+
}[];
|
|
148
|
+
getColumnByKey(key: string): {
|
|
149
|
+
col: number;
|
|
150
|
+
columnDefine: ColumnData;
|
|
151
|
+
};
|
|
152
|
+
getColumnDefine(col: number, row: number): ColumnDefine | IRowSeriesNumber;
|
|
153
|
+
}
|