@orbcharts/presets-basic 3.0.0-beta.6 → 3.0.0-beta.8

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 (78) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-presets-basic.es.js +143 -53
  3. package/dist/orbcharts-presets-basic.umd.js +1 -1
  4. package/dist/src/params.d.ts +2 -1
  5. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.d.ts +4 -0
  6. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.d.ts +4 -0
  7. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.d.ts +4 -0
  8. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.d.ts +4 -0
  9. package/dist/src/relationship/index.d.ts +4 -0
  10. package/dist/src/types.d.ts +5 -2
  11. package/lib/core-types.ts +7 -7
  12. package/lib/plugins-basic-types.ts +6 -6
  13. package/package.json +42 -42
  14. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +56 -56
  15. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +52 -52
  16. package/src/grid/PRESET_BARS_ROUND.ts +39 -39
  17. package/src/grid/PRESET_BARS_THIN.ts +36 -36
  18. package/src/grid/PRESET_GRID_BASIC.ts +27 -27
  19. package/src/grid/PRESET_GRID_HORIZONTAL.ts +44 -44
  20. package/src/grid/PRESET_GRID_PN_SCALE.ts +35 -35
  21. package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +35 -35
  22. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +40 -40
  23. package/src/grid/PRESET_LINES_BASIC.ts +35 -35
  24. package/src/grid/PRESET_LINES_CURVE.ts +38 -38
  25. package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +37 -37
  26. package/src/grid/PRESET_LINES_HORIZONTAL.ts +51 -51
  27. package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +37 -37
  28. package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +40 -40
  29. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +39 -39
  30. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +43 -43
  31. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +48 -48
  32. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +47 -47
  33. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +47 -47
  34. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +45 -45
  35. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +48 -48
  36. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +50 -50
  37. package/src/grid/index.ts +22 -22
  38. package/src/index.ts +6 -6
  39. package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +38 -38
  40. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +86 -86
  41. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +58 -58
  42. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +60 -60
  43. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +86 -86
  44. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +104 -104
  45. package/src/multiGrid/index.ts +6 -6
  46. package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +23 -23
  47. package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +26 -26
  48. package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +26 -26
  49. package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +26 -26
  50. package/src/multiValue/index.ts +3 -3
  51. package/src/params.ts +80 -71
  52. package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +23 -23
  53. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +23 -0
  54. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +28 -0
  55. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +30 -0
  56. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +25 -0
  57. package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +30 -30
  58. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +28 -28
  59. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +25 -25
  60. package/src/relationship/index.ts +7 -3
  61. package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +18 -18
  62. package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
  63. package/src/series/PRESET_PIE_BASIC.ts +18 -18
  64. package/src/series/PRESET_PIE_DONUT.ts +23 -23
  65. package/src/series/PRESET_PIE_HALF_DONUT.ts +36 -36
  66. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +24 -24
  67. package/src/series/PRESET_ROSE_BASIC.ts +19 -19
  68. package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +24 -24
  69. package/src/series/PRESET_SERIES_BASIC.ts +16 -16
  70. package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +17 -17
  71. package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +18 -18
  72. package/src/series/PRESET_SERIES_SUM_SERIES.ts +18 -18
  73. package/src/series/index.ts +13 -13
  74. package/src/tree/PRESET_TREE_MAP_BASIC.ts +27 -27
  75. package/src/types.ts +349 -343
  76. package/tsconfig.base.json +13 -13
  77. package/tsconfig.json +2 -2
  78. package/vite.config.js +22 -22
