@orbcharts/presets-basic 3.0.0-alpha.8 → 3.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) 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 +1270 -779
  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 +21 -0
  29. package/dist/src/index.d.ts +4 -30
  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 +4 -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 +121 -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 +56 -0
  59. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +52 -0
  60. package/src/grid/PRESET_BARS_ROUND.ts +39 -0
  61. package/src/grid/PRESET_BARS_THIN.ts +36 -0
  62. package/src/grid/PRESET_GRID_BASIC.ts +27 -0
  63. package/src/grid/PRESET_GRID_HORIZONTAL.ts +44 -0
  64. package/src/grid/PRESET_GRID_PN_SCALE.ts +35 -0
  65. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +35 -0
  66. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +40 -0
  67. package/src/grid/PRESET_LINES_BASIC.ts +35 -0
  68. package/src/grid/PRESET_LINES_CURVE.ts +38 -0
  69. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +37 -0
  70. package/src/grid/PRESET_LINES_HORIZONTAL.ts +51 -0
  71. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +37 -0
  72. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +40 -0
  73. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +39 -0
  74. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +43 -0
  75. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +48 -0
  76. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +47 -0
  77. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +47 -0
  78. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +45 -0
  79. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +48 -0
  80. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +50 -0
  81. package/src/grid/index.ts +23 -0
  82. package/src/index.ts +4 -218
  83. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +38 -0
  84. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +86 -0
  85. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +58 -0
  86. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +60 -0
  87. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +86 -0
  88. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +104 -0
  89. package/src/multiGrid/index.ts +6 -0
  90. package/src/params.ts +61 -0
  91. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +18 -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 +24 -0
  95. package/src/series/PRESET_PIE_HALF_DONUT.ts +37 -0
  96. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +25 -0
  97. package/src/series/PRESET_ROSE_BASIC.ts +20 -0
  98. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +25 -0
  99. package/src/series/PRESET_SERIES_BASIC.ts +16 -0
  100. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +18 -0
  101. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +19 -0
  102. package/src/series/PRESET_SERIES_SUM_SERIES.ts +18 -0
  103. package/src/series/index.ts +13 -0
  104. package/src/tree/PRESET_TREE_BASIC.ts +27 -0
  105. package/src/tree/index.ts +1 -0
  106. package/src/types.ts +263 -56
  107. package/{tsconfig.prod.json → tsconfig.base.json} +1 -1
  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_GRID_2_SERIES_SLOT.d.ts +0 -3
  123. package/dist/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.d.ts +0 -3
  124. package/dist/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.d.ts +0 -3
  125. package/dist/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.d.ts +0 -3
  126. package/dist/src/gridDataFormatterFiles/index.d.ts +0 -4
  127. package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.d.ts +0 -4
  128. package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.d.ts +0 -4
  129. package/dist/src/gridPluginParamsFiles/Bars/index.d.ts +0 -2
  130. package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.d.ts +0 -4
  131. package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.d.ts +0 -4
  132. package/dist/src/gridPluginParamsFiles/Dots/index.d.ts +0 -2
  133. package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.d.ts +0 -4
  134. package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -4
  135. package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.d.ts +0 -4
  136. package/dist/src/gridPluginParamsFiles/GridLegend/index.d.ts +0 -3
  137. package/dist/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.d.ts +0 -4
  138. package/dist/src/gridPluginParamsFiles/GroupAxis/index.d.ts +0 -1
  139. package/dist/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.d.ts +0 -4
  140. package/dist/src/gridPluginParamsFiles/Lines/index.d.ts +0 -1
  141. package/dist/src/gridPluginParamsFiles/index.d.ts +0 -5
  142. package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.d.ts +0 -3
  143. package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.d.ts +0 -3
  144. package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.d.ts +0 -3
  145. package/dist/src/multiGridDataFormatterFiles/index.d.ts +0 -3
  146. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.d.ts +0 -4
  147. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.d.ts +0 -4
  148. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.d.ts +0 -4
  149. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/index.d.ts +0 -3
  150. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.d.ts +0 -4
  151. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.d.ts +0 -4
  152. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.d.ts +0 -4
  153. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.d.ts +0 -4
  154. package/dist/src/multiGridPluginParamsFiles/MultiBars/index.d.ts +0 -4
  155. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.d.ts +0 -4
  156. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.d.ts +0 -4
  157. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.d.ts +0 -4
  158. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.d.ts +0 -3
  159. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.d.ts +0 -4
  160. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -4
  161. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.d.ts +0 -4
  162. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.d.ts +0 -4
  163. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/index.d.ts +0 -4
  164. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.d.ts +0 -4
  165. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.d.ts +0 -4
  166. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.d.ts +0 -4
  167. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/index.d.ts +0 -3
  168. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.d.ts +0 -4
  169. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.d.ts +0 -4
  170. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.d.ts +0 -4
  171. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.d.ts +0 -4
  172. package/dist/src/multiGridPluginParamsFiles/MultiLines/index.d.ts +0 -4
  173. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.d.ts +0 -4
  174. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.d.ts +0 -4
  175. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.d.ts +0 -4
  176. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/index.d.ts +0 -3
  177. package/dist/src/multiGridPluginParamsFiles/index.d.ts +0 -7
  178. package/dist/src/multiValueDataFormatterFiles/index.d.ts +0 -1
  179. package/dist/src/multiValuePluginParamsFiles/index.d.ts +0 -1
  180. package/dist/src/relationshipDataFormatterFiles/index.d.ts +0 -1
  181. package/dist/src/relationshipPluginParamsFiles/index.d.ts +0 -1
  182. package/dist/src/seriesDataFormatterFiles/index.d.ts +0 -1
  183. package/dist/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.d.ts +0 -4
  184. package/dist/src/seriesPluginParamsFiles/Bubbles/index.d.ts +0 -1
  185. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.d.ts +0 -0
  186. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.d.ts +0 -4
  187. package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.d.ts +0 -4
  188. package/dist/src/seriesPluginParamsFiles/Pie/index.d.ts +0 -2
  189. package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.d.ts +0 -4
  190. package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.d.ts +0 -4
  191. package/dist/src/seriesPluginParamsFiles/PieLabels/index.d.ts +0 -2
  192. package/dist/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.d.ts +0 -4
  193. package/dist/src/seriesPluginParamsFiles/SeriesLegend/index.d.ts +0 -1
  194. package/dist/src/seriesPluginParamsFiles/index.d.ts +0 -4
  195. package/dist/src/treeDataFormatterFiles/index.d.ts +0 -1
  196. package/dist/src/treePluginParamsFiles/index.d.ts +0 -1
  197. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +0 -14
  198. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  199. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +0 -14
  200. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  201. package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +0 -14
  202. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +0 -15
  203. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
  204. package/src/chartParamsFiles/CP_LEFT_PADDING.ts +0 -14
  205. package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +0 -14
  206. package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +0 -14
  207. package/src/chartParamsFiles/index.ts +0 -10
  208. package/src/createPreset.ts +0 -88
  209. package/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.ts +0 -16
  210. package/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.ts +0 -16
  211. package/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.ts +0 -16
  212. package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.ts +0 -23
  213. package/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.ts +0 -15
  214. package/src/gridDataFormatterFiles/index.ts +0 -5
  215. package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +0 -15
  216. package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +0 -14
  217. package/src/gridPluginParamsFiles/Bars/index.ts +0 -2
  218. package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +0 -12
  219. package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +0 -14
  220. package/src/gridPluginParamsFiles/Dots/index.ts +0 -2
  221. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +0 -14
  222. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +0 -15
  223. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.ts +0 -15
  224. package/src/gridPluginParamsFiles/GridLegend/index.ts +0 -3
  225. package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +0 -13
  226. package/src/gridPluginParamsFiles/GroupAxis/index.ts +0 -1
  227. package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +0 -13
  228. package/src/gridPluginParamsFiles/Lines/index.ts +0 -1
  229. package/src/gridPluginParamsFiles/index.ts +0 -6
  230. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.ts +0 -21
  231. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.ts +0 -24
  232. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.ts +0 -27
  233. package/src/multiGridDataFormatterFiles/index.ts +0 -3
  234. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.ts +0 -12
  235. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.ts +0 -12
  236. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.ts +0 -12
  237. package/src/multiGridPluginParamsFiles/MultiBarStack/index.ts +0 -4
  238. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.ts +0 -12
  239. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.ts +0 -12
  240. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.ts +0 -12
  241. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.ts +0 -15
  242. package/src/multiGridPluginParamsFiles/MultiBars/index.ts +0 -5
  243. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.ts +0 -12
  244. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.ts +0 -12
  245. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.ts +0 -12
  246. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.ts +0 -3
  247. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.ts +0 -14
  248. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +0 -28
  249. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.ts +0 -21
  250. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.ts +0 -22
  251. package/src/multiGridPluginParamsFiles/MultiGridLegend/index.ts +0 -4
  252. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.ts +0 -13
  253. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.ts +0 -13
  254. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.ts +0 -13
  255. package/src/multiGridPluginParamsFiles/MultiGroupAxis/index.ts +0 -3
  256. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.ts +0 -12
  257. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.ts +0 -12
  258. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.ts +0 -12
  259. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.ts +0 -13
  260. package/src/multiGridPluginParamsFiles/MultiLines/index.ts +0 -4
  261. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.ts +0 -12
  262. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.ts +0 -12
  263. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.ts +0 -12
  264. package/src/multiGridPluginParamsFiles/MultiValueAxis/index.ts +0 -3
  265. package/src/multiGridPluginParamsFiles/index.ts +0 -7
  266. package/src/multiValueDataFormatterFiles/index.ts +0 -1
  267. package/src/multiValuePluginParamsFiles/index.ts +0 -1
  268. package/src/relationshipDataFormatterFiles/index.ts +0 -1
  269. package/src/relationshipPluginParamsFiles/index.ts +0 -1
  270. package/src/seriesDataFormatterFiles/index.ts +0 -1
  271. package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +0 -12
  272. package/src/seriesPluginParamsFiles/Bubbles/index.ts +0 -1
  273. package/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.ts +0 -0
  274. package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +0 -12
  275. package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +0 -14
  276. package/src/seriesPluginParamsFiles/Pie/index.ts +0 -2
  277. package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +0 -13
  278. package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +0 -13
  279. package/src/seriesPluginParamsFiles/PieLabels/index.ts +0 -2
  280. package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +0 -12
  281. package/src/seriesPluginParamsFiles/SeriesLegend/index.ts +0 -1
  282. package/src/seriesPluginParamsFiles/index.ts +0 -4
  283. package/src/treeDataFormatterFiles/index.ts +0 -1
  284. package/src/treePluginParamsFiles/index.ts +0 -1
  285. package/tsconfig.dev.json +0 -18
