@orbcharts/presets-basic 3.0.0-alpha.15 → 3.0.0-alpha.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (244) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-presets-basic.es.js +329 -456
  3. package/dist/orbcharts-presets-basic.umd.js +1 -1
  4. package/dist/src/chartParamsFiles/CP_LONG_PADDING.d.ts +3 -0
  5. package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/index.d.ts +1 -0
  6. package/dist/src/gridDataFormatterFiles/DF_GRID_SEPARATE_SERIES.d.ts +3 -0
  7. package/dist/src/gridDataFormatterFiles/DF_LINE_AREAS_SEPARATE_SERIES.d.ts +3 -0
  8. package/dist/src/gridDataFormatterFiles/index.d.ts +6 -0
  9. package/dist/src/index.d.ts +44 -1
  10. package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_SEPARATE_GRID.d.ts +3 -0
  11. package/dist/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_SEPARATE_GRID.d.ts +3 -0
  12. package/dist/src/multiGridDataFormatterFiles/index.d.ts +2 -0
  13. package/dist/src/seriesDataFormatterFiles/DF_SERIES_DESC.d.ts +3 -0
  14. package/dist/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES.d.ts +3 -0
  15. package/dist/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES_AND_DESC.d.ts +3 -0
  16. package/dist/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES.d.ts +3 -0
  17. package/dist/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES_AND_DESC.d.ts +3 -0
  18. package/dist/src/seriesDataFormatterFiles/index.d.ts +5 -0
  19. package/package.json +43 -43
  20. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +13 -13
  21. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
  22. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +13 -13
  23. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
  24. package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +13 -13
  25. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +14 -14
  26. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
  27. package/src/chartParamsFiles/CP_BOTTOM_SLIGHT_PADDING.ts +13 -13
  28. package/src/chartParamsFiles/CP_LEFT_PADDING.ts +13 -13
  29. package/src/chartParamsFiles/CP_LONG_PADDING.ts +14 -0
  30. package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +13 -13
  31. package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +13 -13
  32. package/src/chartParamsFiles/index.ts +13 -11
  33. package/src/createPreset.ts +87 -87
  34. package/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.ts +16 -16
  35. package/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.ts +16 -16
  36. package/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.ts +16 -16
  37. package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.ts +22 -22
  38. package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING.ts +17 -17
  39. package/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.ts +14 -14
  40. package/src/gridDataFormatterFiles/DF_GRID_NONE_GROUP_SCALE_PADDING.ts +13 -13
  41. package/src/gridDataFormatterFiles/DF_GRID_SEPARATE_SERIES.ts +17 -0
  42. package/src/gridDataFormatterFiles/DF_LINE_AREAS_2_SERIES_SLOT.ts +19 -19
  43. package/src/gridDataFormatterFiles/DF_LINE_AREAS_3_SERIES_SLOT.ts +19 -19
  44. package/src/gridDataFormatterFiles/DF_LINE_AREAS_4_SERIES_SLOT.ts +19 -19
  45. package/src/gridDataFormatterFiles/DF_LINE_AREAS_SEPARATE_SERIES.ts +20 -0
  46. package/src/gridDataFormatterFiles/index.ts +12 -10
  47. package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +14 -14
  48. package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +14 -14
  49. package/src/gridPluginParamsFiles/Bars/index.ts +1 -1
  50. package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +12 -12
  51. package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +14 -14
  52. package/src/gridPluginParamsFiles/Dots/index.ts +1 -1
  53. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +13 -13
  54. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +14 -14
  55. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.ts +14 -14
  56. package/src/gridPluginParamsFiles/GridLegend/index.ts +2 -2
  57. package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +12 -12
  58. package/src/gridPluginParamsFiles/LineAreas/PP_LINE_AREAS_CURVE.ts +11 -11
  59. package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +12 -12
  60. package/src/gridPluginParamsFiles/index.ts +6 -6
  61. package/src/index.ts +356 -290
  62. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.ts +21 -21
  63. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.ts +24 -24
  64. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.ts +27 -27
  65. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_SEPARATE_GRID.ts +22 -0
  66. package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_2_GRID_SLOT.ts +27 -27
  67. package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_3_GRID_SLOT.ts +33 -33
  68. package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_4_GRID_SLOT.ts +39 -39
  69. package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_SEPARATE_GRID.ts +28 -0
  70. package/src/multiGridDataFormatterFiles/index.ts +8 -6
  71. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.ts +11 -11
  72. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.ts +11 -11
  73. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.ts +11 -11
  74. package/src/multiGridPluginParamsFiles/MultiBarStack/index.ts +3 -3
  75. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.ts +11 -11
  76. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.ts +11 -11
  77. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.ts +11 -11
  78. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.ts +14 -14
  79. package/src/multiGridPluginParamsFiles/MultiBars/index.ts +5 -5
  80. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.ts +11 -11
  81. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.ts +11 -11
  82. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.ts +11 -11
  83. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.ts +2 -2
  84. package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_2_GRID_SLOT.ts +11 -11
  85. package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_3_GRID_SLOT.ts +11 -11
  86. package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_4_GRID_SLOT.ts +11 -11
  87. package/src/multiGridPluginParamsFiles/MultiDots/index.ts +2 -2
  88. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.ts +13 -13
  89. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +27 -27
  90. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.ts +20 -20
  91. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.ts +21 -21
  92. package/src/multiGridPluginParamsFiles/MultiGridLegend/index.ts +3 -3
  93. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.ts +12 -12
  94. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.ts +12 -12
  95. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.ts +12 -12
  96. package/src/multiGridPluginParamsFiles/MultiGroupAxis/index.ts +3 -3
  97. package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_2_GRID_SLOT.ts +11 -11
  98. package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_3_GRID_SLOT.ts +11 -11
  99. package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_4_GRID_SLOT.ts +11 -11
  100. package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_CURVE.ts +11 -11
  101. package/src/multiGridPluginParamsFiles/MultiLineAreas/index.ts +3 -3
  102. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.ts +11 -11
  103. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.ts +11 -11
  104. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.ts +11 -11
  105. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.ts +12 -12
  106. package/src/multiGridPluginParamsFiles/MultiLines/index.ts +3 -3
  107. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.ts +11 -11
  108. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.ts +11 -11
  109. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.ts +11 -11
  110. package/src/multiGridPluginParamsFiles/MultiValueAxis/index.ts +3 -3
  111. package/src/multiGridPluginParamsFiles/index.ts +8 -8
  112. package/src/seriesDataFormatterFiles/DF_SERIES_DESC.ts +10 -0
  113. package/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES.ts +10 -0
  114. package/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES_AND_DESC.ts +11 -0
  115. package/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES.ts +10 -0
  116. package/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES_AND_DESC.ts +11 -0
  117. package/src/seriesDataFormatterFiles/index.ts +7 -1
  118. package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +11 -11
  119. package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +12 -12
  120. package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +14 -14
  121. package/src/seriesPluginParamsFiles/Pie/index.ts +1 -1
  122. package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +13 -13
  123. package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +13 -13
  124. package/src/seriesPluginParamsFiles/PieLabels/index.ts +1 -1
  125. package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +11 -11
  126. package/src/seriesPluginParamsFiles/index.ts +3 -3
  127. package/src/treePluginParamsFiles/TreeLegend/PP_TREE_LEGEND_BOTTOM.ts +13 -13
  128. package/src/types.ts +61 -61
  129. package/tsconfig.dev.json +17 -17
  130. package/tsconfig.json +13 -17
  131. package/tsconfig.prod.json +13 -13
  132. package/vite.config.js +44 -44
  133. package/dist/orbcharts-presets-basic/src/gridDataFormatterFiles/index.d.ts +0 -10
  134. package/dist/orbcharts-presets-basic/src/index.d.ts +0 -43
  135. package/dist/orbcharts-presets-basic/src/multiGridDataFormatterFiles/index.d.ts +0 -6
  136. package/dist/orbcharts-presets-basic/src/treeDataFormatterFiles/index.d.ts +0 -1
  137. /package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.d.ts +0 -0
  138. /package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -0
  139. /package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/CP_BOTTOM_LONG_PADDING.d.ts +0 -0
  140. /package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -0
  141. /package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/CP_BOTTOM_PADDING.d.ts +0 -0
  142. /package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.d.ts +0 -0
  143. /package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -0
  144. /package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/CP_BOTTOM_SLIGHT_PADDING.d.ts +0 -0
  145. /package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/CP_LEFT_PADDING.d.ts +0 -0
  146. /package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/CP_RIGHT_PADDING.d.ts +0 -0
  147. /package/dist/{orbcharts-presets-basic/src → src}/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.d.ts +0 -0
  148. /package/dist/{orbcharts-presets-basic/src → src}/createPreset.d.ts +0 -0
  149. /package/dist/{orbcharts-presets-basic/src → src}/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.d.ts +0 -0
  150. /package/dist/{orbcharts-presets-basic/src → src}/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.d.ts +0 -0
  151. /package/dist/{orbcharts-presets-basic/src → src}/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.d.ts +0 -0
  152. /package/dist/{orbcharts-presets-basic/src → src}/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.d.ts +0 -0
  153. /package/dist/{orbcharts-presets-basic/src → src}/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING.d.ts +0 -0
  154. /package/dist/{orbcharts-presets-basic/src → src}/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.d.ts +0 -0
  155. /package/dist/{orbcharts-presets-basic/src → src}/gridDataFormatterFiles/DF_GRID_NONE_GROUP_SCALE_PADDING.d.ts +0 -0
  156. /package/dist/{orbcharts-presets-basic/src → src}/gridDataFormatterFiles/DF_LINE_AREAS_2_SERIES_SLOT.d.ts +0 -0
  157. /package/dist/{orbcharts-presets-basic/src → src}/gridDataFormatterFiles/DF_LINE_AREAS_3_SERIES_SLOT.d.ts +0 -0
  158. /package/dist/{orbcharts-presets-basic/src → src}/gridDataFormatterFiles/DF_LINE_AREAS_4_SERIES_SLOT.d.ts +0 -0
  159. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/Bars/PP_BARS_ROUND.d.ts +0 -0
  160. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/Bars/PP_BARS_THIN.d.ts +0 -0
  161. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/Bars/index.d.ts +0 -0
  162. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.d.ts +0 -0
  163. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.d.ts +0 -0
  164. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/Dots/index.d.ts +0 -0
  165. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.d.ts +0 -0
  166. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -0
  167. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.d.ts +0 -0
  168. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/GridLegend/index.d.ts +0 -0
  169. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.d.ts +0 -0
  170. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/GroupAxis/index.d.ts +0 -0
  171. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/LineAreas/PP_LINE_AREAS_CURVE.d.ts +0 -0
  172. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/LineAreas/index.d.ts +0 -0
  173. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/Lines/PP_LINES_CURVE.d.ts +0 -0
  174. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/Lines/index.d.ts +0 -0
  175. /package/dist/{orbcharts-presets-basic/src → src}/gridPluginParamsFiles/index.d.ts +0 -0
  176. /package/dist/{orbcharts-presets-basic/src → src}/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.d.ts +0 -0
  177. /package/dist/{orbcharts-presets-basic/src → src}/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.d.ts +0 -0
  178. /package/dist/{orbcharts-presets-basic/src → src}/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.d.ts +0 -0
  179. /package/dist/{orbcharts-presets-basic/src → src}/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_2_GRID_SLOT.d.ts +0 -0
  180. /package/dist/{orbcharts-presets-basic/src → src}/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_3_GRID_SLOT.d.ts +0 -0
  181. /package/dist/{orbcharts-presets-basic/src → src}/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_4_GRID_SLOT.d.ts +0 -0
  182. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.d.ts +0 -0
  183. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.d.ts +0 -0
  184. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.d.ts +0 -0
  185. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBarStack/index.d.ts +0 -0
  186. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.d.ts +0 -0
  187. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.d.ts +0 -0
  188. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.d.ts +0 -0
  189. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.d.ts +0 -0
  190. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBars/index.d.ts +0 -0
  191. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.d.ts +0 -0
  192. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.d.ts +0 -0
  193. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.d.ts +0 -0
  194. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiBarsTriangle/index.d.ts +0 -0
  195. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_2_GRID_SLOT.d.ts +0 -0
  196. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_3_GRID_SLOT.d.ts +0 -0
  197. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_4_GRID_SLOT.d.ts +0 -0
  198. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiDots/index.d.ts +0 -0
  199. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.d.ts +0 -0
  200. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -0
  201. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.d.ts +0 -0
  202. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.d.ts +0 -0
  203. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiGridLegend/index.d.ts +0 -0
  204. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.d.ts +0 -0
  205. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.d.ts +0 -0
  206. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.d.ts +0 -0
  207. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiGroupAxis/index.d.ts +0 -0
  208. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_2_GRID_SLOT.d.ts +0 -0
  209. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_3_GRID_SLOT.d.ts +0 -0
  210. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_4_GRID_SLOT.d.ts +0 -0
  211. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_CURVE.d.ts +0 -0
  212. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiLineAreas/index.d.ts +0 -0
  213. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.d.ts +0 -0
  214. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.d.ts +0 -0
  215. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.d.ts +0 -0
  216. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.d.ts +0 -0
  217. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiLines/index.d.ts +0 -0
  218. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.d.ts +0 -0
  219. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.d.ts +0 -0
  220. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.d.ts +0 -0
  221. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/MultiValueAxis/index.d.ts +0 -0
  222. /package/dist/{orbcharts-presets-basic/src → src}/multiGridPluginParamsFiles/index.d.ts +0 -0
  223. /package/dist/{orbcharts-presets-basic/src → src}/multiValueDataFormatterFiles/index.d.ts +0 -0
  224. /package/dist/{orbcharts-presets-basic/src → src}/multiValuePluginParamsFiles/index.d.ts +0 -0
  225. /package/dist/{orbcharts-presets-basic/src → src}/relationshipDataFormatterFiles/index.d.ts +0 -0
  226. /package/dist/{orbcharts-presets-basic/src → src}/relationshipPluginParamsFiles/index.d.ts +0 -0
  227. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.d.ts +0 -0
  228. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/Bubbles/index.d.ts +0 -0
  229. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.d.ts +0 -0
  230. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.d.ts +0 -0
  231. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.d.ts +0 -0
  232. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/Pie/index.d.ts +0 -0
  233. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.d.ts +0 -0
  234. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.d.ts +0 -0
  235. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/PieLabels/index.d.ts +0 -0
  236. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.d.ts +0 -0
  237. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/SeriesLegend/index.d.ts +0 -0
  238. /package/dist/{orbcharts-presets-basic/src → src}/seriesPluginParamsFiles/index.d.ts +0 -0
  239. /package/dist/{orbcharts-presets-basic/src/seriesDataFormatterFiles → src/treeDataFormatterFiles}/index.d.ts +0 -0
  240. /package/dist/{orbcharts-presets-basic/src → src}/treePluginParamsFiles/TreeLegend/PP_TREE_LEGEND_BOTTOM.d.ts +0 -0
  241. /package/dist/{orbcharts-presets-basic/src → src}/treePluginParamsFiles/TreeLegend/index.d.ts +0 -0
  242. /package/dist/{orbcharts-presets-basic/src → src}/treePluginParamsFiles/index.d.ts +0 -0
  243. /package/dist/{orbcharts-presets-basic/src → src}/types.d.ts +0 -0
  244. /package/dist/{orbcharts-presets-basic/vite.config.d.ts → vite.config.d.ts} +0 -0
