@orbcharts/presets-basic 3.0.0-beta.5 → 3.0.0-beta.6
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.
- package/LICENSE +200 -200
- package/dist/orbcharts-presets-basic.es.js +238 -148
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BASIC.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.d.ts +4 -0
- package/dist/src/relationship/index.d.ts +4 -0
- package/dist/src/tree/PRESET_TREE_MAP_BASIC.d.ts +4 -0
- package/dist/src/tree/index.d.ts +1 -1
- package/dist/src/types.d.ts +26 -16
- package/lib/core-types.ts +7 -7
- package/lib/plugins-basic-types.ts +6 -6
- package/package.json +42 -42
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +56 -56
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +52 -52
- package/src/grid/PRESET_BARS_ROUND.ts +39 -39
- package/src/grid/PRESET_BARS_THIN.ts +36 -36
- package/src/grid/PRESET_GRID_BASIC.ts +27 -27
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +44 -44
- package/src/grid/PRESET_GRID_PN_SCALE.ts +35 -35
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +35 -35
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +40 -40
- package/src/grid/PRESET_LINES_BASIC.ts +35 -35
- package/src/grid/PRESET_LINES_CURVE.ts +38 -38
- package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +37 -37
- package/src/grid/PRESET_LINES_HORIZONTAL.ts +51 -51
- package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +37 -37
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +40 -40
- package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +39 -39
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +43 -43
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +48 -48
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +47 -47
- package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +47 -47
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +45 -45
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +48 -48
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +50 -50
- package/src/grid/index.ts +22 -22
- package/src/index.ts +6 -5
- package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +38 -38
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +86 -86
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +58 -58
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +60 -60
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +86 -86
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +104 -104
- package/src/multiGrid/index.ts +6 -6
- package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +23 -23
- package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +26 -26
- package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +26 -26
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +26 -26
- package/src/multiValue/index.ts +3 -3
- package/src/params.ts +71 -71
- package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +23 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +30 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +28 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +25 -0
- package/src/relationship/index.ts +4 -0
- package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +18 -18
- package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
- package/src/series/PRESET_PIE_BASIC.ts +18 -18
- package/src/series/PRESET_PIE_DONUT.ts +23 -23
- package/src/series/PRESET_PIE_HALF_DONUT.ts +36 -36
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +24 -24
- package/src/series/PRESET_ROSE_BASIC.ts +19 -19
- package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +24 -24
- package/src/series/PRESET_SERIES_BASIC.ts +16 -16
- package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +17 -17
- package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +18 -18
- package/src/series/PRESET_SERIES_SUM_SERIES.ts +18 -18
- package/src/series/index.ts +13 -13
- package/src/tree/{PRESET_TREE_BASIC.ts → PRESET_TREE_MAP_BASIC.ts} +27 -27
- package/src/tree/index.ts +1 -1
- package/src/types.ts +343 -321
- package/tsconfig.base.json +13 -13
- package/tsconfig.json +2 -2
- package/vite.config.js +22 -22
- package/dist/src/tree/PRESET_TREE_BASIC.d.ts +0 -4
@@ -1,104 +1,104 @@
|
|
1
|
-
import type { PresetPartial } from '../../lib/core-types'
|
2
|
-
import type {
|
3
|
-
PresetMultiGridPluginParams,
|
4
|
-
PresetNoneDataPluginParams
|
5
|
-
} from '../types'
|
6
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
|
-
|
8
|
-
export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
|
-
& Partial<PresetNoneDataPluginParams>> = {
|
10
|
-
name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID',
|
11
|
-
description: '2組區域圖表',
|
12
|
-
chartParams: {
|
13
|
-
padding: {
|
14
|
-
top: 60,
|
15
|
-
right: 60,
|
16
|
-
bottom: 160,
|
17
|
-
left: 60
|
18
|
-
},
|
19
|
-
},
|
20
|
-
dataFormatter: {
|
21
|
-
gridList: [
|
22
|
-
{
|
23
|
-
// slotIndex: 0
|
24
|
-
groupAxis: {
|
25
|
-
scalePadding: 0
|
26
|
-
}
|
27
|
-
},
|
28
|
-
{
|
29
|
-
// slotIndex: 1,
|
30
|
-
groupAxis: {
|
31
|
-
scalePadding: 0
|
32
|
-
}
|
33
|
-
}
|
34
|
-
],
|
35
|
-
separateGrid: true,
|
36
|
-
// container: {
|
37
|
-
// rowAmount: 1,
|
38
|
-
// columnAmount: 2,
|
39
|
-
// }
|
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
|
-
|
51
|
-
gridIndexes: 'all'
|
52
|
-
},
|
53
|
-
MultiBars: {
|
54
|
-
gridIndexes: 'all'
|
55
|
-
},
|
56
|
-
|
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
|
-
placement: 'bottom',
|
75
|
-
padding: 14,
|
76
|
-
gridList: [
|
77
|
-
{
|
78
|
-
listRectHeight: 2,
|
79
|
-
},
|
80
|
-
{
|
81
|
-
listRectHeight: 2,
|
82
|
-
},
|
83
|
-
{
|
84
|
-
listRectHeight: 2,
|
85
|
-
},
|
86
|
-
{
|
87
|
-
listRectHeight: 2,
|
88
|
-
},
|
89
|
-
{
|
90
|
-
listRectHeight: 2,
|
91
|
-
},
|
92
|
-
{
|
93
|
-
listRectHeight: 2,
|
94
|
-
},
|
95
|
-
{
|
96
|
-
listRectHeight: 2,
|
97
|
-
},
|
98
|
-
{
|
99
|
-
listRectHeight: 2,
|
100
|
-
}
|
101
|
-
]
|
102
|
-
}
|
103
|
-
}
|
104
|
-
}
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
|
+
|
8
|
+
export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
10
|
+
name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID',
|
11
|
+
description: '2組區域圖表',
|
12
|
+
chartParams: {
|
13
|
+
padding: {
|
14
|
+
top: 60,
|
15
|
+
right: 60,
|
16
|
+
bottom: 160,
|
17
|
+
left: 60
|
18
|
+
},
|
19
|
+
},
|
20
|
+
dataFormatter: {
|
21
|
+
gridList: [
|
22
|
+
{
|
23
|
+
// slotIndex: 0
|
24
|
+
groupAxis: {
|
25
|
+
scalePadding: 0
|
26
|
+
}
|
27
|
+
},
|
28
|
+
{
|
29
|
+
// slotIndex: 1,
|
30
|
+
groupAxis: {
|
31
|
+
scalePadding: 0
|
32
|
+
}
|
33
|
+
}
|
34
|
+
],
|
35
|
+
separateGrid: true,
|
36
|
+
// container: {
|
37
|
+
// rowAmount: 1,
|
38
|
+
// columnAmount: 2,
|
39
|
+
// }
|
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
|
+
MultiStackedValueAxis: {
|
51
|
+
gridIndexes: 'all'
|
52
|
+
},
|
53
|
+
MultiBars: {
|
54
|
+
gridIndexes: 'all'
|
55
|
+
},
|
56
|
+
MultiStackedBar: {
|
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
|
+
placement: 'bottom',
|
75
|
+
padding: 14,
|
76
|
+
gridList: [
|
77
|
+
{
|
78
|
+
listRectHeight: 2,
|
79
|
+
},
|
80
|
+
{
|
81
|
+
listRectHeight: 2,
|
82
|
+
},
|
83
|
+
{
|
84
|
+
listRectHeight: 2,
|
85
|
+
},
|
86
|
+
{
|
87
|
+
listRectHeight: 2,
|
88
|
+
},
|
89
|
+
{
|
90
|
+
listRectHeight: 2,
|
91
|
+
},
|
92
|
+
{
|
93
|
+
listRectHeight: 2,
|
94
|
+
},
|
95
|
+
{
|
96
|
+
listRectHeight: 2,
|
97
|
+
},
|
98
|
+
{
|
99
|
+
listRectHeight: 2,
|
100
|
+
}
|
101
|
+
]
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
package/src/multiGrid/index.ts
CHANGED
@@ -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'
|
@@ -1,23 +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
|
-
}
|
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
|
+
}
|
@@ -1,26 +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
|
-
}
|
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
|
+
}
|
@@ -1,26 +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
|
-
}
|
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
|
+
}
|
@@ -1,26 +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
|
-
}
|
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
|
+
}
|
package/src/multiValue/index.ts
CHANGED
@@ -1,4 +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'
|
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
4
|
export { PRESET_SCATTER_BUBBLES_LINEAR_OPACITY } from './PRESET_SCATTER_BUBBLES_LINEAR_OPACITY'
|
package/src/params.ts
CHANGED
@@ -1,72 +1,72 @@
|
|
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
|
-
|
25
|
-
BarsTriangle: {},
|
26
|
-
Dots: {},
|
27
|
-
GridLegend: {},
|
28
|
-
GridTooltip: {},
|
29
|
-
GroupAux: {},
|
30
|
-
GroupAxis: {},
|
31
|
-
LineAreas: {},
|
32
|
-
Lines: {},
|
33
|
-
GridZoom: {},
|
34
|
-
ValueAxis: {},
|
35
|
-
|
36
|
-
}
|
37
|
-
|
38
|
-
export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
|
39
|
-
MultiBars: {},
|
40
|
-
|
41
|
-
MultiBarsTriangle: {},
|
42
|
-
MultiDots: {},
|
43
|
-
MultiGridLegend: {},
|
44
|
-
MultiGridTooltip: {},
|
45
|
-
MultiGroupAxis: {},
|
46
|
-
MultiLineAreas: {},
|
47
|
-
MultiLines: {},
|
48
|
-
MultiValueAxis: {},
|
49
|
-
|
50
|
-
OverlappingValueAxes: {},
|
51
|
-
|
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
|
+
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: {},
|
72
72
|
}
|
@@ -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,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
|
+
}
|
@@ -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
|
+
edge: {
|
20
|
+
arrowWidth: 0,
|
21
|
+
arrowHeight: 0
|
22
|
+
}
|
23
|
+
},
|
24
|
+
RelationshipLegend: {
|
25
|
+
listRectRadius: 7 // 圓型圖例列點
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|