nuxt-echarts 0.0.1 → 0.0.4
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/README.md +37 -15
- package/dist/module.d.mts +31 -1
- package/dist/module.d.ts +31 -1
- package/dist/module.json +5 -2
- package/dist/module.mjs +105 -6
- package/dist/runtime/components/VChart.client.d.ts +310 -0
- package/dist/runtime/components/VChart.client.js +240 -0
- package/dist/runtime/components/VChart.server.vue +5 -0
- package/dist/runtime/components/VChartIsland.server.vue +34 -0
- package/dist/runtime/components/VChartLight.vue +78 -0
- package/dist/runtime/components/VChartLight.vue.d.ts +26 -0
- package/dist/runtime/components/VChartServer.vue +48 -0
- package/dist/runtime/composables/api.d.ts +7 -0
- package/dist/runtime/composables/api.js +35 -0
- package/dist/runtime/composables/autoresize.d.ts +0 -0
- package/dist/runtime/composables/autoresize.js +26 -0
- package/dist/runtime/composables/index.d.ts +3 -0
- package/dist/runtime/composables/index.js +3 -0
- package/dist/runtime/composables/loading.d.ts +8 -0
- package/dist/runtime/composables/loading.js +29 -0
- package/dist/runtime/{plugin.mjs → plugin.js} +0 -1
- package/dist/runtime/style.css +1 -0
- package/dist/runtime/types.d.ts +52 -0
- package/dist/runtime/types.js +0 -0
- package/dist/runtime/utils/injection.d.ts +6 -0
- package/dist/runtime/utils/injection.js +4 -0
- package/dist/runtime/utils/on.d.ts +4 -0
- package/dist/runtime/utils/on.js +11 -0
- package/dist/runtime/utils/wc.d.ts +0 -0
- package/dist/runtime/utils/wc.js +30 -0
- package/dist/types.d.mts +4 -13
- package/dist/types.d.ts +4 -13
- package/package.json +25 -13
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
1
3
|
# Nuxt ECharts
|
|
2
4
|
|
|
3
5
|
[![npm version][npm-version-src]][npm-version-href]
|
|
@@ -7,21 +9,24 @@
|
|
|
7
9
|
|
|
8
10
|
Nuxt Module for Apache ECharts™
|
|
9
11
|
|
|
10
|
-
>
|
|
12
|
+
> [!IMPORTANT]
|
|
11
13
|
>
|
|
12
|
-
> Nuxt ECharts is currently in active development and
|
|
14
|
+
> Nuxt ECharts is currently in active development and based on [experimental `<NuxtIsland>`](https://nuxt.com/docs/api/components/nuxt-island). If you found any issue, design flaw, or have ideas to improve it, please open an [issue](https://github.com/kingyue737/nuxt-echarts/issues) or a [Discussion](https://github.com/kingyue737/nuxt-echarts/discussions).
|
|
13
15
|
|
|
14
16
|
- [✨ Release Notes](/CHANGELOG.md)
|
|
15
|
-
|
|
17
|
+
- 🏀 Online playground (WIP)
|
|
18
|
+
- 📖 Documentation (WIP)
|
|
19
|
+
<!-- - [🏀 Online playground](https://stackblitz.com/github/kingyue737/nuxt-echarts?file=playground%2Fapp.vue) -->
|
|
16
20
|
<!-- - [📖 Documentation](https://example.com) -->
|
|
17
21
|
|
|
18
22
|
## Features
|
|
19
23
|
|
|
20
|
-
|
|
24
|
+
- ⛰ **SSR**: Server-side SVG Rendering with [Nuxt server components](https://nuxt.com/docs/guide/directory-structure/components#server-components)
|
|
21
25
|
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
26
|
+
- ♾️ **Client Hydration**: lazy-loading Full ECharts or [lightweight client runtime](https://echarts.apache.org/handbook/en/how-to/cross-platform/server#using-lightweight-runtime)
|
|
27
|
+
- 🛠️ **Configurable**: import only [necessary functionality](https://echarts.apache.org/handbook/en/basics/import#shrinking-bundle-size) for shrinking bundle size
|
|
28
|
+
- 🦾 **Type Strong**: auto-import [ECharts option type](https://echarts.apache.org/handbook/en/basics/import#creating-an-option-type-in-typescript) based on your config
|
|
29
|
+
- 🌲 **Tree-shaking**: Components and ECharts are only included if you use them
|
|
25
30
|
|
|
26
31
|
## Quick Setup
|
|
27
32
|
|
|
@@ -40,30 +45,47 @@ That's it! You can now use Nuxt ECharts in your Nuxt app ✨
|
|
|
40
45
|
|
|
41
46
|
```bash
|
|
42
47
|
# Install dependencies
|
|
43
|
-
|
|
48
|
+
pnpm install
|
|
44
49
|
|
|
45
50
|
# Generate type stubs
|
|
46
|
-
|
|
51
|
+
pnpm run dev:prepare
|
|
47
52
|
|
|
48
53
|
# Develop with the playground
|
|
49
|
-
|
|
54
|
+
pnpm run dev
|
|
50
55
|
|
|
51
56
|
# Build the playground
|
|
52
|
-
|
|
57
|
+
pnpm run dev:build
|
|
53
58
|
|
|
54
59
|
# Run ESLint
|
|
55
|
-
|
|
60
|
+
pnpm run lint
|
|
61
|
+
|
|
62
|
+
# Format with Prettier
|
|
63
|
+
pnpm run format
|
|
56
64
|
|
|
57
65
|
# Run Vitest
|
|
58
|
-
|
|
59
|
-
|
|
66
|
+
pnpm run test
|
|
67
|
+
pnpm run test:watch
|
|
60
68
|
|
|
61
69
|
# Release new version
|
|
62
|
-
|
|
70
|
+
pnpm run release
|
|
63
71
|
```
|
|
64
72
|
|
|
65
73
|
</details>
|
|
66
74
|
|
|
75
|
+
## Credits
|
|
76
|
+
|
|
77
|
+
The Nuxt ECharts module is heavily inspired by [vue-echarts](https://github.com/ecomfe/vue-echarts), created by [@Justineo](https://github.com/Justineo).
|
|
78
|
+
|
|
79
|
+
## License
|
|
80
|
+
|
|
81
|
+
This project is licensed under the [MIT License](./LICENSE).
|
|
82
|
+
|
|
83
|
+
This project also partially contains code derived or copied from [vue-echarts(MIT)](https://github.com/ecomfe/vue-echarts/blob/main/LICENSE).
|
|
84
|
+
|
|
85
|
+
## Notice
|
|
86
|
+
|
|
87
|
+
The Apache Software Foundation [Apache ECharts, ECharts](https://echarts.apache.org/), Apache, the Apache feather, and the Apache ECharts project logo are either registered trademarks or trademarks of the [Apache Software Foundation](https://www.apache.org/).
|
|
88
|
+
|
|
67
89
|
<!-- Badges -->
|
|
68
90
|
|
|
69
91
|
[npm-version-src]: https://img.shields.io/npm/v/nuxt-echarts/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
package/dist/module.d.mts
CHANGED
|
@@ -1,7 +1,37 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import * as echartsComponents from 'echarts/components';
|
|
3
|
+
import * as echartsCharts from 'echarts/charts';
|
|
4
|
+
import * as echartsFeatures from 'echarts/features';
|
|
2
5
|
|
|
6
|
+
type ComponentName = keyof typeof echartsComponents;
|
|
7
|
+
type ChartName = keyof typeof echartsCharts;
|
|
8
|
+
type FeaturesName = keyof typeof echartsFeatures;
|
|
9
|
+
type RendererName = 'canvas' | 'svg';
|
|
3
10
|
interface ModuleOptions {
|
|
11
|
+
/**
|
|
12
|
+
* @default 'canvas'
|
|
13
|
+
*/
|
|
14
|
+
renderer?: RendererName | RendererName[];
|
|
15
|
+
/**
|
|
16
|
+
* Register the required charts globally
|
|
17
|
+
*/
|
|
18
|
+
charts?: ChartName[];
|
|
19
|
+
/**
|
|
20
|
+
* Register the required components globally
|
|
21
|
+
*/
|
|
22
|
+
components?: ComponentName[];
|
|
23
|
+
/**
|
|
24
|
+
* Register the required components globally
|
|
25
|
+
*/
|
|
26
|
+
features?: FeaturesName[];
|
|
27
|
+
/**
|
|
28
|
+
* WIP
|
|
29
|
+
*
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
ssr?: boolean;
|
|
4
33
|
}
|
|
34
|
+
|
|
5
35
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
6
36
|
|
|
7
|
-
export {
|
|
37
|
+
export { _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -1,7 +1,37 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import * as echartsComponents from 'echarts/components';
|
|
3
|
+
import * as echartsCharts from 'echarts/charts';
|
|
4
|
+
import * as echartsFeatures from 'echarts/features';
|
|
2
5
|
|
|
6
|
+
type ComponentName = keyof typeof echartsComponents;
|
|
7
|
+
type ChartName = keyof typeof echartsCharts;
|
|
8
|
+
type FeaturesName = keyof typeof echartsFeatures;
|
|
9
|
+
type RendererName = 'canvas' | 'svg';
|
|
3
10
|
interface ModuleOptions {
|
|
11
|
+
/**
|
|
12
|
+
* @default 'canvas'
|
|
13
|
+
*/
|
|
14
|
+
renderer?: RendererName | RendererName[];
|
|
15
|
+
/**
|
|
16
|
+
* Register the required charts globally
|
|
17
|
+
*/
|
|
18
|
+
charts?: ChartName[];
|
|
19
|
+
/**
|
|
20
|
+
* Register the required components globally
|
|
21
|
+
*/
|
|
22
|
+
components?: ComponentName[];
|
|
23
|
+
/**
|
|
24
|
+
* Register the required components globally
|
|
25
|
+
*/
|
|
26
|
+
features?: FeaturesName[];
|
|
27
|
+
/**
|
|
28
|
+
* WIP
|
|
29
|
+
*
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
ssr?: boolean;
|
|
4
33
|
}
|
|
34
|
+
|
|
5
35
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
6
36
|
|
|
7
|
-
export {
|
|
37
|
+
export { _default as default };
|
package/dist/module.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-echarts",
|
|
3
3
|
"configKey": "echarts",
|
|
4
|
-
"
|
|
4
|
+
"compatibility": {
|
|
5
|
+
"nuxt": ">=3.2.0"
|
|
6
|
+
},
|
|
7
|
+
"version": "0.0.4",
|
|
5
8
|
"builder": {
|
|
6
|
-
"@nuxt/module-builder": "0.
|
|
9
|
+
"@nuxt/module-builder": "0.8.0",
|
|
7
10
|
"unbuild": "2.0.0"
|
|
8
11
|
}
|
|
9
12
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -1,15 +1,114 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, addPlugin } from '@nuxt/kit';
|
|
1
|
+
import { defineNuxtModule, createResolver, addPlugin, addComponentsDir, addTemplate, addTypeTemplate, addImports } from '@nuxt/kit';
|
|
2
2
|
|
|
3
3
|
const module = defineNuxtModule({
|
|
4
4
|
meta: {
|
|
5
5
|
name: "nuxt-echarts",
|
|
6
|
-
configKey: "echarts"
|
|
6
|
+
configKey: "echarts",
|
|
7
|
+
compatibility: {
|
|
8
|
+
// Semver version of supported nuxt versions
|
|
9
|
+
nuxt: ">=3.2.0"
|
|
10
|
+
}
|
|
7
11
|
},
|
|
8
12
|
// Default configuration options of the Nuxt module
|
|
9
|
-
defaults: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
defaults: {
|
|
14
|
+
renderer: "canvas"
|
|
15
|
+
},
|
|
16
|
+
setup(options, nuxt) {
|
|
17
|
+
const { resolve } = createResolver(import.meta.url);
|
|
18
|
+
addPlugin(resolve("./runtime/plugin"));
|
|
19
|
+
addComponentsDir({ path: resolve("runtime/components") });
|
|
20
|
+
nuxt.options.css.unshift(resolve("./runtime/style.css"));
|
|
21
|
+
function join(arr) {
|
|
22
|
+
return arr?.map((name) => ` ${name},`).join("\n") || "";
|
|
23
|
+
}
|
|
24
|
+
let renderers = [];
|
|
25
|
+
if (typeof options.renderer === "string" || options.renderer instanceof String) {
|
|
26
|
+
renderers.push(options.renderer);
|
|
27
|
+
} else {
|
|
28
|
+
renderers = options.renderer;
|
|
29
|
+
}
|
|
30
|
+
const rendererNames = [];
|
|
31
|
+
renderers.forEach((v) => {
|
|
32
|
+
if (v === "canvas")
|
|
33
|
+
rendererNames.push("CanvasRenderer");
|
|
34
|
+
else if (v === "svg")
|
|
35
|
+
rendererNames.push("SVGRenderer");
|
|
36
|
+
});
|
|
37
|
+
const joinedRendererNames = join(rendererNames);
|
|
38
|
+
const joinedChartNames = join(options.charts);
|
|
39
|
+
const joinedComponentNames = join(options.components);
|
|
40
|
+
const joinedFeatureNames = join(options.features);
|
|
41
|
+
addTemplate({
|
|
42
|
+
filename: "echarts.mjs",
|
|
43
|
+
write: true,
|
|
44
|
+
getContents: () => [
|
|
45
|
+
"// Generated by nuxt-echarts",
|
|
46
|
+
"",
|
|
47
|
+
"import { use } from 'echarts/core'",
|
|
48
|
+
"import {",
|
|
49
|
+
joinedRendererNames,
|
|
50
|
+
"} from 'echarts/renderers'",
|
|
51
|
+
"import {",
|
|
52
|
+
joinedChartNames,
|
|
53
|
+
"} from 'echarts/charts'",
|
|
54
|
+
"import {",
|
|
55
|
+
joinedComponentNames,
|
|
56
|
+
"} from 'echarts/components'",
|
|
57
|
+
"import {",
|
|
58
|
+
joinedFeatureNames,
|
|
59
|
+
"} from 'echarts/features'",
|
|
60
|
+
"",
|
|
61
|
+
"use([",
|
|
62
|
+
joinedRendererNames,
|
|
63
|
+
joinedChartNames,
|
|
64
|
+
joinedComponentNames,
|
|
65
|
+
joinedFeatureNames,
|
|
66
|
+
"])"
|
|
67
|
+
].join("\n")
|
|
68
|
+
});
|
|
69
|
+
if (options.charts || options.components) {
|
|
70
|
+
const chartOptionNames = options.charts?.map(
|
|
71
|
+
(name) => `${name.slice(0, -5)}SeriesOption`
|
|
72
|
+
);
|
|
73
|
+
const componentOptionNames = options.components?.map(
|
|
74
|
+
(name) => `${name}Option`
|
|
75
|
+
);
|
|
76
|
+
addTypeTemplate({
|
|
77
|
+
filename: "types/nuxt-echarts.d.ts",
|
|
78
|
+
getContents: () => [
|
|
79
|
+
`// Generated by nuxt-echarts`,
|
|
80
|
+
"",
|
|
81
|
+
"import type { ComposeOption } from 'echarts/core'",
|
|
82
|
+
"import type {",
|
|
83
|
+
join(chartOptionNames),
|
|
84
|
+
"} from 'echarts/charts'",
|
|
85
|
+
"import type {",
|
|
86
|
+
join(componentOptionNames),
|
|
87
|
+
"} from 'echarts/components'",
|
|
88
|
+
"",
|
|
89
|
+
"declare global {",
|
|
90
|
+
" export type ECOption = ComposeOption<",
|
|
91
|
+
`${chartOptionNames?.map((name) => ` | ${name}`).join("\n")}`,
|
|
92
|
+
`${componentOptionNames?.map((name) => ` | ${name}`).join("\n")}`,
|
|
93
|
+
" >",
|
|
94
|
+
"}",
|
|
95
|
+
"",
|
|
96
|
+
"export {}"
|
|
97
|
+
].join("\n")
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
[
|
|
101
|
+
"THEME_KEY",
|
|
102
|
+
"INIT_OPTIONS_KEY",
|
|
103
|
+
"UPDATE_OPTIONS_KEY",
|
|
104
|
+
"LOADING_OPTIONS_KEY"
|
|
105
|
+
].forEach(
|
|
106
|
+
(name) => addImports({ name, from: resolve("./runtime/utils/injection") })
|
|
107
|
+
);
|
|
108
|
+
if (options.ssr) {
|
|
109
|
+
nuxt.options.experimental ||= {};
|
|
110
|
+
nuxt.options.experimental.componentIslands = true;
|
|
111
|
+
}
|
|
13
112
|
}
|
|
14
113
|
});
|
|
15
114
|
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { Option, Theme, UpdateOptions } from '../types.js';
|
|
3
|
+
import { type EChartsElement } from '../utils/wc.js';
|
|
4
|
+
import '#build/echarts.mjs';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
loading: BooleanConstructor;
|
|
7
|
+
loadingOptions: PropType<import("../types").LoadingOptions>;
|
|
8
|
+
autoresize: PropType<boolean | {
|
|
9
|
+
throttle?: number | undefined;
|
|
10
|
+
onResize?: (() => void) | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
option: PropType<import("echarts/core").EChartsCoreOption>;
|
|
13
|
+
theme: {
|
|
14
|
+
type: PropType<Theme>;
|
|
15
|
+
};
|
|
16
|
+
initOptions: PropType<import("echarts/core").EChartsInitOpts>;
|
|
17
|
+
updateOptions: PropType<import("echarts/core").SetOptionOpts>;
|
|
18
|
+
group: StringConstructor;
|
|
19
|
+
manualUpdate: BooleanConstructor;
|
|
20
|
+
}, {
|
|
21
|
+
getWidth: () => number;
|
|
22
|
+
getHeight: () => number;
|
|
23
|
+
getDom: () => HTMLElement;
|
|
24
|
+
getOption: () => import("echarts/core").EChartsCoreOption;
|
|
25
|
+
resize: (opts?: import("echarts/core").ResizeOpts | undefined) => void;
|
|
26
|
+
dispatchAction: (payload: import("echarts/core").Payload, opt?: boolean | {
|
|
27
|
+
silent?: boolean | undefined;
|
|
28
|
+
flush?: boolean | undefined;
|
|
29
|
+
} | undefined) => void;
|
|
30
|
+
convertToPixel: {
|
|
31
|
+
(finder: string | {
|
|
32
|
+
seriesIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
33
|
+
seriesId?: ((string | number) | (string | number)[]) | undefined;
|
|
34
|
+
seriesName?: ((string | number) | (string | number)[]) | undefined;
|
|
35
|
+
geoIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
36
|
+
geoId?: ((string | number) | (string | number)[]) | undefined;
|
|
37
|
+
geoName?: ((string | number) | (string | number)[]) | undefined;
|
|
38
|
+
bmapIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
39
|
+
bmapId?: ((string | number) | (string | number)[]) | undefined;
|
|
40
|
+
bmapName?: ((string | number) | (string | number)[]) | undefined;
|
|
41
|
+
xAxisIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
42
|
+
xAxisId?: ((string | number) | (string | number)[]) | undefined;
|
|
43
|
+
xAxisName?: ((string | number) | (string | number)[]) | undefined;
|
|
44
|
+
yAxisIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
45
|
+
yAxisId?: ((string | number) | (string | number)[]) | undefined;
|
|
46
|
+
yAxisName?: ((string | number) | (string | number)[]) | undefined;
|
|
47
|
+
gridIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
48
|
+
gridId?: ((string | number) | (string | number)[]) | undefined;
|
|
49
|
+
gridName?: ((string | number) | (string | number)[]) | undefined;
|
|
50
|
+
dataIndex?: number | undefined;
|
|
51
|
+
dataIndexInside?: number | undefined;
|
|
52
|
+
}, value: (string | number) | Date): number;
|
|
53
|
+
(finder: string | {
|
|
54
|
+
seriesIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
55
|
+
seriesId?: ((string | number) | (string | number)[]) | undefined;
|
|
56
|
+
seriesName?: ((string | number) | (string | number)[]) | undefined;
|
|
57
|
+
geoIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
58
|
+
geoId?: ((string | number) | (string | number)[]) | undefined;
|
|
59
|
+
geoName?: ((string | number) | (string | number)[]) | undefined;
|
|
60
|
+
bmapIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
61
|
+
bmapId?: ((string | number) | (string | number)[]) | undefined;
|
|
62
|
+
bmapName?: ((string | number) | (string | number)[]) | undefined;
|
|
63
|
+
xAxisIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
64
|
+
xAxisId?: ((string | number) | (string | number)[]) | undefined;
|
|
65
|
+
xAxisName?: ((string | number) | (string | number)[]) | undefined;
|
|
66
|
+
yAxisIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
67
|
+
yAxisId?: ((string | number) | (string | number)[]) | undefined;
|
|
68
|
+
yAxisName?: ((string | number) | (string | number)[]) | undefined;
|
|
69
|
+
gridIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
70
|
+
gridId?: ((string | number) | (string | number)[]) | undefined;
|
|
71
|
+
gridName?: ((string | number) | (string | number)[]) | undefined;
|
|
72
|
+
dataIndex?: number | undefined;
|
|
73
|
+
dataIndexInside?: number | undefined;
|
|
74
|
+
}, value: ((string | number) | Date)[]): number[];
|
|
75
|
+
};
|
|
76
|
+
convertFromPixel: {
|
|
77
|
+
(finder: string | {
|
|
78
|
+
seriesIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
79
|
+
seriesId?: ((string | number) | (string | number)[]) | undefined;
|
|
80
|
+
seriesName?: ((string | number) | (string | number)[]) | undefined;
|
|
81
|
+
geoIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
82
|
+
geoId?: ((string | number) | (string | number)[]) | undefined;
|
|
83
|
+
geoName?: ((string | number) | (string | number)[]) | undefined;
|
|
84
|
+
bmapIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
85
|
+
bmapId?: ((string | number) | (string | number)[]) | undefined;
|
|
86
|
+
bmapName?: ((string | number) | (string | number)[]) | undefined;
|
|
87
|
+
xAxisIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
88
|
+
xAxisId?: ((string | number) | (string | number)[]) | undefined;
|
|
89
|
+
xAxisName?: ((string | number) | (string | number)[]) | undefined;
|
|
90
|
+
yAxisIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
91
|
+
yAxisId?: ((string | number) | (string | number)[]) | undefined;
|
|
92
|
+
yAxisName?: ((string | number) | (string | number)[]) | undefined;
|
|
93
|
+
gridIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
94
|
+
gridId?: ((string | number) | (string | number)[]) | undefined;
|
|
95
|
+
gridName?: ((string | number) | (string | number)[]) | undefined;
|
|
96
|
+
dataIndex?: number | undefined;
|
|
97
|
+
dataIndexInside?: number | undefined;
|
|
98
|
+
}, value: number): number;
|
|
99
|
+
(finder: string | {
|
|
100
|
+
seriesIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
101
|
+
seriesId?: ((string | number) | (string | number)[]) | undefined;
|
|
102
|
+
seriesName?: ((string | number) | (string | number)[]) | undefined;
|
|
103
|
+
geoIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
104
|
+
geoId?: ((string | number) | (string | number)[]) | undefined;
|
|
105
|
+
geoName?: ((string | number) | (string | number)[]) | undefined;
|
|
106
|
+
bmapIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
107
|
+
bmapId?: ((string | number) | (string | number)[]) | undefined;
|
|
108
|
+
bmapName?: ((string | number) | (string | number)[]) | undefined;
|
|
109
|
+
xAxisIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
110
|
+
xAxisId?: ((string | number) | (string | number)[]) | undefined;
|
|
111
|
+
xAxisName?: ((string | number) | (string | number)[]) | undefined;
|
|
112
|
+
yAxisIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
113
|
+
yAxisId?: ((string | number) | (string | number)[]) | undefined;
|
|
114
|
+
yAxisName?: ((string | number) | (string | number)[]) | undefined;
|
|
115
|
+
gridIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
116
|
+
gridId?: ((string | number) | (string | number)[]) | undefined;
|
|
117
|
+
gridName?: ((string | number) | (string | number)[]) | undefined;
|
|
118
|
+
dataIndex?: number | undefined;
|
|
119
|
+
dataIndexInside?: number | undefined;
|
|
120
|
+
}, value: number[]): number[];
|
|
121
|
+
};
|
|
122
|
+
containPixel: (finder: string | {
|
|
123
|
+
seriesIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
124
|
+
seriesId?: ((string | number) | (string | number)[]) | undefined;
|
|
125
|
+
seriesName?: ((string | number) | (string | number)[]) | undefined;
|
|
126
|
+
geoIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
127
|
+
geoId?: ((string | number) | (string | number)[]) | undefined;
|
|
128
|
+
geoName?: ((string | number) | (string | number)[]) | undefined;
|
|
129
|
+
bmapIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
130
|
+
bmapId?: ((string | number) | (string | number)[]) | undefined;
|
|
131
|
+
bmapName?: ((string | number) | (string | number)[]) | undefined;
|
|
132
|
+
xAxisIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
133
|
+
xAxisId?: ((string | number) | (string | number)[]) | undefined;
|
|
134
|
+
xAxisName?: ((string | number) | (string | number)[]) | undefined;
|
|
135
|
+
yAxisIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
136
|
+
yAxisId?: ((string | number) | (string | number)[]) | undefined;
|
|
137
|
+
yAxisName?: ((string | number) | (string | number)[]) | undefined;
|
|
138
|
+
gridIndex?: (number | false | number[] | "none" | "all") | undefined;
|
|
139
|
+
gridId?: ((string | number) | (string | number)[]) | undefined;
|
|
140
|
+
gridName?: ((string | number) | (string | number)[]) | undefined;
|
|
141
|
+
dataIndex?: number | undefined;
|
|
142
|
+
dataIndexInside?: number | undefined;
|
|
143
|
+
}, value: number[]) => boolean;
|
|
144
|
+
getDataURL: (opts?: {
|
|
145
|
+
type?: "svg" | "png" | "jpeg" | undefined;
|
|
146
|
+
pixelRatio?: number | undefined;
|
|
147
|
+
backgroundColor?: import("echarts/core").Color | undefined;
|
|
148
|
+
excludeComponents?: string[] | undefined;
|
|
149
|
+
} | undefined) => string;
|
|
150
|
+
getConnectedDataURL: (opts?: {
|
|
151
|
+
type?: "svg" | "png" | "jpeg" | undefined;
|
|
152
|
+
pixelRatio?: number | undefined;
|
|
153
|
+
backgroundColor?: import("echarts/core").Color | undefined;
|
|
154
|
+
connectedBackgroundColor?: import("echarts/core").Color | undefined;
|
|
155
|
+
excludeComponents?: string[] | undefined;
|
|
156
|
+
} | undefined) => string;
|
|
157
|
+
appendData: (params: {
|
|
158
|
+
seriesIndex: number;
|
|
159
|
+
data: any;
|
|
160
|
+
}) => void;
|
|
161
|
+
clear: () => void;
|
|
162
|
+
isDisposed: () => boolean;
|
|
163
|
+
dispose: () => void;
|
|
164
|
+
chart: import("vue").ShallowRef<import("echarts/core").ECharts | undefined>;
|
|
165
|
+
root: import("vue").ShallowRef<EChartsElement | undefined>;
|
|
166
|
+
inner: import("vue").ShallowRef<any>;
|
|
167
|
+
setOption: (option: Option, updateOptions?: UpdateOptions) => void;
|
|
168
|
+
nonEventAttrs: import("vue").ComputedRef<{
|
|
169
|
+
[x: string]: any;
|
|
170
|
+
}>;
|
|
171
|
+
nativeListeners: Record<string, unknown>;
|
|
172
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
173
|
+
click: (params: import("echarts/core").ECElementEvent) => boolean;
|
|
174
|
+
dblclick: (params: import("echarts/core").ECElementEvent) => boolean;
|
|
175
|
+
mouseout: (params: import("echarts/core").ECElementEvent) => boolean;
|
|
176
|
+
mouseover: (params: import("echarts/core").ECElementEvent) => boolean;
|
|
177
|
+
mouseup: (params: import("echarts/core").ECElementEvent) => boolean;
|
|
178
|
+
mousedown: (params: import("echarts/core").ECElementEvent) => boolean;
|
|
179
|
+
mousemove: (params: import("echarts/core").ECElementEvent) => boolean;
|
|
180
|
+
contextmenu: (params: import("echarts/core").ECElementEvent) => boolean;
|
|
181
|
+
globalout: (params: import("echarts/core").ECElementEvent) => boolean;
|
|
182
|
+
} & {
|
|
183
|
+
highlight: null;
|
|
184
|
+
downplay: null;
|
|
185
|
+
selectchanged: null;
|
|
186
|
+
legendselectchanged: null;
|
|
187
|
+
legendselected: null;
|
|
188
|
+
legendunselected: null;
|
|
189
|
+
legendselectall: null;
|
|
190
|
+
legendinverseselect: null;
|
|
191
|
+
legendscroll: null;
|
|
192
|
+
datazoom: null;
|
|
193
|
+
datarangeselected: null;
|
|
194
|
+
graphroam: null;
|
|
195
|
+
georoam: null;
|
|
196
|
+
treeroam: null;
|
|
197
|
+
timelinechanged: null;
|
|
198
|
+
timelineplaychanged: null;
|
|
199
|
+
restore: null;
|
|
200
|
+
dataviewchanged: null;
|
|
201
|
+
magictypechanged: null;
|
|
202
|
+
geoselectchanged: null;
|
|
203
|
+
geoselected: null;
|
|
204
|
+
geounselected: null;
|
|
205
|
+
axisareaselected: null;
|
|
206
|
+
brush: null;
|
|
207
|
+
brushEnd: null;
|
|
208
|
+
brushselected: null;
|
|
209
|
+
globalcursortaken: null;
|
|
210
|
+
} & {
|
|
211
|
+
rendered: (params: {
|
|
212
|
+
elapsedTime: number;
|
|
213
|
+
}) => boolean;
|
|
214
|
+
finished: () => boolean;
|
|
215
|
+
} & {
|
|
216
|
+
"zr:mousewheel": (params: import("echarts/core").ElementEvent) => boolean;
|
|
217
|
+
"zr:drag": (params: import("echarts/core").ElementEvent) => boolean;
|
|
218
|
+
"zr:dragstart": (params: import("echarts/core").ElementEvent) => boolean;
|
|
219
|
+
"zr:dragend": (params: import("echarts/core").ElementEvent) => boolean;
|
|
220
|
+
"zr:dragenter": (params: import("echarts/core").ElementEvent) => boolean;
|
|
221
|
+
"zr:dragleave": (params: import("echarts/core").ElementEvent) => boolean;
|
|
222
|
+
"zr:dragover": (params: import("echarts/core").ElementEvent) => boolean;
|
|
223
|
+
"zr:drop": (params: import("echarts/core").ElementEvent) => boolean;
|
|
224
|
+
"zr:click": (params: import("echarts/core").ElementEvent) => boolean;
|
|
225
|
+
"zr:dblclick": (params: import("echarts/core").ElementEvent) => boolean;
|
|
226
|
+
"zr:mouseout": (params: import("echarts/core").ElementEvent) => boolean;
|
|
227
|
+
"zr:mouseover": (params: import("echarts/core").ElementEvent) => boolean;
|
|
228
|
+
"zr:mouseup": (params: import("echarts/core").ElementEvent) => boolean;
|
|
229
|
+
"zr:mousedown": (params: import("echarts/core").ElementEvent) => boolean;
|
|
230
|
+
"zr:mousemove": (params: import("echarts/core").ElementEvent) => boolean;
|
|
231
|
+
"zr:contextmenu": (params: import("echarts/core").ElementEvent) => boolean;
|
|
232
|
+
"zr:globalout": (params: import("echarts/core").ElementEvent) => boolean;
|
|
233
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
234
|
+
loading: BooleanConstructor;
|
|
235
|
+
loadingOptions: PropType<import("../types").LoadingOptions>;
|
|
236
|
+
autoresize: PropType<boolean | {
|
|
237
|
+
throttle?: number | undefined;
|
|
238
|
+
onResize?: (() => void) | undefined;
|
|
239
|
+
}>;
|
|
240
|
+
option: PropType<import("echarts/core").EChartsCoreOption>;
|
|
241
|
+
theme: {
|
|
242
|
+
type: PropType<Theme>;
|
|
243
|
+
};
|
|
244
|
+
initOptions: PropType<import("echarts/core").EChartsInitOpts>;
|
|
245
|
+
updateOptions: PropType<import("echarts/core").SetOptionOpts>;
|
|
246
|
+
group: StringConstructor;
|
|
247
|
+
manualUpdate: BooleanConstructor;
|
|
248
|
+
}>> & {
|
|
249
|
+
onClick?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
250
|
+
onDblclick?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
251
|
+
onMouseout?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
252
|
+
onMouseover?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
253
|
+
onMouseup?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
254
|
+
onMousedown?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
255
|
+
onMousemove?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
256
|
+
onContextmenu?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
257
|
+
onGlobalout?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
258
|
+
"onZr:mousewheel"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
259
|
+
"onZr:drag"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
260
|
+
"onZr:dragstart"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
261
|
+
"onZr:dragend"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
262
|
+
"onZr:dragenter"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
263
|
+
"onZr:dragleave"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
264
|
+
"onZr:dragover"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
265
|
+
"onZr:drop"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
266
|
+
"onZr:click"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
267
|
+
"onZr:dblclick"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
268
|
+
"onZr:mouseout"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
269
|
+
"onZr:mouseover"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
270
|
+
"onZr:mouseup"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
271
|
+
"onZr:mousedown"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
272
|
+
"onZr:mousemove"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
273
|
+
"onZr:contextmenu"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
274
|
+
"onZr:globalout"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
275
|
+
onHighlight?: ((...args: any[]) => any) | undefined;
|
|
276
|
+
onDownplay?: ((...args: any[]) => any) | undefined;
|
|
277
|
+
onSelectchanged?: ((...args: any[]) => any) | undefined;
|
|
278
|
+
onLegendselectchanged?: ((...args: any[]) => any) | undefined;
|
|
279
|
+
onLegendselected?: ((...args: any[]) => any) | undefined;
|
|
280
|
+
onLegendunselected?: ((...args: any[]) => any) | undefined;
|
|
281
|
+
onLegendselectall?: ((...args: any[]) => any) | undefined;
|
|
282
|
+
onLegendinverseselect?: ((...args: any[]) => any) | undefined;
|
|
283
|
+
onLegendscroll?: ((...args: any[]) => any) | undefined;
|
|
284
|
+
onDatazoom?: ((...args: any[]) => any) | undefined;
|
|
285
|
+
onDatarangeselected?: ((...args: any[]) => any) | undefined;
|
|
286
|
+
onGraphroam?: ((...args: any[]) => any) | undefined;
|
|
287
|
+
onGeoroam?: ((...args: any[]) => any) | undefined;
|
|
288
|
+
onTreeroam?: ((...args: any[]) => any) | undefined;
|
|
289
|
+
onTimelinechanged?: ((...args: any[]) => any) | undefined;
|
|
290
|
+
onTimelineplaychanged?: ((...args: any[]) => any) | undefined;
|
|
291
|
+
onRestore?: ((...args: any[]) => any) | undefined;
|
|
292
|
+
onDataviewchanged?: ((...args: any[]) => any) | undefined;
|
|
293
|
+
onMagictypechanged?: ((...args: any[]) => any) | undefined;
|
|
294
|
+
onGeoselectchanged?: ((...args: any[]) => any) | undefined;
|
|
295
|
+
onGeoselected?: ((...args: any[]) => any) | undefined;
|
|
296
|
+
onGeounselected?: ((...args: any[]) => any) | undefined;
|
|
297
|
+
onAxisareaselected?: ((...args: any[]) => any) | undefined;
|
|
298
|
+
onBrush?: ((...args: any[]) => any) | undefined;
|
|
299
|
+
onBrushEnd?: ((...args: any[]) => any) | undefined;
|
|
300
|
+
onBrushselected?: ((...args: any[]) => any) | undefined;
|
|
301
|
+
onGlobalcursortaken?: ((...args: any[]) => any) | undefined;
|
|
302
|
+
onRendered?: ((params: {
|
|
303
|
+
elapsedTime: number;
|
|
304
|
+
}) => any) | undefined;
|
|
305
|
+
onFinished?: (() => any) | undefined;
|
|
306
|
+
}, {
|
|
307
|
+
manualUpdate: boolean;
|
|
308
|
+
loading: boolean;
|
|
309
|
+
}, {}>;
|
|
310
|
+
export default _default;
|