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,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.resetResidentHoverIcon = exports.residentHoverIcon = exports.updateCellRangeIcon = exports.updateCellGroupIcon = exports.updateHierarchyIcon = exports.updateFrozenIcon = exports.updateSortIcon = exports.updateIcon = exports.setIconNormalStyle = exports.setIconHoverStyle = exports.getIconByXY = exports.showClickIcon = exports.hideClickIcon = exports.showHoverIcon = exports.hideHoverIcon = void 0;
|
|
6
|
+
|
|
7
|
+
const vutils_1 = require("@visactor/vutils"), ts_types_1 = require("../../ts-types"), vrender_1 = require("./../../vrender"), text_icon_layout_1 = require("../utils/text-icon-layout"), merge_range_1 = require("../../tools/merge-range"), util_1 = require("../../tools/util");
|
|
8
|
+
|
|
9
|
+
function hideHoverIcon(col, row, scene) {
|
|
10
|
+
-1 !== col && -1 !== row && (updateCellRangeIcon(col, row, (icon => "mouseenter_cell" === icon.attribute.visibleTime), (icon => {
|
|
11
|
+
icon.setAttribute("opacity", 0);
|
|
12
|
+
const iconBack = icon.parent.getChildByName("icon-back");
|
|
13
|
+
iconBack && iconBack.setAttribute("visible", !1);
|
|
14
|
+
}), scene), scene.updateNextFrame());
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function showHoverIcon(col, row, scene) {
|
|
18
|
+
-1 !== col && -1 !== row && (updateCellRangeIcon(col, row, (icon => "mouseenter_cell" === icon.attribute.visibleTime), (icon => {
|
|
19
|
+
icon.setAttribute("opacity", 1);
|
|
20
|
+
}), scene), scene.updateNextFrame());
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function hideClickIcon(col, row, scene) {
|
|
24
|
+
-1 !== col && -1 !== row && (updateCellRangeIcon(col, row, (icon => "click_cell" === icon.attribute.visibleTime), (icon => {
|
|
25
|
+
icon.setAttribute("opacity", 0);
|
|
26
|
+
}), scene), scene.updateNextFrame());
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function showClickIcon(col, row, scene) {
|
|
30
|
+
-1 !== col && -1 !== row && (updateCellRangeIcon(col, row, (icon => "click_cell" === icon.attribute.visibleTime), (icon => {
|
|
31
|
+
icon.setAttribute("opacity", 1);
|
|
32
|
+
}), scene), scene.updateNextFrame());
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function getIconByXY(col, row, x, y, scene) {
|
|
36
|
+
let pickMark;
|
|
37
|
+
return scene.getCell(col, row).forEachChildren((mark => {
|
|
38
|
+
mark.role && mark.role.startsWith("icon") && mark.containsPoint(x, y, vrender_1.IContainPointMode.GLOBAL) && (pickMark = mark);
|
|
39
|
+
})), pickMark;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function setIconHoverStyle(baseIcon, col, row, cellGroup, scene) {
|
|
43
|
+
var _a, _b;
|
|
44
|
+
if ((baseIcon.attribute.backgroundColor || baseIcon.attribute.hoverImage) && updateCellRangeIcon(col, row, (icon => icon.name === baseIcon.name), (icon => {
|
|
45
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
46
|
+
if (icon.attribute.backgroundColor) {
|
|
47
|
+
let iconBack = icon.parent.getChildByName("icon-back");
|
|
48
|
+
iconBack ? iconBack.setAttributes({
|
|
49
|
+
x: (null !== (_a = icon.attribute.x) && void 0 !== _a ? _a : 0) + (icon.AABBBounds.width() - icon.backgroundWidth) / 2,
|
|
50
|
+
y: (null !== (_b = icon.attribute.y) && void 0 !== _b ? _b : 0) + (icon.AABBBounds.height() - icon.backgroundHeight) / 2,
|
|
51
|
+
dx: null !== (_c = icon.attribute.dx) && void 0 !== _c ? _c : 0,
|
|
52
|
+
dy: null !== (_d = icon.attribute.dy) && void 0 !== _d ? _d : 0,
|
|
53
|
+
width: icon.backgroundWidth,
|
|
54
|
+
height: icon.backgroundHeight,
|
|
55
|
+
fill: icon.attribute.backgroundColor,
|
|
56
|
+
cornerRadius: 5,
|
|
57
|
+
visible: !0
|
|
58
|
+
}) : (iconBack = (0, vrender_1.createRect)({
|
|
59
|
+
x: (null !== (_e = icon.attribute.x) && void 0 !== _e ? _e : 0) + (icon.AABBBounds.width() - icon.backgroundWidth) / 2,
|
|
60
|
+
y: (null !== (_f = icon.attribute.y) && void 0 !== _f ? _f : 0) + (icon.AABBBounds.height() - icon.backgroundHeight) / 2,
|
|
61
|
+
dx: null !== (_g = icon.attribute.dx) && void 0 !== _g ? _g : 0,
|
|
62
|
+
dy: null !== (_h = icon.attribute.dy) && void 0 !== _h ? _h : 0,
|
|
63
|
+
width: icon.backgroundWidth,
|
|
64
|
+
height: icon.backgroundHeight,
|
|
65
|
+
fill: icon.attribute.backgroundColor,
|
|
66
|
+
cornerRadius: 5,
|
|
67
|
+
pickable: !1,
|
|
68
|
+
visible: !0
|
|
69
|
+
}), iconBack.name = "icon-back"), icon.parent.insertBefore(iconBack, icon);
|
|
70
|
+
}
|
|
71
|
+
icon.attribute.hoverImage && icon.attribute.image !== icon.attribute.hoverImage && (icon.image = icon.attribute.hoverImage);
|
|
72
|
+
}), scene), baseIcon.tooltip) {
|
|
73
|
+
const {x1: left, x2: right, y1: top, y2: bottom} = baseIcon.globalAABBBounds, tooltipOptions = {
|
|
74
|
+
content: baseIcon.tooltip.title,
|
|
75
|
+
referencePosition: {
|
|
76
|
+
rect: {
|
|
77
|
+
left: left,
|
|
78
|
+
right: right,
|
|
79
|
+
top: top,
|
|
80
|
+
bottom: bottom,
|
|
81
|
+
width: baseIcon.globalAABBBounds.width(),
|
|
82
|
+
height: baseIcon.globalAABBBounds.height()
|
|
83
|
+
},
|
|
84
|
+
placement: baseIcon.tooltip.placement
|
|
85
|
+
},
|
|
86
|
+
disappearDelay: baseIcon.tooltip.disappearDelay,
|
|
87
|
+
style: Object.assign({}, null === (_a = scene.table.internalProps.theme) || void 0 === _a ? void 0 : _a.tooltipStyle, null === (_b = baseIcon.tooltip) || void 0 === _b ? void 0 : _b.style)
|
|
88
|
+
};
|
|
89
|
+
scene.table.internalProps.tooltipHandler.isBinded(tooltipOptions) || scene.table.showTooltip(col, row, tooltipOptions);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function setIconNormalStyle(baseIcon, col, row, scene) {
|
|
94
|
+
(baseIcon.attribute.backgroundColor || baseIcon.attribute.hoverImage) && updateCellRangeIcon(col, row, (icon => icon.name === baseIcon.name), (icon => {
|
|
95
|
+
const iconBack = icon.parent.getChildByName("icon-back");
|
|
96
|
+
iconBack && iconBack.setAttribute("visible", !1), icon.attribute.hoverImage && icon.attribute.image !== icon.attribute.originImage && (icon.image = icon.attribute.originImage);
|
|
97
|
+
}), scene);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function updateIcon(baseIcon, iconConfig, col, row, scene) {
|
|
101
|
+
const iconName = baseIcon.name;
|
|
102
|
+
updateCellRangeIcon(col, row, (icon => icon.name === iconName), (icon => {
|
|
103
|
+
(0, text_icon_layout_1.dealWithIcon)(iconConfig, icon), icon.name = iconConfig.name;
|
|
104
|
+
}), scene), scene.updateNextFrame();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function resetSortIcon(oldSortCol, oldSortRow, iconConfig, scene) {
|
|
108
|
+
const oldSortCell = scene.getCell(oldSortCol, oldSortRow);
|
|
109
|
+
if ((0, vutils_1.isValid)(oldSortCell.mergeStartCol) && (0, vutils_1.isValid)(oldSortCell.mergeStartRow) && (0,
|
|
110
|
+
vutils_1.isValid)(oldSortCell.mergeEndCol) && (0, vutils_1.isValid)(oldSortCell.mergeEndRow)) for (let col = oldSortCell.mergeStartCol; col <= oldSortCell.mergeEndCol; col++) for (let row = oldSortCell.mergeStartRow; row <= oldSortCell.mergeEndRow; row++) {
|
|
111
|
+
let oldIconMark;
|
|
112
|
+
scene.getCell(col, row).forEachChildren((mark => "sort" === mark.attribute.funcType && (oldIconMark = mark,
|
|
113
|
+
!0))), oldIconMark && ((0, text_icon_layout_1.dealWithIcon)(iconConfig, oldIconMark),
|
|
114
|
+
oldIconMark.name = iconConfig.name);
|
|
115
|
+
} else {
|
|
116
|
+
let oldIconMark;
|
|
117
|
+
(0, util_1.traverseObject)(oldSortCell, "children", (mark => "sort" === mark.attribute.funcType && (oldIconMark = mark,
|
|
118
|
+
!0))), oldIconMark && ((0, text_icon_layout_1.dealWithIcon)(iconConfig, oldIconMark),
|
|
119
|
+
oldIconMark.name = iconConfig.name);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function checkSameCell(col1, row1, col2, row2, table) {
|
|
124
|
+
const range1 = table.getCellRange(col1, row1), range2 = table.getCellRange(col2, row2);
|
|
125
|
+
return range1.start.col === range2.start.col && range1.start.row === range2.start.row && range1.end.col === range2.end.col && range1.end.row === range2.end.row;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function updateSortIcon(options) {
|
|
129
|
+
const {col: col, row: row, iconMark: iconMark, order: order, oldSortCol: oldSortCol, oldSortRow: oldSortRow, oldIconMark: oldIconMark, scene: scene} = options, icon = scene.table.internalProps.headerHelper.getSortIcon(order, scene.table, col, row);
|
|
130
|
+
if (iconMark && updateIcon(iconMark, icon, col, row, scene), !checkSameCell(col, row, oldSortCol, oldSortRow, scene.table)) {
|
|
131
|
+
const oldIcon = scene.table.internalProps.headerHelper.getSortIcon("normal", scene.table, oldSortCol, oldSortRow);
|
|
132
|
+
oldIconMark ? updateIcon(oldIconMark, oldIcon, oldSortCol, oldSortRow, scene) : resetSortIcon(oldSortCol, oldSortRow, oldIcon, scene);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function updateFrozenIcon(scene) {
|
|
137
|
+
for (let col = 0; col < scene.table.colCount; col++) for (let row = 0; row < scene.table.columnHeaderLevelCount; row++) updateCellRangeIcon(col, row, (icon => "frozen" === icon.attribute.funcType), (icon => {
|
|
138
|
+
const iconConfig = scene.table.internalProps.headerHelper.getFrozenIcon(col, row);
|
|
139
|
+
(0, text_icon_layout_1.dealWithIcon)(iconConfig, icon), icon.name = iconConfig.name;
|
|
140
|
+
}), scene);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function updateHierarchyIcon(col, row, scene) {
|
|
144
|
+
let iconConfig;
|
|
145
|
+
iconConfig = scene.table.isHeader(col, row) ? scene.table.internalProps.headerHelper.getHierarchyIcon(col, row) : scene.table.internalProps.bodyHelper.getHierarchyIcon(col, row),
|
|
146
|
+
updateCellRangeIcon(col, row, (icon => icon.attribute.funcType === ts_types_1.IconFuncTypeEnum.collapse || icon.attribute.funcType === ts_types_1.IconFuncTypeEnum.expand), (icon => {
|
|
147
|
+
(0, text_icon_layout_1.dealWithIcon)(iconConfig, icon), icon.name = iconConfig.name;
|
|
148
|
+
}), scene);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function updateCellGroupIcon(cellGroup, filter, dealer) {
|
|
152
|
+
cellGroup && "empty" !== cellGroup.role && cellGroup.forEachChildren((child => {
|
|
153
|
+
"group" === child.type ? updateCellGroupIcon(child, filter, dealer) : filter(child) && dealer(child);
|
|
154
|
+
}));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function updateCellRangeIcon(col, row, filter, dealer, scene) {
|
|
158
|
+
const cellGroup = scene.getCell(col, row);
|
|
159
|
+
if ("cell" === cellGroup.role && (0, vutils_1.isValid)(cellGroup.mergeStartCol) && (0,
|
|
160
|
+
vutils_1.isValid)(cellGroup.mergeStartRow) && (0, vutils_1.isValid)(cellGroup.mergeEndCol) && (0,
|
|
161
|
+
vutils_1.isValid)(cellGroup.mergeEndRow)) {
|
|
162
|
+
const {colStart: colStart, colEnd: colEnd, rowStart: rowStart, rowEnd: rowEnd} = (0,
|
|
163
|
+
merge_range_1.getCellMergeRange)(cellGroup, scene);
|
|
164
|
+
for (let col = colStart; col <= colEnd; col++) for (let row = rowStart; row <= rowEnd; row++) updateCellGroupIcon(scene.highPerformanceGetCell(col, row), filter, dealer);
|
|
165
|
+
} else updateCellGroupIcon(cellGroup, filter, dealer);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function residentHoverIcon(col, row, scene) {
|
|
169
|
+
updateCellRangeIcon(col, row, (icon => icon.attribute.funcType === ts_types_1.IconFuncTypeEnum.dropDown), (icon => {
|
|
170
|
+
icon.oldVisibleTime = icon.attribute.visibleTime, icon.setAttribute("visibleTime", "always"),
|
|
171
|
+
icon.setAttribute("opacity", 1);
|
|
172
|
+
}), scene);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function resetResidentHoverIcon(col, row, scene) {
|
|
176
|
+
updateCellRangeIcon(col, row, (icon => icon.attribute.funcType === ts_types_1.IconFuncTypeEnum.dropDown), (icon => {
|
|
177
|
+
icon.oldVisibleTime && icon.setAttribute("visibleTime", icon.oldVisibleTime), icon.setAttribute("opacity", "always" === icon.attribute.visibleTime ? 1 : 0);
|
|
178
|
+
}), scene);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
exports.hideHoverIcon = hideHoverIcon, exports.showHoverIcon = showHoverIcon, exports.hideClickIcon = hideClickIcon,
|
|
182
|
+
exports.showClickIcon = showClickIcon, exports.getIconByXY = getIconByXY, exports.setIconHoverStyle = setIconHoverStyle,
|
|
183
|
+
exports.setIconNormalStyle = setIconNormalStyle, exports.updateIcon = updateIcon,
|
|
184
|
+
exports.updateSortIcon = updateSortIcon, exports.updateFrozenIcon = updateFrozenIcon,
|
|
185
|
+
exports.updateHierarchyIcon = updateHierarchyIcon, exports.updateCellGroupIcon = updateCellGroupIcon,
|
|
186
|
+
exports.updateCellRangeIcon = updateCellRangeIcon, exports.residentHoverIcon = residentHoverIcon,
|
|
187
|
+
exports.resetResidentHoverIcon = resetResidentHoverIcon;
|
|
188
|
+
//# sourceMappingURL=icon-update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/scenegraph/icon/icon-update.ts"],"names":[],"mappings":";;;AAAA,6CAA2C;AAI3C,6CAAkD;AAIlD,6CAAgE;AAChE,gEAAyD;AAEzD,yDAA4D;AAC5D,2CAAkD;AAElD,SAAgB,aAAa,CAAC,GAAW,EAAE,GAAW,EAAE,KAAiB;IACvE,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,EAAE;QAC5B,OAAO;KACR;IAKD,mBAAmB,CACjB,GAAG,EACH,GAAG,EACH,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,KAAK,iBAAiB,EAChE,CAAC,IAAU,EAAE,EAAE;QAC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,CACN,CAAC;AACJ,CAAC;AAbD,wDAaC","file":"icon-update.js","sourcesContent":["import { isValid } from '@visactor/vutils';\nimport type { Group } from '../graphic/group';\nimport type { Scenegraph } from '../scenegraph';\nimport type { ColumnIconOption, SortOrder, SvgIcon } from '../../ts-types';\nimport { IconFuncTypeEnum } from '../../ts-types';\nimport type { Icon } from '../graphic/icon';\nimport type { TooltipOptions } from '../../ts-types/tooltip';\nimport type { IRect } from './../../vrender';\nimport { IContainPointMode, createRect } from './../../vrender';\nimport { dealWithIcon } from '../utils/text-icon-layout';\nimport type { BaseTableAPI } from '../../ts-types/base-table';\nimport { getCellMergeRange } from '../../tools/merge-range';\nimport { traverseObject } from '../../tools/util';\n\nexport function hideHoverIcon(col: number, row: number, scene: Scenegraph) {\n if (col === -1 || row === -1) {\n return;\n }\n // const cellGroup = scene.getCell(col, row);\n // hideIcon(scene, cellGroup, 'mouseenter_cell');\n\n // hideIcon\n updateCellRangeIcon(\n col,\n row,\n (icon: Icon) => icon.attribute.visibleTime === 'mouseenter_cell',\n (icon: Icon) => {\n icon.setAttribute('opacity', 0);\n\n const iconBack = icon.parent.getChildByName('icon-back') as IRect;\n if (iconBack) {\n iconBack.setAttribute('visible', false);\n }\n },\n scene\n );\n scene.updateNextFrame();\n}\n\nexport function showHoverIcon(col: number, row: number, scene: Scenegraph) {\n if (col === -1 || row === -1) {\n return;\n }\n // const cellGroup = scene.getCell(col, row);\n // showIcon(scene, cellGroup, 'mouseenter_cell');\n\n // showIcon\n updateCellRangeIcon(\n col,\n row,\n (icon: Icon) => icon.attribute.visibleTime === 'mouseenter_cell',\n (icon: Icon) => {\n icon.setAttribute('opacity', 1);\n },\n scene\n );\n scene.updateNextFrame();\n}\n\nexport function hideClickIcon(col: number, row: number, scene: Scenegraph) {\n if (col === -1 || row === -1) {\n return;\n }\n // const cellGroup = scene.getCell(col, row);\n // hideIcon(scene, cellGroup, 'click_cell');\n\n // hideIcon\n updateCellRangeIcon(\n col,\n row,\n (icon: Icon) => icon.attribute.visibleTime === 'click_cell',\n (icon: Icon) => {\n icon.setAttribute('opacity', 0);\n },\n scene\n );\n scene.updateNextFrame();\n}\n\nexport function showClickIcon(col: number, row: number, scene: Scenegraph) {\n if (col === -1 || row === -1) {\n return;\n }\n // const cellGroup = scene.getCell(col, row);\n // showIcon(scene, cellGroup, 'click_cell');\n\n // showIcon\n updateCellRangeIcon(\n col,\n row,\n (icon: Icon) => icon.attribute.visibleTime === 'click_cell',\n (icon: Icon) => {\n icon.setAttribute('opacity', 1);\n },\n scene\n );\n scene.updateNextFrame();\n}\n\n/**\n * @description: 获取指定单元格指定位置的icon mark\n * @param {number} col\n * @param {number} row\n * @param {number} x\n * @param {number} y\n * @return {*}\n */\nexport function getIconByXY(col: number, row: number, x: number, y: number, scene: Scenegraph): Icon | undefined {\n const cellGroup = scene.getCell(col, row);\n let pickMark;\n cellGroup.forEachChildren((mark: Icon) => {\n if (mark.role && mark.role.startsWith('icon') && mark.containsPoint(x, y, IContainPointMode.GLOBAL)) {\n pickMark = mark;\n }\n });\n return pickMark;\n}\n\n/**\n * @description: 将指定icon mark设置为Hover样式\n * @param {Icon} icon\n * @param {number} col\n * @param {number} row\n * @return {*}\n */\nexport function setIconHoverStyle(baseIcon: Icon, col: number, row: number, cellGroup: Group, scene: Scenegraph) {\n if (baseIcon.attribute.backgroundColor || baseIcon.attribute.hoverImage) {\n updateCellRangeIcon(\n col,\n row,\n // filter\n (icon: Icon) => icon.name === baseIcon.name,\n (icon: Icon) => {\n // hover展示背景\n if (icon.attribute.backgroundColor) {\n let iconBack = icon.parent.getChildByName('icon-back') as IRect;\n if (iconBack) {\n iconBack.setAttributes({\n x:\n (icon.attribute.x ?? 0) +\n // (icon.attribute.dx ?? 0) +\n (icon.AABBBounds.width() - icon.backgroundWidth) / 2,\n y: (icon.attribute.y ?? 0) + (icon.AABBBounds.height() - icon.backgroundHeight) / 2,\n dx: icon.attribute.dx ?? 0,\n dy: icon.attribute.dy ?? 0,\n width: icon.backgroundWidth,\n height: icon.backgroundHeight,\n fill: icon.attribute.backgroundColor,\n cornerRadius: 5,\n visible: true\n });\n } else {\n iconBack = createRect({\n x:\n (icon.attribute.x ?? 0) +\n // (icon.attribute.dx ?? 0) +\n (icon.AABBBounds.width() - icon.backgroundWidth) / 2,\n y: (icon.attribute.y ?? 0) + (icon.AABBBounds.height() - icon.backgroundHeight) / 2,\n dx: icon.attribute.dx ?? 0,\n dy: icon.attribute.dy ?? 0,\n width: icon.backgroundWidth,\n height: icon.backgroundHeight,\n fill: icon.attribute.backgroundColor,\n cornerRadius: 5,\n pickable: false,\n visible: true\n }) as IRect;\n iconBack.name = 'icon-back';\n // cellGroup.appendChild(iconBack);\n }\n icon.parent.insertBefore(iconBack, icon);\n }\n\n // hover更换图片\n if (icon.attribute.hoverImage && icon.attribute.image !== icon.attribute.hoverImage) {\n icon.image = icon.attribute.hoverImage;\n }\n },\n scene\n );\n }\n // hover展示tooltip\n if (baseIcon.tooltip) {\n const { x1: left, x2: right, y1: top, y2: bottom } = baseIcon.globalAABBBounds;\n const tooltipOptions: TooltipOptions = {\n content: baseIcon.tooltip.title,\n referencePosition: {\n rect: {\n left: left,\n right: right,\n top: top,\n bottom: bottom,\n width: baseIcon.globalAABBBounds.width(),\n height: baseIcon.globalAABBBounds.height()\n },\n placement: baseIcon.tooltip.placement\n },\n disappearDelay: baseIcon.tooltip.disappearDelay,\n style: Object.assign({}, scene.table.internalProps.theme?.tooltipStyle, baseIcon.tooltip?.style)\n };\n if (!scene.table.internalProps.tooltipHandler.isBinded(tooltipOptions)) {\n scene.table.showTooltip(col, row, tooltipOptions);\n }\n }\n}\n\n/**\n * @description: 将指定icon mark设置为Normal样式\n * @param {Icon} icon\n * @param {number} col\n * @param {number} row\n * @return {*}\n */\nexport function setIconNormalStyle(baseIcon: Icon, col: number, row: number, scene: Scenegraph) {\n if (baseIcon.attribute.backgroundColor || baseIcon.attribute.hoverImage) {\n updateCellRangeIcon(\n col,\n row,\n // filter\n (icon: Icon) => icon.name === baseIcon.name,\n (icon: Icon) => {\n const iconBack = icon.parent.getChildByName('icon-back') as IRect;\n if (iconBack) {\n iconBack.setAttribute('visible', false);\n }\n\n // hover更换图片\n if (icon.attribute.hoverImage && icon.attribute.image !== icon.attribute.originImage) {\n icon.image = icon.attribute.originImage;\n }\n },\n scene\n );\n }\n}\n\nexport function updateIcon(baseIcon: Icon, iconConfig: ColumnIconOption, col: number, row: number, scene: Scenegraph) {\n // 直接更新mark attribute\n // dealWithIcon(iconConfig, icon);\n // icon.name = iconConfig.name;\n // scene.updateNextFrame();\n const iconName = baseIcon.name;\n updateCellRangeIcon(\n col,\n row,\n // filter\n (icon: Icon) => icon.name === iconName,\n // dealer\n (icon: Icon) => {\n dealWithIcon(iconConfig, icon);\n icon.name = iconConfig.name;\n },\n scene\n );\n\n scene.updateNextFrame();\n}\n\nfunction resetSortIcon(oldSortCol: number, oldSortRow: number, iconConfig: ColumnIconOption, scene: Scenegraph) {\n const oldSortCell = scene.getCell(oldSortCol, oldSortRow);\n\n if (\n isValid(oldSortCell.mergeStartCol) &&\n isValid(oldSortCell.mergeStartRow) &&\n isValid(oldSortCell.mergeEndCol) &&\n isValid(oldSortCell.mergeEndRow)\n ) {\n for (let col = oldSortCell.mergeStartCol; col <= oldSortCell.mergeEndCol; col++) {\n for (let row = oldSortCell.mergeStartRow; row <= oldSortCell.mergeEndRow; row++) {\n let oldIconMark: Icon;\n scene.getCell(col, row).forEachChildren((mark: Icon) => {\n if (mark.attribute.funcType === 'sort') {\n oldIconMark = mark;\n return true;\n }\n return false;\n });\n if (oldIconMark) {\n dealWithIcon(iconConfig, oldIconMark);\n oldIconMark.name = iconConfig.name;\n }\n }\n }\n } else {\n let oldIconMark: Icon;\n\n //oldSortCell.forEachChildren((mark: Icon) => {\n traverseObject(oldSortCell, 'children', (mark: Icon) => {\n if (mark.attribute.funcType === 'sort') {\n oldIconMark = mark;\n return true;\n }\n return false;\n });\n\n if (oldIconMark) {\n // updateIcon(oldIconMark, oldIcon);\n dealWithIcon(iconConfig, oldIconMark);\n oldIconMark.name = iconConfig.name;\n }\n }\n}\n\nfunction checkSameCell(col1: number, row1: number, col2: number, row2: number, table: BaseTableAPI) {\n const range1 = table.getCellRange(col1, row1);\n const range2 = table.getCellRange(col2, row2);\n if (\n range1.start.col === range2.start.col &&\n range1.start.row === range2.start.row &&\n range1.end.col === range2.end.col &&\n range1.end.row === range2.end.row\n ) {\n return true;\n }\n return false;\n}\n\nexport function updateSortIcon(options: {\n col: number;\n row: number;\n iconMark: Icon;\n order: SortOrder;\n oldSortCol: number;\n oldSortRow: number;\n oldIconMark: Icon | undefined;\n scene: Scenegraph;\n}) {\n const { col, row, iconMark, order, oldSortCol, oldSortRow, oldIconMark, scene } = options;\n // 更新icon\n const icon = scene.table.internalProps.headerHelper.getSortIcon(order, scene.table, col, row);\n if (iconMark) {\n updateIcon(iconMark, icon, col, row, scene);\n }\n\n // 更新旧frozen icon\n if (!checkSameCell(col, row, oldSortCol, oldSortRow, scene.table)) {\n const oldIcon = scene.table.internalProps.headerHelper.getSortIcon('normal', scene.table, oldSortCol, oldSortRow);\n if (oldIconMark) {\n updateIcon(oldIconMark, oldIcon, oldSortCol, oldSortRow, scene);\n } else {\n resetSortIcon(oldSortCol, oldSortRow, oldIcon, scene);\n }\n }\n}\n\nexport function updateFrozenIcon(scene: Scenegraph) {\n // 依据新旧冻结列确定更新范围\n for (let col = 0; col < scene.table.colCount; col++) {\n for (let row = 0; row < scene.table.columnHeaderLevelCount; row++) {\n updateCellRangeIcon(\n col,\n row,\n // filter\n (icon: Icon) => icon.attribute.funcType === 'frozen',\n // dealer\n (icon: Icon) => {\n const iconConfig = scene.table.internalProps.headerHelper.getFrozenIcon(col, row);\n dealWithIcon(iconConfig, icon);\n icon.name = iconConfig.name;\n },\n scene\n );\n }\n }\n}\n\nexport function updateHierarchyIcon(col: number, row: number, scene: Scenegraph) {\n let iconConfig: SvgIcon;\n if (scene.table.isHeader(col, row)) {\n iconConfig = scene.table.internalProps.headerHelper.getHierarchyIcon(col, row);\n } else {\n iconConfig = scene.table.internalProps.bodyHelper.getHierarchyIcon(col, row);\n }\n\n updateCellRangeIcon(\n col,\n row,\n // filter\n (icon: Icon) =>\n icon.attribute.funcType === IconFuncTypeEnum.collapse || icon.attribute.funcType === IconFuncTypeEnum.expand,\n // dealer\n (icon: Icon) => {\n dealWithIcon(iconConfig, icon);\n icon.name = iconConfig.name;\n },\n scene\n );\n}\n\nexport function updateCellGroupIcon(cellGroup: Group, filter: (icon: Icon) => boolean, dealer: (icon: Icon) => void) {\n if (!cellGroup || cellGroup.role === 'empty') {\n return;\n }\n cellGroup.forEachChildren((child: any) => {\n if (child.type === 'group') {\n updateCellGroupIcon(child, filter, dealer);\n } else if (filter(child)) {\n dealer(child);\n }\n });\n}\n\nexport function updateCellRangeIcon(\n col: number,\n row: number,\n filter: (icon: Icon) => boolean,\n dealer: (icon: Icon) => void,\n scene: Scenegraph\n) {\n const cellGroup = scene.getCell(col, row);\n if (\n cellGroup.role === 'cell' &&\n isValid(cellGroup.mergeStartCol) &&\n isValid(cellGroup.mergeStartRow) &&\n isValid(cellGroup.mergeEndCol) &&\n isValid(cellGroup.mergeEndRow)\n ) {\n const { colStart, colEnd, rowStart, rowEnd } = getCellMergeRange(cellGroup, scene);\n for (let col = colStart; col <= colEnd; col++) {\n for (let row = rowStart; row <= rowEnd; row++) {\n updateCellGroupIcon(scene.highPerformanceGetCell(col, row), filter, dealer);\n }\n }\n } else {\n updateCellGroupIcon(cellGroup, filter, dealer);\n }\n}\n\nexport function residentHoverIcon(col: number, row: number, scene: Scenegraph) {\n updateCellRangeIcon(\n col,\n row,\n // filter\n (icon: Icon) => icon.attribute.funcType === IconFuncTypeEnum.dropDown,\n // dealer\n (icon: Icon) => {\n (icon as any).oldVisibleTime = icon.attribute.visibleTime;\n icon.setAttribute('visibleTime', 'always');\n icon.setAttribute('opacity', 1);\n },\n scene\n );\n}\n\nexport function resetResidentHoverIcon(col: number, row: number, scene: Scenegraph) {\n updateCellRangeIcon(\n col,\n row,\n // filter\n (icon: Icon) => icon.attribute.funcType === IconFuncTypeEnum.dropDown,\n // dealer\n (icon: Icon) => {\n (icon as any).oldVisibleTime && icon.setAttribute('visibleTime', (icon as any).oldVisibleTime);\n icon.setAttribute('opacity', icon.attribute.visibleTime === 'always' ? 1 : 0);\n },\n scene\n );\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BaseTableAPI } from '../../ts-types/base-table';
|
|
2
|
+
export declare function computeColsWidth(table: BaseTableAPI, colStart?: number, colEnd?: number, update?: boolean): void;
|
|
3
|
+
export declare function computeColWidth(col: number, startRow: number, endRow: number, table: BaseTableAPI, forceCompute?: boolean): number;
|
|
4
|
+
export declare function getAdaptiveWidth(totalDrawWidth: number, startCol: number, endColPlus1: number, update: boolean, newWidths: number[], table: BaseTableAPI, fromScenegraph?: boolean): void;
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __createBinding = this && this.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
4
|
+
void 0 === k2 && (k2 = k);
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
get: function() {
|
|
9
|
+
return m[k];
|
|
10
|
+
}
|
|
11
|
+
}), Object.defineProperty(o, k2, desc);
|
|
12
|
+
} : function(o, m, k, k2) {
|
|
13
|
+
void 0 === k2 && (k2 = k), o[k2] = m[k];
|
|
14
|
+
}), __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", {
|
|
16
|
+
enumerable: !0,
|
|
17
|
+
value: v
|
|
18
|
+
});
|
|
19
|
+
} : function(o, v) {
|
|
20
|
+
o.default = v;
|
|
21
|
+
}), __importStar = this && this.__importStar || function(mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (null != mod) for (var k in mod) "default" !== k && Object.prototype.hasOwnProperty.call(mod, k) && __createBinding(result, mod, k);
|
|
25
|
+
return __setModuleDefault(result, mod), result;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
Object.defineProperty(exports, "__esModule", {
|
|
29
|
+
value: !0
|
|
30
|
+
}), exports.getAdaptiveWidth = exports.computeColWidth = exports.computeColsWidth = void 0;
|
|
31
|
+
|
|
32
|
+
const ts_types_1 = require("../../ts-types"), calc = __importStar(require("../../tools/calc")), padding_1 = require("../utils/padding"), get_prop_1 = require("../utils/get-prop"), factory_1 = require("../../core/factory"), vutils_1 = require("@visactor/vutils"), custom_1 = require("../component/custom"), break_string_1 = require("../utils/break-string"), react_custom_layout_1 = require("../../components/react/react-custom-layout"), helper_1 = require("../../tools/helper");
|
|
33
|
+
|
|
34
|
+
function computeColsWidth(table, colStart, colEnd, update) {
|
|
35
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
36
|
+
table.internalProps.columnWidthConfig && table._parseColumnWidthConfig(table.internalProps.columnWidthConfig),
|
|
37
|
+
table.isPivotTable() && table.internalProps.columnWidthConfigForRowHeader && table._parseColumnWidthConfigForRowHeader(table.internalProps.columnWidthConfigForRowHeader),
|
|
38
|
+
colStart = null != colStart ? colStart : 0, colEnd = null != colEnd ? colEnd : table.colCount - 1,
|
|
39
|
+
0 === colStart && colEnd === table.colCount - 1 && table._clearColRangeWidthsMap();
|
|
40
|
+
const layoutMap = table.internalProps.layoutMap;
|
|
41
|
+
table.isPivotTable() && (layoutMap.enableUseGetBodyCache(), layoutMap.enableUseHeaderPathCache());
|
|
42
|
+
const oldColWidths = [], newWidths = [];
|
|
43
|
+
if (update) for (let col = 0; col < table.colCount; col++) oldColWidths[col] = table.getColWidth(col);
|
|
44
|
+
for (let col = colStart; col <= colEnd; col++) {
|
|
45
|
+
let maxWidth;
|
|
46
|
+
if (table.internalProps.transpose || "only-header" !== (null === (_b = null === (_a = table.internalProps.layoutMap.columnObjects) || void 0 === _a ? void 0 : _a[col]) || void 0 === _b ? void 0 : _b.columnWidthComputeMode) && "only-header" !== table.columnWidthComputeMode || !("showHeader" in table.internalProps.layoutMap)) maxWidth = table.internalProps.transpose || "only-body" !== (null === (_d = null === (_c = table.internalProps.layoutMap.columnObjects) || void 0 === _c ? void 0 : _c[col]) || void 0 === _d ? void 0 : _d.columnWidthComputeMode) && "only-body" !== table.columnWidthComputeMode ? computeColWidth(col, 0, table.rowCount - 1, table) : computeColWidth(col, table.internalProps.layoutMap.getBodyRange().start.row, table.internalProps.layoutMap.getBodyRange().end.row, table); else {
|
|
47
|
+
const temp = table.internalProps.layoutMap.showHeader;
|
|
48
|
+
table.internalProps.layoutMap.showHeader = !0, maxWidth = computeColWidth(col, 0, table.internalProps.layoutMap.headerLevelCount - 1, table),
|
|
49
|
+
table.internalProps.layoutMap.showHeader = temp;
|
|
50
|
+
}
|
|
51
|
+
table._setColContentWidth(col, maxWidth);
|
|
52
|
+
table.getColWidth(col) !== maxWidth && table._clearColRangeWidthsMap(col), update ? newWidths[col] = Math.round(table._adjustColWidth(col, maxWidth)) : table._setColWidth(col, table._adjustColWidth(col, maxWidth), !1, !0);
|
|
53
|
+
}
|
|
54
|
+
if ("adaptive" === table.widthMode) {
|
|
55
|
+
table._clearColRangeWidthsMap();
|
|
56
|
+
const canvasWidth = table.tableNoFrameWidth;
|
|
57
|
+
let actualHeaderWidth = 0, startCol = 0, endCol = table.colCount;
|
|
58
|
+
if ("only-body" === table.widthAdaptiveMode) {
|
|
59
|
+
for (let col = 0; col < table.colCount; col++) {
|
|
60
|
+
const colWidth = update && null !== (_e = newWidths[col]) && void 0 !== _e ? _e : table.getColWidth(col);
|
|
61
|
+
(col < table.rowHeaderLevelCount || table.isPivotChart() && col >= table.colCount - table.rightFrozenColCount) && (actualHeaderWidth += colWidth);
|
|
62
|
+
}
|
|
63
|
+
startCol = table.rowHeaderLevelCount, endCol = table.isPivotChart() ? table.colCount - table.rightFrozenColCount : table.colCount;
|
|
64
|
+
}
|
|
65
|
+
getAdaptiveWidth(canvasWidth - actualHeaderWidth, startCol, endCol, update, newWidths, table);
|
|
66
|
+
} else if (table.autoFillWidth) {
|
|
67
|
+
table._clearColRangeWidthsMap();
|
|
68
|
+
const canvasWidth = table.tableNoFrameWidth;
|
|
69
|
+
let actualHeaderWidth = 0, actualWidth = 0;
|
|
70
|
+
for (let col = 0; col < table.colCount; col++) {
|
|
71
|
+
const colWidth = update && null !== (_f = newWidths[col]) && void 0 !== _f ? _f : table.getColWidth(col);
|
|
72
|
+
(col < table.rowHeaderLevelCount + table.leftRowSeriesNumberCount || table.isPivotChart() && col >= table.colCount - table.rightFrozenColCount) && (actualHeaderWidth += colWidth),
|
|
73
|
+
actualWidth += colWidth;
|
|
74
|
+
}
|
|
75
|
+
if (actualWidth < canvasWidth && actualWidth > actualHeaderWidth) {
|
|
76
|
+
getAdaptiveWidth(canvasWidth - actualHeaderWidth, table.rowHeaderLevelCount + table.leftRowSeriesNumberCount, table.isPivotChart() ? table.colCount - table.rightFrozenColCount : table.colCount, update, newWidths, table);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
if (update) {
|
|
80
|
+
for (let col = 0; col < table.colCount; col++) {
|
|
81
|
+
const newColWidth = null !== (_h = null !== (_g = newWidths[col]) && void 0 !== _g ? _g : table.getColWidth(col)) && void 0 !== _h ? _h : table.getColWidth(col);
|
|
82
|
+
newColWidth !== oldColWidths[col] && table._setColWidth(col, newColWidth, !1, !0);
|
|
83
|
+
}
|
|
84
|
+
table.stateManager.checkFrozen();
|
|
85
|
+
for (let col = 0; col < table.colCount; col++) {
|
|
86
|
+
const newColWidth = table.getColWidth(col);
|
|
87
|
+
newColWidth !== oldColWidths[col] && table.scenegraph.updateColWidth(col, newColWidth - oldColWidths[col], !0, !0);
|
|
88
|
+
}
|
|
89
|
+
table.scenegraph.updateContainer(!0);
|
|
90
|
+
}
|
|
91
|
+
table.isPivotTable() && (layoutMap.disableUseGetBodyCache(), layoutMap.disableUseHeaderPathCache());
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function computeColWidth(col, startRow, endRow, table, forceCompute = !1) {
|
|
95
|
+
let width = getColWidthDefinedWidthResizedWidth(col, table);
|
|
96
|
+
return table.internalProps.transpose && "auto" === width && ("only-header" === table.columnWidthComputeMode && col >= table.rowHeaderLevelCount || "only-body" === table.columnWidthComputeMode && col < table.rowHeaderLevelCount) && (width = table.getDefaultColumnWidth(col)),
|
|
97
|
+
forceCompute && !table.internalProps.transpose ? computeAutoColWidth(width, col, startRow, endRow, forceCompute, table) : "number" == typeof width ? width : "auto" !== width && "string" == typeof width ? table._adjustColWidth(col, table._colWidthDefineToPxWidth(width)) : computeAutoColWidth(width, col, startRow, endRow, forceCompute, table);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function computeAutoColWidth(widthDeifne, col, startRow, endRow, forceCompute, table) {
|
|
101
|
+
var _a, _b, _c, _d, _e;
|
|
102
|
+
let maxWidth = 0, deltaRow = 1, prepareDeltaRow = 1;
|
|
103
|
+
if (endRow - startRow > 5e3 && (prepareDeltaRow = Math.ceil((endRow - startRow) / 5e3)),
|
|
104
|
+
table.isPivotChart() && col >= table.rowHeaderLevelCount && col < table.colCount - table.rightFrozenColCount) {
|
|
105
|
+
if (table.internalProps.layoutMap.indicatorsAsCol) return table.defaultColWidth;
|
|
106
|
+
{
|
|
107
|
+
const optimunWidth = table.internalProps.layoutMap.getOptimunWidthForChart(col);
|
|
108
|
+
if (optimunWidth > 0) return optimunWidth;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
for (let row = startRow; row <= endRow; row += deltaRow) {
|
|
112
|
+
if (table.isPivotChart()) {
|
|
113
|
+
const layout = table.internalProps.layoutMap, axisConfig = layout.getAxisConfigInPivotChart(col, row);
|
|
114
|
+
if (axisConfig) {
|
|
115
|
+
const axisWidth = factory_1.Factory.getFunction("computeAxisComponentWidth")(axisConfig, table);
|
|
116
|
+
if ("number" == typeof axisWidth) {
|
|
117
|
+
maxWidth = Math.max(axisWidth, maxWidth);
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
} else if (layout.isLeftBottomCorner(col, row) || layout.isRightTopCorner(col, row) || layout.isRightBottomCorner(col, row)) continue;
|
|
121
|
+
}
|
|
122
|
+
const customWidth = computeCustomRenderWidth(col, row, table);
|
|
123
|
+
if (customWidth && (maxWidth = Math.max(customWidth.width, maxWidth), !customWidth.renderDefault)) continue;
|
|
124
|
+
const indicatorWidth = widthDeifne;
|
|
125
|
+
if ("number" == typeof indicatorWidth && "standard" === table.widthMode && !forceCompute) {
|
|
126
|
+
maxWidth = Math.max(indicatorWidth, maxWidth);
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
const cellType = table.isHeader(col, row) ? null === (_a = table._getHeaderLayoutMap(col, row)) || void 0 === _a ? void 0 : _a.headerType : table.getBodyColumnType(col, row);
|
|
130
|
+
if ((0, vutils_1.isValid)(cellType) && "text" !== cellType && "link" !== cellType && "progressbar" !== cellType && "checkbox" !== cellType && "radio" !== cellType && "switch" !== cellType && "button" !== cellType) {
|
|
131
|
+
maxWidth = Math.max(maxWidth, table.getColWidthDefinedNumber(col) || 0);
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
let cellHierarchyIndent = 0;
|
|
135
|
+
const layoutMap = table.internalProps.layoutMap;
|
|
136
|
+
if (layoutMap.isHeader(col, row)) {
|
|
137
|
+
const hd = layoutMap.getHeader(col, row);
|
|
138
|
+
if ("only-body" === (null === (_b = null == hd ? void 0 : hd.define) || void 0 === _b ? void 0 : _b.columnWidthComputeMode)) continue;
|
|
139
|
+
(0, vutils_1.isValid)(null == hd ? void 0 : hd.hierarchyLevel) && (cellHierarchyIndent = (null !== (_c = hd.hierarchyLevel) && void 0 !== _c ? _c : 0) * ("tree" === layoutMap.rowHierarchyType && null !== (_d = layoutMap.rowHierarchyIndent) && void 0 !== _d ? _d : 0),
|
|
140
|
+
layoutMap.rowHierarchyTextStartAlignment && !table.internalProps.headerHelper.getHierarchyIcon(col, row) && (cellHierarchyIndent += table.internalProps.headerHelper.getHierarchyIconWidth()));
|
|
141
|
+
} else if (table.isListTable()) {
|
|
142
|
+
deltaRow = prepareDeltaRow;
|
|
143
|
+
const define = table.getBodyColumnDefine(col, row);
|
|
144
|
+
if (null == define ? void 0 : define.tree) {
|
|
145
|
+
const indexArr = table.dataSource.getIndexKey(table.getRecordShowIndexByCell(col, row));
|
|
146
|
+
cellHierarchyIndent = Array.isArray(indexArr) && table.getHierarchyState(col, row) !== ts_types_1.HierarchyState.none ? (indexArr.length - 1) * (null !== (_e = layoutMap.hierarchyIndent) && void 0 !== _e ? _e : 0) : 0,
|
|
147
|
+
layoutMap.hierarchyTextStartAlignment && !table.internalProps.bodyHelper.getHierarchyIcon(col, row) && (cellHierarchyIndent += table.internalProps.headerHelper.getHierarchyIconWidth());
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
const textWidth = computeTextWidth(col, row, cellType, table);
|
|
151
|
+
maxWidth = Math.max(textWidth + cellHierarchyIndent, maxWidth), deltaRow > 1 && table.bottomFrozenRowCount > 0 && row < table.rowCount - table.bottomFrozenRowCount && row + deltaRow >= table.rowCount - table.bottomFrozenRowCount && (row = table.rowCount - table.bottomFrozenRowCount - deltaRow,
|
|
152
|
+
deltaRow = 1, prepareDeltaRow = 1);
|
|
153
|
+
}
|
|
154
|
+
const colMinWidth = table.getMinColWidth(col), colMaxWidth = table.getMaxColWidth(col);
|
|
155
|
+
return maxWidth < colMinWidth ? colMinWidth : maxWidth > colMaxWidth ? colMaxWidth : (maxWidth <= 0 && (maxWidth = table.defaultColWidth),
|
|
156
|
+
maxWidth);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function computeCustomRenderWidth(col, row, table) {
|
|
160
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
161
|
+
const customRender = table.getCustomRender(col, row);
|
|
162
|
+
let customLayout = table.getCustomLayout(col, row);
|
|
163
|
+
if (customRender || customLayout) {
|
|
164
|
+
let cellRange, spanCol = 1, width = 0, renderDefault = !1, enableCellPadding = !1;
|
|
165
|
+
(table.isHeader(col, row) || (null === (_a = table.getBodyColumnDefine(col, row)) || void 0 === _a ? void 0 : _a.mergeCell) || table.hasCustomMerge()) && (cellRange = table.getCellRange(col, row),
|
|
166
|
+
spanCol = cellRange.end.col - cellRange.start.col + 1);
|
|
167
|
+
const arg = {
|
|
168
|
+
col: null !== (_b = null == cellRange ? void 0 : cellRange.start.col) && void 0 !== _b ? _b : col,
|
|
169
|
+
row: null !== (_c = null == cellRange ? void 0 : cellRange.start.row) && void 0 !== _c ? _c : row,
|
|
170
|
+
dataValue: table.getCellOriginValue(col, row),
|
|
171
|
+
value: table.getCellValue(col, row) || "",
|
|
172
|
+
rect: getCellRect(col, row, table),
|
|
173
|
+
table: table,
|
|
174
|
+
originCol: col,
|
|
175
|
+
originRow: row,
|
|
176
|
+
forComputation: !0
|
|
177
|
+
};
|
|
178
|
+
if ("react-custom-layout" === customLayout && (customLayout = (null === (_d = table.reactCustomLayout) || void 0 === _d ? void 0 : _d.getCustomLayoutFunc(col, row)) || react_custom_layout_1.emptyCustomLayout),
|
|
179
|
+
(0, vutils_1.isFunction)(customLayout)) {
|
|
180
|
+
const customLayoutObj = customLayout(arg);
|
|
181
|
+
if (customLayoutObj.rootContainer) {
|
|
182
|
+
customLayoutObj.rootContainer = (0, custom_1.decodeReactDom)(customLayoutObj.rootContainer),
|
|
183
|
+
(0, custom_1.dealPercentCalc)(customLayoutObj.rootContainer, 0, table.getRowHeight(row));
|
|
184
|
+
const setedWidth = customLayoutObj.rootContainer.attribute.width;
|
|
185
|
+
customLayoutObj.rootContainer.setStage(table.scenegraph.stage), width = setedWidth > 0 ? setedWidth : null !== (_e = customLayoutObj.rootContainer.AABBBounds.width()) && void 0 !== _e ? _e : 0,
|
|
186
|
+
renderDefault = customLayoutObj.renderDefault, enableCellPadding = customLayoutObj.enableCellPadding;
|
|
187
|
+
} else width = 0, renderDefault = customLayoutObj.renderDefault, enableCellPadding = customLayoutObj.enableCellPadding;
|
|
188
|
+
} else if ("function" == typeof customRender) {
|
|
189
|
+
const customRenderObj = customRender(arg);
|
|
190
|
+
width = null !== (_f = null == customRenderObj ? void 0 : customRenderObj.expectedWidth) && void 0 !== _f ? _f : 0,
|
|
191
|
+
renderDefault = null == customRenderObj ? void 0 : customRenderObj.renderDefault;
|
|
192
|
+
} else width = null !== (_g = null == customRender ? void 0 : customRender.expectedWidth) && void 0 !== _g ? _g : 0,
|
|
193
|
+
renderDefault = null == customRender ? void 0 : customRender.renderDefault;
|
|
194
|
+
if (width = Math.ceil(width), enableCellPadding) {
|
|
195
|
+
const actStyle = table._getCellStyle(col, row), padding = (0, padding_1.getQuadProps)((0,
|
|
196
|
+
get_prop_1.getProp)("padding", actStyle, col, row, table));
|
|
197
|
+
width += padding[1] + padding[3];
|
|
198
|
+
}
|
|
199
|
+
return {
|
|
200
|
+
width: width / spanCol,
|
|
201
|
+
renderDefault: renderDefault
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function computeIndicatorWidth(col, row, forceCompute, table) {
|
|
207
|
+
const {layoutMap: layoutMap} = table.internalProps;
|
|
208
|
+
if (table.isPivotTable() && layoutMap.isColumnIndicatorHeader(col, row)) {
|
|
209
|
+
const body = layoutMap.getBody(col, row);
|
|
210
|
+
if (body && body.width && "auto" !== body.width && !forceCompute) {
|
|
211
|
+
return Math.round(calc.toPx(body.width, table.internalProps.calcWidthContext));
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function computeTextWidth(col, row, cellType, table) {
|
|
217
|
+
var _a, _b, _c, _d;
|
|
218
|
+
let maxWidth = 0;
|
|
219
|
+
const cellValue = table.getCellValue(col, row), actStyle = table._getCellStyle(col, row);
|
|
220
|
+
let iconWidth = 0, mayHaveIcon = !1;
|
|
221
|
+
if ("body" !== table.getCellLocation(col, row)) mayHaveIcon = !0; else {
|
|
222
|
+
const define = table.getBodyColumnDefine(col, row);
|
|
223
|
+
mayHaveIcon = !!(null == define ? void 0 : define.icon) || !!(null == define ? void 0 : define.tree) || (null == define ? void 0 : define.dragOrder);
|
|
224
|
+
}
|
|
225
|
+
if (mayHaveIcon) {
|
|
226
|
+
const icons = table.getCellIcons(col, row);
|
|
227
|
+
null == icons || icons.forEach((icon => {
|
|
228
|
+
var _a, _b, _c;
|
|
229
|
+
icon.positionType !== ts_types_1.IconPosition.absoluteRight && (iconWidth += (null !== (_a = icon.width) && void 0 !== _a ? _a : 0) + (null !== (_b = icon.marginLeft) && void 0 !== _b ? _b : 0) + (null !== (_c = icon.marginRight) && void 0 !== _c ? _c : 0));
|
|
230
|
+
}));
|
|
231
|
+
}
|
|
232
|
+
let spanCol = 1;
|
|
233
|
+
if (table.isHeader(col, row) || (null === (_a = table.getBodyColumnDefine(col, row)) || void 0 === _a ? void 0 : _a.mergeCell) || table.hasCustomMerge()) {
|
|
234
|
+
const cellRange = table.getCellRange(col, row);
|
|
235
|
+
spanCol = cellRange.end.col - cellRange.start.col + 1;
|
|
236
|
+
}
|
|
237
|
+
const padding = (0, padding_1.getQuadProps)((0, get_prop_1.getProp)("padding", actStyle, col, row, table)), paddingWidth = padding[1] + padding[3], fontSize = (0,
|
|
238
|
+
get_prop_1.getProp)("fontSize", actStyle, col, row, table), fontFamily = (0, get_prop_1.getProp)("fontFamily", actStyle, col, row, table), fontWeight = (0,
|
|
239
|
+
get_prop_1.getProp)("fontWeight", actStyle, col, row, table);
|
|
240
|
+
let text;
|
|
241
|
+
if ("checkbox" === cellType) text = (0, vutils_1.isObject)(cellValue) ? cellValue.text : cellValue; else if ("radio" === cellType) if ((0,
|
|
242
|
+
vutils_1.isArray)(cellValue)) {
|
|
243
|
+
text = "";
|
|
244
|
+
const define = table.getBodyColumnDefine(col, row), radioDirectionInCell = null !== (_b = null == define ? void 0 : define.radioDirectionInCell) && void 0 !== _b ? _b : "vertical";
|
|
245
|
+
"vertical" === radioDirectionInCell ? cellValue.forEach((line => {
|
|
246
|
+
text += ((0, vutils_1.isObject)(line) ? line.text : line).toString() + "\n";
|
|
247
|
+
})) : "horizontal" === radioDirectionInCell && cellValue.forEach((line => {
|
|
248
|
+
text += ((0, vutils_1.isObject)(line) ? line.text : line).toString();
|
|
249
|
+
}));
|
|
250
|
+
} else text = (0, vutils_1.isObject)(cellValue) ? cellValue.text : cellValue; else if ("button" === cellType) {
|
|
251
|
+
const define = table.getBodyColumnDefine(col, row), buttonTextValue = (0, helper_1.getOrApply)(define.text, {
|
|
252
|
+
col: col,
|
|
253
|
+
row: row,
|
|
254
|
+
table: table,
|
|
255
|
+
context: null,
|
|
256
|
+
value: cellValue,
|
|
257
|
+
dataValue: table.getCellOriginValue(col, row)
|
|
258
|
+
});
|
|
259
|
+
text = null !== (_c = null != buttonTextValue ? buttonTextValue : cellValue) && void 0 !== _c ? _c : "";
|
|
260
|
+
} else text = cellValue;
|
|
261
|
+
const lines = (0, break_string_1.breakString)(text, table).text;
|
|
262
|
+
if (lines.length >= 1 && (1 !== lines.length || "" !== lines[0]) ? lines.forEach((line => {
|
|
263
|
+
const width = table.measureText(line, {
|
|
264
|
+
fontSize: fontSize,
|
|
265
|
+
fontFamily: fontFamily,
|
|
266
|
+
fontWeight: fontWeight
|
|
267
|
+
}).width;
|
|
268
|
+
maxWidth = Math.max((width + paddingWidth + 4 + iconWidth) / spanCol, maxWidth);
|
|
269
|
+
})) : maxWidth = Math.max((paddingWidth + 4 + iconWidth) / spanCol, maxWidth), !1 !== table.internalProps.limitMaxAutoWidth && (maxWidth = Math.min("number" == typeof table.internalProps.limitMaxAutoWidth ? table.internalProps.limitMaxAutoWidth : 450, maxWidth)),
|
|
270
|
+
"checkbox" === cellType) {
|
|
271
|
+
const size = (0, get_prop_1.getProp)("size", actStyle, col, row, table);
|
|
272
|
+
if (maxWidth += size, text) {
|
|
273
|
+
const spaceBetweenTextAndIcon = (0, get_prop_1.getProp)("spaceBetweenTextAndIcon", actStyle, col, row, table);
|
|
274
|
+
maxWidth += spaceBetweenTextAndIcon;
|
|
275
|
+
}
|
|
276
|
+
} else if ("radio" === cellType) {
|
|
277
|
+
const size = (0, get_prop_1.getProp)("size", actStyle, col, row, table), outerRadius = (0,
|
|
278
|
+
get_prop_1.getProp)("outerRadius", actStyle, col, row, table), circleSize = (0,
|
|
279
|
+
vutils_1.isNumber)(outerRadius) ? 2 * outerRadius : size, spaceBetweenTextAndIcon = (0,
|
|
280
|
+
get_prop_1.getProp)("spaceBetweenTextAndIcon", actStyle, col, row, table);
|
|
281
|
+
if ((0, vutils_1.isArray)(cellValue)) {
|
|
282
|
+
const define = table.getBodyColumnDefine(col, row), spaceBetweenRadio = (0, get_prop_1.getProp)("spaceBetweenRadio", actStyle, col, row, table), radioDirectionInCell = null !== (_d = null == define ? void 0 : define.radioDirectionInCell) && void 0 !== _d ? _d : "vertical";
|
|
283
|
+
"vertical" === radioDirectionInCell ? (maxWidth += circleSize, maxWidth += spaceBetweenTextAndIcon) : "horizontal" === radioDirectionInCell && (maxWidth += (circleSize + spaceBetweenTextAndIcon) * cellValue.length,
|
|
284
|
+
maxWidth += spaceBetweenRadio * (cellValue.length - 1));
|
|
285
|
+
} else maxWidth += circleSize, text && (maxWidth += spaceBetweenTextAndIcon);
|
|
286
|
+
} else if ("switch" === cellType) {
|
|
287
|
+
const boxWidth = (0, get_prop_1.getProp)("boxWidth", actStyle, col, row, table);
|
|
288
|
+
maxWidth = boxWidth;
|
|
289
|
+
} else if ("button" === cellType) {
|
|
290
|
+
const buttonPadding = (0, get_prop_1.getProp)("buttonPadding", actStyle, col, row, table);
|
|
291
|
+
maxWidth += 2 * buttonPadding;
|
|
292
|
+
}
|
|
293
|
+
return maxWidth;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
function getCellRect(col, row, table) {
|
|
297
|
+
return {
|
|
298
|
+
left: 0,
|
|
299
|
+
top: 0,
|
|
300
|
+
right: table.getColWidth(col),
|
|
301
|
+
bottom: table.getRowHeight(row),
|
|
302
|
+
width: null,
|
|
303
|
+
height: null
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
function getColWidthDefinedWidthResizedWidth(col, table) {
|
|
308
|
+
const widthDefined = table.getColWidthDefined(col);
|
|
309
|
+
return table.internalProps._widthResizedColMap.has(col) ? table.getColWidth(col) : widthDefined;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
function getAdaptiveWidth(totalDrawWidth, startCol, endColPlus1, update, newWidths, table, fromScenegraph) {
|
|
313
|
+
var _a, _b, _c, _d;
|
|
314
|
+
let actualWidth = 0;
|
|
315
|
+
const adaptiveColumns = [], sparklineColumns = [];
|
|
316
|
+
let totalSparklineAbleWidth = 0;
|
|
317
|
+
for (let col = startCol; col < endColPlus1; col++) {
|
|
318
|
+
const width = update && null !== (_a = newWidths[col]) && void 0 !== _a ? _a : table.getColWidth(col), maxWidth = table.getMaxColWidth(col), minWidth = table.getMinColWidth(col);
|
|
319
|
+
if (width !== maxWidth && width !== minWidth ? (actualWidth += width, adaptiveColumns.push(col)) : totalDrawWidth -= width,
|
|
320
|
+
null === (_b = table.options.customConfig) || void 0 === _b ? void 0 : _b.shrinkSparklineFirst) {
|
|
321
|
+
"sparkline" === table.getBodyColumnType(col, 0) && (sparklineColumns.push({
|
|
322
|
+
col: col,
|
|
323
|
+
width: width
|
|
324
|
+
}), totalSparklineAbleWidth += width - table.defaultColWidth);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
const factor = totalDrawWidth / actualWidth;
|
|
328
|
+
if ((null === (_c = table.options.customConfig) || void 0 === _c ? void 0 : _c.shrinkSparklineFirst) && factor < 1 && actualWidth - totalDrawWidth < totalSparklineAbleWidth) for (let i = 0; i < sparklineColumns.length; i++) {
|
|
329
|
+
const {col: col, width: width} = sparklineColumns[i], deltaWidth = (actualWidth - totalDrawWidth) / sparklineColumns.length, colWidth = Math.floor(width - deltaWidth);
|
|
330
|
+
update ? newWidths[col] = table._adjustColWidth(col, colWidth) : fromScenegraph ? table.scenegraph.setColWidth(col, table._adjustColWidth(col, colWidth)) : table._setColWidth(col, table._adjustColWidth(col, colWidth), !1, !0);
|
|
331
|
+
} else for (let i = 0; i < adaptiveColumns.length; i++) {
|
|
332
|
+
const col = adaptiveColumns[i];
|
|
333
|
+
let colWidth;
|
|
334
|
+
colWidth = i === adaptiveColumns.length - 1 ? totalDrawWidth - adaptiveColumns.reduce(((acr, cur, index) => {
|
|
335
|
+
var _a;
|
|
336
|
+
return cur !== col ? acr + (update ? null !== (_a = newWidths[cur]) && void 0 !== _a ? _a : table.getColWidth(col) : table.getColWidth(cur)) : acr;
|
|
337
|
+
}), 0) : Math.round((update && null !== (_d = newWidths[col]) && void 0 !== _d ? _d : table.getColWidth(col)) * factor),
|
|
338
|
+
update ? newWidths[col] = table._adjustColWidth(col, colWidth) : fromScenegraph ? table.scenegraph.setColWidth(col, table._adjustColWidth(col, colWidth)) : table._setColWidth(col, table._adjustColWidth(col, colWidth), !1, !0);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
exports.computeColsWidth = computeColsWidth, exports.computeColWidth = computeColWidth,
|
|
343
|
+
exports.getAdaptiveWidth = getAdaptiveWidth;
|
|
344
|
+
//# sourceMappingURL=compute-col-width.js.map
|