@@ -1,14 +1,14 @@
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: 160
12
- },
13
- }
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: 160
12
+ },
13
+ }
14
14
  }
@@ -0,0 +1,14 @@
1
+ import type { ChartParamsFile } from '../types'
2
+
3
+ export const CP_LONG_PADDING: ChartParamsFile = {
4
+ id: 'CP_LONG_PADDING',
5
+ description: '加長留空',
6
+ data: {
7
+ padding: {
8
+ top: 160,
9
+ right: 160,
10
+ bottom: 160,
11
+ left: 160
12
+ },
13
+ }
14
+ }
@@ -1,14 +1,14 @@
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
- }
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
14
  }
@@ -1,14 +1,14 @@
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: 120,
9
- right: 120,
10
- bottom: 0,
11
- left: 60
12
- },
13
- }
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: 120,
9
+ right: 120,
10
+ bottom: 0,
11
+ left: 60
12
+ },
13
+ }
14
14
  }
@@ -1,11 +1,13 @@
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
+ 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'
12
+ export { CP_LONG_PADDING } from './CP_LONG_PADDING'
13
+
@@ -1,88 +1,88 @@
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)
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
88
  }
@@ -1,17 +1,17 @@
1
- import type { DataFormatterFile } from '../types'
2
-
3
- export const DF_GRID_2_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
- id: 'DF_GRID_2_SERIES_SLOT',
5
- chartType: 'grid',
6
- description: '2個Series Slot',
7
- data: {
8
- grid: {
9
- // seriesSlotIndexes: [0, 1],
10
- separateSeries: true,
11
- },
12
- container: {
13
- rowAmount: 1,
14
- columnAmount: 2,
15
- }
16
- }
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_2_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_2_SERIES_SLOT',
5
+ chartType: 'grid',
6
+ description: '2個Series Slot',
7
+ data: {
8
+ grid: {
9
+ // seriesSlotIndexes: [0, 1],
10
+ separateSeries: true,
11
+ },
12
+ container: {
13
+ rowAmount: 1,
14
+ columnAmount: 2,
15
+ }
16
+ }
17
17
  }
