@orbcharts/presets-basic 3.0.0-beta.1 → 3.0.0-beta.10

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 (62) hide show
  1. package/dist/orbcharts-presets-basic.es.js +418 -157
  2. package/dist/orbcharts-presets-basic.umd.js +1 -1
  3. package/dist/src/index.d.ts +2 -0
  4. package/dist/src/multiValue/PRESET_MULTI_VALUE_BASIC.d.ts +4 -0
  5. package/dist/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.d.ts +4 -0
  6. package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.d.ts +4 -0
  7. package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
  8. package/dist/src/multiValue/index.d.ts +4 -0
  9. package/dist/src/params.d.ts +3 -1
  10. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BASIC.d.ts +4 -0
  11. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.d.ts +4 -0
  12. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.d.ts +4 -0
  13. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.d.ts +4 -0
  14. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.d.ts +4 -0
  15. package/dist/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.d.ts +4 -0
  16. package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.d.ts +4 -0
  17. package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.d.ts +4 -0
  18. package/dist/src/relationship/index.d.ts +8 -0
  19. package/dist/src/tree/PRESET_TREE_MAP_BASIC.d.ts +4 -0
  20. package/dist/src/tree/index.d.ts +1 -1
  21. package/dist/src/types.d.ts +55 -14
  22. package/package.json +3 -3
  23. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +2 -2
  24. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +2 -2
  25. package/src/grid/PRESET_GRID_HORIZONTAL.ts +2 -2
  26. package/src/grid/PRESET_GRID_PN_SCALE.ts +2 -2
  27. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +2 -2
  28. package/src/grid/PRESET_LINES_HORIZONTAL.ts +2 -2
  29. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +1 -1
  30. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +2 -2
  31. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +2 -2
  32. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +2 -2
  33. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +2 -2
  34. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +2 -2
  35. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +2 -2
  36. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +2 -2
  37. package/src/index.ts +2 -0
  38. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +2 -2
  39. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +3 -3
  40. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +2 -2
  41. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +2 -2
  42. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +2 -2
  43. package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +23 -0
  44. package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +26 -0
  45. package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +26 -0
  46. package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +26 -0
  47. package/src/multiValue/index.ts +4 -0
  48. package/src/params.ts +25 -5
  49. package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +23 -0
  50. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +23 -0
  51. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +28 -0
  52. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +30 -0
  53. package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +25 -0
  54. package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +30 -0
  55. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +28 -0
  56. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +25 -0
  57. package/src/relationship/index.ts +8 -0
  58. package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +1 -1
  59. package/src/tree/{PRESET_TREE_BASIC.ts → PRESET_TREE_MAP_BASIC.ts} +3 -3
  60. package/src/tree/index.ts +1 -1
  61. package/src/types.ts +103 -21
  62. package/dist/src/tree/PRESET_TREE_BASIC.d.ts +0 -4
@@ -29,13 +29,13 @@ export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial
29
29
  MultiValueAxis: {
30
30
  gridIndexes: 'all'
31
31
  },
