k-vtable 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +151 -0
- package/cjs/ListTable-all.d.ts +3 -0
- package/cjs/ListTable-all.js +20 -0
- package/cjs/ListTable-all.js.map +1 -0
- package/cjs/ListTable-simple.d.ts +3 -0
- package/cjs/ListTable-simple.js +14 -0
- package/cjs/ListTable-simple.js.map +1 -0
- package/cjs/ListTable.d.ts +101 -0
- package/cjs/ListTable.js +682 -0
- package/cjs/ListTable.js.map +1 -0
- package/cjs/PivotChart.d.ts +100 -0
- package/cjs/PivotChart.js +755 -0
- package/cjs/PivotChart.js.map +1 -0
- package/cjs/PivotTable-all.d.ts +3 -0
- package/cjs/PivotTable-all.js +19 -0
- package/cjs/PivotTable-all.js.map +1 -0
- package/cjs/PivotTable-simple.d.ts +3 -0
- package/cjs/PivotTable-simple.js +14 -0
- package/cjs/PivotTable-simple.js.map +1 -0
- package/cjs/PivotTable.d.ts +112 -0
- package/cjs/PivotTable.js +992 -0
- package/cjs/PivotTable.js.map +1 -0
- package/cjs/body-helper/body-helper.d.ts +20 -0
- package/cjs/body-helper/body-helper.js +121 -0
- package/cjs/body-helper/body-helper.js.map +1 -0
- package/cjs/body-helper/style/ButtonStyle.d.ts +45 -0
- package/cjs/body-helper/style/ButtonStyle.js +110 -0
- package/cjs/body-helper/style/ButtonStyle.js.map +1 -0
- package/cjs/body-helper/style/CheckboxStyle.d.ts +42 -0
- package/cjs/body-helper/style/CheckboxStyle.js +104 -0
- package/cjs/body-helper/style/CheckboxStyle.js.map +1 -0
- package/cjs/body-helper/style/ImageStyle.d.ts +7 -0
- package/cjs/body-helper/style/ImageStyle.js +24 -0
- package/cjs/body-helper/style/ImageStyle.js.map +1 -0
- package/cjs/body-helper/style/MultilineTextStyle.d.ts +13 -0
- package/cjs/body-helper/style/MultilineTextStyle.js +38 -0
- package/cjs/body-helper/style/MultilineTextStyle.js.map +1 -0
- package/cjs/body-helper/style/NumberStyle.d.ts +7 -0
- package/cjs/body-helper/style/NumberStyle.js +24 -0
- package/cjs/body-helper/style/NumberStyle.js.map +1 -0
- package/cjs/body-helper/style/ProgressBarStyle.d.ts +55 -0
- package/cjs/body-helper/style/ProgressBarStyle.js +139 -0
- package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -0
- package/cjs/body-helper/style/RadioStyle.d.ts +45 -0
- package/cjs/body-helper/style/RadioStyle.js +111 -0
- package/cjs/body-helper/style/RadioStyle.js.map +1 -0
- package/cjs/body-helper/style/Style.d.ts +95 -0
- package/cjs/body-helper/style/Style.js +225 -0
- package/cjs/body-helper/style/Style.js.map +1 -0
- package/cjs/body-helper/style/SwitchStyle.d.ts +36 -0
- package/cjs/body-helper/style/SwitchStyle.js +90 -0
- package/cjs/body-helper/style/SwitchStyle.js.map +1 -0
- package/cjs/body-helper/style.d.ts +11 -0
- package/cjs/body-helper/style.js +52 -0
- package/cjs/body-helper/style.js.map +1 -0
- package/cjs/chartModule.d.ts +3 -0
- package/cjs/chartModule.js +14 -0
- package/cjs/chartModule.js.map +1 -0
- package/cjs/components/axis/axis.d.ts +52 -0
- package/cjs/components/axis/axis.js +190 -0
- package/cjs/components/axis/axis.js.map +1 -0
- package/cjs/components/axis/band-scale.d.ts +18 -0
- package/cjs/components/axis/band-scale.js +54 -0
- package/cjs/components/axis/band-scale.js.map +1 -0
- package/cjs/components/axis/get-axis-attributes.d.ts +146 -0
- package/cjs/components/axis/get-axis-attributes.js +199 -0
- package/cjs/components/axis/get-axis-attributes.js.map +1 -0
- package/cjs/components/axis/get-axis-component-size.d.ts +6 -0
- package/cjs/components/axis/get-axis-component-size.js +138 -0
- package/cjs/components/axis/get-axis-component-size.js.map +1 -0
- package/cjs/components/axis/label-overlap.d.ts +3 -0
- package/cjs/components/axis/label-overlap.js +64 -0
- package/cjs/components/axis/label-overlap.js.map +1 -0
- package/cjs/components/axis/linear-scale.d.ts +48 -0
- package/cjs/components/axis/linear-scale.js +136 -0
- package/cjs/components/axis/linear-scale.js.map +1 -0
- package/cjs/components/empty-tip/empty-tip.d.ts +25 -0
- package/cjs/components/empty-tip/empty-tip.js +102 -0
- package/cjs/components/empty-tip/empty-tip.js.map +1 -0
- package/cjs/components/index.d.ts +6 -0
- package/cjs/components/index.js +44 -0
- package/cjs/components/index.js.map +1 -0
- package/cjs/components/legend/continue-legend/continue-legend.d.ts +24 -0
- package/cjs/components/legend/continue-legend/continue-legend.js +98 -0
- package/cjs/components/legend/continue-legend/continue-legend.js.map +1 -0
- package/cjs/components/legend/continue-legend/get-continue-legend-attributes.d.ts +5 -0
- package/cjs/components/legend/continue-legend/get-continue-legend-attributes.js +139 -0
- package/cjs/components/legend/continue-legend/get-continue-legend-attributes.js.map +1 -0
- package/cjs/components/legend/create-legend.d.ts +6 -0
- package/cjs/components/legend/create-legend.js +14 -0
- package/cjs/components/legend/create-legend.js.map +1 -0
- package/cjs/components/legend/discrete-legend/discrete-legend.d.ts +25 -0
- package/cjs/components/legend/discrete-legend/discrete-legend.js +115 -0
- package/cjs/components/legend/discrete-legend/discrete-legend.js.map +1 -0
- package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.d.ts +5 -0
- package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.js +90 -0
- package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.js.map +1 -0
- package/cjs/components/menu/dom/BaseMenu.d.ts +16 -0
- package/cjs/components/menu/dom/BaseMenu.js +33 -0
- package/cjs/components/menu/dom/BaseMenu.js.map +1 -0
- package/cjs/components/menu/dom/Menu.d.ts +9 -0
- package/cjs/components/menu/dom/Menu.js +24 -0
- package/cjs/components/menu/dom/Menu.js.map +1 -0
- package/cjs/components/menu/dom/MenuHandler.d.ts +24 -0
- package/cjs/components/menu/dom/MenuHandler.js +148 -0
- package/cjs/components/menu/dom/MenuHandler.js.map +1 -0
- package/cjs/components/menu/dom/logic/MenuContainer.d.ts +21 -0
- package/cjs/components/menu/dom/logic/MenuContainer.js +105 -0
- package/cjs/components/menu/dom/logic/MenuContainer.js.map +1 -0
- package/cjs/components/menu/dom/logic/MenuElement.d.ts +26 -0
- package/cjs/components/menu/dom/logic/MenuElement.js +287 -0
- package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -0
- package/cjs/components/menu/dom/logic/MenuElementStyle.d.ts +1 -0
- package/cjs/components/menu/dom/logic/MenuElementStyle.js +17 -0
- package/cjs/components/menu/dom/logic/MenuElementStyle.js.map +1 -0
- package/cjs/components/react/react-custom-layout.d.ts +27 -0
- package/cjs/components/react/react-custom-layout.js +179 -0
- package/cjs/components/react/react-custom-layout.js.map +1 -0
- package/cjs/components/title/title.d.ts +21 -0
- package/cjs/components/title/title.js +89 -0
- package/cjs/components/title/title.js.map +1 -0
- package/cjs/components/tooltip/BaseTooltip.d.ts +22 -0
- package/cjs/components/tooltip/BaseTooltip.js +35 -0
- package/cjs/components/tooltip/BaseTooltip.js.map +1 -0
- package/cjs/components/tooltip/Tooltip.d.ts +5 -0
- package/cjs/components/tooltip/Tooltip.js +16 -0
- package/cjs/components/tooltip/Tooltip.js.map +1 -0
- package/cjs/components/tooltip/TooltipHandler.d.ts +31 -0
- package/cjs/components/tooltip/TooltipHandler.js +132 -0
- package/cjs/components/tooltip/TooltipHandler.js.map +1 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElement.d.ts +34 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElement.js +163 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.d.ts +1 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js +17 -0
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
- package/cjs/components/util/orient.d.ts +3 -0
- package/cjs/components/util/orient.js +14 -0
- package/cjs/components/util/orient.js.map +1 -0
- package/cjs/components/util/register.d.ts +3 -0
- package/cjs/components/util/register.js +15 -0
- package/cjs/components/util/register.js.map +1 -0
- package/cjs/components/util/transform.d.ts +5 -0
- package/cjs/components/util/transform.js +45 -0
- package/cjs/components/util/transform.js.map +1 -0
- package/cjs/core/BaseTable.d.ts +436 -0
- package/cjs/core/BaseTable.js +1866 -0
- package/cjs/core/BaseTable.js.map +1 -0
- package/cjs/core/FouseInput.d.ts +12 -0
- package/cjs/core/FouseInput.js +41 -0
- package/cjs/core/FouseInput.js.map +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +61 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +65 -0
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -0
- package/cjs/core/animation.d.ts +17 -0
- package/cjs/core/animation.js +61 -0
- package/cjs/core/animation.js.map +1 -0
- package/cjs/core/factory.d.ts +11 -0
- package/cjs/core/factory.js +29 -0
- package/cjs/core/factory.js.map +1 -0
- package/cjs/core/group-helper.d.ts +6 -0
- package/cjs/core/group-helper.js +22 -0
- package/cjs/core/group-helper.js.map +1 -0
- package/cjs/core/record-helper.d.ts +8 -0
- package/cjs/core/record-helper.js +428 -0
- package/cjs/core/record-helper.js.map +1 -0
- package/cjs/core/row-series-number-helper.d.ts +8 -0
- package/cjs/core/row-series-number-helper.js +46 -0
- package/cjs/core/row-series-number-helper.js.map +1 -0
- package/cjs/core/style-helper.d.ts +3 -0
- package/cjs/core/style-helper.js +110 -0
- package/cjs/core/style-helper.js.map +1 -0
- package/cjs/core/style.d.ts +1 -0
- package/cjs/core/style.js +17 -0
- package/cjs/core/style.js.map +1 -0
- package/cjs/core/tableHelper.d.ts +45 -0
- package/cjs/core/tableHelper.js +287 -0
- package/cjs/core/tableHelper.js.map +1 -0
- package/cjs/core/utils/get-cell-position.d.ts +12 -0
- package/cjs/core/utils/get-cell-position.js +214 -0
- package/cjs/core/utils/get-cell-position.js.map +1 -0
- package/cjs/core/utils/get-custom-merge-cell-func.d.ts +2 -0
- package/cjs/core/utils/get-custom-merge-cell-func.js +14 -0
- package/cjs/core/utils/get-custom-merge-cell-func.js.map +1 -0
- package/cjs/core.d.ts +3 -0
- package/cjs/core.js +15 -0
- package/cjs/core.js.map +1 -0
- package/cjs/data/CachedDataSource.d.ts +36 -0
- package/cjs/data/CachedDataSource.js +259 -0
- package/cjs/data/CachedDataSource.js.map +1 -0
- package/cjs/data/DataSource.d.ts +129 -0
- package/cjs/data/DataSource.js +758 -0
- package/cjs/data/DataSource.js.map +1 -0
- package/cjs/data.d.ts +4 -0
- package/cjs/data.js +24 -0
- package/cjs/data.js.map +1 -0
- package/cjs/dataset/DataStatistics.d.ts +10 -0
- package/cjs/dataset/DataStatistics.js +81 -0
- package/cjs/dataset/DataStatistics.js.map +1 -0
- package/cjs/dataset/dataset-pivot-table.d.ts +60 -0
- package/cjs/dataset/dataset-pivot-table.js +349 -0
- package/cjs/dataset/dataset-pivot-table.js.map +1 -0
- package/cjs/dataset/dataset.d.ts +108 -0
- package/cjs/dataset/dataset.js +810 -0
- package/cjs/dataset/dataset.js.map +1 -0
- package/cjs/dataset/flatDataToObject.d.ts +46 -0
- package/cjs/dataset/flatDataToObject.js +133 -0
- package/cjs/dataset/flatDataToObject.js.map +1 -0
- package/cjs/edit/edit-manager.d.ts +19 -0
- package/cjs/edit/edit-manager.js +124 -0
- package/cjs/edit/edit-manager.js.map +1 -0
- package/cjs/edit/editors.d.ts +5 -0
- package/cjs/edit/editors.js +10 -0
- package/cjs/edit/editors.js.map +1 -0
- package/cjs/event/EventHandler.d.ts +47 -0
- package/cjs/event/EventHandler.js +128 -0
- package/cjs/event/EventHandler.js.map +1 -0
- package/cjs/event/EventTarget.d.ts +12 -0
- package/cjs/event/EventTarget.js +67 -0
- package/cjs/event/EventTarget.js.map +1 -0
- package/cjs/event/component/button.d.ts +2 -0
- package/cjs/event/component/button.js +21 -0
- package/cjs/event/component/button.js.map +1 -0
- package/cjs/event/drill.d.ts +5 -0
- package/cjs/event/drill.js +38 -0
- package/cjs/event/drill.js.map +1 -0
- package/cjs/event/event.d.ts +63 -0
- package/cjs/event/event.js +208 -0
- package/cjs/event/event.js.map +1 -0
- package/cjs/event/helper.d.ts +2 -0
- package/cjs/event/helper.js +35 -0
- package/cjs/event/helper.js.map +1 -0
- package/cjs/event/listener/container-dom.d.ts +2 -0
- package/cjs/event/listener/container-dom.js +343 -0
- package/cjs/event/listener/container-dom.js.map +1 -0
- package/cjs/event/listener/scroll-bar.d.ts +2 -0
- package/cjs/event/listener/scroll-bar.js +80 -0
- package/cjs/event/listener/scroll-bar.js.map +1 -0
- package/cjs/event/listener/table-group.d.ts +6 -0
- package/cjs/event/listener/table-group.js +519 -0
- package/cjs/event/listener/table-group.js.map +1 -0
- package/cjs/event/listener/touch.d.ts +2 -0
- package/cjs/event/listener/touch.js +84 -0
- package/cjs/event/listener/touch.js.map +1 -0
- package/cjs/event/media-click.d.ts +2 -0
- package/cjs/event/media-click.js +85 -0
- package/cjs/event/media-click.js.map +1 -0
- package/cjs/event/scroll.d.ts +20 -0
- package/cjs/event/scroll.js +92 -0
- package/cjs/event/scroll.js.map +1 -0
- package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.d.ts +2 -0
- package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.js +31 -0
- package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.js.map +1 -0
- package/cjs/event/self-event-listener/base-table/dropdown-menu.d.ts +2 -0
- package/cjs/event/self-event-listener/base-table/dropdown-menu.js +16 -0
- package/cjs/event/self-event-listener/base-table/dropdown-menu.js.map +1 -0
- package/cjs/event/self-event-listener/base-table/icon.d.ts +2 -0
- package/cjs/event/self-event-listener/base-table/icon.js +23 -0
- package/cjs/event/self-event-listener/base-table/icon.js.map +1 -0
- package/cjs/event/self-event-listener/base-table/right-button-click.d.ts +2 -0
- package/cjs/event/self-event-listener/base-table/right-button-click.js +25 -0
- package/cjs/event/self-event-listener/base-table/right-button-click.js.map +1 -0
- package/cjs/event/self-event-listener/list-table/checkbox.d.ts +3 -0
- package/cjs/event/self-event-listener/list-table/checkbox.js +124 -0
- package/cjs/event/self-event-listener/list-table/checkbox.js.map +1 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-click.d.ts +2 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-click.js +43 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-click.js.map +1 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-hover.d.ts +2 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-hover.js +41 -0
- package/cjs/event/self-event-listener/pivot-chart/axis-hover.js.map +1 -0
- package/cjs/event/self-event-listener/pivot-table/drill.d.ts +1 -0
- package/cjs/event/self-event-listener/pivot-table/drill.js +3 -0
- package/cjs/event/self-event-listener/pivot-table/drill.js.map +1 -0
- package/cjs/event/sparkline-event.d.ts +2 -0
- package/cjs/event/sparkline-event.js +27 -0
- package/cjs/event/sparkline-event.js.map +1 -0
- package/cjs/event/util.d.ts +20 -0
- package/cjs/event/util.js +46 -0
- package/cjs/event/util.js.map +1 -0
- package/cjs/header-helper/header-helper.d.ts +29 -0
- package/cjs/header-helper/header-helper.js +272 -0
- package/cjs/header-helper/header-helper.js.map +1 -0
- package/cjs/header-helper/style/CheckboxStyle.d.ts +42 -0
- package/cjs/header-helper/style/CheckboxStyle.js +104 -0
- package/cjs/header-helper/style/CheckboxStyle.js.map +1 -0
- package/cjs/header-helper/style/ImageStyle.d.ts +7 -0
- package/cjs/header-helper/style/ImageStyle.js +25 -0
- package/cjs/header-helper/style/ImageStyle.js.map +1 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.js +38 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
- package/cjs/header-helper/style/SortHeaderStyle.d.ts +1 -0
- package/cjs/header-helper/style/SortHeaderStyle.js +3 -0
- package/cjs/header-helper/style/SortHeaderStyle.js.map +1 -0
- package/cjs/header-helper/style/Style.d.ts +95 -0
- package/cjs/header-helper/style/Style.js +226 -0
- package/cjs/header-helper/style/Style.js.map +1 -0
- package/cjs/header-helper/style.d.ts +6 -0
- package/cjs/header-helper/style.js +35 -0
- package/cjs/header-helper/style.js.map +1 -0
- package/cjs/icons.d.ts +5 -0
- package/cjs/icons.js +299 -0
- package/cjs/icons.js.map +1 -0
- package/cjs/index.d.ts +33 -0
- package/cjs/index.js +215 -0
- package/cjs/index.js.map +1 -0
- package/cjs/layout/cell-range/simple-cell-range.d.ts +4 -0
- package/cjs/layout/cell-range/simple-cell-range.js +148 -0
- package/cjs/layout/cell-range/simple-cell-range.js.map +1 -0
- package/cjs/layout/chart-helper/get-axis-config.d.ts +39 -0
- package/cjs/layout/chart-helper/get-axis-config.js +398 -0
- package/cjs/layout/chart-helper/get-axis-config.js.map +1 -0
- package/cjs/layout/chart-helper/get-axis-domain.d.ts +11 -0
- package/cjs/layout/chart-helper/get-axis-domain.js +49 -0
- package/cjs/layout/chart-helper/get-axis-domain.js.map +1 -0
- package/cjs/layout/chart-helper/get-chart-spec.d.ts +13 -0
- package/cjs/layout/chart-helper/get-chart-spec.js +287 -0
- package/cjs/layout/chart-helper/get-chart-spec.js.map +1 -0
- package/cjs/layout/chart-helper/tick-align.d.ts +12 -0
- package/cjs/layout/chart-helper/tick-align.js +23 -0
- package/cjs/layout/chart-helper/tick-align.js.map +1 -0
- package/cjs/layout/chart-helper/zero-align.d.ts +10 -0
- package/cjs/layout/chart-helper/zero-align.js +119 -0
- package/cjs/layout/chart-helper/zero-align.js.map +1 -0
- package/cjs/layout/index.d.ts +1 -0
- package/cjs/layout/index.js +14 -0
- package/cjs/layout/index.js.map +1 -0
- package/cjs/layout/layout-helper.d.ts +20 -0
- package/cjs/layout/layout-helper.js +154 -0
- package/cjs/layout/layout-helper.js.map +1 -0
- package/cjs/layout/pivot-header-layout.d.ts +279 -0
- package/cjs/layout/pivot-header-layout.js +1845 -0
- package/cjs/layout/pivot-header-layout.js.map +1 -0
- package/cjs/layout/pivot-layout.d.ts +1 -0
- package/cjs/layout/pivot-layout.js +1 -0
- package/cjs/layout/pivot-layout.js.map +1 -0
- package/cjs/layout/row-height-map.d.ts +34 -0
- package/cjs/layout/row-height-map.js +176 -0
- package/cjs/layout/row-height-map.js.map +1 -0
- package/cjs/layout/simple-header-layout.d.ts +153 -0
- package/cjs/layout/simple-header-layout.js +779 -0
- package/cjs/layout/simple-header-layout.js.map +1 -0
- package/cjs/layout/tree-helper.d.ts +71 -0
- package/cjs/layout/tree-helper.js +405 -0
- package/cjs/layout/tree-helper.js.map +1 -0
- package/cjs/plugins/chartModules.d.ts +3 -0
- package/cjs/plugins/chartModules.js +6 -0
- package/cjs/plugins/chartModules.js.map +1 -0
- package/cjs/plugins/custom-cell-style.d.ts +26 -0
- package/cjs/plugins/custom-cell-style.js +113 -0
- package/cjs/plugins/custom-cell-style.js.map +1 -0
- package/cjs/plugins/icons.d.ts +12 -0
- package/cjs/plugins/icons.js +26 -0
- package/cjs/plugins/icons.js.map +1 -0
- package/cjs/plugins/invert-highlight.d.ts +1 -0
- package/cjs/plugins/invert-highlight.js +23 -0
- package/cjs/plugins/invert-highlight.js.map +1 -0
- package/cjs/plugins/list-tree-stick-cell.d.ts +18 -0
- package/cjs/plugins/list-tree-stick-cell.js +180 -0
- package/cjs/plugins/list-tree-stick-cell.js.map +1 -0
- package/cjs/plugins/themes.d.ts +4 -0
- package/cjs/plugins/themes.js +6 -0
- package/cjs/plugins/themes.js.map +1 -0
- package/cjs/register.d.ts +15 -0
- package/cjs/register.js +45 -0
- package/cjs/register.js.map +1 -0
- package/cjs/render/jsx/index.d.ts +8 -0
- package/cjs/render/jsx/index.js +91 -0
- package/cjs/render/jsx/index.js.map +1 -0
- package/cjs/render/layout/arc.d.ts +12 -0
- package/cjs/render/layout/arc.js +18 -0
- package/cjs/render/layout/arc.js.map +1 -0
- package/cjs/render/layout/circle.d.ts +12 -0
- package/cjs/render/layout/circle.js +18 -0
- package/cjs/render/layout/circle.js.map +1 -0
- package/cjs/render/layout/container.d.ts +14 -0
- package/cjs/render/layout/container.js +27 -0
- package/cjs/render/layout/container.js.map +1 -0
- package/cjs/render/layout/direction.d.ts +22 -0
- package/cjs/render/layout/direction.js +35 -0
- package/cjs/render/layout/direction.js.map +1 -0
- package/cjs/render/layout/element.d.ts +43 -0
- package/cjs/render/layout/element.js +27 -0
- package/cjs/render/layout/element.js.map +1 -0
- package/cjs/render/layout/group-element.d.ts +5 -0
- package/cjs/render/layout/group-element.js +16 -0
- package/cjs/render/layout/group-element.js.map +1 -0
- package/cjs/render/layout/group.d.ts +12 -0
- package/cjs/render/layout/group.js +18 -0
- package/cjs/render/layout/group.js.map +1 -0
- package/cjs/render/layout/icon.d.ts +21 -0
- package/cjs/render/layout/icon.js +50 -0
- package/cjs/render/layout/icon.js.map +1 -0
- package/cjs/render/layout/image.d.ts +14 -0
- package/cjs/render/layout/image.js +19 -0
- package/cjs/render/layout/image.js.map +1 -0
- package/cjs/render/layout/index.d.ts +13 -0
- package/cjs/render/layout/index.js +41 -0
- package/cjs/render/layout/index.js.map +1 -0
- package/cjs/render/layout/line.d.ts +1 -0
- package/cjs/render/layout/line.js +15 -0
- package/cjs/render/layout/line.js.map +1 -0
- package/cjs/render/layout/percent-calc.d.ts +5 -0
- package/cjs/render/layout/percent-calc.js +13 -0
- package/cjs/render/layout/percent-calc.js.map +1 -0
- package/cjs/render/layout/rect.d.ts +12 -0
- package/cjs/render/layout/rect.js +18 -0
- package/cjs/render/layout/rect.js.map +1 -0
- package/cjs/render/layout/tag.d.ts +14 -0
- package/cjs/render/layout/tag.js +21 -0
- package/cjs/render/layout/tag.js.map +1 -0
- package/cjs/render/layout/text.d.ts +13 -0
- package/cjs/render/layout/text.js +23 -0
- package/cjs/render/layout/text.js.map +1 -0
- package/cjs/scenegraph/animation/appear.d.ts +2 -0
- package/cjs/scenegraph/animation/appear.js +26 -0
- package/cjs/scenegraph/animation/appear.js.map +1 -0
- package/cjs/scenegraph/component/cell-content.d.ts +36 -0
- package/cjs/scenegraph/component/cell-content.js +109 -0
- package/cjs/scenegraph/component/cell-content.js.map +1 -0
- package/cjs/scenegraph/component/cell-mover.d.ts +21 -0
- package/cjs/scenegraph/component/cell-mover.js +119 -0
- package/cjs/scenegraph/component/cell-mover.js.map +1 -0
- package/cjs/scenegraph/component/custom.d.ts +16 -0
- package/cjs/scenegraph/component/custom.js +309 -0
- package/cjs/scenegraph/component/custom.js.map +1 -0
- package/cjs/scenegraph/component/drill-icon.d.ts +9 -0
- package/cjs/scenegraph/component/drill-icon.js +70 -0
- package/cjs/scenegraph/component/drill-icon.js.map +1 -0
- package/cjs/scenegraph/component/menu.d.ts +41 -0
- package/cjs/scenegraph/component/menu.js +217 -0
- package/cjs/scenegraph/component/menu.js.map +1 -0
- package/cjs/scenegraph/component/table-component.d.ts +52 -0
- package/cjs/scenegraph/component/table-component.js +560 -0
- package/cjs/scenegraph/component/table-component.js.map +1 -0
- package/cjs/scenegraph/component/util.d.ts +3 -0
- package/cjs/scenegraph/component/util.js +18 -0
- package/cjs/scenegraph/component/util.js.map +1 -0
- package/cjs/scenegraph/debug-tool/debug-tool.d.ts +34 -0
- package/cjs/scenegraph/debug-tool/debug-tool.js +125 -0
- package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -0
- package/cjs/scenegraph/debug-tool/index.d.ts +4 -0
- package/cjs/scenegraph/debug-tool/index.js +14 -0
- package/cjs/scenegraph/debug-tool/index.js.map +1 -0
- package/cjs/scenegraph/graphic/chart.d.ts +47 -0
- package/cjs/scenegraph/graphic/chart.js +129 -0
- package/cjs/scenegraph/graphic/chart.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.d.ts +11 -0
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +166 -0
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +11 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.js +74 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/draw-interceptor.d.ts +13 -0
- package/cjs/scenegraph/graphic/contributions/draw-interceptor.js +92 -0
- package/cjs/scenegraph/graphic/contributions/draw-interceptor.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.d.ts +79 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +341 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +38 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +75 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/index.d.ts +3 -0
- package/cjs/scenegraph/graphic/contributions/index.js +46 -0
- package/cjs/scenegraph/graphic/contributions/index.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.d.ts +18 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +91 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/text-contribution-render.d.ts +12 -0
- package/cjs/scenegraph/graphic/contributions/text-contribution-render.js +72 -0
- package/cjs/scenegraph/graphic/contributions/text-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/group.d.ts +37 -0
- package/cjs/scenegraph/graphic/group.js +135 -0
- package/cjs/scenegraph/graphic/group.js.map +1 -0
- package/cjs/scenegraph/graphic/icon.d.ts +47 -0
- package/cjs/scenegraph/graphic/icon.js +78 -0
- package/cjs/scenegraph/graphic/icon.js.map +1 -0
- package/cjs/scenegraph/graphic/mark.d.ts +4 -0
- package/cjs/scenegraph/graphic/mark.js +74 -0
- package/cjs/scenegraph/graphic/mark.js.map +1 -0
- package/cjs/scenegraph/graphic/text.d.ts +2 -0
- package/cjs/scenegraph/graphic/text.js +15 -0
- package/cjs/scenegraph/graphic/text.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-helper.d.ts +16 -0
- package/cjs/scenegraph/group-creater/cell-helper.js +325 -0
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/button-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/button-cell.js +146 -0
- package/cjs/scenegraph/group-creater/cell-type/button-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.d.ts +5 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +100 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +143 -0
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +15 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js +234 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/index.d.ts +10 -0
- package/cjs/scenegraph/group-creater/cell-type/index.js +67 -0
- package/cjs/scenegraph/group-creater/cell-type/index.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +11 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +390 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/radio-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/radio-cell.js +150 -0
- package/cjs/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +5 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +201 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/switch-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/switch-cell.js +152 -0
- package/cjs/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js +66 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.d.ts +6 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js +139 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/column-helper.d.ts +14 -0
- package/cjs/scenegraph/group-creater/column-helper.js +142 -0
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -0
- package/cjs/scenegraph/group-creater/column.d.ts +4 -0
- package/cjs/scenegraph/group-creater/column.js +31 -0
- package/cjs/scenegraph/group-creater/column.js.map +1 -0
- package/cjs/scenegraph/group-creater/init-scenegraph.d.ts +2 -0
- package/cjs/scenegraph/group-creater/init-scenegraph.js +58 -0
- package/cjs/scenegraph/group-creater/init-scenegraph.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +3 -0
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +53 -0
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/default-width-height.d.ts +3 -0
- package/cjs/scenegraph/group-creater/progress/default-width-height.js +24 -0
- package/cjs/scenegraph/group-creater/progress/default-width-height.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/proxy.d.ts +79 -0
- package/cjs/scenegraph/group-creater/progress/proxy.js +341 -0
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.d.ts +4 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +173 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +4 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +190 -0
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.d.ts +2 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.js +62 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.d.ts +2 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js +75 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.d.ts +2 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.js +37 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.d.ts +2 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.js +47 -0
- package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/util.d.ts +8 -0
- package/cjs/scenegraph/group-creater/progress/update-position/util.js +98 -0
- package/cjs/scenegraph/group-creater/progress/update-position/util.js.map +1 -0
- package/cjs/scenegraph/icon/icon-update.d.ts +28 -0
- package/cjs/scenegraph/icon/icon-update.js +188 -0
- package/cjs/scenegraph/icon/icon-update.js.map +1 -0
- package/cjs/scenegraph/layout/compute-col-width.d.ts +4 -0
- package/cjs/scenegraph/layout/compute-col-width.js +344 -0
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -0
- package/cjs/scenegraph/layout/compute-row-height.d.ts +3 -0
- package/cjs/scenegraph/layout/compute-row-height.js +335 -0
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -0
- package/cjs/scenegraph/layout/frozen-react.d.ts +5 -0
- package/cjs/scenegraph/layout/frozen-react.js +91 -0
- package/cjs/scenegraph/layout/frozen-react.js.map +1 -0
- package/cjs/scenegraph/layout/frozen.d.ts +6 -0
- package/cjs/scenegraph/layout/frozen.js +330 -0
- package/cjs/scenegraph/layout/frozen.js.map +1 -0
- package/cjs/scenegraph/layout/height-util.d.ts +7 -0
- package/cjs/scenegraph/layout/height-util.js +127 -0
- package/cjs/scenegraph/layout/height-util.js.map +1 -0
- package/cjs/scenegraph/layout/move-cell.d.ts +2 -0
- package/cjs/scenegraph/layout/move-cell.js +50 -0
- package/cjs/scenegraph/layout/move-cell.js.map +1 -0
- package/cjs/scenegraph/layout/update-col.d.ts +3 -0
- package/cjs/scenegraph/layout/update-col.js +207 -0
- package/cjs/scenegraph/layout/update-col.js.map +1 -0
- package/cjs/scenegraph/layout/update-height.d.ts +6 -0
- package/cjs/scenegraph/layout/update-height.js +146 -0
- package/cjs/scenegraph/layout/update-height.js.map +1 -0
- package/cjs/scenegraph/layout/update-row.d.ts +3 -0
- package/cjs/scenegraph/layout/update-row.js +284 -0
- package/cjs/scenegraph/layout/update-row.js.map +1 -0
- package/cjs/scenegraph/layout/update-width.d.ts +2 -0
- package/cjs/scenegraph/layout/update-width.js +238 -0
- package/cjs/scenegraph/layout/update-width.js.map +1 -0
- package/cjs/scenegraph/refresh-node/update-chart.d.ts +7 -0
- package/cjs/scenegraph/refresh-node/update-chart.js +201 -0
- package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -0
- package/cjs/scenegraph/scenegraph.d.ts +182 -0
- package/cjs/scenegraph/scenegraph.js +898 -0
- package/cjs/scenegraph/scenegraph.js.map +1 -0
- package/cjs/scenegraph/select/create-select-border.d.ts +3 -0
- package/cjs/scenegraph/select/create-select-border.js +60 -0
- package/cjs/scenegraph/select/create-select-border.js.map +1 -0
- package/cjs/scenegraph/select/delete-select-border.d.ts +5 -0
- package/cjs/scenegraph/select/delete-select-border.js +37 -0
- package/cjs/scenegraph/select/delete-select-border.js.map +1 -0
- package/cjs/scenegraph/select/move-select-border.d.ts +2 -0
- package/cjs/scenegraph/select/move-select-border.js +15 -0
- package/cjs/scenegraph/select/move-select-border.js.map +1 -0
- package/cjs/scenegraph/select/update-select-border.d.ts +8 -0
- package/cjs/scenegraph/select/update-select-border.js +272 -0
- package/cjs/scenegraph/select/update-select-border.js.map +1 -0
- package/cjs/scenegraph/select/update-select-style.d.ts +3 -0
- package/cjs/scenegraph/select/update-select-style.js +13 -0
- package/cjs/scenegraph/select/update-select-style.js.map +1 -0
- package/cjs/scenegraph/stick-text/index.d.ts +3 -0
- package/cjs/scenegraph/stick-text/index.js +189 -0
- package/cjs/scenegraph/stick-text/index.js.map +1 -0
- package/cjs/scenegraph/style/corner-cell.d.ts +3 -0
- package/cjs/scenegraph/style/corner-cell.js +28 -0
- package/cjs/scenegraph/style/corner-cell.js.map +1 -0
- package/cjs/scenegraph/style/frame-border.d.ts +8 -0
- package/cjs/scenegraph/style/frame-border.js +144 -0
- package/cjs/scenegraph/style/frame-border.js.map +1 -0
- package/cjs/scenegraph/utils/border-line.d.ts +8 -0
- package/cjs/scenegraph/utils/border-line.js +51 -0
- package/cjs/scenegraph/utils/border-line.js.map +1 -0
- package/cjs/scenegraph/utils/break-string.d.ts +5 -0
- package/cjs/scenegraph/utils/break-string.js +24 -0
- package/cjs/scenegraph/utils/break-string.js.map +1 -0
- package/cjs/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
- package/cjs/scenegraph/utils/cell-border-stroke-width.js +21 -0
- package/cjs/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
- package/cjs/scenegraph/utils/cell-pos.d.ts +4 -0
- package/cjs/scenegraph/utils/cell-pos.js +18 -0
- package/cjs/scenegraph/utils/cell-pos.js.map +1 -0
- package/cjs/scenegraph/utils/deal-promise-data.d.ts +2 -0
- package/cjs/scenegraph/utils/deal-promise-data.js +12 -0
- package/cjs/scenegraph/utils/deal-promise-data.js.map +1 -0
- package/cjs/scenegraph/utils/empty-group.d.ts +2 -0
- package/cjs/scenegraph/utils/empty-group.js +10 -0
- package/cjs/scenegraph/utils/empty-group.js.map +1 -0
- package/cjs/scenegraph/utils/font.d.ts +1 -0
- package/cjs/scenegraph/utils/font.js +20 -0
- package/cjs/scenegraph/utils/font.js.map +1 -0
- package/cjs/scenegraph/utils/get-cell-merge.d.ts +3 -0
- package/cjs/scenegraph/utils/get-cell-merge.js +17 -0
- package/cjs/scenegraph/utils/get-cell-merge.js.map +1 -0
- package/cjs/scenegraph/utils/get-hierarchy-offset.d.ts +2 -0
- package/cjs/scenegraph/utils/get-hierarchy-offset.js +27 -0
- package/cjs/scenegraph/utils/get-hierarchy-offset.js.map +1 -0
- package/cjs/scenegraph/utils/get-prop.d.ts +4 -0
- package/cjs/scenegraph/utils/get-prop.js +44 -0
- package/cjs/scenegraph/utils/get-prop.js.map +1 -0
- package/cjs/scenegraph/utils/icon.d.ts +12 -0
- package/cjs/scenegraph/utils/icon.js +35 -0
- package/cjs/scenegraph/utils/icon.js.map +1 -0
- package/cjs/scenegraph/utils/is-merge-cell-group.d.ts +2 -0
- package/cjs/scenegraph/utils/is-merge-cell-group.js +16 -0
- package/cjs/scenegraph/utils/is-merge-cell-group.js.map +1 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.js +17 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
- package/cjs/scenegraph/utils/padding.d.ts +6 -0
- package/cjs/scenegraph/utils/padding.js +21 -0
- package/cjs/scenegraph/utils/padding.js.map +1 -0
- package/cjs/scenegraph/utils/render-service.d.ts +7 -0
- package/cjs/scenegraph/utils/render-service.js +27 -0
- package/cjs/scenegraph/utils/render-service.js.map +1 -0
- package/cjs/scenegraph/utils/text-icon-layout.d.ts +29 -0
- package/cjs/scenegraph/utils/text-icon-layout.js +335 -0
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -0
- package/cjs/scenegraph/utils/text-measure.d.ts +38 -0
- package/cjs/scenegraph/utils/text-measure.js +166 -0
- package/cjs/scenegraph/utils/text-measure.js.map +1 -0
- package/cjs/scenegraph/utils/text-pos.d.ts +8 -0
- package/cjs/scenegraph/utils/text-pos.js +27 -0
- package/cjs/scenegraph/utils/text-pos.js.map +1 -0
- package/cjs/scenegraph/utils/update-container.d.ts +2 -0
- package/cjs/scenegraph/utils/update-container.js +12 -0
- package/cjs/scenegraph/utils/update-container.js.map +1 -0
- package/cjs/state/cell-move/adjust-header.d.ts +3 -0
- package/cjs/state/cell-move/adjust-header.js +26 -0
- package/cjs/state/cell-move/adjust-header.js.map +1 -0
- package/cjs/state/cell-move/index.d.ts +4 -0
- package/cjs/state/cell-move/index.js +112 -0
- package/cjs/state/cell-move/index.js.map +1 -0
- package/cjs/state/checkbox/checkbox.d.ts +12 -0
- package/cjs/state/checkbox/checkbox.js +210 -0
- package/cjs/state/checkbox/checkbox.js.map +1 -0
- package/cjs/state/common/check-in-select.d.ts +7 -0
- package/cjs/state/common/check-in-select.js +63 -0
- package/cjs/state/common/check-in-select.js.map +1 -0
- package/cjs/state/drill/index.d.ts +2 -0
- package/cjs/state/drill/index.js +15 -0
- package/cjs/state/drill/index.js.map +1 -0
- package/cjs/state/frozen/index.d.ts +2 -0
- package/cjs/state/frozen/index.js +10 -0
- package/cjs/state/frozen/index.js.map +1 -0
- package/cjs/state/hover/col.d.ts +4 -0
- package/cjs/state/hover/col.js +24 -0
- package/cjs/state/hover/col.js.map +1 -0
- package/cjs/state/hover/is-cell-hover.d.ts +5 -0
- package/cjs/state/hover/is-cell-hover.js +49 -0
- package/cjs/state/hover/is-cell-hover.js.map +1 -0
- package/cjs/state/hover/row.d.ts +4 -0
- package/cjs/state/hover/row.js +22 -0
- package/cjs/state/hover/row.js.map +1 -0
- package/cjs/state/hover/single.d.ts +4 -0
- package/cjs/state/hover/single.js +18 -0
- package/cjs/state/hover/single.js.map +1 -0
- package/cjs/state/hover/update-cell.d.ts +2 -0
- package/cjs/state/hover/update-cell.js +24 -0
- package/cjs/state/hover/update-cell.js.map +1 -0
- package/cjs/state/hover/update-position.d.ts +2 -0
- package/cjs/state/hover/update-position.js +44 -0
- package/cjs/state/hover/update-position.js.map +1 -0
- package/cjs/state/radio/radio.d.ts +7 -0
- package/cjs/state/radio/radio.js +96 -0
- package/cjs/state/radio/radio.js.map +1 -0
- package/cjs/state/resize/update-resize-column.d.ts +2 -0
- package/cjs/state/resize/update-resize-column.js +85 -0
- package/cjs/state/resize/update-resize-column.js.map +1 -0
- package/cjs/state/resize/update-resize-row.d.ts +2 -0
- package/cjs/state/resize/update-resize-row.js +64 -0
- package/cjs/state/resize/update-resize-row.js.map +1 -0
- package/cjs/state/select/custom-select.d.ts +7 -0
- package/cjs/state/select/custom-select.js +36 -0
- package/cjs/state/select/custom-select.js.map +1 -0
- package/cjs/state/select/is-cell-select-highlight.d.ts +6 -0
- package/cjs/state/select/is-cell-select-highlight.js +88 -0
- package/cjs/state/select/is-cell-select-highlight.js.map +1 -0
- package/cjs/state/select/update-position.d.ts +4 -0
- package/cjs/state/select/update-position.js +308 -0
- package/cjs/state/select/update-position.js.map +1 -0
- package/cjs/state/sort/index.d.ts +2 -0
- package/cjs/state/sort/index.js +56 -0
- package/cjs/state/sort/index.js.map +1 -0
- package/cjs/state/spark-line/index.d.ts +3 -0
- package/cjs/state/spark-line/index.js +102 -0
- package/cjs/state/spark-line/index.js.map +1 -0
- package/cjs/state/state.d.ts +206 -0
- package/cjs/state/state.js +796 -0
- package/cjs/state/state.js.map +1 -0
- package/cjs/themes/ARCO.d.ts +3 -0
- package/cjs/themes/ARCO.js +113 -0
- package/cjs/themes/ARCO.js.map +1 -0
- package/cjs/themes/BRIGHT.d.ts +3 -0
- package/cjs/themes/BRIGHT.js +70 -0
- package/cjs/themes/BRIGHT.js.map +1 -0
- package/cjs/themes/DARK.d.ts +3 -0
- package/cjs/themes/DARK.js +103 -0
- package/cjs/themes/DARK.js.map +1 -0
- package/cjs/themes/DEFAULT.d.ts +3 -0
- package/cjs/themes/DEFAULT.js +86 -0
- package/cjs/themes/DEFAULT.js.map +1 -0
- package/cjs/themes/SIMPLIFY.d.ts +3 -0
- package/cjs/themes/SIMPLIFY.js +53 -0
- package/cjs/themes/SIMPLIFY.js.map +1 -0
- package/cjs/themes/component.d.ts +35 -0
- package/cjs/themes/component.js +47 -0
- package/cjs/themes/component.js.map +1 -0
- package/cjs/themes/theme.d.ts +67 -0
- package/cjs/themes/theme.js +777 -0
- package/cjs/themes/theme.js.map +1 -0
- package/cjs/themes.d.ts +28 -0
- package/cjs/themes.js +57 -0
- package/cjs/themes.js.map +1 -0
- package/cjs/tools/LimitPromiseQueue.d.ts +8 -0
- package/cjs/tools/LimitPromiseQueue.js +29 -0
- package/cjs/tools/LimitPromiseQueue.js.map +1 -0
- package/cjs/tools/NumberMap.d.ts +23 -0
- package/cjs/tools/NumberMap.js +123 -0
- package/cjs/tools/NumberMap.js.map +1 -0
- package/cjs/tools/Rect.d.ts +24 -0
- package/cjs/tools/Rect.js +70 -0
- package/cjs/tools/Rect.js.map +1 -0
- package/cjs/tools/calc.d.ts +8 -0
- package/cjs/tools/calc.js +205 -0
- package/cjs/tools/calc.js.map +1 -0
- package/cjs/tools/cell-range.d.ts +2 -0
- package/cjs/tools/cell-range.js +10 -0
- package/cjs/tools/cell-range.js.map +1 -0
- package/cjs/tools/debounce.d.ts +1 -0
- package/cjs/tools/debounce.js +51 -0
- package/cjs/tools/debounce.js.map +1 -0
- package/cjs/tools/diff-cell.d.ts +72 -0
- package/cjs/tools/diff-cell.js +170 -0
- package/cjs/tools/diff-cell.js.map +1 -0
- package/cjs/tools/dom.d.ts +1 -0
- package/cjs/tools/dom.js +11 -0
- package/cjs/tools/dom.js.map +1 -0
- package/cjs/tools/env.d.ts +19 -0
- package/cjs/tools/env.js +48 -0
- package/cjs/tools/env.js.map +1 -0
- package/cjs/tools/get-data-path/create-dataset.d.ts +11 -0
- package/cjs/tools/get-data-path/create-dataset.js +149 -0
- package/cjs/tools/get-data-path/create-dataset.js.map +1 -0
- package/cjs/tools/get-data-path/index.d.ts +2 -0
- package/cjs/tools/get-data-path/index.js +51 -0
- package/cjs/tools/get-data-path/index.js.map +1 -0
- package/cjs/tools/global.d.ts +15 -0
- package/cjs/tools/global.js +15 -0
- package/cjs/tools/global.js.map +1 -0
- package/cjs/tools/helper.d.ts +72 -0
- package/cjs/tools/helper.js +228 -0
- package/cjs/tools/helper.js.map +1 -0
- package/cjs/tools/icons.d.ts +4 -0
- package/cjs/tools/icons.js +10 -0
- package/cjs/tools/icons.js.map +1 -0
- package/cjs/tools/isx.d.ts +16 -0
- package/cjs/tools/isx.js +117 -0
- package/cjs/tools/isx.js.map +1 -0
- package/cjs/tools/join.d.ts +1 -0
- package/cjs/tools/join.js +12 -0
- package/cjs/tools/join.js.map +1 -0
- package/cjs/tools/merge-range.d.ts +11 -0
- package/cjs/tools/merge-range.js +35 -0
- package/cjs/tools/merge-range.js.map +1 -0
- package/cjs/tools/pixel-ratio.d.ts +2 -0
- package/cjs/tools/pixel-ratio.js +16 -0
- package/cjs/tools/pixel-ratio.js.map +1 -0
- package/cjs/tools/sort.d.ts +2 -0
- package/cjs/tools/sort.js +18 -0
- package/cjs/tools/sort.js.map +1 -0
- package/cjs/tools/style.d.ts +5 -0
- package/cjs/tools/style.js +30 -0
- package/cjs/tools/style.js.map +1 -0
- package/cjs/tools/update-row.d.ts +19 -0
- package/cjs/tools/update-row.js +38 -0
- package/cjs/tools/update-row.js.map +1 -0
- package/cjs/tools/util.d.ts +46 -0
- package/cjs/tools/util.js +279 -0
- package/cjs/tools/util.js.map +1 -0
- package/cjs/ts-types/animation/appear.d.ts +11 -0
- package/cjs/ts-types/animation/appear.js +6 -0
- package/cjs/ts-types/animation/appear.js.map +1 -0
- package/cjs/ts-types/animation/index.d.ts +1 -0
- package/cjs/ts-types/animation/index.js +21 -0
- package/cjs/ts-types/animation/index.js.map +1 -0
- package/cjs/ts-types/base-table.d.ts +641 -0
- package/cjs/ts-types/base-table.js +6 -0
- package/cjs/ts-types/base-table.js.map +1 -0
- package/cjs/ts-types/column/index.d.ts +2 -0
- package/cjs/ts-types/column/index.js +21 -0
- package/cjs/ts-types/column/index.js.map +1 -0
- package/cjs/ts-types/column/style.d.ts +151 -0
- package/cjs/ts-types/column/style.js +6 -0
- package/cjs/ts-types/column/style.js.map +1 -0
- package/cjs/ts-types/column/type.d.ts +2 -0
- package/cjs/ts-types/column/type.js +6 -0
- package/cjs/ts-types/column/type.js.map +1 -0
- package/cjs/ts-types/common.d.ts +114 -0
- package/cjs/ts-types/common.js +14 -0
- package/cjs/ts-types/common.js.map +1 -0
- package/cjs/ts-types/component/axis.d.ts +2 -0
- package/cjs/ts-types/component/axis.js +6 -0
- package/cjs/ts-types/component/axis.js.map +1 -0
- package/cjs/ts-types/component/empty-tip.d.ts +20 -0
- package/cjs/ts-types/component/empty-tip.js +6 -0
- package/cjs/ts-types/component/empty-tip.js.map +1 -0
- package/cjs/ts-types/component/index.d.ts +1 -0
- package/cjs/ts-types/component/index.js +21 -0
- package/cjs/ts-types/component/index.js.map +1 -0
- package/cjs/ts-types/component/legend.d.ts +18 -0
- package/cjs/ts-types/component/legend.js +6 -0
- package/cjs/ts-types/component/legend.js.map +1 -0
- package/cjs/ts-types/component/title.d.ts +49 -0
- package/cjs/ts-types/component/title.js +6 -0
- package/cjs/ts-types/component/title.js.map +1 -0
- package/cjs/ts-types/component/util.d.ts +1 -0
- package/cjs/ts-types/component/util.js +6 -0
- package/cjs/ts-types/component/util.js.map +1 -0
- package/cjs/ts-types/customElement.d.ts +128 -0
- package/cjs/ts-types/customElement.js +6 -0
- package/cjs/ts-types/customElement.js.map +1 -0
- package/cjs/ts-types/customLayout.d.ts +9 -0
- package/cjs/ts-types/customLayout.js +6 -0
- package/cjs/ts-types/customLayout.js.map +1 -0
- package/cjs/ts-types/dataset/aggregation.d.ts +192 -0
- package/cjs/ts-types/dataset/aggregation.js +423 -0
- package/cjs/ts-types/dataset/aggregation.js.map +1 -0
- package/cjs/ts-types/dataset/index.d.ts +1 -0
- package/cjs/ts-types/dataset/index.js +21 -0
- package/cjs/ts-types/dataset/index.js.map +1 -0
- package/cjs/ts-types/events.d.ts +363 -0
- package/cjs/ts-types/events.js +6 -0
- package/cjs/ts-types/events.js.map +1 -0
- package/cjs/ts-types/icon.d.ts +93 -0
- package/cjs/ts-types/icon.js +28 -0
- package/cjs/ts-types/icon.js.map +1 -0
- package/cjs/ts-types/index.d.ts +17 -0
- package/cjs/ts-types/index.js +29 -0
- package/cjs/ts-types/index.js.map +1 -0
- package/cjs/ts-types/list-table/define/basic-define.d.ts +50 -0
- package/cjs/ts-types/list-table/define/basic-define.js +6 -0
- package/cjs/ts-types/list-table/define/basic-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/button-define.d.ts +9 -0
- package/cjs/ts-types/list-table/define/button-define.js +6 -0
- package/cjs/ts-types/list-table/define/button-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/chart-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/chart-define.js +6 -0
- package/cjs/ts-types/list-table/define/chart-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/checkbox-define.d.ts +15 -0
- package/cjs/ts-types/list-table/define/checkbox-define.js +6 -0
- package/cjs/ts-types/list-table/define/checkbox-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/composite-define.d.ts +26 -0
- package/cjs/ts-types/list-table/define/composite-define.js +6 -0
- package/cjs/ts-types/list-table/define/composite-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/image-define.d.ts +17 -0
- package/cjs/ts-types/list-table/define/image-define.js +6 -0
- package/cjs/ts-types/list-table/define/image-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/index.d.ts +31 -0
- package/cjs/ts-types/list-table/define/index.js +6 -0
- package/cjs/ts-types/list-table/define/index.js.map +1 -0
- package/cjs/ts-types/list-table/define/link-define.d.ts +22 -0
- package/cjs/ts-types/list-table/define/link-define.js +6 -0
- package/cjs/ts-types/list-table/define/link-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.js +6 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/progressbar-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/progressbar-define.js +6 -0
- package/cjs/ts-types/list-table/define/progressbar-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/radio-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/radio-define.js +6 -0
- package/cjs/ts-types/list-table/define/radio-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/sparkline-define.d.ts +10 -0
- package/cjs/ts-types/list-table/define/sparkline-define.js +6 -0
- package/cjs/ts-types/list-table/define/sparkline-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/switch-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/switch-define.js +6 -0
- package/cjs/ts-types/list-table/define/switch-define.js.map +1 -0
- package/cjs/ts-types/list-table/index.d.ts +2 -0
- package/cjs/ts-types/list-table/index.js +21 -0
- package/cjs/ts-types/list-table/index.js.map +1 -0
- package/cjs/ts-types/list-table/layout-map/api.d.ts +126 -0
- package/cjs/ts-types/list-table/layout-map/api.js +6 -0
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -0
- package/cjs/ts-types/list-table/layout-map/index.d.ts +1 -0
- package/cjs/ts-types/list-table/layout-map/index.js +6 -0
- package/cjs/ts-types/list-table/layout-map/index.js.map +1 -0
- package/cjs/ts-types/menu.d.ts +74 -0
- package/cjs/ts-types/menu.js +6 -0
- package/cjs/ts-types/menu.js.map +1 -0
- package/cjs/ts-types/new-data-set.d.ts +158 -0
- package/cjs/ts-types/new-data-set.js +16 -0
- package/cjs/ts-types/new-data-set.js.map +1 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +10 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +15 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
- package/cjs/ts-types/pivot-table/corner.d.ts +37 -0
- package/cjs/ts-types/pivot-table/corner.js +6 -0
- package/cjs/ts-types/pivot-table/corner.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.d.ts +43 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.d.ts +10 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/index.d.ts +6 -0
- package/cjs/ts-types/pivot-table/dimension/index.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.d.ts +13 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/index.d.ts +4 -0
- package/cjs/ts-types/pivot-table/index.js +22 -0
- package/cjs/ts-types/pivot-table/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.d.ts +51 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.d.ts +11 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.d.ts +9 -0
- package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.d.ts +24 -0
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +17 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/index.d.ts +12 -0
- package/cjs/ts-types/pivot-table/indicator/index.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +22 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/title.d.ts +20 -0
- package/cjs/ts-types/pivot-table/title.js +6 -0
- package/cjs/ts-types/pivot-table/title.js.map +1 -0
- package/cjs/ts-types/sparkline.d.ts +37 -0
- package/cjs/ts-types/sparkline.js +6 -0
- package/cjs/ts-types/sparkline.js.map +1 -0
- package/cjs/ts-types/style-define.d.ts +72 -0
- package/cjs/ts-types/style-define.js +6 -0
- package/cjs/ts-types/style-define.js.map +1 -0
- package/cjs/ts-types/table-engine.d.ts +405 -0
- package/cjs/ts-types/table-engine.js +13 -0
- package/cjs/ts-types/table-engine.js.map +1 -0
- package/cjs/ts-types/theme.d.ts +164 -0
- package/cjs/ts-types/theme.js +6 -0
- package/cjs/ts-types/theme.js.map +1 -0
- package/cjs/ts-types/tooltip.d.ts +26 -0
- package/cjs/ts-types/tooltip.js +6 -0
- package/cjs/ts-types/tooltip.js.map +1 -0
- package/cjs/vrender.d.ts +8 -0
- package/cjs/vrender.js +61 -0
- package/cjs/vrender.js.map +1 -0
- package/dist/vtable.js +83482 -0
- package/dist/vtable.min.js +15 -0
- package/es/ListTable-all.d.ts +3 -0
- package/es/ListTable-all.js +17 -0
- package/es/ListTable-all.js.map +1 -0
- package/es/ListTable-simple.d.ts +3 -0
- package/es/ListTable-simple.js +8 -0
- package/es/ListTable-simple.js.map +1 -0
- package/es/ListTable.d.ts +101 -0
- package/es/ListTable.js +675 -0
- package/es/ListTable.js.map +1 -0
- package/es/PivotChart.d.ts +100 -0
- package/es/PivotChart.js +773 -0
- package/es/PivotChart.js.map +1 -0
- package/es/PivotTable-all.d.ts +3 -0
- package/es/PivotTable-all.js +13 -0
- package/es/PivotTable-all.js.map +1 -0
- package/es/PivotTable-simple.d.ts +3 -0
- package/es/PivotTable-simple.js +8 -0
- package/es/PivotTable-simple.js.map +1 -0
- package/es/PivotTable.d.ts +112 -0
- package/es/PivotTable.js +985 -0
- package/es/PivotTable.js.map +1 -0
- package/es/body-helper/body-helper.d.ts +20 -0
- package/es/body-helper/body-helper.js +112 -0
- package/es/body-helper/body-helper.js.map +1 -0
- package/es/body-helper/style/ButtonStyle.d.ts +45 -0
- package/es/body-helper/style/ButtonStyle.js +102 -0
- package/es/body-helper/style/ButtonStyle.js.map +1 -0
- package/es/body-helper/style/CheckboxStyle.d.ts +42 -0
- package/es/body-helper/style/CheckboxStyle.js +96 -0
- package/es/body-helper/style/CheckboxStyle.js.map +1 -0
- package/es/body-helper/style/ImageStyle.d.ts +7 -0
- package/es/body-helper/style/ImageStyle.js +16 -0
- package/es/body-helper/style/ImageStyle.js.map +1 -0
- package/es/body-helper/style/MultilineTextStyle.d.ts +13 -0
- package/es/body-helper/style/MultilineTextStyle.js +30 -0
- package/es/body-helper/style/MultilineTextStyle.js.map +1 -0
- package/es/body-helper/style/NumberStyle.d.ts +7 -0
- package/es/body-helper/style/NumberStyle.js +16 -0
- package/es/body-helper/style/NumberStyle.js.map +1 -0
- package/es/body-helper/style/ProgressBarStyle.d.ts +55 -0
- package/es/body-helper/style/ProgressBarStyle.js +131 -0
- package/es/body-helper/style/ProgressBarStyle.js.map +1 -0
- package/es/body-helper/style/RadioStyle.d.ts +45 -0
- package/es/body-helper/style/RadioStyle.js +103 -0
- package/es/body-helper/style/RadioStyle.js.map +1 -0
- package/es/body-helper/style/Style.d.ts +95 -0
- package/es/body-helper/style/Style.js +219 -0
- package/es/body-helper/style/Style.js.map +1 -0
- package/es/body-helper/style/SwitchStyle.d.ts +36 -0
- package/es/body-helper/style/SwitchStyle.js +82 -0
- package/es/body-helper/style/SwitchStyle.js.map +1 -0
- package/es/body-helper/style.d.ts +11 -0
- package/es/body-helper/style.js +28 -0
- package/es/body-helper/style.js.map +1 -0
- package/es/chartModule.d.ts +3 -0
- package/es/chartModule.js +10 -0
- package/es/chartModule.js.map +1 -0
- package/es/components/axis/axis.d.ts +52 -0
- package/es/components/axis/axis.js +198 -0
- package/es/components/axis/axis.js.map +1 -0
- package/es/components/axis/band-scale.d.ts +18 -0
- package/es/components/axis/band-scale.js +46 -0
- package/es/components/axis/band-scale.js.map +1 -0
- package/es/components/axis/get-axis-attributes.d.ts +146 -0
- package/es/components/axis/get-axis-attributes.js +200 -0
- package/es/components/axis/get-axis-attributes.js.map +1 -0
- package/es/components/axis/get-axis-component-size.d.ts +6 -0
- package/es/components/axis/get-axis-component-size.js +128 -0
- package/es/components/axis/get-axis-component-size.js.map +1 -0
- package/es/components/axis/label-overlap.d.ts +3 -0
- package/es/components/axis/label-overlap.js +57 -0
- package/es/components/axis/label-overlap.js.map +1 -0
- package/es/components/axis/linear-scale.d.ts +48 -0
- package/es/components/axis/linear-scale.js +115 -0
- package/es/components/axis/linear-scale.js.map +1 -0
- package/es/components/empty-tip/empty-tip.d.ts +25 -0
- package/es/components/empty-tip/empty-tip.js +98 -0
- package/es/components/empty-tip/empty-tip.js.map +1 -0
- package/es/components/index.d.ts +6 -0
- package/es/components/index.js +44 -0
- package/es/components/index.js.map +1 -0
- package/es/components/legend/continue-legend/continue-legend.d.ts +24 -0
- package/es/components/legend/continue-legend/continue-legend.js +96 -0
- package/es/components/legend/continue-legend/continue-legend.js.map +1 -0
- package/es/components/legend/continue-legend/get-continue-legend-attributes.d.ts +5 -0
- package/es/components/legend/continue-legend/get-continue-legend-attributes.js +132 -0
- package/es/components/legend/continue-legend/get-continue-legend-attributes.js.map +1 -0
- package/es/components/legend/create-legend.d.ts +6 -0
- package/es/components/legend/create-legend.js +8 -0
- package/es/components/legend/create-legend.js.map +1 -0
- package/es/components/legend/discrete-legend/discrete-legend.d.ts +25 -0
- package/es/components/legend/discrete-legend/discrete-legend.js +112 -0
- package/es/components/legend/discrete-legend/discrete-legend.js.map +1 -0
- package/es/components/legend/discrete-legend/get-discrete-legend-attributes.d.ts +5 -0
- package/es/components/legend/discrete-legend/get-discrete-legend-attributes.js +84 -0
- package/es/components/legend/discrete-legend/get-discrete-legend-attributes.js.map +1 -0
- package/es/components/menu/dom/BaseMenu.d.ts +16 -0
- package/es/components/menu/dom/BaseMenu.js +25 -0
- package/es/components/menu/dom/BaseMenu.js.map +1 -0
- package/es/components/menu/dom/Menu.d.ts +9 -0
- package/es/components/menu/dom/Menu.js +18 -0
- package/es/components/menu/dom/Menu.js.map +1 -0
- package/es/components/menu/dom/MenuHandler.d.ts +24 -0
- package/es/components/menu/dom/MenuHandler.js +146 -0
- package/es/components/menu/dom/MenuHandler.js.map +1 -0
- package/es/components/menu/dom/logic/MenuContainer.d.ts +21 -0
- package/es/components/menu/dom/logic/MenuContainer.js +102 -0
- package/es/components/menu/dom/logic/MenuContainer.js.map +1 -0
- package/es/components/menu/dom/logic/MenuElement.d.ts +26 -0
- package/es/components/menu/dom/logic/MenuElement.js +288 -0
- package/es/components/menu/dom/logic/MenuElement.js.map +1 -0
- package/es/components/menu/dom/logic/MenuElementStyle.d.ts +1 -0
- package/es/components/menu/dom/logic/MenuElementStyle.js +9 -0
- package/es/components/menu/dom/logic/MenuElementStyle.js.map +1 -0
- package/es/components/react/react-custom-layout.d.ts +27 -0
- package/es/components/react/react-custom-layout.js +169 -0
- package/es/components/react/react-custom-layout.js.map +1 -0
- package/es/components/title/title.d.ts +21 -0
- package/es/components/title/title.js +84 -0
- package/es/components/title/title.js.map +1 -0
- package/es/components/tooltip/BaseTooltip.d.ts +22 -0
- package/es/components/tooltip/BaseTooltip.js +27 -0
- package/es/components/tooltip/BaseTooltip.js.map +1 -0
- package/es/components/tooltip/Tooltip.d.ts +5 -0
- package/es/components/tooltip/Tooltip.js +10 -0
- package/es/components/tooltip/Tooltip.js.map +1 -0
- package/es/components/tooltip/TooltipHandler.d.ts +31 -0
- package/es/components/tooltip/TooltipHandler.js +134 -0
- package/es/components/tooltip/TooltipHandler.js.map +1 -0
- package/es/components/tooltip/logic/BubbleTooltipElement.d.ts +34 -0
- package/es/components/tooltip/logic/BubbleTooltipElement.js +162 -0
- package/es/components/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.d.ts +1 -0
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.js +9 -0
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
- package/es/components/util/orient.d.ts +3 -0
- package/es/components/util/orient.js +8 -0
- package/es/components/util/orient.js.map +1 -0
- package/es/components/util/register.d.ts +3 -0
- package/es/components/util/register.js +8 -0
- package/es/components/util/register.js.map +1 -0
- package/es/components/util/transform.d.ts +5 -0
- package/es/components/util/transform.js +34 -0
- package/es/components/util/transform.js.map +1 -0
- package/es/core/BaseTable.d.ts +436 -0
- package/es/core/BaseTable.js +1900 -0
- package/es/core/BaseTable.js.map +1 -0
- package/es/core/FouseInput.d.ts +12 -0
- package/es/core/FouseInput.js +33 -0
- package/es/core/FouseInput.js.map +1 -0
- package/es/core/TABLE_EVENT_TYPE.d.ts +61 -0
- package/es/core/TABLE_EVENT_TYPE.js +61 -0
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -0
- package/es/core/animation.d.ts +17 -0
- package/es/core/animation.js +54 -0
- package/es/core/animation.js.map +1 -0
- package/es/core/factory.d.ts +11 -0
- package/es/core/factory.js +23 -0
- package/es/core/factory.js.map +1 -0
- package/es/core/group-helper.d.ts +6 -0
- package/es/core/group-helper.js +14 -0
- package/es/core/group-helper.js.map +1 -0
- package/es/core/record-helper.d.ts +8 -0
- package/es/core/record-helper.js +425 -0
- package/es/core/record-helper.js.map +1 -0
- package/es/core/row-series-number-helper.d.ts +8 -0
- package/es/core/row-series-number-helper.js +15 -0
- package/es/core/row-series-number-helper.js.map +1 -0
- package/es/core/style-helper.d.ts +3 -0
- package/es/core/style-helper.js +86 -0
- package/es/core/style-helper.js.map +1 -0
- package/es/core/style.d.ts +1 -0
- package/es/core/style.js +9 -0
- package/es/core/style.js.map +1 -0
- package/es/core/tableHelper.d.ts +45 -0
- package/es/core/tableHelper.js +253 -0
- package/es/core/tableHelper.js.map +1 -0
- package/es/core/utils/get-cell-position.d.ts +12 -0
- package/es/core/utils/get-cell-position.js +202 -0
- package/es/core/utils/get-cell-position.js.map +1 -0
- package/es/core/utils/get-custom-merge-cell-func.d.ts +2 -0
- package/es/core/utils/get-custom-merge-cell-func.js +6 -0
- package/es/core/utils/get-custom-merge-cell-func.js.map +1 -0
- package/es/core.d.ts +3 -0
- package/es/core.js +4 -0
- package/es/core.js.map +1 -0
- package/es/data/CachedDataSource.d.ts +36 -0
- package/es/data/CachedDataSource.js +249 -0
- package/es/data/CachedDataSource.js.map +1 -0
- package/es/data/DataSource.d.ts +129 -0
- package/es/data/DataSource.js +732 -0
- package/es/data/DataSource.js.map +1 -0
- package/es/data.d.ts +4 -0
- package/es/data.js +6 -0
- package/es/data.js.map +1 -0
- package/es/dataset/DataStatistics.d.ts +10 -0
- package/es/dataset/DataStatistics.js +74 -0
- package/es/dataset/DataStatistics.js.map +1 -0
- package/es/dataset/dataset-pivot-table.d.ts +60 -0
- package/es/dataset/dataset-pivot-table.js +340 -0
- package/es/dataset/dataset-pivot-table.js.map +1 -0
- package/es/dataset/dataset.d.ts +108 -0
- package/es/dataset/dataset.js +803 -0
- package/es/dataset/dataset.js.map +1 -0
- package/es/dataset/flatDataToObject.d.ts +46 -0
- package/es/dataset/flatDataToObject.js +124 -0
- package/es/dataset/flatDataToObject.js.map +1 -0
- package/es/edit/edit-manager.d.ts +19 -0
- package/es/edit/edit-manager.js +121 -0
- package/es/edit/edit-manager.js.map +1 -0
- package/es/edit/editors.d.ts +5 -0
- package/es/edit/editors.js +6 -0
- package/es/edit/editors.js.map +1 -0
- package/es/event/EventHandler.d.ts +47 -0
- package/es/event/EventHandler.js +119 -0
- package/es/event/EventHandler.js.map +1 -0
- package/es/event/EventTarget.d.ts +12 -0
- package/es/event/EventTarget.js +58 -0
- package/es/event/EventTarget.js.map +1 -0
- package/es/event/component/button.d.ts +2 -0
- package/es/event/component/button.js +13 -0
- package/es/event/component/button.js.map +1 -0
- package/es/event/drill.d.ts +5 -0
- package/es/event/drill.js +32 -0
- package/es/event/drill.js.map +1 -0
- package/es/event/event.d.ts +63 -0
- package/es/event/event.js +240 -0
- package/es/event/event.js.map +1 -0
- package/es/event/helper.d.ts +2 -0
- package/es/event/helper.js +27 -0
- package/es/event/helper.js.map +1 -0
- package/es/event/listener/container-dom.d.ts +2 -0
- package/es/event/listener/container-dom.js +348 -0
- package/es/event/listener/container-dom.js.map +1 -0
- package/es/event/listener/scroll-bar.d.ts +2 -0
- package/es/event/listener/scroll-bar.js +75 -0
- package/es/event/listener/scroll-bar.js.map +1 -0
- package/es/event/listener/table-group.d.ts +6 -0
- package/es/event/listener/table-group.js +522 -0
- package/es/event/listener/table-group.js.map +1 -0
- package/es/event/listener/touch.d.ts +2 -0
- package/es/event/listener/touch.js +76 -0
- package/es/event/listener/touch.js.map +1 -0
- package/es/event/media-click.d.ts +2 -0
- package/es/event/media-click.js +85 -0
- package/es/event/media-click.js.map +1 -0
- package/es/event/scroll.d.ts +20 -0
- package/es/event/scroll.js +81 -0
- package/es/event/scroll.js.map +1 -0
- package/es/event/self-event-listener/base-table/dbclick-auto-column-width.d.ts +2 -0
- package/es/event/self-event-listener/base-table/dbclick-auto-column-width.js +25 -0
- package/es/event/self-event-listener/base-table/dbclick-auto-column-width.js.map +1 -0
- package/es/event/self-event-listener/base-table/dropdown-menu.d.ts +2 -0
- package/es/event/self-event-listener/base-table/dropdown-menu.js +8 -0
- package/es/event/self-event-listener/base-table/dropdown-menu.js.map +1 -0
- package/es/event/self-event-listener/base-table/icon.d.ts +2 -0
- package/es/event/self-event-listener/base-table/icon.js +18 -0
- package/es/event/self-event-listener/base-table/icon.js.map +1 -0
- package/es/event/self-event-listener/base-table/right-button-click.d.ts +2 -0
- package/es/event/self-event-listener/base-table/right-button-click.js +17 -0
- package/es/event/self-event-listener/base-table/right-button-click.js.map +1 -0
- package/es/event/self-event-listener/list-table/checkbox.d.ts +3 -0
- package/es/event/self-event-listener/list-table/checkbox.js +117 -0
- package/es/event/self-event-listener/list-table/checkbox.js.map +1 -0
- package/es/event/self-event-listener/pivot-chart/axis-click.d.ts +2 -0
- package/es/event/self-event-listener/pivot-chart/axis-click.js +37 -0
- package/es/event/self-event-listener/pivot-chart/axis-click.js.map +1 -0
- package/es/event/self-event-listener/pivot-chart/axis-hover.d.ts +2 -0
- package/es/event/self-event-listener/pivot-chart/axis-hover.js +33 -0
- package/es/event/self-event-listener/pivot-chart/axis-hover.js.map +1 -0
- package/es/event/self-event-listener/pivot-table/drill.d.ts +1 -0
- package/es/event/self-event-listener/pivot-table/drill.js +3 -0
- package/es/event/self-event-listener/pivot-table/drill.js.map +1 -0
- package/es/event/sparkline-event.d.ts +2 -0
- package/es/event/sparkline-event.js +19 -0
- package/es/event/sparkline-event.js.map +1 -0
- package/es/event/util.d.ts +20 -0
- package/es/event/util.js +38 -0
- package/es/event/util.js.map +1 -0
- package/es/header-helper/header-helper.d.ts +29 -0
- package/es/header-helper/header-helper.js +252 -0
- package/es/header-helper/header-helper.js.map +1 -0
- package/es/header-helper/style/CheckboxStyle.d.ts +42 -0
- package/es/header-helper/style/CheckboxStyle.js +96 -0
- package/es/header-helper/style/CheckboxStyle.js.map +1 -0
- package/es/header-helper/style/ImageStyle.d.ts +7 -0
- package/es/header-helper/style/ImageStyle.js +17 -0
- package/es/header-helper/style/ImageStyle.js.map +1 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.js +30 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
- package/es/header-helper/style/SortHeaderStyle.d.ts +1 -0
- package/es/header-helper/style/SortHeaderStyle.js +3 -0
- package/es/header-helper/style/SortHeaderStyle.js.map +1 -0
- package/es/header-helper/style/Style.d.ts +95 -0
- package/es/header-helper/style/Style.js +220 -0
- package/es/header-helper/style/Style.js.map +1 -0
- package/es/header-helper/style.d.ts +6 -0
- package/es/header-helper/style.js +17 -0
- package/es/header-helper/style.js.map +1 -0
- package/es/icons.d.ts +5 -0
- package/es/icons.js +295 -0
- package/es/icons.js.map +1 -0
- package/es/index.d.ts +33 -0
- package/es/index.js +68 -0
- package/es/index.js.map +1 -0
- package/es/layout/cell-range/simple-cell-range.d.ts +4 -0
- package/es/layout/cell-range/simple-cell-range.js +141 -0
- package/es/layout/cell-range/simple-cell-range.js.map +1 -0
- package/es/layout/chart-helper/get-axis-config.d.ts +39 -0
- package/es/layout/chart-helper/get-axis-config.js +391 -0
- package/es/layout/chart-helper/get-axis-config.js.map +1 -0
- package/es/layout/chart-helper/get-axis-domain.d.ts +11 -0
- package/es/layout/chart-helper/get-axis-domain.js +44 -0
- package/es/layout/chart-helper/get-axis-domain.js.map +1 -0
- package/es/layout/chart-helper/get-chart-spec.d.ts +13 -0
- package/es/layout/chart-helper/get-chart-spec.js +281 -0
- package/es/layout/chart-helper/get-chart-spec.js.map +1 -0
- package/es/layout/chart-helper/tick-align.d.ts +12 -0
- package/es/layout/chart-helper/tick-align.js +16 -0
- package/es/layout/chart-helper/tick-align.js.map +1 -0
- package/es/layout/chart-helper/zero-align.d.ts +10 -0
- package/es/layout/chart-helper/zero-align.js +111 -0
- package/es/layout/chart-helper/zero-align.js.map +1 -0
- package/es/layout/index.d.ts +1 -0
- package/es/layout/index.js +1 -0
- package/es/layout/index.js.map +1 -0
- package/es/layout/layout-helper.d.ts +20 -0
- package/es/layout/layout-helper.js +146 -0
- package/es/layout/layout-helper.js.map +1 -0
- package/es/layout/pivot-header-layout.d.ts +279 -0
- package/es/layout/pivot-header-layout.js +1832 -0
- package/es/layout/pivot-header-layout.js.map +1 -0
- package/es/layout/pivot-layout.d.ts +1 -0
- package/es/layout/pivot-layout.js +1 -0
- package/es/layout/pivot-layout.js.map +1 -0
- package/es/layout/row-height-map.d.ts +34 -0
- package/es/layout/row-height-map.js +168 -0
- package/es/layout/row-height-map.js.map +1 -0
- package/es/layout/simple-header-layout.d.ts +153 -0
- package/es/layout/simple-header-layout.js +780 -0
- package/es/layout/simple-header-layout.js.map +1 -0
- package/es/layout/tree-helper.d.ts +71 -0
- package/es/layout/tree-helper.js +401 -0
- package/es/layout/tree-helper.js.map +1 -0
- package/es/plugins/chartModules.d.ts +3 -0
- package/es/plugins/chartModules.js +2 -0
- package/es/plugins/chartModules.js.map +1 -0
- package/es/plugins/custom-cell-style.d.ts +26 -0
- package/es/plugins/custom-cell-style.js +107 -0
- package/es/plugins/custom-cell-style.js.map +1 -0
- package/es/plugins/icons.d.ts +12 -0
- package/es/plugins/icons.js +22 -0
- package/es/plugins/icons.js.map +1 -0
- package/es/plugins/invert-highlight.d.ts +1 -0
- package/es/plugins/invert-highlight.js +14 -0
- package/es/plugins/invert-highlight.js.map +1 -0
- package/es/plugins/list-tree-stick-cell.d.ts +18 -0
- package/es/plugins/list-tree-stick-cell.js +178 -0
- package/es/plugins/list-tree-stick-cell.js.map +1 -0
- package/es/plugins/themes.d.ts +4 -0
- package/es/plugins/themes.js +2 -0
- package/es/plugins/themes.js.map +1 -0
- package/es/register.d.ts +15 -0
- package/es/register.js +44 -0
- package/es/register.js.map +1 -0
- package/es/render/jsx/index.d.ts +8 -0
- package/es/render/jsx/index.js +16 -0
- package/es/render/jsx/index.js.map +1 -0
- package/es/render/layout/arc.d.ts +12 -0
- package/es/render/layout/arc.js +12 -0
- package/es/render/layout/arc.js.map +1 -0
- package/es/render/layout/circle.d.ts +12 -0
- package/es/render/layout/circle.js +12 -0
- package/es/render/layout/circle.js.map +1 -0
- package/es/render/layout/container.d.ts +14 -0
- package/es/render/layout/container.js +21 -0
- package/es/render/layout/container.js.map +1 -0
- package/es/render/layout/direction.d.ts +22 -0
- package/es/render/layout/direction.js +31 -0
- package/es/render/layout/direction.js.map +1 -0
- package/es/render/layout/element.d.ts +43 -0
- package/es/render/layout/element.js +19 -0
- package/es/render/layout/element.js.map +1 -0
- package/es/render/layout/group-element.d.ts +5 -0
- package/es/render/layout/group-element.js +8 -0
- package/es/render/layout/group-element.js.map +1 -0
- package/es/render/layout/group.d.ts +12 -0
- package/es/render/layout/group.js +12 -0
- package/es/render/layout/group.js.map +1 -0
- package/es/render/layout/icon.d.ts +21 -0
- package/es/render/layout/icon.js +21 -0
- package/es/render/layout/icon.js.map +1 -0
- package/es/render/layout/image.d.ts +14 -0
- package/es/render/layout/image.js +13 -0
- package/es/render/layout/image.js.map +1 -0
- package/es/render/layout/index.d.ts +13 -0
- package/es/render/layout/index.js +26 -0
- package/es/render/layout/index.js.map +1 -0
- package/es/render/layout/line.d.ts +1 -0
- package/es/render/layout/line.js +2 -0
- package/es/render/layout/line.js.map +1 -0
- package/es/render/layout/percent-calc.d.ts +5 -0
- package/es/render/layout/percent-calc.js +7 -0
- package/es/render/layout/percent-calc.js.map +1 -0
- package/es/render/layout/rect.d.ts +12 -0
- package/es/render/layout/rect.js +12 -0
- package/es/render/layout/rect.js.map +1 -0
- package/es/render/layout/tag.d.ts +14 -0
- package/es/render/layout/tag.js +15 -0
- package/es/render/layout/tag.js.map +1 -0
- package/es/render/layout/text.d.ts +13 -0
- package/es/render/layout/text.js +17 -0
- package/es/render/layout/text.js.map +1 -0
- package/es/scenegraph/animation/appear.d.ts +2 -0
- package/es/scenegraph/animation/appear.js +20 -0
- package/es/scenegraph/animation/appear.js.map +1 -0
- package/es/scenegraph/component/cell-content.d.ts +36 -0
- package/es/scenegraph/component/cell-content.js +105 -0
- package/es/scenegraph/component/cell-content.js.map +1 -0
- package/es/scenegraph/component/cell-mover.d.ts +21 -0
- package/es/scenegraph/component/cell-mover.js +113 -0
- package/es/scenegraph/component/cell-mover.js.map +1 -0
- package/es/scenegraph/component/custom.d.ts +16 -0
- package/es/scenegraph/component/custom.js +311 -0
- package/es/scenegraph/component/custom.js.map +1 -0
- package/es/scenegraph/component/drill-icon.d.ts +9 -0
- package/es/scenegraph/component/drill-icon.js +41 -0
- package/es/scenegraph/component/drill-icon.js.map +1 -0
- package/es/scenegraph/component/menu.d.ts +41 -0
- package/es/scenegraph/component/menu.js +215 -0
- package/es/scenegraph/component/menu.js.map +1 -0
- package/es/scenegraph/component/table-component.d.ts +52 -0
- package/es/scenegraph/component/table-component.js +564 -0
- package/es/scenegraph/component/table-component.js.map +1 -0
- package/es/scenegraph/component/util.d.ts +3 -0
- package/es/scenegraph/component/util.js +12 -0
- package/es/scenegraph/component/util.js.map +1 -0
- package/es/scenegraph/debug-tool/debug-tool.d.ts +34 -0
- package/es/scenegraph/debug-tool/debug-tool.js +113 -0
- package/es/scenegraph/debug-tool/debug-tool.js.map +1 -0
- package/es/scenegraph/debug-tool/index.d.ts +4 -0
- package/es/scenegraph/debug-tool/index.js +6 -0
- package/es/scenegraph/debug-tool/index.js.map +1 -0
- package/es/scenegraph/graphic/chart.d.ts +47 -0
- package/es/scenegraph/graphic/chart.js +123 -0
- package/es/scenegraph/graphic/chart.js.map +1 -0
- package/es/scenegraph/graphic/contributions/chart-render-helper.d.ts +11 -0
- package/es/scenegraph/graphic/contributions/chart-render-helper.js +159 -0
- package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -0
- package/es/scenegraph/graphic/contributions/chart-render.d.ts +11 -0
- package/es/scenegraph/graphic/contributions/chart-render.js +76 -0
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/draw-interceptor.d.ts +13 -0
- package/es/scenegraph/graphic/contributions/draw-interceptor.js +66 -0
- package/es/scenegraph/graphic/contributions/draw-interceptor.js.map +1 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.d.ts +79 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.js +346 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +38 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.js +69 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/index.d.ts +3 -0
- package/es/scenegraph/graphic/contributions/index.js +38 -0
- package/es/scenegraph/graphic/contributions/index.js.map +1 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.d.ts +18 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js +90 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/text-contribution-render.d.ts +12 -0
- package/es/scenegraph/graphic/contributions/text-contribution-render.js +69 -0
- package/es/scenegraph/graphic/contributions/text-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/group.d.ts +37 -0
- package/es/scenegraph/graphic/group.js +127 -0
- package/es/scenegraph/graphic/group.js.map +1 -0
- package/es/scenegraph/graphic/icon.d.ts +47 -0
- package/es/scenegraph/graphic/icon.js +70 -0
- package/es/scenegraph/graphic/icon.js.map +1 -0
- package/es/scenegraph/graphic/mark.d.ts +4 -0
- package/es/scenegraph/graphic/mark.js +66 -0
- package/es/scenegraph/graphic/mark.js.map +1 -0
- package/es/scenegraph/graphic/text.d.ts +2 -0
- package/es/scenegraph/graphic/text.js +2 -0
- package/es/scenegraph/graphic/text.js.map +1 -0
- package/es/scenegraph/group-creater/cell-helper.d.ts +16 -0
- package/es/scenegraph/group-creater/cell-helper.js +325 -0
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/button-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/button-cell.js +137 -0
- package/es/scenegraph/group-creater/cell-type/button-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.d.ts +5 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.js +76 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +138 -0
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +15 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.js +206 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/index.d.ts +10 -0
- package/es/scenegraph/group-creater/cell-type/index.js +64 -0
- package/es/scenegraph/group-creater/cell-type/index.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +11 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +389 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/radio-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/radio-cell.js +143 -0
- package/es/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +5 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +202 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/switch-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/switch-cell.js +150 -0
- package/es/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.js +66 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.d.ts +6 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.js +127 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
- package/es/scenegraph/group-creater/column-helper.d.ts +14 -0
- package/es/scenegraph/group-creater/column-helper.js +141 -0
- package/es/scenegraph/group-creater/column-helper.js.map +1 -0
- package/es/scenegraph/group-creater/column.d.ts +4 -0
- package/es/scenegraph/group-creater/column.js +26 -0
- package/es/scenegraph/group-creater/column.js.map +1 -0
- package/es/scenegraph/group-creater/init-scenegraph.d.ts +2 -0
- package/es/scenegraph/group-creater/init-scenegraph.js +50 -0
- package/es/scenegraph/group-creater/init-scenegraph.js.map +1 -0
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +3 -0
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +46 -0
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -0
- package/es/scenegraph/group-creater/progress/default-width-height.d.ts +3 -0
- package/es/scenegraph/group-creater/progress/default-width-height.js +18 -0
- package/es/scenegraph/group-creater/progress/default-width-height.js.map +1 -0
- package/es/scenegraph/group-creater/progress/proxy.d.ts +79 -0
- package/es/scenegraph/group-creater/progress/proxy.js +357 -0
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.d.ts +4 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +168 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +4 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +185 -0
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.d.ts +2 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.js +56 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-vertical.d.ts +2 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js +70 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-column.d.ts +2 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-column.js +29 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-column.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-row.d.ts +2 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-row.js +39 -0
- package/es/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/util.d.ts +8 -0
- package/es/scenegraph/group-creater/progress/update-position/util.js +88 -0
- package/es/scenegraph/group-creater/progress/update-position/util.js.map +1 -0
- package/es/scenegraph/icon/icon-update.d.ts +28 -0
- package/es/scenegraph/icon/icon-update.js +178 -0
- package/es/scenegraph/icon/icon-update.js.map +1 -0
- package/es/scenegraph/layout/compute-col-width.d.ts +4 -0
- package/es/scenegraph/layout/compute-col-width.js +320 -0
- package/es/scenegraph/layout/compute-col-width.js.map +1 -0
- package/es/scenegraph/layout/compute-row-height.d.ts +3 -0
- package/es/scenegraph/layout/compute-row-height.js +340 -0
- package/es/scenegraph/layout/compute-row-height.js.map +1 -0
- package/es/scenegraph/layout/frozen-react.d.ts +5 -0
- package/es/scenegraph/layout/frozen-react.js +82 -0
- package/es/scenegraph/layout/frozen-react.js.map +1 -0
- package/es/scenegraph/layout/frozen.d.ts +6 -0
- package/es/scenegraph/layout/frozen.js +328 -0
- package/es/scenegraph/layout/frozen.js.map +1 -0
- package/es/scenegraph/layout/height-util.d.ts +7 -0
- package/es/scenegraph/layout/height-util.js +118 -0
- package/es/scenegraph/layout/height-util.js.map +1 -0
- package/es/scenegraph/layout/move-cell.d.ts +2 -0
- package/es/scenegraph/layout/move-cell.js +44 -0
- package/es/scenegraph/layout/move-cell.js.map +1 -0
- package/es/scenegraph/layout/update-col.d.ts +3 -0
- package/es/scenegraph/layout/update-col.js +204 -0
- package/es/scenegraph/layout/update-col.js.map +1 -0
- package/es/scenegraph/layout/update-height.d.ts +6 -0
- package/es/scenegraph/layout/update-height.js +149 -0
- package/es/scenegraph/layout/update-height.js.map +1 -0
- package/es/scenegraph/layout/update-row.d.ts +3 -0
- package/es/scenegraph/layout/update-row.js +278 -0
- package/es/scenegraph/layout/update-row.js.map +1 -0
- package/es/scenegraph/layout/update-width.d.ts +2 -0
- package/es/scenegraph/layout/update-width.js +247 -0
- package/es/scenegraph/layout/update-width.js.map +1 -0
- package/es/scenegraph/refresh-node/update-chart.d.ts +7 -0
- package/es/scenegraph/refresh-node/update-chart.js +196 -0
- package/es/scenegraph/refresh-node/update-chart.js.map +1 -0
- package/es/scenegraph/scenegraph.d.ts +182 -0
- package/es/scenegraph/scenegraph.js +908 -0
- package/es/scenegraph/scenegraph.js.map +1 -0
- package/es/scenegraph/select/create-select-border.d.ts +3 -0
- package/es/scenegraph/select/create-select-border.js +51 -0
- package/es/scenegraph/select/create-select-border.js.map +1 -0
- package/es/scenegraph/select/delete-select-border.d.ts +5 -0
- package/es/scenegraph/select/delete-select-border.js +29 -0
- package/es/scenegraph/select/delete-select-border.js.map +1 -0
- package/es/scenegraph/select/move-select-border.d.ts +2 -0
- package/es/scenegraph/select/move-select-border.js +9 -0
- package/es/scenegraph/select/move-select-border.js.map +1 -0
- package/es/scenegraph/select/update-select-border.d.ts +8 -0
- package/es/scenegraph/select/update-select-border.js +263 -0
- package/es/scenegraph/select/update-select-border.js.map +1 -0
- package/es/scenegraph/select/update-select-style.d.ts +3 -0
- package/es/scenegraph/select/update-select-style.js +7 -0
- package/es/scenegraph/select/update-select-style.js.map +1 -0
- package/es/scenegraph/stick-text/index.d.ts +3 -0
- package/es/scenegraph/stick-text/index.js +179 -0
- package/es/scenegraph/stick-text/index.js.map +1 -0
- package/es/scenegraph/style/corner-cell.d.ts +3 -0
- package/es/scenegraph/style/corner-cell.js +22 -0
- package/es/scenegraph/style/corner-cell.js.map +1 -0
- package/es/scenegraph/style/frame-border.d.ts +8 -0
- package/es/scenegraph/style/frame-border.js +138 -0
- package/es/scenegraph/style/frame-border.js.map +1 -0
- package/es/scenegraph/utils/border-line.d.ts +8 -0
- package/es/scenegraph/utils/border-line.js +45 -0
- package/es/scenegraph/utils/border-line.js.map +1 -0
- package/es/scenegraph/utils/break-string.d.ts +5 -0
- package/es/scenegraph/utils/break-string.js +16 -0
- package/es/scenegraph/utils/break-string.js.map +1 -0
- package/es/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
- package/es/scenegraph/utils/cell-border-stroke-width.js +12 -0
- package/es/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
- package/es/scenegraph/utils/cell-pos.d.ts +4 -0
- package/es/scenegraph/utils/cell-pos.js +12 -0
- package/es/scenegraph/utils/cell-pos.js.map +1 -0
- package/es/scenegraph/utils/deal-promise-data.d.ts +2 -0
- package/es/scenegraph/utils/deal-promise-data.js +6 -0
- package/es/scenegraph/utils/deal-promise-data.js.map +1 -0
- package/es/scenegraph/utils/empty-group.d.ts +2 -0
- package/es/scenegraph/utils/empty-group.js +6 -0
- package/es/scenegraph/utils/empty-group.js.map +1 -0
- package/es/scenegraph/utils/font.d.ts +1 -0
- package/es/scenegraph/utils/font.js +6 -0
- package/es/scenegraph/utils/font.js.map +1 -0
- package/es/scenegraph/utils/get-cell-merge.d.ts +3 -0
- package/es/scenegraph/utils/get-cell-merge.js +11 -0
- package/es/scenegraph/utils/get-cell-merge.js.map +1 -0
- package/es/scenegraph/utils/get-hierarchy-offset.d.ts +2 -0
- package/es/scenegraph/utils/get-hierarchy-offset.js +21 -0
- package/es/scenegraph/utils/get-hierarchy-offset.js.map +1 -0
- package/es/scenegraph/utils/get-prop.d.ts +4 -0
- package/es/scenegraph/utils/get-prop.js +36 -0
- package/es/scenegraph/utils/get-prop.js.map +1 -0
- package/es/scenegraph/utils/icon.d.ts +12 -0
- package/es/scenegraph/utils/icon.js +29 -0
- package/es/scenegraph/utils/icon.js.map +1 -0
- package/es/scenegraph/utils/is-merge-cell-group.d.ts +2 -0
- package/es/scenegraph/utils/is-merge-cell-group.js +6 -0
- package/es/scenegraph/utils/is-merge-cell-group.js.map +1 -0
- package/es/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
- package/es/scenegraph/utils/keep-aspect-ratio.js +11 -0
- package/es/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
- package/es/scenegraph/utils/padding.d.ts +6 -0
- package/es/scenegraph/utils/padding.js +14 -0
- package/es/scenegraph/utils/padding.js.map +1 -0
- package/es/scenegraph/utils/render-service.d.ts +7 -0
- package/es/scenegraph/utils/render-service.js +19 -0
- package/es/scenegraph/utils/render-service.js.map +1 -0
- package/es/scenegraph/utils/text-icon-layout.d.ts +29 -0
- package/es/scenegraph/utils/text-icon-layout.js +334 -0
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -0
- package/es/scenegraph/utils/text-measure.d.ts +38 -0
- package/es/scenegraph/utils/text-measure.js +163 -0
- package/es/scenegraph/utils/text-measure.js.map +1 -0
- package/es/scenegraph/utils/text-pos.d.ts +8 -0
- package/es/scenegraph/utils/text-pos.js +20 -0
- package/es/scenegraph/utils/text-pos.js.map +1 -0
- package/es/scenegraph/utils/update-container.d.ts +2 -0
- package/es/scenegraph/utils/update-container.js +6 -0
- package/es/scenegraph/utils/update-container.js.map +1 -0
- package/es/state/cell-move/adjust-header.d.ts +3 -0
- package/es/state/cell-move/adjust-header.js +20 -0
- package/es/state/cell-move/adjust-header.js.map +1 -0
- package/es/state/cell-move/index.d.ts +4 -0
- package/es/state/cell-move/index.js +106 -0
- package/es/state/cell-move/index.js.map +1 -0
- package/es/state/checkbox/checkbox.d.ts +12 -0
- package/es/state/checkbox/checkbox.js +199 -0
- package/es/state/checkbox/checkbox.js.map +1 -0
- package/es/state/common/check-in-select.d.ts +7 -0
- package/es/state/common/check-in-select.js +53 -0
- package/es/state/common/check-in-select.js.map +1 -0
- package/es/state/drill/index.d.ts +2 -0
- package/es/state/drill/index.js +9 -0
- package/es/state/drill/index.js.map +1 -0
- package/es/state/frozen/index.d.ts +2 -0
- package/es/state/frozen/index.js +4 -0
- package/es/state/frozen/index.js.map +1 -0
- package/es/state/hover/col.d.ts +4 -0
- package/es/state/hover/col.js +16 -0
- package/es/state/hover/col.js.map +1 -0
- package/es/state/hover/is-cell-hover.d.ts +5 -0
- package/es/state/hover/is-cell-hover.js +44 -0
- package/es/state/hover/is-cell-hover.js.map +1 -0
- package/es/state/hover/row.d.ts +4 -0
- package/es/state/hover/row.js +14 -0
- package/es/state/hover/row.js.map +1 -0
- package/es/state/hover/single.d.ts +4 -0
- package/es/state/hover/single.js +10 -0
- package/es/state/hover/single.js.map +1 -0
- package/es/state/hover/update-cell.d.ts +2 -0
- package/es/state/hover/update-cell.js +15 -0
- package/es/state/hover/update-cell.js.map +1 -0
- package/es/state/hover/update-position.d.ts +2 -0
- package/es/state/hover/update-position.js +36 -0
- package/es/state/hover/update-position.js.map +1 -0
- package/es/state/radio/radio.d.ts +7 -0
- package/es/state/radio/radio.js +80 -0
- package/es/state/radio/radio.js.map +1 -0
- package/es/state/resize/update-resize-column.d.ts +2 -0
- package/es/state/resize/update-resize-column.js +79 -0
- package/es/state/resize/update-resize-column.js.map +1 -0
- package/es/state/resize/update-resize-row.d.ts +2 -0
- package/es/state/resize/update-resize-row.js +58 -0
- package/es/state/resize/update-resize-row.js.map +1 -0
- package/es/state/select/custom-select.d.ts +7 -0
- package/es/state/select/custom-select.js +30 -0
- package/es/state/select/custom-select.js.map +1 -0
- package/es/state/select/is-cell-select-highlight.d.ts +6 -0
- package/es/state/select/is-cell-select-highlight.js +81 -0
- package/es/state/select/is-cell-select-highlight.js.map +1 -0
- package/es/state/select/update-position.d.ts +4 -0
- package/es/state/select/update-position.js +300 -0
- package/es/state/select/update-position.js.map +1 -0
- package/es/state/sort/index.d.ts +2 -0
- package/es/state/sort/index.js +50 -0
- package/es/state/sort/index.js.map +1 -0
- package/es/state/spark-line/index.d.ts +3 -0
- package/es/state/spark-line/index.js +96 -0
- package/es/state/spark-line/index.js.map +1 -0
- package/es/state/state.d.ts +206 -0
- package/es/state/state.js +834 -0
- package/es/state/state.js.map +1 -0
- package/es/themes/ARCO.d.ts +3 -0
- package/es/themes/ARCO.js +109 -0
- package/es/themes/ARCO.js.map +1 -0
- package/es/themes/BRIGHT.d.ts +3 -0
- package/es/themes/BRIGHT.js +66 -0
- package/es/themes/BRIGHT.js.map +1 -0
- package/es/themes/DARK.d.ts +3 -0
- package/es/themes/DARK.js +99 -0
- package/es/themes/DARK.js.map +1 -0
- package/es/themes/DEFAULT.d.ts +3 -0
- package/es/themes/DEFAULT.js +82 -0
- package/es/themes/DEFAULT.js.map +1 -0
- package/es/themes/SIMPLIFY.d.ts +3 -0
- package/es/themes/SIMPLIFY.js +49 -0
- package/es/themes/SIMPLIFY.js.map +1 -0
- package/es/themes/component.d.ts +35 -0
- package/es/themes/component.js +42 -0
- package/es/themes/component.js.map +1 -0
- package/es/themes/theme.d.ts +67 -0
- package/es/themes/theme.js +752 -0
- package/es/themes/theme.js.map +1 -0
- package/es/themes.d.ts +28 -0
- package/es/themes.js +64 -0
- package/es/themes.js.map +1 -0
- package/es/tools/LimitPromiseQueue.d.ts +8 -0
- package/es/tools/LimitPromiseQueue.js +21 -0
- package/es/tools/LimitPromiseQueue.js.map +1 -0
- package/es/tools/NumberMap.d.ts +23 -0
- package/es/tools/NumberMap.js +117 -0
- package/es/tools/NumberMap.js.map +1 -0
- package/es/tools/Rect.d.ts +24 -0
- package/es/tools/Rect.js +62 -0
- package/es/tools/Rect.js.map +1 -0
- package/es/tools/calc.d.ts +8 -0
- package/es/tools/calc.js +201 -0
- package/es/tools/calc.js.map +1 -0
- package/es/tools/cell-range.d.ts +2 -0
- package/es/tools/cell-range.js +4 -0
- package/es/tools/cell-range.js.map +1 -0
- package/es/tools/debounce.d.ts +1 -0
- package/es/tools/debounce.js +43 -0
- package/es/tools/debounce.js.map +1 -0
- package/es/tools/diff-cell.d.ts +72 -0
- package/es/tools/diff-cell.js +160 -0
- package/es/tools/diff-cell.js.map +1 -0
- package/es/tools/dom.d.ts +1 -0
- package/es/tools/dom.js +5 -0
- package/es/tools/dom.js.map +1 -0
- package/es/tools/env.d.ts +19 -0
- package/es/tools/env.js +42 -0
- package/es/tools/env.js.map +1 -0
- package/es/tools/get-data-path/create-dataset.d.ts +11 -0
- package/es/tools/get-data-path/create-dataset.js +147 -0
- package/es/tools/get-data-path/create-dataset.js.map +1 -0
- package/es/tools/get-data-path/index.d.ts +2 -0
- package/es/tools/get-data-path/index.js +51 -0
- package/es/tools/get-data-path/index.js.map +1 -0
- package/es/tools/global.d.ts +15 -0
- package/es/tools/global.js +30 -0
- package/es/tools/global.js.map +1 -0
- package/es/tools/helper.d.ts +72 -0
- package/es/tools/helper.js +226 -0
- package/es/tools/helper.js.map +1 -0
- package/es/tools/icons.d.ts +4 -0
- package/es/tools/icons.js +4 -0
- package/es/tools/icons.js.map +1 -0
- package/es/tools/isx.d.ts +16 -0
- package/es/tools/isx.js +79 -0
- package/es/tools/isx.js.map +1 -0
- package/es/tools/join.d.ts +1 -0
- package/es/tools/join.js +6 -0
- package/es/tools/join.js.map +1 -0
- package/es/tools/merge-range.d.ts +11 -0
- package/es/tools/merge-range.js +28 -0
- package/es/tools/merge-range.js.map +1 -0
- package/es/tools/pixel-ratio.d.ts +2 -0
- package/es/tools/pixel-ratio.js +12 -0
- package/es/tools/pixel-ratio.js.map +1 -0
- package/es/tools/sort.d.ts +2 -0
- package/es/tools/sort.js +12 -0
- package/es/tools/sort.js.map +1 -0
- package/es/tools/style.d.ts +5 -0
- package/es/tools/style.js +20 -0
- package/es/tools/style.js.map +1 -0
- package/es/tools/update-row.d.ts +19 -0
- package/es/tools/update-row.js +32 -0
- package/es/tools/update-row.js.map +1 -0
- package/es/tools/util.d.ts +46 -0
- package/es/tools/util.js +231 -0
- package/es/tools/util.js.map +1 -0
- package/es/ts-types/animation/appear.d.ts +11 -0
- package/es/ts-types/animation/appear.js +2 -0
- package/es/ts-types/animation/appear.js.map +1 -0
- package/es/ts-types/animation/index.d.ts +1 -0
- package/es/ts-types/animation/index.js +2 -0
- package/es/ts-types/animation/index.js.map +1 -0
- package/es/ts-types/base-table.d.ts +641 -0
- package/es/ts-types/base-table.js +2 -0
- package/es/ts-types/base-table.js.map +1 -0
- package/es/ts-types/column/index.d.ts +2 -0
- package/es/ts-types/column/index.js +4 -0
- package/es/ts-types/column/index.js.map +1 -0
- package/es/ts-types/column/style.d.ts +151 -0
- package/es/ts-types/column/style.js +2 -0
- package/es/ts-types/column/style.js.map +1 -0
- package/es/ts-types/column/type.d.ts +2 -0
- package/es/ts-types/column/type.js +2 -0
- package/es/ts-types/column/type.js.map +1 -0
- package/es/ts-types/common.d.ts +114 -0
- package/es/ts-types/common.js +13 -0
- package/es/ts-types/common.js.map +1 -0
- package/es/ts-types/component/axis.d.ts +2 -0
- package/es/ts-types/component/axis.js +2 -0
- package/es/ts-types/component/axis.js.map +1 -0
- package/es/ts-types/component/empty-tip.d.ts +20 -0
- package/es/ts-types/component/empty-tip.js +2 -0
- package/es/ts-types/component/empty-tip.js.map +1 -0
- package/es/ts-types/component/index.d.ts +1 -0
- package/es/ts-types/component/index.js +2 -0
- package/es/ts-types/component/index.js.map +1 -0
- package/es/ts-types/component/legend.d.ts +18 -0
- package/es/ts-types/component/legend.js +2 -0
- package/es/ts-types/component/legend.js.map +1 -0
- package/es/ts-types/component/title.d.ts +49 -0
- package/es/ts-types/component/title.js +2 -0
- package/es/ts-types/component/title.js.map +1 -0
- package/es/ts-types/component/util.d.ts +1 -0
- package/es/ts-types/component/util.js +2 -0
- package/es/ts-types/component/util.js.map +1 -0
- package/es/ts-types/customElement.d.ts +128 -0
- package/es/ts-types/customElement.js +2 -0
- package/es/ts-types/customElement.js.map +1 -0
- package/es/ts-types/customLayout.d.ts +9 -0
- package/es/ts-types/customLayout.js +2 -0
- package/es/ts-types/customLayout.js.map +1 -0
- package/es/ts-types/dataset/aggregation.d.ts +192 -0
- package/es/ts-types/dataset/aggregation.js +397 -0
- package/es/ts-types/dataset/aggregation.js.map +1 -0
- package/es/ts-types/dataset/index.d.ts +1 -0
- package/es/ts-types/dataset/index.js +2 -0
- package/es/ts-types/dataset/index.js.map +1 -0
- package/es/ts-types/events.d.ts +363 -0
- package/es/ts-types/events.js +2 -0
- package/es/ts-types/events.js.map +1 -0
- package/es/ts-types/icon.d.ts +93 -0
- package/es/ts-types/icon.js +30 -0
- package/es/ts-types/icon.js.map +1 -0
- package/es/ts-types/index.d.ts +17 -0
- package/es/ts-types/index.js +34 -0
- package/es/ts-types/index.js.map +1 -0
- package/es/ts-types/list-table/define/basic-define.d.ts +50 -0
- package/es/ts-types/list-table/define/basic-define.js +2 -0
- package/es/ts-types/list-table/define/basic-define.js.map +1 -0
- package/es/ts-types/list-table/define/button-define.d.ts +9 -0
- package/es/ts-types/list-table/define/button-define.js +2 -0
- package/es/ts-types/list-table/define/button-define.js.map +1 -0
- package/es/ts-types/list-table/define/chart-define.d.ts +11 -0
- package/es/ts-types/list-table/define/chart-define.js +2 -0
- package/es/ts-types/list-table/define/chart-define.js.map +1 -0
- package/es/ts-types/list-table/define/checkbox-define.d.ts +15 -0
- package/es/ts-types/list-table/define/checkbox-define.js +2 -0
- package/es/ts-types/list-table/define/checkbox-define.js.map +1 -0
- package/es/ts-types/list-table/define/composite-define.d.ts +26 -0
- package/es/ts-types/list-table/define/composite-define.js +2 -0
- package/es/ts-types/list-table/define/composite-define.js.map +1 -0
- package/es/ts-types/list-table/define/image-define.d.ts +17 -0
- package/es/ts-types/list-table/define/image-define.js +2 -0
- package/es/ts-types/list-table/define/image-define.js.map +1 -0
- package/es/ts-types/list-table/define/index.d.ts +31 -0
- package/es/ts-types/list-table/define/index.js +2 -0
- package/es/ts-types/list-table/define/index.js.map +1 -0
- package/es/ts-types/list-table/define/link-define.d.ts +22 -0
- package/es/ts-types/list-table/define/link-define.js +2 -0
- package/es/ts-types/list-table/define/link-define.js.map +1 -0
- package/es/ts-types/list-table/define/multilinetext-define.d.ts +11 -0
- package/es/ts-types/list-table/define/multilinetext-define.js +2 -0
- package/es/ts-types/list-table/define/multilinetext-define.js.map +1 -0
- package/es/ts-types/list-table/define/progressbar-define.d.ts +11 -0
- package/es/ts-types/list-table/define/progressbar-define.js +2 -0
- package/es/ts-types/list-table/define/progressbar-define.js.map +1 -0
- package/es/ts-types/list-table/define/radio-define.d.ts +11 -0
- package/es/ts-types/list-table/define/radio-define.js +2 -0
- package/es/ts-types/list-table/define/radio-define.js.map +1 -0
- package/es/ts-types/list-table/define/sparkline-define.d.ts +10 -0
- package/es/ts-types/list-table/define/sparkline-define.js +2 -0
- package/es/ts-types/list-table/define/sparkline-define.js.map +1 -0
- package/es/ts-types/list-table/define/switch-define.d.ts +11 -0
- package/es/ts-types/list-table/define/switch-define.js +2 -0
- package/es/ts-types/list-table/define/switch-define.js.map +1 -0
- package/es/ts-types/list-table/index.d.ts +2 -0
- package/es/ts-types/list-table/index.js +4 -0
- package/es/ts-types/list-table/index.js.map +1 -0
- package/es/ts-types/list-table/layout-map/api.d.ts +126 -0
- package/es/ts-types/list-table/layout-map/api.js +2 -0
- package/es/ts-types/list-table/layout-map/api.js.map +1 -0
- package/es/ts-types/list-table/layout-map/index.d.ts +1 -0
- package/es/ts-types/list-table/layout-map/index.js +2 -0
- package/es/ts-types/list-table/layout-map/index.js.map +1 -0
- package/es/ts-types/menu.d.ts +74 -0
- package/es/ts-types/menu.js +2 -0
- package/es/ts-types/menu.js.map +1 -0
- package/es/ts-types/new-data-set.d.ts +158 -0
- package/es/ts-types/new-data-set.js +15 -0
- package/es/ts-types/new-data-set.js.map +1 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +10 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +13 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
- package/es/ts-types/pivot-table/corner.d.ts +37 -0
- package/es/ts-types/pivot-table/corner.js +2 -0
- package/es/ts-types/pivot-table/corner.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.d.ts +43 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.d.ts +10 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/index.d.ts +6 -0
- package/es/ts-types/pivot-table/dimension/index.js +2 -0
- package/es/ts-types/pivot-table/dimension/index.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.d.ts +13 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/index.d.ts +4 -0
- package/es/ts-types/pivot-table/index.js +8 -0
- package/es/ts-types/pivot-table/index.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.d.ts +51 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.d.ts +11 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/checkbox-indicator.d.ts +9 -0
- package/es/ts-types/pivot-table/indicator/checkbox-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/composite-indicator.d.ts +24 -0
- package/es/ts-types/pivot-table/indicator/composite-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +17 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/index.d.ts +12 -0
- package/es/ts-types/pivot-table/indicator/index.js +2 -0
- package/es/ts-types/pivot-table/indicator/index.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +22 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/title.d.ts +20 -0
- package/es/ts-types/pivot-table/title.js +2 -0
- package/es/ts-types/pivot-table/title.js.map +1 -0
- package/es/ts-types/sparkline.d.ts +37 -0
- package/es/ts-types/sparkline.js +2 -0
- package/es/ts-types/sparkline.js.map +1 -0
- package/es/ts-types/style-define.d.ts +72 -0
- package/es/ts-types/style-define.js +2 -0
- package/es/ts-types/style-define.js.map +1 -0
- package/es/ts-types/table-engine.d.ts +405 -0
- package/es/ts-types/table-engine.js +13 -0
- package/es/ts-types/table-engine.js.map +1 -0
- package/es/ts-types/theme.d.ts +164 -0
- package/es/ts-types/theme.js +2 -0
- package/es/ts-types/theme.js.map +1 -0
- package/es/ts-types/tooltip.d.ts +26 -0
- package/es/ts-types/tooltip.js +2 -0
- package/es/ts-types/tooltip.js.map +1 -0
- package/es/vrender.d.ts +8 -0
- package/es/vrender.js +27 -0
- package/es/vrender.js.map +1 -0
- package/package.json +132 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/scenegraph/graphic/contributions/image-contribution-render.ts"],"names":[],"mappings":";;;;;;;;;AAUA,gDAA4E;AAOrE,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAAnC;QACL,SAAI,GAA+B,oCAA0B,CAAC,gBAAgB,CAAC;QAC/E,aAAQ,GAAG,IAAI,CAAC;QAChB,UAAK,GAAG,CAAC,CAAC;IAqCZ,CAAC;IApCC,SAAS,CACP,KAAa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zC,IAAI,KAAK,IAAI,KAAK,CAAC,OAAO,EAAE;YAC1B,KAAK,CAAC,SAAS,CAAC,OAAO,GAAG,CAAC,CAAC;YAC5B,OAAO,CAAC,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC;YAC9C,KAAK,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;SAClC;IACH,CAAC;CACF,CAAA;AAnCY,+BAA+B;IAD3C,IAAA,oBAAU,GAAE;GACA,+BAA+B,CAmC3C;AAnCY,0EAA+B","file":"image-contribution-render.js","sourcesContent":["import type {\n IImage,\n IContext2d,\n IImageGraphicAttribute,\n IMarkAttribute,\n IGraphicAttribute,\n IThemeAttribute,\n IImageRenderContribution,\n IDrawContext\n} from './../../../vrender';\nimport { BaseRenderContributionTime, injectable } from './../../../vrender';\n\n/**\n * @description: image支持绘制部分形状\n * @return {*}\n */\n@injectable()\nexport class BeforeImageRenderContribution implements IImageRenderContribution {\n time: BaseRenderContributionTime = BaseRenderContributionTime.beforeFillStroke;\n useStyle = true;\n order = 0;\n drawShape(\n image: IImage,\n context: IContext2d,\n x: number,\n y: number,\n doFill: boolean,\n doStroke: boolean,\n fVisible: boolean,\n sVisible: boolean,\n imageAttribute: Required<IImageGraphicAttribute>,\n drawContext: IDrawContext,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n doFillOrStroke?: { doFill: boolean; doStroke: boolean }\n ) {\n const { shape } = image.attribute as any;\n\n if (shape === 'circle') {\n const { width = imageAttribute.width, height = imageAttribute.height } = image.attribute;\n\n context.beginPath();\n context.arc(x + width / 2, y + height / 2, Math.min(width, height) / 2, 0, 2 * Math.PI);\n context.closePath();\n\n context.save();\n context.clip();\n }\n }\n}\n\n@injectable()\nexport class AfterImageRenderContribution implements IImageRenderContribution {\n time: BaseRenderContributionTime = BaseRenderContributionTime.afterFillStroke;\n useStyle = true;\n order = 0;\n drawShape(\n image: IImage,\n context: IContext2d,\n x: number,\n y: number,\n doFill: boolean,\n doStroke: boolean,\n fVisible: boolean,\n sVisible: boolean,\n imageAttribute: Required<IImageGraphicAttribute>,\n drawContext: IDrawContext,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n doFillOrStroke?: { doFill: boolean; doStroke: boolean }\n ) {\n const { shape } = image.attribute as any;\n\n if (shape === 'circle') {\n context.restore();\n }\n }\n}\n\n/**\n * @description: image支持gif动态图片\n * @return {*}\n */\n@injectable()\nexport class BeforeGifImageRenderContribution implements IImageRenderContribution {\n time: BaseRenderContributionTime = BaseRenderContributionTime.beforeFillStroke;\n useStyle = true;\n order = 0;\n drawShape(\n image: IImage,\n context: IContext2d,\n x: number,\n y: number,\n doFill: boolean,\n doStroke: boolean,\n fVisible: boolean,\n sVisible: boolean,\n imageAttribute: Required<IImageGraphicAttribute>,\n drawContext: IDrawContext,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n doFillOrStroke?: { doFill: boolean; doStroke: boolean }\n ) {\n const { isGif } = image.attribute as any;\n\n if (isGif && image.playing) {\n image.attribute.opacity = 0; // hack for static image\n }\n }\n}\n\n@injectable()\nexport class AfterGifImageRenderContribution implements IImageRenderContribution {\n time: BaseRenderContributionTime = BaseRenderContributionTime.afterFillStroke;\n useStyle = true;\n order = 0;\n drawShape(\n image: IImage,\n context: IContext2d,\n x: number,\n y: number,\n doFill: boolean,\n doStroke: boolean,\n fVisible: boolean,\n sVisible: boolean,\n imageAttribute: Required<IImageGraphicAttribute>,\n drawContext: IDrawContext,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n doFillOrStroke?: { doFill: boolean; doStroke: boolean }\n ) {\n const { isGif } = image.attribute as any;\n\n if (isGif && image.playing) {\n image.attribute.opacity = 1; // hack for static image\n context.globalAlpha = image.attribute.opacity;\n image.renderFrame(context, x, y);\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const vrender_1 = require("./../../../vrender"), chart_render_1 = require("./chart-render"), image_contribution_render_1 = require("./image-contribution-render"), rect_contribution_render_1 = require("./rect-contribution-render"), group_contribution_render_1 = require("./group-contribution-render"), draw_interceptor_1 = require("./draw-interceptor"), text_contribution_render_1 = require("./text-contribution-render");
|
|
8
|
+
|
|
9
|
+
exports.default = new vrender_1.ContainerModule(((bind, unbind, isBound, rebind) => {
|
|
10
|
+
isBound(vrender_1.SplitRectBeforeRenderContribution) ? rebind(vrender_1.SplitRectBeforeRenderContribution).to(rect_contribution_render_1.SplitRectBeforeRenderContribution).inSingletonScope() : (bind(rect_contribution_render_1.SplitRectBeforeRenderContribution).toSelf().inSingletonScope(),
|
|
11
|
+
bind(vrender_1.RectRenderContribution).toService(rect_contribution_render_1.SplitRectBeforeRenderContribution)),
|
|
12
|
+
isBound(vrender_1.SplitRectAfterRenderContribution) ? rebind(vrender_1.SplitRectAfterRenderContribution).to(rect_contribution_render_1.SplitRectAfterRenderContribution).inSingletonScope() : (bind(rect_contribution_render_1.SplitRectAfterRenderContribution).toSelf().inSingletonScope(),
|
|
13
|
+
bind(vrender_1.RectRenderContribution).toService(rect_contribution_render_1.SplitRectAfterRenderContribution)),
|
|
14
|
+
bind(chart_render_1.DefaultCanvasChartRender).toSelf().inSingletonScope(), bind(chart_render_1.ChartRender).to(chart_render_1.DefaultCanvasChartRender),
|
|
15
|
+
bind(vrender_1.GraphicRender).to(chart_render_1.DefaultCanvasChartRender), bind(image_contribution_render_1.BeforeImageRenderContribution).toSelf().inSingletonScope(),
|
|
16
|
+
bind(vrender_1.ImageRenderContribution).toService(image_contribution_render_1.BeforeImageRenderContribution),
|
|
17
|
+
bind(image_contribution_render_1.AfterImageRenderContribution).toSelf().inSingletonScope(),
|
|
18
|
+
bind(vrender_1.ImageRenderContribution).toService(image_contribution_render_1.AfterImageRenderContribution),
|
|
19
|
+
bind(image_contribution_render_1.BeforeGifImageRenderContribution).toSelf().inSingletonScope(),
|
|
20
|
+
bind(vrender_1.ImageRenderContribution).toService(image_contribution_render_1.BeforeGifImageRenderContribution),
|
|
21
|
+
bind(image_contribution_render_1.AfterGifImageRenderContribution).toSelf().inSingletonScope(),
|
|
22
|
+
bind(vrender_1.ImageRenderContribution).toService(image_contribution_render_1.AfterGifImageRenderContribution),
|
|
23
|
+
bind(group_contribution_render_1.AdjustColorGroupBeforeRenderContribution).toSelf().inSingletonScope(),
|
|
24
|
+
bind(vrender_1.GroupRenderContribution).toService(group_contribution_render_1.AdjustColorGroupBeforeRenderContribution),
|
|
25
|
+
bind(group_contribution_render_1.AdjustColorGroupAfterRenderContribution).toSelf().inSingletonScope(),
|
|
26
|
+
bind(vrender_1.GroupRenderContribution).toService(group_contribution_render_1.AdjustColorGroupAfterRenderContribution),
|
|
27
|
+
bind(group_contribution_render_1.SplitGroupAfterRenderContribution).toSelf().inSingletonScope(),
|
|
28
|
+
bind(vrender_1.GroupRenderContribution).toService(group_contribution_render_1.SplitGroupAfterRenderContribution),
|
|
29
|
+
bind(group_contribution_render_1.SplitGroupBeforeRenderContribution).toSelf().inSingletonScope(),
|
|
30
|
+
bind(vrender_1.GroupRenderContribution).toService(group_contribution_render_1.SplitGroupBeforeRenderContribution),
|
|
31
|
+
bind(group_contribution_render_1.DashGroupBeforeRenderContribution).toSelf().inSingletonScope(),
|
|
32
|
+
bind(vrender_1.GroupRenderContribution).toService(group_contribution_render_1.DashGroupBeforeRenderContribution),
|
|
33
|
+
bind(group_contribution_render_1.DashGroupAfterRenderContribution).toSelf().inSingletonScope(),
|
|
34
|
+
bind(vrender_1.GroupRenderContribution).toService(group_contribution_render_1.DashGroupAfterRenderContribution),
|
|
35
|
+
bind(group_contribution_render_1.AdjustPosGroupBeforeRenderContribution).toSelf().inSingletonScope(),
|
|
36
|
+
bind(vrender_1.GroupRenderContribution).toService(group_contribution_render_1.AdjustPosGroupBeforeRenderContribution),
|
|
37
|
+
bind(group_contribution_render_1.AdjustPosGroupAfterRenderContribution).toSelf().inSingletonScope(),
|
|
38
|
+
bind(vrender_1.GroupRenderContribution).toService(group_contribution_render_1.AdjustPosGroupAfterRenderContribution),
|
|
39
|
+
bind(group_contribution_render_1.ClipBodyGroupBeforeRenderContribution).toSelf().inSingletonScope(),
|
|
40
|
+
bind(vrender_1.GroupRenderContribution).toService(group_contribution_render_1.ClipBodyGroupBeforeRenderContribution),
|
|
41
|
+
bind(draw_interceptor_1.VTableDrawItemInterceptorContribution).toSelf().inSingletonScope(),
|
|
42
|
+
bind(vrender_1.DrawItemInterceptor).toService(draw_interceptor_1.VTableDrawItemInterceptorContribution),
|
|
43
|
+
bind(text_contribution_render_1.SuffixTextBeforeRenderContribution).toSelf().inSingletonScope(),
|
|
44
|
+
bind(vrender_1.TextRenderContribution).toService(text_contribution_render_1.SuffixTextBeforeRenderContribution);
|
|
45
|
+
}));
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0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C,4DAAgC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACnE,IAAI,CAAC,iCAAuB,CAAC,CAAC,SAAS,CAAC,4DAAgC,CAAC,CAAC;IAE1E,IAAI,CAAC,kEAAsC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzE,IAAI,CAAC,iCAAuB,CAAC,CAAC,SAAS,CAAC,kEAAsC,CAAC,CAAC;IAChF,IAAI,CAAC,iEAAqC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxE,IAAI,CAAC,iCAAuB,CAAC,CAAC,SAAS,CAAC,iEAAqC,CAAC,CAAC;IAE/E,IAAI,CAAC,iEAAqC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxE,IAAI,CAAC,iCAAuB,CAAC,CAAC,SAAS,CAAC,iEAAqC,CAAC,CAAC;IAK/E,IAAI,CAAC,wDAAqC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxE,IAAI,CAAC,6BAAmB,CAAC,CAAC,SAAS,CAAC,wDAAqC,CAAC,CAAC;IAG3E,IAAI,CAAC,6DAAkC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACrE,IAAI,CAAC,gCAAsB,CAAC,CAAC,SAAS,CAAC,6DAAkC,CAAC,CAAC;AAC7E,CAAC,CAAC,CAAC","file":"index.js","sourcesContent":["import {\n GraphicRender,\n GroupRenderContribution,\n ImageRenderContribution,\n RectRenderContribution,\n SplitRectBeforeRenderContribution,\n SplitRectAfterRenderContribution,\n ContainerModule,\n DrawItemInterceptor,\n TextRenderContribution\n} from './../../../vrender';\nimport { ChartRender, DefaultCanvasChartRender } from './chart-render';\nimport {\n AfterImageRenderContribution,\n BeforeImageRenderContribution,\n BeforeGifImageRenderContribution,\n AfterGifImageRenderContribution\n} from './image-contribution-render';\nimport {\n SplitRectBeforeRenderContribution as VTableSplitRectBeforeRenderContribution,\n SplitRectAfterRenderContribution as VTableSplitRectAfterRenderContribution\n} from './rect-contribution-render';\nimport {\n DashGroupAfterRenderContribution,\n DashGroupBeforeRenderContribution,\n SplitGroupBeforeRenderContribution,\n SplitGroupAfterRenderContribution,\n AdjustPosGroupBeforeRenderContribution,\n AdjustPosGroupAfterRenderContribution,\n AdjustColorGroupBeforeRenderContribution,\n AdjustColorGroupAfterRenderContribution,\n ClipBodyGroupBeforeRenderContribution\n // ClipBodyGroupAfterRenderContribution\n} from './group-contribution-render';\nimport { VTableDrawItemInterceptorContribution } from './draw-interceptor';\nimport { SuffixTextBeforeRenderContribution } from './text-contribution-render';\n\nexport default new ContainerModule((bind, unbind, isBound, rebind) => {\n // rect 渲染器注入contributions\n if (isBound(SplitRectBeforeRenderContribution)) {\n rebind(SplitRectBeforeRenderContribution).to(VTableSplitRectBeforeRenderContribution).inSingletonScope();\n } else {\n bind(VTableSplitRectBeforeRenderContribution).toSelf().inSingletonScope();\n bind(RectRenderContribution).toService(VTableSplitRectBeforeRenderContribution);\n }\n if (isBound(SplitRectAfterRenderContribution)) {\n rebind(SplitRectAfterRenderContribution).to(VTableSplitRectAfterRenderContribution).inSingletonScope();\n } else {\n bind(VTableSplitRectAfterRenderContribution).toSelf().inSingletonScope();\n bind(RectRenderContribution).toService(VTableSplitRectAfterRenderContribution);\n }\n\n // chart渲染器注入\n bind(DefaultCanvasChartRender).toSelf().inSingletonScope();\n bind(ChartRender).to(DefaultCanvasChartRender);\n bind(GraphicRender).to(DefaultCanvasChartRender);\n\n // image 渲染器注入contributions\n bind(BeforeImageRenderContribution).toSelf().inSingletonScope();\n bind(ImageRenderContribution).toService(BeforeImageRenderContribution);\n bind(AfterImageRenderContribution).toSelf().inSingletonScope();\n bind(ImageRenderContribution).toService(AfterImageRenderContribution);\n\n bind(BeforeGifImageRenderContribution).toSelf().inSingletonScope();\n bind(ImageRenderContribution).toService(BeforeGifImageRenderContribution);\n bind(AfterGifImageRenderContribution).toSelf().inSingletonScope();\n bind(ImageRenderContribution).toService(AfterGifImageRenderContribution);\n\n // group 渲染器注入contributions\n bind(AdjustColorGroupBeforeRenderContribution).toSelf().inSingletonScope();\n bind(GroupRenderContribution).toService(AdjustColorGroupBeforeRenderContribution);\n bind(AdjustColorGroupAfterRenderContribution).toSelf().inSingletonScope();\n bind(GroupRenderContribution).toService(AdjustColorGroupAfterRenderContribution);\n\n bind(SplitGroupAfterRenderContribution).toSelf().inSingletonScope();\n bind(GroupRenderContribution).toService(SplitGroupAfterRenderContribution);\n bind(SplitGroupBeforeRenderContribution).toSelf().inSingletonScope();\n bind(GroupRenderContribution).toService(SplitGroupBeforeRenderContribution);\n\n bind(DashGroupBeforeRenderContribution).toSelf().inSingletonScope();\n bind(GroupRenderContribution).toService(DashGroupBeforeRenderContribution);\n bind(DashGroupAfterRenderContribution).toSelf().inSingletonScope();\n bind(GroupRenderContribution).toService(DashGroupAfterRenderContribution);\n\n bind(AdjustPosGroupBeforeRenderContribution).toSelf().inSingletonScope();\n bind(GroupRenderContribution).toService(AdjustPosGroupBeforeRenderContribution);\n bind(AdjustPosGroupAfterRenderContribution).toSelf().inSingletonScope();\n bind(GroupRenderContribution).toService(AdjustPosGroupAfterRenderContribution);\n\n bind(ClipBodyGroupBeforeRenderContribution).toSelf().inSingletonScope();\n bind(GroupRenderContribution).toService(ClipBodyGroupBeforeRenderContribution);\n // bind(ClipBodyGroupAfterRenderContribution).toSelf().inSingletonScope();\n // bind(GroupRenderContribution).toService(ClipBodyGroupAfterRenderContribution);\n\n // interceptor\n bind(VTableDrawItemInterceptorContribution).toSelf().inSingletonScope();\n bind(DrawItemInterceptor).toService(VTableDrawItemInterceptorContribution);\n\n // text 渲染器注入contributions\n bind(SuffixTextBeforeRenderContribution).toSelf().inSingletonScope();\n bind(TextRenderContribution).toService(SuffixTextBeforeRenderContribution);\n});\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IRect, IContext2d, IRectGraphicAttribute, IMarkAttribute, IGraphicAttribute, IThemeAttribute, IRectRenderContribution, IDrawContext } from './../../../vrender';
|
|
2
|
+
import { BaseRenderContributionTime } from './../../../vrender';
|
|
3
|
+
export declare class SplitRectBeforeRenderContribution implements IRectRenderContribution {
|
|
4
|
+
time: BaseRenderContributionTime;
|
|
5
|
+
useStyle: boolean;
|
|
6
|
+
order: number;
|
|
7
|
+
drawShape(rect: IRect, context: IContext2d, x: number, y: number, doFill: boolean, doStroke: boolean, fVisible: boolean, sVisible: boolean, rectAttribute: Required<IRectGraphicAttribute>, drawContext: IDrawContext, fillCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, strokeCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, doFillOrStroke?: {
|
|
8
|
+
doFill: boolean;
|
|
9
|
+
doStroke: boolean;
|
|
10
|
+
}): void;
|
|
11
|
+
}
|
|
12
|
+
export declare class SplitRectAfterRenderContribution implements IRectRenderContribution {
|
|
13
|
+
time: BaseRenderContributionTime;
|
|
14
|
+
useStyle: boolean;
|
|
15
|
+
order: number;
|
|
16
|
+
drawShape(rect: IRect, context: IContext2d, x: number, y: number, doFill: boolean, doStroke: boolean, fVisible: boolean, sVisible: boolean, rectAttribute: Required<IRectGraphicAttribute>, drawContext: IDrawContext, fillCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, strokeCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean): void;
|
|
17
|
+
}
|
|
18
|
+
export declare function renderStrokeWithCornerRadius(i: number, x1: number, y1: number, x2: number, y2: number, rect: IRect, context: IContext2d, x: number, y: number, rectAttribute: Required<IRectGraphicAttribute>, stroke: any, strokeArrayWidth: any, strokeArrayColor: any, width: number, height: number): void;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
|
|
4
|
+
var d, c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
5
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: !0
|
|
11
|
+
}), exports.renderStrokeWithCornerRadius = exports.SplitRectAfterRenderContribution = exports.SplitRectBeforeRenderContribution = void 0;
|
|
12
|
+
|
|
13
|
+
const vrender_1 = require("./../../../vrender"), group_contribution_render_1 = require("./group-contribution-render"), vutils_1 = require("@visactor/vutils"), vrender_2 = require("./../../../vrender");
|
|
14
|
+
|
|
15
|
+
let SplitRectBeforeRenderContribution = class {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.time = vrender_1.BaseRenderContributionTime.beforeFillStroke, this.useStyle = !0,
|
|
18
|
+
this.order = 0;
|
|
19
|
+
}
|
|
20
|
+
drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb, doFillOrStroke) {
|
|
21
|
+
const {stroke: stroke = rectAttribute.stroke, strokeArrayWidth: strokeArrayWidth = rectAttribute.strokeArrayWidth, strokeArrayColor: strokeArrayColor = rectAttribute.strokeArrayColor} = rect.attribute;
|
|
22
|
+
stroke && (Array.isArray(stroke) || Array.isArray(strokeArrayWidth) || Array.isArray(strokeArrayColor)) && (doFillOrStroke.doStroke = !1);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
SplitRectBeforeRenderContribution = __decorate([ (0, vrender_1.injectable)() ], SplitRectBeforeRenderContribution),
|
|
27
|
+
exports.SplitRectBeforeRenderContribution = SplitRectBeforeRenderContribution;
|
|
28
|
+
|
|
29
|
+
let SplitRectAfterRenderContribution = class {
|
|
30
|
+
constructor() {
|
|
31
|
+
this.time = vrender_1.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0,
|
|
32
|
+
this.order = 0;
|
|
33
|
+
}
|
|
34
|
+
drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
35
|
+
const {width: width = rectAttribute.width, height: height = rectAttribute.height, stroke: stroke = rectAttribute.stroke, strokeArrayColor: strokeArrayColor = rectAttribute.strokeArrayColor, strokeArrayWidth: strokeArrayWidth = rectAttribute.strokeArrayWidth, lineWidth: lineWidth = rectAttribute.lineWidth, strokeColor: strokeColor = rectAttribute.stroke, cornerRadius: cornerRadius = rectAttribute.cornerRadius} = rect.attribute;
|
|
36
|
+
if (stroke && (Array.isArray(strokeArrayWidth) || 0 !== lineWidth) && (Array.isArray(stroke) || Array.isArray(strokeArrayColor) || Array.isArray(strokeArrayWidth))) {
|
|
37
|
+
const deltaWidth = 0, deltaHeight = 0;
|
|
38
|
+
"border-rect" !== rect.name && "table-border-rect" !== rect.name && ("number" == typeof lineWidth && 1 & lineWidth || Array.isArray(strokeArrayWidth) && strokeArrayWidth.some((width => 1 & width))) && (x = Math.floor(x) + .5,
|
|
39
|
+
y = Math.floor(y) + .5), 0 === cornerRadius || (0, vutils_1.isArray)(cornerRadius) && cornerRadius.every((num => 0 === num)) ? (0,
|
|
40
|
+
group_contribution_render_1.renderStroke)(rect, context, x, y, rectAttribute, stroke, strokeArrayWidth || lineWidth, strokeArrayColor || strokeColor, Math.ceil(width + deltaWidth), Math.ceil(height + deltaHeight)) : (context.beginPath(),
|
|
41
|
+
(0, vrender_2.createRectPath)(context, x, y, width, height, cornerRadius, new Array(4).fill(0).map(((_, i) => (x1, y1, x2, y2) => {
|
|
42
|
+
renderStrokeWithCornerRadius(i, x1, y1, x2, y2, rect, context, x, y, rectAttribute, stroke, strokeArrayWidth || lineWidth, strokeArrayColor || strokeColor, Math.ceil(width + deltaWidth), Math.ceil(height + deltaHeight));
|
|
43
|
+
}))), context.stroke());
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
function renderStrokeWithCornerRadius(i, x1, y1, x2, y2, rect, context, x, y, rectAttribute, stroke, strokeArrayWidth, strokeArrayColor, width, height) {
|
|
49
|
+
var _a, _b, _c, _d;
|
|
50
|
+
const group = rect, groupAttribute = rectAttribute, widthInfo = (0, group_contribution_render_1.getWidthInfo)(strokeArrayWidth), isWidthNumber = !Array.isArray(strokeArrayWidth), isStrokeTrue = !Array.isArray(stroke), isSplitDraw = Array.isArray(strokeArrayColor) || widthInfo.isSplitDraw;
|
|
51
|
+
context.stroke(), context.setStrokeStyle(rect, rect.attribute, x, y, rectAttribute);
|
|
52
|
+
const {lineDash: lineDash = groupAttribute.lineDash} = group.attribute;
|
|
53
|
+
let isDash = !1;
|
|
54
|
+
lineDash.length && lineDash.some((dash => Array.isArray(dash))) && (isDash = !0),
|
|
55
|
+
context.beginPath(), context.moveTo(x, y);
|
|
56
|
+
const strokeTop = (isStrokeTrue || stroke[0]) && (isWidthNumber || strokeArrayWidth[0]), strokeRight = (isStrokeTrue || stroke[1]) && (isWidthNumber || strokeArrayWidth[1]), strokeBottom = (isStrokeTrue || stroke[2]) && (isWidthNumber || strokeArrayWidth[2]), strokeLeft = (isStrokeTrue || stroke[3]) && (isWidthNumber || strokeArrayWidth[3]);
|
|
57
|
+
if (strokeTop && 0 === i) {
|
|
58
|
+
isWidthNumber ? widthInfo.width : strokeArrayWidth[0], isWidthNumber ? widthInfo.width : strokeArrayWidth[0];
|
|
59
|
+
context.moveTo(x1, y1), context.lineTo(x2, y2), (isSplitDraw || isDash) && (strokeArrayColor && strokeArrayColor[0] ? context.strokeStyle = strokeArrayColor[0] : strokeArrayColor && !strokeArrayColor[0] && (context.strokeStyle = "transparent"),
|
|
60
|
+
isWidthNumber || (context.lineWidth = strokeArrayWidth[0]), context.lineDashOffset = context.currentMatrix.e / context.currentMatrix.a,
|
|
61
|
+
isDash && context.setLineDash(null !== (_a = lineDash[0]) && void 0 !== _a ? _a : []),
|
|
62
|
+
context.stroke(), context.beginPath());
|
|
63
|
+
} else 0 === i && context.moveTo(x + width, y);
|
|
64
|
+
if (strokeRight && 1 === i) {
|
|
65
|
+
isWidthNumber ? widthInfo.width : strokeArrayWidth[1], isWidthNumber ? widthInfo.width : strokeArrayWidth[1];
|
|
66
|
+
context.moveTo(x1, y1), context.lineTo(x2, y2), (isSplitDraw || isDash) && (strokeArrayColor && strokeArrayColor[1] ? context.strokeStyle = strokeArrayColor[1] : strokeArrayColor && !strokeArrayColor[1] && (context.strokeStyle = "transparent"),
|
|
67
|
+
isWidthNumber || (context.lineWidth = strokeArrayWidth[1]), context.lineDashOffset = context.currentMatrix.f / context.currentMatrix.d,
|
|
68
|
+
isDash && context.setLineDash(null !== (_b = lineDash[1]) && void 0 !== _b ? _b : []),
|
|
69
|
+
context.stroke(), context.beginPath(), context.moveTo(x + width, y + height));
|
|
70
|
+
} else 1 === i && context.moveTo(x + width, y + height);
|
|
71
|
+
if (strokeBottom && 2 === i) {
|
|
72
|
+
isWidthNumber ? widthInfo.width : strokeArrayWidth[2], isWidthNumber ? widthInfo.width : strokeArrayWidth[2];
|
|
73
|
+
context.moveTo(x1, y1), context.lineTo(x2, y2), (isSplitDraw || isDash) && (strokeArrayColor && strokeArrayColor[2] ? context.strokeStyle = strokeArrayColor[2] : strokeArrayColor && !strokeArrayColor[2] && (context.strokeStyle = "transparent"),
|
|
74
|
+
isWidthNumber || (context.lineWidth = strokeArrayWidth[2]), context.lineDashOffset = context.currentMatrix.e / context.currentMatrix.a,
|
|
75
|
+
isDash && context.setLineDash(null !== (_c = lineDash[2]) && void 0 !== _c ? _c : []),
|
|
76
|
+
context.stroke(), context.beginPath(), context.moveTo(x, y + height));
|
|
77
|
+
} else 2 === i && context.moveTo(x, y + height);
|
|
78
|
+
if (strokeLeft && 3 === i) {
|
|
79
|
+
isWidthNumber ? widthInfo.width : strokeArrayWidth[3], isWidthNumber ? widthInfo.width : strokeArrayWidth[3];
|
|
80
|
+
context.moveTo(x1, y1), context.lineTo(x2, y2), (isSplitDraw || isDash) && (strokeArrayColor && strokeArrayColor[3] ? context.strokeStyle = strokeArrayColor[3] : strokeArrayColor && !strokeArrayColor[3] && (context.strokeStyle = "transparent"),
|
|
81
|
+
isWidthNumber || (context.lineWidth = strokeArrayWidth[3]), context.lineDashOffset = context.currentMatrix.f / context.currentMatrix.d,
|
|
82
|
+
isDash && context.setLineDash(null !== (_d = lineDash[3]) && void 0 !== _d ? _d : []),
|
|
83
|
+
context.stroke(), context.beginPath(), context.moveTo(x, y));
|
|
84
|
+
} else 3 === i && context.moveTo(x, y);
|
|
85
|
+
context.closePath(), isSplitDraw || isDash || (!isWidthNumber && widthInfo.width && (context.lineWidth = widthInfo.width),
|
|
86
|
+
context.stroke()), context.lineDashOffset = 0, context.setLineDash([]), context.beginPath();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
SplitRectAfterRenderContribution = __decorate([ (0, vrender_1.injectable)() ], SplitRectAfterRenderContribution),
|
|
90
|
+
exports.SplitRectAfterRenderContribution = SplitRectAfterRenderContribution, exports.renderStrokeWithCornerRadius = renderStrokeWithCornerRadius;
|
|
91
|
+
//# sourceMappingURL=rect-contribution-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/scenegraph/graphic/contributions/rect-contribution-render.ts"],"names":[],"mappings":";;;;;;;;;AAaA,gDAA4E;AAC5E,2EAAyE;AAGzE,6CAAkF;AAClF,gDAAoD;AAG7C,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAAvC;QACL,SAAI,GAA+B,oCAA0B,CAAC,gBAAgB,C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AAC,aAAa,EAAE;gBAClB,OAAO,CAAC,SAAS,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;aACzC;YACD,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;YAC3E,IAAI,MAAM,EAAE;gBACV,OAAO,CAAC,WAAW,CAAC,MAAA,QAAQ,CAAC,CAAC,CAAC,mCAAI,EAAE,CAAC,CAAC;aACxC;YACD,OAAO,CAAC,MAAM,EAAE,CAAC;YACjB,OAAO,CAAC,SAAS,EAAE,CAAC;YACpB,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;SACtB;KACF;SAAM,IAAI,CAAC,KAAK,CAAC,EAAE;QAClB,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACtB;IACD,OAAO,CAAC,SAAS,EAAE,CAAC;IAEpB,IAAI,CAAC,WAAW,IAAI,CAAC,MAAM,EAAE;QAE3B,IAAI,CAAC,aAAa,IAAI,SAAS,CAAC,KAAK,EAAE;YACrC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC;SACrC;QACD,OAAO,CAAC,MAAM,EAAE,CAAC;KAClB;IACD,OAAO,CAAC,cAAc,GAAG,CAAC,CAAC;IAE3B,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAExB,OAAO,CAAC,SAAS,EAAE,CAAC;AACtB,CAAC;AApMD,oEAoMC","file":"rect-contribution-render.js","sourcesContent":["import type {\n IRect,\n IContext2d,\n IRectGraphicAttribute,\n IMarkAttribute,\n IGraphicAttribute,\n IThemeAttribute,\n IRectRenderContribution,\n IGroup,\n IGroupGraphicAttribute,\n IDrawContext,\n ICustomPath2D\n} from './../../../vrender';\nimport { BaseRenderContributionTime, injectable } from './../../../vrender';\nimport { getWidthInfo, renderStroke } from './group-contribution-render';\nimport type { BaseTableAPI } from '../../../ts-types/base-table';\nimport type { vec2, vec4 } from '@visactor/vutils';\nimport { abs, arrayEqual, halfPi, isArray, isNumber, pi } from '@visactor/vutils';\nimport { createRectPath } from './../../../vrender';\n\n@injectable()\nexport class SplitRectBeforeRenderContribution implements IRectRenderContribution {\n time: BaseRenderContributionTime = BaseRenderContributionTime.beforeFillStroke;\n useStyle: boolean = true;\n order: number = 0;\n drawShape(\n rect: IRect,\n context: IContext2d,\n x: number,\n y: number,\n doFill: boolean,\n doStroke: boolean,\n fVisible: boolean,\n sVisible: boolean,\n rectAttribute: Required<IRectGraphicAttribute>,\n drawContext: IDrawContext,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n doFillOrStroke?: { doFill: boolean; doStroke: boolean }\n ) {\n // const { stroke = rectAttribute.stroke } = group.attribute as any;\n\n // if (Array.isArray(stroke)) {\n // doFillOrStroke.doStroke = false;\n // }\n\n const {\n stroke = rectAttribute.stroke,\n strokeArrayWidth = (rectAttribute as any).strokeArrayWidth,\n strokeArrayColor = (rectAttribute as any).strokeArrayColor\n } = rect.attribute as any;\n\n if (stroke && (Array.isArray(stroke) || Array.isArray(strokeArrayWidth) || Array.isArray(strokeArrayColor))) {\n doFillOrStroke.doStroke = false;\n }\n }\n}\n\n@injectable()\nexport class SplitRectAfterRenderContribution implements IRectRenderContribution {\n time: BaseRenderContributionTime = BaseRenderContributionTime.afterFillStroke;\n useStyle: boolean = true;\n order: number = 0;\n drawShape(\n rect: IRect,\n context: IContext2d,\n x: number,\n y: number,\n doFill: boolean,\n doStroke: boolean,\n fVisible: boolean,\n sVisible: boolean,\n rectAttribute: Required<IRectGraphicAttribute>,\n drawContext: IDrawContext,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean\n ) {\n // const {\n // width = rectAttribute.width,\n // height = rectAttribute.height,\n // stroke = rectAttribute.stroke\n // } = group.attribute as any;\n\n // if (!Array.isArray(stroke)) {\n // return;\n // }\n\n // context.setStrokeStyle(group, group.attribute, x, y, rectAttribute);\n // // 单独处理每条边界,目前不考虑圆角\n // context.beginPath();\n // context.moveTo(x, y);\n // // top\n // if (stroke[0]) {\n // context.lineTo(x + width, y);\n // } else {\n // context.moveTo(x + width, y);\n // }\n // // right\n // if (stroke[1]) {\n // context.lineTo(x + width, y + height);\n // } else {\n // context.moveTo(x + width, y + height);\n // }\n // // bottom\n // if (stroke[2]) {\n // context.lineTo(x, y + height);\n // } else {\n // context.moveTo(x, y + height);\n // }\n // // left\n // if (stroke[3]) {\n // // 没有close path是,起点和终点不连续,需要调整y保证不出现缺口\n // const adjustY = stroke[0] ? y - context.lineWidth / 2 : y;\n // context.lineTo(x, adjustY);\n // } else {\n // context.moveTo(x, y);\n // }\n\n // context.stroke();\n\n const {\n width = rectAttribute.width,\n height = rectAttribute.height,\n // 基础border\n stroke = rectAttribute.stroke,\n strokeArrayColor = (rectAttribute as any).strokeArrayColor,\n strokeArrayWidth = (rectAttribute as any).strokeArrayWidth,\n\n lineWidth = rectAttribute.lineWidth,\n strokeColor = rectAttribute.stroke,\n\n cornerRadius = rectAttribute.cornerRadius\n // // select & hover border\n // highlightStroke = (rectAttribute as any).highlightStroke,\n // highlightStrokeArrayColor = (rectAttribute as any).highlightStrokeArrayColor,\n // highlightStrokeArrayWidth = (rectAttribute as any).highlightStrokeArrayWidth,\n // highlightStrokeArrayPart = (rectAttribute as any).highlightStrokeArrayPart,\n } = rect.attribute as any;\n\n if (!stroke || (!Array.isArray(strokeArrayWidth) && lineWidth === 0)) {\n return;\n }\n\n if (Array.isArray(stroke) || Array.isArray(strokeArrayColor) || Array.isArray(strokeArrayWidth)) {\n // let dx = 0;\n // let dy = 0;\n const deltaWidth = 0;\n const deltaHeight = 0;\n if (\n rect.name !== 'border-rect' && // border-rect not need offset\n rect.name !== 'table-border-rect' && // table-border-rect not need offset\n ((typeof lineWidth === 'number' && lineWidth & 1) ||\n (Array.isArray(strokeArrayWidth) && strokeArrayWidth.some(width => width & 1)))\n ) {\n // const table = (rect.stage as any).table as BaseTableAPI;\n // const bottomRight = table.theme.cellBorderClipDirection === 'bottom-right';\n // if (bottomRight) {\n // x = Math.floor(x) - 0.5;\n // y = Math.floor(y) - 0.5;\n // deltaWidth = 0.5;\n // deltaHeight = 0.5;\n // } else {\n x = Math.floor(x) + 0.5;\n y = Math.floor(y) + 0.5;\n // }\n }\n\n // 带不同stroke边框\n if (!(cornerRadius === 0 || (isArray(cornerRadius) && (<number[]>cornerRadius).every(num => num === 0)))) {\n // let lastStrokeI = 0;\n // let lastStroke: any;\n context.beginPath();\n // debugger;\n createRectPath(\n context,\n x,\n y,\n width,\n height,\n cornerRadius,\n new Array(4).fill(0).map((_, i) => (x1: number, y1: number, x2: number, y2: number) => {\n renderStrokeWithCornerRadius(\n i,\n x1,\n y1,\n x2,\n y2,\n rect,\n context,\n x,\n y,\n rectAttribute,\n stroke,\n strokeArrayWidth || lineWidth,\n strokeArrayColor || strokeColor,\n Math.ceil(width + deltaWidth),\n Math.ceil(height + deltaHeight)\n );\n })\n );\n\n context.stroke();\n } else {\n renderStroke(\n rect as IGroup,\n context,\n x,\n y,\n rectAttribute,\n stroke,\n strokeArrayWidth || lineWidth,\n strokeArrayColor || strokeColor,\n Math.ceil(width + deltaWidth),\n Math.ceil(height + deltaHeight)\n );\n }\n }\n }\n}\n\nexport function renderStrokeWithCornerRadius(\n i: number,\n x1: number,\n y1: number,\n x2: number,\n y2: number,\n rect: IRect,\n context: IContext2d,\n x: number,\n y: number,\n rectAttribute: Required<IRectGraphicAttribute>,\n stroke: any,\n strokeArrayWidth: any,\n strokeArrayColor: any,\n width: number,\n height: number\n) {\n const group = rect;\n const groupAttribute = rectAttribute;\n\n // if (stroke[i]) {\n // if (!(lastStrokeI === i - 1 && stroke[i] === lastStroke)) {\n // context.setStrokeStyle(rect, { ...rect.attribute, stroke: stroke[i] }, x, y, rectAttribute);\n // context.beginPath();\n // context.moveTo(x1, y1);\n // lastStroke = stroke[i];\n // }\n // lastStrokeI = i;\n // context.lineTo(x2, y2);\n // context.stroke();\n // if (i === 3) {\n // context.beginPath();\n // }\n // }\n\n const widthInfo = getWidthInfo(strokeArrayWidth);\n const isWidthNumber = !Array.isArray(strokeArrayWidth);\n const isStrokeTrue = !Array.isArray(stroke);\n const isSplitDraw = Array.isArray(strokeArrayColor) || widthInfo.isSplitDraw;\n context.stroke(); // stroke last corner with last stroke style\n\n context.setStrokeStyle(rect, rect.attribute, x, y, rectAttribute);\n const { lineDash = groupAttribute.lineDash } = group.attribute as any;\n // const lineDash = context.getLineDash();\n let isDash = false;\n if (lineDash.length && lineDash.some((dash: number[] | null) => Array.isArray(dash))) {\n isDash = true;\n }\n\n // 单独处理每条边界,目前不考虑圆角\n context.beginPath(); // clean path\n context.moveTo(x, y);\n\n const strokeTop = (isStrokeTrue || stroke[0]) && (isWidthNumber || strokeArrayWidth[0]);\n const strokeRight = (isStrokeTrue || stroke[1]) && (isWidthNumber || strokeArrayWidth[1]);\n const strokeBottom = (isStrokeTrue || stroke[2]) && (isWidthNumber || strokeArrayWidth[2]);\n const strokeLeft = (isStrokeTrue || stroke[3]) && (isWidthNumber || strokeArrayWidth[3]);\n\n // top\n if (strokeTop && i === 0) {\n // context.lineTo(x + width, y);\n const deltaLeft = (isWidthNumber ? widthInfo.width : strokeArrayWidth[0]) / 2;\n const deltaRight = (isWidthNumber ? widthInfo.width : strokeArrayWidth[0]) / 2;\n\n // context.moveTo(x - deltaLeft, y);\n // context.lineTo(x + width + deltaRight, y);\n context.moveTo(x1, y1);\n context.lineTo(x2, y2);\n\n if (isSplitDraw || isDash) {\n if (strokeArrayColor && strokeArrayColor[0]) {\n context.strokeStyle = strokeArrayColor[0];\n } else if (strokeArrayColor && !strokeArrayColor[0]) {\n context.strokeStyle = 'transparent';\n }\n if (!isWidthNumber) {\n context.lineWidth = strokeArrayWidth[0];\n }\n context.lineDashOffset = context.currentMatrix.e / context.currentMatrix.a;\n if (isDash) {\n context.setLineDash(lineDash[0] ?? []);\n }\n context.stroke();\n context.beginPath();\n // context.moveTo(x + width, y);\n }\n } else if (i === 0) {\n context.moveTo(x + width, y);\n }\n // right\n if (strokeRight && i === 1) {\n // context.lineTo(x + width, y + height);\n const deltaTop = (isWidthNumber ? widthInfo.width : strokeArrayWidth[1]) / 2;\n const deltaBottom = (isWidthNumber ? widthInfo.width : strokeArrayWidth[1]) / 2;\n\n // context.moveTo(x + width, y - deltaTop);\n // context.lineTo(x + width, y + height + deltaBottom);\n context.moveTo(x1, y1);\n context.lineTo(x2, y2);\n\n if (isSplitDraw || isDash) {\n if (strokeArrayColor && strokeArrayColor[1]) {\n context.strokeStyle = strokeArrayColor[1];\n } else if (strokeArrayColor && !strokeArrayColor[1]) {\n context.strokeStyle = 'transparent';\n }\n if (!isWidthNumber) {\n context.lineWidth = strokeArrayWidth[1];\n }\n context.lineDashOffset = context.currentMatrix.f / context.currentMatrix.d;\n if (isDash) {\n context.setLineDash(lineDash[1] ?? []);\n }\n context.stroke();\n context.beginPath();\n context.moveTo(x + width, y + height);\n }\n } else if (i === 1) {\n context.moveTo(x + width, y + height);\n }\n // bottom\n if (strokeBottom && i === 2) {\n // context.lineTo(x, y + height);\n const deltaLeft = (isWidthNumber ? widthInfo.width : strokeArrayWidth[2]) / 2;\n const deltaRight = (isWidthNumber ? widthInfo.width : strokeArrayWidth[2]) / 2;\n\n // context.moveTo(x - deltaLeft, y + height);\n // context.lineTo(x + width + deltaRight, y + height);\n context.moveTo(x1, y1);\n context.lineTo(x2, y2);\n\n if (isSplitDraw || isDash) {\n if (strokeArrayColor && strokeArrayColor[2]) {\n context.strokeStyle = strokeArrayColor[2];\n } else if (strokeArrayColor && !strokeArrayColor[2]) {\n context.strokeStyle = 'transparent';\n }\n if (!isWidthNumber) {\n context.lineWidth = strokeArrayWidth[2];\n }\n context.lineDashOffset = context.currentMatrix.e / context.currentMatrix.a;\n if (isDash) {\n context.setLineDash(lineDash[2] ?? []);\n }\n context.stroke();\n context.beginPath();\n context.moveTo(x, y + height);\n }\n } else if (i === 2) {\n context.moveTo(x, y + height);\n }\n // left\n if (strokeLeft && i === 3) {\n // context.lineTo(x, y);\n const deltaTop = (isWidthNumber ? widthInfo.width : strokeArrayWidth[3]) / 2;\n const deltaBottom = (isWidthNumber ? widthInfo.width : strokeArrayWidth[3]) / 2;\n\n // context.moveTo(x, y - deltaTop);\n // context.lineTo(x, y + height + deltaBottom);\n context.moveTo(x1, y1);\n context.lineTo(x2, y2);\n\n if (isSplitDraw || isDash) {\n if (strokeArrayColor && strokeArrayColor[3]) {\n context.strokeStyle = strokeArrayColor[3];\n } else if (strokeArrayColor && !strokeArrayColor[3]) {\n context.strokeStyle = 'transparent';\n }\n if (!isWidthNumber) {\n context.lineWidth = strokeArrayWidth[3];\n }\n context.lineDashOffset = context.currentMatrix.f / context.currentMatrix.d;\n if (isDash) {\n context.setLineDash(lineDash[3] ?? []);\n }\n context.stroke();\n context.beginPath();\n context.moveTo(x, y);\n }\n } else if (i === 3) {\n context.moveTo(x, y);\n }\n context.closePath();\n\n if (!isSplitDraw && !isDash) {\n // context.strokeStyle = strokeArrayColor;\n if (!isWidthNumber && widthInfo.width) {\n context.lineWidth = widthInfo.width;\n }\n context.stroke();\n }\n context.lineDashOffset = 0;\n // context.lineCap = oldLineCap;\n context.setLineDash([]);\n\n context.beginPath(); // clean path\n}\n\ntype IEdgeCb = (x1: number, y1: number, x2: number, y2: number) => void;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IContext2d, IDrawContext, IGraphicAttribute, IMarkAttribute, IText, ITextGraphicAttribute, ITextRenderContribution, IThemeAttribute } from './../../../vrender';
|
|
2
|
+
import { BaseRenderContributionTime } from './../../../vrender';
|
|
3
|
+
export declare class SuffixTextBeforeRenderContribution implements ITextRenderContribution {
|
|
4
|
+
time: BaseRenderContributionTime;
|
|
5
|
+
useStyle: boolean;
|
|
6
|
+
order: number;
|
|
7
|
+
drawShape(text: IText, context: IContext2d, x: number, y: number, doFill: boolean, doStroke: boolean, fVisible: boolean, sVisible: boolean, textAttribute: Required<ITextGraphicAttribute>, drawContext: IDrawContext, fillCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, strokeCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, doFillOrStroke?: {
|
|
8
|
+
doFill: boolean;
|
|
9
|
+
doStroke: boolean;
|
|
10
|
+
}): void;
|
|
11
|
+
drawUnderLine(underline: number, lineThrough: number, text: IText, x: number, y: number, z: number, textAttribute: Required<ITextGraphicAttribute>, context: IContext2d, textStr: string): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
|
|
4
|
+
var d, c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
5
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: !0
|
|
11
|
+
}), exports.SuffixTextBeforeRenderContribution = void 0;
|
|
12
|
+
|
|
13
|
+
const vrender_1 = require("./../../../vrender"), vutils_1 = require("@visactor/vutils"), text_measure_1 = require("../../utils/text-measure");
|
|
14
|
+
|
|
15
|
+
let SuffixTextBeforeRenderContribution = class {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.time = vrender_1.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0,
|
|
18
|
+
this.order = 0;
|
|
19
|
+
}
|
|
20
|
+
drawShape(text, context, x, y, doFill, doStroke, fVisible, sVisible, textAttribute, drawContext, fillCb, strokeCb, doFillOrStroke) {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const {text: str, underline: underline = textAttribute.underline, lineThrough: lineThrough = textAttribute.lineThrough, direction: direction = textAttribute.direction, whiteSpace: whiteSpace = textAttribute.whiteSpace, fontSize: fontSize = textAttribute.fontSize, verticalMode: verticalMode = textAttribute.verticalMode, ellipsis: ellipsis = textAttribute.ellipsis, textAlign: textAlign = textAttribute.textAlign, textBaseline: textBaseline = textAttribute.textBaseline, x: originX = textAttribute.x, y: originY = textAttribute.y} = text.attribute;
|
|
23
|
+
let isEmpty = !1;
|
|
24
|
+
if (Array.isArray(text)) {
|
|
25
|
+
const layoutData = null === (_a = text.cache) || void 0 === _a ? void 0 : _a.layoutData;
|
|
26
|
+
ellipsis && layoutData && layoutData.lines.every((line => "" === line.str)) && (isEmpty = !0);
|
|
27
|
+
} else {
|
|
28
|
+
const {cache: cache} = text;
|
|
29
|
+
ellipsis && cache && "" === cache.clipedText && 0 === cache.clipedWidth && (isEmpty = !0);
|
|
30
|
+
}
|
|
31
|
+
if (!isEmpty) return;
|
|
32
|
+
const textStr = (0, vutils_1.isString)(ellipsis) ? ellipsis : "...", lineHeight = null !== (_b = (0,
|
|
33
|
+
vrender_1.calculateLineHeight)(text.attribute.lineHeight, fontSize)) && void 0 !== _b ? _b : fontSize;
|
|
34
|
+
let dy = 0;
|
|
35
|
+
lineHeight !== fontSize && ("top" === textBaseline ? dy = (lineHeight - fontSize) / 2 : "middle" === textBaseline || "bottom" === textBaseline && (dy = -(lineHeight - fontSize) / 2)),
|
|
36
|
+
doStroke && (strokeCb ? strokeCb(context, text.attribute, textAttribute) : sVisible && (context.setStrokeStyle(text, text.attribute, originX - x, originY - y, textAttribute),
|
|
37
|
+
context.strokeText(textStr, originX, originY + dy))), doFill && (fillCb ? fillCb(context, text.attribute, textAttribute) : fVisible && (context.setCommonStyle(text, text.attribute, originX - x, originY - y, textAttribute),
|
|
38
|
+
context.fillText(textStr, originX, originY + dy), this.drawUnderLine(underline, lineThrough, text, originX, originY + dy, 0, textAttribute, context, textStr)));
|
|
39
|
+
}
|
|
40
|
+
drawUnderLine(underline, lineThrough, text, x, y, z, textAttribute, context, textStr) {
|
|
41
|
+
if (lineThrough + underline <= 0) return;
|
|
42
|
+
const {textAlign: textAlign = textAttribute.textAlign, textBaseline: textBaseline = textAttribute.textBaseline, fontSize: fontSize = textAttribute.fontSize, fontFamily: fontFamily = textAttribute.fontFamily, fontWeight: fontWeight = textAttribute.fontWeight, fontStyle: fontStyle = textAttribute.fontStyle, fill: fill = textAttribute.fill, opacity: opacity = textAttribute.opacity, underlineOffset: underlineOffset = textAttribute.underlineOffset, underlineDash: underlineDash = textAttribute.underlineDash, fillOpacity: fillOpacity = textAttribute.fillOpacity} = text.attribute;
|
|
43
|
+
if (!underline && !lineThrough) return;
|
|
44
|
+
const w = text_measure_1.textMeasure.measureTextWidth(textStr, {
|
|
45
|
+
fontSize: fontSize,
|
|
46
|
+
fontFamily: fontFamily,
|
|
47
|
+
fontWeight: fontWeight,
|
|
48
|
+
fontStyle: fontStyle
|
|
49
|
+
}), offsetX = (0, vrender_1.textDrawOffsetX)(textAlign, w), offsetY = (0, vrender_1.textLayoutOffsetY)(textBaseline, fontSize, fontSize), attribute = {
|
|
50
|
+
lineWidth: 0,
|
|
51
|
+
stroke: fill,
|
|
52
|
+
opacity: opacity,
|
|
53
|
+
strokeOpacity: fillOpacity
|
|
54
|
+
};
|
|
55
|
+
if (underline) {
|
|
56
|
+
attribute.lineWidth = underline, context.setStrokeStyle(text, attribute, x, y, textAttribute),
|
|
57
|
+
context.setLineDash(underlineDash), context.beginPath();
|
|
58
|
+
const dy = y + offsetY + fontSize + underlineOffset;
|
|
59
|
+
context.moveTo(x + offsetX, dy, z), context.lineTo(x + offsetX + w, dy, z), context.stroke();
|
|
60
|
+
}
|
|
61
|
+
if (lineThrough) {
|
|
62
|
+
attribute.lineWidth = lineThrough, context.setStrokeStyle(text, attribute, x, y, textAttribute),
|
|
63
|
+
context.beginPath();
|
|
64
|
+
const dy = y + offsetY + fontSize / 2;
|
|
65
|
+
context.moveTo(x + offsetX, dy, z), context.lineTo(x + offsetX + w, dy, z), context.stroke();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
SuffixTextBeforeRenderContribution = __decorate([ (0, vrender_1.injectable)() ], SuffixTextBeforeRenderContribution),
|
|
71
|
+
exports.SuffixTextBeforeRenderContribution = SuffixTextBeforeRenderContribution;
|
|
72
|
+
//# sourceMappingURL=text-contribution-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/scenegraph/graphic/contributions/text-contribution-render.ts"],"names":[],"mappings":";;;;;;;;;AAUA,gDAM4B;AAC5B,6CAA4C;AAC5C,2DAAuD;AAGhD,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IAAxC;QACL,SAAI,GAA+B,oCAA0B,CAAC,eAAe,CAAC;QAC9E,aAAQ,GAAY,IAAI,CAAC;QACzB,UAAK,GAAW,CAAC,CAAC;IA0JpB,CAAC;IAzJC,SAAS,CACP,IAAW,EACX,OAAmB,EACnB,CAAS,EACT,CAAS,EACT,MAAe,EACf,QAAiB,EACjB,QAAiB,EACjB,QAAiB,EACjB,aAA8C,EAC9C,WAAyB,EACzB,MAIY,EACZ,QAIY,EACZ,cAAuD;;QAEvD,MAAM,EACJ,IAAI,EAAE,GAAG,EACT,SAAS,GAAG,aAAa,CAA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S,EAAE;YACb,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC;YAChC,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,aAAa,CAAC,CAAC;YAC7D,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;YACnC,OAAO,CAAC,SAAS,EAAE,CAAC;YACpB,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,GAAG,QAAQ,GAAG,eAAe,CAAC;YACpD,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;YACnC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;YACvC,OAAO,CAAC,MAAM,EAAE,CAAC;SAClB;QACD,IAAI,WAAW,EAAE;YACf,SAAS,CAAC,SAAS,GAAG,WAAW,CAAC;YAClC,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,aAAa,CAAC,CAAC;YAC7D,OAAO,CAAC,SAAS,EAAE,CAAC;YACpB,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,GAAG,QAAQ,GAAG,CAAC,CAAC;YACtC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;YACnC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;YACvC,OAAO,CAAC,MAAM,EAAE,CAAC;SAClB;IACH,CAAC;CACF,CAAA;AA7JY,kCAAkC;IAD9C,IAAA,oBAAU,GAAE;GACA,kCAAkC,CA6J9C;AA7JY,gFAAkC","file":"text-contribution-render.js","sourcesContent":["import type {\n IContext2d,\n IDrawContext,\n IGraphicAttribute,\n IMarkAttribute,\n IText,\n ITextGraphicAttribute,\n ITextRenderContribution,\n IThemeAttribute\n} from './../../../vrender';\nimport {\n BaseRenderContributionTime,\n calculateLineHeight,\n injectable,\n textDrawOffsetX,\n textLayoutOffsetY\n} from './../../../vrender';\nimport { isString } from '@visactor/vutils';\nimport { textMeasure } from '../../utils/text-measure';\n\n@injectable()\nexport class SuffixTextBeforeRenderContribution implements ITextRenderContribution {\n time: BaseRenderContributionTime = BaseRenderContributionTime.afterFillStroke;\n useStyle: boolean = true;\n order: number = 0;\n drawShape(\n text: IText,\n context: IContext2d,\n x: number,\n y: number,\n doFill: boolean,\n doStroke: boolean,\n fVisible: boolean,\n sVisible: boolean,\n textAttribute: Required<ITextGraphicAttribute>,\n drawContext: IDrawContext,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n doFillOrStroke?: { doFill: boolean; doStroke: boolean }\n ) {\n const {\n text: str,\n underline = textAttribute.underline,\n lineThrough = textAttribute.lineThrough,\n direction = textAttribute.direction,\n // lineHeight = textAttribute.lineHeight,\n whiteSpace = textAttribute.whiteSpace,\n fontSize = textAttribute.fontSize,\n verticalMode = textAttribute.verticalMode,\n ellipsis = textAttribute.ellipsis,\n textAlign = textAttribute.textAlign,\n textBaseline = textAttribute.textBaseline,\n x: originX = textAttribute.x,\n y: originY = textAttribute.y\n } = text.attribute;\n\n let isEmpty: boolean = false;\n if (Array.isArray(text)) {\n const layoutData = text.cache?.layoutData;\n if (ellipsis && layoutData && layoutData.lines.every(line => line.str === '')) {\n isEmpty = true;\n }\n } else {\n const { cache } = text;\n if (ellipsis && cache && cache.clipedText === '' && cache.clipedWidth === 0) {\n isEmpty = true;\n }\n }\n\n if (!isEmpty) {\n return;\n }\n\n const textStr = isString(ellipsis) ? ellipsis : '...';\n const lineHeight = calculateLineHeight(text.attribute.lineHeight, fontSize) ?? fontSize;\n\n let dy = 0;\n if (lineHeight !== fontSize) {\n if (textBaseline === 'top') {\n dy = (lineHeight - fontSize) / 2;\n } else if (textBaseline === 'middle') {\n // middle do nothing\n } else if (textBaseline === 'bottom') {\n dy = -(lineHeight - fontSize) / 2;\n } else {\n // alphabetic do nothing\n // dy = (lineHeight - fontSize) / 2 - fontSize * 0.79;\n }\n }\n if (doStroke) {\n if (strokeCb) {\n strokeCb(context, text.attribute, textAttribute);\n } else if (sVisible) {\n context.setStrokeStyle(text, text.attribute, originX - x, originY - y, textAttribute);\n context.strokeText(textStr, originX, originY + dy);\n }\n }\n if (doFill) {\n if (fillCb) {\n fillCb(context, text.attribute, textAttribute);\n } else if (fVisible) {\n context.setCommonStyle(text, text.attribute, originX - x, originY - y, textAttribute);\n context.fillText(textStr, originX, originY + dy);\n this.drawUnderLine(underline, lineThrough, text, originX, originY + dy, 0, textAttribute, context, textStr);\n }\n }\n }\n\n drawUnderLine(\n underline: number,\n lineThrough: number,\n text: IText,\n x: number,\n y: number,\n z: number,\n textAttribute: Required<ITextGraphicAttribute>,\n context: IContext2d,\n textStr: string\n ) {\n if (lineThrough + underline <= 0) {\n return;\n }\n\n const {\n textAlign = textAttribute.textAlign,\n textBaseline = textAttribute.textBaseline,\n fontSize = textAttribute.fontSize,\n fontFamily = textAttribute.fontFamily,\n fontWeight = textAttribute.fontWeight,\n fontStyle = textAttribute.fontStyle,\n fill = textAttribute.fill,\n opacity = textAttribute.opacity,\n underlineOffset = textAttribute.underlineOffset,\n underlineDash = textAttribute.underlineDash,\n fillOpacity = textAttribute.fillOpacity\n } = text.attribute;\n\n if (!underline && !lineThrough) {\n return;\n }\n // const w = text.clipedWidth;\n const w = textMeasure.measureTextWidth(textStr, {\n fontSize,\n fontFamily,\n fontWeight,\n fontStyle\n });\n const offsetX = textDrawOffsetX(textAlign, w);\n const offsetY = textLayoutOffsetY(textBaseline, fontSize, fontSize);\n const attribute = { lineWidth: 0, stroke: fill, opacity, strokeOpacity: fillOpacity };\n if (underline) {\n attribute.lineWidth = underline;\n context.setStrokeStyle(text, attribute, x, y, textAttribute);\n context.setLineDash(underlineDash);\n context.beginPath();\n const dy = y + offsetY + fontSize + underlineOffset;\n context.moveTo(x + offsetX, dy, z);\n context.lineTo(x + offsetX + w, dy, z);\n context.stroke();\n }\n if (lineThrough) {\n attribute.lineWidth = lineThrough;\n context.setStrokeStyle(text, attribute, x, y, textAttribute);\n context.beginPath();\n const dy = y + offsetY + fontSize / 2;\n context.moveTo(x + offsetX, dy, z);\n context.lineTo(x + offsetX + w, dy, z);\n context.stroke();\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { IRect, INode } from './../../vrender';
|
|
2
|
+
import { Group as VRenderGroup } from './../../vrender';
|
|
3
|
+
import { type AABBBounds } from '@visactor/vutils';
|
|
4
|
+
export declare class Group extends VRenderGroup {
|
|
5
|
+
role?: string;
|
|
6
|
+
col?: number;
|
|
7
|
+
row?: number;
|
|
8
|
+
mergeStartCol?: number;
|
|
9
|
+
mergeStartRow?: number;
|
|
10
|
+
mergeEndCol?: number;
|
|
11
|
+
mergeEndRow?: number;
|
|
12
|
+
contentWidth?: number;
|
|
13
|
+
contentHeight?: number;
|
|
14
|
+
rowNumber?: number;
|
|
15
|
+
colHeight?: number;
|
|
16
|
+
border?: IRect;
|
|
17
|
+
needUpdate?: boolean;
|
|
18
|
+
needUpdateWidth?: boolean;
|
|
19
|
+
needUpdateHeight?: boolean;
|
|
20
|
+
clear(): void;
|
|
21
|
+
getChildByName(name: string, deep?: boolean): any;
|
|
22
|
+
get width(): number;
|
|
23
|
+
get height(): number;
|
|
24
|
+
setDeltaWidth(deltaX: number): void;
|
|
25
|
+
setDeltaHeight(deltaY: number): void;
|
|
26
|
+
setDeltaX(deltaX: number): void;
|
|
27
|
+
setDeltaY(deltaY: number): void;
|
|
28
|
+
forEachChildrenSkipChild<T extends INode = INode>(cb: (item: T, index: number) => void | boolean, skipChildName?: string, reverse?: boolean): void;
|
|
29
|
+
getColGroup(col: number): Group;
|
|
30
|
+
getRowGroup(row: number): Group;
|
|
31
|
+
addCellGroup(cellGroup: Group): void;
|
|
32
|
+
getChildAt(index: number): INode;
|
|
33
|
+
protected tryUpdateAABBBounds(): AABBBounds;
|
|
34
|
+
protected doUpdateAABBBounds(): any;
|
|
35
|
+
updateColumnRowNumber(row: number): void;
|
|
36
|
+
updateColumnHeight(cellHeight: number): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.Group = void 0;
|
|
6
|
+
|
|
7
|
+
const vrender_1 = require("./../../vrender");
|
|
8
|
+
|
|
9
|
+
class Group extends vrender_1.Group {
|
|
10
|
+
clear() {
|
|
11
|
+
this.removeAllChild();
|
|
12
|
+
}
|
|
13
|
+
getChildByName(name, deep) {
|
|
14
|
+
let result = null;
|
|
15
|
+
return this.forEachChildren((child => child.name === name && (result = child, !0))),
|
|
16
|
+
deep && this.forEachChildren((child => {
|
|
17
|
+
if (child.getChildByName) {
|
|
18
|
+
const target = child.getChildByName(name, !0);
|
|
19
|
+
if (target) return result = target, !0;
|
|
20
|
+
}
|
|
21
|
+
return !1;
|
|
22
|
+
})), result;
|
|
23
|
+
}
|
|
24
|
+
get width() {
|
|
25
|
+
var _a;
|
|
26
|
+
let width = this.AABBBounds.width();
|
|
27
|
+
return width !== 1 / 0 && width !== -1 / 0 || (width = 0), Math.max(width, null !== (_a = this.attribute.width) && void 0 !== _a ? _a : 0);
|
|
28
|
+
}
|
|
29
|
+
get height() {
|
|
30
|
+
var _a;
|
|
31
|
+
let height = this.AABBBounds.height();
|
|
32
|
+
return height !== 1 / 0 && height !== -1 / 0 || (height = 0), Math.max(height, null !== (_a = this.attribute.height) && void 0 !== _a ? _a : 0);
|
|
33
|
+
}
|
|
34
|
+
setDeltaWidth(deltaX) {
|
|
35
|
+
var _a;
|
|
36
|
+
0 !== deltaX && (this.setAttribute("width", (null !== (_a = this.attribute.width) && void 0 !== _a ? _a : 0) + deltaX),
|
|
37
|
+
this.border && (this.border.setAttribute("width", this.border.attribute.width + deltaX),
|
|
38
|
+
"group" === this.border.type && this.border.firstChild.setAttribute("width", this.border.firstChild.attribute.width + deltaX)));
|
|
39
|
+
}
|
|
40
|
+
setDeltaHeight(deltaY) {
|
|
41
|
+
var _a;
|
|
42
|
+
0 !== deltaY && (this.setAttribute("height", (null !== (_a = this.attribute.height) && void 0 !== _a ? _a : 0) + deltaY),
|
|
43
|
+
this.border && (this.border.setAttribute("height", this.border.attribute.height + deltaY),
|
|
44
|
+
"group" === this.border.type && this.border.firstChild.setAttribute("width", this.border.firstChild.attribute.height + deltaY)));
|
|
45
|
+
}
|
|
46
|
+
setDeltaX(deltaX) {
|
|
47
|
+
0 !== deltaX && this.setAttribute("x", this.attribute.x + deltaX);
|
|
48
|
+
}
|
|
49
|
+
setDeltaY(deltaY) {
|
|
50
|
+
0 !== deltaY && this.setAttribute("y", this.attribute.y + deltaY);
|
|
51
|
+
}
|
|
52
|
+
forEachChildrenSkipChild(cb, skipChildName = "border-rect", reverse = !1) {
|
|
53
|
+
if (reverse) {
|
|
54
|
+
let child = this._lastChild, i = 0;
|
|
55
|
+
for (;child; ) {
|
|
56
|
+
if (child.name !== skipChildName) {
|
|
57
|
+
if (cb(child, i++)) return;
|
|
58
|
+
}
|
|
59
|
+
child = child._prev;
|
|
60
|
+
}
|
|
61
|
+
} else {
|
|
62
|
+
let child = this._firstChild, i = 0;
|
|
63
|
+
for (;child; ) {
|
|
64
|
+
if (child.name !== skipChildName) {
|
|
65
|
+
if (cb(child, i++)) return;
|
|
66
|
+
}
|
|
67
|
+
child = child._next;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
getColGroup(col) {
|
|
72
|
+
let c = this._firstChild;
|
|
73
|
+
if (!c) return null;
|
|
74
|
+
for (let i = 0; i < this.childrenCount; i++) {
|
|
75
|
+
if (c.col === col) return c;
|
|
76
|
+
c = c._next;
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
getRowGroup(row) {
|
|
81
|
+
let c = this._firstChild;
|
|
82
|
+
if (!c) return null;
|
|
83
|
+
for (let i = 0; i < this.childrenCount; i++) {
|
|
84
|
+
if (c.row === row) return c;
|
|
85
|
+
c = c._next;
|
|
86
|
+
}
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
addCellGroup(cellGroup) {
|
|
90
|
+
if (0 === this.childrenCount || this.lastChild.row === cellGroup.row - 1) this.addChild(cellGroup); else {
|
|
91
|
+
let c = this._firstChild;
|
|
92
|
+
for (let i = 0; i < this.childrenCount; i++) {
|
|
93
|
+
if (c.row === cellGroup.row - 1) return void this.insertAfter(cellGroup, c);
|
|
94
|
+
c = c._next;
|
|
95
|
+
}
|
|
96
|
+
this.addChild(cellGroup);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
getChildAt(index) {
|
|
100
|
+
const child = super.getChildAt(index);
|
|
101
|
+
return child && "border-rect" === child.name ? child._next : child;
|
|
102
|
+
}
|
|
103
|
+
tryUpdateAABBBounds() {
|
|
104
|
+
if ("cell" === this.role) {
|
|
105
|
+
if (!this.shouldUpdateAABBBounds()) return this._AABBBounds;
|
|
106
|
+
const selfChange = this.shouldSelfChangeUpdateAABBBounds(), bounds = this.doUpdateAABBBounds();
|
|
107
|
+
return this.addUpdateLayoutTag(), after(this, selfChange), bounds;
|
|
108
|
+
}
|
|
109
|
+
return super.tryUpdateAABBBounds();
|
|
110
|
+
}
|
|
111
|
+
doUpdateAABBBounds() {
|
|
112
|
+
if ("cell" === this.role) {
|
|
113
|
+
const attribute = this.attribute, {x: x, y: y, width: width, height: height} = attribute;
|
|
114
|
+
return this._AABBBounds.setValue(x, y, x + width, y + height), this.parent && this.parent.addChildUpdateBoundTag(),
|
|
115
|
+
this.clearUpdateBoundTag(), this.shadowRoot && this.shadowRoot.tryUpdateAABBBounds(),
|
|
116
|
+
this._AABBBounds;
|
|
117
|
+
}
|
|
118
|
+
return "body" === this.role || "row-header" === this.role || "col-header" === this.role || "right-frozen" === this.role || "bottom-frozen" === this.role || "corner-header" === this.role || "corner-right-top-header" === this.role || "corner-right-bottom-header" === this.role || "corner-left-bottom-header" === this.role ? (this._AABBBounds.setValue(-1 / 0, -1 / 0, 1 / 0, 1 / 0),
|
|
119
|
+
this.parent && this.parent.addChildUpdateBoundTag(), this.clearUpdateBoundTag(),
|
|
120
|
+
this.shadowRoot && this.shadowRoot.tryUpdateAABBBounds(), this._AABBBounds) : super.doUpdateAABBBounds();
|
|
121
|
+
}
|
|
122
|
+
updateColumnRowNumber(row) {
|
|
123
|
+
this.rowNumber ? this.rowNumber = Math.max(this.rowNumber, row) : this.rowNumber = row;
|
|
124
|
+
}
|
|
125
|
+
updateColumnHeight(cellHeight) {
|
|
126
|
+
this.colHeight ? this.colHeight += cellHeight : this.colHeight = cellHeight;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function after(group, selfChange) {
|
|
131
|
+
group.stage && group.stage.dirtyBounds && group.stage.renderCount && (group.isContainer && !selfChange || group.stage.dirty(group.globalAABBBounds));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
exports.Group = Group;
|
|
135
|
+
//# sourceMappingURL=group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/scenegraph/graphic/group.ts"],"names":[],"mappings":";;;AACA,6CAAwD;AAKxD,MAAa,KAAM,SAAQ,eAAY;IA+CrC,KAAK;QACH,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAED,cAAc,CAAC,IAAY,EAAE,IAAc;QAMzC,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,eAAe,CAAC,CAAC,KAAe,EAAE,EAAE;YACvC,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AAC,KAAK,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE;QACxE,OAAO;KACR;IAED,IAAI,KAAK,CAAC,WAAW,IAAI,CAAC,UAAU,EAAE;QACpC,OAAO;KACR;IACD,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAC5C,CAAC","file":"group.js","sourcesContent":["import type { IGraphic, IColor, IRect, INode, IGroupGraphicAttribute, ISetAttributeContext } from './../../vrender';\nimport { Group as VRenderGroup } from './../../vrender';\nimport type { BaseTableAPI } from '../../ts-types/base-table';\nimport { InteractionState } from '../../ts-types';\nimport { isNumber, type AABBBounds } from '@visactor/vutils';\n\nexport class Group extends VRenderGroup {\n role?: string;\n col?: number;\n row?: number;\n mergeStartCol?: number;\n mergeStartRow?: number;\n mergeEndCol?: number;\n mergeEndRow?: number;\n contentWidth?: number;\n contentHeight?: number;\n rowNumber?: number; // row number of the column group\n colHeight?: number; // current height of the column group\n border?: IRect; // table/header/body的border mark,挂载在这里方便更新\n needUpdate?: boolean;\n\n needUpdateWidth?: boolean;\n needUpdateHeight?: boolean;\n\n // changes for size align for fs\n // constructor(attribute?: IGroupGraphicAttribute) {\n // dealWidthSize(attribute, attribute);\n // super(attribute);\n // }\n\n // setAttribute(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext): void {\n // if (key === 'x' || key === 'y' || key === 'width' || key === 'height') {\n // this.attribute[`old${key}`];\n // }\n // const values = {\n // [key]: value\n // };\n // this.setAttributes(values, forceUpdateTag, context);\n // }\n\n // setAttributes(\n // params: Partial<IGroupGraphicAttribute>,\n // forceUpdateTag?: boolean,\n // context?: ISetAttributeContext\n // ): void {\n // dealWidthSize(params, this.attribute);\n // super.setAttributes(params, forceUpdateTag, context);\n // }\n\n /**\n * @description: 清空Group下全部子元素\n * @return {*}\n */\n clear() {\n this.removeAllChild();\n }\n\n getChildByName(name: string, deep?: boolean): any {\n // for (let i = 0, j = this.children.length; i < j; i++) {\n // if (this.children[i].name === name) {\n // return this.children[i] as unknown as T;\n // }\n // }\n let result = null;\n this.forEachChildren((child: IGraphic) => {\n if (child.name === name) {\n result = child;\n return true; // 提前退出循环\n }\n return false;\n });\n\n if (deep) {\n // for (let i = 0, j = this.children.length; i < j; i++) {\n // const child = this.children[i] as Group;\n\n // if (!child.getChildByName) {\n // continue;\n // }\n\n // const target = child.getChildByName(name, true);\n\n // if (target) {\n // return target;\n // }\n // }\n this.forEachChildren((child: IGraphic) => {\n if ((child as Group).getChildByName) {\n const target = (child as Group).getChildByName(name, true);\n if (target) {\n result = target;\n return true;\n }\n }\n return false;\n });\n }\n\n return result;\n }\n\n get width() {\n let width = this.AABBBounds.width();\n if (width === Infinity || width === -Infinity) {\n width = 0;\n }\n return Math.max(width, this.attribute.width ?? 0);\n }\n\n get height() {\n let height = this.AABBBounds.height();\n if (height === Infinity || height === -Infinity) {\n height = 0;\n }\n return Math.max(height, this.attribute.height ?? 0);\n }\n\n setDeltaWidth(deltaX: number) {\n if (deltaX === 0) {\n return;\n }\n this.setAttribute('width', (this.attribute.width ?? 0) + deltaX);\n if (this.border) {\n this.border.setAttribute('width', this.border.attribute.width + deltaX);\n\n if (this.border.type === 'group') {\n (this.border.firstChild as IRect).setAttribute(\n 'width',\n (this.border.firstChild as IRect).attribute.width + deltaX\n );\n }\n }\n }\n\n setDeltaHeight(deltaY: number) {\n if (deltaY === 0) {\n return;\n }\n this.setAttribute('height', (this.attribute.height ?? 0) + deltaY);\n if (this.border) {\n this.border.setAttribute('height', this.border.attribute.height + deltaY);\n if (this.border.type === 'group') {\n (this.border.firstChild as IRect).setAttribute(\n 'width',\n (this.border.firstChild as IRect).attribute.height + deltaY\n );\n }\n }\n }\n\n setDeltaX(deltaX: number) {\n if (deltaX === 0) {\n return;\n }\n this.setAttribute('x', this.attribute.x + deltaX);\n }\n\n setDeltaY(deltaY: number) {\n if (deltaY === 0) {\n return;\n }\n this.setAttribute('y', this.attribute.y + deltaY);\n }\n\n /**\n * @description: 遍历所有子节点,跳过部分节点,默认跳过group的border\n * @return {*}\n */\n forEachChildrenSkipChild<T extends INode = INode>(\n cb: (item: T, index: number) => void | boolean,\n skipChildName = 'border-rect',\n reverse = false\n ) {\n if (reverse) {\n let child = this._lastChild;\n let i = 0;\n while (child) {\n if (child.name !== skipChildName) {\n const breakTag = cb(child as T, i++);\n if (breakTag) {\n return;\n }\n }\n child = child._prev;\n }\n } else {\n let child = this._firstChild;\n let i = 0;\n while (child) {\n if (child.name !== skipChildName) {\n const breakTag = cb(child as T, i++);\n if (breakTag) {\n return;\n }\n }\n child = child._next;\n }\n }\n }\n\n getColGroup(col: number) {\n let c = this._firstChild as Group;\n if (!c) {\n return null;\n }\n for (let i = 0; i < this.childrenCount; i++) {\n if (c.col === col) {\n return c;\n }\n c = c._next as Group;\n }\n return null;\n }\n\n getRowGroup(row: number) {\n let c = this._firstChild as Group;\n if (!c) {\n return null;\n }\n for (let i = 0; i < this.childrenCount; i++) {\n if (c.row === row) {\n return c;\n }\n c = c._next as Group;\n }\n return null;\n }\n\n addCellGroup(cellGroup: Group) {\n if (this.childrenCount === 0 || (this.lastChild as Group).row === cellGroup.row - 1) {\n this.addChild(cellGroup);\n } else {\n // for promise cell row order in column\n let c = this._firstChild as Group;\n for (let i = 0; i < this.childrenCount; i++) {\n if (c.row === cellGroup.row - 1) {\n this.insertAfter(cellGroup, c);\n return;\n }\n c = c._next as Group;\n }\n this.addChild(cellGroup);\n }\n }\n\n getChildAt(index: number) {\n const child = super.getChildAt(index);\n if (child && child.name === 'border-rect') {\n return child._next;\n }\n return child;\n }\n\n protected tryUpdateAABBBounds(): AABBBounds {\n if (this.role === 'cell') {\n if (!this.shouldUpdateAABBBounds()) {\n return this._AABBBounds as AABBBounds;\n }\n // application.graphicService.beforeUpdateAABBBounds(this, this.stage, true, this._AABBBounds);\n const selfChange = this.shouldSelfChangeUpdateAABBBounds();\n // const selfChange = true;\n const bounds = this.doUpdateAABBBounds();\n this.addUpdateLayoutTag();\n // application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange);\n after(this, selfChange);\n\n return bounds;\n }\n return super.tryUpdateAABBBounds() as AABBBounds;\n }\n\n // 目前优化方案会导致合并单元格无法正常更新列宽(因为合并单元格更新bounds不会触发父节点bounds更新),暂时关闭优化方案\n // shouldUpdateAABBBoundsForRowMerge(): boolean {\n\n // }\n\n // shouldUpdateAABBBounds(): boolean {\n // return this.shouldSelfChangeUpdateAABBBounds();\n // // // 检索自己是否需要更新\n // // if (super.shouldUpdateAABBBounds()) {\n // // return true;\n // // }\n // // // 检索叶子节点是否有更新(如果children是叶子节点的话)\n // // if (this._childUpdateTag & UpdateTag.UPDATE_BOUNDS) {\n // // return true;\n // // }\n // // // 检索是否子group需要更新\n // // let needUpdate = false;\n // // this.forEachChildren((node: IGraphic) => {\n // // // 只查找group层级\n // // if (node.isContainer && (node as Group).shouldUpdateAABBBounds()) {\n // // needUpdate = true;\n // // return true;\n // // }\n // // return false;\n // // });\n // // return needUpdate;\n // }\n\n protected doUpdateAABBBounds(): any {\n // const groupTheme = getTheme(this).group;\n // debugger;\n if (this.role === 'cell') {\n const attribute = this.attribute;\n const { x, y, width, height } = attribute;\n this._AABBBounds.setValue(x, y, x + width, y + height);\n // 更新bounds之后需要设置父节点,否则tag丢失\n this.parent && this.parent.addChildUpdateBoundTag();\n this.clearUpdateBoundTag();\n if (this.shadowRoot) {\n // this.shadowRoot.clearUpdateBoundTag();\n this.shadowRoot.tryUpdateAABBBounds();\n }\n return this._AABBBounds;\n } else if (\n this.role === 'body' ||\n this.role === 'row-header' ||\n this.role === 'col-header' ||\n this.role === 'right-frozen' ||\n this.role === 'bottom-frozen' ||\n this.role === 'corner-header' ||\n this.role === 'corner-right-top-header' ||\n this.role === 'corner-right-bottom-header' ||\n this.role === 'corner-left-bottom-header'\n ) {\n // Infinity bounds for manual clip group\n this._AABBBounds.setValue(-Infinity, -Infinity, Infinity, Infinity);\n // 更新bounds之后需要设置父节点,否则tag丢失\n this.parent && this.parent.addChildUpdateBoundTag();\n this.clearUpdateBoundTag();\n\n if (this.shadowRoot) {\n // this.shadowRoot.clearUpdateBoundTag();\n this.shadowRoot.tryUpdateAABBBounds();\n }\n return this._AABBBounds;\n }\n return super.doUpdateAABBBounds();\n // _AABBBounds\n // const bounds = graphicService.updateGroupAABBBounds(\n // attribute,\n // getTheme(this).group,\n // this._AABBBounds,\n // this\n // ) as AABBBounds;\n\n // const { boundsPadding = groupTheme.boundsPadding } = attribute;\n // const paddingArray = parsePadding(boundsPadding);\n // if (paddingArray) {\n // bounds.expand(paddingArray);\n // }\n // // 更新bounds之后需要设置父节点,否则tag丢失\n // this.parent && this.parent.addChildUpdateBoundTag();\n // this.clearUpdateBoundTag();\n\n // this.emit('AAABBBoundsChange');\n }\n\n // update column group row number\n updateColumnRowNumber(row: number) {\n if (!this.rowNumber) {\n this.rowNumber = row;\n } else {\n this.rowNumber = Math.max(this.rowNumber, row);\n }\n }\n\n // update column height\n updateColumnHeight(cellHeight: number) {\n if (!this.colHeight) {\n this.colHeight = cellHeight;\n } else {\n this.colHeight += cellHeight;\n }\n }\n\n // doUpdateLocalMatrix() {\n // const oldX = this.attribute.x;\n // const oldY = this.attribute.y;\n // this.attribute.x = Math.floor(this.attribute.x);\n // this.attribute.y = Math.floor(this.attribute.y);\n // super.doUpdateLocalMatrix();\n // this.attribute.x = oldX;\n // this.attribute.y = oldY;\n // }\n}\n\nfunction after(group: Group, selfChange: boolean) {\n if (!group.stage || !group.stage.dirtyBounds || !group.stage.renderCount) {\n return;\n }\n // group的子元素导致的bounds更新不用做dirtyBounds\n if (group.isContainer && !selfChange) {\n return;\n }\n group.stage.dirty(group.globalAABBBounds);\n}\n\n// function dealWidthSize(values: any, attributes: any) {\n// const x = values.x ?? attributes.oldx ?? attributes.x ?? 0 + values.dx ?? attributes.dx ?? 0;\n// const y = values.y ?? attributes.oldy ?? attributes.y ?? 0 + values.dy ?? attributes.dy ?? 0;\n// const width = values.width ?? attributes.oldwidth ?? attributes.width ?? 0;\n// const height = values.height ?? attributes.oldheight ?? attributes.height ?? 0;\n// isNumber(values.width) && (values.oldwidth = values.width);\n// isNumber(values.height) && (values.oldheight = values.height);\n// isNumber(values.x) && (values.oldx = values.x);\n// isNumber(values.y) && (values.oldy = values.y);\n\n// if (Math.floor(x + width) > Math.floor(width) + Math.floor(x)) {\n// values.width = Math.ceil(width);\n// } else {\n// values.width = Math.floor(width);\n// }\n\n// if (Math.floor(y + height) > Math.floor(height) + Math.floor(y)) {\n// values.height = Math.ceil(height);\n// } else {\n// values.height = Math.floor(height);\n// }\n// isNumber(values.x) && (values.x = Math.floor(values.x));\n// isNumber(values.y) && (values.y = Math.floor(values.y));\n// }\n"]}
|