@@ -1,17 +1,17 @@
1
- import type { DataFormatterFile } from '../types'
2
-
3
- export const DF_GRID_3_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
- id: 'DF_GRID_3_SERIES_SLOT',
5
- chartType: 'grid',
6
- description: '3個Series Slot',
7
- data: {
8
- grid: {
9
- // seriesSlotIndexes: [0, 1, 2],
10
- separateSeries: true,
11
- },
12
- container: {
13
- rowAmount: 1,
14
- columnAmount: 3,
15
- }
16
- }
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_3_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_3_SERIES_SLOT',
5
+ chartType: 'grid',
6
+ description: '3個Series Slot',
7
+ data: {
8
+ grid: {
9
+ // seriesSlotIndexes: [0, 1, 2],
10
+ separateSeries: true,
11
+ },
12
+ container: {
13
+ rowAmount: 1,
14
+ columnAmount: 3,
15
+ }
16
+ }
17
17
  }
@@ -1,17 +1,17 @@
1
- import type { DataFormatterFile } from '../types'
2
-
3
- export const DF_GRID_4_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
- id: 'DF_GRID_4_SERIES_SLOT',
5
- chartType: 'grid',
6
- description: '4個Series Slot',
7
- data: {
8
- grid: {
9
- // seriesSlotIndexes: [0, 1, 2, 3],
10
- separateSeries: true,
11
- },
12
- container: {
13
- rowAmount: 2,
14
- columnAmount: 2,
15
- }
16
- }
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_4_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_4_SERIES_SLOT',
5
+ chartType: 'grid',
6
+ description: '4個Series Slot',
7
+ data: {
8
+ grid: {
9
+ // seriesSlotIndexes: [0, 1, 2, 3],
10
+ separateSeries: true,
11
+ },
12
+ container: {
13
+ rowAmount: 2,
14
+ columnAmount: 2,
15
+ }
16
+ }
17
17
  }
