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
package/es/tools/calc.js
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { isNil, isNumber, isString } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
import { array } from "./helper";
|
|
4
|
+
|
|
5
|
+
const TYPE_PAREN = 0, TYPE_UNIT = 1, TYPE_OPERATOR = 2, TYPE_NUMBER = 3, NODE_TYPE_UNIT = 10, NODE_TYPE_BINARY_EXPRESSION = 11, NODE_TYPE_NUMBER = 12, TABULATION = 9, CARRIAGE_RETURN = 13, LINE_FEED = 10, FORM_FEED = 12, SPACE = 32, PERCENT = 37, FULL_STOP = 46, DIGIT_0 = 48, DIGIT_9 = 57, LATIN_CAPITAL_A = 65, LATIN_CAPITAL_Z = 90, LATIN_SMALL_A = 97, LATIN_SMALL_Z = 122;
|
|
6
|
+
|
|
7
|
+
function isUpperLetter(cp) {
|
|
8
|
+
return cp >= LATIN_CAPITAL_A && cp <= LATIN_CAPITAL_Z;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function isLowerLetter(cp) {
|
|
12
|
+
return cp >= LATIN_SMALL_A && cp <= LATIN_SMALL_Z;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function isLetter(cp) {
|
|
16
|
+
return isLowerLetter(cp) || isUpperLetter(cp);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function isWhitespace(cp) {
|
|
20
|
+
return cp === TABULATION || cp === LINE_FEED || cp === FORM_FEED || cp === CARRIAGE_RETURN || cp === SPACE;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function isDigit(cp) {
|
|
24
|
+
return cp >= DIGIT_0 && cp <= DIGIT_9;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function isDot(cp) {
|
|
28
|
+
return cp === FULL_STOP;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function isUnit(cp) {
|
|
32
|
+
return isLetter(cp) || cp === PERCENT;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function createError(calc) {
|
|
36
|
+
return new Error(`calc parse error: ${calc}`);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function tokenize(calc) {
|
|
40
|
+
const exp = calc.replace(/calc\(/g, "(").trim(), tokens = [], len = exp.length;
|
|
41
|
+
for (let index = 0; index < len; index++) {
|
|
42
|
+
const c = exp[index], cp = c.charCodeAt(0);
|
|
43
|
+
if ("(" === c || ")" === c) tokens.push({
|
|
44
|
+
value: c,
|
|
45
|
+
type: TYPE_PAREN
|
|
46
|
+
}); else if ("*" === c || "/" === c) tokens.push({
|
|
47
|
+
value: c,
|
|
48
|
+
type: TYPE_OPERATOR
|
|
49
|
+
}); else if ("+" === c || "-" === c) index = parseSign(c, index + 1) - 1; else if (isDigit(cp) || isDot(cp)) index = parseNum(c, index + 1) - 1; else if (!isWhitespace(cp)) throw createError(calc);
|
|
50
|
+
}
|
|
51
|
+
function parseSign(sign, start) {
|
|
52
|
+
if (start < len) {
|
|
53
|
+
const c = exp[start], cp = c.charCodeAt(0);
|
|
54
|
+
if (isDigit(cp) || isDot(cp)) return parseNum(sign + c, start + 1);
|
|
55
|
+
}
|
|
56
|
+
return tokens.push({
|
|
57
|
+
value: sign,
|
|
58
|
+
type: TYPE_OPERATOR
|
|
59
|
+
}), start;
|
|
60
|
+
}
|
|
61
|
+
function parseNum(num, start) {
|
|
62
|
+
let index = start;
|
|
63
|
+
for (;index < len; index++) {
|
|
64
|
+
const c = exp[index], cp = c.charCodeAt(0);
|
|
65
|
+
if (isDigit(cp)) num += c; else {
|
|
66
|
+
if ("." !== c) {
|
|
67
|
+
if (isUnit(cp)) return parseUnit(num, c, index + 1);
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
if (num.indexOf(".") >= 0) throw createError(calc);
|
|
71
|
+
num += c;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if ("." === num) throw createError(calc);
|
|
75
|
+
return tokens.push({
|
|
76
|
+
value: parseFloat(num),
|
|
77
|
+
type: TYPE_NUMBER
|
|
78
|
+
}), index;
|
|
79
|
+
}
|
|
80
|
+
function parseUnit(num, unit, start) {
|
|
81
|
+
let index = start;
|
|
82
|
+
for (;index < len; index++) {
|
|
83
|
+
const c = exp[index];
|
|
84
|
+
if (!isUnit(c.charCodeAt(0))) break;
|
|
85
|
+
unit += c;
|
|
86
|
+
}
|
|
87
|
+
return tokens.push({
|
|
88
|
+
value: parseFloat(num),
|
|
89
|
+
unit: unit,
|
|
90
|
+
type: TYPE_UNIT
|
|
91
|
+
}), index;
|
|
92
|
+
}
|
|
93
|
+
return tokens;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const PRECEDENCE = {
|
|
97
|
+
"*": 3,
|
|
98
|
+
"/": 3,
|
|
99
|
+
"+": 2,
|
|
100
|
+
"-": 2
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
function lex(tokens, calc) {
|
|
104
|
+
function buildBinaryExpNode(stack) {
|
|
105
|
+
const right = stack.pop(), op = stack.pop(), left = stack.pop();
|
|
106
|
+
if (!(left && left.nodeType && op && op.type === TYPE_OPERATOR && right && right.nodeType)) throw createError(calc);
|
|
107
|
+
return {
|
|
108
|
+
nodeType: NODE_TYPE_BINARY_EXPRESSION,
|
|
109
|
+
left: left,
|
|
110
|
+
op: op,
|
|
111
|
+
right: right
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
const stack = [];
|
|
115
|
+
for (;tokens.length; ) {
|
|
116
|
+
const token = tokens.shift();
|
|
117
|
+
if (token.type === TYPE_PAREN && "(" === token.value) {
|
|
118
|
+
let deep = 0;
|
|
119
|
+
const closeIndex = array.findIndex(tokens, (t => {
|
|
120
|
+
if (t.type === TYPE_PAREN && "(" === t.value) deep++; else if (t.type === TYPE_PAREN && ")" === t.value) {
|
|
121
|
+
if (!deep) return !0;
|
|
122
|
+
deep--;
|
|
123
|
+
}
|
|
124
|
+
return !1;
|
|
125
|
+
}));
|
|
126
|
+
if (-1 === closeIndex) throw createError(calc);
|
|
127
|
+
stack.push(lex(tokens.splice(0, closeIndex), calc)), tokens.shift();
|
|
128
|
+
} else if (token.type === TYPE_OPERATOR) {
|
|
129
|
+
if (stack.length >= 3) {
|
|
130
|
+
const beforeOp = stack[stack.length - 2].value;
|
|
131
|
+
PRECEDENCE[token.value] <= PRECEDENCE[beforeOp] && stack.push(buildBinaryExpNode(stack));
|
|
132
|
+
}
|
|
133
|
+
stack.push(token);
|
|
134
|
+
} else if (token.type === TYPE_UNIT) {
|
|
135
|
+
const {value: num, unit: unit} = token;
|
|
136
|
+
stack.push({
|
|
137
|
+
nodeType: NODE_TYPE_UNIT,
|
|
138
|
+
value: num,
|
|
139
|
+
unit: unit
|
|
140
|
+
});
|
|
141
|
+
} else token.type === TYPE_NUMBER && stack.push({
|
|
142
|
+
nodeType: NODE_TYPE_NUMBER,
|
|
143
|
+
value: token.value
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
for (;stack.length > 1; ) stack.push(buildBinaryExpNode(stack));
|
|
147
|
+
return stack[0];
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function parse(calcStr) {
|
|
151
|
+
return lex(tokenize(calcStr), calcStr);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function calcNode(node, context) {
|
|
155
|
+
if (node.nodeType === NODE_TYPE_BINARY_EXPRESSION) {
|
|
156
|
+
const left = calcNode(node.left, context), right = calcNode(node.right, context);
|
|
157
|
+
switch (node.op.value) {
|
|
158
|
+
case "+":
|
|
159
|
+
return left + right;
|
|
160
|
+
|
|
161
|
+
case "-":
|
|
162
|
+
return left - right;
|
|
163
|
+
|
|
164
|
+
case "*":
|
|
165
|
+
return left * right;
|
|
166
|
+
|
|
167
|
+
case "/":
|
|
168
|
+
return left / right;
|
|
169
|
+
|
|
170
|
+
default:
|
|
171
|
+
throw new Error(`calc error. unknown operator: ${node.op.value}`);
|
|
172
|
+
}
|
|
173
|
+
} else if (node.nodeType === NODE_TYPE_UNIT) switch (node.unit) {
|
|
174
|
+
case "%":
|
|
175
|
+
return node.value * context.full / 100;
|
|
176
|
+
|
|
177
|
+
case "px":
|
|
178
|
+
return node.value;
|
|
179
|
+
|
|
180
|
+
default:
|
|
181
|
+
throw new Error(`calc error. unknown unit: ${node.unit}`);
|
|
182
|
+
} else if (node.nodeType === NODE_TYPE_NUMBER) return node.value;
|
|
183
|
+
throw new Error("calc error.");
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function toPxInternal(value, context) {
|
|
187
|
+
return calcNode(parse(value), context);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export function toPx(value, context) {
|
|
191
|
+
return "string" == typeof value ? toPxInternal(value.trim(), context) : value - 0;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export function couldBeValidNumber(v) {
|
|
195
|
+
return !isNil(v) && (!!isNumber(v) || +v == +v);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export function isPercent(v) {
|
|
199
|
+
return !!isString(v) && (!!v.endsWith("%") && couldBeValidNumber(v.substring(0, v.length - 1)));
|
|
200
|
+
}
|
|
201
|
+
//# sourceMappingURL=calc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tools/calc.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,SAAS,GAAG,CAAC,CAAC;AACpB,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,WAAW,GAAG,CAAC,CAAC;AAEtB,MAAM,cAAc,GAAG,EAAE,CAAC;AAC1B,MAAM,2BAA2B,GAAG,EAAE,CAAC;AACvC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAsC5B,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,eAAe,GAAG,IAAI,CAAC;AAC7B,MAAM,SAAS,GAAG,IAAI,CAAC;AACvB,MAAM,SAAS,GAAG,IAAI,CAAC;AACvB,MAAM,KAAK,GAAG,IAAI,CAAC;AACnB,MAAM,OAAO,GAAG,IAAI,CAAC;AACrB,MAAM,SAAS,GAAG,IAAI,CAAC;AACvB,MAAM,OAAO,GAAG,IAAI,CAAC;AACrB,MAAM,OAAO,GAAG,IAAI,CAAC;AACrB,MAAM,eAAe,GAAG,IAAI,CAAC;AAC7B,MAAM,eAAe,GA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SAAS,CAAC,CAAM;IAC9B,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;QAChB,OAAO,KAAK,CAAC;KACd;IACD,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACpB,OAAO,KAAK,CAAC;KACd;IACD,OAAO,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1D,CAAC","file":"calc.js","sourcesContent":["/* Adapted from cheetah-grid by yosuke ota\n *url:https://github.com/future-architect/cheetah-grid/blob/master/packages/cheetah-grid/src/js/internal/calc.ts\n *License: https://github.com/future-architect/cheetah-grid/blob/master/LICENSE\n * @license\n */\n\nimport { isNil, isNumber, isString } from '@visactor/vutils';\nimport { array } from './helper';\n\nconst TYPE_PAREN = 0;\nconst TYPE_UNIT = 1;\nconst TYPE_OPERATOR = 2;\nconst TYPE_NUMBER = 3;\n\nconst NODE_TYPE_UNIT = 10;\nconst NODE_TYPE_BINARY_EXPRESSION = 11;\nconst NODE_TYPE_NUMBER = 12;\n\ntype Ops = '-' | '+' | '*' | '/';\ntype ParenToken = {\n value: '(' | ')';\n type: typeof TYPE_PAREN;\n};\ntype UnitToken = {\n unit: string;\n value: number;\n type: typeof TYPE_UNIT;\n};\ntype OpToken = {\n value: Ops;\n type: typeof TYPE_OPERATOR;\n};\ntype NumToken = {\n value: number;\n type: typeof TYPE_NUMBER;\n};\ntype Token = ParenToken | UnitToken | OpToken | NumToken;\ntype UnitNode = {\n nodeType: typeof NODE_TYPE_UNIT;\n unit: string;\n value: number;\n};\ntype BinaryNode = {\n nodeType: typeof NODE_TYPE_BINARY_EXPRESSION;\n left: Node;\n op: OpToken;\n right: Node;\n};\ntype NumNode = {\n nodeType: typeof NODE_TYPE_NUMBER;\n value: number;\n};\ntype Node = UnitNode | BinaryNode | NumNode;\n\nconst TABULATION = 0x09;\nconst CARRIAGE_RETURN = 0x0d;\nconst LINE_FEED = 0x0a;\nconst FORM_FEED = 0x0c;\nconst SPACE = 0x20;\nconst PERCENT = 0x25;\nconst FULL_STOP = 0x2e;\nconst DIGIT_0 = 0x30;\nconst DIGIT_9 = 0x39;\nconst LATIN_CAPITAL_A = 0x41;\nconst LATIN_CAPITAL_Z = 0x5a;\nconst LATIN_SMALL_A = 0x61;\nconst LATIN_SMALL_Z = 0x7a;\nfunction isUpperLetter(cp: number): boolean {\n return cp >= LATIN_CAPITAL_A && cp <= LATIN_CAPITAL_Z;\n}\nfunction isLowerLetter(cp: number): boolean {\n return cp >= LATIN_SMALL_A && cp <= LATIN_SMALL_Z;\n}\nfunction isLetter(cp: number): boolean {\n return isLowerLetter(cp) || isUpperLetter(cp);\n}\nfunction isWhitespace(cp: number): boolean {\n return cp === TABULATION || cp === LINE_FEED || cp === FORM_FEED || cp === CARRIAGE_RETURN || cp === SPACE;\n}\nfunction isDigit(cp: number): boolean {\n return cp >= DIGIT_0 && cp <= DIGIT_9;\n}\nfunction isDot(cp: number): boolean {\n return cp === FULL_STOP;\n}\nfunction isUnit(cp: number): boolean {\n return isLetter(cp) || cp === PERCENT;\n}\n\nfunction createError(calc: string): Error {\n return new Error(`calc parse error: ${calc}`);\n}\n\n/**\n * tokenize\n * @param {string} calc calc expression\n * @returns {Array} tokens\n * @private\n */\nfunction tokenize(calc: string): Token[] {\n const exp = calc.replace(/calc\\(/g, '(').trim();\n\n const tokens: Token[] = [];\n const len = exp.length;\n for (let index = 0; index < len; index++) {\n const c = exp[index];\n const cp = c.charCodeAt(0);\n if (c === '(' || c === ')') {\n tokens.push({ value: c, type: TYPE_PAREN });\n } else if (c === '*' || c === '/') {\n tokens.push({ value: c, type: TYPE_OPERATOR });\n } else if (c === '+' || c === '-') {\n index = parseSign(c, index + 1) - 1;\n } else if (isDigit(cp) || isDot(cp)) {\n index = parseNum(c, index + 1) - 1;\n } else if (isWhitespace(cp)) {\n // skip\n } else {\n throw createError(calc);\n }\n }\n\n function parseSign(sign: '+' | '-', start: number): number {\n if (start < len) {\n const c = exp[start];\n const cp = c.charCodeAt(0);\n if (isDigit(cp) || isDot(cp)) {\n return parseNum(sign + c, start + 1);\n }\n }\n tokens.push({ value: sign, type: TYPE_OPERATOR });\n return start;\n }\n function parseNum(num: string, start: number): number {\n let index = start;\n for (; index < len; index++) {\n const c = exp[index];\n const cp = c.charCodeAt(0);\n if (isDigit(cp)) {\n num += c;\n } else if (c === '.') {\n if (num.indexOf('.') >= 0) {\n throw createError(calc);\n }\n num += c;\n } else if (isUnit(cp)) {\n return parseUnit(num, c, index + 1);\n } else {\n break;\n }\n }\n if (num === '.') {\n throw createError(calc);\n }\n tokens.push({ value: parseFloat(num), type: TYPE_NUMBER });\n return index;\n }\n function parseUnit(num: string, unit: string, start: number): number {\n let index = start;\n for (; index < len; index++) {\n const c = exp[index];\n const cp = c.charCodeAt(0);\n if (isUnit(cp)) {\n unit += c;\n } else {\n break;\n }\n }\n tokens.push({ value: parseFloat(num), unit, type: TYPE_UNIT });\n return index;\n }\n return tokens;\n}\n\nconst PRECEDENCE = {\n '*': 3,\n '/': 3,\n '+': 2,\n '-': 2\n};\n\nfunction lex(tokens: Token[], calc: string): Node {\n function buildBinaryExpNode(stack: (Node | OpToken)[]): BinaryNode {\n const right = stack.pop() as Node;\n const op = stack.pop() as OpToken;\n const left = stack.pop() as Node;\n\n if (!left || !left.nodeType || !op || op.type !== TYPE_OPERATOR || !right || !right.nodeType) {\n throw createError(calc);\n }\n return {\n nodeType: NODE_TYPE_BINARY_EXPRESSION,\n left,\n op,\n right\n };\n }\n\n const stack: (Node | OpToken)[] = [];\n\n while (tokens.length) {\n const token = tokens.shift() as Token;\n if (token.type === TYPE_PAREN && token.value === '(') {\n let deep = 0;\n const closeIndex = array.findIndex(tokens, t => {\n if (t.type === TYPE_PAREN && t.value === '(') {\n deep++;\n } else if (t.type === TYPE_PAREN && t.value === ')') {\n if (!deep) {\n return true;\n }\n deep--;\n }\n return false;\n });\n if (closeIndex === -1) {\n throw createError(calc);\n }\n\n stack.push(lex(tokens.splice(0, closeIndex), calc));\n tokens.shift();\n } else if (token.type === TYPE_OPERATOR) {\n if (stack.length >= 3) {\n const beforeOp = (stack[stack.length - 2] as OpToken).value;\n if (PRECEDENCE[token.value] <= PRECEDENCE[beforeOp]) {\n stack.push(buildBinaryExpNode(stack));\n }\n }\n stack.push(token);\n } else if (token.type === TYPE_UNIT) {\n const { value: num, unit } = token;\n stack.push({\n nodeType: NODE_TYPE_UNIT,\n value: num,\n unit\n });\n } else if (token.type === TYPE_NUMBER) {\n stack.push({\n nodeType: NODE_TYPE_NUMBER,\n value: token.value\n });\n }\n }\n while (stack.length > 1) {\n stack.push(buildBinaryExpNode(stack));\n }\n return stack[0] as Node;\n}\n\nfunction parse(calcStr: string): Node {\n const tokens = tokenize(calcStr);\n return lex(tokens, calcStr);\n}\n\nfunction calcNode(node: Node, context: CalcContext): number {\n if (node.nodeType === NODE_TYPE_BINARY_EXPRESSION) {\n const left = calcNode(node.left, context);\n const right = calcNode(node.right, context);\n\n switch (node.op.value) {\n case '+':\n return left + right;\n case '-':\n return left - right;\n case '*':\n return left * right;\n case '/':\n return left / right;\n default:\n // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n throw new Error(`calc error. unknown operator: ${node.op.value}`);\n }\n } else if (node.nodeType === NODE_TYPE_UNIT) {\n switch (node.unit) {\n case '%':\n return (node.value * context.full) / 100;\n // case 'em':\n // return node.value * context.em;\n case 'px':\n return node.value;\n default:\n throw new Error(`calc error. unknown unit: ${node.unit}`);\n }\n } else if (node.nodeType === NODE_TYPE_NUMBER) {\n return node.value;\n }\n throw new Error('calc error.');\n}\n\nfunction toPxInternal(value: string, context: CalcContext): number {\n const ast = parse(value);\n return calcNode(ast, context);\n}\n\ntype CalcContext = {\n full: number;\n // em: number;\n};\n\nexport function toPx(value: string | number, context: CalcContext): number {\n if (typeof value === 'string') {\n return toPxInternal(value.trim(), context);\n }\n return value - 0;\n}\n\nexport type IPercent = `${number}%`;\n\nexport function couldBeValidNumber(v: any) {\n if (isNil(v)) {\n return false;\n }\n if (isNumber(v)) {\n return true;\n }\n // eslint-disable-next-line no-self-compare\n return +v === +v;\n}\n\nexport function isPercent(v: any): v is IPercent {\n if (!isString(v)) {\n return false;\n }\n if (!v.endsWith('%')) {\n return false;\n }\n return couldBeValidNumber(v.substring(0, v.length - 1));\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export function isSameRange(range1, range2) {
|
|
2
|
+
return !range1 && !range2 || !(!range1 || !range2) && (range1.start.col === range2.start.col && range1.start.row === range2.start.row && range1.end.col === range2.end.col && range1.end.row === range2.end.row);
|
|
3
|
+
}
|
|
4
|
+
//# sourceMappingURL=cell-range.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tools/cell-range.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,WAAW,CAAC,MAAoC,EAAE,MAAoC;IACpG,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE;QACtB,OAAO,IAAI,CAAC;KACb;IAED,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE;QACtB,OAAO,KAAK,CAAC;KACd;IAED,OAAO,CACL,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,MAAM,CAAC,KAAK,CAAC,GAAG;QACrC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,MAAM,CAAC,KAAK,CAAC,GAAG;QACrC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC,GAAG;QACjC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC,GAAG,CAClC,CAAC;AACJ,CAAC","file":"cell-range.js","sourcesContent":["import type { CellRange } from '../ts-types';\n\nexport function isSameRange(range1: CellRange | undefined | null, range2: CellRange | undefined | null) {\n if (!range1 && !range2) {\n return true;\n }\n\n if (!range1 || !range2) {\n return false;\n }\n\n return (\n range1.start.col === range2.start.col &&\n range1.start.row === range2.start.row &&\n range1.end.col === range2.end.col &&\n range1.end.row === range2.end.row\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function debounce(func: Function, wait?: number, options?: any): (this: any, ...args: any) => any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { isObject } from "./isx";
|
|
2
|
+
|
|
3
|
+
export function debounce(func, wait, options) {
|
|
4
|
+
let lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, maxing = !1, leading = !1, trailing = !0;
|
|
5
|
+
const useRAF = !wait && 0 !== wait && "function" == typeof requestAnimationFrame;
|
|
6
|
+
if ("function" != typeof func) throw new TypeError("Expected a function");
|
|
7
|
+
function invokeFunc(time) {
|
|
8
|
+
const args = lastArgs, thisArg = lastThis;
|
|
9
|
+
return lastThis = void 0, lastArgs = void 0, lastInvokeTime = time, result = func.apply(thisArg, args),
|
|
10
|
+
result;
|
|
11
|
+
}
|
|
12
|
+
function startTimer(pendingFunc, wait) {
|
|
13
|
+
return useRAF ? requestAnimationFrame(pendingFunc) : setTimeout(pendingFunc, wait);
|
|
14
|
+
}
|
|
15
|
+
function shouldInvoke(time) {
|
|
16
|
+
const timeSinceLastCall = time - lastCallTime;
|
|
17
|
+
return void 0 === lastCallTime || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && time - lastInvokeTime >= maxWait;
|
|
18
|
+
}
|
|
19
|
+
function timerExpired() {
|
|
20
|
+
const time = Date.now();
|
|
21
|
+
if (shouldInvoke(time)) return function(time) {
|
|
22
|
+
return timerId = void 0, trailing && lastArgs ? invokeFunc(time) : (lastThis = void 0,
|
|
23
|
+
lastArgs = void 0, result);
|
|
24
|
+
}(time);
|
|
25
|
+
timerId = startTimer(timerExpired, function(time) {
|
|
26
|
+
const timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait && -(time - lastCallTime);
|
|
27
|
+
return maxing ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
28
|
+
}(time));
|
|
29
|
+
}
|
|
30
|
+
return wait = +wait || 0, isObject(options) && (leading = !!options.leading, maxing = "maxWait" in options,
|
|
31
|
+
maxing && (maxWait = Math.max(+options.maxWait || 0, wait)), trailing = "trailing" in options ? !!options.trailing : trailing),
|
|
32
|
+
function(...args) {
|
|
33
|
+
const time = Date.now(), isInvoking = shouldInvoke(time);
|
|
34
|
+
if (lastArgs = args, lastThis = this, lastCallTime = time, isInvoking) {
|
|
35
|
+
if (void 0 === timerId) return function(time) {
|
|
36
|
+
return lastInvokeTime = time, timerId = startTimer(timerExpired, wait), leading ? invokeFunc(time) : result;
|
|
37
|
+
}(lastCallTime);
|
|
38
|
+
if (maxing) return timerId = startTimer(timerExpired, wait), invokeFunc(lastCallTime);
|
|
39
|
+
}
|
|
40
|
+
return void 0 === timerId && (timerId = startTimer(timerExpired, wait)), result;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=debounce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tools/debounce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,UAAU,QAAQ,CAAC,IAAc,EAAE,IAAa,EAAE,OAAa;IACnE,IAAI,QAAa,CAAC;IAClB,IAAI,QAAa,CAAC;IAClB,IAAI,OAAe,CAAC;IACpB,IAAI,MAAW,CAAC;IAChB,IAAI,OAA2B,CAAC;IAChC,IAAI,YAAoB,CAAC;IAGzB,IAAI,cAAc,GAAG,CAAC,CAAC;IAEvB,IAAI,MAAM,GAAG,KAAK,CAAC;IAEnB,IAAI,OAAO,GAAG,KAAK,CAAC;IAEpB,IAAI,QAAQ,GAAG,IAAI,CAAC;IAEpB,MAAM,MAAM,GAAG,CAAC,IAAI,IAAI,IAAI,KAAK,CAAC,IAAI,OAAO,qBAAqB,KAAK,UAAU,CAAC;IAElF,IAAI,OAAO,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C;QACxB,MAAM,UAAU,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;QAEtC,QAAQ,GAAG,IAAI,CAAC;QAChB,QAAQ,GAAG,IAAI,CAAC;QAChB,YAAY,GAAG,IAAI,CAAC;QAEpB,IAAI,UAAU,EAAE;YAEd,IAAI,OAAO,KAAK,SAAS,EAAE;gBACzB,OAAO,WAAW,CAAC,YAAY,CAAC,CAAC;aAClC;YACD,IAAI,MAAM,EAAE;gBAEV,OAAO,GAAG,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;gBACzC,OAAO,UAAU,CAAC,YAAY,CAAC,CAAC;aACjC;SACF;QAID,IAAI,OAAO,KAAK,SAAS,EAAE;YAEzB,OAAO,GAAG,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;SAC1C;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC","file":"debounce.js","sourcesContent":["import { isObject } from './isx';\n\nexport function debounce(func: Function, wait?: number, options?: any) {\n let lastArgs: any;\n let lastThis: any;\n let maxWait: number; // 最长等待时间\n let result: any; // 存储 func 函数的返回值\n let timerId: number | undefined; // 定时器 id\n let lastCallTime: number; // 最近一次 执行 debounced 函数时的时间\n\n // 最近一次执行 func 时的时间戳\n let lastInvokeTime = 0;\n // options 是否 传入了 maxWait\n let maxing = false;\n // 是否在延迟开始前调用函数\n let leading = false;\n // 是否在延迟结束后调用函数\n let trailing = true;\n\n const useRAF = !wait && wait !== 0 && typeof requestAnimationFrame === 'function';\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +(wait as number) || 0;\n\n if (isObject(options)) {\n leading = !!options.leading;\n\n maxing = 'maxWait' in options;\n if (maxing) {\n maxWait = Math.max(+options.maxWait || 0, wait);\n }\n\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time: number) {\n const args = lastArgs;\n const thisArg = lastThis;\n\n lastThis = undefined;\n lastArgs = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n // 开启定时器\n function startTimer(pendingFunc: any, wait: number) {\n if (useRAF) {\n return requestAnimationFrame(pendingFunc);\n }\n return setTimeout(pendingFunc, wait);\n }\n\n // 清除定时器\n // function cancelTimer(id: number) {\n // if (useRAF) {\n // return cancelAnimationFrame(id);\n // }\n // clearTimeout(id);\n // }\n\n // 在延迟开始前调用\n function leadingEdge(time: number) {\n // 记录 函数被调用时 的时间戳\n lastInvokeTime = time;\n //@ts-ignore\n timerId = startTimer(timerExpired, wait);\n return leading ? invokeFunc(time) : result;\n }\n\n // 在延迟结束后调用\n function trailingEdge(time: number) {\n timerId = undefined;\n\n // lastArgs 在 debounced 函数执行时赋值\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n\n // 重置参数和作用域\n lastThis = undefined;\n lastArgs = undefined;\n return result;\n }\n\n function remainingWait(time: number) {\n // 计算 time 与最近一次调用 debounced 函数的时间差\n const timeSinceLastCall = time - lastCallTime;\n // 计算 time 与最近一次调用 func 函数的时间差\n const timeSinceLastInvoke = time - lastInvokeTime;\n // 用 wait 减去已经等待的时间\n const timeWaiting = wait && -timeSinceLastCall;\n\n return maxing ? Math.min(timeWaiting as number, maxWait - timeSinceLastInvoke) : timeWaiting;\n }\n\n // 是否可以执行函数\n function shouldInvoke(time: number) {\n // 计算 time 与最近一次调用 debounced 函数的时间差\n const timeSinceLastCall = time - lastCallTime;\n // 计算 time 与最近一次调用 func 函数的时间差\n const timeSinceLastInvoke = time - lastInvokeTime;\n\n return (\n // 是不是第一次执行 debouned 函数\n lastCallTime === undefined ||\n timeSinceLastCall >= (wait as number) ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n }\n\n // 封装执行函数,用于 wait 延迟结束后执行\n function timerExpired() {\n const time = Date.now();\n // 根据时间来判断是否可以执行 func 函数\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // 重新计算时间,重新建一个定时器\n // @ts-ignore\n timerId = startTimer(timerExpired, remainingWait(time));\n }\n\n function debounced(this: any, ...args: any) {\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs = args;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n // 第一次执行时\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // @ts-ignore\n timerId = startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n\n // 因为 trailingEdge 函数内部会执行 timerId = undefined\n // trailingEdge 函数执行之后,又触发了 debounced\n if (timerId === undefined) {\n // @ts-ignore\n timerId = startTimer(timerExpired, wait);\n }\n\n return result;\n }\n\n return debounced;\n}\n"]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { PivotHeaderLayoutMap } from '../layout/pivot-header-layout';
|
|
2
|
+
import type { Scenegraph } from '../scenegraph/scenegraph';
|
|
3
|
+
import type { CellAddress } from '../ts-types';
|
|
4
|
+
export declare function diffCellAddress(col: number, row: number, oldCellIds: number[], newCellIds: number[], oldRowHeaderCellPositons: CellAddress[], layout: PivotHeaderLayoutMap): {
|
|
5
|
+
addCellPositionsRowDirection: {
|
|
6
|
+
col: number;
|
|
7
|
+
row: number;
|
|
8
|
+
}[];
|
|
9
|
+
removeCellPositionsRowDirection: CellAddress[];
|
|
10
|
+
updateCellPositionsRowDirection: {
|
|
11
|
+
col: never;
|
|
12
|
+
row: number;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
export declare function diffCellAddressForGridTree(col: number, row: number, oldCellIds: number[], newCellIds: number[], oldRowHeaderCellPositons: CellAddress[], layout: PivotHeaderLayoutMap): {
|
|
16
|
+
addCellPositionsRowDirection: {
|
|
17
|
+
col: number;
|
|
18
|
+
row: number;
|
|
19
|
+
}[];
|
|
20
|
+
removeCellPositionsRowDirection: CellAddress[];
|
|
21
|
+
updateCellPositionsRowDirection: {
|
|
22
|
+
col: never;
|
|
23
|
+
row: number;
|
|
24
|
+
}[];
|
|
25
|
+
addCellPositionsColumnDirection: {
|
|
26
|
+
col: number;
|
|
27
|
+
row: number;
|
|
28
|
+
}[];
|
|
29
|
+
removeCellPositionsColumnDirection: {
|
|
30
|
+
col: number;
|
|
31
|
+
row: number;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
export declare function diffCellAddressForGridTreeOnColumn(col: number, row: number, oldCellIds: number[], newCellIds: number[], oldRowHeaderCellPositons: CellAddress[], layout: PivotHeaderLayoutMap): {
|
|
35
|
+
addCellPositionsColumnDirection: {
|
|
36
|
+
col: number;
|
|
37
|
+
row: number;
|
|
38
|
+
}[];
|
|
39
|
+
removeCellPositionsColumnDirection: CellAddress[];
|
|
40
|
+
updateCellPositionsColumnDirection: {
|
|
41
|
+
col: never;
|
|
42
|
+
row: number;
|
|
43
|
+
}[];
|
|
44
|
+
addCellPositionsRowDirection: {
|
|
45
|
+
col: number;
|
|
46
|
+
row: number;
|
|
47
|
+
}[];
|
|
48
|
+
removeCellPositionsRowDirection: {
|
|
49
|
+
col: number;
|
|
50
|
+
row: number;
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
53
|
+
export declare function calculateArrayDiff(originalArray: (number | number[])[], targetArray: (number | number[])[], startIndex: number): {
|
|
54
|
+
add: number[];
|
|
55
|
+
remove: number[];
|
|
56
|
+
};
|
|
57
|
+
export declare function callUpdateRowOnScenegraph(result: {
|
|
58
|
+
addCellPositionsRowDirection?: CellAddress[];
|
|
59
|
+
removeCellPositionsRowDirection?: CellAddress[];
|
|
60
|
+
updateCellPositionsRowDirection?: CellAddress[];
|
|
61
|
+
addCellPositionsColumnDirection?: CellAddress[];
|
|
62
|
+
removeCellPositionsColumnDirection?: CellAddress[];
|
|
63
|
+
updateCellPositionsColumnDirection?: CellAddress[];
|
|
64
|
+
}, recalculateColWidths: boolean, newFrozenRowCount: number, oldFrozenRowCount: number, scenegraph: Scenegraph): void;
|
|
65
|
+
export declare function callUpdateColOnScenegraph(result: {
|
|
66
|
+
addCellPositionsRowDirection?: CellAddress[];
|
|
67
|
+
removeCellPositionsRowDirection?: CellAddress[];
|
|
68
|
+
updateCellPositionsRowDirection?: CellAddress[];
|
|
69
|
+
addCellPositionsColumnDirection?: CellAddress[];
|
|
70
|
+
removeCellPositionsColumnDirection?: CellAddress[];
|
|
71
|
+
updateCellPositionsColumnDirection?: CellAddress[];
|
|
72
|
+
}, newFrozenColCount: number, oldFrozenColCount: number, scenegraph: Scenegraph): void;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
export function diffCellAddress(col, row, oldCellIds, newCellIds, oldRowHeaderCellPositons, layout) {
|
|
2
|
+
const columnHeaderStart = layout.columnHeaderLevelCount, addCellPositionsRowDirection = [], removeCellPositionsRowDirection = [];
|
|
3
|
+
for (let i = 0; i < oldCellIds.length; i++) newCellIds.includes(oldCellIds[i]) || removeCellPositionsRowDirection.push(oldRowHeaderCellPositons[i]);
|
|
4
|
+
for (let i = 0; i < newCellIds.length; i++) if (!oldCellIds.includes(newCellIds[i])) {
|
|
5
|
+
const newCellAddr = {
|
|
6
|
+
col: col,
|
|
7
|
+
row: columnHeaderStart + i
|
|
8
|
+
};
|
|
9
|
+
addCellPositionsRowDirection.push(newCellAddr);
|
|
10
|
+
}
|
|
11
|
+
let parentId = layout.getParentCellId(col, row), parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId);
|
|
12
|
+
const updateCellPositionsRowDirection = [];
|
|
13
|
+
for (parentCellAddress && updateCellPositionsRowDirection.push(parentCellAddress); parentId; ) parentId = layout.getParentCellId(parentCellAddress.col, parentCellAddress.row),
|
|
14
|
+
parentId && (parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId),
|
|
15
|
+
updateCellPositionsRowDirection.push(parentCellAddress));
|
|
16
|
+
return {
|
|
17
|
+
addCellPositionsRowDirection: addCellPositionsRowDirection,
|
|
18
|
+
removeCellPositionsRowDirection: removeCellPositionsRowDirection,
|
|
19
|
+
updateCellPositionsRowDirection: updateCellPositionsRowDirection
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function diffCellAddressForGridTree(col, row, oldCellIds, newCellIds, oldRowHeaderCellPositons, layout) {
|
|
24
|
+
const columnHeaderStart = layout.columnHeaderLevelCount, addCellPositionsRowDirection = [], removeCellPositionsRowDirection = [];
|
|
25
|
+
for (let i = 0; i < oldCellIds.length; i++) newCellIds.includes(oldCellIds[i]) || removeCellPositionsRowDirection.push(oldRowHeaderCellPositons[i]);
|
|
26
|
+
for (let i = 0; i < newCellIds.length; i++) if (!oldCellIds.includes(newCellIds[i])) {
|
|
27
|
+
const newCellAddr = {
|
|
28
|
+
col: col,
|
|
29
|
+
row: columnHeaderStart + i
|
|
30
|
+
};
|
|
31
|
+
addCellPositionsRowDirection.push(newCellAddr);
|
|
32
|
+
}
|
|
33
|
+
let parentId = layout.getParentCellId(col, row), parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId);
|
|
34
|
+
const updateCellPositionsRowDirection = [];
|
|
35
|
+
for (parentCellAddress && updateCellPositionsRowDirection.push(parentCellAddress); parentId; ) parentId = layout.getParentCellId(parentCellAddress.col, parentCellAddress.row),
|
|
36
|
+
parentId && (parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId),
|
|
37
|
+
updateCellPositionsRowDirection.push(parentCellAddress));
|
|
38
|
+
const addCellPositionsColumnDirection = [], removeCellPositionsColumnDirection = [];
|
|
39
|
+
if ("grid-tree" === layout.rowHierarchyType && "column" === layout.cornerSetting.titleOnDimension && layout.rowHeaderLevelCount !== layout._cornerHeaderCellIds[0].length) if (layout.rowHeaderLevelCount > layout._cornerHeaderCellIds[0].length) for (let i = layout._cornerHeaderCellIds[0].length; i < layout.rowHeaderLevelCount; i++) addCellPositionsColumnDirection.push({
|
|
40
|
+
col: i,
|
|
41
|
+
row: row
|
|
42
|
+
}); else for (let i = layout.rowHeaderLevelCount; i < layout._cornerHeaderCellIds[0].length; i++) removeCellPositionsColumnDirection.push({
|
|
43
|
+
col: i,
|
|
44
|
+
row: row
|
|
45
|
+
});
|
|
46
|
+
return {
|
|
47
|
+
addCellPositionsRowDirection: addCellPositionsRowDirection,
|
|
48
|
+
removeCellPositionsRowDirection: removeCellPositionsRowDirection,
|
|
49
|
+
updateCellPositionsRowDirection: updateCellPositionsRowDirection,
|
|
50
|
+
addCellPositionsColumnDirection: addCellPositionsColumnDirection,
|
|
51
|
+
removeCellPositionsColumnDirection: removeCellPositionsColumnDirection
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function diffCellAddressForGridTreeOnColumn(col, row, oldCellIds, newCellIds, oldRowHeaderCellPositons, layout) {
|
|
56
|
+
const rowHeaderStart = layout.rowHeaderLevelCount, addCellPositionsColumnDirection = [], removeCellPositionsColumnDirection = [];
|
|
57
|
+
for (let i = 0; i < oldCellIds.length; i++) newCellIds.includes(oldCellIds[i]) || removeCellPositionsColumnDirection.push(oldRowHeaderCellPositons[i]);
|
|
58
|
+
for (let i = 0; i < newCellIds.length; i++) if (!oldCellIds.includes(newCellIds[i])) {
|
|
59
|
+
const newCellAddr = {
|
|
60
|
+
col: rowHeaderStart + i,
|
|
61
|
+
row: row
|
|
62
|
+
};
|
|
63
|
+
addCellPositionsColumnDirection.push(newCellAddr);
|
|
64
|
+
}
|
|
65
|
+
let parentId = layout.getParentCellId(col, row), parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId);
|
|
66
|
+
const updateCellPositionsColumnDirection = [];
|
|
67
|
+
for (parentCellAddress && updateCellPositionsColumnDirection.push(parentCellAddress); parentCellAddress && parentId; ) parentId = layout.getParentCellId(parentCellAddress.col, parentCellAddress.row),
|
|
68
|
+
parentId && (parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId),
|
|
69
|
+
updateCellPositionsColumnDirection.push(parentCellAddress));
|
|
70
|
+
const addCellPositionsRowDirection = [], removeCellPositionsRowDirection = [];
|
|
71
|
+
if ("grid-tree" === layout.columnHierarchyType && "row" === layout.cornerSetting.titleOnDimension && layout.columnHeaderLevelCount !== layout._cornerHeaderCellIds.length) if (layout.columnHeaderLevelCount > layout._cornerHeaderCellIds.length) for (let i = layout._cornerHeaderCellIds.length; i < layout.columnHeaderLevelCount; i++) addCellPositionsRowDirection.push({
|
|
72
|
+
col: col,
|
|
73
|
+
row: i
|
|
74
|
+
}); else for (let i = layout.columnHeaderLevelCount; i < layout._cornerHeaderCellIds.length; i++) removeCellPositionsRowDirection.push({
|
|
75
|
+
col: col,
|
|
76
|
+
row: i
|
|
77
|
+
});
|
|
78
|
+
return {
|
|
79
|
+
addCellPositionsColumnDirection: addCellPositionsColumnDirection,
|
|
80
|
+
removeCellPositionsColumnDirection: removeCellPositionsColumnDirection,
|
|
81
|
+
updateCellPositionsColumnDirection: updateCellPositionsColumnDirection,
|
|
82
|
+
addCellPositionsRowDirection: addCellPositionsRowDirection,
|
|
83
|
+
removeCellPositionsRowDirection: removeCellPositionsRowDirection
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function diffCellIndices(oldIndexedData, currentIndexedData) {
|
|
88
|
+
const add = [], remove = [];
|
|
89
|
+
for (let i = 0; i < oldIndexedData.length; i++) {
|
|
90
|
+
let removed = !0;
|
|
91
|
+
for (let j = 0; j < currentIndexedData.length; j++) if (checkIndex(oldIndexedData[i], currentIndexedData[j])) {
|
|
92
|
+
removed = !1;
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
removed && remove.push(i);
|
|
96
|
+
}
|
|
97
|
+
for (let i = 0; i < currentIndexedData.length; i++) {
|
|
98
|
+
let added = !0;
|
|
99
|
+
for (let j = 0; j < oldIndexedData.length; j++) if (checkIndex(oldIndexedData[j], currentIndexedData[i])) {
|
|
100
|
+
added = !1;
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
added && add.push(i);
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
add: add,
|
|
107
|
+
remove: remove
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function checkIndex(oldIndex, newIndex) {
|
|
112
|
+
if (typeof oldIndex != typeof newIndex) return !1;
|
|
113
|
+
if ("number" == typeof oldIndex && "number" == typeof newIndex && oldIndex !== newIndex) return !1;
|
|
114
|
+
if (oldIndex.length !== newIndex.length) return !1;
|
|
115
|
+
for (let i = 0; i < oldIndex.length; i++) if (oldIndex[i] !== newIndex[i]) return !1;
|
|
116
|
+
return !0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function calculateArrayDiff(originalArray, targetArray, startIndex) {
|
|
120
|
+
const add = [], remove = [], originalMap = new Map;
|
|
121
|
+
for (let i = 0; i < originalArray.length; i++) {
|
|
122
|
+
const element = originalArray[i], key = JSON.stringify(element);
|
|
123
|
+
originalMap.has(key) ? originalMap.get(key).push(i) : originalMap.set(key, [ i ]);
|
|
124
|
+
}
|
|
125
|
+
for (let i = 0; i < targetArray.length; i++) {
|
|
126
|
+
const element = targetArray[i], key = JSON.stringify(element);
|
|
127
|
+
if (originalMap.has(key)) {
|
|
128
|
+
const indices = originalMap.get(key);
|
|
129
|
+
indices.shift(), 0 === indices.length && originalMap.delete(key);
|
|
130
|
+
} else add.push(i + startIndex);
|
|
131
|
+
}
|
|
132
|
+
for (let i = 0; i < originalArray.length; i++) {
|
|
133
|
+
const element = originalArray[i];
|
|
134
|
+
targetArray.some((item => isEqual(item, element))) || remove.push(i + startIndex);
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
add: add,
|
|
138
|
+
remove: remove
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function isEqual(arr1, arr2) {
|
|
143
|
+
if (arr1 === arr2) return !0;
|
|
144
|
+
if (arr1.length !== arr2.length) return !1;
|
|
145
|
+
for (let i = 0; i < arr1.length; i++) if (arr1[i] !== arr2[i]) return !1;
|
|
146
|
+
return !0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function callUpdateRowOnScenegraph(result, recalculateColWidths, newFrozenRowCount, oldFrozenRowCount, scenegraph) {
|
|
150
|
+
var _a, _b, _c;
|
|
151
|
+
((null === (_a = result.addCellPositionsRowDirection) || void 0 === _a ? void 0 : _a.length) || (null === (_b = result.removeCellPositionsRowDirection) || void 0 === _b ? void 0 : _b.length) || (null === (_c = result.updateCellPositionsRowDirection) || void 0 === _c ? void 0 : _c.length)) && scenegraph.updateRow(result.removeCellPositionsRowDirection, result.addCellPositionsRowDirection.map((item => (item.row += newFrozenRowCount - oldFrozenRowCount,
|
|
152
|
+
item))), result.updateCellPositionsRowDirection, recalculateColWidths);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function callUpdateColOnScenegraph(result, newFrozenColCount, oldFrozenColCount, scenegraph) {
|
|
156
|
+
var _a, _b, _c;
|
|
157
|
+
((null === (_a = result.addCellPositionsColumnDirection) || void 0 === _a ? void 0 : _a.length) || (null === (_b = result.removeCellPositionsColumnDirection) || void 0 === _b ? void 0 : _b.length) || (null === (_c = result.updateCellPositionsColumnDirection) || void 0 === _c ? void 0 : _c.length)) && scenegraph.updateCol(result.removeCellPositionsColumnDirection, result.addCellPositionsColumnDirection.map((item => (item.col += newFrozenColCount - oldFrozenColCount,
|
|
158
|
+
item))), result.updateCellPositionsColumnDirection);
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=diff-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tools/diff-cell.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,eAAe,CAC7B,GAAW,EACX,GAAW,EACX,UAAoB,EACpB,UAAoB,EACpB,wBAAuC,EACvC,MAA4B;IAE5B,MAAM,iBAAiB,GAAG,MAAM,CAAC,sBAAsB,CAAC;IAGxD,MAAM,4BAA4B,GAAG,EAAE,CAAC;IACxC,MAAM,+BAA+B,GAAG,EAAE,CAAC;IAG3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,C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CAAC;YAClD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,EACF,MAAM,CAAC,+BAA+B,EACtC,oBAAoB,CACrB,CAAC;KACH;AACH,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,MAOC,EACD,iBAAyB,EACzB,iBAAyB,EACzB,UAAsB;;IAEtB,IACE,CAAA,MAAA,MAAM,CAAC,+BAA+B,0CAAE,MAAM;SAC9C,MAAA,MAAM,CAAC,kCAAkC,0CAAE,MAAM,CAAA;SACjD,MAAA,MAAM,CAAC,kCAAkC,0CAAE,MAAM,CAAA,EACjD;QACA,UAAU,CAAC,SAAS,CAClB,MAAM,CAAC,kCAAkC,EACzC,MAAM,CAAC,+BAA+B,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAChD,IAAI,CAAC,GAAG,IAAI,iBAAiB,GAAG,iBAAiB,CAAC;YAClD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,EACF,MAAM,CAAC,kCAAkC,CAC1C,CAAC;KACH;AACH,CAAC","file":"diff-cell.js","sourcesContent":["import type { PivotHeaderLayoutMap } from '../layout/pivot-header-layout';\nimport type { Scenegraph } from '../scenegraph/scenegraph';\nimport type { CellAddress } from '../ts-types';\n\nexport function diffCellAddress(\n col: number,\n row: number,\n oldCellIds: number[],\n newCellIds: number[],\n oldRowHeaderCellPositons: CellAddress[],\n layout: PivotHeaderLayoutMap\n) {\n const columnHeaderStart = layout.columnHeaderLevelCount;\n // const oldCellIds = oldCellIdsArr.map(oldCellId => oldCellId[0]);\n // const newCellIds = newCellIdsArr.map(oldCellId => oldCellId[0]);\n const addCellPositionsRowDirection = [];\n const removeCellPositionsRowDirection = [];\n // const updateCellIds: Set<LayoutObjectId> = new Set();\n // diff two array elements\n for (let i = 0; i < oldCellIds.length; i++) {\n if (!newCellIds.includes(oldCellIds[i])) {\n // updateCellIds.add(layout.getParentCellId(oldRowHeaderCellPositons[i].col, oldRowHeaderCellPositons[i].row));\n removeCellPositionsRowDirection.push(oldRowHeaderCellPositons[i]);\n }\n }\n for (let i = 0; i < newCellIds.length; i++) {\n if (!oldCellIds.includes(newCellIds[i])) {\n const newCellAddr = { col, row: columnHeaderStart + i }; // layout.getHeaderCellAdressById(newCellIds[i]);\n // updateCellIds.add(layout.getParentCellId(newCellAddr.col, newCellAddr.row));\n addCellPositionsRowDirection.push(newCellAddr);\n }\n }\n let parentId = layout.getParentCellId(col, row);\n let parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId);\n const updateCellPositionsRowDirection = [];\n parentCellAddress && updateCellPositionsRowDirection.push(parentCellAddress);\n while (parentId) {\n parentId = layout.getParentCellId(parentCellAddress.col, parentCellAddress.row);\n if (parentId) {\n parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId);\n updateCellPositionsRowDirection.push(parentCellAddress);\n }\n }\n return {\n addCellPositionsRowDirection,\n removeCellPositionsRowDirection,\n updateCellPositionsRowDirection\n };\n}\n\nexport function diffCellAddressForGridTree(\n col: number,\n row: number,\n oldCellIds: number[],\n newCellIds: number[],\n oldRowHeaderCellPositons: CellAddress[],\n\n layout: PivotHeaderLayoutMap\n) {\n const columnHeaderStart = layout.columnHeaderLevelCount;\n // const oldCellIds = oldCellIdsArr.map(oldCellId => oldCellId[0]);\n // const newCellIds = newCellIdsArr.map(oldCellId => oldCellId[0]);\n const addCellPositionsRowDirection = [];\n const removeCellPositionsRowDirection = [];\n // const updateCellIds: Set<LayoutObjectId> = new Set();\n // diff two array elements\n for (let i = 0; i < oldCellIds.length; i++) {\n if (!newCellIds.includes(oldCellIds[i])) {\n // updateCellIds.add(layout.getParentCellId(oldRowHeaderCellPositons[i].col, oldRowHeaderCellPositons[i].row));\n removeCellPositionsRowDirection.push(oldRowHeaderCellPositons[i]);\n }\n }\n for (let i = 0; i < newCellIds.length; i++) {\n if (!oldCellIds.includes(newCellIds[i])) {\n const newCellAddr = { col, row: columnHeaderStart + i }; // layout.getHeaderCellAdressById(newCellIds[i]);\n // updateCellIds.add(layout.getParentCellId(newCellAddr.col, newCellAddr.row));\n addCellPositionsRowDirection.push(newCellAddr);\n }\n }\n let parentId = layout.getParentCellId(col, row);\n let parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId);\n const updateCellPositionsRowDirection = [];\n parentCellAddress && updateCellPositionsRowDirection.push(parentCellAddress);\n while (parentId) {\n parentId = layout.getParentCellId(parentCellAddress.col, parentCellAddress.row);\n if (parentId) {\n parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId);\n updateCellPositionsRowDirection.push(parentCellAddress);\n }\n }\n\n const addCellPositionsColumnDirection = [];\n // const updateCellPositionsColumnDirection = [];\n const removeCellPositionsColumnDirection = [];\n if (\n layout.rowHierarchyType === 'grid-tree' &&\n layout.cornerSetting.titleOnDimension === 'column' &&\n layout.rowHeaderLevelCount !== layout._cornerHeaderCellIds[0].length // 表头层级数发生了变化 需要整体做更新_cornerHeaderCellIds是旧值 rowHeaderLevelCount是新值\n ) {\n if (layout.rowHeaderLevelCount > layout._cornerHeaderCellIds[0].length) {\n for (let i = layout._cornerHeaderCellIds[0].length; i < layout.rowHeaderLevelCount; i++) {\n addCellPositionsColumnDirection.push({ col: i, row });\n }\n } else {\n for (let i = layout.rowHeaderLevelCount; i < layout._cornerHeaderCellIds[0].length; i++) {\n // if (layout.hideIndicatorName === false && layout.indicatorsAsCol === false) {\n // removeCellPositionsColumnDirection.push({ col: i, row });\n // updateCellPositionsColumnDirection.push({ col: i - 1, row });\n // } else {\n removeCellPositionsColumnDirection.push({ col: i, row });\n // }\n }\n }\n }\n\n return {\n addCellPositionsRowDirection,\n removeCellPositionsRowDirection,\n updateCellPositionsRowDirection,\n addCellPositionsColumnDirection,\n removeCellPositionsColumnDirection\n // updateCellPositionsColumnDirection\n };\n}\n\nexport function diffCellAddressForGridTreeOnColumn(\n col: number,\n row: number,\n oldCellIds: number[],\n newCellIds: number[],\n oldRowHeaderCellPositons: CellAddress[],\n\n layout: PivotHeaderLayoutMap\n) {\n const rowHeaderStart = layout.rowHeaderLevelCount;\n // const oldCellIds = oldCellIdsArr.map(oldCellId => oldCellId[0]);\n // const newCellIds = newCellIdsArr.map(oldCellId => oldCellId[0]);\n const addCellPositionsColumnDirection = [];\n const removeCellPositionsColumnDirection = [];\n // const updateCellIds: Set<LayoutObjectId> = new Set();\n // diff two array elements\n for (let i = 0; i < oldCellIds.length; i++) {\n if (!newCellIds.includes(oldCellIds[i])) {\n // updateCellIds.add(layout.getParentCellId(oldRowHeaderCellPositons[i].col, oldRowHeaderCellPositons[i].row));\n removeCellPositionsColumnDirection.push(oldRowHeaderCellPositons[i]);\n }\n }\n for (let i = 0; i < newCellIds.length; i++) {\n if (!oldCellIds.includes(newCellIds[i])) {\n const newCellAddr = { col: rowHeaderStart + i, row }; // layout.getHeaderCellAdressById(newCellIds[i]);\n // updateCellIds.add(layout.getParentCellId(newCellAddr.col, newCellAddr.row));\n addCellPositionsColumnDirection.push(newCellAddr);\n }\n }\n let parentId = layout.getParentCellId(col, row);\n let parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId);\n const updateCellPositionsColumnDirection = [];\n parentCellAddress && updateCellPositionsColumnDirection.push(parentCellAddress);\n while (parentCellAddress && parentId) {\n parentId = layout.getParentCellId(parentCellAddress.col, parentCellAddress.row);\n if (parentId) {\n parentCellAddress = layout.getRowHeaderCellAddressByCellId(parentId);\n updateCellPositionsColumnDirection.push(parentCellAddress);\n }\n }\n\n const addCellPositionsRowDirection = [];\n // const updateCellPositionsRowDirection = [];\n const removeCellPositionsRowDirection = [];\n if (\n layout.columnHierarchyType === 'grid-tree' &&\n layout.cornerSetting.titleOnDimension === 'row' &&\n layout.columnHeaderLevelCount !== layout._cornerHeaderCellIds.length // 表头层级数发生了变化 需要整体做更新_cornerHeaderCellIds是旧值 rowHeaderLevelCount是新值\n ) {\n if (layout.columnHeaderLevelCount > layout._cornerHeaderCellIds.length) {\n for (let i = layout._cornerHeaderCellIds.length; i < layout.columnHeaderLevelCount; i++) {\n addCellPositionsRowDirection.push({ col, row: i });\n }\n } else {\n for (let i = layout.columnHeaderLevelCount; i < layout._cornerHeaderCellIds.length; i++) {\n // if (layout.hideIndicatorName && layout.indicatorsAsCol) {\n // removeCellPositionsRowDirection.push({ col, row: i });\n // updateCellPositionsRowDirection.push({ col, row: i - 1 });\n // } else {\n removeCellPositionsRowDirection.push({ col, row: i });\n // }\n }\n }\n }\n return {\n addCellPositionsColumnDirection,\n removeCellPositionsColumnDirection,\n updateCellPositionsColumnDirection,\n addCellPositionsRowDirection,\n // updateCellPositionsRowDirection,\n removeCellPositionsRowDirection\n };\n}\n\n// find diff between two arrays\nfunction diffCellIndices(oldIndexedData: (number | number[])[], currentIndexedData: (number | number[])[]) {\n const add = [];\n const remove = [];\n // find removed indices\n for (let i = 0; i < oldIndexedData.length; i++) {\n let removed = true;\n for (let j = 0; j < currentIndexedData.length; j++) {\n if (checkIndex(oldIndexedData[i], currentIndexedData[j])) {\n removed = false;\n break;\n }\n }\n if (removed) {\n remove.push(i);\n }\n }\n\n // find added indices\n for (let i = 0; i < currentIndexedData.length; i++) {\n let added = true;\n for (let j = 0; j < oldIndexedData.length; j++) {\n if (checkIndex(oldIndexedData[j], currentIndexedData[i])) {\n added = false;\n break;\n }\n }\n if (added) {\n add.push(i);\n }\n }\n return { add, remove };\n}\n\nfunction checkIndex(oldIndex: number | number[], newIndex: number | number[]): boolean {\n if (typeof oldIndex !== typeof newIndex) {\n return false;\n }\n if (typeof oldIndex === 'number' && typeof newIndex === 'number' && oldIndex !== newIndex) {\n return false;\n }\n if ((oldIndex as number[]).length !== (newIndex as number[]).length) {\n return false;\n }\n for (let i = 0; i < (oldIndex as number[]).length; i++) {\n if (oldIndex[i] !== newIndex[i]) {\n return false;\n }\n }\n return true;\n}\n\nexport function calculateArrayDiff(\n originalArray: (number | number[])[],\n targetArray: (number | number[])[],\n startIndex: number\n) {\n const add = [];\n const remove = [];\n\n const originalMap = new Map();\n for (let i = 0; i < originalArray.length; i++) {\n const element = originalArray[i];\n const key = JSON.stringify(element);\n if (originalMap.has(key)) {\n originalMap.get(key).push(i);\n } else {\n originalMap.set(key, [i]);\n }\n }\n\n for (let i = 0; i < targetArray.length; i++) {\n const element = targetArray[i];\n const key = JSON.stringify(element);\n if (!originalMap.has(key)) {\n add.push(i + startIndex);\n } else {\n const indices = originalMap.get(key);\n indices.shift(); // Remove the first index\n if (indices.length === 0) {\n originalMap.delete(key);\n }\n }\n }\n\n for (let i = 0; i < originalArray.length; i++) {\n const element = originalArray[i];\n if (!targetArray.some(item => isEqual(item, element))) {\n remove.push(i + startIndex);\n }\n }\n\n return { add, remove };\n}\n\nfunction isEqual(arr1: any, arr2: any) {\n if (arr1 === arr2) {\n return true;\n }\n\n if (arr1.length !== arr2.length) {\n return false;\n }\n\n for (let i = 0; i < arr1.length; i++) {\n if (arr1[i] !== arr2[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nexport function callUpdateRowOnScenegraph(\n result: {\n addCellPositionsRowDirection?: CellAddress[];\n removeCellPositionsRowDirection?: CellAddress[];\n updateCellPositionsRowDirection?: CellAddress[];\n addCellPositionsColumnDirection?: CellAddress[];\n removeCellPositionsColumnDirection?: CellAddress[];\n updateCellPositionsColumnDirection?: CellAddress[];\n },\n recalculateColWidths: boolean,\n newFrozenRowCount: number,\n oldFrozenRowCount: number,\n scenegraph: Scenegraph\n) {\n if (\n result.addCellPositionsRowDirection?.length ||\n result.removeCellPositionsRowDirection?.length ||\n result.updateCellPositionsRowDirection?.length\n ) {\n scenegraph.updateRow(\n result.removeCellPositionsRowDirection,\n result.addCellPositionsRowDirection.map(item => {\n item.row += newFrozenRowCount - oldFrozenRowCount;\n return item;\n }),\n result.updateCellPositionsRowDirection,\n recalculateColWidths\n );\n }\n}\n\nexport function callUpdateColOnScenegraph(\n result: {\n addCellPositionsRowDirection?: CellAddress[];\n removeCellPositionsRowDirection?: CellAddress[];\n updateCellPositionsRowDirection?: CellAddress[];\n addCellPositionsColumnDirection?: CellAddress[];\n removeCellPositionsColumnDirection?: CellAddress[];\n updateCellPositionsColumnDirection?: CellAddress[];\n },\n newFrozenColCount: number,\n oldFrozenColCount: number,\n scenegraph: Scenegraph\n) {\n if (\n result.addCellPositionsColumnDirection?.length ||\n result.removeCellPositionsColumnDirection?.length ||\n result.updateCellPositionsColumnDirection?.length\n ) {\n scenegraph.updateCol(\n result.removeCellPositionsColumnDirection,\n result.addCellPositionsColumnDirection.map(item => {\n item.col += newFrozenColCount - oldFrozenColCount;\n return item;\n }),\n result.updateCellPositionsColumnDirection\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createElement(tagName: string, classNames?: string[]): HTMLElement;
|
package/es/tools/dom.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tools/dom.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAAC,OAAe,EAAE,UAAqB;IAClE,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAChD,IAAI,UAAU,EAAE;QACd,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,CAAC;KACtC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC","file":"dom.js","sourcesContent":["export function createElement(tagName: string, classNames?: string[]): HTMLElement {\n const element = document.createElement(tagName);\n if (classNames) {\n element.classList.add(...classNames);\n }\n return element;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type EnvMode = 'browser' | 'node' | 'worker' | 'miniApp' | 'desktop-miniApp';
|
|
2
|
+
export type LooseFunction = (...args: any) => any;
|
|
3
|
+
export declare class Env {
|
|
4
|
+
static _mode: EnvMode;
|
|
5
|
+
static get mode(): EnvMode;
|
|
6
|
+
static set mode(mode: EnvMode);
|
|
7
|
+
static dpr: number;
|
|
8
|
+
static CreateCanvas?: LooseFunction;
|
|
9
|
+
static LoadImage?: LooseFunction;
|
|
10
|
+
static RequestAnimationFrame?: LooseFunction;
|
|
11
|
+
static CancelAnimationFrame?: LooseFunction;
|
|
12
|
+
static RegisterCreateCanvas(func: LooseFunction): void;
|
|
13
|
+
static RegisterLoadImage(func: LooseFunction): void;
|
|
14
|
+
static GetCreateCanvasFunc(): LooseFunction | undefined;
|
|
15
|
+
static RegisterRequestAnimationFrame(func: LooseFunction): void;
|
|
16
|
+
static GetRequestAnimationFrame(): LooseFunction;
|
|
17
|
+
static RegisterCancelAnimationFrame(func: LooseFunction): void;
|
|
18
|
+
static GetCancelAnimationFrame(): LooseFunction;
|
|
19
|
+
}
|