@@ -1,43 +1,127 @@
1
- import { ChartParamsPartial, DataFormatterPartialTypeMap, ChartType } from '@orbcharts/core/src/index';
1
+ import { BubblesParams, PieParams, PieEventTextsParams, PieLabelsParams, RoseParams, RoseLabelsParams, SeriesLegendParams, SeriesTooltipParams, BarsParams, BarsPNParams, BarStackParams, BarsTriangleParams, DotsParams, GridLegendParams, GroupAuxParams, GroupAxisParams, LineAreasParams, LinesParams, GridTooltipParams, GridZoomParams, ValueAxisParams, ValueStackAxisParams, MultiBarsParams, MultiBarStackParams, MultiBarsTriangleParams, MultiDotsParams, MultiGridLegendParams, MultiGridTooltipParams, MultiGroupAxisParams, MultiLineAreasParams, MultiLinesParams, MultiValueAxisParams, MultiValueStackAxisParams, OverlappingValueAxesParams, OverlappingValueStackAxesParams, TreeLegendParams, TreeMapParams, TreeTooltipParams } from '../lib/plugins-basic-types';
2
2
 
3
- import * as chartParams from './chartParamsFiles';
4
- import * as seriesDataFormatters from './seriesDataFormatterFiles';
5
- import * as seriesPluginParams from './seriesPluginParamsFiles';
6
- import * as gridDataFormatters from './gridDataFormatterFiles';
7
- import * as gridPluginParams from './gridPluginParamsFiles';
8
- import * as multiGridDataFormatters from './multiGridDataFormatterFiles';
9
- import * as multiGridPluginParams from './multiGridPluginParamsFiles';
10
- import * as multiValueDataFormatters from './multiValueDataFormatterFiles';
11
- import * as multiValuePluginParams from './multiValuePluginParamsFiles';
12
- import * as relationshipDataFormatters from './relationshipDataFormatterFiles';
13
- import * as relationshipPluginParams from './relationshipPluginParamsFiles';
14
- import * as treeDataFormatters from './treeDataFormatterFiles';
15
- import * as treePluginParams from './treePluginParamsFiles';
16
3
  type DeepPartial<T> = Partial<{
17
4
  [P in keyof T]: DeepPartial<T[P]>;
18
5
  }>;