@@ -1,23 +1,23 @@
1
- import type { DataFormatterFile } from '../types'
2
-
3
- export const DF_GRID_BOTTOM_VALUE_AXIS: DataFormatterFile<'grid'> = {
4
- id: 'DF_GRID_BOTTOM_VALUE_AXIS',
5
- chartType: 'grid',
6
- description: '底部橫向資料圖軸',
7
- data: {
8
- grid: {
9
- valueAxis: {
10
- position: 'bottom'
11
- // position: 'top'
12
- // position: 'left'
13
- // position: 'right'
14
- },
15
- groupAxis: {
16
- position: 'left'
17
- // position: 'right'
18
- // position: 'bottom'
19
- // position: 'top'
20
- },
21
- }
22
- }
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_BOTTOM_VALUE_AXIS: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_BOTTOM_VALUE_AXIS',
5
+ chartType: 'grid',
6
+ description: '底部橫向資料圖軸',
7
+ data: {
8
+ grid: {
9
+ valueAxis: {
10
+ position: 'bottom'
11
+ // position: 'top'
12
+ // position: 'left'
13
+ // position: 'right'
14
+ },
15
+ groupAxis: {
16
+ position: 'left'
17
+ // position: 'right'
18
+ // position: 'bottom'
19
+ // position: 'top'
20
+ },
21
+ }
22
+ }
23
23
  }
