@orbcharts/presets-basic 3.0.0-alpha.1 → 3.0.0-alpha.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/dist/orbcharts-presets-basic.es.js +789 -129
  2. package/dist/orbcharts-presets-basic.umd.js +1 -1
  3. package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.d.ts +3 -0
  4. package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +3 -0
  5. package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +3 -0
  6. package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +3 -0
  7. package/dist/src/chartParamsFiles/CP_BOTTOM_SLIGHT_PADDING.d.ts +3 -0
  8. package/dist/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.d.ts +3 -0
  9. package/dist/src/chartParamsFiles/index.d.ts +6 -0
  10. package/dist/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.d.ts +3 -0
  11. package/dist/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.d.ts +3 -0
  12. package/dist/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.d.ts +3 -0
  13. package/dist/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.d.ts +3 -0
  14. package/dist/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING.d.ts +3 -0
  15. package/dist/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.d.ts +3 -0
  16. package/dist/src/gridDataFormatterFiles/DF_GRID_NONE_GROUP_SCALE_PADDING.d.ts +3 -0
  17. package/dist/src/gridDataFormatterFiles/index.d.ts +7 -1
  18. package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.d.ts +4 -0
  19. package/dist/src/gridPluginParamsFiles/GridLegend/index.d.ts +1 -0
  20. package/dist/src/gridPluginParamsFiles/LineAreas/PP_LINE_AREAS_CURVE.d.ts +4 -0
  21. package/dist/src/gridPluginParamsFiles/LineAreas/index.d.ts +1 -0
  22. package/dist/src/gridPluginParamsFiles/index.d.ts +1 -0
  23. package/dist/src/index.d.ts +25 -0
  24. package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.d.ts +3 -0
  25. package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.d.ts +3 -0
  26. package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.d.ts +3 -0
  27. package/dist/src/multiGridDataFormatterFiles/index.d.ts +3 -1
  28. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.d.ts +4 -0
  29. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.d.ts +4 -0
  30. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.d.ts +4 -0
  31. package/dist/src/multiGridPluginParamsFiles/MultiBarStack/index.d.ts +3 -0
  32. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.d.ts +4 -0
  33. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.d.ts +4 -0
  34. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.d.ts +4 -0
  35. package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.d.ts +4 -0
  36. package/dist/src/multiGridPluginParamsFiles/MultiBars/index.d.ts +4 -0
  37. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.d.ts +4 -0
  38. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.d.ts +4 -0
  39. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.d.ts +4 -0
  40. package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.d.ts +3 -0
  41. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.d.ts +4 -0
  42. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +4 -0
  43. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.d.ts +4 -0
  44. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.d.ts +4 -0
  45. package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/index.d.ts +4 -0
  46. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.d.ts +4 -0
  47. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.d.ts +4 -0
  48. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.d.ts +4 -0
  49. package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/index.d.ts +3 -0
  50. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.d.ts +4 -0
  51. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.d.ts +4 -0
  52. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.d.ts +4 -0
  53. package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.d.ts +4 -0
  54. package/dist/src/multiGridPluginParamsFiles/MultiLines/index.d.ts +4 -0
  55. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.d.ts +4 -0
  56. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.d.ts +4 -0
  57. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.d.ts +4 -0
  58. package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/index.d.ts +3 -0
  59. package/dist/src/multiGridPluginParamsFiles/index.d.ts +7 -1
  60. package/dist/src/treePluginParamsFiles/TreeLegend/PP_TREE_LEGEND_BOTTOM.d.ts +4 -0
  61. package/dist/src/treePluginParamsFiles/TreeLegend/index.d.ts +1 -0
  62. package/dist/src/treePluginParamsFiles/index.d.ts +1 -1
  63. package/dist/src/types.d.ts +6 -2
  64. package/package.json +3 -3
  65. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +14 -0
  66. package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +15 -0
  67. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +1 -1
  68. package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +15 -0
  69. package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +15 -0
  70. package/src/chartParamsFiles/CP_BOTTOM_SLIGHT_PADDING.ts +14 -0
  71. package/src/chartParamsFiles/CP_LEFT_PADDING.ts +2 -2
  72. package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +1 -1
  73. package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +14 -0
  74. package/src/chartParamsFiles/index.ts +6 -0
  75. package/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.ts +16 -0
  76. package/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.ts +16 -0
  77. package/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.ts +16 -0
  78. package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.ts +23 -0
  79. package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING.ts +18 -0
  80. package/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.ts +15 -0
  81. package/src/gridDataFormatterFiles/DF_GRID_NONE_GROUP_SCALE_PADDING.ts +14 -0
  82. package/src/gridDataFormatterFiles/index.ts +7 -1
  83. package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +0 -2
  84. package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.ts +15 -0
  85. package/src/gridPluginParamsFiles/GridLegend/index.ts +1 -0
  86. package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +2 -1
  87. package/src/gridPluginParamsFiles/LineAreas/PP_LINE_AREAS_CURVE.ts +12 -0
  88. package/src/gridPluginParamsFiles/LineAreas/index.ts +1 -0
  89. package/src/gridPluginParamsFiles/index.ts +1 -0
  90. package/src/index.ts +169 -18
  91. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.ts +21 -0
  92. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.ts +24 -0
  93. package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.ts +27 -0
  94. package/src/multiGridDataFormatterFiles/index.ts +3 -1
  95. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.ts +12 -0
  96. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.ts +12 -0
  97. package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.ts +12 -0
  98. package/src/multiGridPluginParamsFiles/MultiBarStack/index.ts +4 -0
  99. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.ts +12 -0
  100. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.ts +12 -0
  101. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.ts +12 -0
  102. package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.ts +15 -0
  103. package/src/multiGridPluginParamsFiles/MultiBars/index.ts +5 -0
  104. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.ts +12 -0
  105. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.ts +12 -0
  106. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.ts +12 -0
  107. package/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.ts +3 -0
  108. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.ts +14 -0
  109. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +28 -0
  110. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.ts +21 -0
  111. package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.ts +22 -0
  112. package/src/multiGridPluginParamsFiles/MultiGridLegend/index.ts +4 -0
  113. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.ts +13 -0
  114. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.ts +13 -0
  115. package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.ts +13 -0
  116. package/src/multiGridPluginParamsFiles/MultiGroupAxis/index.ts +3 -0
  117. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.ts +12 -0
  118. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.ts +12 -0
  119. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.ts +12 -0
  120. package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.ts +13 -0
  121. package/src/multiGridPluginParamsFiles/MultiLines/index.ts +4 -0
  122. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.ts +12 -0
  123. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.ts +12 -0
  124. package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.ts +12 -0
  125. package/src/multiGridPluginParamsFiles/MultiValueAxis/index.ts +3 -0
  126. package/src/multiGridPluginParamsFiles/index.ts +7 -1
  127. package/src/treePluginParamsFiles/TreeLegend/PP_TREE_LEGEND_BOTTOM.ts +14 -0
  128. package/src/treePluginParamsFiles/TreeLegend/index.ts +1 -0
  129. package/src/treePluginParamsFiles/index.ts +1 -1
  130. package/src/types.ts +5 -2
  131. package/tsconfig.dev.json +18 -0
  132. package/tsconfig.prod.json +14 -0
  133. package/dist/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.d.ts +0 -3
  134. package/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.ts +0 -16
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiBarsParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_BAR_STACK_4_GRID_SLOT: PluginParamsFile<MultiBarsParams> = {
5
+ id: 'PP_MULTI_BAR_STACK_4_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiBarStack',
8
+ description: '4組堆疊長條圖',
9
+ data: {
10
+ gridIndexes: [0, 1, 2, 3]
11
+ }
12
+ }
@@ -0,0 +1,4 @@
1
+ export { PP_MULTI_BAR_STACK_2_GRID_SLOT } from './PP_MULTI_BAR_STACK_2_GRID_SLOT'
2
+ export { PP_MULTI_BAR_STACK_3_GRID_SLOT } from './PP_MULTI_BAR_STACK_3_GRID_SLOT'
3
+ export { PP_MULTI_BAR_STACK_4_GRID_SLOT } from './PP_MULTI_BAR_STACK_4_GRID_SLOT'
4
+ // export { PP_MULTI_BAR_STACK_ROUND } from './PP_MULTI_BAR_STACK_ROUND'
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiBarsParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_BARS_2_GRID_SLOT: PluginParamsFile<MultiBarsParams> = {
5
+ id: 'PP_MULTI_BARS_2_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiBars',
8
+ description: '2組群組長條圖',
9
+ data: {
10
+ gridIndexes: [0, 1]
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiBarsParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_BARS_3_GRID_SLOT: PluginParamsFile<MultiBarsParams> = {
5
+ id: 'PP_MULTI_BARS_3_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiBars',
8
+ description: '3組群組長條圖',
9
+ data: {
10
+ gridIndexes: [0, 1, 2]
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiBarsParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_BARS_4_GRID_SLOT: PluginParamsFile<MultiBarsParams> = {
5
+ id: 'PP_MULTI_BARS_4_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiBars',
8
+ description: '4組群組長條圖',
9
+ data: {
10
+ gridIndexes: [0, 1, 2, 3]
11
+ }
12
+ }
@@ -0,0 +1,15 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiBarsParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_BARS_ROUND: PluginParamsFile<MultiBarsParams> = {
5
+ id: 'PP_MULTI_BARS_ROUND',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiBars',
8
+ description: '圓角長條圖',
9
+ data: {
10
+ barWidth: 0,
11
+ barPadding: 1,
12
+ barGroupPadding: 10,
13
+ barRadius: true,
14
+ }
15
+ }
@@ -0,0 +1,5 @@
1
+ export { PP_MULTI_BARS_2_GRID_SLOT } from './PP_MULTI_BARS_2_GRID_SLOT'
2
+ export { PP_MULTI_BARS_3_GRID_SLOT } from './PP_MULTI_BARS_3_GRID_SLOT'
3
+ export { PP_MULTI_BARS_4_GRID_SLOT } from './PP_MULTI_BARS_4_GRID_SLOT'
4
+ export { PP_MULTI_BARS_ROUND } from './PP_MULTI_BARS_ROUND'
5
+
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiBarsTriangleParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT: PluginParamsFile<MultiBarsTriangleParams> = {
5
+ id: 'PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiBarsTriangle',
8
+ description: '2組群組三角長條圖',
9
+ data: {
10
+ gridIndexes: [0, 1]
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiBarsTriangleParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT: PluginParamsFile<MultiBarsTriangleParams> = {
5
+ id: 'PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiBarsTriangle',
8
+ description: '3組群組三角長條圖',
9
+ data: {
10
+ gridIndexes: [0, 1, 2]
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiBarsTriangleParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT: PluginParamsFile<MultiBarsTriangleParams> = {
5
+ id: 'PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiBarsTriangle',
8
+ description: '4組群組三角長條圖',
9
+ data: {
10
+ gridIndexes: [0, 1, 2, 3]
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ export { PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT } from './PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT'
2
+ export { PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT } from './PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT'
3
+ export { PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT } from './PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT'
@@ -0,0 +1,14 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { GridLegendParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_GRID_LEGEND_BOTTOM: PluginParamsFile<GridLegendParams> = {
5
+ id: 'PP_MULTI_GRID_LEGEND_BOTTOM',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiGridLegend',
8
+ description: '底部圖例',
9
+ data: {
10
+ position: 'bottom',
11
+ justify: 'center',
12
+ padding: 14,
13
+ }
14
+ }
@@ -0,0 +1,28 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiGridLegendParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST: PluginParamsFile<MultiGridLegendParams> = {
5
+ id: 'PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiGridLegend',
8
+ description: '底部圖例線條列點',
9
+ data: {
10
+ position: 'bottom',
11
+ justify: 'center',
12
+ padding: 14,
13
+ gridList: [
14
+ {
15
+ listRectHeight: 2,
16
+ },
17
+ {
18
+ listRectHeight: 2,
19
+ },
20
+ {
21
+ listRectHeight: 2,
22
+ },
23
+ {
24
+ listRectHeight: 2,
25
+ }
26
+ ]
27
+ }
28
+ }
@@ -0,0 +1,21 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiGridLegendParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST: PluginParamsFile<MultiGridLegendParams> = {
5
+ id: 'PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiGridLegend',
8
+ description: '底部圖例矩型及線條列點',
9
+ data: {
10
+ position: 'bottom',
11
+ justify: 'center',
12
+ padding: 14,
13
+ gridList: [
14
+ {
15
+ },
16
+ {
17
+ listRectHeight: 2,
18
+ }
19
+ ]
20
+ }
21
+ }
@@ -0,0 +1,22 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiGridLegendParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST: PluginParamsFile<MultiGridLegendParams> = {
5
+ id: 'PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiGridLegend',
8
+ description: '底部圖例圓型及線條列點',
9
+ data: {
10
+ position: 'bottom',
11
+ justify: 'center',
12
+ padding: 14,
13
+ gridList: [
14
+ {
15
+ listRectRadius: 7,
16
+ },
17
+ {
18
+ listRectHeight: 2,
19
+ }
20
+ ]
21
+ }
22
+ }
@@ -0,0 +1,4 @@
1
+ export { PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST } from './PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'
2
+ export { PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST } from './PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST'
3
+ export { PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST} from './PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST'
4
+ export { PP_MULTI_GRID_LEGEND_BOTTOM } from './PP_MULTI_GRID_LEGEND_BOTTOM'
@@ -0,0 +1,13 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiGroupAxisParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_GROUP_AXIS_2_GRID_SLOT: PluginParamsFile<MultiGroupAxisParams> = {
5
+ id: 'PP_MULTI_GROUP_AXIS_2_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiGroupAxis',
8
+ description: '2個群組圖軸',
9
+ data: {
10
+ tickTextRotate: -30,
11
+ gridIndexes: [0, 1]
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiGroupAxisParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_GROUP_AXIS_3_GRID_SLOT: PluginParamsFile<MultiGroupAxisParams> = {
5
+ id: 'PP_MULTI_GROUP_AXIS_3_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiGroupAxis',
8
+ description: '3個群組圖軸',
9
+ data: {
10
+ tickTextRotate: -30,
11
+ gridIndexes: [0, 1, 2]
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiGroupAxisParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_GROUP_AXIS_4_GRID_SLOT: PluginParamsFile<MultiGroupAxisParams> = {
5
+ id: 'PP_MULTI_GROUP_AXIS_4_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiGroupAxis',
8
+ description: '4個群組圖軸',
9
+ data: {
10
+ tickTextRotate: -30,
11
+ gridIndexes: [0, 1, 2, 3]
12
+ }
13
+ }
@@ -0,0 +1,3 @@
1
+ export { PP_MULTI_GROUP_AXIS_2_GRID_SLOT } from './PP_MULTI_GROUP_AXIS_2_GRID_SLOT'
2
+ export { PP_MULTI_GROUP_AXIS_3_GRID_SLOT } from './PP_MULTI_GROUP_AXIS_3_GRID_SLOT'
3
+ export { PP_MULTI_GROUP_AXIS_4_GRID_SLOT } from './PP_MULTI_GROUP_AXIS_4_GRID_SLOT'
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiLinesParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_LINES_2_GRID_SLOT: PluginParamsFile<MultiLinesParams> = {
5
+ id: 'PP_MULTI_LINES_2_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiLines',
8
+ description: '2組折線圖',
9
+ data: {
10
+ gridIndexes: [0, 1]
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiLinesParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_LINES_3_GRID_SLOT: PluginParamsFile<MultiLinesParams> = {
5
+ id: 'PP_MULTI_LINES_3_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiLines',
8
+ description: '3組折線圖',
9
+ data: {
10
+ gridIndexes: [0, 1, 2]
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiLinesParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_LINES_4_GRID_SLOT: PluginParamsFile<MultiLinesParams> = {
5
+ id: 'PP_MULTI_LINES_4_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiLines',
8
+ description: '4組折線圖',
9
+ data: {
10
+ gridIndexes: [0, 1, 2, 3]
11
+ }
12
+ }
@@ -0,0 +1,13 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiLinesParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_LINES_CURVE: PluginParamsFile<MultiLinesParams> = {
5
+ id: 'PP_MULTI_LINES_CURVE',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiLines',
8
+ description: '圓弧折線圖',
9
+ data: {
10
+ lineCurve: 'curveMonotoneX',
11
+ lineWidth: 3
12
+ }
13
+ }
@@ -0,0 +1,4 @@
1
+ export { PP_MULTI_LINES_2_GRID_SLOT } from './PP_MULTI_LINES_2_GRID_SLOT'
2
+ export { PP_MULTI_LINES_3_GRID_SLOT } from './PP_MULTI_LINES_3_GRID_SLOT'
3
+ export { PP_MULTI_LINES_4_GRID_SLOT } from './PP_MULTI_LINES_4_GRID_SLOT'
4
+ export { PP_MULTI_LINES_CURVE } from './PP_MULTI_LINES_CURVE'
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiGroupAxisParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_VALUE_AXIS_2_GRID_SLOT: PluginParamsFile<MultiGroupAxisParams> = {
5
+ id: 'PP_MULTI_VALUE_AXIS_2_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiValueAxis',
8
+ description: '2個資料圖軸',
9
+ data: {
10
+ gridIndexes: [0, 1]
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiValueAxisParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_VALUE_AXIS_3_GRID_SLOT: PluginParamsFile<MultiValueAxisParams> = {
5
+ id: 'PP_MULTI_VALUE_AXIS_3_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiValueAxis',
8
+ description: '3個資料圖軸',
9
+ data: {
10
+ gridIndexes: [0, 1, 2]
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { MultiValueAxisParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_MULTI_VALUE_AXIS_4_GRID_SLOT: PluginParamsFile<MultiValueAxisParams> = {
5
+ id: 'PP_MULTI_VALUE_AXIS_4_GRID_SLOT',
6
+ chartType: 'multiGrid',
7
+ pluginName: 'MultiValueAxis',
8
+ description: '4個資料圖軸',
9
+ data: {
10
+ gridIndexes: [0, 1, 2, 3]
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ export { PP_MULTI_VALUE_AXIS_2_GRID_SLOT } from './PP_MULTI_VALUE_AXIS_2_GRID_SLOT'
2
+ export { PP_MULTI_VALUE_AXIS_3_GRID_SLOT } from './PP_MULTI_VALUE_AXIS_3_GRID_SLOT'
3
+ export { PP_MULTI_VALUE_AXIS_4_GRID_SLOT } from './PP_MULTI_VALUE_AXIS_4_GRID_SLOT'
@@ -1 +1,7 @@
1
- export const temp = {}
1
+ export * from './MultiBars'
2
+ export * from './MultiBarStack'
3
+ export * from './MultiBarsTriangle'
4
+ export * from './MultiLines'
5
+ export * from './MultiGridLegend'
6
+ export * from './MultiGroupAxis'
7
+ export * from './MultiValueAxis'
@@ -0,0 +1,14 @@
1
+ import type { PluginParamsFile } from '../../types'
2
+ import type { TreeLegendParams } from '@orbcharts/plugins-basic'
3
+
4
+ export const PP_TREE_LEGEND_BOTTOM: PluginParamsFile<TreeLegendParams> = {
5
+ id: 'PP_TREE_LEGEND_BOTTOM',
6
+ chartType: 'tree',
7
+ pluginName: 'TreeLegend',
8
+ description: '底部圖例',
9
+ data: {
10
+ position: 'bottom',
11
+ justify: 'center',
12
+ padding: 14,
13
+ }
14
+ }
@@ -0,0 +1 @@
1
+ export { PP_TREE_LEGEND_BOTTOM } from './PP_TREE_LEGEND_BOTTOM'
@@ -1 +1 @@
1
- export const temp = {}
1
+ export * from './TreeLegend'
package/src/types.ts CHANGED
@@ -2,7 +2,8 @@ import type {
2
2
  ChartParamsPartial,
3
3
  DataFormatterPartialTypeMap,
4
4
  ChartType,
5
- Preset } from '@orbcharts/core'
5
+ Preset } from '@orbcharts/core/src/index'
6
+ // import * as core from '../../packages/orbcharts-core/src/index'
6
7
  import * as chartParams from './chartParamsFiles'
7
8
  import * as seriesDataFormatters from './seriesDataFormatterFiles'
8
9
  import * as seriesPluginParams from './seriesPluginParamsFiles'
@@ -17,6 +18,8 @@ import * as relationshipPluginParams from './relationshipPluginParamsFiles'
17
18
  import * as treeDataFormatters from './treeDataFormatterFiles'
18
19
  import * as treePluginParams from './treePluginParamsFiles'
19
20
 
21
+ type DeepPartial<T> = Partial<{ [P in keyof T]: DeepPartial<T[P]> }>
22
+
20
23
  export interface ChartParamsFile {
21
24
  id: string
22
25
  description: string
@@ -35,7 +38,7 @@ export interface PluginParamsFile<PluginParams> {
35
38
  chartType: ChartType
36
39
  pluginName: string
37
40
  description: string
38
- data: Partial<PluginParams>
41
+ data: DeepPartial<PluginParams>
39
42
  }
40
43
 
41
44
  export interface PresetFile<T extends ChartType> {
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "./dist/",
4
+ "sourceMap": true,
5
+ "noImplicitAny": true,
6
+ "module": "es6",
7
+ "target": "es5",
8
+ "jsx": "react",
9
+ "allowJs": true,
10
+ "moduleResolution": "node",
11
+ "allowSyntheticDefaultImports" : true,
12
+ "esModuleInterop" : true,
13
+ "paths":{
14
+ "@orbcharts/core": ["./../orbcharts-core/src"],
15
+ "@orbcharts/plugins-basic": ["./../orbcharts-plugins-basic/src"]
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "./dist/",
4
+ "sourceMap": true,
5
+ "noImplicitAny": true,
6
+ "module": "es6",
7
+ "target": "es5",
8
+ "jsx": "react",
9
+ "allowJs": true,
10
+ "moduleResolution": "node",
11
+ "allowSyntheticDefaultImports" : true,
12
+ "esModuleInterop" : true
13
+ }
14
+ }
@@ -1,3 +0,0 @@
1
- import { DataFormatterFile } from '../types';
2
-
3
- export declare const DF_BOTTOM_VALUE_AXIS: DataFormatterFile<'grid'>;
@@ -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
- }