19
- export interface ChartParamsFile {
20
- id: string;
21
- description: string;
22
- data: ChartParamsPartial;
23
- }
24
- export interface DataFormatterFile<T extends ChartType> {
25
- id: string;
26
- chartType: T;
27
- description: string;
28
- data: DataFormatterPartialTypeMap<T>;
29
- }
30
- export interface PluginParamsFile<PluginParams> {
31
- id: string;
32
- chartType: ChartType;
33
- pluginName: string;
34
- description: string;
35
- data: DeepPartial<PluginParams>;
36
- }
37
- export interface PresetFile<T extends ChartType> {
38
- chartParamsId?: keyof typeof chartParams;
39
- dataFormatterId?: T extends 'series' ? keyof typeof seriesDataFormatters : T extends 'grid' ? keyof typeof gridDataFormatters : T extends 'multiGrid' ? keyof typeof multiGridDataFormatters : T extends 'multiValue' ? keyof typeof multiValueDataFormatters : T extends 'relationship' ? keyof typeof relationshipDataFormatters : T extends 'tree' ? keyof typeof treeDataFormatters : undefined;
40
- allPluginParamsIds?: T extends 'series' ? (keyof typeof seriesPluginParams)[] : T extends 'grid' ? (keyof typeof gridPluginParams)[] : T extends 'multiGrid' ? (keyof typeof multiGridPluginParams)[] : T extends 'multiValue' ? (keyof typeof multiValuePluginParams)[] : T extends 'relationship' ? (keyof typeof relationshipPluginParams)[] : T extends 'tree' ? (keyof typeof treePluginParams)[] : undefined;
41
- description: string;
6
+ export type PresetSeriesPluginParams = PresetBubblesParams & PresetPieParams & PresetPieEventTextsParams & PresetPieLabelsParams & PresetRoseParams & PresetRoseLabelsParams & PresetSeriesLegendParams & PresetSeriesTooltipParams;
7
+ export interface PresetBubblesParams {
8
+ Bubbles: Partial<BubblesParams>;
42
9
  }
10
+ export interface PresetPieParams {
11
+ Pie: Partial<PieParams>;
12
+ }
13
+ export interface PresetPieEventTextsParams {
14
+ PieEventTexts: Partial<PieEventTextsParams>;
15
+ }
16
+ export interface PresetPieLabelsParams {
17
+ PieLabels: Partial<PieLabelsParams>;
18
+ }
19
+ export interface PresetRoseParams {
20
+ Rose: Partial<RoseParams>;
21
+ }
22
+ export interface PresetRoseLabelsParams {
23
+ RoseLabels: Partial<RoseLabelsParams>;
24
+ }
25
+ export interface PresetSeriesLegendParams {
26
+ SeriesLegend: Partial<SeriesLegendParams>;
27
+ }
28
+ export interface PresetSeriesTooltipParams {
29
+ SeriesTooltip: Partial<SeriesTooltipParams>;
30
+ }
31
+ export type PresetGridPluginParams = PresetBarsParams & PresetBarsPNParams & PresetBarStackParams & PresetBarsTriangleParams & PresetDotsParams & PresetGridLegendParams & PresetGridTooltipParams & PresetGroupAuxParams & PresetGroupAxisParams & PresetLineAreasParams & PresetLinesParams & PresetGridZoomParams & PresetValueAxisParams & PresetValueStackAxisParams;
32
+ export interface PresetBarsParams {
33
+ Bars: Partial<BarsParams>;
34
+ }
35
+ export interface PresetBarsPNParams {
36
+ BarsPN: Partial<BarsPNParams>;
37
+ }
38
+ export interface PresetBarStackParams {
39
+ BarStack: Partial<BarStackParams>;
40
+ }
41
+ export interface PresetBarsTriangleParams {
42
+ BarsTriangle: Partial<BarsTriangleParams>;
43
+ }
44
+ export interface PresetDotsParams {
45
+ Dots: Partial<DotsParams>;
46
+ }
47
+ export interface PresetGridLegendParams {
48
+ GridLegend: Partial<GridLegendParams>;
49
+ }
50
+ export interface PresetGridTooltipParams {
51
+ GridTooltip: Partial<GridTooltipParams>;
52
+ }
53
+ export interface PresetGroupAuxParams {
54
+ GroupAux: Partial<GroupAuxParams>;
55
+ }
56
+ export interface PresetGroupAxisParams {
57
+ GroupAxis: Partial<GroupAxisParams>;
58
+ }
59
+ export interface PresetLineAreasParams {
60
+ LineAreas: Partial<LineAreasParams>;
61
+ }
62
+ export interface PresetLinesParams {
63
+ Lines: Partial<LinesParams>;
64
+ }
65
+ export interface PresetGridZoomParams {
66
+ GridZoom: Partial<GridZoomParams>;
67
+ }
68
+ export interface PresetValueAxisParams {
69
+ ValueAxis: Partial<ValueAxisParams>;
70
+ }
71
+ export interface PresetValueStackAxisParams {
72
+ ValueStackAxis: Partial<ValueStackAxisParams>;
73
+ }
74
+ export type PresetMultiGridPluginParams = PresetMultiBarsParams & PresetMultiBarStackParams & PresetMultiBarsTriangleParams & PresetMultiDotsParams & PresetMultiGridLegendParams & PresetMultiGridTooltipParams & PresetMultiGroupAxisParams & PresetMultiLineAreasParams & PresetMultiLinesParams & PresetMultiValueAxisParams & PresetMultiValueStackAxisParams & PresetOverlappingValueAxesParams & PresetOverlappingValueStackAxesParams;
75
+ export type PresetMultiGridSepratedPluginParams = Omit<PresetMultiGridPluginParams, 'OverlappingValueAxes' | 'OverlappingValueStackAxes'>;
76
+ export type PresetMultiGridOverlappedPluginParams = Omit<PresetMultiGridPluginParams, 'PresetMultiGroupAxisParams' | 'PresetMultiValueAxisParams'>;
77
+ export interface PresetMultiBarsParams {
78
+ MultiBars: Partial<MultiBarsParams>;
79
+ }
80
+ export interface PresetMultiBarStackParams {
81
+ MultiBarStack: Partial<MultiBarStackParams>;
82
+ }
83
+ export interface PresetMultiBarsTriangleParams {
84
+ MultiBarsTriangle: Partial<MultiBarsTriangleParams>;
85
+ }
86
+ export interface PresetMultiDotsParams {
87
+ MultiDots: Partial<MultiDotsParams>;
88
+ }
89
+ export interface PresetMultiGridLegendParams {
90
+ MultiGridLegend: DeepPartial<MultiGridLegendParams>;
91
+ }
92
+ export interface PresetMultiGridTooltipParams {
93
+ MultiGridTooltip: Partial<MultiGridTooltipParams>;
94
+ }
95
+ export interface PresetMultiGroupAxisParams {
96
+ MultiGroupAxis: Partial<MultiGroupAxisParams>;
97
+ }
98
+ export interface PresetMultiLineAreasParams {
99
+ MultiLineAreas: Partial<MultiLineAreasParams>;
100
+ }
101
+ export interface PresetMultiLinesParams {
102
+ MultiLines: Partial<MultiLinesParams>;
103
+ }
104
+ export interface PresetMultiValueAxisParams {
105
+ MultiValueAxis: Partial<MultiValueAxisParams>;
106
+ }
107
+ export interface PresetMultiValueStackAxisParams {
108
+ MultiValueStackAxis: Partial<MultiValueStackAxisParams>;
109
+ }
110
+ export interface PresetOverlappingValueAxesParams {
111
+ OverlappingValueAxes: Partial<OverlappingValueAxesParams>;
112
+ }
113
+ export interface PresetOverlappingValueStackAxesParams {
114
+ OverlappingValueStackAxes: Partial<OverlappingValueStackAxesParams>;
115
+ }
116
+ export type PresetTreePluginParams = PresetTreeLegendParams & PresetTreeMapParams & PresetTreeTooltipParams;
117
+ export interface PresetTreeLegendParams {
118
+ TreeLegend: Partial<TreeLegendParams>;
119
+ }
120
+ export interface PresetTreeMapParams {
121
+ TreeMap: Partial<TreeMapParams>;
122
+ }
123
+ export interface PresetTreeTooltipParams {
124
+ TreeTooltip: Partial<TreeTooltipParams>;
125
+ }
126
+ export type PresetNoneDataPluginParams = {};
43
127
  export {};
@@ -1,2 +1,2 @@
1
- declare const _default: import('vite').UserConfig & Promise<import('vite').UserConfig> & (import('vite').UserConfigFnObject & import('vite').UserConfigExport);
1
+ declare const _default: import('vite').UserConfigFnObject;
2
2
  export default _default;
@@ -0,0 +1,7 @@
1
+
2
+
3
+ export * from '@orbcharts/core-types'
4
+
5
+ // test
6
+ // export * from '../../orbcharts-core-types/src'
7
+
@@ -0,0 +1,6 @@
1
+
2
+
3
+ export * from '@orbcharts/plugins-basic-types'
4
+
5
+ // test
6
+ // export * from '../../orbcharts-plugins-basic-types/src'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbcharts/presets-basic",
3
- "version": "3.0.0-alpha.8",
3
+ "version": "3.0.0-beta.1",
4
4
  "description": "presets for OrbCharts",
5
5
  "author": "Blue Planet Inc.",
6
6
  "license": "Apache-2.0",
@@ -25,7 +25,7 @@
25
25
  "types": "./dist/src/index.d.ts",
26
26
  "scripts": {
27
27
  "test": "echo \"Error: no test specified\" && exit 1",
28
- "build": "vite build --mode release"
28
+ "build": "vite build --mode production"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/d3": "^7.4.0",
@@ -35,9 +35,8 @@
35
35
  "vite-plugin-dts": "^3.7.3"
36
36
  },
37
37
  "dependencies": {
38
- "@orbcharts/core": "^3.0.0-alpha.36",
39
- "@orbcharts/plugins-basic": "^3.0.0-alpha.37",
40
- "d3": "^7.8.5",
41
- "rxjs": "^7.8.1"
38
+ "@orbcharts/core-types": "^3.0.0-beta.1",
39
+ "@orbcharts/plugins-basic-types": "^3.0.0-beta.1",
40
+ "d3": "^7.8.5"
42
41
  }
43
42
  }