@@ -1,18 +1,18 @@
1
- import type { DataFormatterFile } from '../types'
2
-
3
- export const DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING: DataFormatterFile<'grid'> = {
4
- id: 'DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING',
5
- chartType: 'grid',
6
- description: '底部橫向資料圖軸及無群組圖軸的左右間距',
7
- data: {
8
- grid: {
9
- valueAxis: {
10
- position: 'bottom'
11
- },
12
- groupAxis: {
13
- position: 'left',
14
- scalePadding: 0
15
- },
16
- }
17
- }
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING',
5
+ chartType: 'grid',
6
+ description: '底部橫向資料圖軸及無群組圖軸的左右間距',
7
+ data: {
8
+ grid: {
9
+ valueAxis: {
10
+ position: 'bottom'
11
+ },
12
+ groupAxis: {
13
+ position: 'left',
14
+ scalePadding: 0
15
+ },
16
+ }
17
+ }
18
18
  }
@@ -1,15 +1,15 @@
1
- import type { DataFormatterFile } from '../types'
2
-
3
- export const DF_GRID_DIVERGING_SCALE: DataFormatterFile<'grid'> = {
4
- id: 'DF_GRID_DIVERGING_SCALE',
5
- chartType: 'grid',
6
- description: '分向資料圖軸',
7
- data: {
8
- grid: {
9
- valueAxis: {
10
- scaleDomain: ['auto', 'auto'],
11
- scaleRange: [0.05, 0.95],
12
- },
13
- }
14
- }
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_DIVERGING_SCALE: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_DIVERGING_SCALE',
5
+ chartType: 'grid',
6
+ description: '分向資料圖軸',
7
+ data: {
8
+ grid: {
9
+ valueAxis: {
10
+ scaleDomain: ['auto', 'auto'],
11
+ scaleRange: [0.05, 0.95],
12
+ },
13
+ }
14
+ }
15
15
  }
