@orbcharts/presets-basic 3.0.0-alpha.5 → 3.0.0-alpha.50

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.
Files changed (213) hide show
  1. package/dist/lib/core-types.d.ts +1 -0
  2. package/dist/lib/plugins-basic-types.d.ts +1 -0
  3. package/dist/orbcharts-presets-basic.es.js +1379 -385
  4. package/dist/orbcharts-presets-basic.umd.js +1 -1
  5. package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.d.ts +4 -0
  6. package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.d.ts +4 -0
  7. package/dist/src/grid/PRESET_BARS_ROUND.d.ts +4 -0
  8. package/dist/src/grid/PRESET_BARS_THIN.d.ts +4 -0
  9. package/dist/src/grid/PRESET_GRID_BASIC.d.ts +4 -0
  10. package/dist/src/grid/PRESET_GRID_HORIZONTAL.d.ts +4 -0
  11. package/dist/src/grid/PRESET_GRID_PN_SCALE.d.ts +4 -0
  12. package/dist/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.d.ts +4 -0
  13. package/dist/src/grid/PRESET_GRID_SEPARATE_SERIES.d.ts +4 -0
  14. package/dist/src/grid/PRESET_LINES_BASIC.d.ts +4 -0
  15. package/dist/src/grid/PRESET_LINES_CURVE.d.ts +4 -0
  16. package/dist/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
  17. package/dist/src/grid/PRESET_LINES_HORIZONTAL.d.ts +4 -0
  18. package/dist/src/grid/PRESET_LINES_LOOSE_TICKS.d.ts +4 -0
  19. package/dist/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.d.ts +4 -0
  20. package/dist/src/grid/PRESET_LINES_WITH_SOLID_DOTS.d.ts +4 -0
  21. package/dist/src/grid/PRESET_LINE_AREAS_BASIC.d.ts +4 -0
  22. package/dist/src/grid/PRESET_LINE_AREAS_CURVE.d.ts +4 -0
  23. package/dist/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
  24. package/dist/src/grid/PRESET_LINE_AREAS_HORIZONTAL.d.ts +4 -0
  25. package/dist/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.d.ts +4 -0
  26. package/dist/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.d.ts +4 -0
  27. package/dist/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.d.ts +4 -0
  28. package/dist/src/grid/index.d.ts +23 -0
  29. package/dist/src/index.d.ts +4 -18
  30. package/dist/src/multiGrid/PRESET_MULTI_GRID_BASIC.d.ts +4 -0
  31. package/dist/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.d.ts +4 -0
  32. package/dist/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.d.ts +6 -0
  33. package/dist/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.d.ts +4 -0
  34. package/dist/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.d.ts +4 -0
  35. package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.d.ts +4 -0
  36. package/dist/src/multiGrid/index.d.ts +6 -0
  37. package/dist/src/params.d.ts +7 -0
  38. package/dist/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
  39. package/dist/src/series/PRESET_BUBBLES_SEPARATE_SERIES.d.ts +4 -0
  40. package/dist/src/series/PRESET_PIE_BASIC.d.ts +4 -0
  41. package/dist/src/series/PRESET_PIE_DONUT.d.ts +4 -0
  42. package/dist/src/series/PRESET_PIE_HALF_DONUT.d.ts +4 -0
  43. package/dist/src/series/PRESET_PIE_WITH_INNER_LABELS.d.ts +4 -0
  44. package/dist/src/series/PRESET_ROSE_BASIC.d.ts +4 -0
  45. package/dist/src/series/PRESET_ROSE_SCALING_BY_RADIUS.d.ts +4 -0
  46. package/dist/src/series/PRESET_SERIES_BASIC.d.ts +4 -0
  47. package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES.d.ts +4 -0
  48. package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.d.ts +4 -0
  49. package/dist/src/series/PRESET_SERIES_SUM_SERIES.d.ts +4 -0
  50. package/dist/src/series/index.d.ts +12 -0
  51. package/dist/src/tree/PRESET_TREE_BASIC.d.ts +4 -0
  52. package/dist/src/tree/index.d.ts +1 -0
  53. package/dist/src/types.d.ts +112 -37
  54. package/dist/vite.config.d.ts +1 -1
  55. package/lib/core-types.ts +7 -0
  56. package/lib/plugins-basic-types.ts +6 -0
  57. package/package.json +5 -6
  58. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +62 -0
  59. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +59 -0
  60. package/src/grid/PRESET_BARS_ROUND.ts +46 -0
  61. package/src/grid/PRESET_BARS_THIN.ts +43 -0
  62. package/src/grid/PRESET_GRID_BASIC.ts +25 -0
  63. package/src/grid/PRESET_GRID_HORIZONTAL.ts +42 -0
  64. package/src/grid/PRESET_GRID_PN_SCALE.ts +33 -0
  65. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +33 -0
  66. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +38 -0
  67. package/src/grid/PRESET_LINES_BASIC.ts +44 -0
  68. package/src/grid/PRESET_LINES_CURVE.ts +47 -0
  69. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +46 -0
  70. package/src/grid/PRESET_LINES_HORIZONTAL.ts +60 -0
  71. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +46 -0
  72. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +49 -0
  73. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +48 -0
  74. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +54 -0
  75. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +59 -0
  76. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +58 -0
  77. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +58 -0
  78. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +56 -0
  79. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +59 -0
  80. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +61 -0
  81. package/src/grid/index.ts +23 -0
  82. package/src/index.ts +4 -133
  83. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +36 -0
  84. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +85 -0
  85. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +57 -0
  86. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +59 -0
  87. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +103 -0
  88. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +121 -0
  89. package/src/multiGrid/index.ts +6 -0
  90. package/src/params.ts +57 -0
  91. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +19 -0
  92. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -0
  93. package/src/series/PRESET_PIE_BASIC.ts +19 -0
  94. package/src/series/PRESET_PIE_DONUT.ts +27 -0
  95. package/src/series/PRESET_PIE_HALF_DONUT.ts +40 -0
  96. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +28 -0
  97. package/src/series/PRESET_ROSE_BASIC.ts +19 -0
  98. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +27 -0
  99. package/src/series/PRESET_SERIES_BASIC.ts +15 -0
  100. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +17 -0
  101. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +18 -0
  102. package/src/series/PRESET_SERIES_SUM_SERIES.ts +17 -0
  103. package/src/series/index.ts +13 -0
  104. package/src/tree/PRESET_TREE_BASIC.ts +25 -0
  105. package/src/tree/index.ts +1 -0
  106. package/src/types.ts +237 -55
  107. package/tsconfig.base.json +14 -0
  108. package/tsconfig.json +1 -12
  109. package/vite.config.js +17 -39
  110. package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.d.ts +0 -3
  111. package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
  112. package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.d.ts +0 -3
  113. package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
  114. package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING.d.ts +0 -3
  115. package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.d.ts +0 -3
  116. package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
  117. package/dist/src/chartParamsFiles/CP_LEFT_PADDING.d.ts +0 -3
  118. package/dist/src/chartParamsFiles/CP_RIGHT_PADDING.d.ts +0 -3
  119. package/dist/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.d.ts +0 -3
  120. package/dist/src/chartParamsFiles/index.d.ts +0 -10
  121. package/dist/src/createPreset.d.ts +0 -9
  122. package/dist/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.d.ts +0 -3
  123. package/dist/src/gridDataFormatterFiles/index.d.ts +0 -1
  124. package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.d.ts +0 -4
  125. package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.d.ts +0 -4
  126. package/dist/src/gridPluginParamsFiles/Bars/index.d.ts +0 -2
  127. package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.d.ts +0 -4
  128. package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.d.ts +0 -4
  129. package/dist/src/gridPluginParamsFiles/Dots/index.d.ts +0 -2
  130. package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.d.ts +0 -4
  131. package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -4
  132. package/dist/src/gridPluginParamsFiles/GridLegend/index.d.ts +0 -2
  133. package/dist/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.d.ts +0 -4
  134. package/dist/src/gridPluginParamsFiles/GroupAxis/index.d.ts +0 -1
  135. package/dist/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.d.ts +0 -4
  136. package/dist/src/gridPluginParamsFiles/Lines/index.d.ts +0 -1
  137. package/dist/src/gridPluginParamsFiles/index.d.ts +0 -5
  138. package/dist/src/multiGridDataFormatterFiles/index.d.ts +0 -1
  139. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.d.ts +0 -4
  140. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.d.ts +0 -4
  141. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/index.d.ts +0 -2
  142. package/dist/src/multiGridPluginParamsFiles/index.d.ts +0 -1
  143. package/dist/src/multiValueDataFormatterFiles/index.d.ts +0 -1
  144. package/dist/src/multiValuePluginParamsFiles/index.d.ts +0 -1
  145. package/dist/src/relationshipDataFormatterFiles/index.d.ts +0 -1
  146. package/dist/src/relationshipPluginParamsFiles/index.d.ts +0 -1
  147. package/dist/src/seriesDataFormatterFiles/index.d.ts +0 -1
  148. package/dist/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.d.ts +0 -4
  149. package/dist/src/seriesPluginParamsFiles/Bubbles/index.d.ts +0 -1
  150. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.d.ts +0 -0
  151. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.d.ts +0 -4
  152. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.d.ts +0 -4
  153. package/dist/src/seriesPluginParamsFiles/Pie/index.d.ts +0 -2
  154. package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.d.ts +0 -4
  155. package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.d.ts +0 -4
  156. package/dist/src/seriesPluginParamsFiles/PieLabels/index.d.ts +0 -2
  157. package/dist/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.d.ts +0 -4
  158. package/dist/src/seriesPluginParamsFiles/SeriesLegend/index.d.ts +0 -1
  159. package/dist/src/seriesPluginParamsFiles/index.d.ts +0 -4
  160. package/dist/src/treeDataFormatterFiles/index.d.ts +0 -1
  161. package/dist/src/treePluginParamsFiles/index.d.ts +0 -1
  162. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +0 -14
  163. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  164. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +0 -14
  165. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  166. package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +0 -14
  167. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +0 -15
  168. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  169. package/src/chartParamsFiles/CP_LEFT_PADDING.ts +0 -14
  170. package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +0 -14
  171. package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +0 -14
  172. package/src/chartParamsFiles/index.ts +0 -10
  173. package/src/createPreset.ts +0 -88
  174. package/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.ts +0 -16
  175. package/src/gridDataFormatterFiles/index.ts +0 -1
  176. package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +0 -15
  177. package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +0 -14
  178. package/src/gridPluginParamsFiles/Bars/index.ts +0 -2
  179. package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +0 -12
  180. package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +0 -14
  181. package/src/gridPluginParamsFiles/Dots/index.ts +0 -2
  182. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +0 -14
  183. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +0 -15
  184. package/src/gridPluginParamsFiles/GridLegend/index.ts +0 -2
  185. package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +0 -12
  186. package/src/gridPluginParamsFiles/GroupAxis/index.ts +0 -1
  187. package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +0 -13
  188. package/src/gridPluginParamsFiles/Lines/index.ts +0 -1
  189. package/src/gridPluginParamsFiles/index.ts +0 -6
  190. package/src/multiGridDataFormatterFiles/index.ts +0 -1
  191. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.ts +0 -14
  192. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.ts +0 -21
  193. package/src/multiGridPluginParamsFiles/MultiGridLegend/index.ts +0 -2
  194. package/src/multiGridPluginParamsFiles/index.ts +0 -1
  195. package/src/multiValueDataFormatterFiles/index.ts +0 -1
  196. package/src/multiValuePluginParamsFiles/index.ts +0 -1
  197. package/src/relationshipDataFormatterFiles/index.ts +0 -1
  198. package/src/relationshipPluginParamsFiles/index.ts +0 -1
  199. package/src/seriesDataFormatterFiles/index.ts +0 -1
  200. package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +0 -12
  201. package/src/seriesPluginParamsFiles/Bubbles/index.ts +0 -1
  202. package/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.ts +0 -0
  203. package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +0 -12
  204. package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +0 -14
  205. package/src/seriesPluginParamsFiles/Pie/index.ts +0 -2
  206. package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +0 -13
  207. package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +0 -13
  208. package/src/seriesPluginParamsFiles/PieLabels/index.ts +0 -2
  209. package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +0 -12
  210. package/src/seriesPluginParamsFiles/SeriesLegend/index.ts +0 -1
  211. package/src/seriesPluginParamsFiles/index.ts +0 -4
  212. package/src/treeDataFormatterFiles/index.ts +0 -1
  213. package/src/treePluginParamsFiles/index.ts +0 -1
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { DotsParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_DOTS_ONLY_SHOW_HIGHLIGHTED: PluginParamsFile<DotsParams>;
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { DotsParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_DOTS_SOLID: PluginParamsFile<DotsParams>;
@@ -1,2 +0,0 @@
1
- export { PP_DOTS_ONLY_SHOW_HIGHLIGHTED } from './PP_DOTS_ONLY_SHOW_HIGHLIGHTED';
2
- export { PP_DOTS_SOLID } from './PP_DOTS_SOLID';
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { GridLegendParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_GRID_LEGEND_BOTTOM: PluginParamsFile<GridLegendParams>;
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { GridLegendParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST: PluginParamsFile<GridLegendParams>;
@@ -1,2 +0,0 @@
1
- export { PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST } from './PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST';
2
- export { PP_GRID_LEGEND_BOTTOM } from './PP_GRID_LEGEND_BOTTOM';
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { GroupAxisParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_GROUP_AXIS_ROTATE_LABEL: PluginParamsFile<GroupAxisParams>;
@@ -1 +0,0 @@
1
- export { PP_GROUP_AXIS_ROTATE_LABEL } from './PP_GROUP_AXIS_ROTATE_LABEL';
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { LinesParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_LINES_CURVE: PluginParamsFile<LinesParams>;
@@ -1 +0,0 @@
1
- export { PP_LINES_CURVE } from './PP_LINES_CURVE';
@@ -1,5 +0,0 @@
1
- export * from './Bars';
2
- export * from './Dots';
3
- export * from './GridLegend';
4
- export * from './GroupAxis';
5
- export * from './Lines';
@@ -1 +0,0 @@
1
- export declare const temp: {};
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { GridLegendParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_GRID_LEGEND_BOTTOM: PluginParamsFile<GridLegendParams>;
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { MultiGridLegendParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST: PluginParamsFile<MultiGridLegendParams>;
@@ -1,2 +0,0 @@
1
- export { PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST } from './PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST';
2
- export { PP_GRID_LEGEND_BOTTOM } from './PP_MULTI_GRID_LEGEND_BOTTOM';
@@ -1 +0,0 @@
1
- export * from './MultiGridLegend';
@@ -1 +0,0 @@
1
- export declare const temp: {};
@@ -1 +0,0 @@
1
- export declare const temp: {};
@@ -1 +0,0 @@
1
- export declare const temp: {};
@@ -1 +0,0 @@
1
- export declare const temp: {};
@@ -1 +0,0 @@
1
- export declare const temp: {};
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { BubblesParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_BUBBLES_SCALING_BY_RADIUS: PluginParamsFile<BubblesParams>;
@@ -1 +0,0 @@
1
- export { PP_BUBBLES_SCALING_BY_RADIUS } from './PP_BUBBLES_SCALING_BY_RADIUS';
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { PieParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_PIE_DONUT: PluginParamsFile<PieParams>;
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { PieParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_PIE_HALF_DONUT: PluginParamsFile<PieParams>;
@@ -1,2 +0,0 @@
1
- export { PP_PIE_DONUT } from './PP_PIE_DONUT';
2
- export { PP_PIE_HALF_DONUT } from './PP_PIE_HALF_DONUT';
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { PieLabelsParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_PIE_LABELS_HALF_ANGLE: PluginParamsFile<PieLabelsParams>;
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { PieLabelsParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_PIE_LABELS_INNER: PluginParamsFile<PieLabelsParams>;
@@ -1,2 +0,0 @@
1
- export { PP_PIE_LABELS_HALF_ANGLE } from './PP_PIE_LABELS_HALF_ANGLE';
2
- export { PP_PIE_LABELS_INNER } from './PP_PIE_LABELS_INNER';
@@ -1,4 +0,0 @@
1
- import { PluginParamsFile } from '../../types';
2
- import { SeriesLegendParams } from '@orbcharts/plugins-basic';
3
-
4
- export declare const PP_SERIES_LEGEND_ROUND: PluginParamsFile<SeriesLegendParams>;
@@ -1 +0,0 @@
1
- export { PP_SERIES_LEGEND_ROUND } from './PP_SERIES_LEGEND_ROUND';
@@ -1,4 +0,0 @@
1
- export * from './Bubbles';
2
- export * from './Pie';
3
- export * from './PieLabels';
4
- export * from './SeriesLegend';
@@ -1 +0,0 @@
1
- export declare const temp: {};
@@ -1 +0,0 @@
1
- export declare const temp: {};
@@ -1,14 +0,0 @@
1
- import type { ChartParamsFile } from '../types'
2
-
3
- export const CP_BOTTOM_AND_LEFT_PADDING: ChartParamsFile = {
4
- id: 'CP_BOTTOM_AND_LEFT_PADDING',
5
- description: '間距下面及左邊留空',
6
- data: {
7
- padding: {
8
- top: 60,
9
- right: 60,
10
- bottom: 120,
11
- left: 120
12
- },
13
- }
14
- }
@@ -1,15 +0,0 @@
1
- import type { ChartParamsFile } from '../types'
2
-
3
- export const CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT: ChartParamsFile = {
4
- id: 'CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT',
5
- description: '間距下面及左邊留空',
6
- data: {
7
- padding: {
8
- top: 60,
9
- right: 60,
10
- bottom: 120,
11
- left: 120
12
- },
13
- highlightTarget: 'series'
14
- }
15
- }
@@ -1,14 +0,0 @@
1
- import type { ChartParamsFile } from '../types'
2
-
3
- export const CP_BOTTOM_LONG_PADDING: ChartParamsFile = {
4
- id: 'CP_BOTTOM_LONG_PADDING',
5
- description: '間距下面加長留空',
6
- data: {
7
- padding: {
8
- top: 60,
9
- right: 60,
10
- bottom: 140,
11
- left: 60
12
- },
13
- }
14
- }
@@ -1,15 +0,0 @@
1
- import type { ChartParamsFile } from '../types'
2
-
3
- export const CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT: ChartParamsFile = {
4
- id: 'CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT',
5
- description: '間距下面加長留空及highlight系列',
6
- data: {
7
- padding: {
8
- top: 60,
9
- right: 60,
10
- bottom: 140,
11
- left: 60
12
- },
13
- highlightTarget: 'series'
14
- }
15
- }
@@ -1,14 +0,0 @@
1
- import type { ChartParamsFile } from '../types'
2
-
3
- export const CP_BOTTOM_PADDING: ChartParamsFile = {
4
- id: 'CP_BOTTOM_PADDING',
5
- description: '間距下面留空',
6
- data: {
7
- padding: {
8
- top: 60,
9
- right: 60,
10
- bottom: 120,
11
- left: 60
12
- },
13
- }
14
- }
@@ -1,15 +0,0 @@
1
- import type { ChartParamsFile } from '../types'
2
-
3
- export const CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT: ChartParamsFile = {
4
- id: 'CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT',
5
- description: '間距下面留空及highlight群組',
6
- data: {
7
- padding: {
8
- top: 60,
9
- right: 60,
10
- bottom: 120,
11
- left: 60
12
- },
13
- highlightTarget: 'group'
14
- }
15
- }
@@ -1,15 +0,0 @@
1
- import type { ChartParamsFile } from '../types'
2
-
3
- export const CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT: ChartParamsFile = {
4
- id: 'CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT',
5
- description: '間距下面留空及highlight系列',
6
- data: {
7
- padding: {
8
- top: 60,
9
- right: 60,
10
- bottom: 120,
11
- left: 60
12
- },
13
- highlightTarget: 'series'
14
- }
15
- }
@@ -1,14 +0,0 @@
1
- import type { ChartParamsFile } from '../types'
2
-
3
- export const CP_LEFT_PADDING: ChartParamsFile = {
4
- id: 'CP_LEFT_PADDING',
5
- description: '間距右邊留空',
6
- data: {
7
- padding: {
8
- top: 60,
9
- right: 60,
10
- bottom: 60,
11
- left: 120
12
- },
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- import type { ChartParamsFile } from '../types'
2
-
3
- export const CP_RIGHT_PADDING: ChartParamsFile = {
4
- id: 'CP_RIGHT_PADDING',
5
- description: '間距右邊留空',
6
- data: {
7
- padding: {
8
- top: 60,
9
- right: 120,
10
- bottom: 60,
11
- left: 60
12
- },
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- import type { ChartParamsFile } from '../types'
2
-
3
- export const CP_TOP_AND_NO_BOTTOM_PADDING: ChartParamsFile = {
4
- id: 'CP_TOP_AND_NO_BOTTOM_PADDING',
5
- description: '間距上面留空下面不留空',
6
- data: {
7
- padding: {
8
- top: 140,
9
- right: 120,
10
- bottom: 0,
11
- left: 60
12
- },
13
- }
14
- }
@@ -1,10 +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_LEFT_PADDING } from './CP_LEFT_PADDING'
9
- export { CP_TOP_AND_NO_BOTTOM_PADDING } from './CP_TOP_AND_NO_BOTTOM_PADDING'
10
- export { CP_RIGHT_PADDING } from './CP_RIGHT_PADDING'
@@ -1,88 +0,0 @@
1
- import type { PresetPartial, ChartType, ChartParamsPartial, DataFormatterPartialTypeMap } from '@orbcharts/core'
2
- import type { ChartParamsFile, DataFormatterFile, PluginParamsFile, PresetFile } from './types'
3
- import * as chartParamsFiles from './chartParamsFiles'
4
- import * as seriesDataFormatterFiles from './seriesDataFormatterFiles'
5
- import * as seriesPluginParamsFiles from './seriesPluginParamsFiles'
6
- import * as gridDataFormatterFiles from './gridDataFormatterFiles'
7
- import * as gridPluginParamsFiles from './gridPluginParamsFiles'
8
- import * as multiGridDataFormatterFiles from './multiGridDataFormatterFiles'
9
- import * as multiGridPluginParamsFiles from './multiGridPluginParamsFiles'
10
- import * as multiValueDataFormatterFiles from './multiValueDataFormatterFiles'
11
- import * as multiValuePluginParamsFiles from './multiValuePluginParamsFiles'
12
- import * as relationshipDataFormatterFiles from './relationshipDataFormatterFiles'
13
- import * as relationshipPluginParamsFiles from './relationshipPluginParamsFiles'
14
- import * as treeDataFormatterFiles from './treeDataFormatterFiles'
15
- import * as treePluginParamsFiles from './treePluginParamsFiles'
16
-
17
- const dataFormatterFilesTypeMap = {
18
- series: seriesDataFormatterFiles,
19
- grid: gridDataFormatterFiles,
20
- multiGrid: multiGridDataFormatterFiles,
21
- multiValue: multiValueDataFormatterFiles,
22
- relationship: relationshipDataFormatterFiles,
23
- tree: treeDataFormatterFiles
24
- }
25
-
26
- const pluginParamsFilesTypeMap = {
27
- series: seriesPluginParamsFiles,
28
- grid: gridPluginParamsFiles,
29
- multiGrid: multiGridPluginParamsFiles,
30
- multiValue: multiValuePluginParamsFiles,
31
- relationship: relationshipPluginParamsFiles,
32
- tree: treePluginParamsFiles
33
- }
34
-
35
- const createBasePreset = <T extends ChartType>(chartType: T, presetFile: PresetFile<T>): PresetPartial<T> => {
36
- const chartParams: ChartParamsPartial | undefined = presetFile.chartParamsId
37
- ? chartParamsFiles[presetFile.chartParamsId].data
38
- : undefined
39
- // @ts-ignore
40
- const dataFormatter: DataFormatterPartialTypeMap<T> | undefined = dataFormatterFilesTypeMap[chartType][presetFile.dataFormatterId]
41
- // @ts-ignore
42
- ? dataFormatterFilesTypeMap[chartType][presetFile.dataFormatterId].data
43
- : undefined
44
-
45
- const allPluginParams: {[key: string]: any} | undefined = presetFile.allPluginParamsIds
46
- ? presetFile.allPluginParamsIds
47
- .reduce((prev, current) => {
48
- // @ts-ignore
49
- if (pluginParamsFilesTypeMap[chartType][current]) {
50
- // @ts-ignore
51
- const pluginName = pluginParamsFilesTypeMap[chartType][current].pluginName
52
- // @ts-ignore
53
- prev[pluginName] = pluginParamsFilesTypeMap[chartType][current].data
54
- }
55
- return prev
56
- }, {})
57
- : undefined
58
-
59
- return {
60
- chartParams,
61
- dataFormatter,
62
- allPluginParams
63
- }
64
- }
65
-
66
- export const createSeriesPreset = (presetFile: PresetFile<'series'>): PresetPartial<'series'> => {
67
- return createBasePreset('series', presetFile)
68
- }
69
-
70
- export const createGridPreset = (presetFile: PresetFile<'grid'>): PresetPartial<'grid'> => {
71
- return createBasePreset('grid', presetFile)
72
- }
73
-
74
- export const createMultiGridPreset = (presetFile: PresetFile<'multiGrid'>): PresetPartial<'multiGrid'> => {
75
- return createBasePreset('multiGrid', presetFile)
76
- }
77
-
78
- export const createMultiValuePreset = (presetFile: PresetFile<'multiValue'>): PresetPartial<'multiValue'> => {
79
- return createBasePreset('multiValue', presetFile)
80
- }
81
-
82
- export const createRelationshipPreset = (presetFile: PresetFile<'relationship'>): PresetPartial<'relationship'> => {
83
- return createBasePreset('relationship', presetFile)
84
- }
85
-
86
- export const createTreePreset = (presetFile: PresetFile<'tree'>): PresetPartial<'tree'> => {
87
- return createBasePreset('tree', presetFile)
88
- }
@@ -1,16 +0,0 @@
1
- import type { DataFormatterFile } from '../types'
2
- import type { BarsParams } from '@orbcharts/plugins-basic'
3
-
4
- export const DF_BOTTOM_VALUE_AXIS: DataFormatterFile<'grid'> = {
5
- id: 'DF_BOTTOM_VALUE_AXIS',
6
- chartType: 'grid',
7
- description: '底部橫向資料圖軸',
8
- data: {
9
- valueAxis: {
10
- position: 'bottom'
11
- },
12
- groupAxis: {
13
- position: 'left'
14
- },
15
- }
16
- }
@@ -1 +0,0 @@
1
- export { DF_BOTTOM_VALUE_AXIS } from './DF_BOTTOM_VALUE_AXIS'
@@ -1,15 +0,0 @@
1
- import type { PluginParamsFile } from '../../types'
2
- import type { BarsParams } from '@orbcharts/plugins-basic'
3
-
4
- export const PP_BARS_ROUND: PluginParamsFile<BarsParams> = {
5
- id: 'PP_BARS_ROUND',
6
- chartType: 'grid',
7
- pluginName: 'Bars',
8
- description: '圓角長條圖',
9
- data: {
10
- barWidth: 0,
11
- barPadding: 1,
12
- barGroupPadding: 10,
13
- barRadius: true,
14
- }
15
- }
@@ -1,14 +0,0 @@
1
- import type { PluginParamsFile } from '../../types'
2
- import type { BarsParams } from '@orbcharts/plugins-basic'
3
-
4
- export const PP_BARS_THIN: PluginParamsFile<BarsParams> = {
5
- id: 'PP_BARS_THIN',
6
- chartType: 'grid',
7
- pluginName: 'Bars',
8
- description: '圓角長條圖',
9
- data: {
10
- barWidth: 20,
11
- barPadding: 1,
12
- barGroupPadding: 10
13
- }
14
- }
@@ -1,2 +0,0 @@
1
- export { PP_BARS_ROUND } from './PP_BARS_ROUND'
2
- export { PP_BARS_THIN } from './PP_BARS_THIN'
@@ -1,12 +0,0 @@
1
- import type { PluginParamsFile } from '../../types'
2
- import type { DotsParams } from '@orbcharts/plugins-basic'
3
-
4
- export const PP_DOTS_ONLY_SHOW_HIGHLIGHTED: PluginParamsFile<DotsParams> = {
5
- id: 'PP_DOTS_ONLY_SHOW_HIGHLIGHTED',
6
- chartType: 'grid',
7
- pluginName: 'Dots',
8
- description: '顯示highlight圓點',
9
- data: {
10
- onlyShowHighlighted: false
11
- }
12
- }
@@ -1,14 +0,0 @@
1
- import type { PluginParamsFile } from '../../types'
2
- import type { DotsParams } from '@orbcharts/plugins-basic'
3
-
4
- export const PP_DOTS_SOLID: PluginParamsFile<DotsParams> = {
5
- id: 'PP_DOTS_SOLID',
6
- chartType: 'grid',
7
- pluginName: 'Dots',
8
- description: '實心圓點',
9
- data: {
10
- radius: 3,
11
- fillColorType: 'series',
12
- onlyShowHighlighted: false
13
- }
14
- }
@@ -1,2 +0,0 @@
1
- export { PP_DOTS_ONLY_SHOW_HIGHLIGHTED } from './PP_DOTS_ONLY_SHOW_HIGHLIGHTED'
2
- export { PP_DOTS_SOLID } from './PP_DOTS_SOLID'
@@ -1,14 +0,0 @@
1
- import type { PluginParamsFile } from '../../types'
2
- import type { GridLegendParams } from '@orbcharts/plugins-basic'
3
-
4
- export const PP_GRID_LEGEND_BOTTOM: PluginParamsFile<GridLegendParams> = {
5
- id: 'PP_GRID_LEGEND_BOTTOM',
6
- chartType: 'grid',
7
- pluginName: 'GridLegend',
8
- description: '底部圖例',
9
- data: {
10
- position: 'bottom',
11
- justify: 'center',
12
- padding: 14,
13
- }
14
- }
@@ -1,15 +0,0 @@
1
- import type { PluginParamsFile } from '../../types'
2
- import type { GridLegendParams } from '@orbcharts/plugins-basic'
3
-
4
- export const PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST: PluginParamsFile<GridLegendParams> = {
5
- id: 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST',
6
- chartType: 'grid',
7
- pluginName: 'GridLegend',
8
- description: '底部圖例及線條列點',
9
- data: {
10
- position: 'bottom',
11
- justify: 'center',
12
- padding: 14,
13
- listRectHeight: 2
14
- }
15
- }
@@ -1,2 +0,0 @@
1
- export { PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST } from './PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'
2
- export { PP_GRID_LEGEND_BOTTOM } from './PP_GRID_LEGEND_BOTTOM'
@@ -1,12 +0,0 @@
1
- import type { PluginParamsFile } from '../../types'
2
- import type { GroupAxisParams } from '@orbcharts/plugins-basic'
3
-
4
- export const PP_GROUP_AXIS_ROTATE_LABEL: PluginParamsFile<GroupAxisParams> = {
5
- id: 'PP_GROUP_AXIS_ROTATE_LABEL',
6
- chartType: 'grid',
7
- pluginName: 'GroupAxis',
8
- description: '群組圖軸標籤文字傾斜',
9
- data: {
10
- tickTextRotate: 40
11
- }
12
- }
@@ -1 +0,0 @@
1
- export { PP_GROUP_AXIS_ROTATE_LABEL } from './PP_GROUP_AXIS_ROTATE_LABEL'
@@ -1,13 +0,0 @@
1
- import type { PluginParamsFile } from '../../types'
2
- import type { LinesParams } from '@orbcharts/plugins-basic'
3
-
4
- export const PP_LINES_CURVE: PluginParamsFile<LinesParams> = {
5
- id: 'PP_LINES_CURVE',
6
- chartType: 'grid',
7
- pluginName: 'Lines',
8
- description: '圓弧折線圖',
9
- data: {
10
- lineCurve: 'curveMonotoneX',
11
- lineWidth: 3
12
- }
13
- }
@@ -1 +0,0 @@
1
- export { PP_LINES_CURVE } from './PP_LINES_CURVE'
@@ -1,6 +0,0 @@
1
- export * from './Bars'
2
- export * from './Dots'
3
- export * from './GridLegend'
4
- export * from './GroupAxis'
5
- export * from './Lines'
6
- // export * from './ValueAxis'
@@ -1 +0,0 @@
1
- export const temp = {}
@@ -1,14 +0,0 @@
1
- import type { PluginParamsFile } from '../../types'
2
- import type { GridLegendParams } from '@orbcharts/plugins-basic'
3
-
4
- export const PP_GRID_LEGEND_BOTTOM: PluginParamsFile<GridLegendParams> = {
5
- id: 'PP_GRID_LEGEND_BOTTOM',
6
- chartType: 'multiGrid',
7
- pluginName: 'MultiGridLegend',
8
- description: '底部圖例',
9
- data: {
10
- position: 'bottom',
11
- justify: 'center',
12
- padding: 14,
13
- }
14
- }