@orbcharts/presets-basic 3.0.0-beta.4 → 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.
Files changed (48) hide show
  1. package/dist/orbcharts-presets-basic.es.js +258 -147
  2. package/dist/orbcharts-presets-basic.umd.js +1 -1
  3. package/dist/src/index.d.ts +1 -0
  4. package/dist/src/multiValue/PRESET_MULTI_VALUE_BASIC.d.ts +1 -1
  5. package/dist/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.d.ts +4 -0
  6. package/dist/src/multiValue/index.d.ts +1 -0
  7. package/dist/src/relationship/PRESET_FORCE_DIRECTED_BASIC.d.ts +4 -0
  8. package/dist/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.d.ts +4 -0
  9. package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.d.ts +4 -0
  10. package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.d.ts +4 -0
  11. package/dist/src/relationship/index.d.ts +4 -0
  12. package/dist/src/tree/PRESET_TREE_MAP_BASIC.d.ts +4 -0
  13. package/dist/src/tree/index.d.ts +1 -1
  14. package/dist/src/types.d.ts +26 -16
  15. package/package.json +3 -3
  16. package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +2 -2
  17. package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +2 -2
  18. package/src/grid/PRESET_GRID_HORIZONTAL.ts +2 -2
  19. package/src/grid/PRESET_GRID_PN_SCALE.ts +2 -2
  20. package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +2 -2
  21. package/src/grid/PRESET_LINES_HORIZONTAL.ts +2 -2
  22. package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +1 -1
  23. package/src/grid/PRESET_LINE_AREAS_BASIC.ts +2 -2
  24. package/src/grid/PRESET_LINE_AREAS_CURVE.ts +2 -2
  25. package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +2 -2
  26. package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +2 -2
  27. package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +2 -2
  28. package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +2 -2
  29. package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +2 -2
  30. package/src/index.ts +1 -0
  31. package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +2 -2
  32. package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +3 -3
  33. package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +2 -2
  34. package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +2 -2
  35. package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +2 -2
  36. package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +1 -1
  37. package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +26 -0
  38. package/src/multiValue/index.ts +1 -0
  39. package/src/params.ts +5 -5
  40. package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +23 -0
  41. package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +30 -0
  42. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +28 -0
  43. package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +25 -0
  44. package/src/relationship/index.ts +4 -0
  45. package/src/tree/{PRESET_TREE_BASIC.ts → PRESET_TREE_MAP_BASIC.ts} +3 -3
  46. package/src/tree/index.ts +1 -1
  47. package/src/types.ts +45 -23
  48. package/dist/src/tree/PRESET_TREE_BASIC.d.ts +0 -4
@@ -1,3 +1,4 @@
1
1
  export { PRESET_MULTI_VALUE_BASIC } from './PRESET_MULTI_VALUE_BASIC'
2
+ export { PRESET_MULTI_VALUE_SEPARATE_CATEGORY } from './PRESET_MULTI_VALUE_SEPARATE_CATEGORY'
2
3
  export { PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS } from './PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS'
3
4
  export { PRESET_SCATTER_BUBBLES_LINEAR_OPACITY } from './PRESET_SCATTER_BUBBLES_LINEAR_OPACITY'