package/src/params.ts CHANGED
@@ -1,72 +1,81 @@
1
- import type {
2
- PresetSeriesPluginParams,
3
- PresetGridPluginParams,
4
- PresetMultiGridPluginParams,
5
- PresetMultiValuePluginParams,
6
- PresetTreePluginParams,
7
- PresetNoneDataPluginParams
8
- } from './types'
9
-
10
- export const ALL_PLUGIN_PARAMS_SERIES: PresetSeriesPluginParams = {
11
- Bubbles: {},
12
- Pie: {},
13
- PieEventTexts: {},
14
- PieLabels: {},
15
- Rose: {},
16
- RoseLabels: {},
17
- SeriesLegend: {},
18
- SeriesTooltip: {},
19
- }
20
-
21
- export const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams = {
22
- Bars: {},
23
- BarsPN: {},
24
- StackedBar: {},
25
- BarsTriangle: {},
26
- Dots: {},
27
- GridLegend: {},
28
- GridTooltip: {},
29
- GroupAux: {},
30
- GroupAxis: {},
31
- LineAreas: {},
32
- Lines: {},
33
- GridZoom: {},
34
- ValueAxis: {},
35
- StackedValueAxis: {},
36
- }
37
-
38
- export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
39
- MultiBars: {},
40
- MultiStackedBar: {},
41
- MultiBarsTriangle: {},
42
- MultiDots: {},
43
- MultiGridLegend: {},
44
- MultiGridTooltip: {},
45
- MultiGroupAxis: {},
46
- MultiLineAreas: {},
47
- MultiLines: {},
48
- MultiValueAxis: {},
49
- MultiStackedValueAxis: {},
50
- OverlappingValueAxes: {},
51
- OverlappingStackedValueAxes: {},
52
- }
53
-
54
- export const ALL_PLUGIN_PARAMS_MULTI_VALUE: PresetMultiValuePluginParams = {
55
- MultiValueLegend: {},
56
- MultiValueTooltip: {},
57
- Scatter: {},
58
- ScatterBubbles: {},
59
- XYAxes: {},
60
- XYAux: {},
61
- XYZoom: {}
62
- }
63
-
64
- export const ALL_PLUGIN_PARAMS_TREE: PresetTreePluginParams = {
65
- TreeLegend: {},
66
- TreeMap: {},
67
- TreeTooltip: {},
68
- }
69
-
70
- export const ALL_PLUGIN_PARAMS_NONE_DATA: PresetNoneDataPluginParams = {
71
- // Tooltip: {},
1
+ import type {
2
+ PresetSeriesPluginParams,
3
+ PresetGridPluginParams,
4
+ PresetMultiGridPluginParams,
5
+ PresetMultiValuePluginParams,
6
+ PresetRelationshipPluginParams,
7
+ PresetTreePluginParams,
8
+ PresetNoneDataPluginParams
9
+ } from './types'
10
+
11
+ export const ALL_PLUGIN_PARAMS_SERIES: PresetSeriesPluginParams = {
12
+ Bubbles: {},
13
+ Pie: {},
14
+ PieEventTexts: {},
15
+ PieLabels: {},
16
+ Rose: {},
17
+ RoseLabels: {},
18
+ SeriesLegend: {},
19
+ SeriesTooltip: {},
20
+ }
21
+
22
+ export const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams = {
23
+ Bars: {},
24
+ BarsPN: {},
25
+ StackedBar: {},
26
+ BarsTriangle: {},
27
+ Dots: {},
28
+ GridLegend: {},
29
+ GridTooltip: {},
30
+ GroupAux: {},
31
+ GroupAxis: {},
32
+ LineAreas: {},
33
+ Lines: {},
34
+ GridZoom: {},
35
+ ValueAxis: {},
36
+ StackedValueAxis: {},
37
+ }
38
+
39
+ export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
40
+ MultiBars: {},
41
+ MultiStackedBar: {},
42
+ MultiBarsTriangle: {},
43
+ MultiDots: {},
44
+ MultiGridLegend: {},
45
+ MultiGridTooltip: {},
46
+ MultiGroupAxis: {},
47
+ MultiLineAreas: {},
48
+ MultiLines: {},
49
+ MultiValueAxis: {},
50
+ MultiStackedValueAxis: {},
51
+ OverlappingValueAxes: {},
52
+ OverlappingStackedValueAxes: {},
53
+ }
54
+
55
+ export const ALL_PLUGIN_PARAMS_MULTI_VALUE: PresetMultiValuePluginParams = {
56
+ MultiValueLegend: {},
57
+ MultiValueTooltip: {},
58
+ Scatter: {},
59
+ ScatterBubbles: {},
60
+ XYAxes: {},
61
+ XYAux: {},
62
+ XYZoom: {}
63
+ }
64
+
65
+ export const ALL_PLUGIN_PARAMS_RELATIONSHIP: PresetRelationshipPluginParams = {
66
+ ForceDirected: {},
67
+ ForceDirectedBubbles: {},
68
+ RelationshipLegend: {},
69
+ RelationshipTooltip: {},
70
+ }
71
+
72
+
73
+ export const ALL_PLUGIN_PARAMS_TREE: PresetTreePluginParams = {
74
+ TreeLegend: {},
75
+ TreeMap: {},
76
+ TreeTooltip: {},
77
+ }
78
+
79
+ export const ALL_PLUGIN_PARAMS_NONE_DATA: PresetNoneDataPluginParams = {
80
+ // Tooltip: {},
72
81
  }
