@orbcharts/presets-basic 3.0.0-alpha.46 → 3.0.0-alpha.48

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 (59) hide show
  1. package/LICENSE +200 -200
  2. package/dist/lib/plugins-basic-types.d.ts +1 -0
  3. package/dist/src/types.d.ts +1 -1
  4. package/lib/core-types.ts +7 -7
  5. package/lib/plugins-basic-types.ts +6 -0
  6. package/package.json +41 -43
  7. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +62 -62
  8. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +59 -59
  9. package/src/grid/PRESET_BARS_ROUND.ts +46 -46
  10. package/src/grid/PRESET_BARS_THIN.ts +43 -43
  11. package/src/grid/PRESET_GRID_BASIC.ts +25 -25
  12. package/src/grid/PRESET_GRID_HORIZONTAL.ts +42 -42
  13. package/src/grid/PRESET_GRID_PN_SCALE.ts +33 -33
  14. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +33 -33
  15. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +38 -38
  16. package/src/grid/PRESET_LINES_BASIC.ts +44 -44
  17. package/src/grid/PRESET_LINES_CURVE.ts +47 -47
  18. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +46 -46
  19. package/src/grid/PRESET_LINES_HORIZONTAL.ts +60 -60
  20. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +46 -46
  21. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +49 -49
  22. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +48 -48
  23. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +54 -54
  24. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +59 -59
  25. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +58 -58
  26. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +58 -58
  27. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +56 -56
  28. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +59 -59
  29. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +61 -61
  30. package/src/grid/index.ts +22 -22
  31. package/src/index.ts +4 -4
  32. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +36 -36
  33. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +85 -85
  34. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +57 -57
  35. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +59 -59
  36. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +103 -103
  37. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +121 -121
  38. package/src/multiGrid/index.ts +6 -6
  39. package/src/params.ts +56 -56
  40. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +19 -19
  41. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
  42. package/src/series/PRESET_PIE_BASIC.ts +18 -18
  43. package/src/series/PRESET_PIE_DONUT.ts +26 -26
  44. package/src/series/PRESET_PIE_HALF_DONUT.ts +39 -39
  45. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +27 -27
  46. package/src/series/PRESET_ROSE_BASIC.ts +18 -18
  47. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +26 -26
  48. package/src/series/PRESET_SERIES_BASIC.ts +15 -15
  49. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +16 -16
  50. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +17 -17
  51. package/src/series/PRESET_SERIES_SUM_SERIES.ts +17 -17
  52. package/src/series/index.ts +13 -13
  53. package/src/tree/PRESET_TREE_BASIC.ts +25 -25
  54. package/src/types.ts +241 -241
  55. package/tsconfig.base.json +13 -13
  56. package/tsconfig.json +2 -2
  57. package/vite.config.js +22 -22
  58. package/dist/lib/plugins-basic.d.ts +0 -1
  59. package/lib/plugins-basic.ts +0 -6
