@orbcharts/presets-basic 3.0.0-alpha.6 → 3.0.0-alpha.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/orbcharts-presets-basic.es.js +424 -158
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.d.ts +4 -0
- package/dist/src/gridPluginParamsFiles/GridLegend/index.d.ts +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/index.d.ts +3 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBars/index.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.d.ts +3 -0
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/index.d.ts +2 -0
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/index.d.ts +3 -0
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiLines/index.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.d.ts +4 -0
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/index.d.ts +3 -0
- package/dist/src/multiGridPluginParamsFiles/index.d.ts +6 -0
- package/package.json +2 -2
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.ts +15 -0
- package/src/gridPluginParamsFiles/GridLegend/index.ts +1 -0
- package/src/index.ts +45 -13
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.ts +1 -1
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiBarStack/index.ts +4 -0
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.ts +15 -0
- package/src/multiGridPluginParamsFiles/MultiBars/index.ts +5 -0
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.ts +3 -0
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +28 -0
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.ts +1 -1
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.ts +22 -0
- package/src/multiGridPluginParamsFiles/MultiGridLegend/index.ts +2 -0
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.ts +13 -0
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.ts +13 -0
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.ts +13 -0
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/index.ts +3 -0
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.ts +13 -0
- package/src/multiGridPluginParamsFiles/MultiLines/index.ts +4 -0
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.ts +12 -0
- package/src/multiGridPluginParamsFiles/MultiValueAxis/index.ts +3 -0
- package/src/multiGridPluginParamsFiles/index.ts +7 -1
- package/tsconfig.prod.json +1 -5
package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiGridLegendParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST: PluginParamsFile<MultiGridLegendParams> = {
|
5
|
+
id: 'PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiGridLegend',
|
8
|
+
description: '底部圖例線條列點',
|
9
|
+
data: {
|
10
|
+
position: 'bottom',
|
11
|
+
justify: 'center',
|
12
|
+
padding: 14,
|
13
|
+
gridList: [
|
14
|
+
{
|
15
|
+
listRectHeight: 2,
|
16
|
+
},
|
17
|
+
{
|
18
|
+
listRectHeight: 2,
|
19
|
+
},
|
20
|
+
{
|
21
|
+
listRectHeight: 2,
|
22
|
+
},
|
23
|
+
{
|
24
|
+
listRectHeight: 2,
|
25
|
+
}
|
26
|
+
]
|
27
|
+
}
|
28
|
+
}
|
@@ -5,7 +5,7 @@ export const PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST: PluginParamsFi
|
|
5
5
|
id: 'PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST',
|
6
6
|
chartType: 'multiGrid',
|
7
7
|
pluginName: 'MultiGridLegend',
|
8
|
-
description: '
|
8
|
+
description: '底部圖例矩型及線條列點',
|
9
9
|
data: {
|
10
10
|
position: 'bottom',
|
11
11
|
justify: 'center',
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiGridLegendParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST: PluginParamsFile<MultiGridLegendParams> = {
|
5
|
+
id: 'PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiGridLegend',
|
8
|
+
description: '底部圖例圓型及線條列點',
|
9
|
+
data: {
|
10
|
+
position: 'bottom',
|
11
|
+
justify: 'center',
|
12
|
+
padding: 14,
|
13
|
+
gridList: [
|
14
|
+
{
|
15
|
+
listRectRadius: 7,
|
16
|
+
},
|
17
|
+
{
|
18
|
+
listRectHeight: 2,
|
19
|
+
}
|
20
|
+
]
|
21
|
+
}
|
22
|
+
}
|
@@ -1,2 +1,4 @@
|
|
1
|
+
export { PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST } from './PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'
|
1
2
|
export { PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST } from './PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST'
|
3
|
+
export { PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST} from './PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST'
|
2
4
|
export { PP_MULTI_GRID_LEGEND_BOTTOM } from './PP_MULTI_GRID_LEGEND_BOTTOM'
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiGroupAxisParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_GROUP_AXIS_2_GRID_SLOT: PluginParamsFile<MultiGroupAxisParams> = {
|
5
|
+
id: 'PP_MULTI_GROUP_AXIS_2_GRID_SLOT',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiGroupAxis',
|
8
|
+
description: '2個群組圖軸',
|
9
|
+
data: {
|
10
|
+
tickTextRotate: -30,
|
11
|
+
gridIndexes: [0, 1]
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiGroupAxisParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_GROUP_AXIS_3_GRID_SLOT: PluginParamsFile<MultiGroupAxisParams> = {
|
5
|
+
id: 'PP_MULTI_GROUP_AXIS_3_GRID_SLOT',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiGroupAxis',
|
8
|
+
description: '3個群組圖軸',
|
9
|
+
data: {
|
10
|
+
tickTextRotate: -30,
|
11
|
+
gridIndexes: [0, 1, 2]
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiGroupAxisParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_GROUP_AXIS_4_GRID_SLOT: PluginParamsFile<MultiGroupAxisParams> = {
|
5
|
+
id: 'PP_MULTI_GROUP_AXIS_4_GRID_SLOT',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiGroupAxis',
|
8
|
+
description: '4個群組圖軸',
|
9
|
+
data: {
|
10
|
+
tickTextRotate: -30,
|
11
|
+
gridIndexes: [0, 1, 2, 3]
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiLinesParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_LINES_2_GRID_SLOT: PluginParamsFile<MultiLinesParams> = {
|
5
|
+
id: 'PP_MULTI_LINES_2_GRID_SLOT',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiLines',
|
8
|
+
description: '2組折線圖',
|
9
|
+
data: {
|
10
|
+
gridIndexes: [0, 1]
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiLinesParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_LINES_3_GRID_SLOT: PluginParamsFile<MultiLinesParams> = {
|
5
|
+
id: 'PP_MULTI_LINES_3_GRID_SLOT',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiLines',
|
8
|
+
description: '3組折線圖',
|
9
|
+
data: {
|
10
|
+
gridIndexes: [0, 1, 2]
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiLinesParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_LINES_4_GRID_SLOT: PluginParamsFile<MultiLinesParams> = {
|
5
|
+
id: 'PP_MULTI_LINES_4_GRID_SLOT',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiLines',
|
8
|
+
description: '4組折線圖',
|
9
|
+
data: {
|
10
|
+
gridIndexes: [0, 1, 2, 3]
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiLinesParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_LINES_CURVE: PluginParamsFile<MultiLinesParams> = {
|
5
|
+
id: 'PP_MULTI_LINES_CURVE',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiLines',
|
8
|
+
description: '圓弧折線圖',
|
9
|
+
data: {
|
10
|
+
lineCurve: 'curveMonotoneX',
|
11
|
+
lineWidth: 3
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export { PP_MULTI_LINES_2_GRID_SLOT } from './PP_MULTI_LINES_2_GRID_SLOT'
|
2
|
+
export { PP_MULTI_LINES_3_GRID_SLOT } from './PP_MULTI_LINES_3_GRID_SLOT'
|
3
|
+
export { PP_MULTI_LINES_4_GRID_SLOT } from './PP_MULTI_LINES_4_GRID_SLOT'
|
4
|
+
export { PP_MULTI_LINES_CURVE } from './PP_MULTI_LINES_CURVE'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiGroupAxisParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_VALUE_AXIS_2_GRID_SLOT: PluginParamsFile<MultiGroupAxisParams> = {
|
5
|
+
id: 'PP_MULTI_VALUE_AXIS_2_GRID_SLOT',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiValueAxis',
|
8
|
+
description: '2個資料圖軸',
|
9
|
+
data: {
|
10
|
+
gridIndexes: [0, 1]
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiValueAxisParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_VALUE_AXIS_3_GRID_SLOT: PluginParamsFile<MultiValueAxisParams> = {
|
5
|
+
id: 'PP_MULTI_VALUE_AXIS_3_GRID_SLOT',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiValueAxis',
|
8
|
+
description: '3個資料圖軸',
|
9
|
+
data: {
|
10
|
+
gridIndexes: [0, 1, 2]
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { MultiValueAxisParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_MULTI_VALUE_AXIS_4_GRID_SLOT: PluginParamsFile<MultiValueAxisParams> = {
|
5
|
+
id: 'PP_MULTI_VALUE_AXIS_4_GRID_SLOT',
|
6
|
+
chartType: 'multiGrid',
|
7
|
+
pluginName: 'MultiValueAxis',
|
8
|
+
description: '4個資料圖軸',
|
9
|
+
data: {
|
10
|
+
gridIndexes: [0, 1, 2, 3]
|
11
|
+
}
|
12
|
+
}
|
@@ -1 +1,7 @@
|
|
1
|
-
export * from './
|
1
|
+
export * from './MultiBars'
|
2
|
+
export * from './MultiBarStack'
|
3
|
+
export * from './MultiBarsTriangle'
|
4
|
+
export * from './MultiLines'
|
5
|
+
export * from './MultiGridLegend'
|
6
|
+
export * from './MultiGroupAxis'
|
7
|
+
export * from './MultiValueAxis'
|
package/tsconfig.prod.json
CHANGED
@@ -9,10 +9,6 @@
|
|
9
9
|
"allowJs": true,
|
10
10
|
"moduleResolution": "node",
|
11
11
|
"allowSyntheticDefaultImports" : true,
|
12
|
-
"esModuleInterop" : true
|
13
|
-
"paths":{
|
14
|
-
"@orbcharts/core": ["node_modules/@orbcharts/core"],
|
15
|
-
"@orbcharts/plugins-basic": ["node_modules/@orbcharts/plugins-basic"]
|
16
|
-
}
|
12
|
+
"esModuleInterop" : true
|
17
13
|
}
|
18
14
|
}
|