@orbcharts/presets-basic 3.0.0-alpha.5 → 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 +583 -155
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.d.ts +3 -0
- package/dist/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.d.ts +3 -0
- package/dist/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.d.ts +3 -0
- package/dist/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.d.ts +3 -0
- package/dist/src/gridDataFormatterFiles/index.d.ts +4 -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 +12 -0
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.d.ts +3 -0
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.d.ts +3 -0
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.d.ts +3 -0
- package/dist/src/multiGridDataFormatterFiles/index.d.ts +3 -1
- 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.d.ts +1 -1
- 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 +3 -1
- 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/dist/src/types.d.ts +1 -1
- package/package.json +3 -3
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +1 -1
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +1 -1
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +1 -1
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +1 -1
- package/src/chartParamsFiles/CP_LEFT_PADDING.ts +2 -2
- package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +1 -1
- package/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.ts +16 -0
- package/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.ts +16 -0
- package/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.ts +16 -0
- package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.ts +23 -0
- package/src/gridDataFormatterFiles/index.ts +4 -1
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.ts +15 -0
- package/src/gridPluginParamsFiles/GridLegend/index.ts +1 -0
- package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +2 -1
- package/src/index.ts +90 -11
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.ts +21 -0
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.ts +24 -0
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.ts +27 -0
- package/src/multiGridDataFormatterFiles/index.ts +3 -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.ts +2 -2
- 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 +3 -1
- 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/src/types.ts +2 -1
- package/tsconfig.dev.json +18 -0
- package/tsconfig.prod.json +14 -0
- package/dist/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.d.ts +0 -3
- package/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.ts +0 -16
package/src/types.ts
CHANGED
@@ -2,7 +2,8 @@ import type {
|
|
2
2
|
ChartParamsPartial,
|
3
3
|
DataFormatterPartialTypeMap,
|
4
4
|
ChartType,
|
5
|
-
Preset } from '@orbcharts/core'
|
5
|
+
Preset } from '@orbcharts/core/src/index'
|
6
|
+
// import * as core from '../../packages/orbcharts-core/src/index'
|
6
7
|
import * as chartParams from './chartParamsFiles'
|
7
8
|
import * as seriesDataFormatters from './seriesDataFormatterFiles'
|
8
9
|
import * as seriesPluginParams from './seriesPluginParamsFiles'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"outDir": "./dist/",
|
4
|
+
"sourceMap": true,
|
5
|
+
"noImplicitAny": true,
|
6
|
+
"module": "es6",
|
7
|
+
"target": "es5",
|
8
|
+
"jsx": "react",
|
9
|
+
"allowJs": true,
|
10
|
+
"moduleResolution": "node",
|
11
|
+
"allowSyntheticDefaultImports" : true,
|
12
|
+
"esModuleInterop" : true,
|
13
|
+
"paths":{
|
14
|
+
"@orbcharts/core": ["./../orbcharts-core/src"],
|
15
|
+
"@orbcharts/plugins-basic": ["./../orbcharts-plugins-basic/src"]
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"outDir": "./dist/",
|
4
|
+
"sourceMap": true,
|
5
|
+
"noImplicitAny": true,
|
6
|
+
"module": "es6",
|
7
|
+
"target": "es5",
|
8
|
+
"jsx": "react",
|
9
|
+
"allowJs": true,
|
10
|
+
"moduleResolution": "node",
|
11
|
+
"allowSyntheticDefaultImports" : true,
|
12
|
+
"esModuleInterop" : true
|
13
|
+
}
|
14
|
+
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import type { DataFormatterFile } from '../types'
|
2
|
-
import type { BarsParams } from '@orbcharts/plugins-basic'
|
3
|
-
|
4
|
-
export const DF_BOTTOM_VALUE_AXIS: DataFormatterFile<'grid'> = {
|
5
|
-
id: 'DF_BOTTOM_VALUE_AXIS',
|
6
|
-
chartType: 'grid',
|
7
|
-
description: '底部橫向資料圖軸',
|
8
|
-
data: {
|
9
|
-
valueAxis: {
|
10
|
-
position: 'bottom'
|
11
|
-
},
|
12
|
-
groupAxis: {
|
13
|
-
position: 'left'
|
14
|
-
},
|
15
|
-
}
|
16
|
-
}
|