@visactor/vtable 0.9.0-alpha.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +152 -0
- package/cjs/ListTable.d.ts +38 -0
- package/cjs/ListTable.js +258 -0
- package/cjs/ListTable.js.map +1 -0
- package/cjs/PivotTable.d.ts +50 -0
- package/cjs/PivotTable.js +275 -0
- package/cjs/PivotTable.js.map +1 -0
- package/cjs/body-helper/body-helper.d.ts +14 -0
- package/cjs/body-helper/body-helper.js +99 -0
- package/cjs/body-helper/body-helper.js.map +1 -0
- package/cjs/body-helper/style/ImageStyle.d.ts +7 -0
- package/cjs/body-helper/style/ImageStyle.js +24 -0
- package/cjs/body-helper/style/ImageStyle.js.map +1 -0
- package/cjs/body-helper/style/MultilineTextStyle.d.ts +13 -0
- package/cjs/body-helper/style/MultilineTextStyle.js +38 -0
- package/cjs/body-helper/style/MultilineTextStyle.js.map +1 -0
- package/cjs/body-helper/style/NumberStyle.d.ts +7 -0
- package/cjs/body-helper/style/NumberStyle.js +24 -0
- package/cjs/body-helper/style/NumberStyle.js.map +1 -0
- package/cjs/body-helper/style/ProgressBarStyle.d.ts +52 -0
- package/cjs/body-helper/style/ProgressBarStyle.js +126 -0
- package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -0
- package/cjs/body-helper/style/Style.d.ts +85 -0
- package/cjs/body-helper/style/Style.js +200 -0
- package/cjs/body-helper/style/Style.js.map +1 -0
- package/cjs/body-helper/style.d.ts +10 -0
- package/cjs/body-helper/style.js +52 -0
- package/cjs/body-helper/style.js.map +1 -0
- package/cjs/chartType.d.ts +3 -0
- package/cjs/chartType.js +14 -0
- package/cjs/chartType.js.map +1 -0
- package/cjs/core/BaseTable.d.ts +287 -0
- package/cjs/core/BaseTable.js +1272 -0
- package/cjs/core/BaseTable.js.map +1 -0
- package/cjs/core/FouseInput.d.ts +11 -0
- package/cjs/core/FouseInput.js +38 -0
- package/cjs/core/FouseInput.js.map +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +30 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +34 -0
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -0
- package/cjs/core/tableHelper.d.ts +28 -0
- package/cjs/core/tableHelper.js +141 -0
- package/cjs/core/tableHelper.js.map +1 -0
- package/cjs/core.d.ts +3 -0
- package/cjs/core.js +24 -0
- package/cjs/core.js.map +1 -0
- package/cjs/data/CachedDataSource.d.ts +16 -0
- package/cjs/data/CachedDataSource.js +54 -0
- package/cjs/data/CachedDataSource.js.map +1 -0
- package/cjs/data/DataSource.d.ts +64 -0
- package/cjs/data/DataSource.js +294 -0
- package/cjs/data/DataSource.js.map +1 -0
- package/cjs/data/FilterDataSource.d.ts +1 -0
- package/cjs/data/FilterDataSource.js +1 -0
- package/cjs/data/FilterDataSource.js.map +1 -0
- package/cjs/data.d.ts +4 -0
- package/cjs/data.js +24 -0
- package/cjs/data.js.map +1 -0
- package/cjs/dataset/DataStatistics.d.ts +10 -0
- package/cjs/dataset/DataStatistics.js +81 -0
- package/cjs/dataset/DataStatistics.js.map +1 -0
- package/cjs/dataset/dataset.d.ts +72 -0
- package/cjs/dataset/dataset.js +490 -0
- package/cjs/dataset/dataset.js.map +1 -0
- package/cjs/dataset/flatDataToObject.d.ts +31 -0
- package/cjs/dataset/flatDataToObject.js +71 -0
- package/cjs/dataset/flatDataToObject.js.map +1 -0
- package/cjs/event/EventHandler.d.ts +45 -0
- package/cjs/event/EventHandler.js +120 -0
- package/cjs/event/EventHandler.js.map +1 -0
- package/cjs/event/EventTarget.d.ts +11 -0
- package/cjs/event/EventTarget.js +59 -0
- package/cjs/event/EventTarget.js.map +1 -0
- package/cjs/event/chart.d.ts +2 -0
- package/cjs/event/chart.js +24 -0
- package/cjs/event/chart.js.map +1 -0
- package/cjs/event/drill.d.ts +3 -0
- package/cjs/event/drill.js +23 -0
- package/cjs/event/drill.js.map +1 -0
- package/cjs/event/event.d.ts +35 -0
- package/cjs/event/event.js +426 -0
- package/cjs/event/event.js.map +1 -0
- package/cjs/event/media-click.d.ts +2 -0
- package/cjs/event/media-click.js +58 -0
- package/cjs/event/media-click.js.map +1 -0
- package/cjs/event/scroll.d.ts +2 -0
- package/cjs/event/scroll.js +23 -0
- package/cjs/event/scroll.js.map +1 -0
- package/cjs/header-helper/header-helper.d.ts +26 -0
- package/cjs/header-helper/header-helper.js +214 -0
- package/cjs/header-helper/header-helper.js.map +1 -0
- package/cjs/header-helper/style/ImageStyle.d.ts +7 -0
- package/cjs/header-helper/style/ImageStyle.js +25 -0
- package/cjs/header-helper/style/ImageStyle.js.map +1 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.js +38 -0
- package/cjs/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
- package/cjs/header-helper/style/SortHeaderStyle.d.ts +1 -0
- package/cjs/header-helper/style/SortHeaderStyle.js +3 -0
- package/cjs/header-helper/style/SortHeaderStyle.js.map +1 -0
- package/cjs/header-helper/style/Style.d.ts +88 -0
- package/cjs/header-helper/style/Style.js +208 -0
- package/cjs/header-helper/style/Style.js.map +1 -0
- package/cjs/header-helper/style.d.ts +5 -0
- package/cjs/header-helper/style.js +30 -0
- package/cjs/header-helper/style.js.map +1 -0
- package/cjs/icons.d.ts +4 -0
- package/cjs/icons.js +241 -0
- package/cjs/icons.js.map +1 -0
- package/cjs/index.d.ts +17 -0
- package/cjs/index.js +95 -0
- package/cjs/index.js.map +1 -0
- package/cjs/layout/index.d.ts +1 -0
- package/cjs/layout/index.js +15 -0
- package/cjs/layout/index.js.map +1 -0
- package/cjs/layout/pivot-header-layout.d.ts +155 -0
- package/cjs/layout/pivot-header-layout.js +897 -0
- package/cjs/layout/pivot-header-layout.js.map +1 -0
- package/cjs/layout/pivot-layout.d.ts +86 -0
- package/cjs/layout/pivot-layout.js +422 -0
- package/cjs/layout/pivot-layout.js.map +1 -0
- package/cjs/layout/simple-header-layout.d.ts +67 -0
- package/cjs/layout/simple-header-layout.js +413 -0
- package/cjs/layout/simple-header-layout.js.map +1 -0
- package/cjs/menu/dom/BaseMenu.d.ts +15 -0
- package/cjs/menu/dom/BaseMenu.js +30 -0
- package/cjs/menu/dom/BaseMenu.js.map +1 -0
- package/cjs/menu/dom/Menu.d.ts +9 -0
- package/cjs/menu/dom/Menu.js +24 -0
- package/cjs/menu/dom/Menu.js.map +1 -0
- package/cjs/menu/dom/MenuHandler.d.ts +20 -0
- package/cjs/menu/dom/MenuHandler.js +134 -0
- package/cjs/menu/dom/MenuHandler.js.map +1 -0
- package/cjs/menu/dom/logic/MenuContainer.d.ts +22 -0
- package/cjs/menu/dom/logic/MenuContainer.js +110 -0
- package/cjs/menu/dom/logic/MenuContainer.js.map +1 -0
- package/cjs/menu/dom/logic/MenuElement.css +86 -0
- package/cjs/menu/dom/logic/MenuElement.d.ts +27 -0
- package/cjs/menu/dom/logic/MenuElement.js +278 -0
- package/cjs/menu/dom/logic/MenuElement.js.map +1 -0
- package/cjs/plugins/chartTypes.d.ts +3 -0
- package/cjs/plugins/chartTypes.js +6 -0
- package/cjs/plugins/chartTypes.js.map +1 -0
- package/cjs/plugins/icons.d.ts +12 -0
- package/cjs/plugins/icons.js +26 -0
- package/cjs/plugins/icons.js.map +1 -0
- package/cjs/plugins/themes.d.ts +4 -0
- package/cjs/plugins/themes.js +6 -0
- package/cjs/plugins/themes.js.map +1 -0
- package/cjs/register.d.ts +5 -0
- package/cjs/register.js +35 -0
- package/cjs/register.js.map +1 -0
- package/cjs/render/layout/arc.d.ts +23 -0
- package/cjs/render/layout/arc.js +20 -0
- package/cjs/render/layout/arc.js.map +1 -0
- package/cjs/render/layout/circle.d.ts +19 -0
- package/cjs/render/layout/circle.js +19 -0
- package/cjs/render/layout/circle.js.map +1 -0
- package/cjs/render/layout/container.d.ts +52 -0
- package/cjs/render/layout/container.js +99 -0
- package/cjs/render/layout/container.js.map +1 -0
- package/cjs/render/layout/direction.d.ts +22 -0
- package/cjs/render/layout/direction.js +35 -0
- package/cjs/render/layout/direction.js.map +1 -0
- package/cjs/render/layout/element.d.ts +47 -0
- package/cjs/render/layout/element.js +27 -0
- package/cjs/render/layout/element.js.map +1 -0
- package/cjs/render/layout/group-element.d.ts +25 -0
- package/cjs/render/layout/group-element.js +52 -0
- package/cjs/render/layout/group-element.js.map +1 -0
- package/cjs/render/layout/icon.d.ts +21 -0
- package/cjs/render/layout/icon.js +48 -0
- package/cjs/render/layout/icon.js.map +1 -0
- package/cjs/render/layout/image.d.ts +21 -0
- package/cjs/render/layout/image.js +20 -0
- package/cjs/render/layout/image.js.map +1 -0
- package/cjs/render/layout/index.d.ts +9 -0
- package/cjs/render/layout/index.js +25 -0
- package/cjs/render/layout/index.js.map +1 -0
- package/cjs/render/layout/line.d.ts +32 -0
- package/cjs/render/layout/line.js +88 -0
- package/cjs/render/layout/line.js.map +1 -0
- package/cjs/render/layout/percent-calc.d.ts +8 -0
- package/cjs/render/layout/percent-calc.js +13 -0
- package/cjs/render/layout/percent-calc.js.map +1 -0
- package/cjs/render/layout/rect.d.ts +22 -0
- package/cjs/render/layout/rect.js +19 -0
- package/cjs/render/layout/rect.js.map +1 -0
- package/cjs/render/layout/text.d.ts +22 -0
- package/cjs/render/layout/text.js +26 -0
- package/cjs/render/layout/text.js.map +1 -0
- package/cjs/scenegraph/component/cell-content.d.ts +36 -0
- package/cjs/scenegraph/component/cell-content.js +100 -0
- package/cjs/scenegraph/component/cell-content.js.map +1 -0
- package/cjs/scenegraph/component/cell-mover.d.ts +15 -0
- package/cjs/scenegraph/component/cell-mover.js +107 -0
- package/cjs/scenegraph/component/cell-mover.js.map +1 -0
- package/cjs/scenegraph/component/custom.d.ts +7 -0
- package/cjs/scenegraph/component/custom.js +212 -0
- package/cjs/scenegraph/component/custom.js.map +1 -0
- package/cjs/scenegraph/component/drill-icon.d.ts +9 -0
- package/cjs/scenegraph/component/drill-icon.js +70 -0
- package/cjs/scenegraph/component/drill-icon.js.map +1 -0
- package/cjs/scenegraph/component/menu.d.ts +41 -0
- package/cjs/scenegraph/component/menu.js +214 -0
- package/cjs/scenegraph/component/menu.js.map +1 -0
- package/cjs/scenegraph/component/table-component.d.ts +37 -0
- package/cjs/scenegraph/component/table-component.js +302 -0
- package/cjs/scenegraph/component/table-component.js.map +1 -0
- package/cjs/scenegraph/component/util.d.ts +2 -0
- package/cjs/scenegraph/component/util.js +11 -0
- package/cjs/scenegraph/component/util.js.map +1 -0
- package/cjs/scenegraph/debug-tool/debug-tool.d.ts +36 -0
- package/cjs/scenegraph/debug-tool/debug-tool.js +138 -0
- package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -0
- package/cjs/scenegraph/debug-tool/index.d.ts +4 -0
- package/cjs/scenegraph/debug-tool/index.js +14 -0
- package/cjs/scenegraph/debug-tool/index.js.map +1 -0
- package/cjs/scenegraph/graphic/chart.d.ts +30 -0
- package/cjs/scenegraph/graphic/chart.js +66 -0
- package/cjs/scenegraph/graphic/chart.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +10 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.js +46 -0
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.d.ts +70 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +195 -0
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +20 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +46 -0
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/index.d.ts +3 -0
- package/cjs/scenegraph/graphic/contributions/index.js +36 -0
- package/cjs/scenegraph/graphic/contributions/index.js.map +1 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.d.ts +17 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +47 -0
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
- package/cjs/scenegraph/graphic/group.d.ts +23 -0
- package/cjs/scenegraph/graphic/group.js +94 -0
- package/cjs/scenegraph/graphic/group.js.map +1 -0
- package/cjs/scenegraph/graphic/icon.d.ts +24 -0
- package/cjs/scenegraph/graphic/icon.js +25 -0
- package/cjs/scenegraph/graphic/icon.js.map +1 -0
- package/cjs/scenegraph/graphic/text.d.ts +16 -0
- package/cjs/scenegraph/graphic/text.js +146 -0
- package/cjs/scenegraph/graphic/text.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-helper.d.ts +7 -0
- package/cjs/scenegraph/group-creater/cell-helper.js +84 -0
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.d.ts +3 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +78 -0
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +7 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js +123 -0
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +9 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +342 -0
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +3 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +163 -0
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +5 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js +64 -0
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.d.ts +4 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js +100 -0
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
- package/cjs/scenegraph/group-creater/column-helper.d.ts +24 -0
- package/cjs/scenegraph/group-creater/column-helper.js +136 -0
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -0
- package/cjs/scenegraph/group-creater/column.d.ts +14 -0
- package/cjs/scenegraph/group-creater/column.js +57 -0
- package/cjs/scenegraph/group-creater/column.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/proxy.d.ts +45 -0
- package/cjs/scenegraph/group-creater/progress/proxy.js +267 -0
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -0
- package/cjs/scenegraph/header-icon/layout.d.ts +3 -0
- package/cjs/scenegraph/header-icon/layout.js +75 -0
- package/cjs/scenegraph/header-icon/layout.js.map +1 -0
- package/cjs/scenegraph/hover-state.d.ts +14 -0
- package/cjs/scenegraph/hover-state.js +27 -0
- package/cjs/scenegraph/hover-state.js.map +1 -0
- package/cjs/scenegraph/layout/auto-height.d.ts +2 -0
- package/cjs/scenegraph/layout/auto-height.js +50 -0
- package/cjs/scenegraph/layout/auto-height.js.map +1 -0
- package/cjs/scenegraph/layout/auto-width.d.ts +2 -0
- package/cjs/scenegraph/layout/auto-width.js +85 -0
- package/cjs/scenegraph/layout/auto-width.js.map +1 -0
- package/cjs/scenegraph/layout/compute-col-width.d.ts +3 -0
- package/cjs/scenegraph/layout/compute-col-width.js +194 -0
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -0
- package/cjs/scenegraph/layout/move-cell.d.ts +2 -0
- package/cjs/scenegraph/layout/move-cell.js +61 -0
- package/cjs/scenegraph/layout/move-cell.js.map +1 -0
- package/cjs/scenegraph/layout/update-cell.d.ts +3 -0
- package/cjs/scenegraph/layout/update-cell.js +55 -0
- package/cjs/scenegraph/layout/update-cell.js.map +1 -0
- package/cjs/scenegraph/layout/update-height.d.ts +6 -0
- package/cjs/scenegraph/layout/update-height.js +90 -0
- package/cjs/scenegraph/layout/update-height.js.map +1 -0
- package/cjs/scenegraph/layout/update-width.d.ts +2 -0
- package/cjs/scenegraph/layout/update-width.js +103 -0
- package/cjs/scenegraph/layout/update-width.js.map +1 -0
- package/cjs/scenegraph/scenegraph.d.ts +109 -0
- package/cjs/scenegraph/scenegraph.js +798 -0
- package/cjs/scenegraph/scenegraph.js.map +1 -0
- package/cjs/scenegraph/style/frame-border.d.ts +3 -0
- package/cjs/scenegraph/style/frame-border.js +43 -0
- package/cjs/scenegraph/style/frame-border.js.map +1 -0
- package/cjs/scenegraph/utils/border-line.d.ts +8 -0
- package/cjs/scenegraph/utils/border-line.js +51 -0
- package/cjs/scenegraph/utils/border-line.js.map +1 -0
- package/cjs/scenegraph/utils/break-string.d.ts +1 -0
- package/cjs/scenegraph/utils/break-string.js +37 -0
- package/cjs/scenegraph/utils/break-string.js.map +1 -0
- package/cjs/scenegraph/utils/cell-pos.d.ts +4 -0
- package/cjs/scenegraph/utils/cell-pos.js +18 -0
- package/cjs/scenegraph/utils/cell-pos.js.map +1 -0
- package/cjs/scenegraph/utils/font.d.ts +1 -0
- package/cjs/scenegraph/utils/font.js +20 -0
- package/cjs/scenegraph/utils/font.js.map +1 -0
- package/cjs/scenegraph/utils/get-cell-merge.d.ts +3 -0
- package/cjs/scenegraph/utils/get-cell-merge.js +11 -0
- package/cjs/scenegraph/utils/get-cell-merge.js.map +1 -0
- package/cjs/scenegraph/utils/get-prop.d.ts +4 -0
- package/cjs/scenegraph/utils/get-prop.js +44 -0
- package/cjs/scenegraph/utils/get-prop.js.map +1 -0
- package/cjs/scenegraph/utils/icon.d.ts +12 -0
- package/cjs/scenegraph/utils/icon.js +35 -0
- package/cjs/scenegraph/utils/icon.js.map +1 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.js +16 -0
- package/cjs/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
- package/cjs/scenegraph/utils/measure-text.d.ts +20 -0
- package/cjs/scenegraph/utils/measure-text.js +111 -0
- package/cjs/scenegraph/utils/measure-text.js.map +1 -0
- package/cjs/scenegraph/utils/padding.d.ts +1 -0
- package/cjs/scenegraph/utils/padding.js +16 -0
- package/cjs/scenegraph/utils/padding.js.map +1 -0
- package/cjs/scenegraph/utils/text-icon-layout.d.ts +9 -0
- package/cjs/scenegraph/utils/text-icon-layout.js +237 -0
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -0
- package/cjs/scenegraph/utils/text-pos.d.ts +8 -0
- package/cjs/scenegraph/utils/text-pos.js +27 -0
- package/cjs/scenegraph/utils/text-pos.js.map +1 -0
- package/cjs/state/cell-move/adjust-header.d.ts +3 -0
- package/cjs/state/cell-move/adjust-header.js +20 -0
- package/cjs/state/cell-move/adjust-header.js.map +1 -0
- package/cjs/state/cell-move/index.d.ts +4 -0
- package/cjs/state/cell-move/index.js +60 -0
- package/cjs/state/cell-move/index.js.map +1 -0
- package/cjs/state/common/check-in-select.d.ts +8 -0
- package/cjs/state/common/check-in-select.js +63 -0
- package/cjs/state/common/check-in-select.js.map +1 -0
- package/cjs/state/drill/index.d.ts +2 -0
- package/cjs/state/drill/index.js +15 -0
- package/cjs/state/drill/index.js.map +1 -0
- package/cjs/state/hover/col.d.ts +5 -0
- package/cjs/state/hover/col.js +24 -0
- package/cjs/state/hover/col.js.map +1 -0
- package/cjs/state/hover/is-cell-hover.d.ts +5 -0
- package/cjs/state/hover/is-cell-hover.js +36 -0
- package/cjs/state/hover/is-cell-hover.js.map +1 -0
- package/cjs/state/hover/row.d.ts +5 -0
- package/cjs/state/hover/row.js +22 -0
- package/cjs/state/hover/row.js.map +1 -0
- package/cjs/state/hover/single.d.ts +5 -0
- package/cjs/state/hover/single.js +18 -0
- package/cjs/state/hover/single.js.map +1 -0
- package/cjs/state/hover/update-cell.d.ts +2 -0
- package/cjs/state/hover/update-cell.js +13 -0
- package/cjs/state/hover/update-cell.js.map +1 -0
- package/cjs/state/hover/update-position.d.ts +2 -0
- package/cjs/state/hover/update-position.js +44 -0
- package/cjs/state/hover/update-position.js.map +1 -0
- package/cjs/state/pin/index.d.ts +2 -0
- package/cjs/state/pin/index.js +10 -0
- package/cjs/state/pin/index.js.map +1 -0
- package/cjs/state/select/update-position.d.ts +4 -0
- package/cjs/state/select/update-position.js +111 -0
- package/cjs/state/select/update-position.js.map +1 -0
- package/cjs/state/sort/index.d.ts +2 -0
- package/cjs/state/sort/index.js +41 -0
- package/cjs/state/sort/index.js.map +1 -0
- package/cjs/state/spark-line/index.d.ts +3 -0
- package/cjs/state/spark-line/index.js +98 -0
- package/cjs/state/spark-line/index.js.map +1 -0
- package/cjs/state/state.d.ts +155 -0
- package/cjs/state/state.js +431 -0
- package/cjs/state/state.js.map +1 -0
- package/cjs/themes/ARCO.d.ts +3 -0
- package/cjs/themes/ARCO.js +114 -0
- package/cjs/themes/ARCO.js.map +1 -0
- package/cjs/themes/BRIGHT.d.ts +3 -0
- package/cjs/themes/BRIGHT.js +71 -0
- package/cjs/themes/BRIGHT.js.map +1 -0
- package/cjs/themes/DARK.d.ts +3 -0
- package/cjs/themes/DARK.js +90 -0
- package/cjs/themes/DARK.js.map +1 -0
- package/cjs/themes/DEFAULT.d.ts +3 -0
- package/cjs/themes/DEFAULT.js +89 -0
- package/cjs/themes/DEFAULT.js.map +1 -0
- package/cjs/themes/SIMPLIFY.d.ts +3 -0
- package/cjs/themes/SIMPLIFY.js +46 -0
- package/cjs/themes/SIMPLIFY.js.map +1 -0
- package/cjs/themes/theme.d.ts +34 -0
- package/cjs/themes/theme.js +520 -0
- package/cjs/themes/theme.js.map +1 -0
- package/cjs/themes.d.ts +28 -0
- package/cjs/themes.js +52 -0
- package/cjs/themes.js.map +1 -0
- package/cjs/tools/LimitPromiseQueue.d.ts +8 -0
- package/cjs/tools/LimitPromiseQueue.js +29 -0
- package/cjs/tools/LimitPromiseQueue.js.map +1 -0
- package/cjs/tools/NumberMap.d.ts +16 -0
- package/cjs/tools/NumberMap.js +76 -0
- package/cjs/tools/NumberMap.js.map +1 -0
- package/cjs/tools/Rect.d.ts +24 -0
- package/cjs/tools/Rect.js +69 -0
- package/cjs/tools/Rect.js.map +1 -0
- package/cjs/tools/calc.d.ts +5 -0
- package/cjs/tools/calc.js +197 -0
- package/cjs/tools/calc.js.map +1 -0
- package/cjs/tools/debounce.d.ts +1 -0
- package/cjs/tools/debounce.js +51 -0
- package/cjs/tools/debounce.js.map +1 -0
- package/cjs/tools/dom.d.ts +1 -0
- package/cjs/tools/dom.js +11 -0
- package/cjs/tools/dom.js.map +1 -0
- package/cjs/tools/env.d.ts +19 -0
- package/cjs/tools/env.js +48 -0
- package/cjs/tools/env.js.map +1 -0
- package/cjs/tools/global.d.ts +13 -0
- package/cjs/tools/global.js +12 -0
- package/cjs/tools/global.js.map +1 -0
- package/cjs/tools/helper.d.ts +60 -0
- package/cjs/tools/helper.js +216 -0
- package/cjs/tools/helper.js.map +1 -0
- package/cjs/tools/icons.d.ts +4 -0
- package/cjs/tools/icons.js +10 -0
- package/cjs/tools/icons.js.map +1 -0
- package/cjs/tools/isx.d.ts +16 -0
- package/cjs/tools/isx.js +117 -0
- package/cjs/tools/isx.js.map +1 -0
- package/cjs/tools/sort.d.ts +1 -0
- package/cjs/tools/sort.js +18 -0
- package/cjs/tools/sort.js.map +1 -0
- package/cjs/tools/style.css +60 -0
- package/cjs/tools/style.d.ts +2 -0
- package/cjs/tools/style.js +11 -0
- package/cjs/tools/style.js.map +1 -0
- package/cjs/tools/text-width.d.ts +1 -0
- package/cjs/tools/text-width.js +17 -0
- package/cjs/tools/text-width.js.map +1 -0
- package/cjs/tools/util.d.ts +45 -0
- package/cjs/tools/util.js +299 -0
- package/cjs/tools/util.js.map +1 -0
- package/cjs/tooltip/BaseTooltip.d.ts +22 -0
- package/cjs/tooltip/BaseTooltip.js +35 -0
- package/cjs/tooltip/BaseTooltip.js.map +1 -0
- package/cjs/tooltip/Tooltip.d.ts +5 -0
- package/cjs/tooltip/Tooltip.js +16 -0
- package/cjs/tooltip/Tooltip.js.map +1 -0
- package/cjs/tooltip/TooltipHandler.d.ts +27 -0
- package/cjs/tooltip/TooltipHandler.js +129 -0
- package/cjs/tooltip/TooltipHandler.js.map +1 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.css +63 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.d.ts +33 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.js +152 -0
- package/cjs/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/cjs/ts-types/base-table.d.ts +313 -0
- package/cjs/ts-types/base-table.js +6 -0
- package/cjs/ts-types/base-table.js.map +1 -0
- package/cjs/ts-types/chartType.d.ts +53 -0
- package/cjs/ts-types/chartType.js +6 -0
- package/cjs/ts-types/chartType.js.map +1 -0
- package/cjs/ts-types/column/index.d.ts +2 -0
- package/cjs/ts-types/column/index.js +21 -0
- package/cjs/ts-types/column/index.js.map +1 -0
- package/cjs/ts-types/column/style.d.ts +78 -0
- package/cjs/ts-types/column/style.js +6 -0
- package/cjs/ts-types/column/style.js.map +1 -0
- package/cjs/ts-types/column/type.d.ts +2 -0
- package/cjs/ts-types/column/type.js +6 -0
- package/cjs/ts-types/column/type.js.map +1 -0
- package/cjs/ts-types/common.d.ts +72 -0
- package/cjs/ts-types/common.js +6 -0
- package/cjs/ts-types/common.js.map +1 -0
- package/cjs/ts-types/customElement.d.ts +111 -0
- package/cjs/ts-types/customElement.js +6 -0
- package/cjs/ts-types/customElement.js.map +1 -0
- package/cjs/ts-types/customLayout.d.ts +8 -0
- package/cjs/ts-types/customLayout.js +6 -0
- package/cjs/ts-types/customLayout.js.map +1 -0
- package/cjs/ts-types/events.d.ts +182 -0
- package/cjs/ts-types/events.js +6 -0
- package/cjs/ts-types/events.js.map +1 -0
- package/cjs/ts-types/icon.d.ts +86 -0
- package/cjs/ts-types/icon.js +26 -0
- package/cjs/ts-types/icon.js.map +1 -0
- package/cjs/ts-types/index.d.ts +15 -0
- package/cjs/ts-types/index.js +28 -0
- package/cjs/ts-types/index.js.map +1 -0
- package/cjs/ts-types/list-table/define/basic-define.d.ts +36 -0
- package/cjs/ts-types/list-table/define/basic-define.js +6 -0
- package/cjs/ts-types/list-table/define/basic-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/chart-define.d.ts +10 -0
- package/cjs/ts-types/list-table/define/chart-define.js +6 -0
- package/cjs/ts-types/list-table/define/chart-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/image-define.d.ts +15 -0
- package/cjs/ts-types/list-table/define/image-define.js +6 -0
- package/cjs/ts-types/list-table/define/image-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/index.d.ts +21 -0
- package/cjs/ts-types/list-table/define/index.js +6 -0
- package/cjs/ts-types/list-table/define/index.js.map +1 -0
- package/cjs/ts-types/list-table/define/link-define.d.ts +17 -0
- package/cjs/ts-types/list-table/define/link-define.js +6 -0
- package/cjs/ts-types/list-table/define/link-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.d.ts +12 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.js +6 -0
- package/cjs/ts-types/list-table/define/multilinetext-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/progressbar-define.d.ts +11 -0
- package/cjs/ts-types/list-table/define/progressbar-define.js +6 -0
- package/cjs/ts-types/list-table/define/progressbar-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/sparkline-define.d.ts +10 -0
- package/cjs/ts-types/list-table/define/sparkline-define.js +6 -0
- package/cjs/ts-types/list-table/define/sparkline-define.js.map +1 -0
- package/cjs/ts-types/list-table/index.d.ts +2 -0
- package/cjs/ts-types/list-table/index.js +21 -0
- package/cjs/ts-types/list-table/index.js.map +1 -0
- package/cjs/ts-types/list-table/layout-map/api.d.ts +92 -0
- package/cjs/ts-types/list-table/layout-map/api.js +6 -0
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -0
- package/cjs/ts-types/list-table/layout-map/index.d.ts +1 -0
- package/cjs/ts-types/list-table/layout-map/index.js +6 -0
- package/cjs/ts-types/list-table/layout-map/index.js.map +1 -0
- package/cjs/ts-types/menu.d.ts +73 -0
- package/cjs/ts-types/menu.js +6 -0
- package/cjs/ts-types/menu.js.map +1 -0
- package/cjs/ts-types/new-data-set.d.ts +95 -0
- package/cjs/ts-types/new-data-set.js +14 -0
- package/cjs/ts-types/new-data-set.js.map +1 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +6 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +13 -0
- package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
- package/cjs/ts-types/pivot-table/corner.d.ts +19 -0
- package/cjs/ts-types/pivot-table/corner.js +6 -0
- package/cjs/ts-types/pivot-table/corner.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.d.ts +25 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.d.ts +9 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/index.d.ts +4 -0
- package/cjs/ts-types/pivot-table/dimension/index.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.d.ts +10 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/index.d.ts +4 -0
- package/cjs/ts-types/pivot-table/index.js +22 -0
- package/cjs/ts-types/pivot-table/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.d.ts +26 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.d.ts +10 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +15 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/index.d.ts +10 -0
- package/cjs/ts-types/pivot-table/indicator/index.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +17 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/title.d.ts +18 -0
- package/cjs/ts-types/pivot-table/title.js +6 -0
- package/cjs/ts-types/pivot-table/title.js.map +1 -0
- package/cjs/ts-types/style-define.d.ts +60 -0
- package/cjs/ts-types/style-define.js +6 -0
- package/cjs/ts-types/style-define.js.map +1 -0
- package/cjs/ts-types/table-engine.d.ts +169 -0
- package/cjs/ts-types/table-engine.js +12 -0
- package/cjs/ts-types/table-engine.js.map +1 -0
- package/cjs/ts-types/theme.d.ts +88 -0
- package/cjs/ts-types/theme.js +6 -0
- package/cjs/ts-types/theme.js.map +1 -0
- package/cjs/ts-types/tooltip.d.ts +22 -0
- package/cjs/ts-types/tooltip.js +6 -0
- package/cjs/ts-types/tooltip.js.map +1 -0
- package/dist/vtable.js +72964 -0
- package/dist/vtable.min.js +17 -0
- package/es/ListTable.d.ts +38 -0
- package/es/ListTable.js +256 -0
- package/es/ListTable.js.map +1 -0
- package/es/PivotTable.d.ts +50 -0
- package/es/PivotTable.js +282 -0
- package/es/PivotTable.js.map +1 -0
- package/es/body-helper/body-helper.d.ts +14 -0
- package/es/body-helper/body-helper.js +80 -0
- package/es/body-helper/body-helper.js.map +1 -0
- package/es/body-helper/style/ImageStyle.d.ts +7 -0
- package/es/body-helper/style/ImageStyle.js +16 -0
- package/es/body-helper/style/ImageStyle.js.map +1 -0
- package/es/body-helper/style/MultilineTextStyle.d.ts +13 -0
- package/es/body-helper/style/MultilineTextStyle.js +30 -0
- package/es/body-helper/style/MultilineTextStyle.js.map +1 -0
- package/es/body-helper/style/NumberStyle.d.ts +7 -0
- package/es/body-helper/style/NumberStyle.js +16 -0
- package/es/body-helper/style/NumberStyle.js.map +1 -0
- package/es/body-helper/style/ProgressBarStyle.d.ts +52 -0
- package/es/body-helper/style/ProgressBarStyle.js +118 -0
- package/es/body-helper/style/ProgressBarStyle.js.map +1 -0
- package/es/body-helper/style/Style.d.ts +85 -0
- package/es/body-helper/style/Style.js +194 -0
- package/es/body-helper/style/Style.js.map +1 -0
- package/es/body-helper/style.d.ts +10 -0
- package/es/body-helper/style.js +20 -0
- package/es/body-helper/style.js.map +1 -0
- package/es/chartType.d.ts +3 -0
- package/es/chartType.js +10 -0
- package/es/chartType.js.map +1 -0
- package/es/core/BaseTable.d.ts +287 -0
- package/es/core/BaseTable.js +1281 -0
- package/es/core/BaseTable.js.map +1 -0
- package/es/core/FouseInput.d.ts +11 -0
- package/es/core/FouseInput.js +30 -0
- package/es/core/FouseInput.js.map +1 -0
- package/es/core/TABLE_EVENT_TYPE.d.ts +30 -0
- package/es/core/TABLE_EVENT_TYPE.js +30 -0
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -0
- package/es/core/tableHelper.d.ts +28 -0
- package/es/core/tableHelper.js +107 -0
- package/es/core/tableHelper.js.map +1 -0
- package/es/core.d.ts +3 -0
- package/es/core.js +6 -0
- package/es/core.js.map +1 -0
- package/es/data/CachedDataSource.d.ts +16 -0
- package/es/data/CachedDataSource.js +48 -0
- package/es/data/CachedDataSource.js.map +1 -0
- package/es/data/DataSource.d.ts +64 -0
- package/es/data/DataSource.js +267 -0
- package/es/data/DataSource.js.map +1 -0
- package/es/data/FilterDataSource.d.ts +1 -0
- package/es/data/FilterDataSource.js +1 -0
- package/es/data/FilterDataSource.js.map +1 -0
- package/es/data.d.ts +4 -0
- package/es/data.js +6 -0
- package/es/data.js.map +1 -0
- package/es/dataset/DataStatistics.d.ts +10 -0
- package/es/dataset/DataStatistics.js +74 -0
- package/es/dataset/DataStatistics.js.map +1 -0
- package/es/dataset/dataset.d.ts +72 -0
- package/es/dataset/dataset.js +482 -0
- package/es/dataset/dataset.js.map +1 -0
- package/es/dataset/flatDataToObject.d.ts +31 -0
- package/es/dataset/flatDataToObject.js +63 -0
- package/es/dataset/flatDataToObject.js.map +1 -0
- package/es/event/EventHandler.d.ts +45 -0
- package/es/event/EventHandler.js +111 -0
- package/es/event/EventHandler.js.map +1 -0
- package/es/event/EventTarget.d.ts +11 -0
- package/es/event/EventTarget.js +50 -0
- package/es/event/EventTarget.js.map +1 -0
- package/es/event/chart.d.ts +2 -0
- package/es/event/chart.js +16 -0
- package/es/event/chart.js.map +1 -0
- package/es/event/drill.d.ts +3 -0
- package/es/event/drill.js +17 -0
- package/es/event/drill.js.map +1 -0
- package/es/event/event.d.ts +35 -0
- package/es/event/event.js +438 -0
- package/es/event/event.js.map +1 -0
- package/es/event/media-click.d.ts +2 -0
- package/es/event/media-click.js +54 -0
- package/es/event/media-click.js.map +1 -0
- package/es/event/scroll.d.ts +2 -0
- package/es/event/scroll.js +17 -0
- package/es/event/scroll.js.map +1 -0
- package/es/header-helper/header-helper.d.ts +26 -0
- package/es/header-helper/header-helper.js +189 -0
- package/es/header-helper/header-helper.js.map +1 -0
- package/es/header-helper/style/ImageStyle.d.ts +7 -0
- package/es/header-helper/style/ImageStyle.js +17 -0
- package/es/header-helper/style/ImageStyle.js.map +1 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.js +30 -0
- package/es/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
- package/es/header-helper/style/SortHeaderStyle.d.ts +1 -0
- package/es/header-helper/style/SortHeaderStyle.js +3 -0
- package/es/header-helper/style/SortHeaderStyle.js.map +1 -0
- package/es/header-helper/style/Style.d.ts +88 -0
- package/es/header-helper/style/Style.js +202 -0
- package/es/header-helper/style/Style.js.map +1 -0
- package/es/header-helper/style.d.ts +5 -0
- package/es/header-helper/style.js +14 -0
- package/es/header-helper/style.js.map +1 -0
- package/es/icons.d.ts +4 -0
- package/es/icons.js +241 -0
- package/es/icons.js.map +1 -0
- package/es/index.d.ts +17 -0
- package/es/index.js +34 -0
- package/es/index.js.map +1 -0
- package/es/layout/index.d.ts +1 -0
- package/es/layout/index.js +2 -0
- package/es/layout/index.js.map +1 -0
- package/es/layout/pivot-header-layout.d.ts +155 -0
- package/es/layout/pivot-header-layout.js +888 -0
- package/es/layout/pivot-header-layout.js.map +1 -0
- package/es/layout/pivot-layout.d.ts +86 -0
- package/es/layout/pivot-layout.js +416 -0
- package/es/layout/pivot-layout.js.map +1 -0
- package/es/layout/simple-header-layout.d.ts +67 -0
- package/es/layout/simple-header-layout.js +405 -0
- package/es/layout/simple-header-layout.js.map +1 -0
- package/es/menu/dom/BaseMenu.d.ts +15 -0
- package/es/menu/dom/BaseMenu.js +22 -0
- package/es/menu/dom/BaseMenu.js.map +1 -0
- package/es/menu/dom/Menu.d.ts +9 -0
- package/es/menu/dom/Menu.js +18 -0
- package/es/menu/dom/Menu.js.map +1 -0
- package/es/menu/dom/MenuHandler.d.ts +20 -0
- package/es/menu/dom/MenuHandler.js +132 -0
- package/es/menu/dom/MenuHandler.js.map +1 -0
- package/es/menu/dom/logic/MenuContainer.d.ts +22 -0
- package/es/menu/dom/logic/MenuContainer.js +105 -0
- package/es/menu/dom/logic/MenuContainer.js.map +1 -0
- package/es/menu/dom/logic/MenuElement.css +86 -0
- package/es/menu/dom/logic/MenuElement.d.ts +27 -0
- package/es/menu/dom/logic/MenuElement.js +277 -0
- package/es/menu/dom/logic/MenuElement.js.map +1 -0
- package/es/plugins/chartTypes.d.ts +3 -0
- package/es/plugins/chartTypes.js +2 -0
- package/es/plugins/chartTypes.js.map +1 -0
- package/es/plugins/icons.d.ts +12 -0
- package/es/plugins/icons.js +22 -0
- package/es/plugins/icons.js.map +1 -0
- package/es/plugins/themes.d.ts +4 -0
- package/es/plugins/themes.js +2 -0
- package/es/plugins/themes.js.map +1 -0
- package/es/register.d.ts +5 -0
- package/es/register.js +31 -0
- package/es/register.js.map +1 -0
- package/es/render/layout/arc.d.ts +23 -0
- package/es/render/layout/arc.js +12 -0
- package/es/render/layout/arc.js.map +1 -0
- package/es/render/layout/circle.d.ts +19 -0
- package/es/render/layout/circle.js +11 -0
- package/es/render/layout/circle.js.map +1 -0
- package/es/render/layout/container.d.ts +52 -0
- package/es/render/layout/container.js +99 -0
- package/es/render/layout/container.js.map +1 -0
- package/es/render/layout/direction.d.ts +22 -0
- package/es/render/layout/direction.js +31 -0
- package/es/render/layout/direction.js.map +1 -0
- package/es/render/layout/element.d.ts +47 -0
- package/es/render/layout/element.js +19 -0
- package/es/render/layout/element.js.map +1 -0
- package/es/render/layout/group-element.d.ts +25 -0
- package/es/render/layout/group-element.js +46 -0
- package/es/render/layout/group-element.js.map +1 -0
- package/es/render/layout/icon.d.ts +21 -0
- package/es/render/layout/icon.js +19 -0
- package/es/render/layout/icon.js.map +1 -0
- package/es/render/layout/image.d.ts +21 -0
- package/es/render/layout/image.js +12 -0
- package/es/render/layout/image.js.map +1 -0
- package/es/render/layout/index.d.ts +9 -0
- package/es/render/layout/index.js +18 -0
- package/es/render/layout/index.js.map +1 -0
- package/es/render/layout/line.d.ts +32 -0
- package/es/render/layout/line.js +80 -0
- package/es/render/layout/line.js.map +1 -0
- package/es/render/layout/percent-calc.d.ts +8 -0
- package/es/render/layout/percent-calc.js +7 -0
- package/es/render/layout/percent-calc.js.map +1 -0
- package/es/render/layout/rect.d.ts +22 -0
- package/es/render/layout/rect.js +11 -0
- package/es/render/layout/rect.js.map +1 -0
- package/es/render/layout/text.d.ts +22 -0
- package/es/render/layout/text.js +18 -0
- package/es/render/layout/text.js.map +1 -0
- package/es/scenegraph/component/cell-content.d.ts +36 -0
- package/es/scenegraph/component/cell-content.js +98 -0
- package/es/scenegraph/component/cell-content.js.map +1 -0
- package/es/scenegraph/component/cell-mover.d.ts +15 -0
- package/es/scenegraph/component/cell-mover.js +101 -0
- package/es/scenegraph/component/cell-mover.js.map +1 -0
- package/es/scenegraph/component/custom.d.ts +7 -0
- package/es/scenegraph/component/custom.js +211 -0
- package/es/scenegraph/component/custom.js.map +1 -0
- package/es/scenegraph/component/drill-icon.d.ts +9 -0
- package/es/scenegraph/component/drill-icon.js +41 -0
- package/es/scenegraph/component/drill-icon.js.map +1 -0
- package/es/scenegraph/component/menu.d.ts +41 -0
- package/es/scenegraph/component/menu.js +212 -0
- package/es/scenegraph/component/menu.js.map +1 -0
- package/es/scenegraph/component/table-component.d.ts +37 -0
- package/es/scenegraph/component/table-component.js +304 -0
- package/es/scenegraph/component/table-component.js.map +1 -0
- package/es/scenegraph/component/util.d.ts +2 -0
- package/es/scenegraph/component/util.js +5 -0
- package/es/scenegraph/component/util.js.map +1 -0
- package/es/scenegraph/debug-tool/debug-tool.d.ts +36 -0
- package/es/scenegraph/debug-tool/debug-tool.js +126 -0
- package/es/scenegraph/debug-tool/debug-tool.js.map +1 -0
- package/es/scenegraph/debug-tool/index.d.ts +4 -0
- package/es/scenegraph/debug-tool/index.js +6 -0
- package/es/scenegraph/debug-tool/index.js.map +1 -0
- package/es/scenegraph/graphic/chart.d.ts +30 -0
- package/es/scenegraph/graphic/chart.js +59 -0
- package/es/scenegraph/graphic/chart.js.map +1 -0
- package/es/scenegraph/graphic/contributions/chart-render.d.ts +10 -0
- package/es/scenegraph/graphic/contributions/chart-render.js +47 -0
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.d.ts +70 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.js +192 -0
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +20 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.js +42 -0
- package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/contributions/index.d.ts +3 -0
- package/es/scenegraph/graphic/contributions/index.js +29 -0
- package/es/scenegraph/graphic/contributions/index.js.map +1 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.d.ts +17 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js +45 -0
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
- package/es/scenegraph/graphic/group.d.ts +23 -0
- package/es/scenegraph/graphic/group.js +86 -0
- package/es/scenegraph/graphic/group.js.map +1 -0
- package/es/scenegraph/graphic/icon.d.ts +24 -0
- package/es/scenegraph/graphic/icon.js +17 -0
- package/es/scenegraph/graphic/icon.js.map +1 -0
- package/es/scenegraph/graphic/text.d.ts +16 -0
- package/es/scenegraph/graphic/text.js +142 -0
- package/es/scenegraph/graphic/text.js.map +1 -0
- package/es/scenegraph/group-creater/cell-helper.d.ts +7 -0
- package/es/scenegraph/group-creater/cell-helper.js +93 -0
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.d.ts +3 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.js +54 -0
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +7 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.js +102 -0
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +9 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +337 -0
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +3 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +165 -0
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +5 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.js +66 -0
- package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.d.ts +4 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.js +86 -0
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
- package/es/scenegraph/group-creater/column-helper.d.ts +24 -0
- package/es/scenegraph/group-creater/column-helper.js +135 -0
- package/es/scenegraph/group-creater/column-helper.js.map +1 -0
- package/es/scenegraph/group-creater/column.d.ts +14 -0
- package/es/scenegraph/group-creater/column.js +49 -0
- package/es/scenegraph/group-creater/column.js.map +1 -0
- package/es/scenegraph/group-creater/progress/proxy.d.ts +45 -0
- package/es/scenegraph/group-creater/progress/proxy.js +268 -0
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -0
- package/es/scenegraph/header-icon/layout.d.ts +3 -0
- package/es/scenegraph/header-icon/layout.js +69 -0
- package/es/scenegraph/header-icon/layout.js.map +1 -0
- package/es/scenegraph/hover-state.d.ts +14 -0
- package/es/scenegraph/hover-state.js +19 -0
- package/es/scenegraph/hover-state.js.map +1 -0
- package/es/scenegraph/layout/auto-height.d.ts +2 -0
- package/es/scenegraph/layout/auto-height.js +44 -0
- package/es/scenegraph/layout/auto-height.js.map +1 -0
- package/es/scenegraph/layout/auto-width.d.ts +2 -0
- package/es/scenegraph/layout/auto-width.js +82 -0
- package/es/scenegraph/layout/auto-width.js.map +1 -0
- package/es/scenegraph/layout/compute-col-width.d.ts +3 -0
- package/es/scenegraph/layout/compute-col-width.js +167 -0
- package/es/scenegraph/layout/compute-col-width.js.map +1 -0
- package/es/scenegraph/layout/move-cell.d.ts +2 -0
- package/es/scenegraph/layout/move-cell.js +55 -0
- package/es/scenegraph/layout/move-cell.js.map +1 -0
- package/es/scenegraph/layout/update-cell.d.ts +3 -0
- package/es/scenegraph/layout/update-cell.js +55 -0
- package/es/scenegraph/layout/update-cell.js.map +1 -0
- package/es/scenegraph/layout/update-height.d.ts +6 -0
- package/es/scenegraph/layout/update-height.js +91 -0
- package/es/scenegraph/layout/update-height.js.map +1 -0
- package/es/scenegraph/layout/update-width.d.ts +2 -0
- package/es/scenegraph/layout/update-width.js +105 -0
- package/es/scenegraph/layout/update-width.js.map +1 -0
- package/es/scenegraph/scenegraph.d.ts +109 -0
- package/es/scenegraph/scenegraph.js +818 -0
- package/es/scenegraph/scenegraph.js.map +1 -0
- package/es/scenegraph/style/frame-border.d.ts +3 -0
- package/es/scenegraph/style/frame-border.js +35 -0
- package/es/scenegraph/style/frame-border.js.map +1 -0
- package/es/scenegraph/utils/border-line.d.ts +8 -0
- package/es/scenegraph/utils/border-line.js +45 -0
- package/es/scenegraph/utils/border-line.js.map +1 -0
- package/es/scenegraph/utils/break-string.d.ts +1 -0
- package/es/scenegraph/utils/break-string.js +31 -0
- package/es/scenegraph/utils/break-string.js.map +1 -0
- package/es/scenegraph/utils/cell-pos.d.ts +4 -0
- package/es/scenegraph/utils/cell-pos.js +12 -0
- package/es/scenegraph/utils/cell-pos.js.map +1 -0
- package/es/scenegraph/utils/font.d.ts +1 -0
- package/es/scenegraph/utils/font.js +6 -0
- package/es/scenegraph/utils/font.js.map +1 -0
- package/es/scenegraph/utils/get-cell-merge.d.ts +3 -0
- package/es/scenegraph/utils/get-cell-merge.js +5 -0
- package/es/scenegraph/utils/get-cell-merge.js.map +1 -0
- package/es/scenegraph/utils/get-prop.d.ts +4 -0
- package/es/scenegraph/utils/get-prop.js +36 -0
- package/es/scenegraph/utils/get-prop.js.map +1 -0
- package/es/scenegraph/utils/icon.d.ts +12 -0
- package/es/scenegraph/utils/icon.js +29 -0
- package/es/scenegraph/utils/icon.js.map +1 -0
- package/es/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
- package/es/scenegraph/utils/keep-aspect-ratio.js +10 -0
- package/es/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
- package/es/scenegraph/utils/measure-text.d.ts +20 -0
- package/es/scenegraph/utils/measure-text.js +114 -0
- package/es/scenegraph/utils/measure-text.js.map +1 -0
- package/es/scenegraph/utils/padding.d.ts +1 -0
- package/es/scenegraph/utils/padding.js +8 -0
- package/es/scenegraph/utils/padding.js.map +1 -0
- package/es/scenegraph/utils/text-icon-layout.d.ts +9 -0
- package/es/scenegraph/utils/text-icon-layout.js +239 -0
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -0
- package/es/scenegraph/utils/text-pos.d.ts +8 -0
- package/es/scenegraph/utils/text-pos.js +20 -0
- package/es/scenegraph/utils/text-pos.js.map +1 -0
- package/es/state/cell-move/adjust-header.d.ts +3 -0
- package/es/state/cell-move/adjust-header.js +14 -0
- package/es/state/cell-move/adjust-header.js.map +1 -0
- package/es/state/cell-move/index.d.ts +4 -0
- package/es/state/cell-move/index.js +52 -0
- package/es/state/cell-move/index.js.map +1 -0
- package/es/state/common/check-in-select.d.ts +8 -0
- package/es/state/common/check-in-select.js +53 -0
- package/es/state/common/check-in-select.js.map +1 -0
- package/es/state/drill/index.d.ts +2 -0
- package/es/state/drill/index.js +9 -0
- package/es/state/drill/index.js.map +1 -0
- package/es/state/hover/col.d.ts +5 -0
- package/es/state/hover/col.js +16 -0
- package/es/state/hover/col.js.map +1 -0
- package/es/state/hover/is-cell-hover.d.ts +5 -0
- package/es/state/hover/is-cell-hover.js +30 -0
- package/es/state/hover/is-cell-hover.js.map +1 -0
- package/es/state/hover/row.d.ts +5 -0
- package/es/state/hover/row.js +14 -0
- package/es/state/hover/row.js.map +1 -0
- package/es/state/hover/single.d.ts +5 -0
- package/es/state/hover/single.js +10 -0
- package/es/state/hover/single.js.map +1 -0
- package/es/state/hover/update-cell.d.ts +2 -0
- package/es/state/hover/update-cell.js +7 -0
- package/es/state/hover/update-cell.js.map +1 -0
- package/es/state/hover/update-position.d.ts +2 -0
- package/es/state/hover/update-position.js +36 -0
- package/es/state/hover/update-position.js.map +1 -0
- package/es/state/pin/index.d.ts +2 -0
- package/es/state/pin/index.js +4 -0
- package/es/state/pin/index.js.map +1 -0
- package/es/state/select/update-position.d.ts +4 -0
- package/es/state/select/update-position.js +103 -0
- package/es/state/select/update-position.js.map +1 -0
- package/es/state/sort/index.d.ts +2 -0
- package/es/state/sort/index.js +35 -0
- package/es/state/sort/index.js.map +1 -0
- package/es/state/spark-line/index.d.ts +3 -0
- package/es/state/spark-line/index.js +92 -0
- package/es/state/spark-line/index.js.map +1 -0
- package/es/state/state.d.ts +155 -0
- package/es/state/state.js +458 -0
- package/es/state/state.js.map +1 -0
- package/es/themes/ARCO.d.ts +3 -0
- package/es/themes/ARCO.js +110 -0
- package/es/themes/ARCO.js.map +1 -0
- package/es/themes/BRIGHT.d.ts +3 -0
- package/es/themes/BRIGHT.js +67 -0
- package/es/themes/BRIGHT.js.map +1 -0
- package/es/themes/DARK.d.ts +3 -0
- package/es/themes/DARK.js +86 -0
- package/es/themes/DARK.js.map +1 -0
- package/es/themes/DEFAULT.d.ts +3 -0
- package/es/themes/DEFAULT.js +85 -0
- package/es/themes/DEFAULT.js.map +1 -0
- package/es/themes/SIMPLIFY.d.ts +3 -0
- package/es/themes/SIMPLIFY.js +42 -0
- package/es/themes/SIMPLIFY.js.map +1 -0
- package/es/themes/theme.d.ts +34 -0
- package/es/themes/theme.js +505 -0
- package/es/themes/theme.js.map +1 -0
- package/es/themes.d.ts +28 -0
- package/es/themes.js +62 -0
- package/es/themes.js.map +1 -0
- package/es/tools/LimitPromiseQueue.d.ts +8 -0
- package/es/tools/LimitPromiseQueue.js +21 -0
- package/es/tools/LimitPromiseQueue.js.map +1 -0
- package/es/tools/NumberMap.d.ts +16 -0
- package/es/tools/NumberMap.js +70 -0
- package/es/tools/NumberMap.js.map +1 -0
- package/es/tools/Rect.d.ts +24 -0
- package/es/tools/Rect.js +61 -0
- package/es/tools/Rect.js.map +1 -0
- package/es/tools/calc.d.ts +5 -0
- package/es/tools/calc.js +191 -0
- package/es/tools/calc.js.map +1 -0
- package/es/tools/debounce.d.ts +1 -0
- package/es/tools/debounce.js +43 -0
- package/es/tools/debounce.js.map +1 -0
- package/es/tools/dom.d.ts +1 -0
- package/es/tools/dom.js +5 -0
- package/es/tools/dom.js.map +1 -0
- package/es/tools/env.d.ts +19 -0
- package/es/tools/env.js +42 -0
- package/es/tools/env.js.map +1 -0
- package/es/tools/global.d.ts +13 -0
- package/es/tools/global.js +26 -0
- package/es/tools/global.js.map +1 -0
- package/es/tools/helper.d.ts +60 -0
- package/es/tools/helper.js +216 -0
- package/es/tools/helper.js.map +1 -0
- package/es/tools/icons.d.ts +4 -0
- package/es/tools/icons.js +4 -0
- package/es/tools/icons.js.map +1 -0
- package/es/tools/isx.d.ts +16 -0
- package/es/tools/isx.js +79 -0
- package/es/tools/isx.js.map +1 -0
- package/es/tools/sort.d.ts +1 -0
- package/es/tools/sort.js +12 -0
- package/es/tools/sort.js.map +1 -0
- package/es/tools/style.css +60 -0
- package/es/tools/style.d.ts +2 -0
- package/es/tools/style.js +5 -0
- package/es/tools/style.js.map +1 -0
- package/es/tools/text-width.d.ts +1 -0
- package/es/tools/text-width.js +9 -0
- package/es/tools/text-width.js.map +1 -0
- package/es/tools/util.d.ts +45 -0
- package/es/tools/util.js +250 -0
- package/es/tools/util.js.map +1 -0
- package/es/tooltip/BaseTooltip.d.ts +22 -0
- package/es/tooltip/BaseTooltip.js +27 -0
- package/es/tooltip/BaseTooltip.js.map +1 -0
- package/es/tooltip/Tooltip.d.ts +5 -0
- package/es/tooltip/Tooltip.js +10 -0
- package/es/tooltip/Tooltip.js.map +1 -0
- package/es/tooltip/TooltipHandler.d.ts +27 -0
- package/es/tooltip/TooltipHandler.js +131 -0
- package/es/tooltip/TooltipHandler.js.map +1 -0
- package/es/tooltip/logic/BubbleTooltipElement.css +63 -0
- package/es/tooltip/logic/BubbleTooltipElement.d.ts +33 -0
- package/es/tooltip/logic/BubbleTooltipElement.js +149 -0
- package/es/tooltip/logic/BubbleTooltipElement.js.map +1 -0
- package/es/ts-types/base-table.d.ts +313 -0
- package/es/ts-types/base-table.js +2 -0
- package/es/ts-types/base-table.js.map +1 -0
- package/es/ts-types/chartType.d.ts +53 -0
- package/es/ts-types/chartType.js +2 -0
- package/es/ts-types/chartType.js.map +1 -0
- package/es/ts-types/column/index.d.ts +2 -0
- package/es/ts-types/column/index.js +4 -0
- package/es/ts-types/column/index.js.map +1 -0
- package/es/ts-types/column/style.d.ts +78 -0
- package/es/ts-types/column/style.js +2 -0
- package/es/ts-types/column/style.js.map +1 -0
- package/es/ts-types/column/type.d.ts +2 -0
- package/es/ts-types/column/type.js +2 -0
- package/es/ts-types/column/type.js.map +1 -0
- package/es/ts-types/common.d.ts +72 -0
- package/es/ts-types/common.js +2 -0
- package/es/ts-types/common.js.map +1 -0
- package/es/ts-types/customElement.d.ts +111 -0
- package/es/ts-types/customElement.js +2 -0
- package/es/ts-types/customElement.js.map +1 -0
- package/es/ts-types/customLayout.d.ts +8 -0
- package/es/ts-types/customLayout.js +2 -0
- package/es/ts-types/customLayout.js.map +1 -0
- package/es/ts-types/events.d.ts +182 -0
- package/es/ts-types/events.js +2 -0
- package/es/ts-types/events.js.map +1 -0
- package/es/ts-types/icon.d.ts +86 -0
- package/es/ts-types/icon.js +28 -0
- package/es/ts-types/icon.js.map +1 -0
- package/es/ts-types/index.d.ts +15 -0
- package/es/ts-types/index.js +30 -0
- package/es/ts-types/index.js.map +1 -0
- package/es/ts-types/list-table/define/basic-define.d.ts +36 -0
- package/es/ts-types/list-table/define/basic-define.js +2 -0
- package/es/ts-types/list-table/define/basic-define.js.map +1 -0
- package/es/ts-types/list-table/define/chart-define.d.ts +10 -0
- package/es/ts-types/list-table/define/chart-define.js +2 -0
- package/es/ts-types/list-table/define/chart-define.js.map +1 -0
- package/es/ts-types/list-table/define/image-define.d.ts +15 -0
- package/es/ts-types/list-table/define/image-define.js +2 -0
- package/es/ts-types/list-table/define/image-define.js.map +1 -0
- package/es/ts-types/list-table/define/index.d.ts +21 -0
- package/es/ts-types/list-table/define/index.js +2 -0
- package/es/ts-types/list-table/define/index.js.map +1 -0
- package/es/ts-types/list-table/define/link-define.d.ts +17 -0
- package/es/ts-types/list-table/define/link-define.js +2 -0
- package/es/ts-types/list-table/define/link-define.js.map +1 -0
- package/es/ts-types/list-table/define/multilinetext-define.d.ts +12 -0
- package/es/ts-types/list-table/define/multilinetext-define.js +2 -0
- package/es/ts-types/list-table/define/multilinetext-define.js.map +1 -0
- package/es/ts-types/list-table/define/progressbar-define.d.ts +11 -0
- package/es/ts-types/list-table/define/progressbar-define.js +2 -0
- package/es/ts-types/list-table/define/progressbar-define.js.map +1 -0
- package/es/ts-types/list-table/define/sparkline-define.d.ts +10 -0
- package/es/ts-types/list-table/define/sparkline-define.js +2 -0
- package/es/ts-types/list-table/define/sparkline-define.js.map +1 -0
- package/es/ts-types/list-table/index.d.ts +2 -0
- package/es/ts-types/list-table/index.js +4 -0
- package/es/ts-types/list-table/index.js.map +1 -0
- package/es/ts-types/list-table/layout-map/api.d.ts +92 -0
- package/es/ts-types/list-table/layout-map/api.js +2 -0
- package/es/ts-types/list-table/layout-map/api.js.map +1 -0
- package/es/ts-types/list-table/layout-map/index.d.ts +1 -0
- package/es/ts-types/list-table/layout-map/index.js +2 -0
- package/es/ts-types/list-table/layout-map/index.js.map +1 -0
- package/es/ts-types/menu.d.ts +73 -0
- package/es/ts-types/menu.js +2 -0
- package/es/ts-types/menu.js.map +1 -0
- package/es/ts-types/new-data-set.d.ts +95 -0
- package/es/ts-types/new-data-set.js +13 -0
- package/es/ts-types/new-data-set.js.map +1 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +6 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +9 -0
- package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
- package/es/ts-types/pivot-table/corner.d.ts +19 -0
- package/es/ts-types/pivot-table/corner.js +2 -0
- package/es/ts-types/pivot-table/corner.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.d.ts +25 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.d.ts +9 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/index.d.ts +4 -0
- package/es/ts-types/pivot-table/dimension/index.js +2 -0
- package/es/ts-types/pivot-table/dimension/index.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.d.ts +10 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/index.d.ts +4 -0
- package/es/ts-types/pivot-table/index.js +8 -0
- package/es/ts-types/pivot-table/index.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.d.ts +26 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.d.ts +10 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +15 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/index.d.ts +10 -0
- package/es/ts-types/pivot-table/indicator/index.js +2 -0
- package/es/ts-types/pivot-table/indicator/index.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +17 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/title.d.ts +18 -0
- package/es/ts-types/pivot-table/title.js +2 -0
- package/es/ts-types/pivot-table/title.js.map +1 -0
- package/es/ts-types/style-define.d.ts +60 -0
- package/es/ts-types/style-define.js +2 -0
- package/es/ts-types/style-define.js.map +1 -0
- package/es/ts-types/table-engine.d.ts +169 -0
- package/es/ts-types/table-engine.js +12 -0
- package/es/ts-types/table-engine.js.map +1 -0
- package/es/ts-types/theme.d.ts +88 -0
- package/es/ts-types/theme.js +2 -0
- package/es/ts-types/theme.js.map +1 -0
- package/es/ts-types/tooltip.d.ts +22 -0
- package/es/ts-types/tooltip.js +2 -0
- package/es/ts-types/tooltip.js.map +1 -0
- package/package.json +95 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.NumberStyle = void 0;
|
|
6
|
+
|
|
7
|
+
const Style_1 = require("./Style");
|
|
8
|
+
|
|
9
|
+
let defaultStyle;
|
|
10
|
+
|
|
11
|
+
class NumberStyle extends Style_1.Style {
|
|
12
|
+
static get DEFAULT() {
|
|
13
|
+
return defaultStyle || (defaultStyle = new NumberStyle);
|
|
14
|
+
}
|
|
15
|
+
constructor(style = {}, bodyStyle = {}) {
|
|
16
|
+
super(style, bodyStyle);
|
|
17
|
+
}
|
|
18
|
+
clone() {
|
|
19
|
+
return new NumberStyle(this, null);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.NumberStyle = NumberStyle;
|
|
24
|
+
//# sourceMappingURL=NumberStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["body-helper/style/NumberStyle.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAIhC,IAAI,YAAyB,CAAC;AAC9B,MAAa,WAAY,SAAQ,aAAK;IACpC,MAAM,KAAK,OAAO;QAChB,OAAO,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,IAAI,WAAW,EAAE,CAAC,CAAC;IAC1E,CAAC;IACD,YAAY,QAAsB,EAAE,EAAE,YAA0B,EAAE;QAChE,KAAK,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC1B,CAAC;IACD,KAAK;QACH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;CACF;AAVD,kCAUC","file":"NumberStyle.js","sourcesContent":["import { Style } from './Style';\nimport { defaults } from '../../tools/helper';\nimport type { IStyleOption } from '../../ts-types';\n\nlet defaultStyle: NumberStyle;\nexport class NumberStyle extends Style {\n static get DEFAULT(): NumberStyle {\n return defaultStyle ? defaultStyle : (defaultStyle = new NumberStyle());\n }\n constructor(style: IStyleOption = {}, bodyStyle: IStyleOption = {}) {\n super(style, bodyStyle);\n }\n clone(): NumberStyle {\n return new NumberStyle(this, null);\n }\n}\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ColorPropertyDefine, IStyleOption, ProgressBarStyleOption, StylePropertyFunctionArg } from '../../ts-types';
|
|
2
|
+
import { Style } from './Style';
|
|
3
|
+
export declare class ProgressBarStyle extends Style {
|
|
4
|
+
private _showBar;
|
|
5
|
+
private _barColor;
|
|
6
|
+
private _barBgColor;
|
|
7
|
+
private _barPositiveColor;
|
|
8
|
+
private _barNegativeColor;
|
|
9
|
+
private _barAxisColor;
|
|
10
|
+
private _barHeight;
|
|
11
|
+
private _barBottom;
|
|
12
|
+
private _barPadding;
|
|
13
|
+
private _showBarMark;
|
|
14
|
+
private _barMarkPositiveColor;
|
|
15
|
+
private _barMarkNegativeColor;
|
|
16
|
+
private _barMarkWidth;
|
|
17
|
+
private _barMarkPosition;
|
|
18
|
+
private _barRightToLeft;
|
|
19
|
+
static get DEFAULT(): ProgressBarStyle;
|
|
20
|
+
constructor(style?: ProgressBarStyleOption, bodyStyle?: IStyleOption);
|
|
21
|
+
get showBar(): boolean | ((args: StylePropertyFunctionArg) => boolean);
|
|
22
|
+
set showBar(value: boolean | ((args: StylePropertyFunctionArg) => boolean));
|
|
23
|
+
get barColor(): ColorPropertyDefine;
|
|
24
|
+
set barColor(barColor: ColorPropertyDefine);
|
|
25
|
+
get barBgColor(): ColorPropertyDefine;
|
|
26
|
+
set barBgColor(barBgColor: ColorPropertyDefine);
|
|
27
|
+
get barHeight(): number | string;
|
|
28
|
+
set barHeight(barHeight: number | string);
|
|
29
|
+
get barBottom(): number | string;
|
|
30
|
+
set barBottom(barBottom: number | string);
|
|
31
|
+
get barPositiveColor(): ColorPropertyDefine;
|
|
32
|
+
set barPositiveColor(barPositiveColor: ColorPropertyDefine);
|
|
33
|
+
get barNegativeColor(): ColorPropertyDefine;
|
|
34
|
+
set barNegativeColor(barNegativeColor: ColorPropertyDefine);
|
|
35
|
+
get barAxisColor(): ColorPropertyDefine;
|
|
36
|
+
set barAxisColor(barAxisColor: ColorPropertyDefine);
|
|
37
|
+
get barPadding(): (number | string)[];
|
|
38
|
+
set barPadding(barPadding: (number | string)[]);
|
|
39
|
+
get showBarMark(): boolean;
|
|
40
|
+
set showBarMark(value: boolean);
|
|
41
|
+
get barMarkPositiveColor(): ColorPropertyDefine;
|
|
42
|
+
set barMarkPositiveColor(value: ColorPropertyDefine);
|
|
43
|
+
get barMarkNegativeColor(): ColorPropertyDefine;
|
|
44
|
+
set barMarkNegativeColor(value: ColorPropertyDefine);
|
|
45
|
+
get barMarkWidth(): number;
|
|
46
|
+
set barMarkWidth(value: number);
|
|
47
|
+
get barMarkPosition(): 'right' | 'bottom';
|
|
48
|
+
set barMarkPosition(value: 'right' | 'bottom');
|
|
49
|
+
get barRightToLeft(): boolean;
|
|
50
|
+
set barRightToLeft(value: boolean);
|
|
51
|
+
clone(): ProgressBarStyle;
|
|
52
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.ProgressBarStyle = void 0;
|
|
6
|
+
|
|
7
|
+
const Style_1 = require("./Style");
|
|
8
|
+
|
|
9
|
+
let defaultStyle;
|
|
10
|
+
|
|
11
|
+
const DEFAULT_BAR_COLOR = args => {
|
|
12
|
+
const num = args.value;
|
|
13
|
+
return Number(num) > 80 ? "#20a8d8" : Number(num) > 50 ? "#4dbd74" : Number(num) > 20 ? "#ffc107" : "#f86c6b";
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
class ProgressBarStyle extends Style_1.Style {
|
|
17
|
+
static get DEFAULT() {
|
|
18
|
+
return defaultStyle || (defaultStyle = new ProgressBarStyle);
|
|
19
|
+
}
|
|
20
|
+
constructor(style = {}, bodyStyle = {}) {
|
|
21
|
+
super(style, bodyStyle), this._showBar = style.showBar || !0, this._barColor = style.barColor || DEFAULT_BAR_COLOR,
|
|
22
|
+
this._barPositiveColor = style.barPositiveColor || "#4dbd74", this._barNegativeColor = style.barNegativeColor || "#f86c6b",
|
|
23
|
+
this._barAxisColor = style.barAxisColor || "black", this._barBgColor = style.barBgColor,
|
|
24
|
+
this._barHeight = style.barHeight || 3, this._barHeight = style.barHeight || 3,
|
|
25
|
+
this._barBottom = style.barBottom || 0, this._barPadding = style.barPadding || [ 1, 1, 1, 1 ],
|
|
26
|
+
this._showBarMark = style.showBarMark || !1, this._barMarkPositiveColor = style.barMarkPositiveColor || "#4dbd74",
|
|
27
|
+
this._barMarkNegativeColor = style.barMarkNegativeColor || "#f86c6b", this._barMarkWidth = style.barMarkWidth || 2,
|
|
28
|
+
this._barMarkPosition = style.barMarkPosition || "right", this._barRightToLeft = style.barRightToLeft || !1;
|
|
29
|
+
}
|
|
30
|
+
get showBar() {
|
|
31
|
+
return this._showBar;
|
|
32
|
+
}
|
|
33
|
+
set showBar(value) {
|
|
34
|
+
this._showBar = value, this.doChangeStyle();
|
|
35
|
+
}
|
|
36
|
+
get barColor() {
|
|
37
|
+
return this._barColor;
|
|
38
|
+
}
|
|
39
|
+
set barColor(barColor) {
|
|
40
|
+
this._barColor = barColor, this.doChangeStyle();
|
|
41
|
+
}
|
|
42
|
+
get barBgColor() {
|
|
43
|
+
return this._barBgColor;
|
|
44
|
+
}
|
|
45
|
+
set barBgColor(barBgColor) {
|
|
46
|
+
this._barBgColor = barBgColor, this.doChangeStyle();
|
|
47
|
+
}
|
|
48
|
+
get barHeight() {
|
|
49
|
+
return this._barHeight;
|
|
50
|
+
}
|
|
51
|
+
set barHeight(barHeight) {
|
|
52
|
+
this._barHeight = barHeight, this.doChangeStyle();
|
|
53
|
+
}
|
|
54
|
+
get barBottom() {
|
|
55
|
+
return this._barBottom;
|
|
56
|
+
}
|
|
57
|
+
set barBottom(barBottom) {
|
|
58
|
+
this._barBottom = barBottom, this.doChangeStyle();
|
|
59
|
+
}
|
|
60
|
+
get barPositiveColor() {
|
|
61
|
+
return this._barPositiveColor;
|
|
62
|
+
}
|
|
63
|
+
set barPositiveColor(barPositiveColor) {
|
|
64
|
+
this._barPositiveColor = barPositiveColor, this.doChangeStyle();
|
|
65
|
+
}
|
|
66
|
+
get barNegativeColor() {
|
|
67
|
+
return this._barNegativeColor;
|
|
68
|
+
}
|
|
69
|
+
set barNegativeColor(barNegativeColor) {
|
|
70
|
+
this._barNegativeColor = barNegativeColor, this.doChangeStyle();
|
|
71
|
+
}
|
|
72
|
+
get barAxisColor() {
|
|
73
|
+
return this._barAxisColor;
|
|
74
|
+
}
|
|
75
|
+
set barAxisColor(barAxisColor) {
|
|
76
|
+
this._barAxisColor = barAxisColor, this.doChangeStyle();
|
|
77
|
+
}
|
|
78
|
+
get barPadding() {
|
|
79
|
+
return this._barPadding;
|
|
80
|
+
}
|
|
81
|
+
set barPadding(barPadding) {
|
|
82
|
+
this._barPadding = barPadding, this.doChangeStyle();
|
|
83
|
+
}
|
|
84
|
+
get showBarMark() {
|
|
85
|
+
return this._showBarMark;
|
|
86
|
+
}
|
|
87
|
+
set showBarMark(value) {
|
|
88
|
+
this._showBarMark = value, this.doChangeStyle();
|
|
89
|
+
}
|
|
90
|
+
get barMarkPositiveColor() {
|
|
91
|
+
return this._barMarkPositiveColor;
|
|
92
|
+
}
|
|
93
|
+
set barMarkPositiveColor(value) {
|
|
94
|
+
this._barMarkPositiveColor = value, this.doChangeStyle();
|
|
95
|
+
}
|
|
96
|
+
get barMarkNegativeColor() {
|
|
97
|
+
return this._barMarkNegativeColor;
|
|
98
|
+
}
|
|
99
|
+
set barMarkNegativeColor(value) {
|
|
100
|
+
this._barMarkNegativeColor = value, this.doChangeStyle();
|
|
101
|
+
}
|
|
102
|
+
get barMarkWidth() {
|
|
103
|
+
return this._barMarkWidth;
|
|
104
|
+
}
|
|
105
|
+
set barMarkWidth(value) {
|
|
106
|
+
this._barMarkWidth = value, this.doChangeStyle();
|
|
107
|
+
}
|
|
108
|
+
get barMarkPosition() {
|
|
109
|
+
return this._barMarkPosition;
|
|
110
|
+
}
|
|
111
|
+
set barMarkPosition(value) {
|
|
112
|
+
this._barMarkPosition = value, this.doChangeStyle();
|
|
113
|
+
}
|
|
114
|
+
get barRightToLeft() {
|
|
115
|
+
return this._barRightToLeft;
|
|
116
|
+
}
|
|
117
|
+
set barRightToLeft(value) {
|
|
118
|
+
this._barRightToLeft = value, this.doChangeStyle();
|
|
119
|
+
}
|
|
120
|
+
clone() {
|
|
121
|
+
return new ProgressBarStyle(this, null);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
exports.ProgressBarStyle = ProgressBarStyle;
|
|
126
|
+
//# sourceMappingURL=ProgressBarStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["body-helper/style/ProgressBarStyle.ts"],"names":[],"mappings":";;;AAMA,mCAAgC;AAChC,IAAI,YAA8B,CAAC;AACnC,MAAM,iBAAiB,GAAG,CAAC,IAA8B,EAAU,EAAE;IACnE,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,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AAC,KAA0B;QACjD,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACnC,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IACD,IAAI,oBAAoB;QACtB,OAAO,IAAI,CAAC,qBAAqB,CAAC;IACpC,CAAC;IACD,IAAI,oBAAoB,CAAC,KAA0B;QACjD,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACnC,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IACD,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IACD,IAAI,YAAY,CAAC,KAAa;QAC5B,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IACD,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IACD,IAAI,eAAe,CAAC,KAAyB;QAC3C,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;QAC9B,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IACD,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IACD,IAAI,cAAc,CAAC,KAAc;QAC/B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QAC7B,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IACD,KAAK;QACH,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1C,CAAC;CACF;AAnJD,4CAmJC","file":"ProgressBarStyle.js","sourcesContent":["import type {\n ColorPropertyDefine,\n IStyleOption,\n ProgressBarStyleOption,\n StylePropertyFunctionArg\n} from '../../ts-types';\nimport { Style } from './Style';\nlet defaultStyle: ProgressBarStyle;\nconst DEFAULT_BAR_COLOR = (args: StylePropertyFunctionArg): string => {\n const num = args.value;\n if (Number(num) > 80) {\n return '#20a8d8';\n }\n if (Number(num) > 50) {\n return '#4dbd74';\n }\n if (Number(num) > 20) {\n return '#ffc107';\n }\n return '#f86c6b';\n};\nexport class ProgressBarStyle extends Style {\n private _showBar: boolean | ((args: StylePropertyFunctionArg) => boolean);\n private _barColor: ColorPropertyDefine;\n private _barBgColor: ColorPropertyDefine;\n private _barPositiveColor: ColorPropertyDefine;\n private _barNegativeColor: ColorPropertyDefine;\n private _barAxisColor: ColorPropertyDefine;\n private _barHeight: number | string;\n private _barBottom: number | string;\n private _barPadding: (number | string)[];\n private _showBarMark: boolean;\n private _barMarkPositiveColor: ColorPropertyDefine;\n private _barMarkNegativeColor: ColorPropertyDefine;\n private _barMarkWidth: number;\n private _barMarkPosition: 'right' | 'bottom';\n private _barRightToLeft: boolean;\n\n static get DEFAULT(): ProgressBarStyle {\n return defaultStyle ? defaultStyle : (defaultStyle = new ProgressBarStyle());\n }\n constructor(style: ProgressBarStyleOption = {}, bodyStyle: IStyleOption = {}) {\n super(style, bodyStyle);\n this._showBar = style.showBar || true;\n this._barColor = style.barColor || DEFAULT_BAR_COLOR;\n this._barPositiveColor = style.barPositiveColor || '#4dbd74';\n this._barNegativeColor = style.barNegativeColor || '#f86c6b';\n this._barAxisColor = style.barAxisColor || 'black';\n this._barBgColor = style.barBgColor;\n this._barHeight = style.barHeight || 3;\n this._barHeight = style.barHeight || 3;\n this._barBottom = style.barBottom || 0;\n this._barPadding = style.barPadding || [1, 1, 1, 1];\n this._showBarMark = style.showBarMark || false;\n this._barMarkPositiveColor = style.barMarkPositiveColor || '#4dbd74';\n this._barMarkNegativeColor = style.barMarkNegativeColor || '#f86c6b';\n this._barMarkWidth = style.barMarkWidth || 2;\n this._barMarkPosition = style.barMarkPosition || 'right';\n this._barRightToLeft = style.barRightToLeft || false;\n }\n get showBar(): boolean | ((args: StylePropertyFunctionArg) => boolean) {\n return this._showBar;\n }\n set showBar(value: boolean | ((args: StylePropertyFunctionArg) => boolean)) {\n this._showBar = value;\n this.doChangeStyle();\n }\n get barColor(): ColorPropertyDefine {\n return this._barColor;\n }\n set barColor(barColor: ColorPropertyDefine) {\n this._barColor = barColor;\n this.doChangeStyle();\n }\n get barBgColor(): ColorPropertyDefine {\n return this._barBgColor;\n }\n set barBgColor(barBgColor: ColorPropertyDefine) {\n this._barBgColor = barBgColor;\n this.doChangeStyle();\n }\n get barHeight(): number | string {\n return this._barHeight;\n }\n set barHeight(barHeight: number | string) {\n this._barHeight = barHeight;\n this.doChangeStyle();\n }\n get barBottom(): number | string {\n return this._barBottom;\n }\n set barBottom(barBottom: number | string) {\n this._barBottom = barBottom;\n this.doChangeStyle();\n }\n get barPositiveColor(): ColorPropertyDefine {\n return this._barPositiveColor;\n }\n set barPositiveColor(barPositiveColor: ColorPropertyDefine) {\n this._barPositiveColor = barPositiveColor;\n this.doChangeStyle();\n }\n get barNegativeColor(): ColorPropertyDefine {\n return this._barNegativeColor;\n }\n set barNegativeColor(barNegativeColor: ColorPropertyDefine) {\n this._barNegativeColor = barNegativeColor;\n this.doChangeStyle();\n }\n get barAxisColor(): ColorPropertyDefine {\n return this._barAxisColor;\n }\n set barAxisColor(barAxisColor: ColorPropertyDefine) {\n this._barAxisColor = barAxisColor;\n this.doChangeStyle();\n }\n get barPadding(): (number | string)[] {\n return this._barPadding;\n }\n set barPadding(barPadding: (number | string)[]) {\n this._barPadding = barPadding;\n this.doChangeStyle();\n }\n get showBarMark(): boolean {\n return this._showBarMark;\n }\n set showBarMark(value: boolean) {\n this._showBarMark = value;\n this.doChangeStyle();\n }\n get barMarkPositiveColor(): ColorPropertyDefine {\n return this._barMarkPositiveColor;\n }\n set barMarkPositiveColor(value: ColorPropertyDefine) {\n this._barMarkPositiveColor = value;\n this.doChangeStyle();\n }\n get barMarkNegativeColor(): ColorPropertyDefine {\n return this._barMarkNegativeColor;\n }\n set barMarkNegativeColor(value: ColorPropertyDefine) {\n this._barMarkNegativeColor = value;\n this.doChangeStyle();\n }\n get barMarkWidth(): number {\n return this._barMarkWidth;\n }\n set barMarkWidth(value: number) {\n this._barMarkWidth = value;\n this.doChangeStyle();\n }\n get barMarkPosition(): 'right' | 'bottom' {\n return this._barMarkPosition;\n }\n set barMarkPosition(value: 'right' | 'bottom') {\n this._barMarkPosition = value;\n this.doChangeStyle();\n }\n get barRightToLeft(): boolean {\n return this._barRightToLeft;\n }\n set barRightToLeft(value: boolean) {\n this._barRightToLeft = value;\n this.doChangeStyle();\n }\n clone(): ProgressBarStyle {\n return new ProgressBarStyle(this, null);\n }\n}\n"]}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { ColorPropertyDefine, ColumnStyle, IStyleOption, TextOverflow, UnderlinePropertyDefine, LineThroughPropertyDefine, LineDashPropertyDefine, ColorsPropertyDefine, PaddingsPropertyDefine, CursorPropertyDefine, LineWidthsPropertyDefine, LineDashsPropertyDefine, MarkedPropertyDefine, FontSizePropertyDefine, FontFamilyPropertyDefine, FontWeightPropertyDefine, FontVariantPropertyDefine, FontStylePropertyDefine } from '../../ts-types';
|
|
2
|
+
import { EventTarget } from '../../event/EventTarget';
|
|
3
|
+
import type { TextAlignType, TextBaselineType } from '@visactor/vrender';
|
|
4
|
+
export declare class Style extends EventTarget implements ColumnStyle {
|
|
5
|
+
private _color?;
|
|
6
|
+
private _fontSize?;
|
|
7
|
+
private _fontFamily?;
|
|
8
|
+
private _fontWeight?;
|
|
9
|
+
private _fontVariant?;
|
|
10
|
+
private _fontStyle?;
|
|
11
|
+
private _padding?;
|
|
12
|
+
private _defaultPadding;
|
|
13
|
+
private _textOverflow?;
|
|
14
|
+
private _textAlign?;
|
|
15
|
+
private _textBaseline?;
|
|
16
|
+
private _bgColor?;
|
|
17
|
+
private _borderColor?;
|
|
18
|
+
private _lineHeight?;
|
|
19
|
+
private _underline?;
|
|
20
|
+
private _underlineColor?;
|
|
21
|
+
private _underlineDash?;
|
|
22
|
+
private _lineThrough?;
|
|
23
|
+
private _lineThroughColor?;
|
|
24
|
+
private _lineThroughDash?;
|
|
25
|
+
private _linkColor?;
|
|
26
|
+
private _cursor?;
|
|
27
|
+
private _borderLineWidth?;
|
|
28
|
+
private _borderLineDash?;
|
|
29
|
+
private _marked?;
|
|
30
|
+
static get EVENT_TYPE(): {
|
|
31
|
+
CHANGE_STYLE: 'change_style';
|
|
32
|
+
};
|
|
33
|
+
static get DEFAULT(): Style;
|
|
34
|
+
constructor(style?: IStyleOption, bodyStyle?: IStyleOption);
|
|
35
|
+
get color(): ColorPropertyDefine | undefined;
|
|
36
|
+
set color(color: ColorPropertyDefine | undefined);
|
|
37
|
+
get fontSize(): FontSizePropertyDefine | undefined;
|
|
38
|
+
set fontSize(fontSize: FontSizePropertyDefine | undefined);
|
|
39
|
+
get fontFamily(): FontFamilyPropertyDefine | undefined;
|
|
40
|
+
set fontFamily(fontFamily: FontFamilyPropertyDefine | undefined);
|
|
41
|
+
get fontWeight(): FontWeightPropertyDefine | undefined;
|
|
42
|
+
set fontWeight(fontWeight: FontWeightPropertyDefine | undefined);
|
|
43
|
+
get fontVariant(): FontVariantPropertyDefine | undefined;
|
|
44
|
+
set fontVariant(fontVariant: FontVariantPropertyDefine | undefined);
|
|
45
|
+
get fontStyle(): FontStylePropertyDefine | undefined;
|
|
46
|
+
set fontStyle(fontStyle: FontStylePropertyDefine | undefined);
|
|
47
|
+
get padding(): PaddingsPropertyDefine | undefined;
|
|
48
|
+
set padding(padding: PaddingsPropertyDefine | undefined);
|
|
49
|
+
get textOverflow(): TextOverflow | undefined;
|
|
50
|
+
set textOverflow(textOverflow: TextOverflow | undefined);
|
|
51
|
+
get bgColor(): ColorPropertyDefine | undefined;
|
|
52
|
+
set bgColor(bgColor: ColorPropertyDefine | undefined);
|
|
53
|
+
get borderColor(): ColorsPropertyDefine | undefined;
|
|
54
|
+
set borderColor(borderColor: ColorsPropertyDefine | undefined);
|
|
55
|
+
get textAlign(): TextAlignType | undefined;
|
|
56
|
+
set textAlign(textAlign: TextAlignType | undefined);
|
|
57
|
+
get textBaseline(): TextBaselineType | undefined;
|
|
58
|
+
set textBaseline(textBaseline: TextBaselineType | undefined);
|
|
59
|
+
get lineHeight(): number | undefined;
|
|
60
|
+
set lineHeight(lineHeight: number | undefined);
|
|
61
|
+
get underline(): UnderlinePropertyDefine | undefined;
|
|
62
|
+
set underline(underline: UnderlinePropertyDefine | undefined);
|
|
63
|
+
get underlineColor(): ColorPropertyDefine | undefined;
|
|
64
|
+
set underlineColor(underlineColor: ColorPropertyDefine | undefined);
|
|
65
|
+
get underlineDash(): LineDashPropertyDefine | undefined;
|
|
66
|
+
set underlineDash(underlineDash: LineDashPropertyDefine | undefined);
|
|
67
|
+
get lineThrough(): LineThroughPropertyDefine | undefined;
|
|
68
|
+
set lineThrough(lineThrough: LineThroughPropertyDefine | undefined);
|
|
69
|
+
get lineThroughColor(): ColorPropertyDefine | undefined;
|
|
70
|
+
set lineThroughColor(lineThroughColor: ColorPropertyDefine | undefined);
|
|
71
|
+
get lineThroughDash(): LineDashPropertyDefine | undefined;
|
|
72
|
+
set lineThroughDash(lineThroughDash: LineDashPropertyDefine | undefined);
|
|
73
|
+
get linkColor(): ColorPropertyDefine | undefined;
|
|
74
|
+
set linkColor(linkColor: ColorPropertyDefine | undefined);
|
|
75
|
+
get cursor(): CursorPropertyDefine | undefined;
|
|
76
|
+
set cursor(cursor: CursorPropertyDefine | undefined);
|
|
77
|
+
get borderLineWidth(): LineWidthsPropertyDefine | undefined;
|
|
78
|
+
set borderLineWidth(borderLineWidth: LineWidthsPropertyDefine | undefined);
|
|
79
|
+
get borderLineDash(): LineDashsPropertyDefine | undefined;
|
|
80
|
+
set borderLineDash(borderLineDash: LineDashsPropertyDefine | undefined);
|
|
81
|
+
get marked(): MarkedPropertyDefine | undefined;
|
|
82
|
+
set marked(marked: MarkedPropertyDefine | undefined);
|
|
83
|
+
doChangeStyle(): void;
|
|
84
|
+
clone(): Style;
|
|
85
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
let defaultStyle;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
}), exports.Style = void 0;
|
|
8
|
+
|
|
9
|
+
const EventTarget_1 = require("../../event/EventTarget"), STYLE_EVENT_TYPE = {
|
|
10
|
+
CHANGE_STYLE: "change_style"
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
class Style extends EventTarget_1.EventTarget {
|
|
14
|
+
static get EVENT_TYPE() {
|
|
15
|
+
return STYLE_EVENT_TYPE;
|
|
16
|
+
}
|
|
17
|
+
static get DEFAULT() {
|
|
18
|
+
return defaultStyle || (defaultStyle = new Style);
|
|
19
|
+
}
|
|
20
|
+
constructor(style = {}, bodyStyle = {}) {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
22
|
+
super(), this._defaultPadding = [ 10, 16, 10, 16 ], this._textAlign = null !== (_a = null == style ? void 0 : style.textAlign) && void 0 !== _a ? _a : null == bodyStyle ? void 0 : bodyStyle.textAlign,
|
|
23
|
+
this._textBaseline = null !== (_b = null == style ? void 0 : style.textBaseline) && void 0 !== _b ? _b : null == bodyStyle ? void 0 : bodyStyle.textBaseline,
|
|
24
|
+
this._color = null !== (_c = null == style ? void 0 : style.color) && void 0 !== _c ? _c : null == bodyStyle ? void 0 : bodyStyle.color,
|
|
25
|
+
this._fontSize = null !== (_d = style.fontSize) && void 0 !== _d ? _d : null == bodyStyle ? void 0 : bodyStyle.fontSize,
|
|
26
|
+
this._fontFamily = null !== (_e = style.fontFamily) && void 0 !== _e ? _e : null == bodyStyle ? void 0 : bodyStyle.fontFamily,
|
|
27
|
+
this._fontWeight = null !== (_f = style.fontWeight) && void 0 !== _f ? _f : null == bodyStyle ? void 0 : bodyStyle.fontWeight,
|
|
28
|
+
this._fontVariant = null !== (_g = style.fontVariant) && void 0 !== _g ? _g : null == bodyStyle ? void 0 : bodyStyle.fontVariant,
|
|
29
|
+
this._fontStyle = null !== (_h = style.fontStyle) && void 0 !== _h ? _h : null == bodyStyle ? void 0 : bodyStyle.fontStyle,
|
|
30
|
+
this._padding = null !== (_k = null !== (_j = null == style ? void 0 : style.padding) && void 0 !== _j ? _j : null == bodyStyle ? void 0 : bodyStyle.padding) && void 0 !== _k ? _k : this._defaultPadding,
|
|
31
|
+
this._borderColor = null !== (_l = null == style ? void 0 : style.borderColor) && void 0 !== _l ? _l : null == bodyStyle ? void 0 : bodyStyle.borderColor,
|
|
32
|
+
this._textOverflow = null !== (_m = null == style ? void 0 : style.textOverflow) && void 0 !== _m ? _m : null == bodyStyle ? void 0 : bodyStyle.textOverflow,
|
|
33
|
+
this._bgColor = null !== (_o = null == style ? void 0 : style.bgColor) && void 0 !== _o ? _o : null == bodyStyle ? void 0 : bodyStyle.bgColor,
|
|
34
|
+
this._lineHeight = null !== (_p = null == style ? void 0 : style.lineHeight) && void 0 !== _p ? _p : null == bodyStyle ? void 0 : bodyStyle.lineHeight,
|
|
35
|
+
this._underline = null !== (_q = null == style ? void 0 : style.underline) && void 0 !== _q ? _q : null == bodyStyle ? void 0 : bodyStyle.underline,
|
|
36
|
+
this._underlineColor = null !== (_r = null == style ? void 0 : style.underlineColor) && void 0 !== _r ? _r : null == bodyStyle ? void 0 : bodyStyle.underlineColor,
|
|
37
|
+
this._underlineDash = null !== (_s = null == style ? void 0 : style.underlineDash) && void 0 !== _s ? _s : null == bodyStyle ? void 0 : bodyStyle.underlineDash,
|
|
38
|
+
this._lineThrough = null !== (_t = null == style ? void 0 : style.lineThrough) && void 0 !== _t ? _t : null == bodyStyle ? void 0 : bodyStyle.lineThrough,
|
|
39
|
+
this._lineThroughColor = null !== (_u = null == style ? void 0 : style.lineThroughColor) && void 0 !== _u ? _u : null == bodyStyle ? void 0 : bodyStyle.lineThroughColor,
|
|
40
|
+
this._lineThroughDash = null !== (_v = null == style ? void 0 : style.lineThroughDash) && void 0 !== _v ? _v : null == bodyStyle ? void 0 : bodyStyle.lineThroughDash,
|
|
41
|
+
this._linkColor = null !== (_w = null == style ? void 0 : style.linkColor) && void 0 !== _w ? _w : null == bodyStyle ? void 0 : bodyStyle.linkColor,
|
|
42
|
+
this._cursor = null !== (_x = style.cursor) && void 0 !== _x ? _x : null == bodyStyle ? void 0 : bodyStyle.cursor,
|
|
43
|
+
this._borderLineWidth = null !== (_y = style.borderLineWidth) && void 0 !== _y ? _y : null == bodyStyle ? void 0 : bodyStyle.borderLineWidth,
|
|
44
|
+
this._borderLineDash = null !== (_z = style.borderLineDash) && void 0 !== _z ? _z : null == bodyStyle ? void 0 : bodyStyle.borderLineDash,
|
|
45
|
+
this._marked = null !== (_0 = style.marked) && void 0 !== _0 ? _0 : null == bodyStyle ? void 0 : bodyStyle.marked;
|
|
46
|
+
}
|
|
47
|
+
get color() {
|
|
48
|
+
return this._color;
|
|
49
|
+
}
|
|
50
|
+
set color(color) {
|
|
51
|
+
this._color = color, this.doChangeStyle();
|
|
52
|
+
}
|
|
53
|
+
get fontSize() {
|
|
54
|
+
return this._fontSize;
|
|
55
|
+
}
|
|
56
|
+
set fontSize(fontSize) {
|
|
57
|
+
this._fontSize = fontSize, this.doChangeStyle();
|
|
58
|
+
}
|
|
59
|
+
get fontFamily() {
|
|
60
|
+
return this._fontFamily;
|
|
61
|
+
}
|
|
62
|
+
set fontFamily(fontFamily) {
|
|
63
|
+
this._fontFamily = fontFamily, this.doChangeStyle();
|
|
64
|
+
}
|
|
65
|
+
get fontWeight() {
|
|
66
|
+
return this._fontWeight;
|
|
67
|
+
}
|
|
68
|
+
set fontWeight(fontWeight) {
|
|
69
|
+
this._fontWeight = fontWeight, this.doChangeStyle();
|
|
70
|
+
}
|
|
71
|
+
get fontVariant() {
|
|
72
|
+
return this._fontVariant;
|
|
73
|
+
}
|
|
74
|
+
set fontVariant(fontVariant) {
|
|
75
|
+
this._fontVariant = fontVariant, this.doChangeStyle();
|
|
76
|
+
}
|
|
77
|
+
get fontStyle() {
|
|
78
|
+
return this._fontStyle;
|
|
79
|
+
}
|
|
80
|
+
set fontStyle(fontStyle) {
|
|
81
|
+
this._fontStyle = fontStyle, this.doChangeStyle();
|
|
82
|
+
}
|
|
83
|
+
get padding() {
|
|
84
|
+
return this._padding;
|
|
85
|
+
}
|
|
86
|
+
set padding(padding) {
|
|
87
|
+
this._padding = padding, this.doChangeStyle();
|
|
88
|
+
}
|
|
89
|
+
get textOverflow() {
|
|
90
|
+
return this._textOverflow;
|
|
91
|
+
}
|
|
92
|
+
set textOverflow(textOverflow) {
|
|
93
|
+
this._textOverflow = textOverflow, this.doChangeStyle();
|
|
94
|
+
}
|
|
95
|
+
get bgColor() {
|
|
96
|
+
return this._bgColor;
|
|
97
|
+
}
|
|
98
|
+
set bgColor(bgColor) {
|
|
99
|
+
this._bgColor = bgColor, this.doChangeStyle();
|
|
100
|
+
}
|
|
101
|
+
get borderColor() {
|
|
102
|
+
return this._borderColor;
|
|
103
|
+
}
|
|
104
|
+
set borderColor(borderColor) {
|
|
105
|
+
this._borderColor = borderColor, this.doChangeStyle();
|
|
106
|
+
}
|
|
107
|
+
get textAlign() {
|
|
108
|
+
return this._textAlign;
|
|
109
|
+
}
|
|
110
|
+
set textAlign(textAlign) {
|
|
111
|
+
this._textAlign = textAlign, this.doChangeStyle();
|
|
112
|
+
}
|
|
113
|
+
get textBaseline() {
|
|
114
|
+
return this._textBaseline;
|
|
115
|
+
}
|
|
116
|
+
set textBaseline(textBaseline) {
|
|
117
|
+
this._textBaseline = textBaseline, this.doChangeStyle();
|
|
118
|
+
}
|
|
119
|
+
get lineHeight() {
|
|
120
|
+
return this._lineHeight;
|
|
121
|
+
}
|
|
122
|
+
set lineHeight(lineHeight) {
|
|
123
|
+
this._lineHeight = lineHeight, this.doChangeStyle();
|
|
124
|
+
}
|
|
125
|
+
get underline() {
|
|
126
|
+
return this._underline;
|
|
127
|
+
}
|
|
128
|
+
set underline(underline) {
|
|
129
|
+
this._underline = underline, this.doChangeStyle();
|
|
130
|
+
}
|
|
131
|
+
get underlineColor() {
|
|
132
|
+
return this._underlineColor;
|
|
133
|
+
}
|
|
134
|
+
set underlineColor(underlineColor) {
|
|
135
|
+
this._underlineColor = underlineColor, this.doChangeStyle();
|
|
136
|
+
}
|
|
137
|
+
get underlineDash() {
|
|
138
|
+
return this._underlineDash;
|
|
139
|
+
}
|
|
140
|
+
set underlineDash(underlineDash) {
|
|
141
|
+
this._underlineDash = underlineDash, this.doChangeStyle();
|
|
142
|
+
}
|
|
143
|
+
get lineThrough() {
|
|
144
|
+
return this._lineThrough;
|
|
145
|
+
}
|
|
146
|
+
set lineThrough(lineThrough) {
|
|
147
|
+
this._lineThrough = lineThrough, this.doChangeStyle();
|
|
148
|
+
}
|
|
149
|
+
get lineThroughColor() {
|
|
150
|
+
return this._lineThroughColor;
|
|
151
|
+
}
|
|
152
|
+
set lineThroughColor(lineThroughColor) {
|
|
153
|
+
this._lineThroughColor = lineThroughColor, this.doChangeStyle();
|
|
154
|
+
}
|
|
155
|
+
get lineThroughDash() {
|
|
156
|
+
return this._lineThroughDash;
|
|
157
|
+
}
|
|
158
|
+
set lineThroughDash(lineThroughDash) {
|
|
159
|
+
this._lineThroughDash = lineThroughDash, this.doChangeStyle();
|
|
160
|
+
}
|
|
161
|
+
get linkColor() {
|
|
162
|
+
return this._linkColor;
|
|
163
|
+
}
|
|
164
|
+
set linkColor(linkColor) {
|
|
165
|
+
this._linkColor = linkColor, this.doChangeStyle();
|
|
166
|
+
}
|
|
167
|
+
get cursor() {
|
|
168
|
+
return this._cursor;
|
|
169
|
+
}
|
|
170
|
+
set cursor(cursor) {
|
|
171
|
+
this._cursor = cursor, this.doChangeStyle();
|
|
172
|
+
}
|
|
173
|
+
get borderLineWidth() {
|
|
174
|
+
return this._borderLineWidth;
|
|
175
|
+
}
|
|
176
|
+
set borderLineWidth(borderLineWidth) {
|
|
177
|
+
this._borderLineWidth = borderLineWidth, this.doChangeStyle();
|
|
178
|
+
}
|
|
179
|
+
get borderLineDash() {
|
|
180
|
+
return this._borderLineDash;
|
|
181
|
+
}
|
|
182
|
+
set borderLineDash(borderLineDash) {
|
|
183
|
+
this._borderLineDash = borderLineDash, this.doChangeStyle();
|
|
184
|
+
}
|
|
185
|
+
get marked() {
|
|
186
|
+
return this._marked;
|
|
187
|
+
}
|
|
188
|
+
set marked(marked) {
|
|
189
|
+
this._marked = marked, this.doChangeStyle();
|
|
190
|
+
}
|
|
191
|
+
doChangeStyle() {
|
|
192
|
+
this.fireListeners(STYLE_EVENT_TYPE.CHANGE_STYLE);
|
|
193
|
+
}
|
|
194
|
+
clone() {
|
|
195
|
+
return new Style(this, null);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
exports.Style = Style;
|
|
200
|
+
//# sourceMappingURL=Style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["body-helper/style/Style.ts"],"names":[],"mappings":";;;AAqBA,IAAI,YAAmB,CAAC;AACxB,yDAAsD;AAEtD,MAAM,gBAAgB,GAAG;IACvB,YAAY,EAAE,cAAuB;CACtC,CAAC;AAEF,MAAa,KAAM,SAAQ,yBAAW;IA0BpC,MAAM,KAAK,UAAU;QACnB,OAAO,gBAAgB,CAAC;IAC1B,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,YAA0B,EAAE;;QAChE,KAAK,EAAE,CAAC;QAzBF,oBAAe,GAA2B,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QA0BjE,IAAI,CAAC,UAAU,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,mCAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,SAAS,CAAC;QAC3D,IAAI,CAAC,aAAa,GAA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ACtB,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IACD,aAAa;QACX,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACpD,CAAC;IACD,KAAK;QACH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF;AA3OD,sBA2OC","file":"Style.js","sourcesContent":["/* eslint-disable no-undef */\nimport type {\n ColorPropertyDefine,\n ColumnStyle,\n IStyleOption,\n TextOverflow,\n UnderlinePropertyDefine,\n LineThroughPropertyDefine,\n LineDashPropertyDefine,\n ColorsPropertyDefine,\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 STYLE_EVENT_TYPE = {\n CHANGE_STYLE: 'change_style' as const\n};\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 _padding?: PaddingsPropertyDefine;\n private _defaultPadding: PaddingsPropertyDefine = [10, 16, 10, 16];\n private _textOverflow?: TextOverflow;\n private _textAlign?: TextAlignType;\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 private _cursor?: CursorPropertyDefine;\n private _borderLineWidth?: LineWidthsPropertyDefine;\n private _borderLineDash?: LineDashsPropertyDefine;\n private _marked?: MarkedPropertyDefine;\n static get EVENT_TYPE(): { CHANGE_STYLE: 'change_style' } {\n return STYLE_EVENT_TYPE;\n }\n static get DEFAULT(): Style {\n return defaultStyle ? defaultStyle : (defaultStyle = new Style());\n }\n constructor(style: IStyleOption = {}, bodyStyle: IStyleOption = {}) {\n super();\n this._textAlign = style?.textAlign ?? bodyStyle?.textAlign; //|| \"left\";\n this._textBaseline = style?.textBaseline ?? bodyStyle?.textBaseline; //|| \"middle\";\n this._color = style?.color ?? bodyStyle?.color;\n // icon为文字前后可添加的图表\n this._fontSize = style.fontSize ?? bodyStyle?.fontSize;\n this._fontFamily = style.fontFamily ?? bodyStyle?.fontFamily;\n this._fontWeight = style.fontWeight ?? bodyStyle?.fontWeight;\n this._fontVariant = style.fontVariant ?? bodyStyle?.fontVariant;\n this._fontStyle = style.fontStyle ?? bodyStyle?.fontStyle;\n //修改不能设置为0的情况\n this._padding = style?.padding ?? bodyStyle?.padding ?? this._defaultPadding;\n this._borderColor = style?.borderColor ?? bodyStyle?.borderColor;\n this._textOverflow = style?.textOverflow ?? bodyStyle?.textOverflow; //|| \"clip\";\n this._bgColor = style?.bgColor ?? bodyStyle?.bgColor;\n this._lineHeight = style?.lineHeight ?? bodyStyle?.lineHeight;\n this._underline = style?.underline ?? bodyStyle?.underline;\n this._underlineColor = style?.underlineColor ?? bodyStyle?.underlineColor;\n this._underlineDash = style?.underlineDash ?? bodyStyle?.underlineDash;\n this._lineThrough = style?.lineThrough ?? bodyStyle?.lineThrough;\n this._lineThroughColor = style?.lineThroughColor ?? bodyStyle?.lineThroughColor;\n this._lineThroughDash = style?.lineThroughDash ?? bodyStyle?.lineThroughDash;\n this._linkColor = style?.linkColor ?? bodyStyle?.linkColor;\n this._cursor = style.cursor ?? bodyStyle?.cursor;\n this._borderLineWidth = style.borderLineWidth ?? bodyStyle?.borderLineWidth;\n this._borderLineDash = style.borderLineDash ?? bodyStyle?.borderLineDash;\n this._marked = style.marked ?? bodyStyle?.marked;\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 padding(): PaddingsPropertyDefine | undefined {\n return this._padding;\n }\n set padding(padding: PaddingsPropertyDefine | undefined) {\n this._padding = padding;\n this.doChangeStyle();\n }\n get textOverflow(): TextOverflow | undefined {\n return this._textOverflow;\n }\n set textOverflow(textOverflow: TextOverflow | undefined) {\n this._textOverflow = textOverflow;\n this.doChangeStyle();\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 borderColor(): ColorsPropertyDefine | undefined {\n return this._borderColor;\n }\n set borderColor(borderColor: ColorsPropertyDefine | undefined) {\n this._borderColor = borderColor;\n this.doChangeStyle();\n }\n get textAlign(): TextAlignType | undefined {\n return this._textAlign;\n }\n set textAlign(textAlign: TextAlignType | undefined) {\n this._textAlign = textAlign;\n this.doChangeStyle();\n }\n get textBaseline(): TextBaselineType | undefined {\n return this._textBaseline;\n }\n set textBaseline(textBaseline: TextBaselineType | undefined) {\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 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 get marked(): MarkedPropertyDefine | undefined {\n return this._marked;\n }\n set marked(marked: MarkedPropertyDefine | undefined) {\n this._marked = marked;\n this.doChangeStyle();\n }\n doChangeStyle(): void {\n this.fireListeners(STYLE_EVENT_TYPE.CHANGE_STYLE);\n }\n clone(): Style {\n return new Style(this, null);\n }\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ColumnStyleOption, FullExtendStyle, IImageStyleOption, ITextStyleOption, IStyleOption, StylePropertyFunctionArg } from '../ts-types';
|
|
2
|
+
import { ImageStyle } from './style/ImageStyle';
|
|
3
|
+
import { TextStyle } from './style/MultilineTextStyle';
|
|
4
|
+
import { NumberStyle } from './style/NumberStyle';
|
|
5
|
+
import { Style } from './style/Style';
|
|
6
|
+
declare const EVENT_TYPE: {
|
|
7
|
+
CHANGE_STYLE: "change_style";
|
|
8
|
+
};
|
|
9
|
+
export { EVENT_TYPE, Style, NumberStyle, ImageStyle, TextStyle, IStyleOption, IImageStyleOption, ITextStyleOption };
|
|
10
|
+
export declare function of(columnStyle: ColumnStyleOption, bodyStyle: ColumnStyleOption, styleArg: StylePropertyFunctionArg, StyleClassDef: typeof Style, globalAutoWrapText: boolean): FullExtendStyle;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.of = exports.TextStyle = exports.ImageStyle = exports.NumberStyle = exports.Style = exports.EVENT_TYPE = void 0;
|
|
6
|
+
|
|
7
|
+
const util_1 = require("../tools/util"), ImageStyle_1 = require("./style/ImageStyle");
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "ImageStyle", {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: function() {
|
|
12
|
+
return ImageStyle_1.ImageStyle;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const MultilineTextStyle_1 = require("./style/MultilineTextStyle");
|
|
17
|
+
|
|
18
|
+
Object.defineProperty(exports, "TextStyle", {
|
|
19
|
+
enumerable: !0,
|
|
20
|
+
get: function() {
|
|
21
|
+
return MultilineTextStyle_1.TextStyle;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const NumberStyle_1 = require("./style/NumberStyle");
|
|
26
|
+
|
|
27
|
+
Object.defineProperty(exports, "NumberStyle", {
|
|
28
|
+
enumerable: !0,
|
|
29
|
+
get: function() {
|
|
30
|
+
return NumberStyle_1.NumberStyle;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const Style_1 = require("./style/Style");
|
|
35
|
+
|
|
36
|
+
Object.defineProperty(exports, "Style", {
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
get: function() {
|
|
39
|
+
return Style_1.Style;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const {EVENT_TYPE: EVENT_TYPE} = Style_1.Style;
|
|
44
|
+
|
|
45
|
+
function of(columnStyle, bodyStyle, styleArg, StyleClassDef = Style_1.Style, globalAutoWrapText) {
|
|
46
|
+
return columnStyle || bodyStyle ? columnStyle instanceof Style_1.Style ? columnStyle : "function" == typeof columnStyle ? of(columnStyle(styleArg), bodyStyle, styleArg, StyleClassDef, globalAutoWrapText) : (columnStyle || (columnStyle = {}),
|
|
47
|
+
globalAutoWrapText && !(0, util_1.isValid)(columnStyle.autoWrapText) && (columnStyle.autoWrapText = !0),
|
|
48
|
+
new StyleClassDef(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {})) : StyleClassDef.DEFAULT;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
exports.EVENT_TYPE = EVENT_TYPE, exports.of = of;
|
|
52
|
+
//# sourceMappingURL=style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["body-helper/style.ts"],"names":[],"mappings":";;;AAAA,wCAAwC;AAWxC,mDAAgD;AAU9C,2FAVO,uBAAU,OAUP;AATZ,mEAAuD;AAUrD,0FAVO,8BAAS,OAUP;AATX,qDAAkD;AAOhD,4FAPO,yBAAW,OAOP;AANb,yCAAsC;AAKpC,sFALO,aAAK,OAKP;AAHP,MAAM,EAAE,UAAU,EAAE,GAAG,aAAK,CAAC;AAE3B,gCAAU;AAUZ,SAAgB,EAAE,CAChB,WAA8B,EAC9B,SAA4B,EAC5B,QAAkC,EAClC,gBAA8B,aAAK,EACnC,kBAA2B;IAE3B,IAAI,WAAW,IAAI,SAAS,EAAE;QAC5B,IAAI,WAAW,YAAY,aAAK,EAAE;YAChC,OAAO,WAAW,CAAC;SACpB;aAAM,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE;YAC5C,OAAO,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,kBAAkB,CAAC,CAAC;SAC1F;QACD,IAAI,CAAC,WAAW,EAAE;YAChB,WAAW,GAAG,EAAE,CAAC;SAClB;QACD,IAAI,kBAAkB,IAAI,CAAC,IAAA,cAAO,EAAE,WAAmB,CAAC,YAAY,CAAC,EAAE;YACpE,WAAmB,CAAC,YAAY,GAAG,IAAI,CAAC;SAC1C;QAED,OAAO,IAAI,aAAa,CAAC,CAAC,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,EAAE,CAAQ,EAAE,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,CAAQ,CAAC,CAAC;KAChF;IACD,OAAO,aAAa,CAAC,OAAO,CAAC;AAC/B,CAAC;AAvBD,gBAuBC","file":"style.js","sourcesContent":["import { isValid } from '../tools/util';\nimport type {\n ColumnStyle,\n ColumnStyleOption,\n FullExtendStyle,\n IImageStyleOption,\n ITextStyleOption,\n IStyleOption,\n StylePropertyFunctionArg\n} from '../ts-types';\n\nimport { ImageStyle } from './style/ImageStyle';\nimport { TextStyle } from './style/MultilineTextStyle';\nimport { NumberStyle } from './style/NumberStyle';\nimport { Style } from './style/Style';\n\nconst { EVENT_TYPE } = Style;\nexport {\n EVENT_TYPE,\n Style,\n NumberStyle,\n ImageStyle,\n TextStyle,\n // types\n IStyleOption,\n IImageStyleOption,\n ITextStyleOption\n};\nexport function of(\n columnStyle: ColumnStyleOption,\n bodyStyle: ColumnStyleOption,\n styleArg: StylePropertyFunctionArg,\n StyleClassDef: typeof Style = Style,\n globalAutoWrapText: boolean\n): FullExtendStyle {\n if (columnStyle || bodyStyle) {\n if (columnStyle instanceof Style) {\n return columnStyle;\n } else if (typeof columnStyle === 'function') {\n return of(columnStyle(styleArg), bodyStyle, styleArg, StyleClassDef, globalAutoWrapText);\n }\n if (!columnStyle) {\n columnStyle = {};\n }\n if (globalAutoWrapText && !isValid((columnStyle as any).autoWrapText)) {\n (columnStyle as any).autoWrapText = true;\n }\n\n return new StyleClassDef((columnStyle ?? {}) as any, (bodyStyle ?? {}) as any);\n }\n return StyleClassDef.DEFAULT;\n}\n"]}
|
package/cjs/chartType.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.get = void 0;
|
|
6
|
+
|
|
7
|
+
const helper_1 = require("./tools/helper"), chartTypes_1 = require("./plugins/chartTypes"), builtin = {};
|
|
8
|
+
|
|
9
|
+
function get() {
|
|
10
|
+
return (0, helper_1.extend)(builtin, chartTypes_1.chartTypes);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.get = get;
|
|
14
|
+
//# sourceMappingURL=chartType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["chartType.ts"],"names":[],"mappings":";;;AACA,2CAAwC;AACxC,qDAA6D;AAC7D,MAAM,OAAO,GAAG,EAAE,CAAC;AACnB,SAAgB,GAAG;IACjB,OAAO,IAAA,eAAM,EAAC,OAAO,EAAE,uBAAO,CAAC,CAAC;AAClC,CAAC;AAFD,kBAEC","file":"chartType.js","sourcesContent":["/* eslint-disable sort-imports */\nimport { extend } from './tools/helper';\nimport { chartTypes as plugins } from './plugins/chartTypes';\nconst builtin = {};\nexport function get(): { [key: string]: any } {\n return extend(builtin, plugins);\n}\n"]}
|