@@ -0,0 +1,56 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetBarsParams,
3
+ PresetGridPluginParams,
4
+ PresetNoneDataPluginParams
5
+ } from '../types'
6
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
7
+
8
+ export const PRESET_BARS_HORIZONTAL_AND_ROUND: PresetPartial<'grid', Partial<PresetGridPluginParams>
9
+ & Partial<PresetNoneDataPluginParams>> = {
10
+ name: 'PRESET_BARS_HORIZONTAL_AND_ROUND',
11
+ description: '橫向圓角長條圖',
12
+ chartParams: {
13
+ padding: {
14
+ top: 60,
15
+ right: 60,
16
+ bottom: 120,
17
+ left: 160
18
+ },
19
+ },
20
+ dataFormatter: {
21
+ grid: {
22
+ valueAxis: {
23
+ position: 'bottom'
24
+ // position: 'top'
25
+ // position: 'left'
26
+ // position: 'right'
27
+ },
28
+ groupAxis: {
29
+ position: 'left'
30
+ // position: 'right'
31
+ // position: 'bottom'
32
+ // position: 'top'
33
+ },
34
+ }
35
+ },
36
+ allPluginParams: {
37
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
38
+ Bars: {
39
+ barWidth: 0,
40
+ barPadding: 1,
41
+ barGroupPadding: 10,
42
+ barRadius: true,
43
+ },
44
+ GroupAxis: {},
45
+ ValueAxis: {},
46
+ GroupAux: {},
47
+ GridLegend: {
48
+ // 底部圖例及圓弧列點
49
+ // position: 'bottom',
50
+ // justify: 'center',
51
+ placement: 'bottom',
52
+ padding: 14,
53
+ listRectRadius: 7,
54
+ }
55
+ }
56
+ }
@@ -0,0 +1,52 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_BARS_HORIZONTAL_AND_THIN: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_BARS_HORIZONTAL_AND_THIN',
10
+ description: '橫向細長長條圖',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 160
17
+ },
18
+ },
19
+ dataFormatter: {
20
+ grid: {
21
+ valueAxis: {
22
+ position: 'bottom'
23
+ // position: 'top'
24
+ // position: 'left'
25
+ // position: 'right'
26
+ },
27
+ groupAxis: {
28
+ position: 'left'
29
+ // position: 'right'
30
+ // position: 'bottom'
31
+ // position: 'top'
32
+ },
33
+ }
34
+ },
35
+ allPluginParams: {
36
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
37
+ Bars: {
38
+ barWidth: 20,
39
+ barPadding: 1,
40
+ barGroupPadding: 10
41
+ },
42
+ GroupAxis: {},
43
+ ValueAxis: {},
44
+ GroupAux: {},
45
+ GridLegend: {
46
+ // position: 'bottom',
47
+ // justify: 'center',
48
+ placement: 'bottom',
49
+ padding: 14,
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,39 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_BARS_ROUND: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_BARS_ROUND',
10
+ description: '圓角長條圖',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 60
17
+ },
18
+ },
19
+ allPluginParams: {
20
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
21
+ Bars: {
22
+ barWidth: 0,
23
+ barPadding: 1,
24
+ barGroupPadding: 10,
25
+ barRadius: true,
26
+ },
27
+ GroupAxis: {},
28
+ ValueAxis: {},
29
+ GroupAux: {},
30
+ GridLegend: {
31
+ // 底部圖例及圓弧列點
32
+ // position: 'bottom',
33
+ // justify: 'center',
34
+ placement: 'bottom',
35
+ padding: 14,
36
+ listRectRadius: 7,
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,36 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_BARS_THIN: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_BARS_THIN',
10
+ description: '細長條圖',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 60
17
+ },
18
+ },
19
+ allPluginParams: {
20
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
21
+ Bars: {
22
+ barWidth: 20,
23
+ barPadding: 1,
24
+ barGroupPadding: 10
25
+ },
26
+ GroupAxis: {},
27
+ ValueAxis: {},
28
+ GroupAux: {},
29
+ GridLegend: {
30
+ // position: 'bottom',
31
+ // justify: 'center',
32
+ placement: 'bottom',
33
+ padding: 14,
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,27 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_BASIC: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_BASIC',
8
+ description: '基本Grid參數',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 60
15
+ },
16
+ },
17
+ allPluginParams: {
18
+ // ...ALL_PLUGIN_PARAMS_GRID,
19
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
20
+ GridLegend: {
21
+ // position: 'bottom',
22
+ // justify: 'center',
23
+ placement: 'bottom',
24
+ padding: 14,
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,44 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_HORIZONTAL',
8
+ description: '橫向圖',
9
+ chartParams: {
10
+ // 間距下面及左邊留空
11
+ padding: {
12
+ top: 60,
13
+ right: 60,
14
+ bottom: 120,
15
+ left: 160
16
+ },
17
+ },
18
+ dataFormatter: {
19
+ grid: {
20
+ valueAxis: {
21
+ position: 'bottom'
22
+ // position: 'top'
23
+ // position: 'left'
24
+ // position: 'right'
25
+ },
26
+ groupAxis: {
27
+ position: 'left'
28
+ // position: 'right'
29
+ // position: 'bottom'
30
+ // position: 'top'
31
+ },
32
+ }
33
+ },
34
+ allPluginParams: {
35
+ // ...ALL_PLUGIN_PARAMS_GRID,
36
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
37
+ GridLegend: {
38
+ // position: 'bottom',
39
+ // justify: 'center',
40
+ placement: 'bottom',
41
+ padding: 14,
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,35 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_PN_SCALE: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_PN_SCALE',
8
+ description: '正負值分向圖',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 60
15
+ },
16
+ },
17
+ dataFormatter: {
18
+ grid: {
19
+ valueAxis: {
20
+ scaleDomain: ['auto', 'auto'],
21
+ scaleRange: [0.05, 0.95],
22
+ },
23
+ }
24
+ },
25
+ allPluginParams: {
26
+ // ...ALL_PLUGIN_PARAMS_GRID,
27
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
28
+ GridLegend: {
29
+ // position: 'bottom',
30
+ // justify: 'center',
31
+ placement: 'bottom',
32
+ padding: 14,
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,35 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_ROTATE_AXIS_LABEL',
8
+ description: '傾斜標籤',
9
+ chartParams: {
10
+ // 間距下面加長留空
11
+ padding: {
12
+ top: 60,
13
+ right: 60,
14
+ bottom: 160,
15
+ left: 60
16
+ },
17
+ },
18
+ allPluginParams: {
19
+ // ...ALL_PLUGIN_PARAMS_GRID,
20
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
21
+ GroupAux: {
22
+ labelRotate: -30
23
+ },
24
+ GroupAxis: {
25
+ tickPadding: 15,
26
+ tickTextRotate: -30
27
+ },
28
+ GridLegend: {
29
+ // position: 'bottom',
30
+ // justify: 'center',
31
+ placement: 'bottom',
32
+ padding: 14,
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,40 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGridPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_GRID_SEPARATE_SERIES',
8
+ description: '分開顯示Series',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 160,
14
+ left: 60
15
+ },
16
+ },
17
+ dataFormatter: {
18
+ grid: {
19
+ // seriesSlotIndexes: [0, 1],
20
+ separateSeries: true,
21
+ },
22
+ },
23
+ allPluginParams: {
24
+ // ...ALL_PLUGIN_PARAMS_GRID,
25
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
26
+ GroupAux: {
27
+ labelRotate: -30
28
+ },
29
+ GroupAxis: {
30
+ tickPadding: 15,
31
+ tickTextRotate: -30
32
+ },
33
+ GridLegend: {
34
+ // position: 'bottom',
35
+ // justify: 'center',
36
+ placement: 'bottom',
37
+ padding: 14,
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,35 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_LINES_BASIC: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINES_BASIC',
10
+ description: '基本Lines參數',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 60
17
+ },
18
+ highlightTarget: 'series'
19
+ },
20
+ allPluginParams: {
21
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
+ Lines: {},
23
+ Dots: {},
24
+ GroupAxis: {},
25
+ ValueAxis: {},
26
+ GroupAux: {},
27
+ GridLegend: {
28
+ // position: 'bottom',
29
+ // justify: 'center',
30
+ placement: 'bottom',
31
+ padding: 14,
32
+ listRectHeight: 2
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,38 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetGridPluginParams,
3
+ PresetNoneDataPluginParams
4
+ } from '../types'
5
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
6
+
7
+ export const PRESET_LINES_CURVE: PresetPartial<'grid', Partial<PresetGridPluginParams>
8
+ & Partial<PresetNoneDataPluginParams>> = {
9
+ name: 'PRESET_LINES_CURVE',
10
+ description: '弧線折線圖',
11
+ chartParams: {
12
+ padding: {
13
+ top: 60,
14
+ right: 60,
15
+ bottom: 120,
16
+ left: 60
17
+ },
18
+ highlightTarget: 'series'
19
+ },
20
+ allPluginParams: {
21
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
22
+ Lines: {
23
+ lineCurve: 'curveMonotoneX',
24
+ lineWidth: 3
25
+ },
26
+ Dots: {},
27
+ GroupAxis: {},
28
+ ValueAxis: {},
29
+ GroupAux: {},
30
+ GridLegend: {
31
+ // position: 'bottom',
32
+ // justify: 'center',
33
+ placement: 'bottom',
34
+ padding: 14,
35
+ listRectHeight: 2
36
+ }
37
+ }
38
+ }