@orbcharts/presets-basic 3.0.0-beta.7 → 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.
- package/LICENSE +200 -200
- package/dist/orbcharts-presets-basic.es.js +3 -3
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- 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 -6
- 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 +80 -80
- package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +23 -23
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +23 -23
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +28 -28
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +30 -30
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +25 -25
- package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +30 -30
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +28 -28
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +25 -25
- package/src/relationship/index.ts +7 -7
- 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_MAP_BASIC.ts +27 -27
- package/src/types.ts +349 -349
- package/tsconfig.base.json +13 -13
- package/tsconfig.json +2 -2
- package/vite.config.js +22 -22
package/src/params.ts
CHANGED
@@ -1,81 +1,81 @@
|
|
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: {},
|
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: {},
|
81
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
|
+
}
|
@@ -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_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
|
-
}
|
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
|
+
}
|
@@ -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_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
|
-
}
|
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
|
+
}
|
@@ -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_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
|
-
}
|
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
|
+
}
|
@@ -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_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
|
+
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
|
-
dotLabel: {
|
20
|
-
sizeFixed: true
|
21
|
-
},
|
22
|
-
arrowLabel: {
|
23
|
-
sizeFixed: 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
|
-
arrow: {
|
20
|
-
pointerWidth: 0,
|
21
|
-
pointerHeight: 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,8 +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'
|
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
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
|
+
}
|