@visactor/vtable 0.12.3-alpha.1 → 0.13.0-alpha.1
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/cjs/ListTable.js +15 -14
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.d.ts +1 -0
- package/cjs/PivotChart.js +10 -7
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js +6 -6
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/body-helper/body-helper.d.ts +1 -1
- package/cjs/body-helper/body-helper.js +4 -1
- package/cjs/body-helper/body-helper.js.map +1 -1
- package/cjs/body-helper/style/CheckboxStyle.d.ts +7 -0
- package/cjs/body-helper/style/CheckboxStyle.js +24 -0
- package/cjs/body-helper/style/CheckboxStyle.js.map +1 -0
- package/cjs/body-helper/style.js +2 -2
- package/cjs/body-helper/style.js.map +1 -1
- package/cjs/components/axis/axis.d.ts +2 -2
- package/cjs/components/axis/axis.js +5 -4
- package/cjs/components/axis/axis.js.map +1 -1
- package/cjs/components/axis/get-axis-attributes.d.ts +137 -0
- package/cjs/components/axis/get-axis-attributes.js +10 -5
- package/cjs/components/axis/get-axis-attributes.js.map +1 -1
- package/cjs/components/axis/get-axis-component-size.js +32 -32
- package/cjs/components/axis/get-axis-component-size.js.map +1 -1
- package/cjs/components/axis/linear-scale.d.ts +8 -5
- package/cjs/components/axis/linear-scale.js +19 -5
- package/cjs/components/axis/linear-scale.js.map +1 -1
- package/cjs/components/menu/dom/logic/MenuElement.js +2 -2
- package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -1
- package/cjs/components/menu/dom/logic/MenuElementStyle.js +8 -3
- package/cjs/components/menu/dom/logic/MenuElementStyle.js.map +1 -1
- package/cjs/components/tooltip/logic/BubbleTooltipElement.js +6 -5
- package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js +8 -3
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +3 -0
- package/cjs/core/BaseTable.js +62 -20
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/core/style.js +8 -3
- package/cjs/core/style.js.map +1 -1
- package/cjs/data/DataSource.js +5 -5
- package/cjs/data/DataSource.js.map +1 -1
- package/cjs/dataset/dataset.js +2 -2
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/event/EventTarget.js +2 -2
- package/cjs/event/EventTarget.js.map +1 -1
- package/cjs/event/event.js +5 -5
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/listener/table-group.js +8 -0
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/event/listener/touch.js +2 -1
- package/cjs/event/listener/touch.js.map +1 -1
- package/cjs/event/scroll.js +1 -1
- package/cjs/event/scroll.js.map +1 -1
- package/cjs/header-helper/style.js +2 -2
- package/cjs/header-helper/style.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/chart-helper/get-axis-config.js +16 -16
- package/cjs/layout/chart-helper/get-axis-config.js.map +1 -1
- package/cjs/layout/chart-helper/get-axis-domain.js +11 -8
- package/cjs/layout/chart-helper/get-axis-domain.js.map +1 -1
- package/cjs/layout/chart-helper/get-chart-spec.js +2 -2
- package/cjs/layout/chart-helper/get-chart-spec.js.map +1 -1
- package/cjs/layout/pivot-header-layout.d.ts +1 -1
- package/cjs/layout/pivot-header-layout.js +25 -25
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/layout/simple-header-layout.js +5 -5
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/cjs/render/layout/container.js +3 -3
- package/cjs/render/layout/container.js.map +1 -1
- package/cjs/render/layout/icon.js +2 -2
- package/cjs/render/layout/icon.js.map +1 -1
- package/cjs/render/layout/image.js.map +1 -1
- package/cjs/render/layout/text.js +1 -1
- package/cjs/render/layout/text.js.map +1 -1
- package/cjs/scenegraph/component/custom.js +11 -11
- package/cjs/scenegraph/component/custom.js.map +1 -1
- package/cjs/scenegraph/component/menu.js +2 -0
- package/cjs/scenegraph/component/menu.js.map +1 -1
- package/cjs/scenegraph/context/canvas.js +2 -2
- package/cjs/scenegraph/context/canvas.js.map +1 -1
- package/cjs/scenegraph/context/context.js +2 -2
- package/cjs/scenegraph/context/context.js.map +1 -1
- package/cjs/scenegraph/context/module.d.ts +1 -1
- package/cjs/scenegraph/context/module.js +2 -2
- package/cjs/scenegraph/context/module.js.map +1 -1
- package/cjs/scenegraph/graphic/chart.d.ts +2 -0
- package/cjs/scenegraph/graphic/chart.js +8 -2
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +2 -2
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/cjs/scenegraph/graphic/group.d.ts +6 -2
- package/cjs/scenegraph/graphic/group.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.d.ts +3 -3
- package/cjs/scenegraph/group-creater/cell-helper.js +38 -38
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +4 -2
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +5 -0
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +74 -0
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js +2 -2
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +4 -4
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js +4 -4
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js +2 -2
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/column-helper.d.ts +3 -2
- package/cjs/scenegraph/group-creater/column-helper.js +78 -46
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +23 -24
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.d.ts +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js +8 -5
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +3 -4
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +11 -12
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- package/cjs/scenegraph/icon/icon-update.d.ts +17 -0
- package/cjs/scenegraph/icon/icon-update.js +165 -0
- package/cjs/scenegraph/icon/icon-update.js.map +1 -0
- package/cjs/scenegraph/layout/compute-row-height.js +2 -1
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/layout/frozen.js +9 -7
- package/cjs/scenegraph/layout/frozen.js.map +1 -1
- package/cjs/scenegraph/layout/move-cell.js +8 -27
- package/cjs/scenegraph/layout/move-cell.js.map +1 -1
- package/cjs/scenegraph/layout/update-height.js +36 -24
- package/cjs/scenegraph/layout/update-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-row.js +6 -2
- package/cjs/scenegraph/layout/update-row.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js +39 -26
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/refresh-node/update-chart.js +6 -3
- package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +7 -13
- package/cjs/scenegraph/scenegraph.js +40 -154
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/stick-text/index.js +76 -37
- package/cjs/scenegraph/stick-text/index.js.map +1 -1
- package/cjs/scenegraph/utils/get-prop.js +4 -4
- package/cjs/scenegraph/utils/get-prop.js.map +1 -1
- package/cjs/scenegraph/utils/is-merge-cell-group.d.ts +2 -0
- package/cjs/scenegraph/utils/is-merge-cell-group.js +16 -0
- package/cjs/scenegraph/utils/is-merge-cell-group.js.map +1 -0
- package/cjs/scenegraph/utils/text-icon-layout.js +9 -3
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/cjs/scenegraph/utils/text-measure.js +4 -4
- package/cjs/scenegraph/utils/text-measure.js.map +1 -1
- package/cjs/state/hover/is-cell-hover.js +4 -2
- package/cjs/state/hover/is-cell-hover.js.map +1 -1
- package/cjs/state/hover/update-cell.js +10 -5
- package/cjs/state/hover/update-cell.js.map +1 -1
- package/cjs/state/select/update-position.js +4 -4
- package/cjs/state/select/update-position.js.map +1 -1
- package/cjs/state/state.d.ts +1 -0
- package/cjs/state/state.js +9 -7
- package/cjs/state/state.js.map +1 -1
- package/cjs/themes/ARCO.js +0 -8
- package/cjs/themes/ARCO.js.map +1 -1
- package/cjs/themes/BRIGHT.js +2 -9
- package/cjs/themes/BRIGHT.js.map +1 -1
- package/cjs/themes/DARK.js +1 -10
- package/cjs/themes/DARK.js.map +1 -1
- package/cjs/themes/DEFAULT.js +0 -8
- package/cjs/themes/DEFAULT.js.map +1 -1
- package/cjs/themes/theme.js +6 -2
- package/cjs/themes/theme.js.map +1 -1
- package/cjs/tools/NumberMap.js +2 -2
- package/cjs/tools/NumberMap.js.map +1 -1
- package/cjs/tools/calc.js +1 -1
- package/cjs/tools/diff-cell.d.ts +1 -1
- package/cjs/tools/global.d.ts +1 -2
- package/cjs/tools/global.js +4 -4
- package/cjs/tools/global.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +16 -1
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/column/style.d.ts +2 -1
- package/cjs/ts-types/column/style.js.map +1 -1
- package/cjs/ts-types/column/type.d.ts +1 -1
- package/cjs/ts-types/column/type.js.map +1 -1
- package/cjs/ts-types/events.d.ts +4 -0
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/list-table/define/basic-define.d.ts +1 -0
- package/cjs/ts-types/list-table/define/basic-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/checkbox-define.d.ts +9 -0
- package/cjs/ts-types/list-table/define/checkbox-define.js +6 -0
- package/cjs/ts-types/list-table/define/checkbox-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/index.d.ts +4 -2
- package/cjs/ts-types/list-table/define/index.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.d.ts +9 -0
- package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/index.d.ts +2 -1
- package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +13 -0
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/ts-types/theme.d.ts +6 -3
- package/cjs/ts-types/theme.js.map +1 -1
- package/cjs/ts-types/tooltip.d.ts +2 -1
- package/cjs/ts-types/tooltip.js.map +1 -1
- package/dist/vtable.js +12359 -11638
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.js +6 -3
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.d.ts +1 -0
- package/es/PivotChart.js +11 -5
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js +7 -4
- package/es/PivotTable.js.map +1 -1
- package/es/body-helper/body-helper.d.ts +1 -1
- package/es/body-helper/body-helper.js +5 -0
- package/es/body-helper/body-helper.js.map +1 -1
- package/es/body-helper/style/CheckboxStyle.d.ts +7 -0
- package/es/body-helper/style/CheckboxStyle.js +16 -0
- package/es/body-helper/style/CheckboxStyle.js.map +1 -0
- package/es/body-helper/style.js +1 -1
- package/es/body-helper/style.js.map +1 -1
- package/es/components/axis/axis.d.ts +2 -2
- package/es/components/axis/axis.js +5 -4
- package/es/components/axis/axis.js.map +1 -1
- package/es/components/axis/get-axis-attributes.d.ts +137 -0
- package/es/components/axis/get-axis-attributes.js +8 -2
- package/es/components/axis/get-axis-attributes.js.map +1 -1
- package/es/components/axis/get-axis-component-size.js +33 -33
- package/es/components/axis/get-axis-component-size.js.map +1 -1
- package/es/components/axis/linear-scale.d.ts +8 -5
- package/es/components/axis/linear-scale.js +15 -6
- package/es/components/axis/linear-scale.js.map +1 -1
- package/es/components/menu/dom/logic/MenuElement.js +1 -1
- package/es/components/menu/dom/logic/MenuElement.js.map +1 -1
- package/es/components/menu/dom/logic/MenuElementStyle.js +3 -0
- package/es/components/menu/dom/logic/MenuElementStyle.js.map +1 -1
- package/es/components/tooltip/logic/BubbleTooltipElement.js +6 -5
- package/es/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.js +3 -0
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -1
- package/es/core/BaseTable.d.ts +3 -0
- package/es/core/BaseTable.js +57 -16
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/TABLE_EVENT_TYPE.d.ts +1 -0
- package/es/core/TABLE_EVENT_TYPE.js +1 -0
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/es/core/style.js +3 -0
- package/es/core/style.js.map +1 -1
- package/es/data/DataSource.js +3 -1
- package/es/data/DataSource.js.map +1 -1
- package/es/dataset/dataset.js +2 -2
- package/es/dataset/dataset.js.map +1 -1
- package/es/event/EventTarget.js +1 -1
- package/es/event/EventTarget.js.map +1 -1
- package/es/event/event.js +6 -4
- package/es/event/event.js.map +1 -1
- package/es/event/listener/table-group.js +8 -0
- package/es/event/listener/table-group.js.map +1 -1
- package/es/event/listener/touch.js +1 -1
- package/es/event/listener/touch.js.map +1 -1
- package/es/event/scroll.js +1 -1
- package/es/event/scroll.js.map +1 -1
- package/es/header-helper/style.js +1 -1
- package/es/header-helper/style.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/chart-helper/get-axis-config.js +16 -16
- package/es/layout/chart-helper/get-axis-config.js.map +1 -1
- package/es/layout/chart-helper/get-axis-domain.js +12 -9
- package/es/layout/chart-helper/get-axis-domain.js.map +1 -1
- package/es/layout/chart-helper/get-chart-spec.js +2 -2
- package/es/layout/chart-helper/get-chart-spec.js.map +1 -1
- package/es/layout/pivot-header-layout.d.ts +1 -1
- package/es/layout/pivot-header-layout.js +4 -4
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/layout/simple-header-layout.js +2 -2
- package/es/layout/simple-header-layout.js.map +1 -1
- package/es/render/layout/container.js +1 -1
- package/es/render/layout/container.js.map +1 -1
- package/es/render/layout/icon.js +1 -1
- package/es/render/layout/icon.js.map +1 -1
- package/es/render/layout/image.js.map +1 -1
- package/es/render/layout/text.js +1 -1
- package/es/render/layout/text.js.map +1 -1
- package/es/scenegraph/component/custom.js +1 -1
- package/es/scenegraph/component/custom.js.map +1 -1
- package/es/scenegraph/component/menu.js +2 -0
- package/es/scenegraph/component/menu.js.map +1 -1
- package/es/scenegraph/context/canvas.js +1 -3
- package/es/scenegraph/context/canvas.js.map +1 -1
- package/es/scenegraph/context/context.js +0 -2
- package/es/scenegraph/context/context.js.map +1 -1
- package/es/scenegraph/context/module.d.ts +1 -1
- package/es/scenegraph/context/module.js +1 -3
- package/es/scenegraph/context/module.js.map +1 -1
- package/es/scenegraph/graphic/chart.d.ts +2 -0
- package/es/scenegraph/graphic/chart.js +8 -2
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render-helper.js +1 -3
- package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/es/scenegraph/graphic/group.d.ts +6 -2
- package/es/scenegraph/graphic/group.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.d.ts +3 -3
- package/es/scenegraph/group-creater/cell-helper.js +39 -38
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/chart-cell.js +3 -1
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +5 -0
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +72 -0
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.js +1 -1
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +1 -1
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
- package/es/scenegraph/group-creater/cell-type/text-cell.js +3 -3
- package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/video-cell.js +1 -1
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/es/scenegraph/group-creater/column-helper.d.ts +3 -2
- package/es/scenegraph/group-creater/column-helper.js +75 -44
- package/es/scenegraph/group-creater/column-helper.js.map +1 -1
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +20 -21
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.d.ts +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js +8 -5
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +4 -5
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +10 -13
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- package/es/scenegraph/icon/icon-update.d.ts +17 -0
- package/es/scenegraph/icon/icon-update.js +154 -0
- package/es/scenegraph/icon/icon-update.js.map +1 -0
- package/es/scenegraph/layout/compute-row-height.js +2 -1
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/layout/frozen.js +9 -7
- package/es/scenegraph/layout/frozen.js.map +1 -1
- package/es/scenegraph/layout/move-cell.js +8 -27
- package/es/scenegraph/layout/move-cell.js.map +1 -1
- package/es/scenegraph/layout/update-height.js +38 -22
- package/es/scenegraph/layout/update-height.js.map +1 -1
- package/es/scenegraph/layout/update-row.js +6 -1
- package/es/scenegraph/layout/update-row.js.map +1 -1
- package/es/scenegraph/layout/update-width.js +41 -24
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/refresh-node/update-chart.js +6 -3
- package/es/scenegraph/refresh-node/update-chart.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +7 -13
- package/es/scenegraph/scenegraph.js +43 -154
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/stick-text/index.js +74 -37
- package/es/scenegraph/stick-text/index.js.map +1 -1
- package/es/scenegraph/utils/get-prop.js +1 -1
- package/es/scenegraph/utils/get-prop.js.map +1 -1
- package/es/scenegraph/utils/is-merge-cell-group.d.ts +2 -0
- package/es/scenegraph/utils/is-merge-cell-group.js +6 -0
- package/es/scenegraph/utils/is-merge-cell-group.js.map +1 -0
- package/es/scenegraph/utils/text-icon-layout.js +9 -3
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/es/scenegraph/utils/text-measure.js +4 -4
- package/es/scenegraph/utils/text-measure.js.map +1 -1
- package/es/state/hover/is-cell-hover.js +3 -1
- package/es/state/hover/is-cell-hover.js.map +1 -1
- package/es/state/hover/update-cell.js +4 -2
- package/es/state/hover/update-cell.js.map +1 -1
- package/es/state/select/update-position.js +4 -4
- package/es/state/select/update-position.js.map +1 -1
- package/es/state/state.d.ts +1 -0
- package/es/state/state.js +6 -6
- package/es/state/state.js.map +1 -1
- package/es/themes/ARCO.js +0 -8
- package/es/themes/ARCO.js.map +1 -1
- package/es/themes/BRIGHT.js +2 -9
- package/es/themes/BRIGHT.js.map +1 -1
- package/es/themes/DARK.js +1 -10
- package/es/themes/DARK.js.map +1 -1
- package/es/themes/DEFAULT.js +0 -8
- package/es/themes/DEFAULT.js.map +1 -1
- package/es/themes/theme.js +7 -3
- package/es/themes/theme.js.map +1 -1
- package/es/tools/NumberMap.js +1 -1
- package/es/tools/NumberMap.js.map +1 -1
- package/es/tools/calc.js +1 -1
- package/es/tools/diff-cell.d.ts +1 -1
- package/es/tools/global.d.ts +1 -2
- package/es/tools/global.js +1 -3
- package/es/tools/global.js.map +1 -1
- package/es/ts-types/base-table.d.ts +16 -1
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/column/style.d.ts +2 -1
- package/es/ts-types/column/style.js.map +1 -1
- package/es/ts-types/column/type.d.ts +1 -1
- package/es/ts-types/column/type.js.map +1 -1
- package/es/ts-types/events.d.ts +4 -0
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/list-table/define/basic-define.d.ts +1 -0
- package/es/ts-types/list-table/define/basic-define.js.map +1 -1
- package/es/ts-types/list-table/define/checkbox-define.d.ts +9 -0
- package/es/ts-types/list-table/define/checkbox-define.js +2 -0
- package/es/ts-types/list-table/define/checkbox-define.js.map +1 -0
- package/es/ts-types/list-table/define/index.d.ts +4 -2
- package/es/ts-types/list-table/define/index.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/checkbox-indicator.d.ts +9 -0
- package/es/ts-types/pivot-table/indicator/checkbox-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/index.d.ts +2 -1
- package/es/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +13 -0
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/ts-types/theme.d.ts +6 -3
- package/es/ts-types/theme.js.map +1 -1
- package/es/ts-types/tooltip.d.ts +2 -1
- package/es/ts-types/tooltip.js.map +1 -1
- package/package.json +6 -3
- package/cjs/scenegraph/header-icon/layout.d.ts +0 -3
- package/cjs/scenegraph/header-icon/layout.js +0 -75
- package/cjs/scenegraph/header-icon/layout.js.map +0 -1
- package/cjs/scenegraph/hover-state.d.ts +0 -14
- package/cjs/scenegraph/hover-state.js +0 -27
- package/cjs/scenegraph/hover-state.js.map +0 -1
- package/es/scenegraph/header-icon/layout.d.ts +0 -3
- package/es/scenegraph/header-icon/layout.js +0 -69
- package/es/scenegraph/header-icon/layout.js.map +0 -1
- package/es/scenegraph/hover-state.d.ts +0 -14
- package/es/scenegraph/hover-state.js +0 -19
- package/es/scenegraph/hover-state.js.map +0 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createStage,
|
|
2
|
-
|
|
3
|
-
import { IconFuncTypeEnum } from "../ts-types";
|
|
1
|
+
import { createStage, container, vglobal } from "@visactor/vrender";
|
|
4
2
|
|
|
5
3
|
import { isArray, isString } from "@visactor/vutils";
|
|
6
4
|
|
|
@@ -24,8 +22,6 @@ import splitModule from "./graphic/contributions";
|
|
|
24
22
|
|
|
25
23
|
import { getProp } from "./utils/get-prop";
|
|
26
24
|
|
|
27
|
-
import { dealWithIcon } from "./utils/text-icon-layout";
|
|
28
|
-
|
|
29
25
|
import { SceneProxy } from "./group-creater/progress/proxy";
|
|
30
26
|
|
|
31
27
|
import { computeColWidth, computeColsWidth } from "./layout/compute-col-width";
|
|
@@ -62,6 +58,10 @@ import { loadPoptip, setPoptipTheme } from "@visactor/vrender-components";
|
|
|
62
58
|
|
|
63
59
|
import textMeasureModule from "./utils/text-measure";
|
|
64
60
|
|
|
61
|
+
import { getIconByXY, hideClickIcon, hideHoverIcon, setIconHoverStyle, setIconNormalStyle, showClickIcon, showHoverIcon, updateFrozenIcon, updateHierarchyIcon, updateSortIcon } from "./icon/icon-update";
|
|
62
|
+
|
|
63
|
+
import { Env } from "../tools/env";
|
|
64
|
+
|
|
65
65
|
loadPoptip(), container.load(splitModule), container.load(textMeasureModule);
|
|
66
66
|
|
|
67
67
|
const poptipStyle = {
|
|
@@ -94,11 +94,14 @@ const poptipStyle = {
|
|
|
94
94
|
|
|
95
95
|
export class Scenegraph {
|
|
96
96
|
constructor(table) {
|
|
97
|
+
let width, height;
|
|
97
98
|
this.table = table, this.hasFrozen = !1, this.clear = !0, this.mergeMap = new Map,
|
|
98
|
-
setPoptipTheme(poptipStyle), vglobal.setEnv("
|
|
99
|
+
setPoptipTheme(poptipStyle), "node" === Env.mode ? (vglobal.setEnv("node", table.options.modeParams),
|
|
100
|
+
width = table.canvasWidth, height = table.canvasHeight) : (vglobal.setEnv("browser"),
|
|
101
|
+
width = table.canvas.width, height = table.canvas.height), this.stage = createStage({
|
|
99
102
|
canvas: table.canvas,
|
|
100
|
-
width:
|
|
101
|
-
height:
|
|
103
|
+
width: width,
|
|
104
|
+
height: height,
|
|
102
105
|
disableDirtyBounds: !1,
|
|
103
106
|
background: table.theme.underlayBackgroundColor,
|
|
104
107
|
dpr: table.internalProps.pixelRatio,
|
|
@@ -213,7 +216,7 @@ export class Scenegraph {
|
|
|
213
216
|
this.selectedRangeComponents = new Map, this.selectingRangeComponents = new Map;
|
|
214
217
|
}
|
|
215
218
|
createSceneGraph() {
|
|
216
|
-
this.clear = !1, this.frozenColCount = this.table.
|
|
219
|
+
this.clear = !1, this.frozenColCount = this.table.frozenColCount, this.frozenRowCount = this.table.columnHeaderLevelCount,
|
|
217
220
|
this.proxy = new SceneProxy(this.table), createFrameBorder(this.tableGroup, this.table.theme.frameStyle, this.tableGroup.role, void 0, !0),
|
|
218
221
|
this.proxy.createGroupForFirstScreen(this.cornerHeaderGroup, this.colHeaderGroup, this.rowHeaderGroup, this.rightFrozenGroup, this.bottomFrozenGroup, this.bodyGroup, 0, 0),
|
|
219
222
|
this.afterScenegraphCreated();
|
|
@@ -221,21 +224,6 @@ export class Scenegraph {
|
|
|
221
224
|
renderSceneGraph() {
|
|
222
225
|
this.stage.render();
|
|
223
226
|
}
|
|
224
|
-
getCellOld(col, row) {
|
|
225
|
-
var _a, _b, _c, _d;
|
|
226
|
-
let element;
|
|
227
|
-
if (element = this.hasFrozen && col < this.table.frozenColCount && row < this.table.frozenRowCount ? null === (_a = this.cornerHeaderGroup.getChildAt(col)) || void 0 === _a ? void 0 : _a.getChildAt(row) : row < this.table.frozenRowCount ? null === (_b = this.colHeaderGroup.getChildAt(this.hasFrozen ? col - this.table.frozenColCount : col)) || void 0 === _b ? void 0 : _b.getChildAt(row) : col < this.table.frozenColCount ? null === (_c = this.rowHeaderGroup.getChildAt(col)) || void 0 === _c ? void 0 : _c.getChildAt(row - this.table.frozenRowCount) : null === (_d = this.bodyGroup.getChildAt(col - this.table.frozenColCount)) || void 0 === _d ? void 0 : _d.getChildAt(row - this.table.frozenRowCount),
|
|
228
|
-
element && "shadow-cell" === element.role) {
|
|
229
|
-
const range = this.table.getCellRange(col, row);
|
|
230
|
-
element = this.getCell(range.start.col, range.start.row);
|
|
231
|
-
}
|
|
232
|
-
return element || void 0;
|
|
233
|
-
}
|
|
234
|
-
getColGroupOld(col, isHeader = !1) {
|
|
235
|
-
let element;
|
|
236
|
-
return element = col < this.frozenColCount && isHeader ? this.cornerHeaderGroup.getChildAt(col) : col < this.frozenColCount ? this.rowHeaderGroup.getChildAt(col) : isHeader ? this.rowHeaderGroup.getChildAt(col - this.frozenColCount) : this.bodyGroup.getChildAt(col - this.frozenColCount),
|
|
237
|
-
element || void 0;
|
|
238
|
-
}
|
|
239
227
|
getCell(col, row, getShadow) {
|
|
240
228
|
var _a, _b, _c, _d, _e, _f;
|
|
241
229
|
let cell;
|
|
@@ -282,20 +270,34 @@ export class Scenegraph {
|
|
|
282
270
|
updateAllSelectComponent(this);
|
|
283
271
|
}
|
|
284
272
|
hideHoverIcon(col, row) {
|
|
285
|
-
|
|
286
|
-
hideIcon(this, this.getCell(col, row), "mouseenter_cell");
|
|
273
|
+
hideHoverIcon(col, row, this);
|
|
287
274
|
}
|
|
288
275
|
showHoverIcon(col, row) {
|
|
289
|
-
|
|
290
|
-
showIcon(this, this.getCell(col, row), "mouseenter_cell");
|
|
276
|
+
showHoverIcon(col, row, this);
|
|
291
277
|
}
|
|
292
278
|
hideClickIcon(col, row) {
|
|
293
|
-
|
|
294
|
-
hideIcon(this, this.getCell(col, row), "click_cell");
|
|
279
|
+
hideClickIcon(col, row, this);
|
|
295
280
|
}
|
|
296
281
|
showClickIcon(col, row) {
|
|
297
|
-
|
|
298
|
-
|
|
282
|
+
showClickIcon(col, row, this);
|
|
283
|
+
}
|
|
284
|
+
getIcon(col, row, x, y) {
|
|
285
|
+
return getIconByXY(col, row, x, y, this);
|
|
286
|
+
}
|
|
287
|
+
setIconHoverStyle(icon, col, row, cellGroup) {
|
|
288
|
+
setIconHoverStyle(icon, col, row, cellGroup, this);
|
|
289
|
+
}
|
|
290
|
+
updateSortIcon(col, row, iconMark, order, oldSortCol, oldSortRow, oldIconMark) {
|
|
291
|
+
updateSortIcon(col, row, iconMark, order, oldSortCol, oldSortRow, oldIconMark, this);
|
|
292
|
+
}
|
|
293
|
+
updateFrozenIcon(col, oldFrozenCol) {
|
|
294
|
+
updateFrozenIcon(this);
|
|
295
|
+
}
|
|
296
|
+
updateHierarchyIcon(col, row) {
|
|
297
|
+
updateHierarchyIcon(col, row, this);
|
|
298
|
+
}
|
|
299
|
+
setIconNormalStyle(icon, col, row) {
|
|
300
|
+
setIconNormalStyle(icon, col, row, this);
|
|
299
301
|
}
|
|
300
302
|
deactivateChart(col, row) {
|
|
301
303
|
var _a, _b;
|
|
@@ -329,59 +331,6 @@ export class Scenegraph {
|
|
|
329
331
|
updateCellSelectBorder(newStartCol, newStartRow, newEndCol, newEndRow) {
|
|
330
332
|
updateCellSelectBorder(this, newStartCol, newStartRow, newEndCol, newEndRow);
|
|
331
333
|
}
|
|
332
|
-
getIcon(col, row, x, y) {
|
|
333
|
-
let pickMark;
|
|
334
|
-
return this.getCell(col, row).forEachChildren((mark => {
|
|
335
|
-
"icon" === mark.role && mark.containsPoint(x, y, IContainPointMode.GLOBAL) && (pickMark = mark);
|
|
336
|
-
})), pickMark;
|
|
337
|
-
}
|
|
338
|
-
setIconHoverStyle(icon, col, row, cellGroup) {
|
|
339
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
340
|
-
if (icon.attribute.backgroundColor) {
|
|
341
|
-
let iconBack = icon.parent.getChildByName("icon-back");
|
|
342
|
-
iconBack ? iconBack.setAttributes({
|
|
343
|
-
x: (null !== (_a = icon.attribute.x) && void 0 !== _a ? _a : 0) + (null !== (_b = icon.attribute.dx) && void 0 !== _b ? _b : 0) + (icon.AABBBounds.width() - icon.backgroundWidth) / 2,
|
|
344
|
-
y: (null !== (_c = icon.attribute.y) && void 0 !== _c ? _c : 0) + (icon.AABBBounds.height() - icon.backgroundHeight) / 2,
|
|
345
|
-
width: icon.backgroundWidth,
|
|
346
|
-
height: icon.backgroundHeight,
|
|
347
|
-
fill: icon.attribute.backgroundColor,
|
|
348
|
-
cornerRadius: 5,
|
|
349
|
-
visible: !0
|
|
350
|
-
}) : (iconBack = createRect({
|
|
351
|
-
x: (null !== (_d = icon.attribute.x) && void 0 !== _d ? _d : 0) + (null !== (_e = icon.attribute.dx) && void 0 !== _e ? _e : 0) + (icon.AABBBounds.width() - icon.backgroundWidth) / 2,
|
|
352
|
-
y: (null !== (_f = icon.attribute.y) && void 0 !== _f ? _f : 0) + (icon.AABBBounds.height() - icon.backgroundHeight) / 2,
|
|
353
|
-
width: icon.backgroundWidth,
|
|
354
|
-
height: icon.backgroundHeight,
|
|
355
|
-
fill: icon.attribute.backgroundColor,
|
|
356
|
-
cornerRadius: 5,
|
|
357
|
-
pickable: !1,
|
|
358
|
-
visible: !0
|
|
359
|
-
}), iconBack.name = "icon-back"), icon.parent.insertBefore(iconBack, icon);
|
|
360
|
-
}
|
|
361
|
-
if (icon.attribute.hoverImage && icon.attribute.image !== icon.attribute.hoverImage && (icon.image = icon.attribute.hoverImage),
|
|
362
|
-
icon.tooltip) {
|
|
363
|
-
const {x1: left, x2: right, y1: top, y2: bottom} = icon.globalAABBBounds, tooltipOptions = {
|
|
364
|
-
content: icon.tooltip.title,
|
|
365
|
-
referencePosition: {
|
|
366
|
-
rect: {
|
|
367
|
-
left: left,
|
|
368
|
-
right: right,
|
|
369
|
-
top: top,
|
|
370
|
-
bottom: bottom,
|
|
371
|
-
width: icon.globalAABBBounds.width(),
|
|
372
|
-
height: icon.globalAABBBounds.height()
|
|
373
|
-
},
|
|
374
|
-
placement: icon.tooltip.placement
|
|
375
|
-
},
|
|
376
|
-
style: Object.assign({}, null === (_g = this.table.internalProps.theme) || void 0 === _g ? void 0 : _g.tooltipStyle, null === (_h = icon.tooltip) || void 0 === _h ? void 0 : _h.style)
|
|
377
|
-
};
|
|
378
|
-
this.table.internalProps.tooltipHandler.isBinded(tooltipOptions) || this.table.showTooltip(col, row, tooltipOptions);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
setIconNormalStyle(icon, col, row) {
|
|
382
|
-
const iconBack = icon.parent.getChildByName("icon-back");
|
|
383
|
-
iconBack && iconBack.setAttribute("visible", !1), icon.attribute.hoverImage && icon.attribute.image !== icon.attribute.originImage && (icon.image = icon.attribute.originImage);
|
|
384
|
-
}
|
|
385
334
|
updateColWidth(col, detaX) {
|
|
386
335
|
updateColWidth(this, col, Math.round(detaX)), this.updateContainer();
|
|
387
336
|
}
|
|
@@ -403,11 +352,10 @@ export class Scenegraph {
|
|
|
403
352
|
computeRowsHeight(this.table, 0, this.table.rowCount - 1, !0, !0);
|
|
404
353
|
}
|
|
405
354
|
resize() {
|
|
406
|
-
("adaptive" === this.table.widthMode || this.table.autoFillWidth) && this.recalculateColWidths(),
|
|
407
|
-
("adaptive" === this.table.heightMode || this.table.autoFillHeight) && this.recalculateRowHeights(),
|
|
408
|
-
this.dealWidthMode(), this.dealHeightMode(), this.resetFrozen(), this.
|
|
409
|
-
this.
|
|
410
|
-
("adaptive" === this.table.widthMode || "adaptive" === this.table.heightMode || this.table.autoFillWidth || this.table.autoFillHeight) && this.updateChartSize(this.table.rowHeaderLevelCount),
|
|
355
|
+
0 === this.table.internalProps._widthResizedColMap.size && (("adaptive" === this.table.widthMode || this.table.autoFillWidth) && this.recalculateColWidths(),
|
|
356
|
+
("adaptive" === this.table.heightMode || this.table.autoFillHeight) && this.recalculateRowHeights()),
|
|
357
|
+
this.dealWidthMode(), this.dealHeightMode(), this.resetFrozen(), this.updateTableSize(),
|
|
358
|
+
this.updateBorderSizeAndPosition(), this.component.updateScrollBar(), ("adaptive" === this.table.widthMode || "adaptive" === this.table.heightMode || this.table.autoFillWidth || this.table.autoFillHeight) && this.updateChartSize(this.table.rowHeaderLevelCount),
|
|
411
359
|
this.updateNextFrame();
|
|
412
360
|
}
|
|
413
361
|
updateTableSize() {
|
|
@@ -487,8 +435,10 @@ export class Scenegraph {
|
|
|
487
435
|
this.updateNextFrame());
|
|
488
436
|
}
|
|
489
437
|
afterScenegraphCreated() {
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
438
|
+
this.isPivot || this.transpose || this.component.setFrozenColumnShadow(this.table.frozenColCount - 1),
|
|
439
|
+
this.table.stateManeger.checkFrozen(), this.updateContainer(), this.createFrameBorder(),
|
|
440
|
+
this.updateBorderSizeAndPosition(), this.component.updateScrollBar(), handleTextStick(this.table),
|
|
441
|
+
this.updateNextFrame();
|
|
492
442
|
}
|
|
493
443
|
dealWidthMode() {
|
|
494
444
|
const table = this.table;
|
|
@@ -644,11 +594,8 @@ export class Scenegraph {
|
|
|
644
594
|
row: -1
|
|
645
595
|
};
|
|
646
596
|
}
|
|
647
|
-
updateIcon(icon, iconConfig) {
|
|
648
|
-
dealWithIcon(iconConfig, icon), icon.name = iconConfig.name, this.updateNextFrame();
|
|
649
|
-
}
|
|
650
597
|
updateFrozen() {
|
|
651
|
-
this.clear || (this.resetFrozen(), this.
|
|
598
|
+
this.clear || (this.resetFrozen(), this.component.updateScrollBar());
|
|
652
599
|
}
|
|
653
600
|
dealWidthRightFrozen(rightFrozenColCount) {
|
|
654
601
|
this.clear ? this.table.internalProps.rightFrozenColCount = rightFrozenColCount : dealRightFrozen(rightFrozenColCount, this);
|
|
@@ -665,37 +612,6 @@ export class Scenegraph {
|
|
|
665
612
|
updateFrameBorderSize(this.rowHeaderGroup)), this.cornerHeaderGroup.border && (this.cornerHeaderGroup.appendChild(this.cornerHeaderGroup.border),
|
|
666
613
|
updateFrameBorderSize(this.cornerHeaderGroup));
|
|
667
614
|
}
|
|
668
|
-
updateSortIcon(col, row, iconMark, order, oldSortCol, oldSortRow, oldIconMark) {
|
|
669
|
-
const icon = this.table.internalProps.headerHelper.getSortIcon(order, this.table, col, row);
|
|
670
|
-
if (iconMark && this.updateIcon(iconMark, icon), oldIconMark !== iconMark) {
|
|
671
|
-
const oldIcon = this.table.internalProps.headerHelper.getSortIcon("normal", this.table, oldSortCol, oldSortRow);
|
|
672
|
-
if (oldIconMark) this.updateIcon(oldIconMark, oldIcon); else {
|
|
673
|
-
let oldIconMark;
|
|
674
|
-
this.getCell(oldSortCol, oldSortRow).forEachChildren((mark => "sort" === mark.attribute.funcType && (oldIconMark = mark,
|
|
675
|
-
!0))), oldIconMark && this.updateIcon(oldIconMark, oldIcon);
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
updateFrozenIcon(col, oldFrozenCol) {
|
|
680
|
-
const updateCol = Math.max(col, oldFrozenCol);
|
|
681
|
-
this.colHeaderGroup.forEachChildrenSkipChild((colGroup => !(colGroup.col <= updateCol) || (colGroup.forEachChildren((cellGroup => {
|
|
682
|
-
cellGroup.forEachChildren((icon => {
|
|
683
|
-
if ("frozen" === icon.attribute.funcType) {
|
|
684
|
-
const iconConfig = this.table.internalProps.headerHelper.getFrozenIcon(cellGroup.col, cellGroup.row);
|
|
685
|
-
return this.updateIcon(icon, iconConfig), !0;
|
|
686
|
-
}
|
|
687
|
-
return !1;
|
|
688
|
-
}));
|
|
689
|
-
})), !1))), this.cornerHeaderGroup.forEachChildrenSkipChild((colGroup => !(colGroup.col <= updateCol) || (colGroup.forEachChildren((cellGroup => {
|
|
690
|
-
cellGroup.forEachChildren((icon => {
|
|
691
|
-
if ("frozen" === icon.attribute.funcType) {
|
|
692
|
-
const iconConfig = this.table.internalProps.headerHelper.getFrozenIcon(cellGroup.col, cellGroup.row);
|
|
693
|
-
return this.updateIcon(icon, iconConfig), !0;
|
|
694
|
-
}
|
|
695
|
-
return !1;
|
|
696
|
-
}));
|
|
697
|
-
})), !1)));
|
|
698
|
-
}
|
|
699
615
|
sortCell() {
|
|
700
616
|
this.isPivot || (this.transpose ? this.proxy.sortCellHorizontal() : this.proxy.sortCellVertical());
|
|
701
617
|
}
|
|
@@ -720,23 +636,10 @@ export class Scenegraph {
|
|
|
720
636
|
this.stage.disableDirtyBounds(), this.stage.window.setDpr(pixelRatio), this.stage.render(),
|
|
721
637
|
this.stage.enableDirtyBounds();
|
|
722
638
|
}
|
|
723
|
-
updateHierarchyIcon(col, row) {
|
|
724
|
-
const cellGroup = this.getCell(col, row);
|
|
725
|
-
let iconConfig;
|
|
726
|
-
iconConfig = this.table.isHeader(col, row) ? this.table.internalProps.headerHelper.getHierarchyIcon(cellGroup.col, cellGroup.row) : this.table.internalProps.bodyHelper.getHierarchyIcon(cellGroup.col, cellGroup.row),
|
|
727
|
-
this.findAndUpdateIcon(cellGroup, [ IconFuncTypeEnum.collapse, IconFuncTypeEnum.expand ], iconConfig);
|
|
728
|
-
}
|
|
729
639
|
updateRow(removeCells, addCells, updateCells = []) {
|
|
730
640
|
updateRow(removeCells, addCells, updateCells, this.table), this.recalculateColWidths(),
|
|
731
641
|
this.recalculateRowHeights(), this.table.stateManeger.checkFrozen(), this.updateNextFrame();
|
|
732
642
|
}
|
|
733
|
-
findAndUpdateIcon(group, funcTypeArr, iconConfig) {
|
|
734
|
-
group.forEachChildren((icon => {
|
|
735
|
-
if ("group" === icon.type) this.findAndUpdateIcon(icon, funcTypeArr, iconConfig); else if (-1 !== funcTypeArr.indexOf(icon.attribute.funcType)) return this.updateIcon(icon, iconConfig),
|
|
736
|
-
!0;
|
|
737
|
-
return !1;
|
|
738
|
-
}));
|
|
739
|
-
}
|
|
740
643
|
getColumnGroupX(col) {
|
|
741
644
|
return col < this.table.rowHeaderLevelCount ? this.table.getColsWidth(0, col - 1) : col < this.table.colCount - this.table.rightFrozenColCount ? this.table.getColsWidth(this.table.rowHeaderLevelCount, col - 1) : col < this.table.colCount ? this.table.getColsWidth(this.table.colCount - this.table.bottomFrozenRowCount, col - 1) : 0;
|
|
742
645
|
}
|
|
@@ -744,18 +647,4 @@ export class Scenegraph {
|
|
|
744
647
|
return row < this.table.columnHeaderLevelCount ? this.table.getRowsHeight(0, row - 1) : row < this.table.rowCount - this.table.bottomFrozenRowCount ? this.table.getRowsHeight(this.table.columnHeaderLevelCount, row - 1) : row < this.table.rowCount ? this.table.getRowsHeight(this.table.rowCount - this.table.bottomFrozenRowCount, row - 1) : 0;
|
|
745
648
|
}
|
|
746
649
|
}
|
|
747
|
-
|
|
748
|
-
function showIcon(scene, cellGroup, visibleTime) {
|
|
749
|
-
cellGroup.forEachChildren((child => {
|
|
750
|
-
"group" === child.type ? showIcon(scene, child, visibleTime) : child.attribute.visibleTime === visibleTime && (child.attribute.visible = !0,
|
|
751
|
-
scene.updateNextFrame());
|
|
752
|
-
}));
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
function hideIcon(scene, cellGroup, visibleTime) {
|
|
756
|
-
cellGroup.forEachChildren((child => {
|
|
757
|
-
"group" === child.type ? hideIcon(scene, child, visibleTime) : child.attribute.visibleTime === visibleTime && (child.attribute.visible = !1,
|
|
758
|
-
scene.updateNextFrame());
|
|
759
|
-
}));
|
|
760
|
-
}
|
|
761
650
|
//# sourceMappingURL=scenegraph.js.map
|