@orbcharts/presets-basic 3.0.0-alpha.9 → 3.0.0-beta.10
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/dist/lib/core-types.d.ts +1 -0
- package/dist/lib/plugins-basic-types.d.ts +1 -0
- package/dist/orbcharts-presets-basic.es.js +1534 -828
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.d.ts +4 -0
- package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.d.ts +4 -0
- package/dist/src/grid/PRESET_BARS_ROUND.d.ts +4 -0
- package/dist/src/grid/PRESET_BARS_THIN.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_BASIC.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_HORIZONTAL.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_PN_SCALE.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_BASIC.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_CURVE.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_HORIZONTAL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_LOOSE_TICKS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_WITH_SOLID_DOTS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_BASIC.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_CURVE.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_HORIZONTAL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/grid/index.d.ts +21 -0
- package/dist/src/index.d.ts +6 -32
- package/dist/src/multiGrid/PRESET_MULTI_GRID_BASIC.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.d.ts +4 -0
- package/dist/src/multiGrid/index.d.ts +6 -0
- package/dist/src/multiValue/PRESET_MULTI_VALUE_BASIC.d.ts +4 -0
- package/dist/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.d.ts +4 -0
- package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.d.ts +4 -0
- package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
- package/dist/src/multiValue/index.d.ts +4 -0
- package/dist/src/params.d.ts +9 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BASIC.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.d.ts +4 -0
- package/dist/src/relationship/index.d.ts +8 -0
- package/dist/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
- package/dist/src/series/PRESET_BUBBLES_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_BASIC.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_DONUT.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_HALF_DONUT.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_WITH_INNER_LABELS.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_BASIC.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_SCALING_BY_RADIUS.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_BASIC.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_SUM_SERIES.d.ts +4 -0
- package/dist/src/series/index.d.ts +12 -0
- package/dist/src/tree/PRESET_TREE_MAP_BASIC.d.ts +4 -0
- package/dist/src/tree/index.d.ts +1 -0
- package/dist/src/types.d.ts +162 -37
- package/dist/vite.config.d.ts +1 -1
- package/lib/core-types.ts +7 -0
- package/lib/plugins-basic-types.ts +6 -0
- package/package.json +5 -6
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +56 -0
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +52 -0
- package/src/grid/PRESET_BARS_ROUND.ts +39 -0
- package/src/grid/PRESET_BARS_THIN.ts +36 -0
- package/src/grid/PRESET_GRID_BASIC.ts +27 -0
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +44 -0
- package/src/grid/PRESET_GRID_PN_SCALE.ts +35 -0
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +35 -0
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +40 -0
- package/src/grid/PRESET_LINES_BASIC.ts +35 -0
- package/src/grid/PRESET_LINES_CURVE.ts +38 -0
- package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +37 -0
- package/src/grid/PRESET_LINES_HORIZONTAL.ts +51 -0
- package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +37 -0
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +40 -0
- package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +39 -0
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +43 -0
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +48 -0
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +47 -0
- package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +47 -0
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +45 -0
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +48 -0
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +50 -0
- package/src/grid/index.ts +23 -0
- package/src/index.ts +6 -223
- package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +38 -0
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +86 -0
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +58 -0
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +60 -0
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +86 -0
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +104 -0
- package/src/multiGrid/index.ts +6 -0
- package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +23 -0
- package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +26 -0
- package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +26 -0
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +26 -0
- package/src/multiValue/index.ts +4 -0
- package/src/params.ts +81 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +23 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +23 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +28 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +30 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +25 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +30 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +28 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +25 -0
- package/src/relationship/index.ts +8 -0
- package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +18 -0
- package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -0
- package/src/series/PRESET_PIE_BASIC.ts +19 -0
- package/src/series/PRESET_PIE_DONUT.ts +24 -0
- package/src/series/PRESET_PIE_HALF_DONUT.ts +37 -0
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +25 -0
- package/src/series/PRESET_ROSE_BASIC.ts +20 -0
- package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +25 -0
- package/src/series/PRESET_SERIES_BASIC.ts +16 -0
- package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +18 -0
- package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +19 -0
- package/src/series/PRESET_SERIES_SUM_SERIES.ts +18 -0
- package/src/series/index.ts +13 -0
- package/src/tree/PRESET_TREE_MAP_BASIC.ts +27 -0
- package/src/tree/index.ts +1 -0
- package/src/types.ts +345 -56
- package/{tsconfig.prod.json → tsconfig.base.json} +1 -1
- package/tsconfig.json +1 -12
- package/vite.config.js +17 -39
- package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_SLIGHT_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_LEFT_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_RIGHT_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/index.d.ts +0 -11
- package/dist/src/createPreset.d.ts +0 -9
- package/dist/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.d.ts +0 -3
- package/dist/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.d.ts +0 -3
- package/dist/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.d.ts +0 -3
- package/dist/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.d.ts +0 -3
- package/dist/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.d.ts +0 -3
- package/dist/src/gridDataFormatterFiles/index.d.ts +0 -5
- package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Bars/index.d.ts +0 -2
- package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Dots/index.d.ts +0 -2
- package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/GridLegend/index.d.ts +0 -3
- package/dist/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/GroupAxis/index.d.ts +0 -1
- package/dist/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Lines/index.d.ts +0 -1
- package/dist/src/gridPluginParamsFiles/index.d.ts +0 -5
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.d.ts +0 -3
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.d.ts +0 -3
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.d.ts +0 -3
- package/dist/src/multiGridDataFormatterFiles/index.d.ts +0 -3
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/index.d.ts +0 -3
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBars/index.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.d.ts +0 -3
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/index.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/index.d.ts +0 -3
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiLines/index.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/index.d.ts +0 -3
- package/dist/src/multiGridPluginParamsFiles/index.d.ts +0 -7
- package/dist/src/multiValueDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/multiValuePluginParamsFiles/index.d.ts +0 -1
- package/dist/src/relationshipDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/relationshipPluginParamsFiles/index.d.ts +0 -1
- package/dist/src/seriesDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/Bubbles/index.d.ts +0 -1
- package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.d.ts +0 -0
- package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/Pie/index.d.ts +0 -2
- package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/PieLabels/index.d.ts +0 -2
- package/dist/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/SeriesLegend/index.d.ts +0 -1
- package/dist/src/seriesPluginParamsFiles/index.d.ts +0 -4
- package/dist/src/treeDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/treePluginParamsFiles/TreeLegend/PP_TREE_LEGEND_BOTTOM.d.ts +0 -4
- package/dist/src/treePluginParamsFiles/TreeLegend/index.d.ts +0 -1
- package/dist/src/treePluginParamsFiles/index.d.ts +0 -1
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_BOTTOM_SLIGHT_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_LEFT_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +0 -14
- package/src/chartParamsFiles/index.ts +0 -11
- package/src/createPreset.ts +0 -88
- package/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.ts +0 -16
- package/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.ts +0 -16
- package/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.ts +0 -16
- package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.ts +0 -23
- package/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.ts +0 -15
- package/src/gridDataFormatterFiles/index.ts +0 -5
- package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +0 -15
- package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +0 -14
- package/src/gridPluginParamsFiles/Bars/index.ts +0 -2
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +0 -12
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +0 -14
- package/src/gridPluginParamsFiles/Dots/index.ts +0 -2
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +0 -14
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +0 -15
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.ts +0 -15
- package/src/gridPluginParamsFiles/GridLegend/index.ts +0 -3
- package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +0 -13
- package/src/gridPluginParamsFiles/GroupAxis/index.ts +0 -1
- package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +0 -13
- package/src/gridPluginParamsFiles/Lines/index.ts +0 -1
- package/src/gridPluginParamsFiles/index.ts +0 -6
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.ts +0 -21
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.ts +0 -24
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.ts +0 -27
- package/src/multiGridDataFormatterFiles/index.ts +0 -3
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarStack/index.ts +0 -4
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.ts +0 -15
- package/src/multiGridPluginParamsFiles/MultiBars/index.ts +0 -5
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.ts +0 -3
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.ts +0 -14
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +0 -28
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.ts +0 -21
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.ts +0 -22
- package/src/multiGridPluginParamsFiles/MultiGridLegend/index.ts +0 -4
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.ts +0 -13
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.ts +0 -13
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.ts +0 -13
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/index.ts +0 -3
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.ts +0 -13
- package/src/multiGridPluginParamsFiles/MultiLines/index.ts +0 -4
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiValueAxis/index.ts +0 -3
- package/src/multiGridPluginParamsFiles/index.ts +0 -7
- package/src/multiValueDataFormatterFiles/index.ts +0 -1
- package/src/multiValuePluginParamsFiles/index.ts +0 -1
- package/src/relationshipDataFormatterFiles/index.ts +0 -1
- package/src/relationshipPluginParamsFiles/index.ts +0 -1
- package/src/seriesDataFormatterFiles/index.ts +0 -1
- package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +0 -12
- package/src/seriesPluginParamsFiles/Bubbles/index.ts +0 -1
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.ts +0 -0
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +0 -12
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +0 -14
- package/src/seriesPluginParamsFiles/Pie/index.ts +0 -2
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +0 -13
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +0 -13
- package/src/seriesPluginParamsFiles/PieLabels/index.ts +0 -2
- package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +0 -12
- package/src/seriesPluginParamsFiles/SeriesLegend/index.ts +0 -1
- package/src/seriesPluginParamsFiles/index.ts +0 -4
- package/src/treeDataFormatterFiles/index.ts +0 -1
- package/src/treePluginParamsFiles/TreeLegend/PP_TREE_LEGEND_BOTTOM.ts +0 -14
- package/src/treePluginParamsFiles/TreeLegend/index.ts +0 -1
- package/src/treePluginParamsFiles/index.ts +0 -1
- package/tsconfig.dev.json +0 -18
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
+
// import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
|
+
|
5
|
+
export const PRESET_SERIES_SUM_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
|
6
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
7
|
+
name: 'PRESET_SERIES_SUM_SERIES',
|
8
|
+
description: '合併Series資料',
|
9
|
+
dataFormatter: {
|
10
|
+
sort: (a, b) => b.value - a.value,
|
11
|
+
sumSeries: true
|
12
|
+
},
|
13
|
+
allPluginParams: {
|
14
|
+
// ...ALL_PLUGIN_PARAMS_SERIES,
|
15
|
+
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
16
|
+
}
|
17
|
+
}
|
18
|
+
PRESET_SERIES_SUM_SERIES.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export { PRESET_BUBBLES_SCALING_BY_RADIUS } from './PRESET_BUBBLES_SCALING_BY_RADIUS'
|
2
|
+
export { PRESET_BUBBLES_SEPARATE_SERIES } from './PRESET_BUBBLES_SEPARATE_SERIES'
|
3
|
+
export { PRESET_PIE_BASIC } from './PRESET_PIE_BASIC'
|
4
|
+
export { PRESET_PIE_DONUT } from './PRESET_PIE_DONUT'
|
5
|
+
export { PRESET_PIE_HALF_DONUT } from './PRESET_PIE_HALF_DONUT'
|
6
|
+
export { PRESET_PIE_WITH_INNER_LABELS } from './PRESET_PIE_WITH_INNER_LABELS'
|
7
|
+
export { PRESET_ROSE_BASIC } from './PRESET_ROSE_BASIC'
|
8
|
+
export { PRESET_ROSE_SCALING_BY_RADIUS } from './PRESET_ROSE_SCALING_BY_RADIUS'
|
9
|
+
export { PRESET_SERIES_BASIC } from './PRESET_SERIES_BASIC'
|
10
|
+
// export { PRESET_SERIES_DESC } from './PRESET_SERIES_DESC'
|
11
|
+
export { PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES } from './PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES'
|
12
|
+
export { PRESET_SERIES_SEPARATE_SERIES } from './PRESET_SERIES_SEPARATE_SERIES'
|
13
|
+
export { PRESET_SERIES_SUM_SERIES } from './PRESET_SERIES_SUM_SERIES'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetTreePluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
+
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
|
+
|
5
|
+
export const PRESET_TREE_MAP_BASIC: PresetPartial<'tree', Partial<PresetTreePluginParams>
|
6
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
7
|
+
name: 'PRESET_TREE_MAP_BASIC',
|
8
|
+
description: '基本Tree Map參數',
|
9
|
+
chartParams: {
|
10
|
+
padding: {
|
11
|
+
top: 40,
|
12
|
+
right: 40,
|
13
|
+
bottom: 60,
|
14
|
+
left: 40
|
15
|
+
},
|
16
|
+
},
|
17
|
+
allPluginParams: {
|
18
|
+
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
19
|
+
TreeMap: {},
|
20
|
+
TreeLegend: {
|
21
|
+
// position: 'bottom',
|
22
|
+
// justify: 'center',
|
23
|
+
placement: 'bottom',
|
24
|
+
padding: 14,
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { PRESET_TREE_MAP_BASIC } from './PRESET_TREE_MAP_BASIC'
|
package/src/types.ts
CHANGED
@@ -1,61 +1,350 @@
|
|
1
1
|
import type {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
2
|
+
// -- series --
|
3
|
+
BubblesParams,
|
4
|
+
PieParams,
|
5
|
+
PieEventTextsParams,
|
6
|
+
PieLabelsParams,
|
7
|
+
RoseParams,
|
8
|
+
RoseLabelsParams,
|
9
|
+
SeriesLegendParams,
|
10
|
+
SeriesTooltipParams,
|
11
|
+
|
12
|
+
// -- grid --
|
13
|
+
BarsParams,
|
14
|
+
BarsPNParams,
|
15
|
+
StackedBarParams,
|
16
|
+
BarsTriangleParams,
|
17
|
+
DotsParams,
|
18
|
+
GridLegendParams,
|
19
|
+
GroupAuxParams,
|
20
|
+
GroupAxisParams,
|
21
|
+
LineAreasParams,
|
22
|
+
LinesParams,
|
23
|
+
GridTooltipParams,
|
24
|
+
GridZoomParams,
|
25
|
+
ValueAxisParams,
|
26
|
+
StackedValueAxisParams,
|
27
|
+
|
28
|
+
// -- multiGrid --
|
29
|
+
MultiBarsParams,
|
30
|
+
MultiStackedBarParams,
|
31
|
+
MultiBarsTriangleParams,
|
32
|
+
MultiDotsParams,
|
33
|
+
MultiGridLegendParams,
|
34
|
+
MultiGridTooltipParams,
|
35
|
+
MultiGroupAxisParams,
|
36
|
+
MultiLineAreasParams,
|
37
|
+
MultiLinesParams,
|
38
|
+
MultiValueAxisParams,
|
39
|
+
MultiStackedValueAxisParams,
|
40
|
+
OverlappingValueAxesParams,
|
41
|
+
OverlappingStackedValueAxesParams,
|
42
|
+
|
43
|
+
// -- multiValue --
|
44
|
+
MultiValueLegendParams,
|
45
|
+
MultiValueTooltipParams,
|
46
|
+
ScatterParams,
|
47
|
+
ScatterBubblesParams,
|
48
|
+
XYAuxParams,
|
49
|
+
XYAxesParams,
|
50
|
+
XYZoomParams,
|
51
|
+
|
52
|
+
// -- relationship --
|
53
|
+
ForceDirectedParams,
|
54
|
+
ForceDirectedBubblesParams,
|
55
|
+
RelationshipLegendParams,
|
56
|
+
RelationshipTooltipParams,
|
57
|
+
|
58
|
+
// -- tree --
|
59
|
+
TreeLegendParams,
|
60
|
+
TreeMapParams,
|
61
|
+
TreeTooltipParams,
|
62
|
+
|
63
|
+
// -- noneData --
|
64
|
+
// TooltipParams
|
65
|
+
} from '../lib/plugins-basic-types'
|
20
66
|
|
21
67
|
type DeepPartial<T> = Partial<{ [P in keyof T]: DeepPartial<T[P]> }>
|
22
68
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
69
|
+
// -- series --
|
70
|
+
// series的全部plugin參數
|
71
|
+
export type PresetSeriesPluginParams = PresetBubblesParams
|
72
|
+
& PresetPieParams
|
73
|
+
& PresetPieEventTextsParams
|
74
|
+
& PresetPieLabelsParams
|
75
|
+
& PresetRoseParams
|
76
|
+
& PresetRoseLabelsParams
|
77
|
+
& PresetSeriesLegendParams
|
78
|
+
& PresetSeriesTooltipParams
|
79
|
+
|
80
|
+
export interface PresetBubblesParams {
|
81
|
+
Bubbles: Partial<BubblesParams>
|
82
|
+
}
|
83
|
+
|
84
|
+
export interface PresetPieParams {
|
85
|
+
Pie: Partial<PieParams>
|
86
|
+
}
|
87
|
+
|
88
|
+
export interface PresetPieEventTextsParams {
|
89
|
+
PieEventTexts: Partial<PieEventTextsParams>
|
90
|
+
}
|
91
|
+
|
92
|
+
export interface PresetPieLabelsParams {
|
93
|
+
PieLabels: Partial<PieLabelsParams>
|
94
|
+
}
|
95
|
+
|
96
|
+
export interface PresetRoseParams {
|
97
|
+
Rose: Partial<RoseParams>
|
98
|
+
}
|
99
|
+
|
100
|
+
export interface PresetRoseLabelsParams {
|
101
|
+
RoseLabels: Partial<RoseLabelsParams>
|
102
|
+
}
|
103
|
+
|
104
|
+
export interface PresetSeriesLegendParams {
|
105
|
+
SeriesLegend: Partial<SeriesLegendParams>
|
106
|
+
}
|
107
|
+
|
108
|
+
export interface PresetSeriesTooltipParams {
|
109
|
+
SeriesTooltip: Partial<SeriesTooltipParams>
|
110
|
+
}
|
111
|
+
|
112
|
+
// -- grid --
|
113
|
+
// grid的全部plugin參數
|
114
|
+
export type PresetGridPluginParams = PresetBarsParams
|
115
|
+
& PresetBarsPNParams
|
116
|
+
& PresetStackedBarParams
|
117
|
+
& PresetBarsTriangleParams
|
118
|
+
& PresetDotsParams
|
119
|
+
& PresetGridLegendParams
|
120
|
+
& PresetGridTooltipParams
|
121
|
+
& PresetGroupAuxParams
|
122
|
+
& PresetGroupAxisParams
|
123
|
+
& PresetLineAreasParams
|
124
|
+
& PresetLinesParams
|
125
|
+
& PresetGridZoomParams
|
126
|
+
& PresetValueAxisParams
|
127
|
+
& PresetStackedValueAxisParams
|
128
|
+
|
129
|
+
export interface PresetBarsParams {
|
130
|
+
Bars: Partial<BarsParams>
|
131
|
+
}
|
132
|
+
|
133
|
+
export interface PresetBarsPNParams {
|
134
|
+
BarsPN: Partial<BarsPNParams>
|
135
|
+
}
|
136
|
+
|
137
|
+
export interface PresetStackedBarParams {
|
138
|
+
StackedBar: Partial<StackedBarParams>
|
139
|
+
}
|
140
|
+
|
141
|
+
export interface PresetBarsTriangleParams {
|
142
|
+
BarsTriangle: Partial<BarsTriangleParams>
|
143
|
+
}
|
144
|
+
|
145
|
+
export interface PresetDotsParams {
|
146
|
+
Dots: Partial<DotsParams>
|
147
|
+
}
|
148
|
+
|
149
|
+
export interface PresetGridLegendParams {
|
150
|
+
GridLegend: Partial<GridLegendParams>
|
151
|
+
}
|
152
|
+
|
153
|
+
export interface PresetGridTooltipParams {
|
154
|
+
GridTooltip: Partial<GridTooltipParams>
|
155
|
+
}
|
156
|
+
|
157
|
+
export interface PresetGroupAuxParams {
|
158
|
+
GroupAux: Partial<GroupAuxParams>
|
159
|
+
}
|
160
|
+
|
161
|
+
export interface PresetGroupAxisParams {
|
162
|
+
GroupAxis: Partial<GroupAxisParams>
|
163
|
+
}
|
164
|
+
|
165
|
+
export interface PresetLineAreasParams {
|
166
|
+
LineAreas: Partial<LineAreasParams>
|
167
|
+
}
|
168
|
+
|
169
|
+
export interface PresetLinesParams {
|
170
|
+
Lines: Partial<LinesParams>
|
171
|
+
}
|
172
|
+
|
173
|
+
export interface PresetGridZoomParams {
|
174
|
+
GridZoom: Partial<GridZoomParams>
|
175
|
+
}
|
176
|
+
|
177
|
+
export interface PresetValueAxisParams {
|
178
|
+
ValueAxis: Partial<ValueAxisParams>
|
179
|
+
}
|
180
|
+
|
181
|
+
export interface PresetStackedValueAxisParams {
|
182
|
+
StackedValueAxis: Partial<StackedValueAxisParams>
|
183
|
+
}
|
184
|
+
|
185
|
+
// -- multiGrid --
|
186
|
+
// multiGrid的全部plugin參數
|
187
|
+
export type PresetMultiGridPluginParams = PresetMultiBarsParams
|
188
|
+
& PresetMultiStackedBarParams
|
189
|
+
& PresetMultiBarsTriangleParams
|
190
|
+
& PresetMultiDotsParams
|
191
|
+
& PresetMultiGridLegendParams
|
192
|
+
& PresetMultiGridTooltipParams
|
193
|
+
& PresetMultiGroupAxisParams
|
194
|
+
& PresetMultiLineAreasParams
|
195
|
+
& PresetMultiLinesParams
|
196
|
+
& PresetMultiValueAxisParams
|
197
|
+
& PresetMultiStackedValueAxisParams
|
198
|
+
& PresetOverlappingValueAxesParams
|
199
|
+
& PresetOverlappingStackedValueAxesParams
|
200
|
+
|
201
|
+
// multiGrid分開grid
|
202
|
+
export type PresetMultiGridSepratedPluginParams = Omit<PresetMultiGridPluginParams, 'OverlappingValueAxes' | 'OverlappingStackedValueAxes'>
|
203
|
+
|
204
|
+
// multiGrid重疊grid
|
205
|
+
export type PresetMultiGridOverlappedPluginParams = Omit<PresetMultiGridPluginParams, 'PresetMultiGroupAxisParams' | 'PresetMultiValueAxisParams'>
|
206
|
+
|
207
|
+
export interface PresetMultiBarsParams {
|
208
|
+
MultiBars: Partial<MultiBarsParams>
|
209
|
+
}
|
210
|
+
|
211
|
+
export interface PresetMultiStackedBarParams {
|
212
|
+
MultiStackedBar: Partial<MultiStackedBarParams>
|
213
|
+
}
|
214
|
+
|
215
|
+
export interface PresetMultiBarsTriangleParams {
|
216
|
+
MultiBarsTriangle: Partial<MultiBarsTriangleParams>
|
217
|
+
}
|
218
|
+
|
219
|
+
export interface PresetMultiDotsParams {
|
220
|
+
MultiDots: Partial<MultiDotsParams>
|
221
|
+
}
|
222
|
+
|
223
|
+
export interface PresetMultiGridLegendParams {
|
224
|
+
MultiGridLegend: DeepPartial<MultiGridLegendParams>
|
225
|
+
}
|
226
|
+
|
227
|
+
export interface PresetMultiGridTooltipParams {
|
228
|
+
MultiGridTooltip: Partial<MultiGridTooltipParams>
|
229
|
+
}
|
230
|
+
|
231
|
+
export interface PresetMultiGroupAxisParams {
|
232
|
+
MultiGroupAxis: Partial<MultiGroupAxisParams>
|
233
|
+
}
|
234
|
+
|
235
|
+
export interface PresetMultiLineAreasParams {
|
236
|
+
MultiLineAreas: Partial<MultiLineAreasParams>
|
237
|
+
}
|
238
|
+
|
239
|
+
export interface PresetMultiLinesParams {
|
240
|
+
MultiLines: Partial<MultiLinesParams>
|
241
|
+
}
|
242
|
+
|
243
|
+
export interface PresetMultiValueAxisParams {
|
244
|
+
MultiValueAxis: Partial<MultiValueAxisParams>
|
245
|
+
}
|
246
|
+
|
247
|
+
export interface PresetMultiStackedValueAxisParams {
|
248
|
+
MultiStackedValueAxis: Partial<MultiStackedValueAxisParams>
|
249
|
+
}
|
250
|
+
|
251
|
+
export interface PresetOverlappingValueAxesParams {
|
252
|
+
OverlappingValueAxes: Partial<OverlappingValueAxesParams>
|
253
|
+
}
|
254
|
+
|
255
|
+
export interface PresetOverlappingStackedValueAxesParams {
|
256
|
+
OverlappingStackedValueAxes: Partial<OverlappingStackedValueAxesParams>
|
257
|
+
}
|
258
|
+
|
259
|
+
// -- multiValue --
|
260
|
+
export type PresetMultiValuePluginParams = PresetMultiValueLegendParams
|
261
|
+
& PresetMultiValueTooltipParams
|
262
|
+
& PresetScatterParams
|
263
|
+
& PresetScatterBubblesParams
|
264
|
+
& PresetXYAuxParams
|
265
|
+
& PresetXYAxesParams
|
266
|
+
& PresetXYZoomParams
|
267
|
+
|
268
|
+
export interface PresetMultiValueAxisParams {
|
269
|
+
MultiValueAxis: Partial<MultiValueAxisParams>
|
270
|
+
}
|
271
|
+
|
272
|
+
export interface PresetMultiStackedValueAxisParams {
|
273
|
+
MultiStackedValueAxis: Partial<MultiStackedValueAxisParams>
|
274
|
+
}
|
275
|
+
|
276
|
+
export interface PresetMultiValueLegendParams {
|
277
|
+
MultiValueLegend: Partial<MultiValueLegendParams>
|
278
|
+
}
|
279
|
+
|
280
|
+
export interface PresetMultiValueTooltipParams {
|
281
|
+
MultiValueTooltip: Partial<MultiValueTooltipParams>
|
282
|
+
}
|
283
|
+
|
284
|
+
export interface PresetScatterParams {
|
285
|
+
Scatter: Partial<ScatterParams>
|
286
|
+
}
|
287
|
+
|
288
|
+
export interface PresetScatterBubblesParams {
|
289
|
+
ScatterBubbles: Partial<ScatterBubblesParams>
|
290
|
+
}
|
291
|
+
|
292
|
+
export interface PresetXYAuxParams {
|
293
|
+
XYAux: Partial<XYAuxParams>
|
61
294
|
}
|
295
|
+
|
296
|
+
export interface PresetXYAxesParams {
|
297
|
+
XYAxes: Partial<XYAxesParams>
|
298
|
+
}
|
299
|
+
|
300
|
+
export interface PresetXYZoomParams {
|
301
|
+
XYZoom: Partial<XYZoomParams>
|
302
|
+
}
|
303
|
+
|
304
|
+
// -- relationship --
|
305
|
+
export type PresetRelationshipPluginParams = PresetForceDirectedParams
|
306
|
+
& PresetForceDirectedBubblesParams
|
307
|
+
& PresetRelationshipLegendParams
|
308
|
+
& PresetRelationshipTooltipParams
|
309
|
+
|
310
|
+
export interface PresetForceDirectedParams {
|
311
|
+
ForceDirected: DeepPartial<ForceDirectedParams>
|
312
|
+
}
|
313
|
+
|
314
|
+
export interface PresetForceDirectedBubblesParams {
|
315
|
+
ForceDirectedBubbles: DeepPartial<ForceDirectedBubblesParams>
|
316
|
+
}
|
317
|
+
|
318
|
+
export interface PresetRelationshipLegendParams {
|
319
|
+
RelationshipLegend: Partial<RelationshipLegendParams>
|
320
|
+
}
|
321
|
+
|
322
|
+
export interface PresetRelationshipTooltipParams {
|
323
|
+
RelationshipTooltip: Partial<RelationshipTooltipParams>
|
324
|
+
}
|
325
|
+
|
326
|
+
// -- tree --
|
327
|
+
export type PresetTreePluginParams = PresetTreeLegendParams
|
328
|
+
& PresetTreeMapParams
|
329
|
+
& PresetTreeTooltipParams
|
330
|
+
|
331
|
+
export interface PresetTreeLegendParams {
|
332
|
+
TreeLegend: Partial<TreeLegendParams>
|
333
|
+
}
|
334
|
+
|
335
|
+
export interface PresetTreeMapParams {
|
336
|
+
TreeMap: Partial<TreeMapParams>
|
337
|
+
}
|
338
|
+
|
339
|
+
export interface PresetTreeTooltipParams {
|
340
|
+
TreeTooltip: Partial<TreeTooltipParams>
|
341
|
+
}
|
342
|
+
|
343
|
+
// -- noneData --
|
344
|
+
// noneData的全部plugin參數
|
345
|
+
export type PresetNoneDataPluginParams = {}
|
346
|
+
// export type PresetNoneDataPluginParams = PresetTooltipParams
|
347
|
+
|
348
|
+
// export interface PresetTooltipParams {
|
349
|
+
// Tooltip: Partial<TooltipParams>
|
350
|
+
// }
|
package/tsconfig.json
CHANGED
@@ -1,14 +1,3 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
"outDir": "./dist/",
|
4
|
-
"sourceMap": true,
|
5
|
-
"noImplicitAny": true,
|
6
|
-
"module": "es6",
|
7
|
-
"target": "es5",
|
8
|
-
"jsx": "react",
|
9
|
-
"allowJs": true,
|
10
|
-
"moduleResolution": "node",
|
11
|
-
"allowSyntheticDefaultImports" : true,
|
12
|
-
"esModuleInterop" : true
|
13
|
-
}
|
2
|
+
"extends": "./tsconfig.base.json"
|
14
3
|
}
|
package/vite.config.js
CHANGED
@@ -1,45 +1,23 @@
|
|
1
|
-
// import { fileURLToPath, URL } from 'node:url'
|
2
|
-
|
3
|
-
// import { resolve } from 'path'
|
4
1
|
import { defineConfig } from 'vite'
|
5
2
|
import dts from 'vite-plugin-dts'
|
6
3
|
|
7
|
-
const releaseConfig = {
|
8
|
-
plugins: [
|
9
|
-
dts({
|
10
|
-
insertTypesEntry: true
|
11
|
-
})
|
12
|
-
],
|
13
|
-
compilerOptions: {
|
14
|
-
composite: true
|
15
|
-
},
|
16
|
-
build: {
|
17
|
-
lib: {
|
18
|
-
entry: "src/index.ts",
|
19
|
-
name: 'orbcharts-presets-basic',
|
20
|
-
formats: ["es", "umd"],
|
21
|
-
fileName: format => `orbcharts-presets-basic.${format}.js`
|
22
|
-
},
|
23
|
-
// rollupOptions: {
|
24
|
-
// input: {
|
25
|
-
// main: resolve(__dirname, "src/index.ts")
|
26
|
-
// },
|
27
|
-
// external: ['vue'],
|
28
|
-
// output: {
|
29
|
-
// assetFileNames: 'my-library.css',
|
30
|
-
// exports: "named",
|
31
|
-
// globals: {
|
32
|
-
// vue: 'Vue',
|
33
|
-
// },
|
34
|
-
// },
|
35
|
-
// },
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
4
|
export default defineConfig(({ command, mode }) => {
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
5
|
+
return {
|
6
|
+
plugins: [
|
7
|
+
dts({
|
8
|
+
insertTypesEntry: true
|
9
|
+
})
|
10
|
+
],
|
11
|
+
compilerOptions: {
|
12
|
+
composite: true
|
13
|
+
},
|
14
|
+
build: {
|
15
|
+
lib: {
|
16
|
+
entry: "src/index.ts",
|
17
|
+
name: 'orbcharts-presets-basic',
|
18
|
+
formats: ["es", "umd"],
|
19
|
+
fileName: format => `orbcharts-presets-basic.${format}.js`
|
20
|
+
},
|
21
|
+
}
|
44
22
|
}
|
45
23
|
})
|
@@ -1,11 +0,0 @@
|
|
1
|
-
export { CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT } from './CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT';
|
2
|
-
export { CP_BOTTOM_AND_LEFT_PADDING } from './CP_BOTTOM_AND_LEFT_PADDING';
|
3
|
-
export { CP_BOTTOM_LONG_PADDING } from './CP_BOTTOM_LONG_PADDING';
|
4
|
-
export { CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT } from './CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT';
|
5
|
-
export { CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT } from './CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT';
|
6
|
-
export { CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT } from './CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT';
|
7
|
-
export { CP_BOTTOM_PADDING } from './CP_BOTTOM_PADDING';
|
8
|
-
export { CP_BOTTOM_SLIGHT_PADDING } from './CP_BOTTOM_SLIGHT_PADDING';
|
9
|
-
export { CP_LEFT_PADDING } from './CP_LEFT_PADDING';
|
10
|
-
export { CP_TOP_AND_NO_BOTTOM_PADDING } from './CP_TOP_AND_NO_BOTTOM_PADDING';
|
11
|
-
export { CP_RIGHT_PADDING } from './CP_RIGHT_PADDING';
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { PresetPartial } from '@orbcharts/core';
|
2
|
-
import { PresetFile } from './types';
|
3
|
-
|
4
|
-
export declare const createSeriesPreset: (presetFile: PresetFile<"series">) => PresetPartial<"series">;
|
5
|
-
export declare const createGridPreset: (presetFile: PresetFile<"grid">) => PresetPartial<"grid">;
|
6
|
-
export declare const createMultiGridPreset: (presetFile: PresetFile<"multiGrid">) => PresetPartial<"multiGrid">;
|
7
|
-
export declare const createMultiValuePreset: (presetFile: PresetFile<"multiValue">) => PresetPartial<"multiValue">;
|
8
|
-
export declare const createRelationshipPreset: (presetFile: PresetFile<"relationship">) => PresetPartial<"relationship">;
|
9
|
-
export declare const createTreePreset: (presetFile: PresetFile<"tree">) => PresetPartial<"tree">;
|