@@ -1,14 +1,14 @@
1
- import type { DataFormatterFile } from '../types'
2
-
3
- export const DF_GRID_NONE_GROUP_SCALE_PADDING: DataFormatterFile<'grid'> = {
4
- id: 'DF_GRID_NONE_GROUP_SCALE_PADDING',
5
- chartType: 'grid',
6
- description: '無群組圖軸的左右間距',
7
- data: {
8
- grid: {
9
- groupAxis: {
10
- scalePadding: 0
11
- }
12
- }
13
- }
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_NONE_GROUP_SCALE_PADDING: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_NONE_GROUP_SCALE_PADDING',
5
+ chartType: 'grid',
6
+ description: '無群組圖軸的左右間距',
7
+ data: {
8
+ grid: {
9
+ groupAxis: {
10
+ scalePadding: 0
11
+ }
12
+ }
13
+ }
14
14
  }
@@ -0,0 +1,17 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_SEPARATE_SERIES: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_SEPARATE_SERIES',
5
+ chartType: 'grid',
6
+ description: '分開顯示Series',
7
+ data: {
8
+ grid: {
9
+ // seriesSlotIndexes: [0, 1],
10
+ separateSeries: true,
11
+ },
12
+ // container: {
13
+ // rowAmount: 1,
14
+ // columnAmount: 2,
15
+ // }
16
+ }
17
+ }
@@ -1,20 +1,20 @@
1
- import type { DataFormatterFile } from '../types'
2
-
3
- export const DF_LINE_AREAS_2_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
- id: 'DF_LINE_AREAS_2_SERIES_SLOT',
5
- chartType: 'grid',
6
- description: 'LineAreas 2個Series Slot',
7
- data: {
8
- grid: {
9
- // seriesSlotIndexes: [0, 1],
10
- separateSeries: true,
11
- groupAxis: {
12
- scalePadding: 0
13
- }
14
- },
15
- container: {
16
- rowAmount: 1,
17
- columnAmount: 2,
18
- }
19
- }
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_LINE_AREAS_2_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
+ id: 'DF_LINE_AREAS_2_SERIES_SLOT',
5
+ chartType: 'grid',
6
+ description: 'LineAreas 2個Series Slot',
7
+ data: {
8
+ grid: {
9
+ // seriesSlotIndexes: [0, 1],
10
+ separateSeries: true,
11
+ groupAxis: {
12
+ scalePadding: 0
13
+ }
14
+ },
15
+ container: {
16
+ rowAmount: 1,
17
+ columnAmount: 2,
18
+ }
19
+ }
20
20
  }
@@ -1,20 +1,20 @@
1
- import type { DataFormatterFile } from '../types'
2
-
3
- export const DF_LINE_AREAS_3_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
- id: 'DF_LINE_AREAS_3_SERIES_SLOT',
5
- chartType: 'grid',
6
- description: 'LineAreas 3個Series Slot',
7
- data: {
8
- grid: {
9
- // seriesSlotIndexes: [0, 1, 2],
10
- separateSeries: true,
11
- groupAxis: {
12
- scalePadding: 0
13
- }
14
- },
15
- container: {
16
- rowAmount: 1,
17
- columnAmount: 3,
18
- }
19
- }
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_LINE_AREAS_3_SERIES_SLOT: DataFormatterFile<'grid'> = {
4
+ id: 'DF_LINE_AREAS_3_SERIES_SLOT',
5
+ chartType: 'grid',
6
+ description: 'LineAreas 3個Series Slot',
7
+ data: {
8
+ grid: {
9
+ // seriesSlotIndexes: [0, 1, 2],
10
+ separateSeries: true,
11
+ groupAxis: {
12
+ scalePadding: 0
13
+ }
14
+ },
15
+ container: {
16
+ rowAmount: 1,
17
+ columnAmount: 3,
18
+ }
19
+ }
20
20
  }