@orbcharts/presets-basic 3.0.0-alpha.15 → 3.0.0-alpha.16
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +200 -200
- package/dist/orbcharts-presets-basic/src/chartParamsFiles/CP_LONG_PADDING.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/chartParamsFiles/index.d.ts +1 -0
- package/dist/orbcharts-presets-basic/src/gridDataFormatterFiles/DF_GRID_SEPARATE_SERIES.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/gridDataFormatterFiles/DF_LINE_AREAS_SEPARATE_SERIES.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/gridDataFormatterFiles/index.d.ts +2 -6
- package/dist/orbcharts-presets-basic/src/index.d.ts +7 -6
- package/dist/orbcharts-presets-basic/src/multiGridDataFormatterFiles/DF_MULTI_GRID_SEPARATE_GRID.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_SEPARATE_GRID.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/multiGridDataFormatterFiles/index.d.ts +2 -6
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/DF_SERIES_DESC.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES_AND_DESC.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES_AND_DESC.d.ts +3 -0
- package/dist/orbcharts-presets-basic/src/seriesDataFormatterFiles/index.d.ts +5 -1
- package/dist/orbcharts-presets-basic.es.js +329 -456
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/package.json +43 -43
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_BOTTOM_SLIGHT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_LEFT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_LONG_PADDING.ts +14 -0
- package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +13 -13
- package/src/chartParamsFiles/index.ts +13 -11
- package/src/createPreset.ts +87 -87
- package/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.ts +16 -16
- package/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.ts +16 -16
- package/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.ts +16 -16
- package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.ts +22 -22
- package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS_AND_NONE_GROUP_SCALE_PADDING.ts +17 -17
- package/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.ts +14 -14
- package/src/gridDataFormatterFiles/DF_GRID_NONE_GROUP_SCALE_PADDING.ts +13 -13
- package/src/gridDataFormatterFiles/DF_GRID_SEPARATE_SERIES.ts +17 -0
- package/src/gridDataFormatterFiles/DF_LINE_AREAS_2_SERIES_SLOT.ts +19 -19
- package/src/gridDataFormatterFiles/DF_LINE_AREAS_3_SERIES_SLOT.ts +19 -19
- package/src/gridDataFormatterFiles/DF_LINE_AREAS_4_SERIES_SLOT.ts +19 -19
- package/src/gridDataFormatterFiles/DF_LINE_AREAS_SEPARATE_SERIES.ts +20 -0
- package/src/gridDataFormatterFiles/index.ts +12 -10
- package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +14 -14
- package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +14 -14
- package/src/gridPluginParamsFiles/Bars/index.ts +1 -1
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +12 -12
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +14 -14
- package/src/gridPluginParamsFiles/Dots/index.ts +1 -1
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +13 -13
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +14 -14
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.ts +14 -14
- package/src/gridPluginParamsFiles/GridLegend/index.ts +2 -2
- package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +12 -12
- package/src/gridPluginParamsFiles/LineAreas/PP_LINE_AREAS_CURVE.ts +11 -11
- package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +12 -12
- package/src/gridPluginParamsFiles/index.ts +6 -6
- package/src/index.ts +356 -290
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.ts +21 -21
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.ts +24 -24
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.ts +27 -27
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_SEPARATE_GRID.ts +22 -0
- package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_2_GRID_SLOT.ts +27 -27
- package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_3_GRID_SLOT.ts +33 -33
- package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_4_GRID_SLOT.ts +39 -39
- package/src/multiGridDataFormatterFiles/DF_MULTI_LINE_AREAS_SEPARATE_GRID.ts +28 -0
- package/src/multiGridDataFormatterFiles/index.ts +8 -6
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarStack/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.ts +14 -14
- package/src/multiGridPluginParamsFiles/MultiBars/index.ts +5 -5
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.ts +2 -2
- package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiDots/PP_MULTI_DOTS_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiDots/index.ts +2 -2
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.ts +13 -13
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +27 -27
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.ts +20 -20
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.ts +21 -21
- package/src/multiGridPluginParamsFiles/MultiGridLegend/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLineAreas/PP_MULTI_LINE_AREAS_CURVE.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLineAreas/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.ts +12 -12
- package/src/multiGridPluginParamsFiles/MultiLines/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.ts +11 -11
- package/src/multiGridPluginParamsFiles/MultiValueAxis/index.ts +3 -3
- package/src/multiGridPluginParamsFiles/index.ts +8 -8
- package/src/seriesDataFormatterFiles/DF_SERIES_DESC.ts +10 -0
- package/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES.ts +10 -0
- package/src/seriesDataFormatterFiles/DF_SERIES_SEPARATE_SERIES_AND_DESC.ts +11 -0
- package/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES.ts +10 -0
- package/src/seriesDataFormatterFiles/DF_SERIES_SUM_SERIES_AND_DESC.ts +11 -0
- package/src/seriesDataFormatterFiles/index.ts +7 -1
- package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +11 -11
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +12 -12
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +14 -14
- package/src/seriesPluginParamsFiles/Pie/index.ts +1 -1
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +13 -13
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +13 -13
- package/src/seriesPluginParamsFiles/PieLabels/index.ts +1 -1
- package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +11 -11
- package/src/seriesPluginParamsFiles/index.ts +3 -3
- package/src/treePluginParamsFiles/TreeLegend/PP_TREE_LEGEND_BOTTOM.ts +13 -13
- package/src/types.ts +61 -61
- package/tsconfig.dev.json +17 -17
- package/tsconfig.json +17 -17
- package/tsconfig.prod.json +13 -13
- package/vite.config.js +44 -44
package/vite.config.js
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
// import { fileURLToPath, URL } from 'node:url'
|
2
|
-
|
3
|
-
// import { resolve } from 'path'
|
4
|
-
import { defineConfig } from 'vite'
|
5
|
-
import dts from 'vite-plugin-dts'
|
6
|
-
|
7
|
-
const releaseConfig = {
|
8
|
-
plugins: [
|
9
|
-
dts({
|
10
|
-
insertTypesEntry: true
|
11
|
-
})
|
12
|
-
],
|
13
|
-
compilerOptions: {
|
14
|
-
composite: true
|
15
|
-
},
|
16
|
-
build: {
|
17
|
-
lib: {
|
18
|
-
entry: "src/index.ts",
|
19
|
-
name: 'orbcharts-presets-basic',
|
20
|
-
formats: ["es", "umd"],
|
21
|
-
fileName: format => `orbcharts-presets-basic.${format}.js`
|
22
|
-
},
|
23
|
-
// rollupOptions: {
|
24
|
-
// input: {
|
25
|
-
// main: resolve(__dirname, "src/index.ts")
|
26
|
-
// },
|
27
|
-
// external: ['vue'],
|
28
|
-
// output: {
|
29
|
-
// assetFileNames: 'my-library.css',
|
30
|
-
// exports: "named",
|
31
|
-
// globals: {
|
32
|
-
// vue: 'Vue',
|
33
|
-
// },
|
34
|
-
// },
|
35
|
-
// },
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
export default defineConfig(({ command, mode }) => {
|
40
|
-
if (mode === 'release') {
|
41
|
-
return releaseConfig
|
42
|
-
} else {
|
43
|
-
return releaseConfig
|
44
|
-
}
|
1
|
+
// import { fileURLToPath, URL } from 'node:url'
|
2
|
+
|
3
|
+
// import { resolve } from 'path'
|
4
|
+
import { defineConfig } from 'vite'
|
5
|
+
import dts from 'vite-plugin-dts'
|
6
|
+
|
7
|
+
const releaseConfig = {
|
8
|
+
plugins: [
|
9
|
+
dts({
|
10
|
+
insertTypesEntry: true
|
11
|
+
})
|
12
|
+
],
|
13
|
+
compilerOptions: {
|
14
|
+
composite: true
|
15
|
+
},
|
16
|
+
build: {
|
17
|
+
lib: {
|
18
|
+
entry: "src/index.ts",
|
19
|
+
name: 'orbcharts-presets-basic',
|
20
|
+
formats: ["es", "umd"],
|
21
|
+
fileName: format => `orbcharts-presets-basic.${format}.js`
|
22
|
+
},
|
23
|
+
// rollupOptions: {
|
24
|
+
// input: {
|
25
|
+
// main: resolve(__dirname, "src/index.ts")
|
26
|
+
// },
|
27
|
+
// external: ['vue'],
|
28
|
+
// output: {
|
29
|
+
// assetFileNames: 'my-library.css',
|
30
|
+
// exports: "named",
|
31
|
+
// globals: {
|
32
|
+
// vue: 'Vue',
|
33
|
+
// },
|
34
|
+
// },
|
35
|
+
// },
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
export default defineConfig(({ command, mode }) => {
|
40
|
+
if (mode === 'release') {
|
41
|
+
return releaseConfig
|
42
|
+
} else {
|
43
|
+
return releaseConfig
|
44
|
+
}
|
45
45
|
})
|