@visactor/vtable 0.9.2-alpha.2 → 0.9.2
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.d.ts +1 -2
- package/cjs/ListTable.js +13 -17
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotTable.d.ts +1 -2
- package/cjs/PivotTable.js +13 -18
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/body-helper/style/MultilineTextStyle.js +2 -2
- package/cjs/body-helper/style/MultilineTextStyle.js.map +1 -1
- package/cjs/body-helper/style/ProgressBarStyle.js +15 -15
- package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -1
- package/cjs/body-helper/style/Style.d.ts +1 -0
- package/cjs/body-helper/style/Style.js +28 -25
- package/cjs/body-helper/style/Style.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +5 -18
- package/cjs/core/BaseTable.js +37 -94
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +0 -3
- package/cjs/core/TABLE_EVENT_TYPE.js +1 -4
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/core/style.js +1 -1
- package/cjs/core/style.js.map +1 -1
- package/cjs/core/tableHelper.js +2 -1
- package/cjs/data/CachedDataSource.js +1 -2
- package/cjs/data/DataSource.js +2 -2
- package/cjs/data/DataSource.js.map +1 -1
- package/cjs/dataset/dataset.d.ts +19 -12
- package/cjs/dataset/dataset.js +196 -168
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/event/EventHandler.js.map +1 -1
- package/cjs/event/EventTarget.d.ts +5 -5
- package/cjs/event/EventTarget.js +2 -2
- package/cjs/event/EventTarget.js.map +1 -1
- package/cjs/event/event.js +4 -7
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/listener/table-group.js +6 -8
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/event/sparkline-event.js.map +1 -1
- package/cjs/event/util.js +1 -0
- package/cjs/header-helper/header-helper.js +1 -1
- package/cjs/header-helper/header-helper.js.map +1 -1
- package/cjs/header-helper/style/MultilineTextHeaderStyle.js +2 -2
- package/cjs/header-helper/style/MultilineTextHeaderStyle.js.map +1 -1
- package/cjs/header-helper/style/Style.d.ts +1 -0
- package/cjs/header-helper/style/Style.js +28 -25
- package/cjs/header-helper/style/Style.js.map +1 -1
- package/cjs/index.d.ts +3 -4
- package/cjs/index.js +2 -11
- package/cjs/index.js.map +1 -1
- package/cjs/layout/index.js +1 -2
- package/cjs/layout/pivot-header-layout.d.ts +5 -11
- package/cjs/layout/pivot-header-layout.js +12 -42
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/layout/pivot-layout.d.ts +8 -53
- package/cjs/layout/pivot-layout.js +89 -393
- package/cjs/layout/pivot-layout.js.map +1 -1
- package/cjs/layout/simple-header-layout.d.ts +0 -8
- package/cjs/layout/simple-header-layout.js +0 -34
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/{es/components → cjs}/menu/dom/BaseMenu.d.ts +2 -2
- package/cjs/menu/dom/BaseMenu.js.map +1 -0
- package/cjs/menu/dom/Menu.js.map +1 -0
- package/cjs/{components/menu → menu}/dom/MenuHandler.d.ts +2 -2
- package/cjs/{components/menu → menu}/dom/MenuHandler.js +1 -1
- package/cjs/menu/dom/MenuHandler.js.map +1 -0
- package/{es/components → cjs}/menu/dom/logic/MenuContainer.d.ts +2 -2
- package/cjs/{components/menu → menu}/dom/logic/MenuContainer.js +2 -2
- package/cjs/menu/dom/logic/MenuContainer.js.map +1 -0
- package/cjs/{components/menu → menu}/dom/logic/MenuElement.d.ts +2 -2
- package/cjs/{components/menu → menu}/dom/logic/MenuElement.js +4 -4
- package/cjs/menu/dom/logic/MenuElement.js.map +1 -0
- package/cjs/menu/dom/logic/MenuElementStyle.js.map +1 -0
- package/cjs/scenegraph/component/table-component.js +3 -3
- package/cjs/scenegraph/component/table-component.js.map +1 -1
- package/cjs/scenegraph/graphic/chart.d.ts +0 -3
- package/cjs/scenegraph/graphic/chart.js +6 -21
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render.js +3 -15
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +3 -8
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +1 -2
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/column.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.d.ts +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js +35 -29
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +6 -6
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- 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.js +15 -23
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js +9 -20
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/layout/move-cell.js +1 -1
- package/cjs/scenegraph/layout/move-cell.js.map +1 -1
- package/cjs/scenegraph/layout/update-cell.js +2 -3
- package/cjs/scenegraph/layout/update-cell.js.map +1 -1
- package/cjs/scenegraph/layout/update-height.js +1 -1
- package/cjs/scenegraph/layout/update-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-row.js +1 -1
- package/cjs/scenegraph/layout/update-row.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js +1 -1
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/refresh-node/update-chart.d.ts +0 -3
- package/cjs/scenegraph/refresh-node/update-chart.js +5 -48
- package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +0 -9
- package/cjs/scenegraph/scenegraph.js +18 -144
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/stick-text/index.js +8 -10
- package/cjs/scenegraph/stick-text/index.js.map +1 -1
- package/cjs/scenegraph/style/frame-border.js +5 -1
- package/cjs/scenegraph/style/frame-border.js.map +1 -1
- package/cjs/state/state.js +1 -1
- package/cjs/state/state.js.map +1 -1
- package/cjs/themes/DEFAULT.js +2 -1
- package/cjs/tools/LimitPromiseQueue.js +1 -2
- package/cjs/tools/calc.d.ts +0 -3
- package/cjs/tools/calc.js +3 -11
- package/cjs/tools/calc.js.map +1 -1
- package/cjs/tools/diff-cell.js +2 -2
- package/cjs/tools/dom.js +1 -1
- package/cjs/tools/env.js +1 -1
- package/{es/components → cjs}/tooltip/BaseTooltip.d.ts +3 -3
- package/cjs/tooltip/BaseTooltip.js.map +1 -0
- package/cjs/tooltip/Tooltip.js.map +1 -0
- package/{es/components → cjs}/tooltip/TooltipHandler.d.ts +4 -4
- package/cjs/{components/tooltip → tooltip}/TooltipHandler.js +1 -1
- package/cjs/tooltip/TooltipHandler.js.map +1 -0
- package/{es/components → cjs}/tooltip/logic/BubbleTooltipElement.d.ts +4 -4
- package/cjs/{components/tooltip → tooltip}/logic/BubbleTooltipElement.js +1 -1
- package/cjs/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/cjs/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
- package/cjs/ts-types/base-table.d.ts +12 -29
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/column/style.d.ts +1 -0
- package/cjs/ts-types/column/style.js.map +1 -1
- package/cjs/ts-types/events.d.ts +83 -100
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/list-table/layout-map/api.d.ts +0 -2
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
- package/cjs/ts-types/new-data-set.d.ts +5 -18
- package/cjs/ts-types/new-data-set.js +2 -2
- package/cjs/ts-types/new-data-set.js.map +1 -1
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +0 -4
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +1 -3
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/ts-types/pivot-table/corner.d.ts +3 -3
- package/cjs/ts-types/pivot-table/corner.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/index.d.ts +0 -1
- package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/cjs/ts-types/pivot-table/title.d.ts +1 -1
- package/cjs/ts-types/pivot-table/title.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +3 -27
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/dist/vtable.js +11796 -22646
- package/dist/vtable.min.js +2 -4
- package/es/ListTable.d.ts +1 -2
- package/es/ListTable.js +13 -17
- package/es/ListTable.js.map +1 -1
- package/es/PivotTable.d.ts +1 -2
- package/es/PivotTable.js +14 -19
- package/es/PivotTable.js.map +1 -1
- package/es/body-helper/style/MultilineTextStyle.js +2 -2
- package/es/body-helper/style/MultilineTextStyle.js.map +1 -1
- package/es/body-helper/style/ProgressBarStyle.js +15 -15
- package/es/body-helper/style/ProgressBarStyle.js.map +1 -1
- package/es/body-helper/style/Style.d.ts +1 -0
- package/es/body-helper/style/Style.js +28 -25
- package/es/body-helper/style/Style.js.map +1 -1
- package/es/core/BaseTable.d.ts +5 -18
- package/es/core/BaseTable.js +39 -98
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/TABLE_EVENT_TYPE.d.ts +0 -3
- package/es/core/TABLE_EVENT_TYPE.js +1 -4
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/es/core/style.js +1 -1
- package/es/core/style.js.map +1 -1
- package/es/core/tableHelper.js +2 -1
- package/es/data/CachedDataSource.js +1 -2
- package/es/data/DataSource.js +2 -2
- package/es/data/DataSource.js.map +1 -1
- package/es/dataset/dataset.d.ts +19 -12
- package/es/dataset/dataset.js +187 -161
- package/es/dataset/dataset.js.map +1 -1
- package/es/event/EventHandler.js.map +1 -1
- package/es/event/EventTarget.d.ts +5 -5
- package/es/event/EventTarget.js +2 -2
- package/es/event/EventTarget.js.map +1 -1
- package/es/event/event.js +3 -8
- package/es/event/event.js.map +1 -1
- package/es/event/listener/table-group.js +6 -8
- package/es/event/listener/table-group.js.map +1 -1
- package/es/event/sparkline-event.js.map +1 -1
- package/es/event/util.js +2 -1
- package/es/header-helper/header-helper.js +1 -1
- package/es/header-helper/header-helper.js.map +1 -1
- package/es/header-helper/style/MultilineTextHeaderStyle.js +2 -2
- package/es/header-helper/style/MultilineTextHeaderStyle.js.map +1 -1
- package/es/header-helper/style/Style.d.ts +1 -0
- package/es/header-helper/style/Style.js +28 -25
- package/es/header-helper/style/Style.js.map +1 -1
- package/es/index.d.ts +3 -4
- package/es/index.js +2 -4
- package/es/index.js.map +1 -1
- package/es/layout/index.js +1 -2
- package/es/layout/pivot-header-layout.d.ts +5 -11
- package/es/layout/pivot-header-layout.js +11 -41
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/layout/pivot-layout.d.ts +8 -53
- package/es/layout/pivot-layout.js +87 -396
- package/es/layout/pivot-layout.js.map +1 -1
- package/es/layout/simple-header-layout.d.ts +0 -8
- package/es/layout/simple-header-layout.js +0 -34
- package/es/layout/simple-header-layout.js.map +1 -1
- package/{cjs/components → es}/menu/dom/BaseMenu.d.ts +2 -2
- package/es/menu/dom/BaseMenu.js.map +1 -0
- package/es/menu/dom/Menu.js.map +1 -0
- package/es/{components/menu → menu}/dom/MenuHandler.d.ts +2 -2
- package/es/{components/menu → menu}/dom/MenuHandler.js +2 -2
- package/es/menu/dom/MenuHandler.js.map +1 -0
- package/{cjs/components → es}/menu/dom/logic/MenuContainer.d.ts +2 -2
- package/es/{components/menu → menu}/dom/logic/MenuContainer.js +4 -4
- package/es/menu/dom/logic/MenuContainer.js.map +1 -0
- package/es/{components/menu → menu}/dom/logic/MenuElement.d.ts +2 -2
- package/es/{components/menu → menu}/dom/logic/MenuElement.js +9 -9
- package/es/menu/dom/logic/MenuElement.js.map +1 -0
- package/es/menu/dom/logic/MenuElementStyle.js.map +1 -0
- package/es/scenegraph/component/table-component.js +3 -3
- package/es/scenegraph/component/table-component.js.map +1 -1
- package/es/scenegraph/graphic/chart.d.ts +0 -3
- package/es/scenegraph/graphic/chart.js +5 -22
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render.js +3 -15
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +2 -9
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/chart-cell.js +1 -2
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/es/scenegraph/group-creater/column.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.d.ts +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js +34 -27
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +6 -6
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- 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.js +15 -23
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/compute-row-height.js +9 -20
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/layout/move-cell.js +1 -1
- package/es/scenegraph/layout/move-cell.js.map +1 -1
- package/es/scenegraph/layout/update-cell.js +1 -3
- package/es/scenegraph/layout/update-cell.js.map +1 -1
- package/es/scenegraph/layout/update-height.js +1 -1
- package/es/scenegraph/layout/update-height.js.map +1 -1
- package/es/scenegraph/layout/update-row.js +1 -1
- package/es/scenegraph/layout/update-row.js.map +1 -1
- package/es/scenegraph/layout/update-width.js +1 -1
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/refresh-node/update-chart.d.ts +0 -3
- package/es/scenegraph/refresh-node/update-chart.js +4 -45
- package/es/scenegraph/refresh-node/update-chart.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +0 -9
- package/es/scenegraph/scenegraph.js +19 -146
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/stick-text/index.js +8 -10
- package/es/scenegraph/stick-text/index.js.map +1 -1
- package/es/scenegraph/style/frame-border.js +5 -1
- package/es/scenegraph/style/frame-border.js.map +1 -1
- package/es/state/state.js +1 -1
- package/es/state/state.js.map +1 -1
- package/es/themes/DEFAULT.js +2 -1
- package/es/tools/LimitPromiseQueue.js +1 -2
- package/es/tools/calc.d.ts +0 -3
- package/es/tools/calc.js +0 -10
- package/es/tools/calc.js.map +1 -1
- package/es/tools/diff-cell.js +1 -1
- package/es/tools/dom.js +1 -1
- package/es/tools/env.js +1 -1
- package/{cjs/components → es}/tooltip/BaseTooltip.d.ts +3 -3
- package/es/tooltip/BaseTooltip.js.map +1 -0
- package/es/tooltip/Tooltip.js.map +1 -0
- package/{cjs/components → es}/tooltip/TooltipHandler.d.ts +4 -4
- package/es/{components/tooltip → tooltip}/TooltipHandler.js +4 -4
- package/es/tooltip/TooltipHandler.js.map +1 -0
- package/{cjs/components → es}/tooltip/logic/BubbleTooltipElement.d.ts +4 -4
- package/es/{components/tooltip → tooltip}/logic/BubbleTooltipElement.js +4 -4
- package/es/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/es/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
- package/es/ts-types/base-table.d.ts +12 -29
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/column/style.d.ts +1 -0
- package/es/ts-types/column/style.js.map +1 -1
- package/es/ts-types/events.d.ts +83 -100
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/list-table/layout-map/api.d.ts +0 -2
- package/es/ts-types/list-table/layout-map/api.js.map +1 -1
- package/es/ts-types/new-data-set.d.ts +5 -18
- package/es/ts-types/new-data-set.js +2 -2
- package/es/ts-types/new-data-set.js.map +1 -1
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +0 -4
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +0 -4
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -1
- package/es/ts-types/pivot-table/corner.d.ts +3 -3
- package/es/ts-types/pivot-table/corner.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/index.d.ts +0 -1
- package/es/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/es/ts-types/pivot-table/title.d.ts +1 -1
- package/es/ts-types/pivot-table/title.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +3 -27
- package/es/ts-types/table-engine.js.map +1 -1
- package/package.json +5 -11
- package/cjs/PivotChart.d.ts +0 -68
- package/cjs/PivotChart.js +0 -427
- package/cjs/PivotChart.js.map +0 -1
- package/cjs/components/axis/axis.d.ts +0 -45
- package/cjs/components/axis/axis.js +0 -146
- package/cjs/components/axis/axis.js.map +0 -1
- package/cjs/components/axis/band-scale.d.ts +0 -18
- package/cjs/components/axis/band-scale.js +0 -54
- package/cjs/components/axis/band-scale.js.map +0 -1
- package/cjs/components/axis/get-axis-attributes.d.ts +0 -136
- package/cjs/components/axis/get-axis-attributes.js +0 -169
- package/cjs/components/axis/get-axis-attributes.js.map +0 -1
- package/cjs/components/axis/label-overlap.d.ts +0 -3
- package/cjs/components/axis/label-overlap.js +0 -46
- package/cjs/components/axis/label-overlap.js.map +0 -1
- package/cjs/components/axis/linear-scale.d.ts +0 -45
- package/cjs/components/axis/linear-scale.js +0 -120
- package/cjs/components/axis/linear-scale.js.map +0 -1
- package/cjs/components/legend/get-legend-attributes.d.ts +0 -5
- package/cjs/components/legend/get-legend-attributes.js +0 -90
- package/cjs/components/legend/get-legend-attributes.js.map +0 -1
- package/cjs/components/legend/legend.d.ts +0 -23
- package/cjs/components/legend/legend.js +0 -94
- package/cjs/components/legend/legend.js.map +0 -1
- package/cjs/components/menu/dom/BaseMenu.js.map +0 -1
- package/cjs/components/menu/dom/Menu.js.map +0 -1
- package/cjs/components/menu/dom/MenuHandler.js.map +0 -1
- package/cjs/components/menu/dom/logic/MenuContainer.js.map +0 -1
- package/cjs/components/menu/dom/logic/MenuElement.js.map +0 -1
- package/cjs/components/menu/dom/logic/MenuElementStyle.js.map +0 -1
- package/cjs/components/title/title.d.ts +0 -12
- package/cjs/components/title/title.js +0 -66
- package/cjs/components/title/title.js.map +0 -1
- package/cjs/components/tooltip/BaseTooltip.js.map +0 -1
- package/cjs/components/tooltip/Tooltip.js.map +0 -1
- package/cjs/components/tooltip/TooltipHandler.js.map +0 -1
- package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +0 -1
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js.map +0 -1
- package/cjs/components/util/orient.d.ts +0 -3
- package/cjs/components/util/orient.js +0 -14
- package/cjs/components/util/orient.js.map +0 -1
- package/cjs/components/util/register.d.ts +0 -3
- package/cjs/components/util/register.js +0 -15
- package/cjs/components/util/register.js.map +0 -1
- package/cjs/components/util/tick-data/config.d.ts +0 -1
- package/cjs/components/util/tick-data/config.js +0 -6
- package/cjs/components/util/tick-data/config.js.map +0 -1
- package/cjs/components/util/tick-data/continuous.d.ts +0 -2
- package/cjs/components/util/tick-data/continuous.js +0 -39
- package/cjs/components/util/tick-data/continuous.js.map +0 -1
- package/cjs/components/util/tick-data/discrete/linear.d.ts +0 -2
- package/cjs/components/util/tick-data/discrete/linear.js +0 -66
- package/cjs/components/util/tick-data/discrete/linear.js.map +0 -1
- package/cjs/components/util/tick-data/discrete/polar-angle.d.ts +0 -2
- package/cjs/components/util/tick-data/discrete/polar-angle.js +0 -46
- package/cjs/components/util/tick-data/discrete/polar-angle.js.map +0 -1
- package/cjs/components/util/tick-data/index.d.ts +0 -2
- package/cjs/components/util/tick-data/index.js +0 -17
- package/cjs/components/util/tick-data/index.js.map +0 -1
- package/cjs/components/util/tick-data/util.d.ts +0 -21
- package/cjs/components/util/tick-data/util.js +0 -115
- package/cjs/components/util/tick-data/util.js.map +0 -1
- package/cjs/components/util/transform.d.ts +0 -5
- package/cjs/components/util/transform.js +0 -45
- package/cjs/components/util/transform.js.map +0 -1
- package/cjs/dataset/statistics-helper.d.ts +0 -68
- package/cjs/dataset/statistics-helper.js +0 -173
- package/cjs/dataset/statistics-helper.js.map +0 -1
- package/cjs/dataset/util/zero-align.d.ts +0 -10
- package/cjs/dataset/util/zero-align.js +0 -119
- package/cjs/dataset/util/zero-align.js.map +0 -1
- package/cjs/event/VChartEventProxy.d.ts +0 -1
- package/cjs/event/VChartEventProxy.js +0 -1
- package/cjs/event/VChartEventProxy.js.map +0 -1
- package/cjs/event/pivot-chart/axis-click.d.ts +0 -2
- package/cjs/event/pivot-chart/axis-click.js +0 -42
- package/cjs/event/pivot-chart/axis-click.js.map +0 -1
- package/cjs/layout/pivot-chart/get-axis-config.d.ts +0 -2
- package/cjs/layout/pivot-chart/get-axis-config.js +0 -118
- package/cjs/layout/pivot-chart/get-axis-config.js.map +0 -1
- package/cjs/layout/pivot-chart/get-chart-spec.d.ts +0 -4
- package/cjs/layout/pivot-chart/get-chart-spec.js +0 -118
- package/cjs/layout/pivot-chart/get-chart-spec.js.map +0 -1
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +0 -3
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +0 -71
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +0 -1
- package/cjs/ts-types/component/axis.d.ts +0 -12
- package/cjs/ts-types/component/axis.js +0 -6
- package/cjs/ts-types/component/axis.js.map +0 -1
- package/cjs/ts-types/component/legend.d.ts +0 -5
- package/cjs/ts-types/component/legend.js +0 -6
- package/cjs/ts-types/component/legend.js.map +0 -1
- package/cjs/ts-types/component/title.d.ts +0 -47
- package/cjs/ts-types/component/title.js +0 -6
- package/cjs/ts-types/component/title.js.map +0 -1
- package/cjs/ts-types/component/util.d.ts +0 -1
- package/cjs/ts-types/component/util.js +0 -6
- package/cjs/ts-types/component/util.js.map +0 -1
- package/es/PivotChart.d.ts +0 -68
- package/es/PivotChart.js +0 -437
- package/es/PivotChart.js.map +0 -1
- package/es/components/axis/axis.d.ts +0 -45
- package/es/components/axis/axis.js +0 -155
- package/es/components/axis/axis.js.map +0 -1
- package/es/components/axis/band-scale.d.ts +0 -18
- package/es/components/axis/band-scale.js +0 -46
- package/es/components/axis/band-scale.js.map +0 -1
- package/es/components/axis/get-axis-attributes.d.ts +0 -136
- package/es/components/axis/get-axis-attributes.js +0 -166
- package/es/components/axis/get-axis-attributes.js.map +0 -1
- package/es/components/axis/label-overlap.d.ts +0 -3
- package/es/components/axis/label-overlap.js +0 -39
- package/es/components/axis/label-overlap.js.map +0 -1
- package/es/components/axis/linear-scale.d.ts +0 -45
- package/es/components/axis/linear-scale.js +0 -104
- package/es/components/axis/linear-scale.js.map +0 -1
- package/es/components/legend/get-legend-attributes.d.ts +0 -5
- package/es/components/legend/get-legend-attributes.js +0 -84
- package/es/components/legend/get-legend-attributes.js.map +0 -1
- package/es/components/legend/legend.d.ts +0 -23
- package/es/components/legend/legend.js +0 -93
- package/es/components/legend/legend.js.map +0 -1
- package/es/components/menu/dom/BaseMenu.js.map +0 -1
- package/es/components/menu/dom/Menu.js.map +0 -1
- package/es/components/menu/dom/MenuHandler.js.map +0 -1
- package/es/components/menu/dom/logic/MenuContainer.js.map +0 -1
- package/es/components/menu/dom/logic/MenuElement.js.map +0 -1
- package/es/components/menu/dom/logic/MenuElementStyle.js.map +0 -1
- package/es/components/title/title.d.ts +0 -12
- package/es/components/title/title.js +0 -61
- package/es/components/title/title.js.map +0 -1
- package/es/components/tooltip/BaseTooltip.js.map +0 -1
- package/es/components/tooltip/Tooltip.js.map +0 -1
- package/es/components/tooltip/TooltipHandler.js.map +0 -1
- package/es/components/tooltip/logic/BubbleTooltipElement.js.map +0 -1
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.js.map +0 -1
- package/es/components/util/orient.d.ts +0 -3
- package/es/components/util/orient.js +0 -8
- package/es/components/util/orient.js.map +0 -1
- package/es/components/util/register.d.ts +0 -3
- package/es/components/util/register.js +0 -8
- package/es/components/util/register.js.map +0 -1
- package/es/components/util/tick-data/config.d.ts +0 -1
- package/es/components/util/tick-data/config.js +0 -2
- package/es/components/util/tick-data/config.js.map +0 -1
- package/es/components/util/tick-data/continuous.d.ts +0 -2
- package/es/components/util/tick-data/continuous.js +0 -38
- package/es/components/util/tick-data/continuous.js.map +0 -1
- package/es/components/util/tick-data/discrete/linear.d.ts +0 -2
- package/es/components/util/tick-data/discrete/linear.js +0 -59
- package/es/components/util/tick-data/discrete/linear.js.map +0 -1
- package/es/components/util/tick-data/discrete/polar-angle.d.ts +0 -2
- package/es/components/util/tick-data/discrete/polar-angle.js +0 -39
- package/es/components/util/tick-data/discrete/polar-angle.js.map +0 -1
- package/es/components/util/tick-data/index.d.ts +0 -2
- package/es/components/util/tick-data/index.js +0 -19
- package/es/components/util/tick-data/index.js.map +0 -1
- package/es/components/util/tick-data/util.d.ts +0 -21
- package/es/components/util/tick-data/util.js +0 -104
- package/es/components/util/tick-data/util.js.map +0 -1
- package/es/components/util/transform.d.ts +0 -5
- package/es/components/util/transform.js +0 -34
- package/es/components/util/transform.js.map +0 -1
- package/es/dataset/statistics-helper.d.ts +0 -68
- package/es/dataset/statistics-helper.js +0 -152
- package/es/dataset/statistics-helper.js.map +0 -1
- package/es/dataset/util/zero-align.d.ts +0 -10
- package/es/dataset/util/zero-align.js +0 -111
- package/es/dataset/util/zero-align.js.map +0 -1
- package/es/event/VChartEventProxy.d.ts +0 -1
- package/es/event/VChartEventProxy.js +0 -1
- package/es/event/VChartEventProxy.js.map +0 -1
- package/es/event/pivot-chart/axis-click.d.ts +0 -2
- package/es/event/pivot-chart/axis-click.js +0 -36
- package/es/event/pivot-chart/axis-click.js.map +0 -1
- package/es/layout/pivot-chart/get-axis-config.d.ts +0 -2
- package/es/layout/pivot-chart/get-axis-config.js +0 -110
- package/es/layout/pivot-chart/get-axis-config.js.map +0 -1
- package/es/layout/pivot-chart/get-chart-spec.d.ts +0 -4
- package/es/layout/pivot-chart/get-chart-spec.js +0 -109
- package/es/layout/pivot-chart/get-chart-spec.js.map +0 -1
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +0 -3
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +0 -65
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +0 -1
- package/es/ts-types/component/axis.d.ts +0 -12
- package/es/ts-types/component/axis.js +0 -2
- package/es/ts-types/component/axis.js.map +0 -1
- package/es/ts-types/component/legend.d.ts +0 -5
- package/es/ts-types/component/legend.js +0 -2
- package/es/ts-types/component/legend.js.map +0 -1
- package/es/ts-types/component/title.d.ts +0 -47
- package/es/ts-types/component/title.js +0 -2
- package/es/ts-types/component/title.js.map +0 -1
- package/es/ts-types/component/util.d.ts +0 -1
- package/es/ts-types/component/util.js +0 -2
- package/es/ts-types/component/util.js.map +0 -1
- /package/cjs/{components/menu → menu}/dom/BaseMenu.js +0 -0
- /package/cjs/{components/menu → menu}/dom/Menu.d.ts +0 -0
- /package/cjs/{components/menu → menu}/dom/Menu.js +0 -0
- /package/cjs/{components/menu → menu}/dom/logic/MenuElementStyle.d.ts +0 -0
- /package/cjs/{components/menu → menu}/dom/logic/MenuElementStyle.js +0 -0
- /package/cjs/{components/tooltip → tooltip}/BaseTooltip.js +0 -0
- /package/cjs/{components/tooltip → tooltip}/Tooltip.d.ts +0 -0
- /package/cjs/{components/tooltip → tooltip}/Tooltip.js +0 -0
- /package/cjs/{components/tooltip → tooltip}/logic/BubbleTooltipElementStyle.d.ts +0 -0
- /package/cjs/{components/tooltip → tooltip}/logic/BubbleTooltipElementStyle.js +0 -0
- /package/es/{components/menu → menu}/dom/BaseMenu.js +0 -0
- /package/es/{components/menu → menu}/dom/Menu.d.ts +0 -0
- /package/es/{components/menu → menu}/dom/Menu.js +0 -0
- /package/es/{components/menu → menu}/dom/logic/MenuElementStyle.d.ts +0 -0
- /package/es/{components/menu → menu}/dom/logic/MenuElementStyle.js +0 -0
- /package/es/{components/tooltip → tooltip}/BaseTooltip.js +0 -0
- /package/es/{components/tooltip → tooltip}/Tooltip.d.ts +0 -0
- /package/es/{components/tooltip → tooltip}/Tooltip.js +0 -0
- /package/es/{components/tooltip → tooltip}/logic/BubbleTooltipElementStyle.d.ts +0 -0
- /package/es/{components/tooltip → tooltip}/logic/BubbleTooltipElementStyle.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["header-helper/style/Style.ts"],"names":[],"mappings":";;;AAoBA,IAAI,YAAmB,CAAC;AACxB,yDAAsD;AAEtD,MAAM,UAAU,GAAG;IACjB,YAAY,EAAE,cAAc;CAC7B,CAAC;AACF,MAAa,KAAM,SAAQ,yBAAW;IAoCpC,MAAM,KAAK,UAAU;QACnB,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,MAAM,KAAK,OAAO;QAChB,OAAO,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,YAAY,QAAsB,EAAE,EAAE,cAA4B,EAAE;;QAClE,KAAK,EAAE,CAAC;QAlCF,oBAAe,GAA2B,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAmCjE,IAAI,CAAC,MAAM,GAAG,MAAA,KAAK,CAAC,KAAK,mCAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,CAA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ACtD,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAE9B,CAAC;IAoCD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,IAAI,MAAM,CAAC,MAAwC;QACjD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAExB,CAAC;IACD,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IACD,IAAI,eAAe,CAAC,eAAqD;QACvE,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;IAE1C,CAAC;IACD,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IACD,IAAI,cAAc,CAAC,cAAmD;QACpE,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;IAExC,CAAC;IAID,KAAK;QACH,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CACF;AA1SD,sBA0SC","file":"Style.js","sourcesContent":["import type {\n ColorPropertyDefine,\n ColorsPropertyDefine,\n ColumnStyle,\n IStyleOption,\n TextOverflow,\n UnderlinePropertyDefine,\n LineThroughPropertyDefine,\n LineDashPropertyDefine,\n PaddingsPropertyDefine,\n CursorPropertyDefine,\n LineWidthsPropertyDefine,\n LineDashsPropertyDefine,\n MarkedPropertyDefine,\n FontSizePropertyDefine,\n FontFamilyPropertyDefine,\n FontWeightPropertyDefine,\n FontVariantPropertyDefine,\n FontStylePropertyDefine\n} from '../../ts-types';\nlet defaultStyle: Style;\nimport { EventTarget } from '../../event/EventTarget';\nimport type { TextAlignType, TextBaselineType } from '@visactor/vrender';\nconst EVENT_TYPE = {\n CHANGE_STYLE: 'change_style'\n};\nexport class Style extends EventTarget implements ColumnStyle {\n private _color?: ColorPropertyDefine;\n private _fontSize?: FontSizePropertyDefine;\n private _fontFamily?: FontFamilyPropertyDefine;\n private _fontWeight?: FontWeightPropertyDefine;\n private _fontVariant?: FontVariantPropertyDefine;\n private _fontStyle?: FontStylePropertyDefine;\n private _textOverflow: TextOverflow;\n private _padding: PaddingsPropertyDefine | undefined;\n private _defaultPadding: PaddingsPropertyDefine = [10, 16, 10, 16];\n private _textStick: boolean;\n private _marked: MarkedPropertyDefine;\n // eslint-disable-next-line no-undef\n private _textAlign: TextAlignType;\n // eslint-disable-next-line no-undef\n private _textBaseline: TextBaselineType;\n private _bgColor?: ColorPropertyDefine;\n private _borderColor?: ColorsPropertyDefine;\n private _lineHeight?: number;\n private _underline?: UnderlinePropertyDefine;\n private _underlineColor?: ColorPropertyDefine;\n private _underlineDash?: LineDashPropertyDefine;\n private _lineThrough?: LineThroughPropertyDefine;\n private _lineThroughColor?: ColorPropertyDefine;\n private _lineThroughDash?: LineDashPropertyDefine;\n private _linkColor?: ColorPropertyDefine;\n\n // private _tag?: TagPropertyDefine;\n // private _tagFont?: FontPropertyDefine;\n // private _tagColor?: ColorPropertyDefine;\n // private _tagBgColor?: ColorPropertyDefine;\n // private _tagMargin?: number | string | (number | string)[];\n\n private _cursor?: CursorPropertyDefine;\n private _borderLineWidth?: LineWidthsPropertyDefine;\n private _borderLineDash?: LineDashsPropertyDefine;\n static get EVENT_TYPE(): { CHANGE_STYLE: string } {\n return EVENT_TYPE;\n }\n static get DEFAULT(): Style {\n return defaultStyle ? defaultStyle : (defaultStyle = new Style());\n }\n constructor(style: IStyleOption = {}, headerStyle: IStyleOption = {}) {\n super();\n this._color = style.color ?? headerStyle?.color;\n // icon为文字前后可添加的图标\n // this._icon = style.icon;\n this._fontSize = style.fontSize ?? headerStyle?.fontSize;\n this._fontFamily = style.fontFamily ?? headerStyle?.fontFamily;\n this._fontWeight = style.fontWeight ?? headerStyle?.fontWeight;\n this._fontVariant = style.fontVariant ?? headerStyle?.fontVariant;\n this._fontStyle = style.fontStyle ?? headerStyle?.fontStyle;\n this._textOverflow = (style.textOverflow ?? headerStyle?.textOverflow) || 'ellipsis';\n this._textStick = style.textStick ?? headerStyle?.textStick ?? false;\n this._marked = style.marked ?? headerStyle?.marked ?? false;\n this._textAlign = (style.textAlign ?? headerStyle?.textAlign) || 'left';\n this._textBaseline = (style.textBaseline ?? headerStyle?.textBaseline) || 'middle';\n this._bgColor = style.bgColor ?? headerStyle?.bgColor;\n this._padding = style.padding ?? headerStyle?.padding ?? this._defaultPadding;\n this._borderColor = style.borderColor ?? headerStyle?.borderColor;\n this._lineHeight = style.lineHeight ?? headerStyle?.lineHeight;\n this._underline = style.underline ?? headerStyle?.underline;\n this._underlineColor = style.underlineColor ?? headerStyle?.underlineColor;\n this._underlineDash = style.underlineDash ?? headerStyle?.underlineDash;\n this._lineThrough = style.lineThrough ?? headerStyle?.lineThrough;\n this._lineThroughColor = style.lineThroughColor ?? headerStyle?.lineThroughColor;\n this._lineThroughDash = style.lineThroughDash ?? headerStyle?.lineThroughDash;\n this._linkColor = style.linkColor ?? headerStyle?.linkColor;\n\n // this._tag = style.tag ?? headerStyle?.tag;\n // this._tagFont = style.tagFont ?? headerStyle?.tagFont;\n // this._tagColor = style.tagColor ?? headerStyle?.tagColor;\n // this._tagBgColor = style.tagBgColor ?? headerStyle?.tagBgColor;\n // this._tagMargin = style.tagMargin ?? headerStyle?.tagMargin;\n this._cursor = style.cursor ?? headerStyle?.cursor;\n this._borderLineWidth = style.borderLineWidth ?? headerStyle?.borderLineWidth;\n this._borderLineDash = style.borderLineDash ?? headerStyle?.borderLineDash;\n }\n get bgColor(): ColorPropertyDefine | undefined {\n return this._bgColor;\n }\n set bgColor(bgColor: ColorPropertyDefine | undefined) {\n this._bgColor = bgColor;\n //this.doChangeStyle();\n }\n get color(): ColorPropertyDefine | undefined {\n return this._color;\n }\n set color(color: ColorPropertyDefine | undefined) {\n this._color = color;\n //this.doChangeStyle();\n }\n get fontSize(): FontSizePropertyDefine | undefined {\n return this._fontSize;\n }\n set fontSize(fontSize: FontSizePropertyDefine | undefined) {\n this._fontSize = fontSize;\n //this.doChangeStyle();\n }\n get fontFamily(): FontFamilyPropertyDefine | undefined {\n return this._fontFamily;\n }\n set fontFamily(fontFamily: FontFamilyPropertyDefine | undefined) {\n this._fontFamily = fontFamily;\n //this.doChangeStyle();\n }\n get fontWeight(): FontWeightPropertyDefine | undefined {\n return this._fontWeight;\n }\n set fontWeight(fontWeight: FontWeightPropertyDefine | undefined) {\n this._fontWeight = fontWeight;\n //this.doChangeStyle();\n }\n get fontVariant(): FontVariantPropertyDefine | undefined {\n return this._fontVariant;\n }\n set fontVariant(fontVariant: FontVariantPropertyDefine | undefined) {\n this._fontVariant = fontVariant;\n //this.doChangeStyle();\n }\n get fontStyle(): FontStylePropertyDefine | undefined {\n return this._fontStyle;\n }\n set fontStyle(fontStyle: FontStylePropertyDefine | undefined) {\n this._fontStyle = fontStyle;\n //this.doChangeStyle();\n }\n get textOverflow(): TextOverflow {\n return this._textOverflow;\n }\n set textOverflow(textOverflow: TextOverflow) {\n this._textOverflow = textOverflow;\n //this.doChangeStyle();\n }\n get padding(): PaddingsPropertyDefine | undefined {\n return this._padding ?? this._defaultPadding;\n }\n set padding(padding: PaddingsPropertyDefine | undefined) {\n this._padding = padding;\n //this.doChangeStyle();\n }\n get borderColor(): ColorsPropertyDefine | undefined {\n return this._borderColor;\n }\n set borderColor(borderColor: ColorsPropertyDefine | undefined) {\n this._borderColor = borderColor;\n //this.doChangeStyle();\n }\n get textStick(): boolean {\n return this._textStick;\n }\n set textStick(textStick: boolean) {\n this._textStick = textStick;\n //this.doChangeStyle();\n }\n get marked(): MarkedPropertyDefine | undefined {\n return this._marked;\n }\n set marked(marked: MarkedPropertyDefine | undefined) {\n this._marked = marked;\n //this.doChangeStyle();\n }\n // eslint-disable-next-line no-undef\n get textAlign(): TextAlignType {\n return this._textAlign;\n }\n // eslint-disable-next-line no-undef\n set textAlign(textAlign: TextAlignType) {\n this._textAlign = textAlign;\n //this.doChangeStyle();\n }\n // eslint-disable-next-line no-undef\n get textBaseline(): TextBaselineType {\n return this._textBaseline;\n }\n // eslint-disable-next-line no-undef\n set textBaseline(textBaseline: TextBaselineType) {\n this._textBaseline = textBaseline;\n //this.doChangeStyle();\n }\n get lineHeight(): number | undefined {\n return this._lineHeight;\n }\n set lineHeight(lineHeight: number | undefined) {\n this._lineHeight = lineHeight;\n //this.doChangeStyle();\n }\n get underline(): UnderlinePropertyDefine | undefined {\n return this._underline;\n }\n set underline(underline: UnderlinePropertyDefine | undefined) {\n this._underline = underline;\n //this.doChangeStyle();\n }\n get underlineColor(): ColorPropertyDefine | undefined {\n return this._underlineColor;\n }\n set underlineColor(underlineColor: ColorPropertyDefine | undefined) {\n this._underlineColor = underlineColor;\n //this.doChangeStyle();\n }\n get underlineDash(): LineDashPropertyDefine | undefined {\n return this._underlineDash;\n }\n set underlineDash(underlineDash: LineDashPropertyDefine | undefined) {\n this._underlineDash = underlineDash;\n //this.doChangeStyle();\n }\n get lineThrough(): LineThroughPropertyDefine | undefined {\n return this._lineThrough;\n }\n set lineThrough(lineThrough: LineThroughPropertyDefine | undefined) {\n this._lineThrough = lineThrough;\n //this.doChangeStyle();\n }\n get lineThroughColor(): ColorPropertyDefine | undefined {\n return this._lineThroughColor;\n }\n set lineThroughColor(lineThroughColor: ColorPropertyDefine | undefined) {\n this._lineThroughColor = lineThroughColor;\n //this.doChangeStyle();\n }\n get lineThroughDash(): LineDashPropertyDefine | undefined {\n return this._lineThroughDash;\n }\n set lineThroughDash(lineThroughDash: LineDashPropertyDefine | undefined) {\n this._lineThroughDash = lineThroughDash;\n //this.doChangeStyle();\n }\n get linkColor(): ColorPropertyDefine | undefined {\n return this._linkColor;\n }\n set linkColor(linkColor: ColorPropertyDefine | undefined) {\n this._linkColor = linkColor;\n //this.doChangeStyle();\n }\n // get tag(): TagPropertyDefine | undefined {\n // return this._tag;\n // }\n // set tag(tag: TagPropertyDefine | undefined) {\n // this._tag = tag;\n // //this.doChangeStyle();\n // }\n // get tagFont(): FontPropertyDefine | undefined {\n // return this._tagFont;\n // }\n // set tagFont(tagFont: FontPropertyDefine | undefined) {\n // this._tagFont = tagFont;\n // //this.doChangeStyle();\n // }\n // get tagColor(): ColorPropertyDefine | undefined {\n // return this._tagColor;\n // }\n // set tagColor(tagColor: ColorPropertyDefine | undefined) {\n // this._tagColor = tagColor;\n // //this.doChangeStyle();\n // }\n // get tagBgColor(): ColorPropertyDefine | undefined {\n // return this._tagBgColor;\n // }\n // set tagBgColor(tagBgColor: ColorPropertyDefine | undefined) {\n // this._tagBgColor = tagBgColor;\n // //this.doChangeStyle();\n // }\n // get tagMargin(): number | string | (number | string)[] | undefined {\n // return this._tagMargin;\n // }\n // set tagMargin(tagMargin: number | string | (number | string)[] | undefined) {\n // this._tagMargin = tagMargin;\n // //this.doChangeStyle();\n // }\n get cursor(): CursorPropertyDefine | undefined {\n return this._cursor;\n }\n set cursor(cursor: CursorPropertyDefine | undefined) {\n this._cursor = cursor;\n //this.doChangeStyle();\n }\n get borderLineWidth(): LineWidthsPropertyDefine | undefined {\n return this._borderLineWidth;\n }\n set borderLineWidth(borderLineWidth: LineWidthsPropertyDefine | undefined) {\n this._borderLineWidth = borderLineWidth;\n //this.doChangeStyle();\n }\n get borderLineDash(): LineDashsPropertyDefine | undefined {\n return this._borderLineDash;\n }\n set borderLineDash(borderLineDash: LineDashsPropertyDefine | undefined) {\n this._borderLineDash = borderLineDash;\n //this.doChangeStyle();\n }\n // doChangeStyle(): void {\n // this.fireListeners(EVENT_TYPE.CHANGE_STYLE);\n // }\n clone(): Style {\n return new Style(this);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["header-helper/style/Style.ts"],"names":[],"mappings":";;;AAoBA,IAAI,YAAmB,CAAC;AACxB,yDAAsD;AAEtD,MAAM,UAAU,GAAG;IACjB,YAAY,EAAE,cAAc;CAC7B,CAAC;AACF,MAAa,KAAM,SAAQ,yBAAW;IAoCpC,MAAM,KAAK,UAAU;QACnB,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,MAAM,KAAK,OAAO;QAChB,OAAO,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CA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ACD,IAAI,MAAM,CAAC,MAAwC;QACjD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IACD,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IACD,IAAI,eAAe,CAAC,eAAqD;QACvE,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IACD,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IACD,IAAI,cAAc,CAAC,cAAmD;QACpE,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;QACtC,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IACD,aAAa;QACX,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAC9C,CAAC;IACD,KAAK;QACH,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CACF;AA1SD,sBA0SC","file":"Style.js","sourcesContent":["import type {\n ColorPropertyDefine,\n ColorsPropertyDefine,\n ColumnStyle,\n IStyleOption,\n TextOverflow,\n UnderlinePropertyDefine,\n LineThroughPropertyDefine,\n LineDashPropertyDefine,\n PaddingsPropertyDefine,\n CursorPropertyDefine,\n LineWidthsPropertyDefine,\n LineDashsPropertyDefine,\n MarkedPropertyDefine,\n FontSizePropertyDefine,\n FontFamilyPropertyDefine,\n FontWeightPropertyDefine,\n FontVariantPropertyDefine,\n FontStylePropertyDefine\n} from '../../ts-types';\nlet defaultStyle: Style;\nimport { EventTarget } from '../../event/EventTarget';\nimport type { TextAlignType, TextBaselineType } from '@visactor/vrender';\nconst EVENT_TYPE = {\n CHANGE_STYLE: 'change_style'\n};\nexport class Style extends EventTarget implements ColumnStyle {\n private _color?: ColorPropertyDefine;\n private _fontSize?: FontSizePropertyDefine;\n private _fontFamily?: FontFamilyPropertyDefine;\n private _fontWeight?: FontWeightPropertyDefine;\n private _fontVariant?: FontVariantPropertyDefine;\n private _fontStyle?: FontStylePropertyDefine;\n private _textOverflow: TextOverflow;\n private _padding: PaddingsPropertyDefine | undefined;\n private _defaultPadding: PaddingsPropertyDefine = [10, 16, 10, 16];\n private _textStick: boolean;\n private _marked: MarkedPropertyDefine;\n // eslint-disable-next-line no-undef\n private _textAlign: TextAlignType;\n // eslint-disable-next-line no-undef\n private _textBaseline: TextBaselineType;\n private _bgColor?: ColorPropertyDefine;\n private _borderColor?: ColorsPropertyDefine;\n private _lineHeight?: number;\n private _underline?: UnderlinePropertyDefine;\n private _underlineColor?: ColorPropertyDefine;\n private _underlineDash?: LineDashPropertyDefine;\n private _lineThrough?: LineThroughPropertyDefine;\n private _lineThroughColor?: ColorPropertyDefine;\n private _lineThroughDash?: LineDashPropertyDefine;\n private _linkColor?: ColorPropertyDefine;\n\n // private _tag?: TagPropertyDefine;\n // private _tagFont?: FontPropertyDefine;\n // private _tagColor?: ColorPropertyDefine;\n // private _tagBgColor?: ColorPropertyDefine;\n // private _tagMargin?: number | string | (number | string)[];\n\n private _cursor?: CursorPropertyDefine;\n private _borderLineWidth?: LineWidthsPropertyDefine;\n private _borderLineDash?: LineDashsPropertyDefine;\n static get EVENT_TYPE(): { CHANGE_STYLE: string } {\n return EVENT_TYPE;\n }\n static get DEFAULT(): Style {\n return defaultStyle ? defaultStyle : (defaultStyle = new Style());\n }\n constructor(style: IStyleOption = {}, headerStyle: IStyleOption = {}) {\n super();\n this._color = style.color ?? headerStyle?.color;\n // icon为文字前后可添加的图标\n // this._icon = style.icon;\n this._fontSize = style.fontSize ?? headerStyle?.fontSize;\n this._fontFamily = style.fontFamily ?? headerStyle?.fontFamily;\n this._fontWeight = style.fontWeight ?? headerStyle?.fontWeight;\n this._fontVariant = style.fontVariant ?? headerStyle?.fontVariant;\n this._fontStyle = style.fontStyle ?? headerStyle?.fontStyle;\n this._textOverflow = (style.textOverflow ?? headerStyle?.textOverflow) || 'ellipsis';\n this._textStick = style.textStick ?? headerStyle?.textStick ?? false;\n this._marked = style.marked ?? headerStyle?.marked ?? false;\n this._textAlign = (style.textAlign ?? headerStyle?.textAlign) || 'left';\n this._textBaseline = (style.textBaseline ?? headerStyle?.textBaseline) || 'middle';\n this._bgColor = style.bgColor ?? headerStyle?.bgColor;\n this._padding = style.padding ?? headerStyle?.padding ?? this._defaultPadding;\n this._borderColor = style.borderColor ?? headerStyle?.borderColor;\n this._lineHeight = style.lineHeight ?? headerStyle?.lineHeight;\n this._underline = style.underline ?? headerStyle?.underline;\n this._underlineColor = style.underlineColor ?? headerStyle?.underlineColor;\n this._underlineDash = style.underlineDash ?? headerStyle?.underlineDash;\n this._lineThrough = style.lineThrough ?? headerStyle?.lineThrough;\n this._lineThroughColor = style.lineThroughColor ?? headerStyle?.lineThroughColor;\n this._lineThroughDash = style.lineThroughDash ?? headerStyle?.lineThroughDash;\n this._linkColor = style.linkColor ?? headerStyle?.linkColor;\n\n // this._tag = style.tag ?? headerStyle?.tag;\n // this._tagFont = style.tagFont ?? headerStyle?.tagFont;\n // this._tagColor = style.tagColor ?? headerStyle?.tagColor;\n // this._tagBgColor = style.tagBgColor ?? headerStyle?.tagBgColor;\n // this._tagMargin = style.tagMargin ?? headerStyle?.tagMargin;\n this._cursor = style.cursor ?? headerStyle?.cursor;\n this._borderLineWidth = style.borderLineWidth ?? headerStyle?.borderLineWidth;\n this._borderLineDash = style.borderLineDash ?? headerStyle?.borderLineDash;\n }\n get bgColor(): ColorPropertyDefine | undefined {\n return this._bgColor;\n }\n set bgColor(bgColor: ColorPropertyDefine | undefined) {\n this._bgColor = bgColor;\n this.doChangeStyle();\n }\n get color(): ColorPropertyDefine | undefined {\n return this._color;\n }\n set color(color: ColorPropertyDefine | undefined) {\n this._color = color;\n this.doChangeStyle();\n }\n get fontSize(): FontSizePropertyDefine | undefined {\n return this._fontSize;\n }\n set fontSize(fontSize: FontSizePropertyDefine | undefined) {\n this._fontSize = fontSize;\n this.doChangeStyle();\n }\n get fontFamily(): FontFamilyPropertyDefine | undefined {\n return this._fontFamily;\n }\n set fontFamily(fontFamily: FontFamilyPropertyDefine | undefined) {\n this._fontFamily = fontFamily;\n this.doChangeStyle();\n }\n get fontWeight(): FontWeightPropertyDefine | undefined {\n return this._fontWeight;\n }\n set fontWeight(fontWeight: FontWeightPropertyDefine | undefined) {\n this._fontWeight = fontWeight;\n this.doChangeStyle();\n }\n get fontVariant(): FontVariantPropertyDefine | undefined {\n return this._fontVariant;\n }\n set fontVariant(fontVariant: FontVariantPropertyDefine | undefined) {\n this._fontVariant = fontVariant;\n this.doChangeStyle();\n }\n get fontStyle(): FontStylePropertyDefine | undefined {\n return this._fontStyle;\n }\n set fontStyle(fontStyle: FontStylePropertyDefine | undefined) {\n this._fontStyle = fontStyle;\n this.doChangeStyle();\n }\n get textOverflow(): TextOverflow {\n return this._textOverflow;\n }\n set textOverflow(textOverflow: TextOverflow) {\n this._textOverflow = textOverflow;\n this.doChangeStyle();\n }\n get padding(): PaddingsPropertyDefine | undefined {\n return this._padding ?? this._defaultPadding;\n }\n set padding(padding: PaddingsPropertyDefine | undefined) {\n this._padding = padding;\n this.doChangeStyle();\n }\n get borderColor(): ColorsPropertyDefine | undefined {\n return this._borderColor;\n }\n set borderColor(borderColor: ColorsPropertyDefine | undefined) {\n this._borderColor = borderColor;\n this.doChangeStyle();\n }\n get textStick(): boolean {\n return this._textStick;\n }\n set textStick(textStick: boolean) {\n this._textStick = textStick;\n this.doChangeStyle();\n }\n get marked(): MarkedPropertyDefine | undefined {\n return this._marked;\n }\n set marked(marked: MarkedPropertyDefine | undefined) {\n this._marked = marked;\n this.doChangeStyle();\n }\n // eslint-disable-next-line no-undef\n get textAlign(): TextAlignType {\n return this._textAlign;\n }\n // eslint-disable-next-line no-undef\n set textAlign(textAlign: TextAlignType) {\n this._textAlign = textAlign;\n this.doChangeStyle();\n }\n // eslint-disable-next-line no-undef\n get textBaseline(): TextBaselineType {\n return this._textBaseline;\n }\n // eslint-disable-next-line no-undef\n set textBaseline(textBaseline: TextBaselineType) {\n this._textBaseline = textBaseline;\n this.doChangeStyle();\n }\n get lineHeight(): number | undefined {\n return this._lineHeight;\n }\n set lineHeight(lineHeight: number | undefined) {\n this._lineHeight = lineHeight;\n this.doChangeStyle();\n }\n get underline(): UnderlinePropertyDefine | undefined {\n return this._underline;\n }\n set underline(underline: UnderlinePropertyDefine | undefined) {\n this._underline = underline;\n this.doChangeStyle();\n }\n get underlineColor(): ColorPropertyDefine | undefined {\n return this._underlineColor;\n }\n set underlineColor(underlineColor: ColorPropertyDefine | undefined) {\n this._underlineColor = underlineColor;\n this.doChangeStyle();\n }\n get underlineDash(): LineDashPropertyDefine | undefined {\n return this._underlineDash;\n }\n set underlineDash(underlineDash: LineDashPropertyDefine | undefined) {\n this._underlineDash = underlineDash;\n this.doChangeStyle();\n }\n get lineThrough(): LineThroughPropertyDefine | undefined {\n return this._lineThrough;\n }\n set lineThrough(lineThrough: LineThroughPropertyDefine | undefined) {\n this._lineThrough = lineThrough;\n this.doChangeStyle();\n }\n get lineThroughColor(): ColorPropertyDefine | undefined {\n return this._lineThroughColor;\n }\n set lineThroughColor(lineThroughColor: ColorPropertyDefine | undefined) {\n this._lineThroughColor = lineThroughColor;\n this.doChangeStyle();\n }\n get lineThroughDash(): LineDashPropertyDefine | undefined {\n return this._lineThroughDash;\n }\n set lineThroughDash(lineThroughDash: LineDashPropertyDefine | undefined) {\n this._lineThroughDash = lineThroughDash;\n this.doChangeStyle();\n }\n get linkColor(): ColorPropertyDefine | undefined {\n return this._linkColor;\n }\n set linkColor(linkColor: ColorPropertyDefine | undefined) {\n this._linkColor = linkColor;\n this.doChangeStyle();\n }\n // get tag(): TagPropertyDefine | undefined {\n // return this._tag;\n // }\n // set tag(tag: TagPropertyDefine | undefined) {\n // this._tag = tag;\n // this.doChangeStyle();\n // }\n // get tagFont(): FontPropertyDefine | undefined {\n // return this._tagFont;\n // }\n // set tagFont(tagFont: FontPropertyDefine | undefined) {\n // this._tagFont = tagFont;\n // this.doChangeStyle();\n // }\n // get tagColor(): ColorPropertyDefine | undefined {\n // return this._tagColor;\n // }\n // set tagColor(tagColor: ColorPropertyDefine | undefined) {\n // this._tagColor = tagColor;\n // this.doChangeStyle();\n // }\n // get tagBgColor(): ColorPropertyDefine | undefined {\n // return this._tagBgColor;\n // }\n // set tagBgColor(tagBgColor: ColorPropertyDefine | undefined) {\n // this._tagBgColor = tagBgColor;\n // this.doChangeStyle();\n // }\n // get tagMargin(): number | string | (number | string)[] | undefined {\n // return this._tagMargin;\n // }\n // set tagMargin(tagMargin: number | string | (number | string)[] | undefined) {\n // this._tagMargin = tagMargin;\n // this.doChangeStyle();\n // }\n get cursor(): CursorPropertyDefine | undefined {\n return this._cursor;\n }\n set cursor(cursor: CursorPropertyDefine | undefined) {\n this._cursor = cursor;\n this.doChangeStyle();\n }\n get borderLineWidth(): LineWidthsPropertyDefine | undefined {\n return this._borderLineWidth;\n }\n set borderLineWidth(borderLineWidth: LineWidthsPropertyDefine | undefined) {\n this._borderLineWidth = borderLineWidth;\n this.doChangeStyle();\n }\n get borderLineDash(): LineDashsPropertyDefine | undefined {\n return this._borderLineDash;\n }\n set borderLineDash(borderLineDash: LineDashsPropertyDefine | undefined) {\n this._borderLineDash = borderLineDash;\n this.doChangeStyle();\n }\n doChangeStyle(): void {\n this.fireListeners(EVENT_TYPE.CHANGE_STYLE);\n }\n clone(): Style {\n return new Style(this);\n }\n}\n"]}
|
package/cjs/index.d.ts
CHANGED
|
@@ -4,14 +4,13 @@ import * as data from './data';
|
|
|
4
4
|
import * as register from './register';
|
|
5
5
|
import * as themes from './themes';
|
|
6
6
|
import * as DataStatistics from './dataset/DataStatistics';
|
|
7
|
-
import type { ColumnDefine, ColumnsDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, ListTableConstructorOptions, PivotTableConstructorOptions,
|
|
7
|
+
import type { ColumnDefine, ColumnsDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, ListTableConstructorOptions, PivotTableConstructorOptions, IHeaderTreeDefine, IDimension } from './ts-types';
|
|
8
8
|
import { ListTable } from './ListTable';
|
|
9
9
|
import { PivotTable } from './PivotTable';
|
|
10
|
-
import { PivotChart } from './PivotChart';
|
|
11
10
|
import type { MousePointerCellEvent } from './ts-types/events';
|
|
12
11
|
import * as CustomLayout from './render/layout';
|
|
13
|
-
export declare const version = "0.9.2
|
|
14
|
-
export { TYPES, core, ListTable, ListTableConstructorOptions, PivotTable, PivotTableConstructorOptions,
|
|
12
|
+
export declare const version = "0.9.2";
|
|
13
|
+
export { TYPES, core, ListTable, ListTableConstructorOptions, PivotTable, PivotTableConstructorOptions, IHeaderTreeDefine, IDimension, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, themes, data, MousePointerCellEvent, getIcons, clearGlobal, register, DataStatistics, CustomLayout };
|
|
15
14
|
declare function getIcons(): {
|
|
16
15
|
[key: string]: TYPES.ColumnIconOption;
|
|
17
16
|
};
|
package/cjs/index.js
CHANGED
|
@@ -27,7 +27,7 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
|
|
|
27
27
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", {
|
|
29
29
|
value: !0
|
|
30
|
-
}), exports.CustomLayout = exports.DataStatistics = exports.register = exports.clearGlobal = exports.getIcons = exports.data = exports.themes = exports.
|
|
30
|
+
}), exports.CustomLayout = exports.DataStatistics = exports.register = exports.clearGlobal = exports.getIcons = exports.data = exports.themes = exports.PivotTable = exports.ListTable = exports.core = exports.TYPES = exports.version = void 0;
|
|
31
31
|
|
|
32
32
|
const TYPES = __importStar(require("./ts-types"));
|
|
33
33
|
|
|
@@ -71,15 +71,6 @@ Object.defineProperty(exports, "PivotTable", {
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
const PivotChart_1 = require("./PivotChart");
|
|
75
|
-
|
|
76
|
-
Object.defineProperty(exports, "PivotChart", {
|
|
77
|
-
enumerable: !0,
|
|
78
|
-
get: function() {
|
|
79
|
-
return PivotChart_1.PivotChart;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
|
|
83
74
|
const CustomLayout = __importStar(require("./render/layout"));
|
|
84
75
|
|
|
85
76
|
function getIcons() {
|
|
@@ -90,6 +81,6 @@ function clearGlobal() {
|
|
|
90
81
|
register.clearAll();
|
|
91
82
|
}
|
|
92
83
|
|
|
93
|
-
exports.CustomLayout = CustomLayout, exports.version = "0.9.2
|
|
84
|
+
exports.CustomLayout = CustomLayout, exports.version = "0.9.2", exports.getIcons = getIcons,
|
|
94
85
|
exports.clearGlobal = clearGlobal, TYPES.AggregationType;
|
|
95
86
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,kDAAoC;AAmClC,sBAAK;AAlCP,6CAA+B;AAmC7B,oBAAI;AAlCN,6CAA+B;AAmD7B,oBAAI;AAlDN,+CAAiC;AACjC,qDAAuC;AAsDrC,4BAAQ;AArDV,iDAAmC;AA+CjC,wBAAM;AA9CR,yEAA2D;AAwDzD,wCAAc;AAxChB,2CAAwC;AAetC,0FAfO,qBAAS,OAeP;AAdX,6CAA0C;AAgBxC,2FAhBO,uBAAU,OAgBP;AAdZ,8DAAgD;AAsC9C,oCAAY;AArCD,QAAA,OAAO,GAAG,OAAO,CAAC;AAyC/B,SAAS,QAAQ;IAGf,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AAhBC,4BAAQ;AAkBV,SAAS,WAAW;IAClB,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAGtB,CAAC;AArBC,kCAAW;AAsBb,KAAK,CAAC,eAAe,CAAC","file":"index.js","sourcesContent":["/* eslint-disable sort-imports */\n\n// export { version } from '../../package.json';\nimport * as TYPES from './ts-types';\nimport * as core from './core';\nimport * as data from './data';\nimport * as icons from './icons';\nimport * as register from './register';\nimport * as themes from './themes';\nimport * as DataStatistics from './dataset/DataStatistics';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n ListTableConstructorOptions,\n PivotTableConstructorOptions,\n IHeaderTreeDefine,\n IDimension\n} from './ts-types';\nimport { ListTable } from './ListTable';\nimport { PivotTable } from './PivotTable';\nimport type { MousePointerCellEvent } from './ts-types/events';\nimport * as CustomLayout from './render/layout';\nexport const version = \"0.9.2\";\n/**\n * @namespace VTable\n */\nexport {\n /**\n * Types\n * @namespace VTable.TYPES\n */\n TYPES,\n core,\n ListTable,\n ListTableConstructorOptions,\n PivotTable,\n PivotTableConstructorOptions,\n IHeaderTreeDefine,\n IDimension,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n themes,\n data,\n MousePointerCellEvent,\n getIcons,\n clearGlobal,\n //plugin registers\n register,\n /**\n * 暂不推荐使用\n */\n DataStatistics,\n CustomLayout\n};\n\n/** @private */\nfunction getIcons(): {\n [key: string]: TYPES.ColumnIconOption;\n} {\n return icons.get();\n}\n/** 清理内部的全局变量 如注册的icon theme等 以及共享的header column类实例 */\nfunction clearGlobal() {\n register.clearAll();\n // headers.type.clearGlobal();\n // columns.type.clearGlobal();\n}\nTYPES.AggregationType;\n"]}
|
package/cjs/layout/index.js
CHANGED
|
@@ -80,9 +80,8 @@ export declare class PivotHeaderLayoutMap implements LayoutMapAPI {
|
|
|
80
80
|
private _addHeaders;
|
|
81
81
|
private _addHeadersForTreeMode;
|
|
82
82
|
_addCornerHeaders(dimensionKeys: (string | number)[] | null): HeaderData[];
|
|
83
|
-
private setColumnWidths;
|
|
84
83
|
get columnWidths(): WidthData[];
|
|
85
|
-
|
|
84
|
+
private setColumnWidths;
|
|
86
85
|
get showHeader(): boolean;
|
|
87
86
|
set showHeader(_showHeader: boolean);
|
|
88
87
|
get showColumnHeader(): boolean;
|
|
@@ -99,8 +98,6 @@ export declare class PivotHeaderLayoutMap implements LayoutMapAPI {
|
|
|
99
98
|
isCornerHeader(col: number, row: number): boolean;
|
|
100
99
|
isColumnHeader(col: number, row: number): boolean;
|
|
101
100
|
isRowHeader(col: number, row: number): boolean;
|
|
102
|
-
isRightFrozenColumn(col: number, row: number): boolean;
|
|
103
|
-
isBottomFrozenRow(col: number, row: number): boolean;
|
|
104
101
|
getColumnHeaderRange(): CellRange;
|
|
105
102
|
getRowHeaderRange(): CellRange;
|
|
106
103
|
getCornerHeaderRange(): CellRange;
|
|
@@ -112,8 +109,6 @@ export declare class PivotHeaderLayoutMap implements LayoutMapAPI {
|
|
|
112
109
|
get colCount(): number;
|
|
113
110
|
get rowCount(): number;
|
|
114
111
|
get bodyRowCount(): number;
|
|
115
|
-
get bottomFrozenRowCount(): number;
|
|
116
|
-
get rightFrozenColCount(): number;
|
|
117
112
|
get headerObjects(): HeaderData[];
|
|
118
113
|
get columnObjects(): IndicatorData[];
|
|
119
114
|
getCellId(col: number, row: number): LayoutObjectId;
|
|
@@ -155,12 +150,11 @@ export declare class PivotHeaderLayoutMap implements LayoutMapAPI {
|
|
|
155
150
|
moveSize: any;
|
|
156
151
|
moveType: string;
|
|
157
152
|
};
|
|
158
|
-
getCellAdressByHeaderPath(dimensionPaths:
|
|
153
|
+
getCellAdressByHeaderPath(dimensionPaths: {
|
|
154
|
+
colHeaderPaths: IDimensionInfo[];
|
|
155
|
+
rowHeaderPaths: IDimensionInfo[];
|
|
156
|
+
} | IDimensionInfo[]): CellAddress | undefined;
|
|
159
157
|
setChartInstance(_col: number, _row: number, chartInstance: any): void;
|
|
160
158
|
getChartInstance(_col: number, _row: number): any;
|
|
161
|
-
getDimension(dimensionKey: string, type: 'column' | 'row'): any;
|
|
162
|
-
getAxisConfigInPivotChart(col: number, row: number): any;
|
|
163
|
-
isEmpty(col: number, row: number): boolean;
|
|
164
|
-
getChartAxes(col: number, row: number): any[];
|
|
165
159
|
}
|
|
166
160
|
export {};
|
|
@@ -309,6 +309,9 @@ class PivotHeaderLayoutMap {
|
|
|
309
309
|
}
|
|
310
310
|
return results;
|
|
311
311
|
}
|
|
312
|
+
get columnWidths() {
|
|
313
|
+
return this._columnWidths;
|
|
314
|
+
}
|
|
312
315
|
setColumnWidths() {
|
|
313
316
|
const returnWidths = new Array(this.colCount).fill(void 0);
|
|
314
317
|
if (this.showHeader && this.showRowHeader && (this.rowHeaderTitle && (returnWidths[0] = {}),
|
|
@@ -341,12 +344,6 @@ class PivotHeaderLayoutMap {
|
|
|
341
344
|
}
|
|
342
345
|
this._columnWidths = returnWidths;
|
|
343
346
|
}
|
|
344
|
-
get columnWidths() {
|
|
345
|
-
return this._columnWidths;
|
|
346
|
-
}
|
|
347
|
-
getColumnWidthDefined(col) {
|
|
348
|
-
return this._columnWidths[col];
|
|
349
|
-
}
|
|
350
347
|
get showHeader() {
|
|
351
348
|
return this._showHeader;
|
|
352
349
|
}
|
|
@@ -382,7 +379,7 @@ class PivotHeaderLayoutMap {
|
|
|
382
379
|
return this.isCornerHeader(col, row) ? "cornerHeader" : this.isColumnHeader(col, row) ? "columnHeader" : this.isRowHeader(col, row) ? "rowHeader" : "body";
|
|
383
380
|
}
|
|
384
381
|
isHeader(col, row) {
|
|
385
|
-
return col < this.rowHeaderLevelCount ||
|
|
382
|
+
return col < this.rowHeaderLevelCount || row < this.columnHeaderLevelCount;
|
|
386
383
|
}
|
|
387
384
|
isCornerHeader(col, row) {
|
|
388
385
|
return col < this.rowHeaderLevelCount && row < this.columnHeaderLevelCount;
|
|
@@ -393,12 +390,6 @@ class PivotHeaderLayoutMap {
|
|
|
393
390
|
isRowHeader(col, row) {
|
|
394
391
|
return col < this.rowHeaderLevelCount && row >= this.columnHeaderLevelCount;
|
|
395
392
|
}
|
|
396
|
-
isRightFrozenColumn(col, row) {
|
|
397
|
-
return col >= this.colCount - this.rightFrozenColCount && row >= this.columnHeaderLevelCount && row < this.rowCount - this.bottomFrozenRowCount;
|
|
398
|
-
}
|
|
399
|
-
isBottomFrozenRow(col, row) {
|
|
400
|
-
return col >= this.rowHeaderLevelCount && row >= this.rowCount - this.bottomFrozenRowCount && col < this.colCount - this.rightFrozenColCount;
|
|
401
|
-
}
|
|
402
393
|
getColumnHeaderRange() {
|
|
403
394
|
return {
|
|
404
395
|
start: {
|
|
@@ -467,22 +458,14 @@ class PivotHeaderLayoutMap {
|
|
|
467
458
|
return 0;
|
|
468
459
|
}
|
|
469
460
|
get colCount() {
|
|
470
|
-
return this.columnDimensionTree.tree.size + this.rowHeaderLevelCount
|
|
461
|
+
return this.columnDimensionTree.tree.size + this.rowHeaderLevelCount;
|
|
471
462
|
}
|
|
472
463
|
get rowCount() {
|
|
473
|
-
return this.rowDimensionTree.tree.size + this.columnHeaderLevelCount
|
|
464
|
+
return this.rowDimensionTree.tree.size + this.columnHeaderLevelCount;
|
|
474
465
|
}
|
|
475
466
|
get bodyRowCount() {
|
|
476
467
|
return this.rowDimensionTree.tree.size;
|
|
477
468
|
}
|
|
478
|
-
get bottomFrozenRowCount() {
|
|
479
|
-
var _a;
|
|
480
|
-
return this.showHeader && this.showColumnHeader ? this.indicatorsAsCol && !this.hideIndicatorName ? this.indicatorsDefine.find((indicator => null == indicator ? void 0 : indicator.multiIndicator)) ? 1 : 0 : (null === (_a = this.getDimension(this.colDimensionKeys[this.colDimensionKeys.length - 1], "column")) || void 0 === _a ? void 0 : _a.multiDimension) ? 1 : 0 : 0;
|
|
481
|
-
}
|
|
482
|
-
get rightFrozenColCount() {
|
|
483
|
-
var _a;
|
|
484
|
-
return this.showHeader && this.showColumnHeader ? this.indicatorsAsCol || this.hideIndicatorName ? (null === (_a = this.getDimension(this.rowDimensionKeys[this.rowDimensionKeys.length - 1], "row")) || void 0 === _a ? void 0 : _a.multiDimension) ? 1 : 0 : this.indicatorsDefine.find((indicator => null == indicator ? void 0 : indicator.multiIndicator)) ? 1 : 0 : 0;
|
|
485
|
-
}
|
|
486
469
|
get headerObjects() {
|
|
487
470
|
return this._headerObjects;
|
|
488
471
|
}
|
|
@@ -490,13 +473,11 @@ class PivotHeaderLayoutMap {
|
|
|
490
473
|
return this._indicators;
|
|
491
474
|
}
|
|
492
475
|
getCellId(col, row) {
|
|
493
|
-
var _a
|
|
476
|
+
var _a;
|
|
494
477
|
if (row >= 0 && col >= 0) {
|
|
495
478
|
if (this.isCornerHeader(col, row)) return this._cornerHeaderCellIds[row][col];
|
|
496
479
|
if (this.isColumnHeader(col, row)) return this._columnHeaderCellIds[row][col - this.rowHeaderLevelCount];
|
|
497
480
|
if (this.isRowHeader(col, row)) return null === (_a = this._rowHeaderCellIds[row - this.columnHeaderLevelCount]) || void 0 === _a ? void 0 : _a[col];
|
|
498
|
-
if (this.isRightFrozenColumn(col, row)) return this._rowHeaderCellIds[row - this.columnHeaderLevelCount][this.rowHeaderLevelCount - 1];
|
|
499
|
-
if (this.isBottomFrozenRow(col, row)) return null === (_b = this._columnHeaderCellIds[this.columnHeaderLevelCount - 1]) || void 0 === _b ? void 0 : _b[col - this.rowHeaderLevelCount];
|
|
500
481
|
}
|
|
501
482
|
}
|
|
502
483
|
getHeader(col, row) {
|
|
@@ -608,10 +589,10 @@ class PivotHeaderLayoutMap {
|
|
|
608
589
|
return range1.start.col === range2.start.col && range1.end.col === range2.end.col && range1.start.row === range2.start.row && range1.end.row === range2.end.row;
|
|
609
590
|
}
|
|
610
591
|
getRecordIndexByRow(row) {
|
|
611
|
-
return row < this.columnHeaderLevelCount
|
|
592
|
+
return row < this.columnHeaderLevelCount ? -1 : row - this.columnHeaderLevelCount;
|
|
612
593
|
}
|
|
613
594
|
getRecordIndexByCol(col) {
|
|
614
|
-
return col < this.rowHeaderLevelCount
|
|
595
|
+
return col < this.rowHeaderLevelCount ? -1 : col - this.rowHeaderLevelCount;
|
|
615
596
|
}
|
|
616
597
|
getRecordStartRowByRecordIndex(index) {
|
|
617
598
|
return this.columnHeaderLevelCount + index;
|
|
@@ -875,8 +856,8 @@ class PivotHeaderLayoutMap {
|
|
|
875
856
|
const colDimension = colHeaderPaths[i];
|
|
876
857
|
for (let j = 0; j < colArr.length; j++) {
|
|
877
858
|
const dimension = colArr[j];
|
|
878
|
-
if (
|
|
879
|
-
util_1.isValid)(colDimension.indicatorKey) && dimension.indicatorKey === colDimension.indicatorKey) {
|
|
859
|
+
if (((0, util_1.isValid)(colDimension.dimensionKey) && dimension.dimensionKey === colDimension.dimensionKey || (0,
|
|
860
|
+
util_1.isValid)(colDimension.indicatorKey) && dimension.indicatorKey === colDimension.indicatorKey) && dimension.value === colDimension.value) {
|
|
880
861
|
colArr = dimension.children, needLowestLevel && !colArr ? colDimensionFinded = dimension : needLowestLevel || (colDimensionFinded = dimension);
|
|
881
862
|
break;
|
|
882
863
|
}
|
|
@@ -886,7 +867,7 @@ class PivotHeaderLayoutMap {
|
|
|
886
867
|
const rowDimension = rowHeaderPaths[i];
|
|
887
868
|
for (let j = 0; j < rowArr.length; j++) {
|
|
888
869
|
const dimension = rowArr[j];
|
|
889
|
-
if ((
|
|
870
|
+
if (((0, util_1.isValid)(rowDimension.dimensionKey) && dimension.dimensionKey === rowDimension.dimensionKey || (0,
|
|
890
871
|
util_1.isValid)(rowDimension.indicatorKey) && dimension.indicatorKey === rowDimension.indicatorKey) && dimension.value === rowDimension.value) {
|
|
891
872
|
rowArr = dimension.children, needLowestLevel && !rowArr ? rowDimensionFinded = dimension : needLowestLevel || (rowDimensionFinded = dimension);
|
|
892
873
|
break;
|
|
@@ -936,17 +917,6 @@ class PivotHeaderLayoutMap {
|
|
|
936
917
|
}
|
|
937
918
|
return null == indicatorObj ? void 0 : indicatorObj.chartInstance;
|
|
938
919
|
}
|
|
939
|
-
getDimension(dimensionKey, type) {
|
|
940
|
-
var _a, _b;
|
|
941
|
-
return "column" === type ? null === (_a = this.columnsDefine) || void 0 === _a ? void 0 : _a.find((dimension => "string" != typeof dimension && dimension.dimensionKey === dimensionKey)) : "row" === type ? null === (_b = this.rowsDefine) || void 0 === _b ? void 0 : _b.find((dimension => "string" != typeof dimension && dimension.dimensionKey === dimensionKey)) : void 0;
|
|
942
|
-
}
|
|
943
|
-
getAxisConfigInPivotChart(col, row) {}
|
|
944
|
-
isEmpty(col, row) {
|
|
945
|
-
return !1;
|
|
946
|
-
}
|
|
947
|
-
getChartAxes(col, row) {
|
|
948
|
-
return [];
|
|
949
|
-
}
|
|
950
920
|
}
|
|
951
921
|
|
|
952
922
|
exports.PivotHeaderLayoutMap = PivotHeaderLayoutMap;
|