32
- MultiValueStackAxis: {
32
+ MultiStackedValueAxis: {
33
33
  gridIndexes: 'all'
34
34
  },
35
35
  MultiBars: {
36
36
  gridIndexes: 'all'
37
37
  },
38
- MultiBarStack: {
38
+ MultiStackedBar: {
39
39
  gridIndexes: 'all'
40
40
  },
41
41
  MultiBarsTriangle: {
@@ -29,13 +29,13 @@ export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', Partia
29
29
  MultiValueAxis: {
30
30
  gridIndexes: 'all'
31
31
  },
32
- MultiValueStackAxis: {
32
+ MultiStackedValueAxis: {
33
33
  gridIndexes: 'all'
34
34
  },
35
35
  MultiBars: {
36
36
  gridIndexes: 'all'
37
37
  },
38
- MultiBarStack: {
38
+ MultiStackedBar: {
39
39
  gridIndexes: 'all'
40
40
  },
41
41
  MultiBarsTriangle: {
@@ -47,13 +47,13 @@ export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', P
47
47
  MultiValueAxis: {
48
48
  gridIndexes: 'all'
49
49
  },
50
- MultiValueStackAxis: {
50
+ MultiStackedValueAxis: {
51
51
  gridIndexes: 'all'
52
52
  },
53
53
  MultiBars: {
54
54
  gridIndexes: 'all'
55
55
  },
56
- MultiBarStack: {
56
+ MultiStackedBar: {
57
57
  gridIndexes: 'all'
58
58
  },
59
59
  MultiBarsTriangle: {
@@ -0,0 +1,23 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_MULTI_VALUE_BASIC: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_MULTI_VALUE_BASIC',
8
+ description: '基本MultiValue參數',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 60
15
+ },
16
+ },
17
+ allPluginParams: {
18
+ MultiValueLegend: {
19
+ placement: 'bottom',
20
+ padding: 14,
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,26 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_MULTI_VALUE_SEPARATE_CATEGORY: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_MULTI_VALUE_SEPARATE_CATEGORY',
8
+ description: 'MultiValue 分開顯示category',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 60
15
+ },
16
+ },
17
+ dataFormatter: {
18
+ separateCategory: true
19
+ },
20
+ allPluginParams: {
21
+ MultiValueLegend: {
22
+ placement: 'bottom',
23
+ padding: 14,
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SCATTER_BUBBLES_LINEAR_OPACITY: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_SCATTER_BUBBLES_LINEAR_OPACITY',
8
+ description: 'ScatterBubbles漸變透明度',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 60
15
+ },
16
+ },
17
+ allPluginParams: {
18
+ MultiValueLegend: {
19
+ placement: 'bottom',
20
+ padding: 14,
21
+ },
22
+ ScatterBubbles: {
23
+ valueLinearOpacity: [0.6, 0.95]
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS',
8
+ description: 'ScatterBubbles以半徑尺寸為比例',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 60
15
+ },
16
+ },
17
+ allPluginParams: {
18
+ MultiValueLegend: {
19
+ placement: 'bottom',
20
+ padding: 14,
21
+ },
22
+ ScatterBubbles: {
23
+ arcScaleType: 'radius'
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,4 @@
1
+ export { PRESET_MULTI_VALUE_BASIC } from './PRESET_MULTI_VALUE_BASIC'
2
+ export { PRESET_MULTI_VALUE_SEPARATE_CATEGORY } from './PRESET_MULTI_VALUE_SEPARATE_CATEGORY'
3
+ export { PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS } from './PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS'
4
+ export { PRESET_SCATTER_BUBBLES_LINEAR_OPACITY } from './PRESET_SCATTER_BUBBLES_LINEAR_OPACITY'
package/src/params.ts CHANGED
@@ -2,6 +2,8 @@ import type {
2
2
  PresetSeriesPluginParams,
3
3
  PresetGridPluginParams,
4
4
  PresetMultiGridPluginParams,
5
+ PresetMultiValuePluginParams,
6
+ PresetRelationshipPluginParams,
5
7
  PresetTreePluginParams,
6
8
  PresetNoneDataPluginParams
7
9
  } from './types'
@@ -20,7 +22,7 @@ export const ALL_PLUGIN_PARAMS_SERIES: PresetSeriesPluginParams = {
20
22
  export const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams = {
21
23
  Bars: {},
22
24
  BarsPN: {},
23
- BarStack: {},
25
+ StackedBar: {},
24
26
  BarsTriangle: {},
25
27
  Dots: {},
26
28
  GridLegend: {},
@@ -31,12 +33,12 @@ export const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams = {
31
33
  Lines: {},
32
34
  GridZoom: {},
33
35
  ValueAxis: {},
34
- ValueStackAxis: {},
36
+ StackedValueAxis: {},
35
37
  }
36
38
 
37
39
  export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
38
40
  MultiBars: {},
39
- MultiBarStack: {},
41
+ MultiStackedBar: {},
40
42
  MultiBarsTriangle: {},
41
43
  MultiDots: {},
42
44
  MultiGridLegend: {},
@@ -45,11 +47,29 @@ export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
45
47
  MultiLineAreas: {},
46
48
  MultiLines: {},
47
49
  MultiValueAxis: {},
48
- MultiValueStackAxis: {},
50
+ MultiStackedValueAxis: {},
49
51
  OverlappingValueAxes: {},
50
- OverlappingValueStackAxes: {},
52
+ OverlappingStackedValueAxes: {},
51
53
  }
52
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
+
53
73
  export const ALL_PLUGIN_PARAMS_TREE: PresetTreePluginParams = {
54
74
  TreeLegend: {},
55
75
  TreeMap: {},
@@ -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_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
+ }
@@ -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_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
+ }
@@ -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_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
+ }
@@ -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_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
+ }
@@ -0,0 +1,8 @@
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'
8
+ export { PRESET_FORCE_DIRECTED_NONE_ARROW } from './PRESET_FORCE_DIRECTED_NONE_ARROW'
@@ -14,7 +14,7 @@ export const PRESET_PIE_WITH_INNER_LABELS: PresetPartial<'series', Partial<Prese
14
14
  Pie: {},
15
15
  PieLabels: {
16
16
  "labelCentroid": 1.3, // 圖內資料標籤
17
- "labelColorType": "primary"
17
+ "labelColorType": "labelContrast"
18
18
  },
19
19
  PieEventTexts: {},
20
20
  SeriesLegend: {
@@ -2,10 +2,10 @@ import type { PresetPartial } from '../../lib/core-types'
2
2
  import type { PresetTreePluginParams, PresetNoneDataPluginParams } from '../types'
3
3
  // import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
4
 
5
- export const PRESET_TREE_BASIC: PresetPartial<'tree', Partial<PresetTreePluginParams>
5
+ export const PRESET_TREE_MAP_BASIC: PresetPartial<'tree', Partial<PresetTreePluginParams>
6
6
  & Partial<PresetNoneDataPluginParams>> = {
7
- name: 'PRESET_TREE_BASIC',
8
- description: '基本Tree參數',
7
+ name: 'PRESET_TREE_MAP_BASIC',
8
+ description: '基本Tree Map參數',
9
9
  chartParams: {
10
10
  padding: {
11
11
  top: 40,
package/src/tree/index.ts CHANGED
@@ -1 +1 @@
1
- export { PRESET_TREE_BASIC } from './PRESET_TREE_BASIC'
1
+ export { PRESET_TREE_MAP_BASIC } from './PRESET_TREE_MAP_BASIC'