@visactor/vtable 0.9.0-alpha.0-alpha.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 +152 -0
- package/cjs/ListTable.d.ts +38 -0
- package/cjs/ListTable.js +258 -0
- package/cjs/ListTable.js.map +1 -0
- package/cjs/PivotTable.d.ts +50 -0
- package/cjs/PivotTable.js +275 -0
- package/cjs/PivotTable.js.map +1 -0
- package/cjs/body-helper/body-helper.d.ts +14 -0
- package/cjs/body-helper/body-helper.js +99 -0
- package/cjs/body-helper/body-helper.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 +52 -0
- package/cjs/body-helper/style/ProgressBarStyle.js +126 -0
- package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -0
- package/cjs/body-helper/style/Style.d.ts +85 -0
- package/cjs/body-helper/style/Style.js +200 -0
- package/cjs/body-helper/style/Style.js.map +1 -0
- package/cjs/body-helper/style.d.ts +10 -0
- package/cjs/body-helper/style.js +52 -0
- package/cjs/body-helper/style.js.map +1 -0
- package/cjs/chartType.d.ts +3 -0
- package/cjs/chartType.js +14 -0
- package/cjs/chartType.js.map +1 -0
- package/cjs/core/BaseTable.d.ts +287 -0
- package/cjs/core/BaseTable.js +1272 -0
- package/cjs/core/BaseTable.js.map +1 -0
- package/cjs/core/FouseInput.d.ts +11 -0
- package/cjs/core/FouseInput.js +38 -0
- package/cjs/core/FouseInput.js.map +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +30 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +34 -0
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -0
- package/cjs/core/tableHelper.d.ts +28 -0
- package/cjs/core/tableHelper.js +141 -0
- package/cjs/core/tableHelper.js.map +1 -0
- package/cjs/core.d.ts +3 -0
- package/cjs/core.js +24 -0
- package/cjs/core.js.map +1 -0
- package/cjs/data/CachedDataSource.d.ts +16 -0
- package/cjs/data/CachedDataSource.js +54 -0
- package/cjs/data/CachedDataSource.js.map +1 -0
- package/cjs/data/DataSource.d.ts +64 -0
- package/cjs/data/DataSource.js +294 -0
- package/cjs/data/DataSource.js.map +1 -0
- package/cjs/data/FilterDataSource.d.ts +1 -0
- package/cjs/data/FilterDataSource.js +1 -0
- package/cjs/data/FilterDataSource.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.d.ts +72 -0
- package/cjs/dataset/dataset.js +490 -0
- package/cjs/dataset/dataset.js.map +1 -0
- package/cjs/dataset/flatDataToObject.d.ts +31 -0
- package/cjs/dataset/flatDataToObject.js +71 -0
- package/cjs/dataset/flatDataToObject.js.map +1 -0
- package/cjs/event/EventHandler.d.ts +45 -0
- package/cjs/event/EventHandler.js +120 -0
- package/cjs/event/EventHandler.js.map +1 -0
- package/cjs/event/EventTarget.d.ts +11 -0
- package/cjs/event/EventTarget.js +59 -0
- package/cjs/event/EventTarget.js.map +1 -0
- package/cjs/event/chart.d.ts +2 -0
- package/cjs/event/chart.js +24 -0
- package/cjs/event/chart.js.map +1 -0
- package/cjs/event/drill.d.ts +3 -0
- package/cjs/event/drill.js +23 -0
- package/cjs/event/drill.js.map +1 -0
- package/cjs/event/event.d.ts +35 -0
- package/cjs/event/event.js +426 -0
- package/cjs/event/event.js.map +1 -0
- package/cjs/event/media-click.d.ts +2 -0
- package/cjs/event/media-click.js +58 -0
- package/cjs/event/media-click.js.map +1 -0
- package/cjs/event/scroll.d.ts +2 -0
- package/cjs/event/scroll.js +23 -0
- package/cjs/event/scroll.js.map +1 -0
- package/cjs/header-helper/header-helper.d.ts +26 -0
- package/cjs/header-helper/header-helper.js +214 -0
- package/cjs/header-helper/header-helper.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 +88 -0
- package/cjs/header-helper/style/Style.js +208 -0
- package/cjs/header-helper/style/Style.js.map +1 -0
- package/cjs/header-helper/style.d.ts +5 -0
- package/cjs/header-helper/style.js +30 -0
- package/cjs/header-helper/style.js.map +1 -0
- package/cjs/icons.d.ts +4 -0
- package/cjs/icons.js +241 -0
- package/cjs/icons.js.map +1 -0
- package/cjs/index.d.ts +17 -0
- package/cjs/index.js +95 -0
- package/cjs/index.js.map +1 -0
- package/cjs/layout/index.d.ts +1 -0
- package/cjs/layout/index.js +15 -0
- package/cjs/layout/index.js.map +1 -0
- package/cjs/layout/pivot-header-layout.d.ts +155 -0
- package/cjs/layout/pivot-header-layout.js +897 -0
- package/cjs/layout/pivot-header-layout.js.map +1 -0
- package/cjs/layout/pivot-layout.d.ts +86 -0
- package/cjs/layout/pivot-layout.js +422 -0
- package/cjs/layout/pivot-layout.js.map +1 -0
- package/cjs/layout/simple-header-layout.d.ts +67 -0
- package/cjs/layout/simple-header-layout.js +413 -0
- package/cjs/layout/simple-header-layout.js.map +1 -0
- package/cjs/menu/dom/BaseMenu.d.ts +15 -0
- package/cjs/menu/dom/BaseMenu.js +30 -0
- package/cjs/menu/dom/BaseMenu.js.map +1 -0
- package/cjs/menu/dom/Menu.d.ts +9 -0
- package/cjs/menu/dom/Menu.js +24 -0
- package/cjs/menu/dom/Menu.js.map +1 -0
- package/cjs/menu/dom/MenuHandler.d.ts +20 -0
- package/cjs/menu/dom/MenuHandler.js +134 -0
- package/cjs/menu/dom/MenuHandler.js.map +1 -0
- package/cjs/menu/dom/logic/MenuContainer.d.ts +22 -0
- package/cjs/menu/dom/logic/MenuContainer.js +110 -0
- package/cjs/menu/dom/logic/MenuContainer.js.map +1 -0
- package/cjs/menu/dom/logic/MenuElement.css +86 -0
- package/cjs/menu/dom/logic/MenuElement.d.ts +27 -0
- package/cjs/menu/dom/logic/MenuElement.js +278 -0
- package/cjs/menu/dom/logic/MenuElement.js.map +1 -0
- package/cjs/plugins/chartTypes.d.ts +3 -0
- package/cjs/plugins/chartTypes.js +6 -0
- package/cjs/plugins/chartTypes.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/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 +5 -0
- package/cjs/register.js +35 -0
- package/cjs/register.js.map +1 -0
- package/cjs/render/layout/arc.d.ts +23 -0
- package/cjs/render/layout/arc.js +20 -0
- package/cjs/render/layout/arc.js.map +1 -0
- package/cjs/render/layout/circle.d.ts +19 -0
- package/cjs/render/layout/circle.js +19 -0
- package/cjs/render/layout/circle.js.map +1 -0
- package/cjs/render/layout/container.d.ts +52 -0
- package/cjs/render/layout/container.js +99 -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 +47 -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 +25 -0
- package/cjs/render/layout/group-element.js +52 -0
- package/cjs/render/layout/group-element.js.map +1 -0
- package/cjs/render/layout/icon.d.ts +21 -0
- package/cjs/render/layout/icon.js +48 -0
- package/cjs/render/layout/icon.js.map +1 -0
- package/cjs/render/layout/image.d.ts +21 -0
- package/cjs/render/layout/image.js +20 -0
- package/cjs/render/layout/image.js.map +1 -0
- package/cjs/render/layout/index.d.ts +9 -0
- package/cjs/render/layout/index.js +25 -0
- package/cjs/render/layout/index.js.map +1 -0
- package/cjs/render/layout/line.d.ts +32 -0
- package/cjs/render/layout/line.js +88 -0
- package/cjs/render/layout/line.js.map +1 -0
- package/cjs/render/layout/percent-calc.d.ts +8 -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 +22 -0
- package/cjs/render/layout/rect.js +19 -0
- package/cjs/render/layout/rect.js.map +1 -0
- package/cjs/render/layout/text.d.ts +22 -0
- package/cjs/render/layout/text.js +26 -0
- package/cjs/render/layout/text.js.map +1 -0
- package/cjs/scenegraph/component/cell-content.d.ts +36 -0
- package/cjs/scenegraph/component/cell-content.js +100 -0
- package/cjs/scenegraph/component/cell-content.js.map +1 -0
- package/cjs/scenegraph/component/cell-mover.d.ts +15 -0
- package/cjs/scenegraph/component/cell-mover.js +107 -0
- package/cjs/scenegraph/component/cell-mover.js.map +1 -0
- package/cjs/scenegraph/component/custom.d.ts +7 -0
- package/cjs/scenegraph/component/custom.js +212 -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 +214 -0
- package/cjs/scenegraph/component/menu.js.map +1 -0
- package/cjs/scenegraph/component/table-component.d.ts +37 -0
- package/cjs/scenegraph/component/table-component.js +302 -0
- package/cjs/scenegraph/component/table-component.js.map +1 -0
- package/cjs/scenegraph/component/util.d.ts +2 -0
- package/cjs/scenegraph/component/util.js +11 -0
- package/cjs/scenegraph/component/util.js.map +1 -0
- package/cjs/scenegraph/debug-tool/debug-tool.d.ts +36 -0
- package/cjs/scenegraph/debug-tool/debug-tool.js +138 -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 +30 -0
- package/cjs/scenegraph/graphic/chart.js +66 -0
- package/cjs/scenegraph/graphic/chart.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +10 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.js +46 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.d.ts +70 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +195 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +20 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +46 -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 +36 -0
- package/cjs/scenegraph/graphic/contributions/index.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.d.ts +17 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +47 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/group.d.ts +23 -0
- package/cjs/scenegraph/graphic/group.js +94 -0
- package/cjs/scenegraph/graphic/group.js.map +1 -0
- package/cjs/scenegraph/graphic/icon.d.ts +24 -0
- package/cjs/scenegraph/graphic/icon.js +25 -0
- package/cjs/scenegraph/graphic/icon.js.map +1 -0
- package/cjs/scenegraph/graphic/text.d.ts +16 -0
- package/cjs/scenegraph/graphic/text.js +146 -0
- package/cjs/scenegraph/graphic/text.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-helper.d.ts +7 -0
- package/cjs/scenegraph/group-creater/cell-helper.js +84 -0
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.d.ts +3 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +78 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +7 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js +123 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +9 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +342 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +3 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +163 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +5 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js +64 -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 +4 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js +100 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/column-helper.d.ts +24 -0
- package/cjs/scenegraph/group-creater/column-helper.js +136 -0
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -0
- package/cjs/scenegraph/group-creater/column.d.ts +14 -0
- package/cjs/scenegraph/group-creater/column.js +57 -0
- package/cjs/scenegraph/group-creater/column.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/proxy.d.ts +45 -0
- package/cjs/scenegraph/group-creater/progress/proxy.js +267 -0
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -0
- package/cjs/scenegraph/header-icon/layout.d.ts +3 -0
- package/cjs/scenegraph/header-icon/layout.js +75 -0
- package/cjs/scenegraph/header-icon/layout.js.map +1 -0
- package/cjs/scenegraph/hover-state.d.ts +14 -0
- package/cjs/scenegraph/hover-state.js +27 -0
- package/cjs/scenegraph/hover-state.js.map +1 -0
- package/cjs/scenegraph/layout/auto-height.d.ts +2 -0
- package/cjs/scenegraph/layout/auto-height.js +50 -0
- package/cjs/scenegraph/layout/auto-height.js.map +1 -0
- package/cjs/scenegraph/layout/auto-width.d.ts +2 -0
- package/cjs/scenegraph/layout/auto-width.js +85 -0
- package/cjs/scenegraph/layout/auto-width.js.map +1 -0
- package/cjs/scenegraph/layout/compute-col-width.d.ts +3 -0
- package/cjs/scenegraph/layout/compute-col-width.js +194 -0
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -0
- package/cjs/scenegraph/layout/move-cell.d.ts +2 -0
- package/cjs/scenegraph/layout/move-cell.js +61 -0
- package/cjs/scenegraph/layout/move-cell.js.map +1 -0
- package/cjs/scenegraph/layout/update-cell.d.ts +3 -0
- package/cjs/scenegraph/layout/update-cell.js +55 -0
- package/cjs/scenegraph/layout/update-cell.js.map +1 -0
- package/cjs/scenegraph/layout/update-height.d.ts +6 -0
- package/cjs/scenegraph/layout/update-height.js +90 -0
- package/cjs/scenegraph/layout/update-height.js.map +1 -0
- package/cjs/scenegraph/layout/update-width.d.ts +2 -0
- package/cjs/scenegraph/layout/update-width.js +103 -0
- package/cjs/scenegraph/layout/update-width.js.map +1 -0
- package/cjs/scenegraph/scenegraph.d.ts +109 -0
- package/cjs/scenegraph/scenegraph.js +798 -0
- package/cjs/scenegraph/scenegraph.js.map +1 -0
- package/cjs/scenegraph/style/frame-border.d.ts +3 -0
- package/cjs/scenegraph/style/frame-border.js +43 -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 +1 -0
- package/cjs/scenegraph/utils/break-string.js +37 -0
- package/cjs/scenegraph/utils/break-string.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/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 +11 -0
- package/cjs/scenegraph/utils/get-cell-merge.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/keep-aspect-ratio.d.ts +4 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.js +16 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
- package/cjs/scenegraph/utils/measure-text.d.ts +20 -0
- package/cjs/scenegraph/utils/measure-text.js +111 -0
- package/cjs/scenegraph/utils/measure-text.js.map +1 -0
- package/cjs/scenegraph/utils/padding.d.ts +1 -0
- package/cjs/scenegraph/utils/padding.js +16 -0
- package/cjs/scenegraph/utils/padding.js.map +1 -0
- package/cjs/scenegraph/utils/text-icon-layout.d.ts +9 -0
- package/cjs/scenegraph/utils/text-icon-layout.js +237 -0
- package/cjs/scenegraph/utils/text-icon-layout.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/state/cell-move/adjust-header.d.ts +3 -0
- package/cjs/state/cell-move/adjust-header.js +20 -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 +60 -0
- package/cjs/state/cell-move/index.js.map +1 -0
- package/cjs/state/common/check-in-select.d.ts +8 -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/hover/col.d.ts +5 -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 +36 -0
- package/cjs/state/hover/is-cell-hover.js.map +1 -0
- package/cjs/state/hover/row.d.ts +5 -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 +5 -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 +13 -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/pin/index.d.ts +2 -0
- package/cjs/state/pin/index.js +10 -0
- package/cjs/state/pin/index.js.map +1 -0
- package/cjs/state/select/update-position.d.ts +4 -0
- package/cjs/state/select/update-position.js +111 -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 +41 -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 +98 -0
- package/cjs/state/spark-line/index.js.map +1 -0
- package/cjs/state/state.d.ts +155 -0
- package/cjs/state/state.js +431 -0
- package/cjs/state/state.js.map +1 -0
- package/cjs/themes/ARCO.d.ts +3 -0
- package/cjs/themes/ARCO.js +114 -0
- package/cjs/themes/ARCO.js.map +1 -0
- package/cjs/themes/BRIGHT.d.ts +3 -0
- package/cjs/themes/BRIGHT.js +71 -0
- package/cjs/themes/BRIGHT.js.map +1 -0
- package/cjs/themes/DARK.d.ts +3 -0
- package/cjs/themes/DARK.js +90 -0
- package/cjs/themes/DARK.js.map +1 -0
- package/cjs/themes/DEFAULT.d.ts +3 -0
- package/cjs/themes/DEFAULT.js +89 -0
- package/cjs/themes/DEFAULT.js.map +1 -0
- package/cjs/themes/SIMPLIFY.d.ts +3 -0
- package/cjs/themes/SIMPLIFY.js +46 -0
- package/cjs/themes/SIMPLIFY.js.map +1 -0
- package/cjs/themes/theme.d.ts +34 -0
- package/cjs/themes/theme.js +520 -0
- package/cjs/themes/theme.js.map +1 -0
- package/cjs/themes.d.ts +28 -0
- package/cjs/themes.js +52 -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 +16 -0
- package/cjs/tools/NumberMap.js +76 -0
- package/cjs/tools/NumberMap.js.map +1 -0
- package/cjs/tools/Rect.d.ts +24 -0
- package/cjs/tools/Rect.js +69 -0
- package/cjs/tools/Rect.js.map +1 -0
- package/cjs/tools/calc.d.ts +5 -0
- package/cjs/tools/calc.js +197 -0
- package/cjs/tools/calc.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/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/global.d.ts +13 -0
- package/cjs/tools/global.js +12 -0
- package/cjs/tools/global.js.map +1 -0
- package/cjs/tools/helper.d.ts +60 -0
- package/cjs/tools/helper.js +216 -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/sort.d.ts +1 -0
- package/cjs/tools/sort.js +18 -0
- package/cjs/tools/sort.js.map +1 -0
- package/cjs/tools/style.css +60 -0
- package/cjs/tools/style.d.ts +2 -0
- package/cjs/tools/style.js +11 -0
- package/cjs/tools/style.js.map +1 -0
- package/cjs/tools/text-width.d.ts +1 -0
- package/cjs/tools/text-width.js +17 -0
- package/cjs/tools/text-width.js.map +1 -0
- package/cjs/tools/util.d.ts +45 -0
- package/cjs/tools/util.js +299 -0
- package/cjs/tools/util.js.map +1 -0
- package/cjs/tooltip/BaseTooltip.d.ts +22 -0
- package/cjs/tooltip/BaseTooltip.js +35 -0
- package/cjs/tooltip/BaseTooltip.js.map +1 -0
- package/cjs/tooltip/Tooltip.d.ts +5 -0
- package/cjs/tooltip/Tooltip.js +16 -0
- package/cjs/tooltip/Tooltip.js.map +1 -0
- package/cjs/tooltip/TooltipHandler.d.ts +27 -0
- package/cjs/tooltip/TooltipHandler.js +129 -0
- package/cjs/tooltip/TooltipHandler.js.map +1 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.css +63 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.d.ts +33 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.js +152 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/cjs/ts-types/base-table.d.ts +313 -0
- package/cjs/ts-types/base-table.js +6 -0
- package/cjs/ts-types/base-table.js.map +1 -0
- package/cjs/ts-types/chartType.d.ts +53 -0
- package/cjs/ts-types/chartType.js +6 -0
- package/cjs/ts-types/chartType.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 +78 -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 +72 -0
- package/cjs/ts-types/common.js +6 -0
- package/cjs/ts-types/common.js.map +1 -0
- package/cjs/ts-types/customElement.d.ts +111 -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 +8 -0
- package/cjs/ts-types/customLayout.js +6 -0
- package/cjs/ts-types/customLayout.js.map +1 -0
- package/cjs/ts-types/events.d.ts +182 -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 +86 -0
- package/cjs/ts-types/icon.js +26 -0
- package/cjs/ts-types/icon.js.map +1 -0
- package/cjs/ts-types/index.d.ts +15 -0
- package/cjs/ts-types/index.js +28 -0
- package/cjs/ts-types/index.js.map +1 -0
- package/cjs/ts-types/list-table/define/basic-define.d.ts +36 -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/chart-define.d.ts +10 -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/image-define.d.ts +15 -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 +21 -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 +17 -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 +12 -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/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/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 +92 -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 +73 -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 +95 -0
- package/cjs/ts-types/new-data-set.js +14 -0
- package/cjs/ts-types/new-data-set.js.map +1 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +6 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +13 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
- package/cjs/ts-types/pivot-table/corner.d.ts +19 -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 +25 -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 +9 -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 +4 -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 +10 -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 +26 -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 +10 -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/image-indicator.d.ts +15 -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 +10 -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 +17 -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 +18 -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/style-define.d.ts +60 -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 +169 -0
- package/cjs/ts-types/table-engine.js +12 -0
- package/cjs/ts-types/table-engine.js.map +1 -0
- package/cjs/ts-types/theme.d.ts +88 -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 +22 -0
- package/cjs/ts-types/tooltip.js +6 -0
- package/cjs/ts-types/tooltip.js.map +1 -0
- package/dist/vtable.js +72964 -0
- package/dist/vtable.min.js +17 -0
- package/es/ListTable.d.ts +38 -0
- package/es/ListTable.js +256 -0
- package/es/ListTable.js.map +1 -0
- package/es/PivotTable.d.ts +50 -0
- package/es/PivotTable.js +282 -0
- package/es/PivotTable.js.map +1 -0
- package/es/body-helper/body-helper.d.ts +14 -0
- package/es/body-helper/body-helper.js +80 -0
- package/es/body-helper/body-helper.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 +52 -0
- package/es/body-helper/style/ProgressBarStyle.js +118 -0
- package/es/body-helper/style/ProgressBarStyle.js.map +1 -0
- package/es/body-helper/style/Style.d.ts +85 -0
- package/es/body-helper/style/Style.js +194 -0
- package/es/body-helper/style/Style.js.map +1 -0
- package/es/body-helper/style.d.ts +10 -0
- package/es/body-helper/style.js +20 -0
- package/es/body-helper/style.js.map +1 -0
- package/es/chartType.d.ts +3 -0
- package/es/chartType.js +10 -0
- package/es/chartType.js.map +1 -0
- package/es/core/BaseTable.d.ts +287 -0
- package/es/core/BaseTable.js +1281 -0
- package/es/core/BaseTable.js.map +1 -0
- package/es/core/FouseInput.d.ts +11 -0
- package/es/core/FouseInput.js +30 -0
- package/es/core/FouseInput.js.map +1 -0
- package/es/core/TABLE_EVENT_TYPE.d.ts +30 -0
- package/es/core/TABLE_EVENT_TYPE.js +30 -0
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -0
- package/es/core/tableHelper.d.ts +28 -0
- package/es/core/tableHelper.js +107 -0
- package/es/core/tableHelper.js.map +1 -0
- package/es/core.d.ts +3 -0
- package/es/core.js +6 -0
- package/es/core.js.map +1 -0
- package/es/data/CachedDataSource.d.ts +16 -0
- package/es/data/CachedDataSource.js +48 -0
- package/es/data/CachedDataSource.js.map +1 -0
- package/es/data/DataSource.d.ts +64 -0
- package/es/data/DataSource.js +267 -0
- package/es/data/DataSource.js.map +1 -0
- package/es/data/FilterDataSource.d.ts +1 -0
- package/es/data/FilterDataSource.js +1 -0
- package/es/data/FilterDataSource.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.d.ts +72 -0
- package/es/dataset/dataset.js +482 -0
- package/es/dataset/dataset.js.map +1 -0
- package/es/dataset/flatDataToObject.d.ts +31 -0
- package/es/dataset/flatDataToObject.js +63 -0
- package/es/dataset/flatDataToObject.js.map +1 -0
- package/es/event/EventHandler.d.ts +45 -0
- package/es/event/EventHandler.js +111 -0
- package/es/event/EventHandler.js.map +1 -0
- package/es/event/EventTarget.d.ts +11 -0
- package/es/event/EventTarget.js +50 -0
- package/es/event/EventTarget.js.map +1 -0
- package/es/event/chart.d.ts +2 -0
- package/es/event/chart.js +16 -0
- package/es/event/chart.js.map +1 -0
- package/es/event/drill.d.ts +3 -0
- package/es/event/drill.js +17 -0
- package/es/event/drill.js.map +1 -0
- package/es/event/event.d.ts +35 -0
- package/es/event/event.js +438 -0
- package/es/event/event.js.map +1 -0
- package/es/event/media-click.d.ts +2 -0
- package/es/event/media-click.js +54 -0
- package/es/event/media-click.js.map +1 -0
- package/es/event/scroll.d.ts +2 -0
- package/es/event/scroll.js +17 -0
- package/es/event/scroll.js.map +1 -0
- package/es/header-helper/header-helper.d.ts +26 -0
- package/es/header-helper/header-helper.js +189 -0
- package/es/header-helper/header-helper.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 +88 -0
- package/es/header-helper/style/Style.js +202 -0
- package/es/header-helper/style/Style.js.map +1 -0
- package/es/header-helper/style.d.ts +5 -0
- package/es/header-helper/style.js +14 -0
- package/es/header-helper/style.js.map +1 -0
- package/es/icons.d.ts +4 -0
- package/es/icons.js +241 -0
- package/es/icons.js.map +1 -0
- package/es/index.d.ts +17 -0
- package/es/index.js +34 -0
- package/es/index.js.map +1 -0
- package/es/layout/index.d.ts +1 -0
- package/es/layout/index.js +2 -0
- package/es/layout/index.js.map +1 -0
- package/es/layout/pivot-header-layout.d.ts +155 -0
- package/es/layout/pivot-header-layout.js +888 -0
- package/es/layout/pivot-header-layout.js.map +1 -0
- package/es/layout/pivot-layout.d.ts +86 -0
- package/es/layout/pivot-layout.js +416 -0
- package/es/layout/pivot-layout.js.map +1 -0
- package/es/layout/simple-header-layout.d.ts +67 -0
- package/es/layout/simple-header-layout.js +405 -0
- package/es/layout/simple-header-layout.js.map +1 -0
- package/es/menu/dom/BaseMenu.d.ts +15 -0
- package/es/menu/dom/BaseMenu.js +22 -0
- package/es/menu/dom/BaseMenu.js.map +1 -0
- package/es/menu/dom/Menu.d.ts +9 -0
- package/es/menu/dom/Menu.js +18 -0
- package/es/menu/dom/Menu.js.map +1 -0
- package/es/menu/dom/MenuHandler.d.ts +20 -0
- package/es/menu/dom/MenuHandler.js +132 -0
- package/es/menu/dom/MenuHandler.js.map +1 -0
- package/es/menu/dom/logic/MenuContainer.d.ts +22 -0
- package/es/menu/dom/logic/MenuContainer.js +105 -0
- package/es/menu/dom/logic/MenuContainer.js.map +1 -0
- package/es/menu/dom/logic/MenuElement.css +86 -0
- package/es/menu/dom/logic/MenuElement.d.ts +27 -0
- package/es/menu/dom/logic/MenuElement.js +277 -0
- package/es/menu/dom/logic/MenuElement.js.map +1 -0
- package/es/plugins/chartTypes.d.ts +3 -0
- package/es/plugins/chartTypes.js +2 -0
- package/es/plugins/chartTypes.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/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 +5 -0
- package/es/register.js +31 -0
- package/es/register.js.map +1 -0
- package/es/render/layout/arc.d.ts +23 -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 +19 -0
- package/es/render/layout/circle.js +11 -0
- package/es/render/layout/circle.js.map +1 -0
- package/es/render/layout/container.d.ts +52 -0
- package/es/render/layout/container.js +99 -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 +47 -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 +25 -0
- package/es/render/layout/group-element.js +46 -0
- package/es/render/layout/group-element.js.map +1 -0
- package/es/render/layout/icon.d.ts +21 -0
- package/es/render/layout/icon.js +19 -0
- package/es/render/layout/icon.js.map +1 -0
- package/es/render/layout/image.d.ts +21 -0
- package/es/render/layout/image.js +12 -0
- package/es/render/layout/image.js.map +1 -0
- package/es/render/layout/index.d.ts +9 -0
- package/es/render/layout/index.js +18 -0
- package/es/render/layout/index.js.map +1 -0
- package/es/render/layout/line.d.ts +32 -0
- package/es/render/layout/line.js +80 -0
- package/es/render/layout/line.js.map +1 -0
- package/es/render/layout/percent-calc.d.ts +8 -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 +22 -0
- package/es/render/layout/rect.js +11 -0
- package/es/render/layout/rect.js.map +1 -0
- package/es/render/layout/text.d.ts +22 -0
- package/es/render/layout/text.js +18 -0
- package/es/render/layout/text.js.map +1 -0
- package/es/scenegraph/component/cell-content.d.ts +36 -0
- package/es/scenegraph/component/cell-content.js +98 -0
- package/es/scenegraph/component/cell-content.js.map +1 -0
- package/es/scenegraph/component/cell-mover.d.ts +15 -0
- package/es/scenegraph/component/cell-mover.js +101 -0
- package/es/scenegraph/component/cell-mover.js.map +1 -0
- package/es/scenegraph/component/custom.d.ts +7 -0
- package/es/scenegraph/component/custom.js +211 -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 +212 -0
- package/es/scenegraph/component/menu.js.map +1 -0
- package/es/scenegraph/component/table-component.d.ts +37 -0
- package/es/scenegraph/component/table-component.js +304 -0
- package/es/scenegraph/component/table-component.js.map +1 -0
- package/es/scenegraph/component/util.d.ts +2 -0
- package/es/scenegraph/component/util.js +5 -0
- package/es/scenegraph/component/util.js.map +1 -0
- package/es/scenegraph/debug-tool/debug-tool.d.ts +36 -0
- package/es/scenegraph/debug-tool/debug-tool.js +126 -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 +30 -0
- package/es/scenegraph/graphic/chart.js +59 -0
- package/es/scenegraph/graphic/chart.js.map +1 -0
- package/es/scenegraph/graphic/contributions/chart-render.d.ts +10 -0
- package/es/scenegraph/graphic/contributions/chart-render.js +47 -0
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.d.ts +70 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.js +192 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +20 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.js +42 -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 +29 -0
- package/es/scenegraph/graphic/contributions/index.js.map +1 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.d.ts +17 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js +45 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/group.d.ts +23 -0
- package/es/scenegraph/graphic/group.js +86 -0
- package/es/scenegraph/graphic/group.js.map +1 -0
- package/es/scenegraph/graphic/icon.d.ts +24 -0
- package/es/scenegraph/graphic/icon.js +17 -0
- package/es/scenegraph/graphic/icon.js.map +1 -0
- package/es/scenegraph/graphic/text.d.ts +16 -0
- package/es/scenegraph/graphic/text.js +142 -0
- package/es/scenegraph/graphic/text.js.map +1 -0
- package/es/scenegraph/group-creater/cell-helper.d.ts +7 -0
- package/es/scenegraph/group-creater/cell-helper.js +93 -0
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.d.ts +3 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.js +54 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +7 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.js +102 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +9 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +337 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +3 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +165 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +5 -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 +4 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.js +86 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
- package/es/scenegraph/group-creater/column-helper.d.ts +24 -0
- package/es/scenegraph/group-creater/column-helper.js +135 -0
- package/es/scenegraph/group-creater/column-helper.js.map +1 -0
- package/es/scenegraph/group-creater/column.d.ts +14 -0
- package/es/scenegraph/group-creater/column.js +49 -0
- package/es/scenegraph/group-creater/column.js.map +1 -0
- package/es/scenegraph/group-creater/progress/proxy.d.ts +45 -0
- package/es/scenegraph/group-creater/progress/proxy.js +268 -0
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -0
- package/es/scenegraph/header-icon/layout.d.ts +3 -0
- package/es/scenegraph/header-icon/layout.js +69 -0
- package/es/scenegraph/header-icon/layout.js.map +1 -0
- package/es/scenegraph/hover-state.d.ts +14 -0
- package/es/scenegraph/hover-state.js +19 -0
- package/es/scenegraph/hover-state.js.map +1 -0
- package/es/scenegraph/layout/auto-height.d.ts +2 -0
- package/es/scenegraph/layout/auto-height.js +44 -0
- package/es/scenegraph/layout/auto-height.js.map +1 -0
- package/es/scenegraph/layout/auto-width.d.ts +2 -0
- package/es/scenegraph/layout/auto-width.js +82 -0
- package/es/scenegraph/layout/auto-width.js.map +1 -0
- package/es/scenegraph/layout/compute-col-width.d.ts +3 -0
- package/es/scenegraph/layout/compute-col-width.js +167 -0
- package/es/scenegraph/layout/compute-col-width.js.map +1 -0
- package/es/scenegraph/layout/move-cell.d.ts +2 -0
- package/es/scenegraph/layout/move-cell.js +55 -0
- package/es/scenegraph/layout/move-cell.js.map +1 -0
- package/es/scenegraph/layout/update-cell.d.ts +3 -0
- package/es/scenegraph/layout/update-cell.js +55 -0
- package/es/scenegraph/layout/update-cell.js.map +1 -0
- package/es/scenegraph/layout/update-height.d.ts +6 -0
- package/es/scenegraph/layout/update-height.js +91 -0
- package/es/scenegraph/layout/update-height.js.map +1 -0
- package/es/scenegraph/layout/update-width.d.ts +2 -0
- package/es/scenegraph/layout/update-width.js +105 -0
- package/es/scenegraph/layout/update-width.js.map +1 -0
- package/es/scenegraph/scenegraph.d.ts +109 -0
- package/es/scenegraph/scenegraph.js +818 -0
- package/es/scenegraph/scenegraph.js.map +1 -0
- package/es/scenegraph/style/frame-border.d.ts +3 -0
- package/es/scenegraph/style/frame-border.js +35 -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 +1 -0
- package/es/scenegraph/utils/break-string.js +31 -0
- package/es/scenegraph/utils/break-string.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/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 +5 -0
- package/es/scenegraph/utils/get-cell-merge.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/keep-aspect-ratio.d.ts +4 -0
- package/es/scenegraph/utils/keep-aspect-ratio.js +10 -0
- package/es/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
- package/es/scenegraph/utils/measure-text.d.ts +20 -0
- package/es/scenegraph/utils/measure-text.js +114 -0
- package/es/scenegraph/utils/measure-text.js.map +1 -0
- package/es/scenegraph/utils/padding.d.ts +1 -0
- package/es/scenegraph/utils/padding.js +8 -0
- package/es/scenegraph/utils/padding.js.map +1 -0
- package/es/scenegraph/utils/text-icon-layout.d.ts +9 -0
- package/es/scenegraph/utils/text-icon-layout.js +239 -0
- package/es/scenegraph/utils/text-icon-layout.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/state/cell-move/adjust-header.d.ts +3 -0
- package/es/state/cell-move/adjust-header.js +14 -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 +52 -0
- package/es/state/cell-move/index.js.map +1 -0
- package/es/state/common/check-in-select.d.ts +8 -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/hover/col.d.ts +5 -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 +30 -0
- package/es/state/hover/is-cell-hover.js.map +1 -0
- package/es/state/hover/row.d.ts +5 -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 +5 -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 +7 -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/pin/index.d.ts +2 -0
- package/es/state/pin/index.js +4 -0
- package/es/state/pin/index.js.map +1 -0
- package/es/state/select/update-position.d.ts +4 -0
- package/es/state/select/update-position.js +103 -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 +35 -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 +92 -0
- package/es/state/spark-line/index.js.map +1 -0
- package/es/state/state.d.ts +155 -0
- package/es/state/state.js +458 -0
- package/es/state/state.js.map +1 -0
- package/es/themes/ARCO.d.ts +3 -0
- package/es/themes/ARCO.js +110 -0
- package/es/themes/ARCO.js.map +1 -0
- package/es/themes/BRIGHT.d.ts +3 -0
- package/es/themes/BRIGHT.js +67 -0
- package/es/themes/BRIGHT.js.map +1 -0
- package/es/themes/DARK.d.ts +3 -0
- package/es/themes/DARK.js +86 -0
- package/es/themes/DARK.js.map +1 -0
- package/es/themes/DEFAULT.d.ts +3 -0
- package/es/themes/DEFAULT.js +85 -0
- package/es/themes/DEFAULT.js.map +1 -0
- package/es/themes/SIMPLIFY.d.ts +3 -0
- package/es/themes/SIMPLIFY.js +42 -0
- package/es/themes/SIMPLIFY.js.map +1 -0
- package/es/themes/theme.d.ts +34 -0
- package/es/themes/theme.js +505 -0
- package/es/themes/theme.js.map +1 -0
- package/es/themes.d.ts +28 -0
- package/es/themes.js +62 -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 +16 -0
- package/es/tools/NumberMap.js +70 -0
- package/es/tools/NumberMap.js.map +1 -0
- package/es/tools/Rect.d.ts +24 -0
- package/es/tools/Rect.js +61 -0
- package/es/tools/Rect.js.map +1 -0
- package/es/tools/calc.d.ts +5 -0
- package/es/tools/calc.js +191 -0
- package/es/tools/calc.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/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/global.d.ts +13 -0
- package/es/tools/global.js +26 -0
- package/es/tools/global.js.map +1 -0
- package/es/tools/helper.d.ts +60 -0
- package/es/tools/helper.js +216 -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/sort.d.ts +1 -0
- package/es/tools/sort.js +12 -0
- package/es/tools/sort.js.map +1 -0
- package/es/tools/style.css +60 -0
- package/es/tools/style.d.ts +2 -0
- package/es/tools/style.js +5 -0
- package/es/tools/style.js.map +1 -0
- package/es/tools/text-width.d.ts +1 -0
- package/es/tools/text-width.js +9 -0
- package/es/tools/text-width.js.map +1 -0
- package/es/tools/util.d.ts +45 -0
- package/es/tools/util.js +250 -0
- package/es/tools/util.js.map +1 -0
- package/es/tooltip/BaseTooltip.d.ts +22 -0
- package/es/tooltip/BaseTooltip.js +27 -0
- package/es/tooltip/BaseTooltip.js.map +1 -0
- package/es/tooltip/Tooltip.d.ts +5 -0
- package/es/tooltip/Tooltip.js +10 -0
- package/es/tooltip/Tooltip.js.map +1 -0
- package/es/tooltip/TooltipHandler.d.ts +27 -0
- package/es/tooltip/TooltipHandler.js +131 -0
- package/es/tooltip/TooltipHandler.js.map +1 -0
- package/es/tooltip/logic/BubbleTooltipElement.css +63 -0
- package/es/tooltip/logic/BubbleTooltipElement.d.ts +33 -0
- package/es/tooltip/logic/BubbleTooltipElement.js +149 -0
- package/es/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/es/ts-types/base-table.d.ts +313 -0
- package/es/ts-types/base-table.js +2 -0
- package/es/ts-types/base-table.js.map +1 -0
- package/es/ts-types/chartType.d.ts +53 -0
- package/es/ts-types/chartType.js +2 -0
- package/es/ts-types/chartType.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 +78 -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 +72 -0
- package/es/ts-types/common.js +2 -0
- package/es/ts-types/common.js.map +1 -0
- package/es/ts-types/customElement.d.ts +111 -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 +8 -0
- package/es/ts-types/customLayout.js +2 -0
- package/es/ts-types/customLayout.js.map +1 -0
- package/es/ts-types/events.d.ts +182 -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 +86 -0
- package/es/ts-types/icon.js +28 -0
- package/es/ts-types/icon.js.map +1 -0
- package/es/ts-types/index.d.ts +15 -0
- package/es/ts-types/index.js +30 -0
- package/es/ts-types/index.js.map +1 -0
- package/es/ts-types/list-table/define/basic-define.d.ts +36 -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/chart-define.d.ts +10 -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/image-define.d.ts +15 -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 +21 -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 +17 -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 +12 -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/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/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 +92 -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 +73 -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 +95 -0
- package/es/ts-types/new-data-set.js +13 -0
- package/es/ts-types/new-data-set.js.map +1 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +6 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +9 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
- package/es/ts-types/pivot-table/corner.d.ts +19 -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 +25 -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 +9 -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 +4 -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 +10 -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 +26 -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 +10 -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/image-indicator.d.ts +15 -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 +10 -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 +17 -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 +18 -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/style-define.d.ts +60 -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 +169 -0
- package/es/ts-types/table-engine.js +12 -0
- package/es/ts-types/table-engine.js.map +1 -0
- package/es/ts-types/theme.d.ts +88 -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 +22 -0
- package/es/ts-types/tooltip.js +2 -0
- package/es/ts-types/tooltip.js.map +1 -0
- package/package.json +95 -0
|
@@ -0,0 +1,818 @@
|
|
|
1
|
+
import { createStage, createRect, IContainPointMode, container } from "@visactor/vrender";
|
|
2
|
+
|
|
3
|
+
import { Group } from "./graphic/group";
|
|
4
|
+
|
|
5
|
+
import { createBodyColGroup, createColHeaderColGroup, createCornerHeaderColGroup, createRowHeaderColGroup } from "./group-creater/column";
|
|
6
|
+
|
|
7
|
+
import { updateAutoRowHeight } from "./layout/auto-height";
|
|
8
|
+
|
|
9
|
+
import { getCellMergeInfo } from "./utils/get-cell-merge";
|
|
10
|
+
|
|
11
|
+
import { updateColWidth } from "./layout/update-width";
|
|
12
|
+
|
|
13
|
+
import { TableComponent } from "./component/table-component";
|
|
14
|
+
|
|
15
|
+
import { updateRowHeight } from "./layout/update-height";
|
|
16
|
+
|
|
17
|
+
import { updateImageCellContentWhileResize } from "./group-creater/cell-type/image-cell";
|
|
18
|
+
|
|
19
|
+
import { getPadding } from "./utils/padding";
|
|
20
|
+
|
|
21
|
+
import { createFrameBorder } from "./style/frame-border";
|
|
22
|
+
|
|
23
|
+
import { ResizeColumnHotSpotSize } from "../tools/global";
|
|
24
|
+
|
|
25
|
+
import splitModule from "./graphic/contributions";
|
|
26
|
+
|
|
27
|
+
import { getProp } from "./utils/get-prop";
|
|
28
|
+
|
|
29
|
+
import { dealWithIcon } from "./utils/text-icon-layout";
|
|
30
|
+
|
|
31
|
+
import { SceneProxy } from "./group-creater/progress/proxy";
|
|
32
|
+
|
|
33
|
+
import { SortOrder } from "../state/state";
|
|
34
|
+
|
|
35
|
+
import { computeColWidth, computeColsWidth } from "./layout/compute-col-width";
|
|
36
|
+
|
|
37
|
+
import { moveHeaderPosition } from "./layout/move-cell";
|
|
38
|
+
|
|
39
|
+
import { updateCell } from "./group-creater/cell-helper";
|
|
40
|
+
|
|
41
|
+
container.load(splitModule);
|
|
42
|
+
|
|
43
|
+
const groupForDebug = new Group({});
|
|
44
|
+
|
|
45
|
+
groupForDebug.role = "empty";
|
|
46
|
+
|
|
47
|
+
export class Scenegraph {
|
|
48
|
+
constructor(table) {
|
|
49
|
+
this.table = table, this.hasFrozen = !1, this.clear = !0, this.stage = createStage({
|
|
50
|
+
canvas: table.canvas,
|
|
51
|
+
width: table.canvas.width,
|
|
52
|
+
height: table.canvas.height,
|
|
53
|
+
disableDirtyBounds: !1,
|
|
54
|
+
background: table.theme.underlayBackgroundColor
|
|
55
|
+
}), this.stage.defaultLayer.setTheme({
|
|
56
|
+
group: {
|
|
57
|
+
boundsPadding: 0,
|
|
58
|
+
strokeBoundsBuffer: 0,
|
|
59
|
+
lineJoin: "round"
|
|
60
|
+
}
|
|
61
|
+
}), this.initSceneGraph(), this.stage.defaultLayer.add(this.tableGroup), this.stage.table = this.table,
|
|
62
|
+
this.createComponent();
|
|
63
|
+
}
|
|
64
|
+
get width() {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
return null !== (_b = null === (_a = this.tableGroup.attribute) || void 0 === _a ? void 0 : _a.width) && void 0 !== _b ? _b : 0;
|
|
67
|
+
}
|
|
68
|
+
get height() {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
return null !== (_b = null === (_a = this.tableGroup.attribute) || void 0 === _a ? void 0 : _a.height) && void 0 !== _b ? _b : 0;
|
|
71
|
+
}
|
|
72
|
+
get x() {
|
|
73
|
+
var _a, _b;
|
|
74
|
+
return null !== (_b = null === (_a = this.tableGroup.attribute) || void 0 === _a ? void 0 : _a.x) && void 0 !== _b ? _b : 0;
|
|
75
|
+
}
|
|
76
|
+
get y() {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
return null !== (_b = null === (_a = this.tableGroup.attribute) || void 0 === _a ? void 0 : _a.y) && void 0 !== _b ? _b : 0;
|
|
79
|
+
}
|
|
80
|
+
get bodyRowStart() {
|
|
81
|
+
var _a;
|
|
82
|
+
return this.transpose || this.isPivot ? this.table.columnHeaderLevelCount : null !== (_a = this.proxy.rowStart) && void 0 !== _a ? _a : 0;
|
|
83
|
+
}
|
|
84
|
+
get bodyRowEnd() {
|
|
85
|
+
var _a;
|
|
86
|
+
return this.transpose || this.isPivot ? this.table.rowCount - 1 : null !== (_a = this.proxy.rowEnd) && void 0 !== _a ? _a : 0;
|
|
87
|
+
}
|
|
88
|
+
initSceneGraph() {
|
|
89
|
+
this.isPivot = this.table.isPivotTable(), this.transpose = this.table.options.transpose;
|
|
90
|
+
const width = this.table.tableNoFrameWidth, height = this.table.tableNoFrameHeight;
|
|
91
|
+
this.tableGroup = new Group({
|
|
92
|
+
x: 0,
|
|
93
|
+
y: 0,
|
|
94
|
+
width: width,
|
|
95
|
+
height: height,
|
|
96
|
+
clip: !0,
|
|
97
|
+
pickable: !1
|
|
98
|
+
}), this.tableGroup.role = "table";
|
|
99
|
+
const colHeaderGroup = new Group({
|
|
100
|
+
x: 0,
|
|
101
|
+
y: 0,
|
|
102
|
+
width: 0,
|
|
103
|
+
height: 0,
|
|
104
|
+
clip: !1,
|
|
105
|
+
pickable: !1
|
|
106
|
+
});
|
|
107
|
+
colHeaderGroup.role = "col-header", this.colHeaderGroup = colHeaderGroup;
|
|
108
|
+
const cornerHeaderGroup = new Group({
|
|
109
|
+
x: 0,
|
|
110
|
+
y: 0,
|
|
111
|
+
width: 0,
|
|
112
|
+
height: 0,
|
|
113
|
+
clip: !1,
|
|
114
|
+
pickable: !1
|
|
115
|
+
});
|
|
116
|
+
cornerHeaderGroup.role = "corner-header", this.cornerHeaderGroup = cornerHeaderGroup;
|
|
117
|
+
const rowHeaderGroup = new Group({
|
|
118
|
+
x: 0,
|
|
119
|
+
y: 0,
|
|
120
|
+
width: 0,
|
|
121
|
+
height: 0,
|
|
122
|
+
clip: !1,
|
|
123
|
+
pickable: !1
|
|
124
|
+
});
|
|
125
|
+
rowHeaderGroup.role = "row-header", this.rowHeaderGroup = rowHeaderGroup;
|
|
126
|
+
const bodyGroup = new Group({
|
|
127
|
+
x: 0,
|
|
128
|
+
y: 0,
|
|
129
|
+
width: width,
|
|
130
|
+
height: 0,
|
|
131
|
+
clip: !1,
|
|
132
|
+
pickable: !1
|
|
133
|
+
});
|
|
134
|
+
bodyGroup.role = "body", this.bodyGroup = bodyGroup;
|
|
135
|
+
const componentGroup = new Group({
|
|
136
|
+
x: 0,
|
|
137
|
+
y: 0,
|
|
138
|
+
width: 0,
|
|
139
|
+
height: 0,
|
|
140
|
+
clip: !1,
|
|
141
|
+
pickable: !1,
|
|
142
|
+
childrenPickable: !0
|
|
143
|
+
});
|
|
144
|
+
componentGroup.role = "component", this.componentGroup = componentGroup, this.tableGroup.addChild(bodyGroup),
|
|
145
|
+
this.tableGroup.addChild(rowHeaderGroup), this.tableGroup.addChild(colHeaderGroup),
|
|
146
|
+
this.tableGroup.addChild(cornerHeaderGroup), this.tableGroup.addChild(componentGroup);
|
|
147
|
+
}
|
|
148
|
+
createComponent() {
|
|
149
|
+
this.component = new TableComponent(this.table), this.component.addToGroup(this.componentGroup),
|
|
150
|
+
this.selectedRangeComponents = new Map, this.selectingRangeComponents = new Map;
|
|
151
|
+
}
|
|
152
|
+
createSceneGraph() {
|
|
153
|
+
this.clear = !1, computeColsWidth(this.table), this.frozenColCount = this.table.rowHeaderLevelCount,
|
|
154
|
+
this.frozenRowCount = this.table.columnHeaderLevelCount, this.proxy = new SceneProxy(this.table),
|
|
155
|
+
this.createHeaderSceneGraph(), this.transpose || this.isPivot ? this.createBodySceneGraph() : this.createBodySceneGraphForFirstScreen();
|
|
156
|
+
}
|
|
157
|
+
createHeaderSceneGraph() {
|
|
158
|
+
createCornerHeaderColGroup(this.cornerHeaderGroup, 0, 0, this.table), this.colHeaderGroup.setAttribute("x", this.cornerHeaderGroup.attribute.width),
|
|
159
|
+
createColHeaderColGroup(this.colHeaderGroup, 0, 0, this.table);
|
|
160
|
+
}
|
|
161
|
+
createBodySceneGraph() {
|
|
162
|
+
this.rowHeaderGroup.setAttribute("y", this.colHeaderGroup.attribute.height), createRowHeaderColGroup(this.rowHeaderGroup, 0, 0, this.table),
|
|
163
|
+
this.bodyGroup.setAttributes({
|
|
164
|
+
y: this.colHeaderGroup.attribute.height,
|
|
165
|
+
x: this.rowHeaderGroup.attribute.width
|
|
166
|
+
}), createBodyColGroup(this.bodyGroup, 0, 0, this.table), this.afterScenegraphCreated();
|
|
167
|
+
}
|
|
168
|
+
createBodySceneGraphForFirstScreen() {
|
|
169
|
+
this.rowHeaderGroup.setAttribute("y", this.colHeaderGroup.attribute.height), this.bodyGroup.setAttributes({
|
|
170
|
+
y: this.colHeaderGroup.attribute.height,
|
|
171
|
+
x: this.rowHeaderGroup.attribute.width
|
|
172
|
+
}), console.log("before-createBodyColGroupForFirstScreen"), this.proxy.createColGroupForFirstScreen(this.rowHeaderGroup, this.bodyGroup, 0, 0, this.table),
|
|
173
|
+
console.log("after-createBodyColGroupForFirstScreen"), this.afterScenegraphCreated();
|
|
174
|
+
}
|
|
175
|
+
renderSceneGraph() {
|
|
176
|
+
this.stage.render();
|
|
177
|
+
}
|
|
178
|
+
getCellOld(col, row) {
|
|
179
|
+
var _a, _b, _c, _d;
|
|
180
|
+
let element;
|
|
181
|
+
if (element = this.hasFrozen && col < this.table.frozenColCount && row < this.table.frozenRowCount ? null === (_a = this.cornerHeaderGroup.getChildAt(col)) || void 0 === _a ? void 0 : _a.getChildAt(row) : row < this.table.frozenRowCount ? null === (_b = this.colHeaderGroup.getChildAt(this.hasFrozen ? col - this.table.frozenColCount : col)) || void 0 === _b ? void 0 : _b.getChildAt(row) : col < this.table.frozenColCount ? null === (_c = this.rowHeaderGroup.getChildAt(col)) || void 0 === _c ? void 0 : _c.getChildAt(row - this.table.frozenRowCount) : null === (_d = this.bodyGroup.getChildAt(col - this.table.frozenColCount)) || void 0 === _d ? void 0 : _d.getChildAt(row - this.table.frozenRowCount),
|
|
182
|
+
element && "shadow-cell" === element.role) {
|
|
183
|
+
const range = this.table.getCellRange(col, row);
|
|
184
|
+
element = this.getCell(range.start.col, range.start.row);
|
|
185
|
+
}
|
|
186
|
+
return element || void 0;
|
|
187
|
+
}
|
|
188
|
+
getColGroupOld(col, isHeader = !1) {
|
|
189
|
+
let element;
|
|
190
|
+
return element = col < this.frozenColCount && isHeader ? this.cornerHeaderGroup.getChildAt(col) : col < this.frozenColCount ? this.rowHeaderGroup.getChildAt(col) : isHeader ? this.rowHeaderGroup.getChildAt(col - this.frozenColCount) : this.bodyGroup.getChildAt(col - this.frozenColCount),
|
|
191
|
+
element || void 0;
|
|
192
|
+
}
|
|
193
|
+
getCell(col, row, getShadow) {
|
|
194
|
+
var _a;
|
|
195
|
+
let cell = null === (_a = this.getColGroup(col, row < this.frozenRowCount)) || void 0 === _a ? void 0 : _a.getRowGroup(row);
|
|
196
|
+
if (cell && "shadow-cell" === cell.role && !getShadow) {
|
|
197
|
+
const range = this.table.getCellRange(col, row);
|
|
198
|
+
cell = this.getCell(range.start.col, range.start.row);
|
|
199
|
+
}
|
|
200
|
+
return cell || groupForDebug;
|
|
201
|
+
}
|
|
202
|
+
getColGroup(col, isCornerOrColHeader = !1) {
|
|
203
|
+
let element;
|
|
204
|
+
return element = col < this.frozenColCount && isCornerOrColHeader ? this.cornerHeaderGroup.getColGroup(col) : col < this.frozenColCount ? this.rowHeaderGroup.getColGroup(col) : isCornerOrColHeader ? this.colHeaderGroup.getColGroup(col) : this.bodyGroup.getColGroup(col),
|
|
205
|
+
element || void 0;
|
|
206
|
+
}
|
|
207
|
+
getCellSize(col, row) {
|
|
208
|
+
const cell = this.getCell(col, row), mergeInfo = getCellMergeInfo(this.table, col, row);
|
|
209
|
+
let width = cell.attribute.width, height = cell.attribute.height;
|
|
210
|
+
return mergeInfo && (width /= mergeInfo.end.col - mergeInfo.start.col + 1, height /= mergeInfo.end.row - mergeInfo.start.row + 1),
|
|
211
|
+
{
|
|
212
|
+
width: width,
|
|
213
|
+
height: height
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
updateNextFrame() {
|
|
217
|
+
this.resetAllSelectComponent(), this.stage.renderNextFrame();
|
|
218
|
+
}
|
|
219
|
+
resetAllSelectComponent() {
|
|
220
|
+
this.selectingRangeComponents.forEach(((selectComp, key) => {
|
|
221
|
+
const [startCol, startRow, endCol, endRow] = key.split("-");
|
|
222
|
+
let cellsBounds;
|
|
223
|
+
for (let i = parseInt(startCol, 10); i <= parseInt(endCol, 10); i++) for (let j = parseInt(startRow, 10); j <= parseInt(endRow, 10); j++) {
|
|
224
|
+
const cellGroup = this.getCell(i, j);
|
|
225
|
+
cellGroup.AABBBounds.width();
|
|
226
|
+
const bounds = cellGroup.globalAABBBounds;
|
|
227
|
+
cellsBounds ? cellsBounds.union(bounds) : cellsBounds = bounds;
|
|
228
|
+
}
|
|
229
|
+
selectComp.rect.setAttributes({
|
|
230
|
+
x: cellsBounds.x1 - this.tableGroup.attribute.x,
|
|
231
|
+
y: cellsBounds.y1 - this.tableGroup.attribute.y,
|
|
232
|
+
width: cellsBounds.width(),
|
|
233
|
+
height: cellsBounds.height(),
|
|
234
|
+
visible: !0
|
|
235
|
+
});
|
|
236
|
+
const isNearRowHeader = parseInt(startCol, 10) === this.table.frozenColCount, isNearColHeader = parseInt(startRow, 10) === this.table.frozenRowCount;
|
|
237
|
+
isNearRowHeader && selectComp.rect.attribute.stroke[3] || isNearColHeader && selectComp.rect.attribute.stroke[0] ? (isNearRowHeader && this.tableGroup.insertAfter(selectComp.rect, "columnHeader" === selectComp.role ? this.cornerHeaderGroup : this.rowHeaderGroup),
|
|
238
|
+
isNearColHeader && this.tableGroup.insertAfter(selectComp.rect, "rowHeader" === selectComp.role ? this.cornerHeaderGroup : this.colHeaderGroup),
|
|
239
|
+
selectComp.rect.attribute.x < this.rowHeaderGroup.attribute.width && this.table.scrollLeft > 0 && ("body" === selectComp.role || "columnHeader" === selectComp.role) && selectComp.rect.setAttributes({
|
|
240
|
+
x: selectComp.rect.attribute.x + (this.rowHeaderGroup.attribute.width - selectComp.rect.attribute.x),
|
|
241
|
+
width: selectComp.rect.attribute.width - (this.rowHeaderGroup.attribute.width - selectComp.rect.attribute.x)
|
|
242
|
+
}), selectComp.rect.attribute.y < this.colHeaderGroup.attribute.height && this.table.scrollTop > 0 && ("body" === selectComp.role || "rowHeader" === selectComp.role) && selectComp.rect.setAttributes({
|
|
243
|
+
y: selectComp.rect.attribute.y + (this.colHeaderGroup.attribute.height - selectComp.rect.attribute.y),
|
|
244
|
+
height: selectComp.rect.attribute.height - (this.colHeaderGroup.attribute.height - selectComp.rect.attribute.y)
|
|
245
|
+
})) : this.tableGroup.insertAfter(selectComp.rect, "body" === selectComp.role ? this.bodyGroup : "columnHeader" === selectComp.role ? this.colHeaderGroup : "rowHeader" === selectComp.role ? this.rowHeaderGroup : this.cornerHeaderGroup);
|
|
246
|
+
})), this.selectedRangeComponents.forEach(((selectComp, key) => {
|
|
247
|
+
const [startCol, startRow, endCol, endRow] = key.split("-");
|
|
248
|
+
let cellsBounds;
|
|
249
|
+
for (let i = parseInt(startCol, 10); i <= parseInt(endCol, 10); i++) for (let j = parseInt(startRow, 10); j <= parseInt(endRow, 10); j++) {
|
|
250
|
+
const cellGroup = this.getCell(i, j);
|
|
251
|
+
cellGroup.AABBBounds.width();
|
|
252
|
+
const bounds = cellGroup.globalAABBBounds;
|
|
253
|
+
cellsBounds ? cellsBounds.union(bounds) : cellsBounds = bounds;
|
|
254
|
+
}
|
|
255
|
+
selectComp.rect.setAttributes({
|
|
256
|
+
x: cellsBounds.x1 - this.tableGroup.attribute.x,
|
|
257
|
+
y: cellsBounds.y1 - this.tableGroup.attribute.y,
|
|
258
|
+
width: cellsBounds.width(),
|
|
259
|
+
height: cellsBounds.height(),
|
|
260
|
+
visible: !0
|
|
261
|
+
});
|
|
262
|
+
const isNearRowHeader = parseInt(startCol, 10) === this.table.frozenColCount, isNearColHeader = parseInt(startRow, 10) === this.table.frozenRowCount;
|
|
263
|
+
isNearRowHeader && selectComp.rect.attribute.stroke[3] || isNearColHeader && selectComp.rect.attribute.stroke[0] ? (isNearRowHeader && this.tableGroup.insertAfter(selectComp.rect, "columnHeader" === selectComp.role ? this.cornerHeaderGroup : this.rowHeaderGroup),
|
|
264
|
+
isNearColHeader && this.tableGroup.insertAfter(selectComp.rect, "rowHeader" === selectComp.role ? this.cornerHeaderGroup : this.colHeaderGroup),
|
|
265
|
+
selectComp.rect.attribute.x < this.rowHeaderGroup.attribute.width && this.table.scrollLeft > 0 && ("body" === selectComp.role || "columnHeader" === selectComp.role) && selectComp.rect.setAttributes({
|
|
266
|
+
x: selectComp.rect.attribute.x + (this.rowHeaderGroup.attribute.width - selectComp.rect.attribute.x),
|
|
267
|
+
width: selectComp.rect.attribute.width - (this.rowHeaderGroup.attribute.width - selectComp.rect.attribute.x)
|
|
268
|
+
}), selectComp.rect.attribute.y < this.colHeaderGroup.attribute.height && this.table.scrollTop > 0 && ("body" === selectComp.role || "rowHeader" === selectComp.role) && selectComp.rect.setAttributes({
|
|
269
|
+
y: selectComp.rect.attribute.y + (this.colHeaderGroup.attribute.height - selectComp.rect.attribute.y),
|
|
270
|
+
height: selectComp.rect.attribute.height - (this.colHeaderGroup.attribute.height - selectComp.rect.attribute.y)
|
|
271
|
+
})) : this.tableGroup.insertAfter(selectComp.rect, "body" === selectComp.role ? this.bodyGroup : "columnHeader" === selectComp.role ? this.colHeaderGroup : "rowHeader" === selectComp.role ? this.rowHeaderGroup : this.cornerHeaderGroup);
|
|
272
|
+
}));
|
|
273
|
+
}
|
|
274
|
+
removeInteractionBorder(col, row) {
|
|
275
|
+
const cellGroup = this.getCell(col, row);
|
|
276
|
+
cellGroup.setAttribute("highlightStroke", void 0), cellGroup.setAttribute("highlightStrokeArrayWidth", void 0),
|
|
277
|
+
cellGroup.setAttribute("highlightStrokeArrayColor", void 0);
|
|
278
|
+
}
|
|
279
|
+
hideHoverIcon(col, row) {
|
|
280
|
+
if (-1 === col || -1 === row) return;
|
|
281
|
+
hideIcon(this, this.getCell(col, row), "mouseenter_cell");
|
|
282
|
+
}
|
|
283
|
+
showHoverIcon(col, row) {
|
|
284
|
+
if (-1 === col || -1 === row) return;
|
|
285
|
+
showIcon(this, this.getCell(col, row), "mouseenter_cell");
|
|
286
|
+
}
|
|
287
|
+
hideClickIcon(col, row) {
|
|
288
|
+
if (-1 === col || -1 === row) return;
|
|
289
|
+
hideIcon(this, this.getCell(col, row), "click_cell");
|
|
290
|
+
}
|
|
291
|
+
showClickIcon(col, row) {
|
|
292
|
+
if (-1 === col || -1 === row) return;
|
|
293
|
+
showIcon(this, this.getCell(col, row), "click_cell");
|
|
294
|
+
}
|
|
295
|
+
deactivateChart(col, row) {
|
|
296
|
+
var _a, _b;
|
|
297
|
+
if (-1 === col || -1 === row) return;
|
|
298
|
+
const cellGroup = this.getCell(col, row);
|
|
299
|
+
null === (_b = null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) || void 0 === _b || _b.call(_a);
|
|
300
|
+
}
|
|
301
|
+
activateChart(col, row) {
|
|
302
|
+
var _a, _b;
|
|
303
|
+
if (-1 === col || -1 === row) return;
|
|
304
|
+
const cellGroup = this.getCell(col, row);
|
|
305
|
+
null === (_b = null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.activate) || void 0 === _b || _b.call(_a, this.table);
|
|
306
|
+
}
|
|
307
|
+
createCellSelectBorder(start_Col, start_Row, end_Col, end_Row, selectRangeType, selectId, strokes) {
|
|
308
|
+
var _a, _b, _c, _d;
|
|
309
|
+
const startCol = Math.min(start_Col, end_Col), startRow = Math.min(start_Row, end_Row), endCol = Math.max(start_Col, end_Col), endRow = Math.max(start_Row, end_Row);
|
|
310
|
+
let cellsBounds;
|
|
311
|
+
for (let i = startCol; i <= endCol; i++) for (let j = startRow; j <= endRow; j++) {
|
|
312
|
+
const cellGroup = this.getCell(i, j);
|
|
313
|
+
if ("shadow-cell" === cellGroup.role) continue;
|
|
314
|
+
const bounds = cellGroup.globalAABBBounds;
|
|
315
|
+
cellsBounds ? cellsBounds.union(bounds) : cellsBounds = bounds;
|
|
316
|
+
}
|
|
317
|
+
const theme = this.table.theme, bodyClickBorderColor = null === (_a = theme.selectionStyle) || void 0 === _a ? void 0 : _a.cellBorderColor, bodyClickLineWidth = null === (_b = theme.selectionStyle) || void 0 === _b ? void 0 : _b.cellBorderLineWidth, rect = createRect({
|
|
318
|
+
pickable: !1,
|
|
319
|
+
fill: !0,
|
|
320
|
+
fillColor: null !== (_d = null === (_c = theme.selectionStyle) || void 0 === _c ? void 0 : _c.cellBgColor) && void 0 !== _d ? _d : "rgba(0, 0, 255,0.1)",
|
|
321
|
+
strokeColor: bodyClickBorderColor,
|
|
322
|
+
lineWidth: bodyClickLineWidth,
|
|
323
|
+
stroke: strokes,
|
|
324
|
+
x: cellsBounds.x1 - this.tableGroup.attribute.x,
|
|
325
|
+
y: cellsBounds.y1 - this.tableGroup.attribute.y,
|
|
326
|
+
width: cellsBounds.width(),
|
|
327
|
+
height: cellsBounds.height(),
|
|
328
|
+
visible: !0
|
|
329
|
+
});
|
|
330
|
+
this.lastSelectId = selectId, this.selectingRangeComponents.set(`${startCol}-${startRow}-${endCol}-${endRow}-${selectId}`, {
|
|
331
|
+
rect: rect,
|
|
332
|
+
role: selectRangeType
|
|
333
|
+
}), this.tableGroup.insertAfter(rect, "body" === selectRangeType ? this.bodyGroup : "columnHeader" === selectRangeType ? this.colHeaderGroup : "rowHeader" === selectRangeType ? this.rowHeaderGroup : this.cornerHeaderGroup);
|
|
334
|
+
}
|
|
335
|
+
moveSelectingRangeComponentsToSelectedRangeComponents() {
|
|
336
|
+
this.selectingRangeComponents.forEach(((rangeComponent, key) => {
|
|
337
|
+
this.selectedRangeComponents.get(key) && this.selectedRangeComponents.get(key).rect.delete(),
|
|
338
|
+
this.selectedRangeComponents.set(key, rangeComponent);
|
|
339
|
+
})), this.selectingRangeComponents = new Map, this.updateNextFrame();
|
|
340
|
+
}
|
|
341
|
+
deleteLastSelectedRangeComponents() {
|
|
342
|
+
this.selectedRangeComponents.forEach(((selectComp, key) => {
|
|
343
|
+
key.split("-")[4] === this.lastSelectId && (selectComp.rect.delete(), this.selectedRangeComponents.delete(key));
|
|
344
|
+
}));
|
|
345
|
+
}
|
|
346
|
+
deleteAllSelectBorder() {
|
|
347
|
+
this.selectedRangeComponents.forEach(((selectComp, key) => {
|
|
348
|
+
selectComp.rect.delete();
|
|
349
|
+
})), this.selectedRangeComponents = new Map;
|
|
350
|
+
}
|
|
351
|
+
updateCellSelectBorder(newStartCol, newStartRow, newEndCol, newEndRow) {
|
|
352
|
+
let startCol = Math.min(newEndCol, newStartCol), startRow = Math.min(newEndRow, newStartRow), endCol = Math.max(newEndCol, newStartCol), endRow = Math.max(newEndRow, newStartRow);
|
|
353
|
+
const extendSelectRange = () => {
|
|
354
|
+
let isExtend = !1;
|
|
355
|
+
for (let col = startCol; col <= endCol; col++) {
|
|
356
|
+
if (col === startCol) for (let row = startRow; row <= endRow; row++) {
|
|
357
|
+
const mergeInfo = getCellMergeInfo(this.table, col, row);
|
|
358
|
+
if (mergeInfo && mergeInfo.start.col < startCol) {
|
|
359
|
+
startCol = mergeInfo.start.col, isExtend = !0;
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
if (!isExtend && col === endCol) for (let row = startRow; row <= endRow; row++) {
|
|
364
|
+
const mergeInfo = getCellMergeInfo(this.table, col, row);
|
|
365
|
+
if (mergeInfo && mergeInfo.end.col > endCol) {
|
|
366
|
+
endCol = mergeInfo.end.col, isExtend = !0;
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
if (isExtend) break;
|
|
371
|
+
}
|
|
372
|
+
if (!isExtend) for (let row = startRow; row <= endRow; row++) {
|
|
373
|
+
if (row === startRow) for (let col = startCol; col <= endCol; col++) {
|
|
374
|
+
const mergeInfo = getCellMergeInfo(this.table, col, row);
|
|
375
|
+
if (mergeInfo && mergeInfo.start.row < startRow) {
|
|
376
|
+
startRow = mergeInfo.start.row, isExtend = !0;
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
if (!isExtend && row === endRow) for (let col = startCol; col <= endCol; col++) {
|
|
381
|
+
const mergeInfo = getCellMergeInfo(this.table, col, row);
|
|
382
|
+
if (mergeInfo && mergeInfo.end.row > endRow) {
|
|
383
|
+
endRow = mergeInfo.end.row, isExtend = !0;
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
if (isExtend) break;
|
|
388
|
+
}
|
|
389
|
+
isExtend && extendSelectRange();
|
|
390
|
+
};
|
|
391
|
+
extendSelectRange(), this.selectingRangeComponents.forEach(((selectComp, key) => {
|
|
392
|
+
selectComp.rect.delete();
|
|
393
|
+
})), this.selectingRangeComponents = new Map;
|
|
394
|
+
let needRowHeader = !1, needColumnHeader = !1, needBody = !1, needCornerHeader = !1;
|
|
395
|
+
if (startCol <= this.table.frozenColCount - 1 && startRow <= this.table.frozenRowCount - 1 && (needCornerHeader = !0),
|
|
396
|
+
startCol <= this.table.frozenColCount - 1 && endRow >= this.table.frozenRowCount && (needRowHeader = !0),
|
|
397
|
+
startRow <= this.table.frozenRowCount - 1 && endCol >= this.table.frozenColCount && (needColumnHeader = !0),
|
|
398
|
+
endCol >= this.table.frozenColCount && endRow >= this.table.frozenRowCount && (needBody = !0),
|
|
399
|
+
needCornerHeader) {
|
|
400
|
+
const cornerEndCol = Math.min(endCol, this.table.frozenColCount - 1), cornerEndRow = Math.min(endRow, this.table.frozenRowCount - 1), strokeArray = [ !0, !needColumnHeader, !needRowHeader, !0 ];
|
|
401
|
+
this.createCellSelectBorder(startCol, startRow, cornerEndCol, cornerEndRow, "cornerHeader", `${startCol}${startRow}${endCol}${endRow}`, strokeArray);
|
|
402
|
+
}
|
|
403
|
+
if (needColumnHeader) {
|
|
404
|
+
const columnHeaderStartCol = Math.max(startCol, this.table.frozenColCount), columnHeaderEndRow = Math.min(endRow, this.table.frozenRowCount - 1), strokeArray = [ !0, !0, !needBody, !needCornerHeader ];
|
|
405
|
+
this.createCellSelectBorder(columnHeaderStartCol, startRow, endCol, columnHeaderEndRow, "columnHeader", `${startCol}${startRow}${endCol}${endRow}`, strokeArray);
|
|
406
|
+
}
|
|
407
|
+
if (needRowHeader) {
|
|
408
|
+
const columnHeaderStartRow = Math.max(startRow, this.table.frozenRowCount), columnHeaderEndCol = Math.min(endCol, this.table.frozenColCount - 1), strokeArray = [ !needCornerHeader, !needBody, !0, !0 ];
|
|
409
|
+
this.createCellSelectBorder(startCol, columnHeaderStartRow, columnHeaderEndCol, endRow, "rowHeader", `${startCol}${startRow}${endCol}${endRow}`, strokeArray);
|
|
410
|
+
}
|
|
411
|
+
if (needBody) {
|
|
412
|
+
const columnHeaderStartCol = Math.max(startCol, this.table.frozenColCount), columnHeaderStartRow = Math.max(startRow, this.table.frozenRowCount), strokeArray = [ !needColumnHeader, !0, !0, !needRowHeader ];
|
|
413
|
+
this.createCellSelectBorder(columnHeaderStartCol, columnHeaderStartRow, endCol, endRow, "body", `${startCol}${startRow}${endCol}${endRow}`, strokeArray);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
getIcon(col, row, x, y) {
|
|
417
|
+
let pickMark;
|
|
418
|
+
return this.getCell(col, row).forEachChildren((mark => {
|
|
419
|
+
"icon" === mark.role && mark.containsPoint(x, y, IContainPointMode.GLOBAL) && (pickMark = mark);
|
|
420
|
+
})), pickMark;
|
|
421
|
+
}
|
|
422
|
+
setIconHoverStyle(icon, col, row, cellGroup) {
|
|
423
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
424
|
+
if (icon.attribute.backgroundColor) {
|
|
425
|
+
let iconBack = icon.parent.getChildByName("icon-back");
|
|
426
|
+
iconBack ? iconBack.setAttributes({
|
|
427
|
+
x: (null !== (_a = icon.attribute.x) && void 0 !== _a ? _a : 0) + (null !== (_b = icon.attribute.dx) && void 0 !== _b ? _b : 0) + (icon.AABBBounds.width() - icon.backgroundWidth) / 2,
|
|
428
|
+
y: (null !== (_c = icon.attribute.y) && void 0 !== _c ? _c : 0) + (icon.AABBBounds.height() - icon.backgroundHeight) / 2,
|
|
429
|
+
width: icon.backgroundWidth,
|
|
430
|
+
height: icon.backgroundHeight,
|
|
431
|
+
fillColor: icon.attribute.backgroundColor,
|
|
432
|
+
borderRadius: 5,
|
|
433
|
+
visible: !0
|
|
434
|
+
}) : (iconBack = createRect({
|
|
435
|
+
x: (null !== (_d = icon.attribute.x) && void 0 !== _d ? _d : 0) + (null !== (_e = icon.attribute.dx) && void 0 !== _e ? _e : 0) + (icon.AABBBounds.width() - icon.backgroundWidth) / 2,
|
|
436
|
+
y: (null !== (_f = icon.attribute.y) && void 0 !== _f ? _f : 0) + (icon.AABBBounds.height() - icon.backgroundHeight) / 2,
|
|
437
|
+
width: icon.backgroundWidth,
|
|
438
|
+
height: icon.backgroundHeight,
|
|
439
|
+
fillColor: icon.attribute.backgroundColor,
|
|
440
|
+
borderRadius: 5,
|
|
441
|
+
pickable: !1,
|
|
442
|
+
visible: !0
|
|
443
|
+
}), iconBack.name = "icon-back"), icon.parent.insertBefore(iconBack, icon);
|
|
444
|
+
}
|
|
445
|
+
if (icon.attribute.hoverImage && icon.attribute.image !== icon.attribute.hoverImage && (icon.image = icon.attribute.hoverImage),
|
|
446
|
+
icon.tooltip) {
|
|
447
|
+
const {x1: left, x2: right, y1: top, y2: bottom} = icon.globalAABBBounds, tooltipOptions = {
|
|
448
|
+
content: icon.tooltip.title,
|
|
449
|
+
referencePosition: {
|
|
450
|
+
rect: {
|
|
451
|
+
left: left - this.table.tableX,
|
|
452
|
+
right: right - this.table.tableX,
|
|
453
|
+
top: top - this.table.tableY,
|
|
454
|
+
bottom: bottom - this.table.tableY,
|
|
455
|
+
width: icon.globalAABBBounds.width(),
|
|
456
|
+
height: icon.globalAABBBounds.height()
|
|
457
|
+
},
|
|
458
|
+
placement: icon.tooltip.placement
|
|
459
|
+
},
|
|
460
|
+
style: Object.assign({}, null === (_g = this.table.internalProps.theme) || void 0 === _g ? void 0 : _g.tooltipStyle, null === (_h = icon.tooltip) || void 0 === _h ? void 0 : _h.style)
|
|
461
|
+
};
|
|
462
|
+
this.table.internalProps.tooltipHandler.isBinded(tooltipOptions) || this.table.showTooltip(col, row, tooltipOptions);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
setIconNormalStyle(icon, col, row) {
|
|
466
|
+
const iconBack = icon.parent.getChildByName("icon-back");
|
|
467
|
+
iconBack && iconBack.setAttribute("visible", !1), icon.attribute.hoverImage && icon.attribute.image !== icon.attribute.originImage && (icon.image = icon.attribute.originImage);
|
|
468
|
+
}
|
|
469
|
+
updateColWidth(col, detaX) {
|
|
470
|
+
updateColWidth(this, col, detaX), this.updateContainerWidth(col, detaX);
|
|
471
|
+
}
|
|
472
|
+
updateAutoColWidth(col) {
|
|
473
|
+
const oldWidth = this.table.getColWidth(col), newWidth = computeColWidth(col, 0, this.table.rowCount - 1, this.table, !0);
|
|
474
|
+
newWidth !== oldWidth && this.updateColWidth(col, newWidth - oldWidth);
|
|
475
|
+
}
|
|
476
|
+
updateTableSize() {
|
|
477
|
+
var _a, _b;
|
|
478
|
+
this.tableGroup.setAttributes({
|
|
479
|
+
width: Math.min(this.table.tableNoFrameWidth, Math.max(this.colHeaderGroup.attribute.width, this.bodyGroup.attribute.width, 0) + Math.max(this.cornerHeaderGroup.attribute.width, this.rowHeaderGroup.attribute.width, 0)),
|
|
480
|
+
height: Math.min(this.table.tableNoFrameHeight, (null !== (_a = this.colHeaderGroup.attribute.height) && void 0 !== _a ? _a : 0) + (null !== (_b = this.bodyGroup.attribute.height) && void 0 !== _b ? _b : 0))
|
|
481
|
+
}), this.tableGroup.border && this.tableGroup.border.setAttributes({
|
|
482
|
+
width: this.tableGroup.attribute.width + this.tableGroup.border.attribute.lineWidth,
|
|
483
|
+
height: this.tableGroup.attribute.height + this.tableGroup.border.attribute.lineWidth
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
updateRowHeight(row, detaY) {
|
|
487
|
+
updateRowHeight(this, row, detaY), this.updateContainerHeight(row, detaY);
|
|
488
|
+
}
|
|
489
|
+
updateContainerWidth(col, detaX) {
|
|
490
|
+
col < this.frozenColCount ? (this.rowHeaderGroup.setDeltaWidth(detaX), this.cornerHeaderGroup.setDeltaWidth(detaX),
|
|
491
|
+
this.colHeaderGroup.setDeltaX(detaX), this.bodyGroup.setDeltaX(detaX)) : (this.colHeaderGroup.setDeltaWidth(detaX),
|
|
492
|
+
this.bodyGroup.setDeltaWidth(detaX)), this.updateTableSize(), this.component.updateScrollBar(),
|
|
493
|
+
this.updateNextFrame();
|
|
494
|
+
}
|
|
495
|
+
updateContainerHeight(row, detaY) {
|
|
496
|
+
row < this.frozenRowCount ? (this.colHeaderGroup.setDeltaHeight(detaY), this.cornerHeaderGroup.setDeltaHeight(detaY),
|
|
497
|
+
this.rowHeaderGroup.setDeltaY(detaY), this.bodyGroup.setDeltaY(detaY)) : (this.rowHeaderGroup.setDeltaHeight(detaY),
|
|
498
|
+
this.bodyGroup.setDeltaHeight(detaY)), this.updateTableSize(), this.component.updateScrollBar(),
|
|
499
|
+
this.updateNextFrame();
|
|
500
|
+
}
|
|
501
|
+
setColWidth(col, width) {
|
|
502
|
+
const oldWidth = this.table.getColWidth(col);
|
|
503
|
+
oldWidth !== width && this.updateColWidth(col, width - oldWidth);
|
|
504
|
+
}
|
|
505
|
+
setRowHeight(row, height) {
|
|
506
|
+
const oldHeight = this.table.getRowHeight(row);
|
|
507
|
+
this.updateRowHeight(row, height - oldHeight);
|
|
508
|
+
}
|
|
509
|
+
setX(x) {
|
|
510
|
+
this.colHeaderGroup.attribute.width + x !== this.bodyGroup.attribute.x && (this.bodyGroup.setAttribute("x", this.rowHeaderGroup.attribute.width + x),
|
|
511
|
+
this.colHeaderGroup.setAttribute("x", this.rowHeaderGroup.attribute.width + x),
|
|
512
|
+
this.updateNextFrame());
|
|
513
|
+
}
|
|
514
|
+
setY(y) {
|
|
515
|
+
if (this.transpose || this.isPivot) {
|
|
516
|
+
if (this.colHeaderGroup.attribute.height + y === this.bodyGroup.attribute.y) return;
|
|
517
|
+
this.bodyGroup.setAttribute("y", this.colHeaderGroup.attribute.height + y), this.rowHeaderGroup.setAttribute("y", this.colHeaderGroup.attribute.height + y),
|
|
518
|
+
this.updateNextFrame();
|
|
519
|
+
} else this.table.scenegraph.proxy && this.table.scenegraph.proxy.setY(-y);
|
|
520
|
+
}
|
|
521
|
+
setBodyAndRowHeaderY(y) {
|
|
522
|
+
this.colHeaderGroup.attribute.height + y !== this.bodyGroup.attribute.y && (this.bodyGroup.setAttribute("y", this.colHeaderGroup.attribute.height + y),
|
|
523
|
+
this.rowHeaderGroup.setAttribute("y", this.colHeaderGroup.attribute.height + y),
|
|
524
|
+
this.updateNextFrame());
|
|
525
|
+
}
|
|
526
|
+
afterScenegraphCreated() {
|
|
527
|
+
const {autoRowHeight: autoRowHeight} = this.table.internalProps;
|
|
528
|
+
autoRowHeight && updateAutoRowHeight(this), this.dealWidthMode(), this.dealFrozen(),
|
|
529
|
+
this.createFrameBorder(), this.component.updateScrollBar();
|
|
530
|
+
}
|
|
531
|
+
dealWidthMode() {
|
|
532
|
+
const table = this.table;
|
|
533
|
+
if ("adaptive" === table.widthMode) {
|
|
534
|
+
const totalDrawWidth = table.tableNoFrameWidth;
|
|
535
|
+
let actualWidth = 0;
|
|
536
|
+
for (let col = 0; col < table.colCount; col++) actualWidth += table.getColWidth(col);
|
|
537
|
+
const factor = totalDrawWidth / actualWidth;
|
|
538
|
+
for (let col = 0; col < table.colCount; col++) {
|
|
539
|
+
let colWidth;
|
|
540
|
+
colWidth = col === table.colCount - 1 ? totalDrawWidth - table.getColsWidth(0, table.colCount - 2) : Math.round(table.getColWidth(col) * factor),
|
|
541
|
+
this.setColWidth(col, colWidth);
|
|
542
|
+
}
|
|
543
|
+
} else if ("standard-aeolus" === table.widthMode && this.transpose) {
|
|
544
|
+
const canvasWidth = table.tableNoFrameWidth;
|
|
545
|
+
let actualWidth = 0, actualHeaderWidth = 0;
|
|
546
|
+
for (let col = 0; col < table.colCount; col++) {
|
|
547
|
+
const colWidth = table.getColWidth(col);
|
|
548
|
+
col < table.frozenColCount && (actualHeaderWidth += colWidth), actualWidth += colWidth;
|
|
549
|
+
}
|
|
550
|
+
if (actualWidth < canvasWidth && actualWidth - actualHeaderWidth > 0) {
|
|
551
|
+
const factor = (canvasWidth - actualHeaderWidth) / (actualWidth - actualHeaderWidth);
|
|
552
|
+
for (let col = table.frozenColCount; col < table.colCount; col++) this.setColWidth(col, table.getColWidth(col) * factor);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
let bodyWidth = 0;
|
|
556
|
+
this.bodyGroup.forEachChildrenSkipChild((column => {
|
|
557
|
+
bodyWidth += column.attribute.width;
|
|
558
|
+
})), this.bodyGroup.setAttribute("width", bodyWidth);
|
|
559
|
+
let colHeaderWidth = 0;
|
|
560
|
+
this.colHeaderGroup.forEachChildrenSkipChild((column => {
|
|
561
|
+
colHeaderWidth += column.attribute.width;
|
|
562
|
+
})), this.colHeaderGroup.setAttribute("width", colHeaderWidth);
|
|
563
|
+
let rowHeaderWidth = 0;
|
|
564
|
+
this.rowHeaderGroup.forEachChildrenSkipChild((column => {
|
|
565
|
+
rowHeaderWidth += column.attribute.width;
|
|
566
|
+
})), this.rowHeaderGroup.setAttribute("width", rowHeaderWidth);
|
|
567
|
+
let cornerHeaderWidth = 0;
|
|
568
|
+
this.cornerHeaderGroup.forEachChildrenSkipChild((column => {
|
|
569
|
+
cornerHeaderWidth += column.attribute.width;
|
|
570
|
+
})), this.cornerHeaderGroup.setAttribute("width", cornerHeaderWidth), this.colHeaderGroup.setAttribute("x", this.cornerHeaderGroup.attribute.width),
|
|
571
|
+
this.rowHeaderGroup.setAttribute("y", this.colHeaderGroup.attribute.height), this.bodyGroup.setAttributes({
|
|
572
|
+
x: this.rowHeaderGroup.attribute.width,
|
|
573
|
+
y: this.colHeaderGroup.attribute.height
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
dealFrozen() {
|
|
577
|
+
var _a, _b, _c, _d, _e, _f;
|
|
578
|
+
if (this.table.frozenColCount > this.table.rowHeaderLevelCount) {
|
|
579
|
+
this.rowHeaderGroup.setAttribute("height", this.bodyGroup.attribute.height), this.rowHeaderGroup.setAttribute("y", this.bodyGroup.attribute.y),
|
|
580
|
+
this.cornerHeaderGroup.setAttribute("height", this.colHeaderGroup.attribute.height);
|
|
581
|
+
for (let i = 0; i < this.table.frozenColCount - this.table.rowHeaderLevelCount; i++) {
|
|
582
|
+
const column = this.bodyGroup.firstChild;
|
|
583
|
+
column && (this.rowHeaderGroup.appendChild(column), this.rowHeaderGroup.setAttribute("width", this.rowHeaderGroup.attribute.width + column.attribute.width),
|
|
584
|
+
this.bodyGroup.setAttribute("width", this.bodyGroup.attribute.width - column.attribute.width));
|
|
585
|
+
const headerColumn = this.colHeaderGroup.firstChild;
|
|
586
|
+
headerColumn && (this.cornerHeaderGroup.appendChild(headerColumn), this.cornerHeaderGroup.setAttribute("width", this.cornerHeaderGroup.attribute.width + headerColumn.attribute.width),
|
|
587
|
+
this.colHeaderGroup.setAttribute("width", this.colHeaderGroup.attribute.width - headerColumn.attribute.width));
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
this.bodyGroup.setAttribute("x", this.rowHeaderGroup.attribute.width), this.colHeaderGroup.setAttribute("x", this.cornerHeaderGroup.attribute.width);
|
|
591
|
+
const bodyDeltaX = null !== (_b = null === (_a = this.bodyGroup.firstChild) || void 0 === _a ? void 0 : _a.attribute.x) && void 0 !== _b ? _b : 0;
|
|
592
|
+
this.bodyGroup.forEachChildrenSkipChild((column => {
|
|
593
|
+
column.setAttribute("x", column.attribute.x - bodyDeltaX);
|
|
594
|
+
}));
|
|
595
|
+
const colDeltaX = null !== (_d = null === (_c = this.colHeaderGroup.firstChild) || void 0 === _c ? void 0 : _c.attribute.x) && void 0 !== _d ? _d : 0;
|
|
596
|
+
this.colHeaderGroup.forEachChildrenSkipChild((column => {
|
|
597
|
+
column.setAttribute("x", column.attribute.x - colDeltaX);
|
|
598
|
+
})), this.updateBorderSizeAndPosition(), this.isPivot || this.transpose || this.component.setFrozenColumnShadow(this.table.frozenColCount - 1),
|
|
599
|
+
this.hasFrozen = !0, this.frozenColCount = this.table.frozenColCount, this.frozenRowCount = null !== (_f = null === (_e = this.colHeaderGroup.firstChild) || void 0 === _e ? void 0 : _e.childrenCount) && void 0 !== _f ? _f : 0;
|
|
600
|
+
}
|
|
601
|
+
resetFrozen() {
|
|
602
|
+
var _a, _b;
|
|
603
|
+
if (this.frozenColCount > this.table.rowHeaderLevelCount) for (let i = 0; i < this.frozenColCount - this.table.rowHeaderLevelCount; i++) {
|
|
604
|
+
const column = this.rowHeaderGroup.lastChild instanceof Group ? this.rowHeaderGroup.lastChild : this.rowHeaderGroup.lastChild._prev;
|
|
605
|
+
column && (this.bodyGroup.insertBefore(column, this.bodyGroup.firstChild), this.bodyGroup.setAttribute("width", this.bodyGroup.attribute.width + column.attribute.width),
|
|
606
|
+
this.rowHeaderGroup.setAttribute("width", this.rowHeaderGroup.attribute.width - column.attribute.width));
|
|
607
|
+
const headerColumn = this.cornerHeaderGroup.lastChild instanceof Group ? this.cornerHeaderGroup.lastChild : this.cornerHeaderGroup.lastChild._prev;
|
|
608
|
+
headerColumn && (this.colHeaderGroup.insertBefore(headerColumn, this.colHeaderGroup.firstChild),
|
|
609
|
+
this.colHeaderGroup.setAttribute("width", this.colHeaderGroup.attribute.width + headerColumn.attribute.width),
|
|
610
|
+
this.cornerHeaderGroup.setAttribute("width", this.cornerHeaderGroup.attribute.width - headerColumn.attribute.width));
|
|
611
|
+
}
|
|
612
|
+
this.bodyGroup.setAttribute("x", this.rowHeaderGroup.attribute.width), this.colHeaderGroup.setAttribute("x", this.cornerHeaderGroup.attribute.width);
|
|
613
|
+
let bodyX = 0;
|
|
614
|
+
this.bodyGroup.forEachChildrenSkipChild((column => {
|
|
615
|
+
column.setAttribute("x", bodyX), bodyX += column.attribute.width;
|
|
616
|
+
}));
|
|
617
|
+
let colX = 0;
|
|
618
|
+
this.colHeaderGroup.forEachChildrenSkipChild((column => {
|
|
619
|
+
column.setAttribute("x", colX), colX += column.attribute.width;
|
|
620
|
+
})), this.updateBorderSizeAndPosition(), this.isPivot || this.transpose || this.component.setFrozenColumnShadow(this.table.frozenColCount - 1),
|
|
621
|
+
this.hasFrozen = !0, this.frozenColCount = this.table.rowHeaderLevelCount, this.frozenRowCount = null !== (_b = null === (_a = this.colHeaderGroup.firstChild) || void 0 === _a ? void 0 : _a.childrenCount) && void 0 !== _b ? _b : 0;
|
|
622
|
+
}
|
|
623
|
+
updateCellLayoutWidthCertainWidth(columnGroup, detaRow, col) {
|
|
624
|
+
const width = columnGroup.attribute.width;
|
|
625
|
+
let isUpdate = !1;
|
|
626
|
+
return columnGroup.forEachChildren(((cellGroup, row) => {
|
|
627
|
+
row += detaRow;
|
|
628
|
+
const mergeInfo = getCellMergeInfo(this.table, col, row);
|
|
629
|
+
mergeInfo ? cellGroup = this.getCell(mergeInfo.start.col, mergeInfo.start.row) : cellGroup.setAttribute("width", width);
|
|
630
|
+
const headerStyle = this.table._getCellStyle(col, row), padding = getPadding(getProp("padding", headerStyle, col, row, this.table)), text = cellGroup.getChildByName("text");
|
|
631
|
+
let oldCellHeight = 0, newCellHeight = 0;
|
|
632
|
+
if (text) oldCellHeight = text.AABBBounds.height() + (padding[0] + padding[2]),
|
|
633
|
+
text.setAttribute("maxLineWidth", width - (padding[1] + padding[3])), newCellHeight = text.AABBBounds.height() + (padding[0] + padding[2]); else {
|
|
634
|
+
const group = cellGroup.getChildAt(1);
|
|
635
|
+
oldCellHeight = group.AABBBounds.height() + (padding[0] + padding[2]), group._cellWidth = width - (padding[1] + padding[3]),
|
|
636
|
+
group.layout(), newCellHeight = group.AABBBounds.height() + (padding[0] + padding[2]);
|
|
637
|
+
}
|
|
638
|
+
const rowHeight = this.table.getRowHeight(row);
|
|
639
|
+
cellGroup.attribute.height !== newCellHeight && (cellGroup.setAttribute("height", newCellHeight),
|
|
640
|
+
(rowHeight === oldCellHeight || newCellHeight > rowHeight) && (isUpdate = !0));
|
|
641
|
+
})), isUpdate;
|
|
642
|
+
}
|
|
643
|
+
updateHeaderPosition(colSource, rowSource, colTarget, rowTarget) {
|
|
644
|
+
moveHeaderPosition(colSource, rowSource, colTarget, rowTarget, this.table);
|
|
645
|
+
}
|
|
646
|
+
updateContainer() {
|
|
647
|
+
let cornerX = 0;
|
|
648
|
+
this.cornerHeaderGroup.forEachChildrenSkipChild(((column, index) => {
|
|
649
|
+
column.setAttribute("x", cornerX), cornerX += column.attribute.width;
|
|
650
|
+
}));
|
|
651
|
+
let rowHeaderX = 0;
|
|
652
|
+
this.rowHeaderGroup.forEachChildrenSkipChild(((column, index) => {
|
|
653
|
+
column.setAttribute("x", rowHeaderX), rowHeaderX += column.attribute.width;
|
|
654
|
+
}));
|
|
655
|
+
let colHeaderX = 0;
|
|
656
|
+
this.colHeaderGroup.forEachChildrenSkipChild(((column, index) => {
|
|
657
|
+
column.setAttribute("x", colHeaderX), colHeaderX += column.attribute.width;
|
|
658
|
+
}));
|
|
659
|
+
let bodyX = 0;
|
|
660
|
+
this.bodyGroup.forEachChildrenSkipChild(((column, index) => {
|
|
661
|
+
column.setAttribute("x", bodyX), bodyX += column.attribute.width;
|
|
662
|
+
})), this.cornerHeaderGroup.setDeltaWidth(cornerX - this.cornerHeaderGroup.attribute.width),
|
|
663
|
+
this.colHeaderGroup.setDeltaWidth(colHeaderX - this.colHeaderGroup.attribute.width),
|
|
664
|
+
this.rowHeaderGroup.setDeltaWidth(rowHeaderX - this.rowHeaderGroup.attribute.width),
|
|
665
|
+
this.bodyGroup.setDeltaWidth(bodyX - this.bodyGroup.attribute.width), this.colHeaderGroup.setAttribute("x", this.cornerHeaderGroup.attribute.width),
|
|
666
|
+
this.bodyGroup.setAttribute("x", this.rowHeaderGroup.attribute.width);
|
|
667
|
+
const oldHorizontalBarPos = this.table.stateManeger.scroll.horizontalBarPos, oldVerticalBarPos = this.table.stateManeger.scroll.verticalBarPos;
|
|
668
|
+
this.component.updateScrollBar(), this.table.stateManeger.setScrollLeft(oldHorizontalBarPos),
|
|
669
|
+
this.table.stateManeger.setScrollTop(oldVerticalBarPos), this.updateNextFrame();
|
|
670
|
+
}
|
|
671
|
+
clearCells() {
|
|
672
|
+
this.clear = !0, this.hasFrozen = !1, this.colHeaderGroup.clear(), this.rowHeaderGroup.clear(),
|
|
673
|
+
this.cornerHeaderGroup.clear(), this.bodyGroup.clear(), this.colHeaderGroup.setAttributes({
|
|
674
|
+
x: 0,
|
|
675
|
+
y: 0,
|
|
676
|
+
width: 0,
|
|
677
|
+
height: 0
|
|
678
|
+
}), this.rowHeaderGroup.setAttributes({
|
|
679
|
+
x: 0,
|
|
680
|
+
y: 0,
|
|
681
|
+
width: 0,
|
|
682
|
+
height: 0
|
|
683
|
+
}), this.cornerHeaderGroup.setAttributes({
|
|
684
|
+
x: 0,
|
|
685
|
+
y: 0,
|
|
686
|
+
width: 0,
|
|
687
|
+
height: 0
|
|
688
|
+
}), this.bodyGroup.setAttributes({
|
|
689
|
+
x: 0,
|
|
690
|
+
y: 0,
|
|
691
|
+
width: 0,
|
|
692
|
+
height: 0
|
|
693
|
+
}), this.tableGroup.setAttributes({
|
|
694
|
+
x: 0,
|
|
695
|
+
y: 0,
|
|
696
|
+
width: 0,
|
|
697
|
+
height: 0
|
|
698
|
+
}), this.tableGroup.border && (this.tableGroup.parent.removeChild(this.tableGroup.border),
|
|
699
|
+
delete this.tableGroup.border);
|
|
700
|
+
}
|
|
701
|
+
updateCellContentWhileResize(col, row) {
|
|
702
|
+
const type = this.table.getBodyColumnType(col, row), cellGroup = this.getCell(col, row);
|
|
703
|
+
"image" !== type && "video" !== type || updateImageCellContentWhileResize(cellGroup, col, row, this.table);
|
|
704
|
+
}
|
|
705
|
+
createFrameBorder() {
|
|
706
|
+
this.updateTableSize();
|
|
707
|
+
const isListTableWithFrozen = !this.isPivot && this.rowHeaderGroup.attribute.width;
|
|
708
|
+
createFrameBorder(this.bodyGroup, this.table.theme.bodyStyle.frameStyle, this.bodyGroup.role, isListTableWithFrozen ? [ !0, !0, !0, !1 ] : void 0),
|
|
709
|
+
createFrameBorder(this.rowHeaderGroup, this.isPivot ? this.table.theme.rowHeaderStyle.frameStyle : this.table.theme.bodyStyle.frameStyle, this.rowHeaderGroup.role, isListTableWithFrozen ? [ !0, !1, !0, !0 ] : void 0),
|
|
710
|
+
createFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle, this.colHeaderGroup.role, isListTableWithFrozen ? [ !0, !0, !0, !1 ] : void 0),
|
|
711
|
+
createFrameBorder(this.cornerHeaderGroup, this.isPivot ? this.table.theme.cornerHeaderStyle.frameStyle : this.table.theme.headerStyle.frameStyle, this.cornerHeaderGroup.role, isListTableWithFrozen ? [ !0, !1, !0, !0 ] : void 0),
|
|
712
|
+
createFrameBorder(this.tableGroup, this.table.theme.frameStyle, this.tableGroup.role);
|
|
713
|
+
}
|
|
714
|
+
getResizeColAt(abstractX, abstractY, cellGroup, offset = ResizeColumnHotSpotSize / 2) {
|
|
715
|
+
if (cellGroup) {
|
|
716
|
+
if (abstractX < cellGroup.globalAABBBounds.x1 + offset) return {
|
|
717
|
+
col: cellGroup.col - 1,
|
|
718
|
+
row: cellGroup.row,
|
|
719
|
+
x: cellGroup.globalAABBBounds.x1
|
|
720
|
+
};
|
|
721
|
+
if (cellGroup.globalAABBBounds.x2 - offset < abstractX) return {
|
|
722
|
+
col: cellGroup.col,
|
|
723
|
+
row: cellGroup.row,
|
|
724
|
+
x: cellGroup.globalAABBBounds.x2
|
|
725
|
+
};
|
|
726
|
+
} else ;
|
|
727
|
+
return {
|
|
728
|
+
col: -1,
|
|
729
|
+
row: -1
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
updateIcon(icon, iconConfig) {
|
|
733
|
+
dealWithIcon(iconConfig, icon), icon.name = iconConfig.name, this.updateNextFrame();
|
|
734
|
+
}
|
|
735
|
+
updateFrozen() {
|
|
736
|
+
this.clear || (this.resetFrozen(), this.dealFrozen(), this.component.updateScrollBar());
|
|
737
|
+
}
|
|
738
|
+
updateBorderSizeAndPosition() {
|
|
739
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
740
|
+
this.bodyGroup.border && (this.bodyGroup.appendChild(this.bodyGroup.border), null === (_a = this.bodyGroup.border) || void 0 === _a || _a.setAttribute("width", this.bodyGroup.attribute.width - (null !== (_b = this.bodyGroup.border.attribute.lineWidth) && void 0 !== _b ? _b : 0)),
|
|
741
|
+
0 === this.rowHeaderGroup.attribute.width ? null === (_c = this.bodyGroup.border) || void 0 === _c || _c.setAttribute("stroke", [ !0, !0, !0, !0 ]) : null === (_d = this.bodyGroup.border) || void 0 === _d || _d.setAttribute("stroke", [ !0, !0, !0, !1 ])),
|
|
742
|
+
this.colHeaderGroup.border && (this.colHeaderGroup.appendChild(this.colHeaderGroup.border),
|
|
743
|
+
null === (_e = this.colHeaderGroup.border) || void 0 === _e || _e.setAttribute("width", this.colHeaderGroup.attribute.width - (null !== (_f = this.colHeaderGroup.border.attribute.lineWidth) && void 0 !== _f ? _f : 0)),
|
|
744
|
+
0 === this.cornerHeaderGroup.attribute.width ? null === (_g = this.colHeaderGroup.border) || void 0 === _g || _g.setAttribute("stroke", [ !0, !0, !0, !0 ]) : null === (_h = this.colHeaderGroup.border) || void 0 === _h || _h.setAttribute("stroke", [ !0, !0, !0, !1 ])),
|
|
745
|
+
this.rowHeaderGroup.border && (this.rowHeaderGroup.appendChild(this.rowHeaderGroup.border),
|
|
746
|
+
null === (_j = this.rowHeaderGroup.border) || void 0 === _j || _j.setAttribute("width", this.rowHeaderGroup.attribute.width - (null !== (_k = this.rowHeaderGroup.border.attribute.lineWidth) && void 0 !== _k ? _k : 0))),
|
|
747
|
+
this.cornerHeaderGroup.border && (this.cornerHeaderGroup.appendChild(this.cornerHeaderGroup.border),
|
|
748
|
+
null === (_l = this.cornerHeaderGroup.border) || void 0 === _l || _l.setAttribute("width", this.cornerHeaderGroup.attribute.width - (null !== (_m = this.cornerHeaderGroup.border.attribute.lineWidth) && void 0 !== _m ? _m : 0)));
|
|
749
|
+
}
|
|
750
|
+
updateSortIcon(col, row, iconMark, order, oldSortCol, oldSortRow, oldIconMark) {
|
|
751
|
+
const icon = this.table.internalProps.headerHelper.getSortIcon(order, this.table, col, row);
|
|
752
|
+
if (iconMark && this.updateIcon(iconMark, icon), oldIconMark !== iconMark) {
|
|
753
|
+
const oldIcon = this.table.internalProps.headerHelper.getSortIcon(SortOrder.normal, this.table, oldSortCol, oldSortRow);
|
|
754
|
+
if (oldIconMark) this.updateIcon(oldIconMark, oldIcon); else {
|
|
755
|
+
let oldIconMark;
|
|
756
|
+
this.getCell(oldSortCol, oldSortRow).forEachChildren((mark => "sort" === mark.attribute.funcType && (oldIconMark = mark,
|
|
757
|
+
!0))), oldIconMark && this.updateIcon(oldIconMark, oldIcon);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
updateFrozenIcon(col, oldFrozenCol) {
|
|
762
|
+
const updateCol = Math.max(col, oldFrozenCol);
|
|
763
|
+
this.colHeaderGroup.forEachChildrenSkipChild((colGroup => !(colGroup.col <= updateCol) || (colGroup.forEachChildren((cellGroup => {
|
|
764
|
+
cellGroup.forEachChildren((icon => {
|
|
765
|
+
if ("pin" === icon.attribute.funcType) {
|
|
766
|
+
const iconConfig = this.table.internalProps.headerHelper.getPinIcon(cellGroup.col, cellGroup.row);
|
|
767
|
+
return this.updateIcon(icon, iconConfig), !0;
|
|
768
|
+
}
|
|
769
|
+
return !1;
|
|
770
|
+
}));
|
|
771
|
+
})), !1))), this.cornerHeaderGroup.forEachChildrenSkipChild((colGroup => !(colGroup.col <= updateCol) || (colGroup.forEachChildren((cellGroup => {
|
|
772
|
+
cellGroup.forEachChildren((icon => {
|
|
773
|
+
if ("pin" === icon.attribute.funcType) {
|
|
774
|
+
const iconConfig = this.table.internalProps.headerHelper.getPinIcon(cellGroup.col, cellGroup.row);
|
|
775
|
+
return this.updateIcon(icon, iconConfig), !0;
|
|
776
|
+
}
|
|
777
|
+
return !1;
|
|
778
|
+
}));
|
|
779
|
+
})), !1)));
|
|
780
|
+
}
|
|
781
|
+
sortCell() {
|
|
782
|
+
this.isPivot || (this.transpose ? setTimeout((() => {
|
|
783
|
+
this.clearCells(), this.createSceneGraph();
|
|
784
|
+
}), 10) : this.proxy.sortCell());
|
|
785
|
+
}
|
|
786
|
+
getCellOverflowText(col, row) {
|
|
787
|
+
const text = this.getCell(col, row).getChildByName("text", !0);
|
|
788
|
+
if (text) {
|
|
789
|
+
const textAttributeStr = text.attribute.text.join("");
|
|
790
|
+
let cacheStr = "";
|
|
791
|
+
if (text.cache.layoutData.lines.forEach((line => {
|
|
792
|
+
cacheStr += line.str;
|
|
793
|
+
})), cacheStr !== textAttributeStr) return textAttributeStr;
|
|
794
|
+
}
|
|
795
|
+
return null;
|
|
796
|
+
}
|
|
797
|
+
updateDrill(visible, x, y, drillDown, drillUp) {
|
|
798
|
+
this.component.drillIcon.update(visible, x, y, drillDown, drillUp, this);
|
|
799
|
+
}
|
|
800
|
+
updateCellContent(col, row) {
|
|
801
|
+
this.clear || updateCell(col, row, this.table);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
function showIcon(scene, cellGroup, visibleTime) {
|
|
806
|
+
cellGroup.forEachChildren((child => {
|
|
807
|
+
"group" === child.type ? showIcon(scene, child, visibleTime) : child.attribute.visibleTime === visibleTime && (child.attribute.visible = !0,
|
|
808
|
+
scene.updateNextFrame());
|
|
809
|
+
}));
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
function hideIcon(scene, cellGroup, visibleTime) {
|
|
813
|
+
cellGroup.forEachChildren((child => {
|
|
814
|
+
"group" === child.type ? hideIcon(scene, child, visibleTime) : child.attribute.visibleTime === visibleTime && (child.attribute.visible = !1,
|
|
815
|
+
scene.updateNextFrame());
|
|
816
|
+
}));
|
|
817
|
+
}
|
|
818
|
+
//# sourceMappingURL=scenegraph.js.map
|