package/src/params.ts CHANGED
@@ -21,7 +21,7 @@ export const ALL_PLUGIN_PARAMS_SERIES: PresetSeriesPluginParams = {
21
21
  export const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams = {
22
22
  Bars: {},
23
23
  BarsPN: {},
24
- BarStack: {},
24
+ StackedBar: {},
25
25
  BarsTriangle: {},
26
26
  Dots: {},
27
27
  GridLegend: {},
@@ -32,12 +32,12 @@ export const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams = {
32
32
  Lines: {},
33
33
  GridZoom: {},
34
34
  ValueAxis: {},
35
- ValueStackAxis: {},
35
+ StackedValueAxis: {},
36
36
  }
37
37
 
38
38
  export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
39
39
  MultiBars: {},
40
- MultiBarStack: {},
40
+ MultiStackedBar: {},
41
41
  MultiBarsTriangle: {},
42
42
  MultiDots: {},
43
43
  MultiGridLegend: {},
@@ -46,9 +46,9 @@ export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
46
46
  MultiLineAreas: {},
47
47
  MultiLines: {},
48
48
  MultiValueAxis: {},
49
- MultiValueStackAxis: {},
49
+ MultiStackedValueAxis: {},
50
50
  OverlappingValueAxes: {},
51
- OverlappingValueStackAxes: {},
51
+ OverlappingStackedValueAxes: {},
52
52
  }
53
53
 
54
54
  export const ALL_PLUGIN_PARAMS_MULTI_VALUE: PresetMultiValuePluginParams = {
@@ -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
+ }
@@ -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,4 @@
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'
4
+ export { PRESET_FORCE_DIRECTED_NONE_ARROW } from './PRESET_FORCE_DIRECTED_NONE_ARROW'
@@ -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'
package/src/types.ts CHANGED
@@ -12,7 +12,7 @@ import type {
12
12
  // -- grid --
13
13
  BarsParams,
14
14
  BarsPNParams,
15
- BarStackParams,
15
+ StackedBarParams,
16
16
  BarsTriangleParams,
17
17
  DotsParams,
18
18
  GridLegendParams,
@@ -23,11 +23,11 @@ import type {
23
23
  GridTooltipParams,
24
24
  GridZoomParams,
25
25
  ValueAxisParams,
26
- ValueStackAxisParams,
26
+ StackedValueAxisParams,
27
27
 
28
28
  // -- multiGrid --
29
29
  MultiBarsParams,
30
- MultiBarStackParams,
30
+ MultiStackedBarParams,
31
31
  MultiBarsTriangleParams,
32
32
  MultiDotsParams,
33
33
  MultiGridLegendParams,
@@ -36,9 +36,9 @@ import type {
36
36
  MultiLineAreasParams,
37
37
  MultiLinesParams,
38
38
  MultiValueAxisParams,
39
- MultiValueStackAxisParams,
39
+ MultiStackedValueAxisParams,
40
40
  OverlappingValueAxesParams,
41
- OverlappingValueStackAxesParams,
41
+ OverlappingStackedValueAxesParams,
42
42
 
43
43
  // -- multiValue --
44
44
  MultiValueLegendParams,
@@ -49,6 +49,11 @@ import type {
49
49
  XYAxesParams,
50
50
  XYZoomParams,
51
51
 
52
+ // -- relationship --
53
+ ForceDirectedParams,
54
+ RelationshipLegendParams,
55
+ RelationshipTooltipParams,
56
+
52
57
  // -- tree --
53
58
  TreeLegendParams,
54
59
  TreeMapParams,
@@ -107,7 +112,7 @@ export interface PresetSeriesTooltipParams {
107
112
  // grid的全部plugin參數
108
113
  export type PresetGridPluginParams = PresetBarsParams
109
114
  & PresetBarsPNParams
110
- & PresetBarStackParams
115
+ & PresetStackedBarParams
111
116
  & PresetBarsTriangleParams
112
117
  & PresetDotsParams
113
118
  & PresetGridLegendParams
@@ -118,7 +123,7 @@ export type PresetGridPluginParams = PresetBarsParams
118
123
  & PresetLinesParams
119
124
  & PresetGridZoomParams
120
125
  & PresetValueAxisParams
121
- & PresetValueStackAxisParams
126
+ & PresetStackedValueAxisParams
122
127
 
123
128
  export interface PresetBarsParams {
124
129
  Bars: Partial<BarsParams>
@@ -128,8 +133,8 @@ export interface PresetBarsPNParams {
128
133
  BarsPN: Partial<BarsPNParams>
129
134
  }
130
135
 
131
- export interface PresetBarStackParams {
132
- BarStack: Partial<BarStackParams>
136
+ export interface PresetStackedBarParams {
137
+ StackedBar: Partial<StackedBarParams>
133
138
  }
134
139
 
135
140
  export interface PresetBarsTriangleParams {
@@ -172,14 +177,14 @@ export interface PresetValueAxisParams {
172
177
  ValueAxis: Partial<ValueAxisParams>
173
178
  }
174
179
 
175
- export interface PresetValueStackAxisParams {
176
- ValueStackAxis: Partial<ValueStackAxisParams>
180
+ export interface PresetStackedValueAxisParams {
181
+ StackedValueAxis: Partial<StackedValueAxisParams>
177
182
  }
178
183
 
179
184
  // -- multiGrid --
180
185
  // multiGrid的全部plugin參數
181
186
  export type PresetMultiGridPluginParams = PresetMultiBarsParams
182
- & PresetMultiBarStackParams
187
+ & PresetMultiStackedBarParams
183
188
  & PresetMultiBarsTriangleParams
184
189
  & PresetMultiDotsParams
185
190
  & PresetMultiGridLegendParams
@@ -188,12 +193,12 @@ export type PresetMultiGridPluginParams = PresetMultiBarsParams
188
193
  & PresetMultiLineAreasParams
189
194
  & PresetMultiLinesParams
190
195
  & PresetMultiValueAxisParams
191
- & PresetMultiValueStackAxisParams
196
+ & PresetMultiStackedValueAxisParams
192
197
  & PresetOverlappingValueAxesParams
193
- & PresetOverlappingValueStackAxesParams
198
+ & PresetOverlappingStackedValueAxesParams
194
199
 
195
200
  // multiGrid分開grid
196
- export type PresetMultiGridSepratedPluginParams = Omit<PresetMultiGridPluginParams, 'OverlappingValueAxes' | 'OverlappingValueStackAxes'>
201
+ export type PresetMultiGridSepratedPluginParams = Omit<PresetMultiGridPluginParams, 'OverlappingValueAxes' | 'OverlappingStackedValueAxes'>
197
202
 
198
203
  // multiGrid重疊grid
199
204
  export type PresetMultiGridOverlappedPluginParams = Omit<PresetMultiGridPluginParams, 'PresetMultiGroupAxisParams' | 'PresetMultiValueAxisParams'>
@@ -202,8 +207,8 @@ export interface PresetMultiBarsParams {
202
207
  MultiBars: Partial<MultiBarsParams>
203
208
  }
204
209
 
205
- export interface PresetMultiBarStackParams {
206
- MultiBarStack: Partial<MultiBarStackParams>
210
+ export interface PresetMultiStackedBarParams {
211
+ MultiStackedBar: Partial<MultiStackedBarParams>
207
212
  }
208
213
 
209
214
  export interface PresetMultiBarsTriangleParams {
@@ -238,16 +243,16 @@ export interface PresetMultiValueAxisParams {
238
243
  MultiValueAxis: Partial<MultiValueAxisParams>
239
244
  }
240
245
 
241
- export interface PresetMultiValueStackAxisParams {
242
- MultiValueStackAxis: Partial<MultiValueStackAxisParams>
246
+ export interface PresetMultiStackedValueAxisParams {
247
+ MultiStackedValueAxis: Partial<MultiStackedValueAxisParams>
243
248
  }
244
249
 
245
250
  export interface PresetOverlappingValueAxesParams {
246
251
  OverlappingValueAxes: Partial<OverlappingValueAxesParams>
247
252
  }
248
253
 
249
- export interface PresetOverlappingValueStackAxesParams {
250
- OverlappingValueStackAxes: Partial<OverlappingValueStackAxesParams>
254
+ export interface PresetOverlappingStackedValueAxesParams {
255
+ OverlappingStackedValueAxes: Partial<OverlappingStackedValueAxesParams>
251
256
  }
252
257
 
253
258
  // -- multiValue --
@@ -263,8 +268,8 @@ export interface PresetMultiValueAxisParams {
263
268
  MultiValueAxis: Partial<MultiValueAxisParams>
264
269
  }
265
270
 
266
- export interface PresetMultiValueStackAxisParams {
267
- MultiValueStackAxis: Partial<MultiValueStackAxisParams>
271
+ export interface PresetMultiStackedValueAxisParams {
272
+ MultiStackedValueAxis: Partial<MultiStackedValueAxisParams>
268
273
  }
269
274
 
270
275
  export interface PresetMultiValueLegendParams {
@@ -295,6 +300,23 @@ export interface PresetXYZoomParams {
295
300
  XYZoom: Partial<XYZoomParams>
296
301
  }
297
302
 
303
+ // -- relationship --
304
+ export type PresetRelationshipPluginParams = PresetForceDirectedParams
305
+ & PresetRelationshipLegendParams
306
+ & PresetRelationshipTooltipParams
307
+
308
+ export interface PresetForceDirectedParams {
309
+ ForceDirected: DeepPartial<ForceDirectedParams>
310
+ }
311
+
312
+ export interface PresetRelationshipLegendParams {
313
+ RelationshipLegend: Partial<RelationshipLegendParams>
314
+ }
315
+
316
+ export interface PresetRelationshipTooltipParams {
317
+ RelationshipTooltip: Partial<RelationshipTooltipParams>
318
+ }
319
+
298
320
  // -- tree --
299
321
  export type PresetTreePluginParams = PresetTreeLegendParams
300
322
  & PresetTreeMapParams
@@ -1,4 +0,0 @@
1
- import { PresetPartial } from '../../lib/core-types';
2
- import { PresetTreePluginParams, PresetNoneDataPluginParams } from '../types';
3
-
4
- export declare const PRESET_TREE_BASIC: PresetPartial<'tree', Partial<PresetTreePluginParams> & Partial<PresetNoneDataPluginParams>>;