@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,431 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.StateManeger = exports.SortOrder = exports.HighlightScope = exports.InteractionState = void 0;
|
|
6
|
+
|
|
7
|
+
const menu_1 = require("../scenegraph/component/menu"), ts_types_1 = require("../ts-types"), check_in_select_1 = require("./common/check-in-select"), update_position_1 = require("./hover/update-position"), pin_1 = require("./pin"), sort_1 = require("./sort"), update_position_2 = require("./select/update-position"), helper_1 = require("../tools/helper"), PIVOT_TABLE_EVENT_TYPE_1 = require("../ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE"), TABLE_EVENT_TYPE_1 = require("../core/TABLE_EVENT_TYPE"), vutils_1 = require("@visactor/vutils"), drill_1 = require("./drill"), spark_line_1 = require("./spark-line"), cell_move_1 = require("./cell-move"), icon_1 = require("../scenegraph/utils/icon"), util_1 = require("../tools/util");
|
|
8
|
+
|
|
9
|
+
var InteractionState, HighlightScope, SortOrder;
|
|
10
|
+
|
|
11
|
+
!function(InteractionState) {
|
|
12
|
+
InteractionState.default = "default", InteractionState.grabing = "grabing", InteractionState.scrolling = "scrolling";
|
|
13
|
+
}(InteractionState = exports.InteractionState || (exports.InteractionState = {})),
|
|
14
|
+
function(HighlightScope) {
|
|
15
|
+
HighlightScope.single = "single", HighlightScope.column = "column", HighlightScope.row = "row",
|
|
16
|
+
HighlightScope.cross = "cross", HighlightScope.none = "none";
|
|
17
|
+
}(HighlightScope = exports.HighlightScope || (exports.HighlightScope = {})), function(SortOrder) {
|
|
18
|
+
SortOrder.asc = "asc", SortOrder.desc = "desc", SortOrder.normal = "normal";
|
|
19
|
+
}(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
|
|
20
|
+
|
|
21
|
+
class StateManeger {
|
|
22
|
+
constructor(table) {
|
|
23
|
+
this.table = table, this.initState(), this.setHoverState(), this.setSelectState(),
|
|
24
|
+
this.setFrozenState(), this.updateVerticalScrollBar = this.updateVerticalScrollBar.bind(this),
|
|
25
|
+
this.updateHorizontalScrollBar = this.updateHorizontalScrollBar.bind(this);
|
|
26
|
+
}
|
|
27
|
+
initState() {
|
|
28
|
+
this.interactionState = InteractionState.default, this.select = {
|
|
29
|
+
highlightScope: HighlightScope.single,
|
|
30
|
+
ranges: [],
|
|
31
|
+
cellPos: {
|
|
32
|
+
col: -1,
|
|
33
|
+
row: -1
|
|
34
|
+
},
|
|
35
|
+
selecting: !1
|
|
36
|
+
}, this.hover = {
|
|
37
|
+
highlightScope: HighlightScope.single,
|
|
38
|
+
cellPos: {
|
|
39
|
+
col: -1,
|
|
40
|
+
row: -1
|
|
41
|
+
}
|
|
42
|
+
}, this.hoverIcon = {
|
|
43
|
+
col: -1,
|
|
44
|
+
row: -1,
|
|
45
|
+
icon: null
|
|
46
|
+
}, this.columnResize = {
|
|
47
|
+
col: -1,
|
|
48
|
+
x: 0,
|
|
49
|
+
resizing: !1
|
|
50
|
+
}, this.columnMove = {
|
|
51
|
+
colSource: -1,
|
|
52
|
+
colTarget: -1,
|
|
53
|
+
rowSource: -1,
|
|
54
|
+
rowTarget: -1,
|
|
55
|
+
x: 0,
|
|
56
|
+
y: 0,
|
|
57
|
+
moving: !1
|
|
58
|
+
}, this.menu = {
|
|
59
|
+
x: -1,
|
|
60
|
+
y: -1,
|
|
61
|
+
isShow: !1,
|
|
62
|
+
itemList: [],
|
|
63
|
+
bounds: new vutils_1.Bounds,
|
|
64
|
+
highlightIndex: -1,
|
|
65
|
+
dropDownMenuHighlight: []
|
|
66
|
+
}, this.sort = {
|
|
67
|
+
col: -1,
|
|
68
|
+
row: -1,
|
|
69
|
+
order: SortOrder.normal
|
|
70
|
+
}, this.frozen = {
|
|
71
|
+
col: -1
|
|
72
|
+
}, this.scroll = {
|
|
73
|
+
horizontalBarPos: 0,
|
|
74
|
+
verticalBarPos: 0
|
|
75
|
+
}, this.tablePosition = {
|
|
76
|
+
absoluteX: 0,
|
|
77
|
+
absoluteY: 0
|
|
78
|
+
}, this.drill = {
|
|
79
|
+
col: -1,
|
|
80
|
+
row: -1
|
|
81
|
+
}, this.sparkLine = {
|
|
82
|
+
col: -1,
|
|
83
|
+
row: -1
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
setHoverState() {
|
|
87
|
+
var _a;
|
|
88
|
+
const {highlightMode: highlightMode, disableHover: disableHover, disableHeaderHover: disableHeaderHover} = null !== (_a = this.table.options.hover) && void 0 !== _a ? _a : {
|
|
89
|
+
highlightMode: "cell"
|
|
90
|
+
};
|
|
91
|
+
disableHover ? this.hover.highlightScope = HighlightScope.none : "cross" === highlightMode ? this.hover.highlightScope = HighlightScope.cross : "row" === highlightMode ? this.hover.highlightScope = HighlightScope.row : "column" === highlightMode ? this.hover.highlightScope = HighlightScope.column : "cell" === highlightMode && (this.hover.highlightScope = HighlightScope.single),
|
|
92
|
+
this.hover.singleStyle = !disableHover, this.hover.disableHeader = disableHeaderHover,
|
|
93
|
+
(this.hover.highlightScope === HighlightScope.none || disableHeaderHover) && (this.hover.cellPosContainHeader = {
|
|
94
|
+
col: -1,
|
|
95
|
+
row: -1
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
setSelectState() {
|
|
99
|
+
var _a, _b;
|
|
100
|
+
const {disableSelect: disableSelect, disableHeaderSelect: disableHeaderSelect} = null !== (_b = null === (_a = this.table.options) || void 0 === _a ? void 0 : _a.select) && void 0 !== _b ? _b : {
|
|
101
|
+
disableSelect: !1,
|
|
102
|
+
disableHeaderSelect: !1
|
|
103
|
+
};
|
|
104
|
+
this.select.highlightScope = disableSelect ? HighlightScope.none : HighlightScope.single,
|
|
105
|
+
this.select.singleStyle = !disableSelect, this.select.disableHeader = disableHeaderSelect;
|
|
106
|
+
}
|
|
107
|
+
isSelected(col, row) {
|
|
108
|
+
let seled = !1;
|
|
109
|
+
return this.select.ranges.forEach((range => {
|
|
110
|
+
(0, helper_1.cellInRange)(range, col, row) && (seled = !0);
|
|
111
|
+
})), seled;
|
|
112
|
+
}
|
|
113
|
+
setSortState(sortState) {
|
|
114
|
+
this.sort.field = sortState.field, this.sort.fieldKey = sortState.fieldKey, this.sort.order = SortOrder[sortState.order];
|
|
115
|
+
}
|
|
116
|
+
setFrozenState() {
|
|
117
|
+
this.frozen.col = this.table.frozenColCount - 1;
|
|
118
|
+
}
|
|
119
|
+
updateInteractionState(mode) {
|
|
120
|
+
this.interactionState !== mode && (this.interactionState = mode);
|
|
121
|
+
}
|
|
122
|
+
updateHoverhighlightScope(mode) {
|
|
123
|
+
this.hover.highlightScope !== mode && (this.hover.highlightScope = mode);
|
|
124
|
+
}
|
|
125
|
+
updateHoverPos(col, row) {
|
|
126
|
+
(0, update_position_1.updateHoverPosition)(this, col, row);
|
|
127
|
+
}
|
|
128
|
+
updateSelectPos(col, row, isShift = !1, isCtrl = !1, isSelectAll = !1) {
|
|
129
|
+
-1 !== row && -1 !== row && (this.select.selecting = !0), (0, update_position_2.updateSelectPosition)(this, col, row, isShift, isCtrl, isSelectAll);
|
|
130
|
+
}
|
|
131
|
+
checkCellRangeInSelect(cellPosStart, cellPosEnd) {
|
|
132
|
+
return (0, check_in_select_1.checkMultiCellInSelect)(cellPosStart, cellPosEnd, this.select.ranges, this.select.highlightScope);
|
|
133
|
+
}
|
|
134
|
+
updateHoverIcon(col, row, target, cellGroup, event) {
|
|
135
|
+
var _a, _b, _c, _d, _e, _f;
|
|
136
|
+
if (target === (null === (_a = this.residentHoverIcon) || void 0 === _a ? void 0 : _a.icon)) return;
|
|
137
|
+
const iconInfo = (0, icon_1.getIconAndPositionFromTarget)(target);
|
|
138
|
+
if (iconInfo) if ("richtext-icon" === iconInfo.type) {
|
|
139
|
+
const inlineIcon = iconInfo.icon;
|
|
140
|
+
if (this.hoverIcon.icon && this.hoverIcon.icon !== (null === (_c = this.residentHoverIcon) || void 0 === _c ? void 0 : _c.icon) && (this.table.scenegraph.setIconNormalStyle(this.hoverIcon.icon, this.hoverIcon.col, this.hoverIcon.row),
|
|
141
|
+
this.hoverIcon.col = -1, this.hoverIcon.col = -1, this.hoverIcon.icon = null, this.table.scenegraph.updateNextFrame()),
|
|
142
|
+
inlineIcon.attribute.tooltip) {
|
|
143
|
+
const tooltipOptions = {
|
|
144
|
+
content: inlineIcon.attribute.tooltip.title,
|
|
145
|
+
referencePosition: {
|
|
146
|
+
rect: iconInfo.position,
|
|
147
|
+
placement: inlineIcon.attribute.tooltip.placement
|
|
148
|
+
},
|
|
149
|
+
style: Object.assign({}, null === (_d = this.table.internalProps.theme) || void 0 === _d ? void 0 : _d.tooltipStyle, null === (_e = inlineIcon.tooltip) || void 0 === _e ? void 0 : _e.style)
|
|
150
|
+
};
|
|
151
|
+
this.table.internalProps.tooltipHandler.isBinded(tooltipOptions) || this.table.showTooltip(col, row, tooltipOptions);
|
|
152
|
+
}
|
|
153
|
+
} else {
|
|
154
|
+
const icon = iconInfo.icon;
|
|
155
|
+
icon !== this.hoverIcon.icon && (this.hoverIcon.icon && this.hoverIcon.icon !== (null === (_f = this.residentHoverIcon) || void 0 === _f ? void 0 : _f.icon) && this.table.scenegraph.setIconNormalStyle(this.hoverIcon.icon, this.hoverIcon.col, this.hoverIcon.row),
|
|
156
|
+
this.hoverIcon.col = col, this.hoverIcon.col = row, this.hoverIcon.icon = icon,
|
|
157
|
+
this.table.scenegraph.setIconHoverStyle(icon, col, row, cellGroup), this.table.scenegraph.updateNextFrame());
|
|
158
|
+
} else this.hoverIcon.icon && this.hoverIcon.icon !== (null === (_b = this.residentHoverIcon) || void 0 === _b ? void 0 : _b.icon) && (this.table.scenegraph.setIconNormalStyle(this.hoverIcon.icon, this.hoverIcon.col, this.hoverIcon.row),
|
|
159
|
+
this.hoverIcon.col = -1, this.hoverIcon.col = -1, this.hoverIcon.icon = null, this.table.scenegraph.updateNextFrame());
|
|
160
|
+
}
|
|
161
|
+
isResizeCol() {
|
|
162
|
+
return this.columnResize.resizing;
|
|
163
|
+
}
|
|
164
|
+
isSelecting() {
|
|
165
|
+
return this.select.selecting;
|
|
166
|
+
}
|
|
167
|
+
endSelectCells() {
|
|
168
|
+
if (this.select.selecting = !1, 0 === this.select.ranges.length) return;
|
|
169
|
+
(0, update_position_2.selectEnd)(this.table.scenegraph);
|
|
170
|
+
const lastCol = this.select.ranges[this.select.ranges.length - 1].end.col, lastRow = this.select.ranges[this.select.ranges.length - 1].end.row;
|
|
171
|
+
this.table.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.SELECTED_CELL, {
|
|
172
|
+
ranges: this.select.ranges,
|
|
173
|
+
col: lastCol,
|
|
174
|
+
row: lastRow
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
endResizeCol() {
|
|
178
|
+
setTimeout((() => {
|
|
179
|
+
this.columnResize.resizing = !1;
|
|
180
|
+
}), 0), this.checkFrozen(), this.table.scenegraph.component.hideResizeCol(), this.table.scenegraph.updateNextFrame();
|
|
181
|
+
}
|
|
182
|
+
startResizeCol(col, x, y) {
|
|
183
|
+
this.columnResize.resizing = !0, this.columnResize.col = col, this.columnResize.x = x,
|
|
184
|
+
this.table.scenegraph.component.showResizeCol(col, y), this.table.stateManeger.updateSelectPos(-1, -1),
|
|
185
|
+
this.table.scenegraph.updateNextFrame();
|
|
186
|
+
}
|
|
187
|
+
updateResizeCol(x, y) {
|
|
188
|
+
let detaX = x - this.columnResize.x;
|
|
189
|
+
if (Math.abs(detaX) < 1) return;
|
|
190
|
+
let widthCache = this.table.colWidthsMap.get(this.columnResize.col);
|
|
191
|
+
"number" == typeof widthCache || (widthCache = this.table.getColWidth(this.columnResize.col));
|
|
192
|
+
let width = widthCache;
|
|
193
|
+
width += detaX;
|
|
194
|
+
const minWidth = this.table.getMinColWidth(this.columnResize.col), maxWidth = this.table.getMaxColWidth(this.columnResize.col);
|
|
195
|
+
if (width < minWidth || width > maxWidth) {
|
|
196
|
+
if (widthCache === minWidth || widthCache === maxWidth) return;
|
|
197
|
+
detaX = widthCache - minWidth > maxWidth - widthCache ? maxWidth - widthCache : minWidth - widthCache;
|
|
198
|
+
}
|
|
199
|
+
this.table.scenegraph.updateColWidth(this.columnResize.col, detaX), this.columnResize.x = x,
|
|
200
|
+
this.table.scenegraph.component.updateResizeCol(this.columnResize.col, y), this.columnResize.col < this.table.frozenColCount && !this.table.isPivotTable() && !this.table.transpose && this.table.scenegraph.component.setFrozenColumnShadow(this.table.frozenColCount - 1),
|
|
201
|
+
this.table.scenegraph.updateNextFrame();
|
|
202
|
+
}
|
|
203
|
+
startMoveCol(col, row, x, y) {
|
|
204
|
+
(0, cell_move_1.startMoveCol)(col, row, x, y, this);
|
|
205
|
+
}
|
|
206
|
+
updateMoveCol(col, row, x, y) {
|
|
207
|
+
(0, cell_move_1.updateMoveCol)(col, row, x, y, this);
|
|
208
|
+
}
|
|
209
|
+
isMoveCol() {
|
|
210
|
+
return this.columnMove.moving;
|
|
211
|
+
}
|
|
212
|
+
endMoveCol() {
|
|
213
|
+
(0, cell_move_1.endMoveCol)(this);
|
|
214
|
+
}
|
|
215
|
+
checkFrozen() {
|
|
216
|
+
if (this.table.options.frozenColCount) {
|
|
217
|
+
if (this.table.tableNoFrameWidth - this.table.getColsWidth(0, this.table.options.frozenColCount - 1) <= 120) return this.table._setFrozenColCount(0),
|
|
218
|
+
this.setFrozenCol(-1), !1;
|
|
219
|
+
if (this.table.frozenColCount !== this.table.options.frozenColCount) return this.table._setFrozenColCount(this.table.options.frozenColCount),
|
|
220
|
+
this.setFrozenCol(this.table.options.frozenColCount), !1;
|
|
221
|
+
}
|
|
222
|
+
return !0;
|
|
223
|
+
}
|
|
224
|
+
setFrozenCol(col) {
|
|
225
|
+
col !== this.frozen.col ? (this.frozen.col = col, this.table.scenegraph.updateFrozen(),
|
|
226
|
+
this.table.scenegraph.updateFrozenIcon(0, this.table.colCount - 1)) : this.table.scenegraph.updateFrozenIcon(0, this.table.colCount - 1);
|
|
227
|
+
}
|
|
228
|
+
updateVerticalScrollBar(yRatio) {
|
|
229
|
+
var _a, _b;
|
|
230
|
+
const totalHeight = this.table.getAllRowsHeight();
|
|
231
|
+
this.scroll.verticalBarPos = yRatio * (totalHeight - this.table.scenegraph.height),
|
|
232
|
+
this.table.scenegraph.setY(-this.scroll.verticalBarPos), this.table.stateManeger.updateHoverPos(-1, -1),
|
|
233
|
+
this.table.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.SCROLL, {
|
|
234
|
+
scrollTop: this.scroll.verticalBarPos,
|
|
235
|
+
scrollLeft: this.scroll.horizontalBarPos,
|
|
236
|
+
scrollHeight: null === (_a = this.table.theme.scrollStyle) || void 0 === _a ? void 0 : _a.width,
|
|
237
|
+
scrollWidth: null === (_b = this.table.theme.scrollStyle) || void 0 === _b ? void 0 : _b.width,
|
|
238
|
+
viewHeight: this.table.tableNoFrameHeight,
|
|
239
|
+
viewWidth: this.table.tableNoFrameWidth
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
updateHorizontalScrollBar(xRatio) {
|
|
243
|
+
var _a, _b;
|
|
244
|
+
const totalWidth = this.table.getAllColsWidth();
|
|
245
|
+
this.scroll.horizontalBarPos = xRatio * (totalWidth - this.table.scenegraph.width),
|
|
246
|
+
this.table.scenegraph.setX(-this.scroll.horizontalBarPos), this.table.stateManeger.updateHoverPos(-1, -1),
|
|
247
|
+
this.table.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.SCROLL, {
|
|
248
|
+
scrollTop: this.scroll.verticalBarPos,
|
|
249
|
+
scrollLeft: this.scroll.horizontalBarPos,
|
|
250
|
+
scrollHeight: null === (_a = this.table.theme.scrollStyle) || void 0 === _a ? void 0 : _a.width,
|
|
251
|
+
scrollWidth: null === (_b = this.table.theme.scrollStyle) || void 0 === _b ? void 0 : _b.width,
|
|
252
|
+
viewHeight: this.table.tableNoFrameHeight,
|
|
253
|
+
viewWidth: this.table.tableNoFrameWidth
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
setScrollTop(top) {
|
|
257
|
+
var _a, _b;
|
|
258
|
+
const totalHeight = this.table.getAllRowsHeight();
|
|
259
|
+
top = Math.max(0, Math.min(top, totalHeight - this.table.scenegraph.height)), this.scroll.verticalBarPos = top,
|
|
260
|
+
this.table.scenegraph.setY(-top), this.table.scenegraph.component.updateVerticalScrollBarPos(top / (totalHeight - this.table.scenegraph.height)),
|
|
261
|
+
this.table.stateManeger.updateHoverPos(-1, -1), this.table.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.SCROLL, {
|
|
262
|
+
scrollTop: this.scroll.verticalBarPos,
|
|
263
|
+
scrollLeft: this.scroll.horizontalBarPos,
|
|
264
|
+
scrollHeight: null === (_a = this.table.theme.scrollStyle) || void 0 === _a ? void 0 : _a.width,
|
|
265
|
+
scrollWidth: null === (_b = this.table.theme.scrollStyle) || void 0 === _b ? void 0 : _b.width,
|
|
266
|
+
viewHeight: this.table.tableNoFrameHeight,
|
|
267
|
+
viewWidth: this.table.tableNoFrameWidth
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
setScrollLeft(left) {
|
|
271
|
+
var _a, _b;
|
|
272
|
+
const totalWidth = this.table.getAllColsWidth(), frozenWidth = this.table.getFrozenColsWidth();
|
|
273
|
+
left = Math.max(0, Math.min(left, totalWidth - this.table.scenegraph.width)), this.scroll.horizontalBarPos = left,
|
|
274
|
+
this.table.scenegraph.setX(-left), this.table.scenegraph.component.updateHorizontalScrollBarPos(left / (totalWidth - frozenWidth)),
|
|
275
|
+
this.table.stateManeger.updateHoverPos(-1, -1), this.table.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.SCROLL, {
|
|
276
|
+
scrollTop: this.scroll.verticalBarPos,
|
|
277
|
+
scrollLeft: this.scroll.horizontalBarPos,
|
|
278
|
+
scrollHeight: null === (_a = this.table.theme.scrollStyle) || void 0 === _a ? void 0 : _a.width,
|
|
279
|
+
scrollWidth: null === (_b = this.table.theme.scrollStyle) || void 0 === _b ? void 0 : _b.width,
|
|
280
|
+
viewHeight: this.table.tableNoFrameHeight,
|
|
281
|
+
viewWidth: this.table.tableNoFrameWidth
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
hideVerticalScrollBar() {
|
|
285
|
+
this.table.scenegraph.component.hideVerticalScrollBar();
|
|
286
|
+
}
|
|
287
|
+
showVerticalScrollBar(autoHide) {
|
|
288
|
+
this.table.scenegraph.component.showVerticalScrollBar(), autoHide && (clearTimeout(this._clearVerticalScrollBar),
|
|
289
|
+
this._clearVerticalScrollBar = setTimeout((() => {
|
|
290
|
+
this.table.scenegraph.component.hideVerticalScrollBar();
|
|
291
|
+
}), 1e3));
|
|
292
|
+
}
|
|
293
|
+
hideHorizontalScrollBar() {
|
|
294
|
+
this.table.scenegraph.component.hideHorizontalScrollBar();
|
|
295
|
+
}
|
|
296
|
+
showHorizontalScrollBar(autoHide) {
|
|
297
|
+
this.table.scenegraph.component.showHorizontalScrollBar(), autoHide && (clearTimeout(this._clearHorizontalScrollBar),
|
|
298
|
+
this._clearHorizontalScrollBar = setTimeout((() => {
|
|
299
|
+
this.table.scenegraph.component.hideHorizontalScrollBar();
|
|
300
|
+
}), 1e3));
|
|
301
|
+
}
|
|
302
|
+
triggerContextMenu(col, row, x, y) {
|
|
303
|
+
this.menu.isShow && this.menu.x === x && this.menu.y === y ? this.hideMenu() : this.showContextMenu(col, row, x, y);
|
|
304
|
+
}
|
|
305
|
+
showContextMenu(col, row, x, y) {
|
|
306
|
+
var _a;
|
|
307
|
+
(null === (_a = this.table.internalProps.menu) || void 0 === _a ? void 0 : _a.contextMenuItems) && ("html" === this.table.internalProps.menu.renderMode ? this.menu.isShow = !0 : (this.menu.isShow = !0,
|
|
308
|
+
this.menu.x = x, this.menu.y = y, this.table.scenegraph.component.menu.attach(x, y, col, row, menu_1.MenuType.contextmenu)),
|
|
309
|
+
this.table.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.SHOW_MENU, {
|
|
310
|
+
x: x,
|
|
311
|
+
y: y,
|
|
312
|
+
col: col,
|
|
313
|
+
row: row,
|
|
314
|
+
type: "contextmenu"
|
|
315
|
+
}));
|
|
316
|
+
}
|
|
317
|
+
triggerDropDownMenu(col, row, x, y) {
|
|
318
|
+
this.table.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.DROPDOWN_ICON_CLICK, {
|
|
319
|
+
col: col,
|
|
320
|
+
row: row
|
|
321
|
+
}), this.menu.isShow ? this.hideMenu() : this.showDropDownMenu(col, row, x, y);
|
|
322
|
+
}
|
|
323
|
+
showDropDownMenu(col, row, x, y) {
|
|
324
|
+
"html" === this.table.internalProps.menu.renderMode ? this.menu.isShow = !0 : (this.menu.isShow = !0,
|
|
325
|
+
this.table.scenegraph.component.menu.attach(x, y, col, row, menu_1.MenuType.dropDown),
|
|
326
|
+
this.menu.bounds = this.table.scenegraph.component.menu.bounds), this.table.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.SHOW_MENU, {
|
|
327
|
+
x: x,
|
|
328
|
+
y: y,
|
|
329
|
+
col: col,
|
|
330
|
+
row: row,
|
|
331
|
+
type: "dropDown"
|
|
332
|
+
}), this.residentHoverIcon && this.table.scenegraph.setIconNormalStyle(this.residentHoverIcon.icon, this.residentHoverIcon.col, this.residentHoverIcon.row);
|
|
333
|
+
const cellGroup = this.table.scenegraph.getCell(col, row);
|
|
334
|
+
let icon;
|
|
335
|
+
cellGroup.forEachChildren((child => child.attribute.funcType === ts_types_1.IconFuncTypeEnum.dropDown && (icon = child,
|
|
336
|
+
!0))), icon && (this.residentHoverIcon = {
|
|
337
|
+
col: col,
|
|
338
|
+
row: row,
|
|
339
|
+
icon: icon
|
|
340
|
+
}, this.table.scenegraph.setIconHoverStyle(this.residentHoverIcon.icon, this.residentHoverIcon.col, this.residentHoverIcon.row, cellGroup),
|
|
341
|
+
icon.oldVisibleTime = icon.attribute.visibleTime, icon.setAttribute("visibleTime", "always"),
|
|
342
|
+
icon.setAttribute("visible", !0));
|
|
343
|
+
}
|
|
344
|
+
hideMenu() {
|
|
345
|
+
this.table.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.DROPDOWN_MENU_CLEAR, null),
|
|
346
|
+
this.table.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.HIDE_MENU), this.menu.isShow = !1,
|
|
347
|
+
this.table.scenegraph.component.menu.detach(), this.residentHoverIcon && (this.table.scenegraph.setIconNormalStyle(this.residentHoverIcon.icon, this.residentHoverIcon.col, this.residentHoverIcon.row),
|
|
348
|
+
this.residentHoverIcon.icon.setAttribute("visibleTime", this.residentHoverIcon.icon.oldVisibleTime),
|
|
349
|
+
this.residentHoverIcon.icon.setAttribute("visible", "always" === this.residentHoverIcon.icon.attribute.visibleTime),
|
|
350
|
+
this.residentHoverIcon = null);
|
|
351
|
+
}
|
|
352
|
+
setDropDownMenuHighlight(cells) {
|
|
353
|
+
this.menu.dropDownMenuHighlight = cells;
|
|
354
|
+
for (let i = 0; i < cells.length; i++) {
|
|
355
|
+
const {col: col, row: row} = cells[i];
|
|
356
|
+
this.table.scenegraph.updateCellContent(col, row);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
dropDownMenuIsHighlight(colNow, rowNow, index) {
|
|
360
|
+
const highlights = this.menu.dropDownMenuHighlight;
|
|
361
|
+
if (Array.isArray(highlights)) for (let i = 0; i < highlights.length; i++) {
|
|
362
|
+
const highlight = highlights[i];
|
|
363
|
+
let {col: col, row: row} = highlight;
|
|
364
|
+
const {field: field, menuKey: menuKey} = highlight;
|
|
365
|
+
if ("number" != typeof col || "number" != typeof row) if (this.table.isPivotTable() && (Array.isArray(field),
|
|
366
|
+
1)) {
|
|
367
|
+
const cellAddress = this.table.internalProps.layoutMap.getPivotCellAdress(field);
|
|
368
|
+
if (!cellAddress) continue;
|
|
369
|
+
col = cellAddress.col, row = cellAddress.row;
|
|
370
|
+
} else {
|
|
371
|
+
const cellAddress = this.table.internalProps.layoutMap.getHeaderCellAddressByField(field);
|
|
372
|
+
if (!cellAddress) continue;
|
|
373
|
+
col = cellAddress.col, row = cellAddress.row;
|
|
374
|
+
}
|
|
375
|
+
if ((0, util_1.isValid)(col) && (0, util_1.isValid)(row) && this.table.isCellRangeEqual(colNow, rowNow, col, row)) {
|
|
376
|
+
const dropDownMenu = this.table._getHeaderLayoutMap(null != col ? col : colNow, null != row ? row : rowNow).dropDownMenu || this.table.globalDropDownMenu;
|
|
377
|
+
if (dropDownMenu) for (let i = 0; i < dropDownMenu.length; i++) {
|
|
378
|
+
const item = dropDownMenu[i];
|
|
379
|
+
if ((0, util_1.isObject)(item) && (item.menuKey || item.text) === (menuKey || "") && i === index) return !0;
|
|
380
|
+
if ((0, util_1.isString)(item) && item === menuKey && i === index) return !0;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
return !1;
|
|
385
|
+
}
|
|
386
|
+
triggerSort(col, row, iconMark) {
|
|
387
|
+
if (this.table.isPivotTable()) {
|
|
388
|
+
const order = this.table.getPivotSortState(col, row);
|
|
389
|
+
return void this.table.fireListeners(PIVOT_TABLE_EVENT_TYPE_1.PIVOT_TABLE_EVENT_TYPE.PIVOT_SORT_CLICK, {
|
|
390
|
+
col: col,
|
|
391
|
+
row: row,
|
|
392
|
+
order: order || "normal",
|
|
393
|
+
dimensionInfo: this.table.internalProps.layoutMap.getPivotDimensionInfo(col, row),
|
|
394
|
+
cellType: this.table.getCellType(col, row)
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
const oldSortCol = this.sort.col, oldSortRow = this.sort.row;
|
|
398
|
+
(0, sort_1.dealSort)(col, row, this.table), this.sort.col = col, this.sort.row = row,
|
|
399
|
+
this.table.scenegraph.updateSortIcon(this.sort.col, this.sort.row, iconMark, this.sort.order, oldSortCol, oldSortRow, this.sort.icon),
|
|
400
|
+
this.sort.icon = iconMark;
|
|
401
|
+
}
|
|
402
|
+
updateSortState(sortState) {
|
|
403
|
+
if (sortState.field === this.sort.field && sortState.order === this.sort.order) return;
|
|
404
|
+
const oldSortCol = this.sort.col, oldSortRow = this.sort.row, name = "asc" === this.sort.order ? "sort_downward" : "desc" === this.sort.order ? "sort_upward" : "sort_normal";
|
|
405
|
+
this.setSortState(sortState);
|
|
406
|
+
const cellAddress = this.table.internalProps.layoutMap.getHeaderCellAddressByField(sortState.field);
|
|
407
|
+
this.sort.col = cellAddress.col, this.sort.row = cellAddress.row;
|
|
408
|
+
const iconMark = this.table.scenegraph.getCell(this.sort.col, this.sort.row).getChildByName(name, !0);
|
|
409
|
+
this.table.scenegraph.sortCell(), this.table.scenegraph.updateSortIcon(this.sort.col, this.sort.row, iconMark, this.sort.order, oldSortCol, oldSortRow, this.sort.icon);
|
|
410
|
+
}
|
|
411
|
+
triggerPin(col, row, iconMark) {
|
|
412
|
+
this.table.isPivotTable() || this.table.transpose || ((0, pin_1.dealPin)(col, row, this.table),
|
|
413
|
+
this.frozen.icon = iconMark);
|
|
414
|
+
}
|
|
415
|
+
updateCursor(mode = "default") {
|
|
416
|
+
this.table.getElement().style.cursor = mode;
|
|
417
|
+
}
|
|
418
|
+
updateDrillState(dimensionKey, dimensionTitle, drillDown, drillUp, col, row) {
|
|
419
|
+
this.drill.dimensionKey = dimensionKey, this.drill.dimensionTitle = dimensionTitle,
|
|
420
|
+
this.drill.drillDown = drillDown, this.drill.drillUp = drillUp, this.drill.col = col,
|
|
421
|
+
this.drill.row = row, (0, drill_1.updateDrill)(col, row, drillDown, drillUp, this.table);
|
|
422
|
+
}
|
|
423
|
+
updateChartHoverPose(col, row, x, y) {
|
|
424
|
+
-1 !== this.sparkLine.col && -1 !== this.sparkLine.row && (0, spark_line_1.clearChartHover)(this.sparkLine.col, this.sparkLine.row, this.table),
|
|
425
|
+
-1 !== col && -1 !== row && (0, spark_line_1.updateChartHover)(col, row, x, y, this.table),
|
|
426
|
+
this.sparkLine.col = col, this.sparkLine.row = row;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
exports.StateManeger = StateManeger;
|
|
431
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["state/state.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AAcxD,0CAA+C;AAC/C,8DAAkE;AAClE,6DAA8D;AAC9D,+BAAgC;AAChC,iCAAkC;AAClC,8DAA2E;AAC3E,4CAA8C;AAE9C,2FAAwF;AAExF,+DAA4D;AAC5D,6CAA0C;AAC1C,mCAAsC;AACtC,6CAAiE;AACjE,2CAAsE;AAGtE,mDAAwE;AAExE,wCAA4D;AAW5D,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,2CAAyB,CAAA;AAC3B,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AASD,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,+BAAe,CAAA;AACjB,CAAC,EANW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAMzB;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,wBAAa,CAAA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I,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;QAC7B,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QACrB,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QACrB,IAAA,mBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;IAED,oBAAoB,CAAC,GAAW,EAAE,GAAW,EAAE,CAAS,EAAE,CAAS;QACjE,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE;YAC1D,IAAA,4BAAe,EAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;SACrE;QACD,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,EAAE;YAC5B,IAAA,6BAAgB,EAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;SAC9C;QACD,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC;QACzB,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC;IAC3B,CAAC;CACF;AA/3BD,oCA+3BC","file":"state.js","sourcesContent":["import { Rect } from '../tools/Rect';\nimport { MenuType } from '../scenegraph/component/menu';\nimport type { Group } from '../scenegraph/graphic/group';\nimport type { Icon } from '../scenegraph/graphic/icon';\nimport type {\n CellAddress,\n CellPosition,\n CellRange,\n DropDownMenuHighlightInfo,\n IDimensionInfo,\n ListTableAPI,\n MenuListItem,\n PivotTableAPI,\n SortState\n} from '../ts-types';\nimport { IconFuncTypeEnum } from '../ts-types';\nimport { checkMultiCellInSelect } from './common/check-in-select';\nimport { updateHoverPosition } from './hover/update-position';\nimport { dealPin } from './pin';\nimport { dealSort } from './sort';\nimport { selectEnd, updateSelectPosition } from './select/update-position';\nimport { cellInRange } from '../tools/helper';\nimport type { ListTable } from '../ListTable';\nimport { PIVOT_TABLE_EVENT_TYPE } from '../ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE';\nimport type { PivotHeaderLayoutMap } from '../layout/pivot-header-layout';\nimport { TABLE_EVENT_TYPE } from '../core/TABLE_EVENT_TYPE';\nimport { Bounds } from '@visactor/vutils';\nimport { updateDrill } from './drill';\nimport { clearChartHover, updateChartHover } from './spark-line';\nimport { endMoveCol, startMoveCol, updateMoveCol } from './cell-move';\nimport type { FederatedEvent } from '@visactor/vrender';\nimport type { TooltipOptions } from '../ts-types/tooltip';\nimport { getIconAndPositionFromTarget } from '../scenegraph/utils/icon';\nimport type { BaseTableAPI } from '../ts-types/base-table';\nimport { isObject, isString, isValid } from '../tools/util';\n\n/**\n * 当前表格的交互状态:\n * Default 默认展示\n * grabing 拖拽中\n * -Resize column 改变列宽\n * -column move 调整列顺序\n * -drag select 拖拽多选\n * Scrolling 滚动中\n */\nexport enum InteractionState {\n 'default' = 'default',\n 'grabing' = 'grabing',\n 'scrolling' = 'scrolling'\n}\n/**\n * 单元格的高亮效果设置\n * single 单个单元格高亮\n * column 整列高亮\n * row 整行高量\n * cross 十字花 行列均高亮\n * none 无高亮\n */\nexport enum HighlightScope {\n 'single' = 'single',\n 'column' = 'column',\n 'row' = 'row',\n 'cross' = 'cross',\n 'none' = 'none'\n}\n\nexport enum SortOrder {\n 'asc' = 'asc',\n 'desc' = 'desc',\n 'normal' = 'normal'\n}\n\nexport class StateManeger {\n table: BaseTableAPI;\n /**\n * Default 默认展示\n * grabing 拖拽中\n * -Resize column 改变列宽\n * -column move 调整列顺序\n * -drag select 拖拽多选\n * Scrolling 滚动中\n */\n interactionState: InteractionState;\n // select记录两个位置,第二个位置只在range模式生效\n select: {\n ranges: CellRange[];\n highlightScope: HighlightScope;\n cellPos: CellPosition;\n // cellPosStart: CellPosition;\n // cellPosEnd: CellPosition;\n singleStyle?: boolean; // select当前单元格是否使用单独样式\n disableHeader?: boolean; // 是否禁用表头select\n selecting: boolean;\n };\n hover: {\n highlightScope: HighlightScope; // hover模式\n singleStyle?: boolean; // hover当前单元格是否使用单独样式\n disableHeader?: boolean; // 是否禁用表头hover\n cellPos: CellPosition; // 记录当前hover的位置\n cellPosContainHeader?: CellPosition; // 记录当前hover的位置(在disableHeader时启用,记录真实位置)\n };\n hoverIcon: {\n col: number;\n row: number;\n icon: Icon | null;\n };\n residentHoverIcon?: {\n col: number;\n row: number;\n icon: Icon | null;\n };\n columnResize: {\n col: number;\n x: number;\n resizing: boolean;\n };\n columnMove: {\n colSource: number;\n colTarget: number;\n rowSource: number;\n rowTarget: number;\n x: number;\n y: number;\n moving: boolean;\n };\n menu: {\n x: number;\n y: number;\n isShow: boolean;\n itemList: MenuListItem[];\n bounds: Bounds;\n highlightIndex: number;\n dropDownMenuHighlight?: DropDownMenuHighlightInfo[];\n };\n sort: {\n col: number;\n row: number;\n field?: string;\n fieldKey?: string;\n order: SortOrder;\n icon?: Icon;\n };\n frozen: {\n col: number;\n // row: number;\n icon?: Icon;\n };\n scroll: {\n horizontalBarPos: number;\n verticalBarPos: number;\n };\n tablePosition: {\n absoluteX: number;\n absoluteY: number;\n };\n drill: {\n dimensionKey?: string;\n dimensionTitle?: string;\n drillDown?: boolean;\n drillUp?: boolean;\n col: number;\n row: number;\n };\n sparkLine: {\n col: number;\n row: number;\n };\n _clearVerticalScrollBar: any;\n _clearHorizontalScrollBar: any;\n\n // _x: number = 0;\n constructor(table: BaseTableAPI) {\n this.table = table;\n this.initState();\n this.setHoverState();\n this.setSelectState();\n this.setFrozenState();\n\n this.updateVerticalScrollBar = this.updateVerticalScrollBar.bind(this);\n this.updateHorizontalScrollBar = this.updateHorizontalScrollBar.bind(this);\n }\n\n initState() {\n this.interactionState = InteractionState.default;\n this.select = {\n highlightScope: HighlightScope.single,\n ranges: [],\n cellPos: {\n col: -1,\n row: -1\n },\n selecting: false\n };\n this.hover = {\n highlightScope: HighlightScope.single,\n cellPos: {\n col: -1,\n row: -1\n }\n };\n this.hoverIcon = {\n col: -1,\n row: -1,\n icon: null\n };\n this.columnResize = {\n col: -1,\n x: 0,\n resizing: false\n };\n this.columnMove = {\n colSource: -1,\n colTarget: -1,\n rowSource: -1,\n rowTarget: -1,\n x: 0,\n y: 0,\n moving: false\n };\n this.menu = {\n x: -1,\n y: -1,\n isShow: false,\n itemList: [],\n bounds: new Bounds(),\n highlightIndex: -1,\n dropDownMenuHighlight: []\n };\n this.sort = {\n col: -1,\n row: -1,\n order: SortOrder.normal\n };\n this.frozen = {\n col: -1\n // row: -1,\n };\n this.scroll = {\n horizontalBarPos: 0,\n verticalBarPos: 0\n };\n this.tablePosition = {\n absoluteX: 0,\n absoluteY: 0\n };\n this.drill = {\n col: -1,\n row: -1\n };\n this.sparkLine = {\n col: -1,\n row: -1\n };\n }\n\n setHoverState() {\n const { highlightMode, disableHover, disableHeaderHover } = this.table.options.hover ?? {\n highlightMode: 'cell'\n };\n if (!disableHover) {\n if (highlightMode === 'cross') {\n this.hover.highlightScope = HighlightScope.cross;\n } else if (highlightMode === 'row') {\n this.hover.highlightScope = HighlightScope.row;\n } else if (highlightMode === 'column') {\n this.hover.highlightScope = HighlightScope.column;\n } else if (highlightMode === 'cell') {\n this.hover.highlightScope = HighlightScope.single;\n }\n } else {\n this.hover.highlightScope = HighlightScope.none;\n }\n\n this.hover.singleStyle = !disableHover;\n this.hover.disableHeader = disableHeaderHover;\n if (this.hover.highlightScope === HighlightScope.none || disableHeaderHover) {\n this.hover.cellPosContainHeader = {\n col: -1,\n row: -1\n };\n }\n }\n\n setSelectState() {\n const {\n // enableRowHighlight,\n // enableColumnHighlight,\n disableSelect,\n disableHeaderSelect\n } = this.table.options?.select ?? {\n disableSelect: false,\n disableHeaderSelect: false\n };\n\n // if (enableRowHighlight && enableColumnHighlight) {\n // this.select.highlightScope = HighlightScope.cross;\n // } else if (enableRowHighlight) {\n // this.select.highlightScope = HighlightScope.row;\n // } else if (enableColumnHighlight) {\n // this.select.highlightScope = HighlightScope.column;\n // } else\n if (!disableSelect) {\n this.select.highlightScope = HighlightScope.single;\n } else {\n this.select.highlightScope = HighlightScope.none;\n }\n\n this.select.singleStyle = !disableSelect;\n this.select.disableHeader = disableHeaderSelect;\n }\n\n isSelected(col: number, row: number): boolean {\n // if (!this.select.selecting) {\n // return false;\n // }\n let seled = false;\n this.select.ranges.forEach((range: CellRange) => {\n if (cellInRange(range, col, row)) {\n seled = true;\n }\n });\n return seled;\n }\n\n setSortState(sortState: SortState) {\n this.sort.field = sortState.field as string;\n this.sort.fieldKey = sortState.fieldKey as string;\n this.sort.order = SortOrder[sortState.order];\n\n // // 这里有一个问题,目前sortState中一般只传入了fieldKey,但是getCellRangeByField需要field\n // const range = this.table.getCellRangeByField(this.sort.field, 0);\n // if (range) {\n // this.sort.col = range.start.col;\n // this.sort.row = range.start.row;\n // }\n }\n\n setFrozenState() {\n this.frozen.col = this.table.frozenColCount - 1;\n // this.frozen.row = 0;\n }\n\n updateInteractionState(mode: InteractionState) {\n if (this.interactionState === mode) {\n return;\n }\n this.interactionState = mode;\n // 处理mode 更新后逻辑\n // ......\n }\n\n updateHoverhighlightScope(mode: HighlightScope) {\n if (this.hover.highlightScope === mode) {\n return;\n }\n this.hover.highlightScope = mode;\n // 处理mode 更新后逻辑\n // ......\n }\n\n updateHoverPos(col: number, row: number) {\n updateHoverPosition(this, col, row);\n }\n\n updateSelectPos(\n col: number,\n row: number,\n isShift: boolean = false,\n isCtrl: boolean = false,\n isSelectAll: boolean = false\n ) {\n if (row !== -1 && row !== -1) {\n this.select.selecting = true;\n }\n updateSelectPosition(this, col, row, isShift, isCtrl, isSelectAll);\n }\n\n checkCellRangeInSelect(cellPosStart: CellAddress, cellPosEnd: CellAddress) {\n return checkMultiCellInSelect(\n cellPosStart,\n cellPosEnd,\n this.select.ranges,\n // this.select.cellPosEnd,\n this.select.highlightScope\n );\n }\n\n updateHoverIcon(col: number, row: number, target: any, cellGroup: Group, event?: FederatedEvent) {\n if (target === this.residentHoverIcon?.icon) {\n return; // 常驻hover icon不更新交互\n }\n const iconInfo = getIconAndPositionFromTarget(target);\n if (!iconInfo) {\n // target非icon\n if (this.hoverIcon.icon && this.hoverIcon.icon !== this.residentHoverIcon?.icon) {\n this.table.scenegraph.setIconNormalStyle(this.hoverIcon.icon, this.hoverIcon.col, this.hoverIcon.row);\n\n this.hoverIcon.col = -1;\n this.hoverIcon.col = -1;\n this.hoverIcon.icon = null;\n this.table.scenegraph.updateNextFrame();\n }\n return;\n }\n if (iconInfo.type === 'richtext-icon') {\n // richtext icon 特殊处理\n const inlineIcon = iconInfo.icon;\n // 清除当前hover icon\n if (this.hoverIcon.icon && this.hoverIcon.icon !== this.residentHoverIcon?.icon) {\n this.table.scenegraph.setIconNormalStyle(this.hoverIcon.icon, this.hoverIcon.col, this.hoverIcon.row);\n\n this.hoverIcon.col = -1;\n this.hoverIcon.col = -1;\n this.hoverIcon.icon = null;\n this.table.scenegraph.updateNextFrame();\n }\n // hover展示tooltip\n if (inlineIcon.attribute.tooltip) {\n const tooltipOptions: TooltipOptions = {\n content: inlineIcon.attribute.tooltip.title,\n referencePosition: {\n rect: iconInfo.position,\n placement: inlineIcon.attribute.tooltip.placement\n },\n style: Object.assign({}, this.table.internalProps.theme?.tooltipStyle, inlineIcon.tooltip?.style)\n };\n if (!this.table.internalProps.tooltipHandler.isBinded(tooltipOptions)) {\n this.table.showTooltip(col, row, tooltipOptions);\n }\n }\n } else {\n // const icon = target as Icon;\n const icon = iconInfo.icon;\n if (icon !== this.hoverIcon.icon) {\n if (this.hoverIcon.icon && this.hoverIcon.icon !== this.residentHoverIcon?.icon) {\n this.table.scenegraph.setIconNormalStyle(this.hoverIcon.icon, this.hoverIcon.col, this.hoverIcon.row);\n }\n\n this.hoverIcon.col = col;\n this.hoverIcon.col = row;\n this.hoverIcon.icon = icon;\n\n // 更新icon样式\n this.table.scenegraph.setIconHoverStyle(icon, col, row, cellGroup);\n this.table.scenegraph.updateNextFrame();\n }\n }\n }\n\n isResizeCol(): boolean {\n return this.columnResize.resizing;\n }\n isSelecting(): boolean {\n return this.select.selecting;\n }\n endSelectCells() {\n this.select.selecting = false;\n if (this.select.ranges.length === 0) {\n return;\n }\n selectEnd(this.table.scenegraph);\n\n // 触发SELECTED_CELL\n const lastCol = this.select.ranges[this.select.ranges.length - 1].end.col;\n const lastRow = this.select.ranges[this.select.ranges.length - 1].end.row;\n this.table.fireListeners(TABLE_EVENT_TYPE.SELECTED_CELL, {\n ranges: this.select.ranges,\n col: lastCol,\n row: lastRow\n });\n }\n endResizeCol() {\n setTimeout(() => {\n this.columnResize.resizing = false;\n }, 0);\n this.checkFrozen();\n this.table.scenegraph.component.hideResizeCol();\n this.table.scenegraph.updateNextFrame();\n }\n startResizeCol(col: number, x: number, y: number) {\n this.columnResize.resizing = true;\n this.columnResize.col = col;\n this.columnResize.x = x;\n\n this.table.scenegraph.component.showResizeCol(col, y);\n\n // 调整列宽期间清空选中清空\n this.table.stateManeger.updateSelectPos(-1, -1);\n\n this.table.scenegraph.updateNextFrame();\n }\n updateResizeCol(x: number, y: number) {\n let detaX = x - this.columnResize.x;\n // table.getColWidth会使用Math.round,因此这里直接跳过小于1px的修改\n if (Math.abs(detaX) < 1) {\n return;\n }\n\n // 检查minWidth/maxWidth\n // getColWidth会进行Math.round,所以先从colWidthsMap获取:\n // 如果是数值,直接使用;如果不是,则通过getColWidth获取像素值\n let widthCache = (this.table as any).colWidthsMap.get(this.columnResize.col);\n if (typeof widthCache === 'number') {\n widthCache = widthCache;\n } else {\n widthCache = this.table.getColWidth(this.columnResize.col);\n }\n let width = widthCache;\n width += detaX;\n const minWidth = this.table.getMinColWidth(this.columnResize.col);\n const maxWidth = this.table.getMaxColWidth(this.columnResize.col);\n\n if (width < minWidth || width > maxWidth) {\n if (widthCache === minWidth || widthCache === maxWidth) {\n return;\n } else if (widthCache - minWidth > maxWidth - widthCache) {\n detaX = maxWidth - widthCache;\n } else {\n detaX = minWidth - widthCache;\n }\n }\n // console.log('detaX', detaX);\n this.table.scenegraph.updateColWidth(this.columnResize.col, detaX);\n this.columnResize.x = x;\n\n this.table.scenegraph.component.updateResizeCol(this.columnResize.col, y);\n if (\n this.columnResize.col < this.table.frozenColCount &&\n !this.table.isPivotTable() &&\n !(this.table as ListTable).transpose\n ) {\n this.table.scenegraph.component.setFrozenColumnShadow(this.table.frozenColCount - 1);\n }\n this.table.scenegraph.updateNextFrame();\n }\n\n startMoveCol(col: number, row: number, x: number, y: number) {\n startMoveCol(col, row, x, y, this);\n }\n updateMoveCol(col: number, row: number, x: number, y: number) {\n updateMoveCol(col, row, x, y, this);\n }\n isMoveCol(): boolean {\n return this.columnMove.moving;\n }\n endMoveCol() {\n endMoveCol(this);\n }\n\n checkFrozen(): boolean {\n // 判断固定列的总宽度 是否过大\n if (this.table.options.frozenColCount) {\n if (this.table.tableNoFrameWidth - this.table.getColsWidth(0, this.table.options.frozenColCount - 1) <= 120) {\n this.table._setFrozenColCount(0);\n this.setFrozenCol(-1);\n return false;\n } else if (this.table.frozenColCount !== this.table.options.frozenColCount) {\n this.table._setFrozenColCount(this.table.options.frozenColCount);\n this.setFrozenCol(this.table.options.frozenColCount);\n return false;\n }\n }\n return true;\n }\n setFrozenCol(col: number) {\n if (col !== this.frozen.col) {\n // const oldFrozenCol = this.frozen.col;\n this.frozen.col = col;\n\n // 更新scenegraph,这里因为dealPin更新了table里存储的frozen信息,会影响scenegraph里的getCell\n // 因此先更新scenegraph结构再更新icon\n this.table.scenegraph.updateFrozen();\n\n // 更新icon\n this.table.scenegraph.updateFrozenIcon(0, this.table.colCount - 1);\n } else {\n this.table.scenegraph.updateFrozenIcon(0, this.table.colCount - 1);\n }\n }\n\n updateVerticalScrollBar(yRatio: number) {\n const totalHeight = this.table.getAllRowsHeight();\n this.scroll.verticalBarPos = yRatio * (totalHeight - this.table.scenegraph.height);\n this.table.scenegraph.setY(-this.scroll.verticalBarPos);\n\n // 滚动期间清空选中清空\n this.table.stateManeger.updateHoverPos(-1, -1);\n // this.table.stateManeger.updateSelectPos(-1, -1);\n\n this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {\n scrollTop: this.scroll.verticalBarPos,\n scrollLeft: this.scroll.horizontalBarPos,\n scrollHeight: this.table.theme.scrollStyle?.width,\n scrollWidth: this.table.theme.scrollStyle?.width,\n viewHeight: this.table.tableNoFrameHeight,\n viewWidth: this.table.tableNoFrameWidth\n });\n }\n updateHorizontalScrollBar(xRatio: number) {\n const totalWidth = this.table.getAllColsWidth();\n this.scroll.horizontalBarPos = xRatio * (totalWidth - this.table.scenegraph.width);\n this.table.scenegraph.setX(-this.scroll.horizontalBarPos);\n\n // 滚动期间清空选中清空\n this.table.stateManeger.updateHoverPos(-1, -1);\n // this.table.stateManeger.updateSelectPos(-1, -1);\n this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {\n scrollTop: this.scroll.verticalBarPos,\n scrollLeft: this.scroll.horizontalBarPos,\n scrollHeight: this.table.theme.scrollStyle?.width,\n scrollWidth: this.table.theme.scrollStyle?.width,\n viewHeight: this.table.tableNoFrameHeight,\n viewWidth: this.table.tableNoFrameWidth\n });\n }\n setScrollTop(top: number) {\n // 矫正top值范围\n const totalHeight = this.table.getAllRowsHeight();\n top = Math.max(0, Math.min(top, totalHeight - this.table.scenegraph.height));\n\n this.scroll.verticalBarPos = top;\n\n // 设置scenegraph坐标\n this.table.scenegraph.setY(-top);\n\n // 更新scrollbar位置\n this.table.scenegraph.component.updateVerticalScrollBarPos(top / (totalHeight - this.table.scenegraph.height));\n // 滚动期间清空选中清空\n this.table.stateManeger.updateHoverPos(-1, -1);\n // this.table.stateManeger.updateSelectPos(-1, -1);\n this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {\n scrollTop: this.scroll.verticalBarPos,\n scrollLeft: this.scroll.horizontalBarPos,\n scrollHeight: this.table.theme.scrollStyle?.width,\n scrollWidth: this.table.theme.scrollStyle?.width,\n viewHeight: this.table.tableNoFrameHeight,\n viewWidth: this.table.tableNoFrameWidth\n });\n }\n setScrollLeft(left: number) {\n // 矫正left值范围\n const totalWidth = this.table.getAllColsWidth();\n const frozenWidth = this.table.getFrozenColsWidth();\n\n left = Math.max(0, Math.min(left, totalWidth - this.table.scenegraph.width));\n\n this.scroll.horizontalBarPos = left;\n\n // 设置scenegraph坐标\n this.table.scenegraph.setX(-left);\n\n // 更新scrollbar位置\n this.table.scenegraph.component.updateHorizontalScrollBarPos(left / (totalWidth - frozenWidth));\n\n // 滚动期间清空选中清空\n this.table.stateManeger.updateHoverPos(-1, -1);\n // this.table.stateManeger.updateSelectPos(-1, -1);\n this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {\n scrollTop: this.scroll.verticalBarPos,\n scrollLeft: this.scroll.horizontalBarPos,\n scrollHeight: this.table.theme.scrollStyle?.width,\n scrollWidth: this.table.theme.scrollStyle?.width,\n viewHeight: this.table.tableNoFrameHeight,\n viewWidth: this.table.tableNoFrameWidth\n });\n }\n hideVerticalScrollBar() {\n this.table.scenegraph.component.hideVerticalScrollBar();\n }\n showVerticalScrollBar(autoHide?: boolean) {\n this.table.scenegraph.component.showVerticalScrollBar();\n if (autoHide) {\n // 滚轮触发滚动条显示后,异步隐藏\n clearTimeout(this._clearVerticalScrollBar);\n this._clearVerticalScrollBar = setTimeout(() => {\n this.table.scenegraph.component.hideVerticalScrollBar();\n }, 1000);\n }\n }\n hideHorizontalScrollBar() {\n this.table.scenegraph.component.hideHorizontalScrollBar();\n }\n showHorizontalScrollBar(autoHide?: boolean) {\n this.table.scenegraph.component.showHorizontalScrollBar();\n if (autoHide) {\n // 滚轮触发滚动条显示后,异步隐藏\n clearTimeout(this._clearHorizontalScrollBar);\n this._clearHorizontalScrollBar = setTimeout(() => {\n this.table.scenegraph.component.hideHorizontalScrollBar();\n }, 1000);\n }\n }\n\n triggerContextMenu(col: number, row: number, x: number, y: number) {\n if (this.menu.isShow && this.menu.x === x && this.menu.y === y) {\n this.hideMenu();\n } else {\n this.showContextMenu(col, row, x, y);\n }\n }\n\n showContextMenu(col: number, row: number, x: number, y: number) {\n if (this.table.internalProps.menu?.contextMenuItems) {\n if (this.table.internalProps.menu.renderMode === 'html') {\n // dom菜单通过LG_EVENT_TYPE.DROPDOWN_ICON_CLICK事件触发\n this.menu.isShow = true;\n } else {\n this.menu.isShow = true;\n this.menu.x = x;\n this.menu.y = y;\n this.table.scenegraph.component.menu.attach(x, y, col, row, MenuType.contextmenu);\n }\n this.table.fireListeners(TABLE_EVENT_TYPE.SHOW_MENU, { x, y, col, row, type: 'contextmenu' });\n }\n }\n\n triggerDropDownMenu(col: number, row: number, x: number, y: number) {\n this.table.fireListeners(TABLE_EVENT_TYPE.DROPDOWN_ICON_CLICK, {\n col,\n row\n });\n if (this.menu.isShow) {\n this.hideMenu();\n } else {\n this.showDropDownMenu(col, row, x, y);\n }\n }\n\n showDropDownMenu(col: number, row: number, x: number, y: number) {\n if (this.table.internalProps.menu.renderMode === 'html') {\n // dom菜单通过LG_EVENT_TYPE.CONTEXTMENU_CELL事件触发\n this.menu.isShow = true;\n } else {\n this.menu.isShow = true;\n this.table.scenegraph.component.menu.attach(x, y, col, row, MenuType.dropDown);\n this.menu.bounds = this.table.scenegraph.component.menu.bounds as Bounds;\n }\n this.table.fireListeners(TABLE_EVENT_TYPE.SHOW_MENU, { x, y, col, row, type: 'dropDown' });\n\n if (this.residentHoverIcon) {\n this.table.scenegraph.setIconNormalStyle(\n this.residentHoverIcon.icon,\n this.residentHoverIcon.col,\n this.residentHoverIcon.row\n );\n }\n // 常驻显示下拉菜单hover按钮\n const cellGroup = this.table.scenegraph.getCell(col, row);\n let icon: Icon;\n cellGroup.forEachChildren((child: Icon) => {\n if (child.attribute.funcType === IconFuncTypeEnum.dropDown) {\n icon = child;\n return true;\n }\n return false;\n });\n if (icon) {\n this.residentHoverIcon = {\n col,\n row,\n icon\n };\n this.table.scenegraph.setIconHoverStyle(\n this.residentHoverIcon.icon,\n this.residentHoverIcon.col,\n this.residentHoverIcon.row,\n cellGroup\n );\n (icon as any).oldVisibleTime = icon.attribute.visibleTime;\n icon.setAttribute('visibleTime', 'always');\n icon.setAttribute('visible', true);\n }\n }\n\n hideMenu() {\n this.table.fireListeners(TABLE_EVENT_TYPE.DROPDOWN_MENU_CLEAR, null);\n this.table.fireListeners(TABLE_EVENT_TYPE.HIDE_MENU);\n this.menu.isShow = false;\n this.table.scenegraph.component.menu.detach();\n if (this.residentHoverIcon) {\n this.table.scenegraph.setIconNormalStyle(\n this.residentHoverIcon.icon,\n this.residentHoverIcon.col,\n this.residentHoverIcon.row\n );\n this.residentHoverIcon.icon.setAttribute('visibleTime', (this.residentHoverIcon.icon as any).oldVisibleTime);\n this.residentHoverIcon.icon.setAttribute(\n 'visible',\n this.residentHoverIcon.icon.attribute.visibleTime === 'always'\n );\n this.residentHoverIcon = null;\n }\n }\n\n setDropDownMenuHighlight(cells: DropDownMenuHighlightInfo[]): void {\n this.menu.dropDownMenuHighlight = cells;\n for (let i = 0; i < cells.length; i++) {\n const { col, row } = cells[i];\n this.table.scenegraph.updateCellContent(col, row);\n }\n }\n dropDownMenuIsHighlight(colNow: number, rowNow: number, index: number): boolean {\n const highlights = this.menu.dropDownMenuHighlight;\n if (Array.isArray(highlights)) {\n for (let i = 0; i < highlights.length; i++) {\n const highlight = highlights[i];\n let { col, row } = highlight;\n const { field, menuKey } = highlight;\n // 这部分比较hack,需要和张宏再确认一下\n // 没有col和row时,通过field或cellHeaderPaths确定col和row\n if (typeof col !== 'number' || typeof row !== 'number') {\n if (this.table.isPivotTable() && typeof Array.isArray(field)) {\n const cellAddress = (this.table.internalProps.layoutMap as PivotHeaderLayoutMap).getPivotCellAdress(\n field as IDimensionInfo[]\n );\n if (!cellAddress) {\n continue;\n }\n col = cellAddress.col;\n row = cellAddress.row;\n } else {\n const cellAddress = this.table.internalProps.layoutMap.getHeaderCellAddressByField(field as string);\n if (!cellAddress) {\n continue;\n }\n col = cellAddress.col;\n row = cellAddress.row;\n }\n }\n\n if (isValid(col) && isValid(row) && this.table.isCellRangeEqual(colNow, rowNow, col, row)) {\n // 手动查询menuKey对应的dropDownIndex\n const headerC = this.table._getHeaderLayoutMap(col ?? colNow, row ?? rowNow);\n\n const dropDownMenu = headerC.dropDownMenu || this.table.globalDropDownMenu;\n if (dropDownMenu) {\n for (let i = 0; i < dropDownMenu.length; i++) {\n const item: any = dropDownMenu[i];\n if (isObject(item) && (item.menuKey || item.text) === (menuKey || '') && i === index) {\n // return i === index;\n return true;\n } else if (isString(item) && item === menuKey && i === index) {\n return true;\n }\n }\n }\n }\n }\n }\n return false;\n }\n triggerSort(col: number, row: number, iconMark: Icon) {\n if (this.table.isPivotTable()) {\n // 透视表不执行sort操作\n const order = (this.table as PivotTableAPI).getPivotSortState(col, row);\n // // 触发透视表排序按钮点击\n this.table.fireListeners(PIVOT_TABLE_EVENT_TYPE.PIVOT_SORT_CLICK, {\n col: col,\n row: row,\n order: order || 'normal',\n dimensionInfo: (this.table.internalProps.layoutMap as PivotHeaderLayoutMap).getPivotDimensionInfo(col, row),\n cellType: this.table.getCellType(col, row)\n });\n return;\n }\n\n const oldSortCol = this.sort.col;\n const oldSortRow = this.sort.row;\n // 执行sort\n dealSort(col, row, this.table as ListTableAPI);\n this.sort.col = col;\n this.sort.row = row;\n\n // 更新icon\n this.table.scenegraph.updateSortIcon(\n this.sort.col,\n this.sort.row,\n iconMark,\n this.sort.order,\n oldSortCol,\n oldSortRow,\n this.sort.icon\n );\n this.sort.icon = iconMark;\n }\n\n updateSortState(sortState: SortState) {\n if (sortState.field === this.sort.field && sortState.order === this.sort.order) {\n return;\n }\n const oldSortCol = this.sort.col;\n const oldSortRow = this.sort.row;\n const name =\n this.sort.order === 'asc' ? 'sort_downward' : this.sort.order === 'desc' ? 'sort_upward' : 'sort_normal';\n this.setSortState(sortState);\n // 获取sort对应的行列位置\n const cellAddress = this.table.internalProps.layoutMap.getHeaderCellAddressByField(sortState.field as string);\n this.sort.col = cellAddress.col;\n this.sort.row = cellAddress.row;\n const cellGroup = this.table.scenegraph.getCell(this.sort.col, this.sort.row);\n const iconMark = cellGroup.getChildByName(name, true);\n\n // 更新cell\n this.table.scenegraph.sortCell();\n // 更新icon\n this.table.scenegraph.updateSortIcon(\n this.sort.col,\n this.sort.row,\n iconMark,\n this.sort.order,\n oldSortCol,\n oldSortRow,\n this.sort.icon\n );\n }\n\n triggerPin(col: number, row: number, iconMark: Icon) {\n if (this.table.isPivotTable() || (this.table as ListTable).transpose) {\n return;\n }\n // let oldFrowzenCol = this.frowzen.col;\n // let oldFrowzenRow = this.frowzen.row;\n\n // 更新frozen\n dealPin(col, row, this.table);\n\n // // 更新scenegraph,这里因为dealPin更新了table里存储的frozen信息,会影响scenegraph里的getCell\n // // 因此先更新scenegraph结构再更新icon\n // this.table.scenegraph.updateFrozen(this.frowzen.col);\n\n // // 更新icon\n // this.table.scenegraph.updateFrozenIcon(oldFrowzenCol, this.frowzen.col);\n\n this.frozen.icon = iconMark;\n }\n\n updateCursor(mode: string = 'default') {\n this.table.getElement().style.cursor = mode;\n }\n\n updateDrillState(\n dimensionKey: string,\n dimensionTitle: string,\n drillDown: boolean,\n drillUp: boolean,\n col: number,\n row: number\n ) {\n this.drill.dimensionKey = dimensionKey;\n this.drill.dimensionTitle = dimensionTitle;\n this.drill.drillDown = drillDown;\n this.drill.drillUp = drillUp;\n this.drill.col = col;\n this.drill.row = row;\n updateDrill(col, row, drillDown, drillUp, this.table);\n }\n\n updateChartHoverPose(col: number, row: number, x: number, y: number) {\n if (this.sparkLine.col !== -1 && this.sparkLine.row !== -1) {\n clearChartHover(this.sparkLine.col, this.sparkLine.row, this.table);\n }\n if (col !== -1 && row !== -1) {\n updateChartHover(col, row, x, y, this.table);\n }\n this.sparkLine.col = col;\n this.sparkLine.row = row;\n }\n}\n"]}
|