@@ -1,59 +1,59 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type {
3
- PresetMultiGridSepratedPluginParams,
4
- PresetNoneDataPluginParams
5
- } from '../types'
6
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
7
-
8
- export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', PresetMultiGridSepratedPluginParams
9
- & PresetNoneDataPluginParams> = {
10
- name: 'PRESET_MULTI_GRID_SEPARATE_GRID',
11
- description: '2組Grid圖表',
12
- chartParams: {
13
- padding: {
14
- top: 60,
15
- right: 60,
16
- bottom: 160,
17
- left: 60
18
- },
19
- },
20
- dataFormatter: {
21
- separateGrid: true,
22
- },
23
- allPluginParams: {
24
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
25
- MultiGroupAxis: {
26
- tickTextRotate: -30,
27
- gridIndexes: 'all'
28
- },
29
- MultiValueAxis: {
30
- gridIndexes: 'all'
31
- },
32
- MultiValueStackAxis: {
33
- gridIndexes: 'all'
34
- },
35
- MultiBars: {
36
- gridIndexes: 'all'
37
- },
38
- MultiBarStack: {
39
- gridIndexes: 'all'
40
- },
41
- MultiBarsTriangle: {
42
- gridIndexes: 'all'
43
- },
44
- MultiLines: {
45
- gridIndexes: 'all'
46
- },
47
- MultiLineAreas: {
48
- gridIndexes: 'all'
49
- },
50
- MultiDots: {
51
- gridIndexes: 'all'
52
- },
53
- MultiGridLegend: {
54
- position: 'bottom',
55
- justify: 'center',
56
- padding: 14,
57
- }
58
- }
59
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type {
3
+ PresetMultiGridSepratedPluginParams,
4
+ PresetNoneDataPluginParams
5
+ } from '../types'
6
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
7
+
8
+ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', PresetMultiGridSepratedPluginParams
9
+ & PresetNoneDataPluginParams> = {
10
+ name: 'PRESET_MULTI_GRID_SEPARATE_GRID',
11
+ description: '2組Grid圖表',
12
+ chartParams: {
13
+ padding: {
14
+ top: 60,
15
+ right: 60,
16
+ bottom: 160,
17
+ left: 60
18
+ },
19
+ },
20
+ dataFormatter: {
21
+ separateGrid: true,
22
+ },
23
+ allPluginParams: {
24
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
25
+ MultiGroupAxis: {
26
+ tickTextRotate: -30,
27
+ gridIndexes: 'all'
28
+ },
29
+ MultiValueAxis: {
30
+ gridIndexes: 'all'
31
+ },
32
+ MultiValueStackAxis: {
33
+ gridIndexes: 'all'
34
+ },
35
+ MultiBars: {
36
+ gridIndexes: 'all'
37
+ },
38
+ MultiBarStack: {
39
+ gridIndexes: 'all'
40
+ },
41
+ MultiBarsTriangle: {
42
+ gridIndexes: 'all'
43
+ },
44
+ MultiLines: {
45
+ gridIndexes: 'all'
46
+ },
47
+ MultiLineAreas: {
48
+ gridIndexes: 'all'
49
+ },
50
+ MultiDots: {
51
+ gridIndexes: 'all'
52
+ },
53
+ MultiGridLegend: {
54
+ position: 'bottom',
55
+ justify: 'center',
56
+ padding: 14,
57
+ }
58
+ }
59
+ }
@@ -1,103 +1,103 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type {
3
- PresetMultiGroupAxisParams,
4
- PresetMultiValueAxisParams,
5
- PresetMultiValueStackAxisParams,
6
- PresetMultiBarsParams,
7
- PresetMultiBarStackParams,
8
- PresetMultiBarsTriangleParams,
9
- PresetMultiLinesParams,
10
- PresetMultiLineAreasParams,
11
- PresetMultiDotsParams,
12
- PresetMultiGridLegendParams,
13
- PresetNoneDataPluginParams
14
- } from '../types'
15
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
16
-
17
- export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', PresetMultiGroupAxisParams
18
- & PresetMultiValueAxisParams
19
- & PresetMultiValueStackAxisParams
20
- & PresetMultiBarsParams
21
- & PresetMultiBarStackParams
22
- & PresetMultiBarsTriangleParams
23
- & PresetMultiLinesParams
24
- & PresetMultiLineAreasParams
25
- & PresetMultiDotsParams
26
- & PresetMultiGridLegendParams
27
- & PresetNoneDataPluginParams> = {
28
- name: 'PRESET_MULTI_LINES_SEPARATE_GRID',
29
- description: '多組分開折線圖表',
30
- chartParams: {
31
- padding: {
32
- top: 60,
33
- right: 60,
34
- bottom: 160,
35
- left: 60
36
- },
37
- },
38
- dataFormatter: {
39
- separateGrid: true,
40
- },
41
- allPluginParams: {
42
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
43
- MultiGroupAxis: {
44
- tickTextRotate: -30,
45
- gridIndexes: 'all'
46
- },
47
- MultiValueAxis: {
48
- gridIndexes: 'all'
49
- },
50
- MultiValueStackAxis: {
51
- gridIndexes: 'all'
52
- },
53
- MultiBars: {
54
- gridIndexes: 'all'
55
- },
56
- MultiBarStack: {
57
- gridIndexes: 'all'
58
- },
59
- MultiBarsTriangle: {
60
- gridIndexes: 'all'
61
- },
62
- MultiLines: {
63
- gridIndexes: 'all'
64
- },
65
- MultiLineAreas: {
66
- gridIndexes: 'all'
67
- },
68
- MultiDots: {
69
- gridIndexes: 'all'
70
- },
71
- MultiGridLegend: {
72
- position: 'bottom',
73
- justify: 'center',
74
- padding: 14,
75
- gridList: [
76
- {
77
- listRectHeight: 2,
78
- },
79
- {
80
- listRectHeight: 2,
81
- },
82
- {
83
- listRectHeight: 2,
84
- },
85
- {
86
- listRectHeight: 2,
87
- },
88
- {
89
- listRectHeight: 2,
90
- },
91
- {
92
- listRectHeight: 2,
93
- },
94
- {
95
- listRectHeight: 2,
96
- },
97
- {
98
- listRectHeight: 2,
99
- }
100
- ]
101
- }
102
- }
103
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type {
3
+ PresetMultiGroupAxisParams,
4
+ PresetMultiValueAxisParams,
5
+ PresetMultiValueStackAxisParams,
6
+ PresetMultiBarsParams,
7
+ PresetMultiBarStackParams,
8
+ PresetMultiBarsTriangleParams,
9
+ PresetMultiLinesParams,
10
+ PresetMultiLineAreasParams,
11
+ PresetMultiDotsParams,
12
+ PresetMultiGridLegendParams,
13
+ PresetNoneDataPluginParams
14
+ } from '../types'
15
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
16
+
17
+ export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', PresetMultiGroupAxisParams
18
+ & PresetMultiValueAxisParams
19
+ & PresetMultiValueStackAxisParams
20
+ & PresetMultiBarsParams
21
+ & PresetMultiBarStackParams
22
+ & PresetMultiBarsTriangleParams
23
+ & PresetMultiLinesParams
24
+ & PresetMultiLineAreasParams
25
+ & PresetMultiDotsParams
26
+ & PresetMultiGridLegendParams
27
+ & PresetNoneDataPluginParams> = {
28
+ name: 'PRESET_MULTI_LINES_SEPARATE_GRID',
29
+ description: '多組分開折線圖表',
30
+ chartParams: {
31
+ padding: {
32
+ top: 60,
33
+ right: 60,
34
+ bottom: 160,
35
+ left: 60
36
+ },
37
+ },
38
+ dataFormatter: {
39
+ separateGrid: true,
40
+ },
41
+ allPluginParams: {
42
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
43
+ MultiGroupAxis: {
44
+ tickTextRotate: -30,
45
+ gridIndexes: 'all'
46
+ },
47
+ MultiValueAxis: {
48
+ gridIndexes: 'all'
49
+ },
50
+ MultiValueStackAxis: {
51
+ gridIndexes: 'all'
52
+ },
53
+ MultiBars: {
54
+ gridIndexes: 'all'
55
+ },
56
+ MultiBarStack: {
57
+ gridIndexes: 'all'
58
+ },
59
+ MultiBarsTriangle: {
60
+ gridIndexes: 'all'
61
+ },
62
+ MultiLines: {
63
+ gridIndexes: 'all'
64
+ },
65
+ MultiLineAreas: {
66
+ gridIndexes: 'all'
67
+ },
68
+ MultiDots: {
69
+ gridIndexes: 'all'
70
+ },
71
+ MultiGridLegend: {
72
+ position: 'bottom',
73
+ justify: 'center',
74
+ padding: 14,
75
+ gridList: [
76
+ {
77
+ listRectHeight: 2,
78
+ },
79
+ {
80
+ listRectHeight: 2,
81
+ },
82
+ {
83
+ listRectHeight: 2,
84
+ },
85
+ {
86
+ listRectHeight: 2,
87
+ },
88
+ {
89
+ listRectHeight: 2,
90
+ },
91
+ {
92
+ listRectHeight: 2,
93
+ },
94
+ {
95
+ listRectHeight: 2,
96
+ },
97
+ {
98
+ listRectHeight: 2,
99
+ }
100
+ ]
101
+ }
102
+ }
103
+ }
@@ -1,121 +1,121 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type {
3
- PresetMultiGroupAxisParams,
4
- PresetMultiValueAxisParams,
5
- PresetMultiValueStackAxisParams,
6
- PresetMultiBarsParams,
7
- PresetMultiBarStackParams,
8
- PresetMultiBarsTriangleParams,
9
- PresetMultiLinesParams,
10
- PresetMultiLineAreasParams,
11
- PresetMultiDotsParams,
12
- PresetMultiGridLegendParams,
13
- PresetNoneDataPluginParams
14
- } from '../types'
15
- import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
16
-
17
- export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', PresetMultiGroupAxisParams
18
- & PresetMultiValueAxisParams
19
- & PresetMultiValueStackAxisParams
20
- & PresetMultiBarsParams
21
- & PresetMultiBarStackParams
22
- & PresetMultiBarsTriangleParams
23
- & PresetMultiLinesParams
24
- & PresetMultiLineAreasParams
25
- & PresetMultiDotsParams
26
- & PresetMultiGridLegendParams
27
- & PresetNoneDataPluginParams> = {
28
- name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID',
29
- description: '2組區域圖表',
30
- chartParams: {
31
- padding: {
32
- top: 60,
33
- right: 60,
34
- bottom: 160,
35
- left: 60
36
- },
37
- },
38
- dataFormatter: {
39
- gridList: [
40
- {
41
- // slotIndex: 0
42
- groupAxis: {
43
- scalePadding: 0
44
- }
45
- },
46
- {
47
- // slotIndex: 1,
48
- groupAxis: {
49
- scalePadding: 0
50
- }
51
- }
52
- ],
53
- separateGrid: true,
54
- // container: {
55
- // rowAmount: 1,
56
- // columnAmount: 2,
57
- // }
58
- },
59
- allPluginParams: {
60
- ...ALL_PLUGIN_PARAMS_NONE_DATA,
61
- MultiGroupAxis: {
62
- tickTextRotate: -30,
63
- gridIndexes: 'all'
64
- },
65
- MultiValueAxis: {
66
- gridIndexes: 'all'
67
- },
68
- MultiValueStackAxis: {
69
- gridIndexes: 'all'
70
- },
71
- MultiBars: {
72
- gridIndexes: 'all'
73
- },
74
- MultiBarStack: {
75
- gridIndexes: 'all'
76
- },
77
- MultiBarsTriangle: {
78
- gridIndexes: 'all'
79
- },
80
- MultiLines: {
81
- gridIndexes: 'all'
82
- },
83
- MultiLineAreas: {
84
- gridIndexes: 'all'
85
- },
86
- MultiDots: {
87
- gridIndexes: 'all'
88
- },
89
- MultiGridLegend: {
90
- position: 'bottom',
91
- justify: 'center',
92
- padding: 14,
93
- gridList: [
94
- {
95
- listRectHeight: 2,
96
- },
97
- {
98
- listRectHeight: 2,
99
- },
100
- {
101
- listRectHeight: 2,
102
- },
103
- {
104
- listRectHeight: 2,
105
- },
106
- {
107
- listRectHeight: 2,
108
- },
109
- {
110
- listRectHeight: 2,
111
- },
112
- {
113
- listRectHeight: 2,
114
- },
115
- {
116
- listRectHeight: 2,
117
- }
118
- ]
119
- }
120
- }
121
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type {
3
+ PresetMultiGroupAxisParams,
4
+ PresetMultiValueAxisParams,
5
+ PresetMultiValueStackAxisParams,
6
+ PresetMultiBarsParams,
7
+ PresetMultiBarStackParams,
8
+ PresetMultiBarsTriangleParams,
9
+ PresetMultiLinesParams,
10
+ PresetMultiLineAreasParams,
11
+ PresetMultiDotsParams,
12
+ PresetMultiGridLegendParams,
13
+ PresetNoneDataPluginParams
14
+ } from '../types'
15
+ import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
16
+
17
+ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', PresetMultiGroupAxisParams
18
+ & PresetMultiValueAxisParams
19
+ & PresetMultiValueStackAxisParams
20
+ & PresetMultiBarsParams
21
+ & PresetMultiBarStackParams
22
+ & PresetMultiBarsTriangleParams
23
+ & PresetMultiLinesParams
24
+ & PresetMultiLineAreasParams
25
+ & PresetMultiDotsParams
26
+ & PresetMultiGridLegendParams
27
+ & PresetNoneDataPluginParams> = {
28
+ name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID',
29
+ description: '2組區域圖表',
30
+ chartParams: {
31
+ padding: {
32
+ top: 60,
33
+ right: 60,
34
+ bottom: 160,
35
+ left: 60
36
+ },
37
+ },
38
+ dataFormatter: {
39
+ gridList: [
40
+ {
41
+ // slotIndex: 0
42
+ groupAxis: {
43
+ scalePadding: 0
44
+ }
45
+ },
46
+ {
47
+ // slotIndex: 1,
48
+ groupAxis: {
49
+ scalePadding: 0
50
+ }
51
+ }
52
+ ],
53
+ separateGrid: true,
54
+ // container: {
55
+ // rowAmount: 1,
56
+ // columnAmount: 2,
57
+ // }
58
+ },
59
+ allPluginParams: {
60
+ ...ALL_PLUGIN_PARAMS_NONE_DATA,
61
+ MultiGroupAxis: {
62
+ tickTextRotate: -30,
63
+ gridIndexes: 'all'
64
+ },
65
+ MultiValueAxis: {
66
+ gridIndexes: 'all'
67
+ },
68
+ MultiValueStackAxis: {
69
+ gridIndexes: 'all'
70
+ },
71
+ MultiBars: {
72
+ gridIndexes: 'all'
73
+ },
74
+ MultiBarStack: {
75
+ gridIndexes: 'all'
76
+ },
77
+ MultiBarsTriangle: {
78
+ gridIndexes: 'all'
79
+ },
80
+ MultiLines: {
81
+ gridIndexes: 'all'
82
+ },
83
+ MultiLineAreas: {
84
+ gridIndexes: 'all'
85
+ },
86
+ MultiDots: {
87
+ gridIndexes: 'all'
88
+ },
89
+ MultiGridLegend: {
90
+ position: 'bottom',
91
+ justify: 'center',
92
+ padding: 14,
93
+ gridList: [
94
+ {
95
+ listRectHeight: 2,
96
+ },
97
+ {
98
+ listRectHeight: 2,
99
+ },
100
+ {
101
+ listRectHeight: 2,
102
+ },
103
+ {
104
+ listRectHeight: 2,
105
+ },
106
+ {
107
+ listRectHeight: 2,
108
+ },
109
+ {
110
+ listRectHeight: 2,
111
+ },
112
+ {
113
+ listRectHeight: 2,
114
+ },
115
+ {
116
+ listRectHeight: 2,
117
+ }
118
+ ]
119
+ }
120
+ }
121
+ }
@@ -1,6 +1,6 @@
1
- export { PRESET_MULTI_GRID_BASIC } from './PRESET_MULTI_GRID_BASIC'
2
- export { PRESET_MULTI_GRID_DIVERGING } from './PRESET_MULTI_GRID_DIVERGING'
3
- export { PRESET_MULTI_GRID_ROUND_STYLE } from './PRESET_MULTI_GRID_ROUND_STYLE'
4
- export { PRESET_MULTI_GRID_SEPARATE_GRID } from './PRESET_MULTI_GRID_SEPARATE_GRID'
5
- export { PRESET_MULTI_LINE_AREAS_SEPARATE_GRID } from './PRESET_MULTI_LINE_AREAS_SEPARATE_GRID'
6
- export { PRESET_MULTI_LINES_SEPARATE_GRID } from './PRESET_MULTI_LINES_SEPARATE_GRID'
1
+ export { PRESET_MULTI_GRID_BASIC } from './PRESET_MULTI_GRID_BASIC'
2
+ export { PRESET_MULTI_GRID_DIVERGING } from './PRESET_MULTI_GRID_DIVERGING'
3
+ export { PRESET_MULTI_GRID_ROUND_STYLE } from './PRESET_MULTI_GRID_ROUND_STYLE'
4
+ export { PRESET_MULTI_GRID_SEPARATE_GRID } from './PRESET_MULTI_GRID_SEPARATE_GRID'
5
+ export { PRESET_MULTI_LINE_AREAS_SEPARATE_GRID } from './PRESET_MULTI_LINE_AREAS_SEPARATE_GRID'
6
+ export { PRESET_MULTI_LINES_SEPARATE_GRID } from './PRESET_MULTI_LINES_SEPARATE_GRID'