@@ -1,23 +1,23 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_FORCE_DIRECTED_BASIC: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_FORCE_DIRECTED_BASIC',
8
- description: '基本Force Directed參數',
9
- // chartParams: {
10
- // padding: {
11
- // top: 40,
12
- // right: 40,
13
- // bottom: 60,
14
- // left: 40
15
- // },
16
- // },
17
- allPluginParams: {
18
- ForceDirected: {},
19
- RelationshipLegend: {
20
- listRectRadius: 7 // 圓型圖例列點
21
- }
22
- }
23
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_FORCE_DIRECTED_BASIC: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_FORCE_DIRECTED_BASIC',
8
+ description: '基本Force Directed參數',
9
+ // chartParams: {
10
+ // padding: {
11
+ // top: 40,
12
+ // right: 40,
13
+ // bottom: 60,
14
+ // left: 40
15
+ // },
16
+ // },
17
+ allPluginParams: {
18
+ ForceDirected: {},
19
+ RelationshipLegend: {
20
+ listRectRadius: 7 // 圓型圖例列點
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,23 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_FORCE_DIRECTED_BUBBLES_BASIC: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_FORCE_DIRECTED_BUBBLES_BASIC',
8
+ description: '基本Force Directed Bubbles參數',
9
+ // chartParams: {
10
+ // padding: {
11
+ // top: 40,
12
+ // right: 40,
13
+ // bottom: 60,
14
+ // left: 40
15
+ // },
16
+ // },
17
+ allPluginParams: {
18
+ ForceDirectedBubbles: {},
19
+ RelationshipLegend: {
20
+ listRectRadius: 7 // 圓型圖例列點
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,28 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH',
8
+ description: 'Force Directed Bubbles固定箭頭寬度',
9
+ // chartParams: {
10
+ // padding: {
11
+ // top: 40,
12
+ // right: 40,
13
+ // bottom: 60,
14
+ // left: 40
15
+ // },
16
+ // },
17
+ allPluginParams: {
18
+ ForceDirectedBubbles: {
19
+ arrow: {
20
+ strokeWidthMin: 1.5,
21
+ strokeWidthMax: 1.5
22
+ }
23
+ },
24
+ RelationshipLegend: {
25
+ listRectRadius: 7 // 圓型圖例列點
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,30 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW',
8
+ description: 'Force Directed Bubbles沒有箭頭',
9
+ // chartParams: {
10
+ // padding: {
11
+ // top: 40,
12
+ // right: 40,
13
+ // bottom: 60,
14
+ // left: 40
15
+ // },
16
+ // },
17
+ allPluginParams: {
18
+ ForceDirectedBubbles: {
19
+ arrow: {
20
+ pointerWidth: 0,
21
+ pointerHeight: 0,
22
+ // strokeWidthMin: 1.5,
23
+ // strokeWidthMax: 9
24
+ }
25
+ },
26
+ RelationshipLegend: {
27
+ listRectRadius: 7 // 圓型圖例列點
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,25 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM',
8
+ description: 'Force Directed Bubbles無滑鼠托曳及縮放控制',
9
+ // chartParams: {
10
+ // padding: {
11
+ // top: 40,
12
+ // right: 40,
13
+ // bottom: 60,
14
+ // left: 40
15
+ // },
16
+ // },
17
+ allPluginParams: {
18
+ ForceDirectedBubbles: {
19
+ zoomable: false,
20
+ },
21
+ RelationshipLegend: {
22
+ listRectRadius: 7 // 圓型圖例列點
23
+ }
24
+ }
25
+ }
@@ -1,30 +1,30 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_FORCE_DIRECTED_FIX_FONT_SIZE: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_FORCE_DIRECTED_FIX_FONT_SIZE',
8
- description: '基本Force Directed參數',
9
- // chartParams: {
10
- // padding: {
11
- // top: 40,
12
- // right: 40,
13
- // bottom: 60,
14
- // left: 40
15
- // },
16
- // },
17
- allPluginParams: {
18
- ForceDirected: {
19
- node: {
20
- labelSizeFixed: true
21
- },
22
- edge: {
23
- labelSizeFixed: true
24
- }
25
- },
26
- RelationshipLegend: {
27
- listRectRadius: 7 // 圓型圖例列點
28
- }
29
- }
30
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_FORCE_DIRECTED_FIX_FONT_SIZE: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_FORCE_DIRECTED_FIX_FONT_SIZE',
8
+ description: '基本Force Directed參數',
9
+ // chartParams: {
10
+ // padding: {
11
+ // top: 40,
12
+ // right: 40,
13
+ // bottom: 60,
14
+ // left: 40
15
+ // },
16
+ // },
17
+ allPluginParams: {
18
+ ForceDirected: {
19
+ dotLabel: {
20
+ sizeFixed: true
21
+ },
22
+ arrowLabel: {
23
+ sizeFixed: true
24
+ }
25
+ },
26
+ RelationshipLegend: {
27
+ listRectRadius: 7 // 圓型圖例列點
28
+ }
29
+ }
30
+ }
@@ -1,28 +1,28 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_FORCE_DIRECTED_NONE_ARROW: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_FORCE_DIRECTED_NONE_ARROW',
8
- description: '基本Force Directed參數',
9
- // chartParams: {
10
- // padding: {
11
- // top: 40,
12
- // right: 40,
13
- // bottom: 60,
14
- // left: 40
15
- // },
16
- // },
17
- allPluginParams: {
18
- ForceDirected: {
19
- edge: {
20
- arrowWidth: 0,
21
- arrowHeight: 0
22
- }
23
- },
24
- RelationshipLegend: {
25
- listRectRadius: 7 // 圓型圖例列點
26
- }
27
- }
28
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_FORCE_DIRECTED_NONE_ARROW: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_FORCE_DIRECTED_NONE_ARROW',
8
+ description: 'Force Directed沒有箭頭',
9
+ // chartParams: {
10
+ // padding: {
11
+ // top: 40,
12
+ // right: 40,
13
+ // bottom: 60,
14
+ // left: 40
15
+ // },
16
+ // },
17
+ allPluginParams: {
18
+ ForceDirected: {
19
+ arrow: {
20
+ pointerWidth: 0,
21
+ pointerHeight: 0
22
+ }
23
+ },
24
+ RelationshipLegend: {
25
+ listRectRadius: 7 // 圓型圖例列點
26
+ }
27
+ }
28
+ }
@@ -1,25 +1,25 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_FORCE_DIRECTED_NONE_ZOOM: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_FORCE_DIRECTED_NONE_ZOOM',
8
- description: '基本Force Directed參數',
9
- // chartParams: {
10
- // padding: {
11
- // top: 40,
12
- // right: 40,
13
- // bottom: 60,
14
- // left: 40
15
- // },
16
- // },
17
- allPluginParams: {
18
- ForceDirected: {
19
- zoomable: false,
20
- },
21
- RelationshipLegend: {
22
- listRectRadius: 7 // 圓型圖例列點
23
- }
24
- }
25
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_FORCE_DIRECTED_NONE_ZOOM: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_FORCE_DIRECTED_NONE_ZOOM',
8
+ description: 'Force Directed無滑鼠托曳及縮放控制',
9
+ // chartParams: {
10
+ // padding: {
11
+ // top: 40,
12
+ // right: 40,
13
+ // bottom: 60,
14
+ // left: 40
15
+ // },
16
+ // },
17
+ allPluginParams: {
18
+ ForceDirected: {
19
+ zoomable: false,
20
+ },
21
+ RelationshipLegend: {
22
+ listRectRadius: 7 // 圓型圖例列點
23
+ }
24
+ }
25
+ }
@@ -1,4 +1,8 @@
1
- export { PRESET_FORCE_DIRECTED_BASIC } from './PRESET_FORCE_DIRECTED_BASIC'
2
- export { PRESET_FORCE_DIRECTED_NONE_ZOOM } from './PRESET_FORCE_DIRECTED_NONE_ZOOM'
3
- export { PRESET_FORCE_DIRECTED_FIX_FONT_SIZE } from './PRESET_FORCE_DIRECTED_FIX_FONT_SIZE'
1
+ export { PRESET_FORCE_DIRECTED_BASIC } from './PRESET_FORCE_DIRECTED_BASIC'
2
+ export { PRESET_FORCE_DIRECTED_BUBBLES_BASIC } from './PRESET_FORCE_DIRECTED_BUBBLES_BASIC'
3
+ export { PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH } from './PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH'
4
+ export { PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW } from './PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW'
5
+ export { PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM } from './PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM'
6
+ export { PRESET_FORCE_DIRECTED_NONE_ZOOM } from './PRESET_FORCE_DIRECTED_NONE_ZOOM'
7
+ export { PRESET_FORCE_DIRECTED_FIX_FONT_SIZE } from './PRESET_FORCE_DIRECTED_FIX_FONT_SIZE'
4
8
  export { PRESET_FORCE_DIRECTED_NONE_ARROW } from './PRESET_FORCE_DIRECTED_NONE_ARROW'
@@ -1,18 +1,18 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetSeriesPluginParams, PresetBubblesParams, PresetSeriesLegendParams, PresetSeriesTooltipParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_BUBBLES_SCALING_BY_RADIUS',
8
- description: '以半徑尺寸為比例的泡泡圖',
9
- allPluginParams: {
10
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
11
- Bubbles: {
12
- arcScaleType: 'radius'
13
- },
14
- SeriesLegend: {
15
- listRectRadius: 7 // 圓型圖例列點
16
- },
17
- },
18
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetSeriesPluginParams, PresetBubblesParams, PresetSeriesLegendParams, PresetSeriesTooltipParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_BUBBLES_SCALING_BY_RADIUS',
8
+ description: '以半徑尺寸為比例的泡泡圖',
9
+ allPluginParams: {
10
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
11
+ Bubbles: {
12
+ arcScaleType: 'radius'
13
+ },
14
+ SeriesLegend: {
15
+ listRectRadius: 7 // 圓型圖例列點
16
+ },
17
+ },
18
+ }
@@ -1,29 +1,29 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_BUBBLES_SEPARATE_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_BUBBLES_SEPARATE_SERIES',
8
- description: '分開顯示Series泡泡',
9
- chartParams: {
10
- // 加長留空
11
- padding: {
12
- top: 160,
13
- right: 160,
14
- bottom: 160,
15
- left: 160
16
- },
17
- },
18
- dataFormatter: {
19
- separateSeries: true,
20
- },
21
- allPluginParams: {
22
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
23
- Bubbles: {},
24
- SeriesLegend: {
25
- listRectRadius: 7 // 圓型圖例列點
26
- },
27
- SeriesTooltip: {}
28
- }
29
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetSeriesPluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_BUBBLES_SEPARATE_SERIES: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_BUBBLES_SEPARATE_SERIES',
8
+ description: '分開顯示Series泡泡',
9
+ chartParams: {
10
+ // 加長留空
11
+ padding: {
12
+ top: 160,
13
+ right: 160,
14
+ bottom: 160,
15
+ left: 160
16
+ },
17
+ },
18
+ dataFormatter: {
19
+ separateSeries: true,
20
+ },
21
+ allPluginParams: {
22
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
23
+ Bubbles: {},
24
+ SeriesLegend: {
25
+ listRectRadius: 7 // 圓型圖例列點
26
+ },
27
+ SeriesTooltip: {}
28
+ }
29
+ }
@@ -1,19 +1,19 @@
1
- import type { PresetPartial } from '../../lib/core-types'
2
- import type { PresetSeriesPluginParams, PresetSeriesTooltipParams, PresetNoneDataPluginParams } from '../types'
3
- // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
-
5
- export const PRESET_PIE_BASIC: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
- & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_PIE_BASIC',
8
- description: '基本Pie參數',
9
- dataFormatter: {
10
- sort: (a, b) => b.value - a.value
11
- },
12
- allPluginParams: {
13
- // ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
- SeriesLegend: {
15
- listRectRadius: 7 // 圓型圖例列點
16
- }
17
- }
18
- }
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetSeriesPluginParams, PresetSeriesTooltipParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_SERIES, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_PIE_BASIC: PresetPartial<'series', Partial<PresetSeriesPluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_PIE_BASIC',
8
+ description: '基本Pie參數',
9
+ dataFormatter: {
10
+ sort: (a, b) => b.value - a.value
11
+ },
12
+ allPluginParams: {
13
+ // ...ALL_PLUGIN_PARAMS_NONE_DATA,
14
+ SeriesLegend: {
15
+ listRectRadius: 7 // 圓型圖例列點
16
+ }
17
+ }
18
+ }
19
19
  PRESET_PIE_BASIC.dataFormatter.sort.toString = () => `(a, b) => b.value - a.value`