echarts-for-react 3.0.5 → 3.0.7
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/esm/core.d.ts +9 -1
- package/esm/core.js +20 -14
- package/esm/core.js.map +1 -1
- package/lib/core.d.ts +9 -1
- package/lib/core.js +20 -14
- package/lib/core.js.map +1 -1
- package/package.json +4 -1
- package/src/.umi/core/devScripts.ts +53 -0
- package/src/.umi/core/history.ts +21 -0
- package/src/.umi/core/plugin.ts +8 -0
- package/src/.umi/core/pluginConfig.d.ts +300 -0
- package/src/.umi/core/pluginRegister.ts +5 -0
- package/src/.umi/core/polyfill.ts +4 -0
- package/src/.umi/core/routes.ts +389 -0
- package/src/.umi/core/umiExports.ts +3 -0
- package/src/.umi/dumi/apis.json +1 -0
- package/src/.umi/dumi/config.json +129 -0
- package/src/.umi/dumi/demos/index.ts +5469 -0
- package/src/.umi/dumi/layout.tsx +8 -0
- package/src/.umi/umi.ts +58 -0
- package/src/.umi-production/core/history.ts +21 -0
- package/src/.umi-production/core/plugin.ts +8 -0
- package/src/.umi-production/core/pluginConfig.d.ts +300 -0
- package/src/.umi-production/core/pluginRegister.ts +5 -0
- package/src/.umi-production/core/polyfill.ts +4 -0
- package/src/.umi-production/core/routes.ts +389 -0
- package/src/.umi-production/core/umiExports.ts +3 -0
- package/src/.umi-production/dumi/apis.json +1 -0
- package/src/.umi-production/dumi/config.json +129 -0
- package/src/.umi-production/dumi/demos/index.ts +5469 -0
- package/src/.umi-production/dumi/layout.tsx +8 -0
- package/src/.umi-production/umi.ts +58 -0
- package/src/core.tsx +26 -13
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
// Created by Umi Plugin
|
|
2
|
+
|
|
3
|
+
export interface IConfigFromPlugins {
|
|
4
|
+
"404"?: boolean
|
|
5
|
+
routes?: {
|
|
6
|
+
/**
|
|
7
|
+
* Any valid URL path
|
|
8
|
+
*/
|
|
9
|
+
path?: string
|
|
10
|
+
/**
|
|
11
|
+
* A React component to render only when the location matches.
|
|
12
|
+
*/
|
|
13
|
+
component?: (string | (() => any))
|
|
14
|
+
wrappers?: string[]
|
|
15
|
+
/**
|
|
16
|
+
* navigate to a new location
|
|
17
|
+
*/
|
|
18
|
+
redirect?: string
|
|
19
|
+
/**
|
|
20
|
+
* When true, the active class/style will only be applied if the location is matched exactly.
|
|
21
|
+
*/
|
|
22
|
+
exact?: boolean
|
|
23
|
+
routes?: any[]
|
|
24
|
+
[k: string]: any
|
|
25
|
+
}[]
|
|
26
|
+
history?: {
|
|
27
|
+
type?: ("browser" | "hash" | "memory")
|
|
28
|
+
options?: {
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
polyfill?: {
|
|
33
|
+
imports?: string[]
|
|
34
|
+
}
|
|
35
|
+
alias?: {
|
|
36
|
+
|
|
37
|
+
}
|
|
38
|
+
analyze?: {
|
|
39
|
+
analyzerMode?: ("server" | "static" | "disabled")
|
|
40
|
+
analyzerHost?: string
|
|
41
|
+
analyzerPort?: any
|
|
42
|
+
openAnalyzer?: boolean
|
|
43
|
+
generateStatsFile?: boolean
|
|
44
|
+
statsFilename?: string
|
|
45
|
+
logLevel?: ("info" | "warn" | "error" | "silent")
|
|
46
|
+
defaultSizes?: ("stat" | "parsed" | "gzip")
|
|
47
|
+
[k: string]: any
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* postcss autoprefixer, default flexbox: no-2009
|
|
51
|
+
*/
|
|
52
|
+
autoprefixer?: {
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
base?: string
|
|
56
|
+
chainWebpack?: (() => any)
|
|
57
|
+
chunks?: string[]
|
|
58
|
+
/**
|
|
59
|
+
* more css-loader options see https://webpack.js.org/loaders/css-loader/#options
|
|
60
|
+
*/
|
|
61
|
+
cssLoader?: {
|
|
62
|
+
url?: (boolean | (() => any))
|
|
63
|
+
import?: (boolean | (() => any))
|
|
64
|
+
modules?: (boolean | string | {
|
|
65
|
+
|
|
66
|
+
})
|
|
67
|
+
sourceMap?: boolean
|
|
68
|
+
importLoaders?: number
|
|
69
|
+
onlyLocals?: boolean
|
|
70
|
+
esModule?: boolean
|
|
71
|
+
localsConvention?: ("asIs" | "camelCase" | "camelCaseOnly" | "dashes" | "dashesOnly")
|
|
72
|
+
}
|
|
73
|
+
cssModulesTypescriptLoader?: {
|
|
74
|
+
mode?: ("emit" | "verify")
|
|
75
|
+
}
|
|
76
|
+
cssnano?: {
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
copy?: any[]
|
|
80
|
+
define?: {
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
devScripts?: {
|
|
84
|
+
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* devServer configs
|
|
88
|
+
*/
|
|
89
|
+
devServer?: {
|
|
90
|
+
/**
|
|
91
|
+
* devServer port, default 8000
|
|
92
|
+
*/
|
|
93
|
+
port?: number
|
|
94
|
+
host?: string
|
|
95
|
+
https?: ({
|
|
96
|
+
key?: string
|
|
97
|
+
cert?: string
|
|
98
|
+
http2?: boolean
|
|
99
|
+
[k: string]: any
|
|
100
|
+
} | boolean)
|
|
101
|
+
headers?: {
|
|
102
|
+
|
|
103
|
+
}
|
|
104
|
+
writeToDisk?: (boolean | (() => any))
|
|
105
|
+
[k: string]: any
|
|
106
|
+
}
|
|
107
|
+
devtool?: string
|
|
108
|
+
/**
|
|
109
|
+
* Code splitting for performance optimization
|
|
110
|
+
*/
|
|
111
|
+
dynamicImport?: {
|
|
112
|
+
/**
|
|
113
|
+
* loading the component before loaded
|
|
114
|
+
*/
|
|
115
|
+
loading?: string
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Code splitting for import statement syntax
|
|
119
|
+
*/
|
|
120
|
+
dynamicImportSyntax?: {
|
|
121
|
+
|
|
122
|
+
}
|
|
123
|
+
exportStatic?: {
|
|
124
|
+
htmlSuffix?: boolean
|
|
125
|
+
dynamicRoot?: boolean
|
|
126
|
+
supportWin?: boolean
|
|
127
|
+
/**
|
|
128
|
+
* extra render paths only enable in ssr
|
|
129
|
+
*/
|
|
130
|
+
extraRoutePaths?: (() => any)
|
|
131
|
+
}
|
|
132
|
+
externals?: ({
|
|
133
|
+
|
|
134
|
+
} | string | (() => any))
|
|
135
|
+
extraBabelIncludes?: any[]
|
|
136
|
+
extraBabelPlugins?: any[]
|
|
137
|
+
extraBabelPresets?: any[]
|
|
138
|
+
extraPostCSSPlugins?: any[]
|
|
139
|
+
/**
|
|
140
|
+
* fork-ts-checker-webpack-plugin options see https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#options
|
|
141
|
+
*/
|
|
142
|
+
forkTSChecker?: {
|
|
143
|
+
async?: boolean
|
|
144
|
+
typescript?: (boolean | {
|
|
145
|
+
|
|
146
|
+
})
|
|
147
|
+
eslint?: {
|
|
148
|
+
|
|
149
|
+
}
|
|
150
|
+
issue?: {
|
|
151
|
+
|
|
152
|
+
}
|
|
153
|
+
formatter?: (string | {
|
|
154
|
+
|
|
155
|
+
})
|
|
156
|
+
logger?: {
|
|
157
|
+
|
|
158
|
+
}
|
|
159
|
+
[k: string]: any
|
|
160
|
+
}
|
|
161
|
+
fastRefresh?: {
|
|
162
|
+
|
|
163
|
+
}
|
|
164
|
+
hash?: boolean
|
|
165
|
+
ignoreMomentLocale?: boolean
|
|
166
|
+
inlineLimit?: number
|
|
167
|
+
lessLoader?: {
|
|
168
|
+
|
|
169
|
+
}
|
|
170
|
+
manifest?: {
|
|
171
|
+
fileName?: string
|
|
172
|
+
publicPath?: ""
|
|
173
|
+
basePath?: string
|
|
174
|
+
writeToFileEmit?: boolean
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* open mfsu feature
|
|
178
|
+
*/
|
|
179
|
+
mfsu?: {
|
|
180
|
+
development?: {
|
|
181
|
+
output?: string
|
|
182
|
+
}
|
|
183
|
+
production?: {
|
|
184
|
+
output?: string
|
|
185
|
+
}
|
|
186
|
+
mfName?: string
|
|
187
|
+
exportAllMembers?: {
|
|
188
|
+
|
|
189
|
+
}
|
|
190
|
+
chunks?: string[]
|
|
191
|
+
ignoreNodeBuiltInModules?: boolean
|
|
192
|
+
}
|
|
193
|
+
mountElementId?: ""
|
|
194
|
+
mpa?: {
|
|
195
|
+
|
|
196
|
+
}
|
|
197
|
+
nodeModulesTransform?: {
|
|
198
|
+
type?: ("all" | "none")
|
|
199
|
+
exclude?: string[]
|
|
200
|
+
}
|
|
201
|
+
outputPath?: ""
|
|
202
|
+
plugins?: string[]
|
|
203
|
+
postcssLoader?: {
|
|
204
|
+
|
|
205
|
+
}
|
|
206
|
+
presets?: string[]
|
|
207
|
+
proxy?: {
|
|
208
|
+
|
|
209
|
+
}
|
|
210
|
+
publicPath?: string
|
|
211
|
+
runtimePublicPath?: boolean
|
|
212
|
+
ssr?: {
|
|
213
|
+
/**
|
|
214
|
+
* force execing Page getInitialProps functions
|
|
215
|
+
*/
|
|
216
|
+
forceInitial?: boolean
|
|
217
|
+
/**
|
|
218
|
+
* remove window.g_initialProps in html
|
|
219
|
+
*/
|
|
220
|
+
removeWindowInitialProps?: boolean
|
|
221
|
+
/**
|
|
222
|
+
* disable serve-side render in umi dev mode.
|
|
223
|
+
*/
|
|
224
|
+
devServerRender?: boolean
|
|
225
|
+
mode?: ("stream" | "string")
|
|
226
|
+
/**
|
|
227
|
+
* static markup in static site
|
|
228
|
+
*/
|
|
229
|
+
staticMarkup?: boolean
|
|
230
|
+
}
|
|
231
|
+
singular?: boolean
|
|
232
|
+
styleLoader?: {
|
|
233
|
+
|
|
234
|
+
}
|
|
235
|
+
targets?: {
|
|
236
|
+
|
|
237
|
+
}
|
|
238
|
+
terserOptions?: {
|
|
239
|
+
|
|
240
|
+
}
|
|
241
|
+
theme?: {
|
|
242
|
+
|
|
243
|
+
}
|
|
244
|
+
runtimeHistory?: {
|
|
245
|
+
|
|
246
|
+
}
|
|
247
|
+
webpack5?: {
|
|
248
|
+
lazyCompilation?: {
|
|
249
|
+
entries?: boolean
|
|
250
|
+
imports?: boolean
|
|
251
|
+
test?: any
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
workerLoader?: {
|
|
255
|
+
|
|
256
|
+
}
|
|
257
|
+
favicon?: string
|
|
258
|
+
headScripts?: any[]
|
|
259
|
+
links?: any[]
|
|
260
|
+
metas?: any[]
|
|
261
|
+
scripts?: any[]
|
|
262
|
+
styles?: any[]
|
|
263
|
+
title?: string
|
|
264
|
+
mock?: {
|
|
265
|
+
exclude?: string[]
|
|
266
|
+
}
|
|
267
|
+
themeConfig?: {
|
|
268
|
+
|
|
269
|
+
}
|
|
270
|
+
logo?: (string | boolean)
|
|
271
|
+
mode?: any
|
|
272
|
+
description?: string
|
|
273
|
+
locales?: string[][]
|
|
274
|
+
resolve?: {
|
|
275
|
+
|
|
276
|
+
}
|
|
277
|
+
menus?: {
|
|
278
|
+
|
|
279
|
+
}
|
|
280
|
+
navs?: (any[] | {
|
|
281
|
+
|
|
282
|
+
})
|
|
283
|
+
algolia?: {
|
|
284
|
+
appId?: string
|
|
285
|
+
apiKey?: string
|
|
286
|
+
indexName?: string
|
|
287
|
+
debug?: boolean
|
|
288
|
+
}
|
|
289
|
+
sitemap?: {
|
|
290
|
+
hostname?: string
|
|
291
|
+
excludes?: string[]
|
|
292
|
+
}
|
|
293
|
+
apiParser?: {
|
|
294
|
+
|
|
295
|
+
}
|
|
296
|
+
analytics?: {
|
|
297
|
+
|
|
298
|
+
}
|
|
299
|
+
[k: string]: any
|
|
300
|
+
}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ApplyPluginsType } from '/Users/xiaowei/Documents/code/antv/echarts-for-react/node_modules/_@umijs_runtime@3.5.43@@umijs/runtime';
|
|
4
|
+
import * as umiExports from './umiExports';
|
|
5
|
+
import { plugin } from './plugin';
|
|
6
|
+
|
|
7
|
+
export function getRoutes() {
|
|
8
|
+
const routes = [
|
|
9
|
+
{
|
|
10
|
+
"path": "/~demos/:uuid",
|
|
11
|
+
"layout": false,
|
|
12
|
+
"wrappers": [require('../dumi/layout').default],
|
|
13
|
+
"component": ((props) => {
|
|
14
|
+
const React = require('react');
|
|
15
|
+
const { default: getDemoRenderArgs } = require('/Users/xiaowei/Documents/code/antv/echarts-for-react/node_modules/_@umijs_preset-dumi@1.1.54@@umijs/preset-dumi/lib/plugins/features/demo/getDemoRenderArgs');
|
|
16
|
+
const { default: Previewer } = require('dumi-theme-default/es/builtins/Previewer.js');
|
|
17
|
+
const { usePrefersColor, context } = require('dumi/theme');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
const { demos } = React.useContext(context);
|
|
21
|
+
const [renderArgs, setRenderArgs] = React.useState([]);
|
|
22
|
+
|
|
23
|
+
// update render args when props changed
|
|
24
|
+
React.useLayoutEffect(() => {
|
|
25
|
+
setRenderArgs(getDemoRenderArgs(props, demos));
|
|
26
|
+
}, [props.match.params.uuid, props.location.query.wrapper, props.location.query.capture]);
|
|
27
|
+
|
|
28
|
+
// for listen prefers-color-schema media change in demo single route
|
|
29
|
+
usePrefersColor();
|
|
30
|
+
|
|
31
|
+
switch (renderArgs.length) {
|
|
32
|
+
case 1:
|
|
33
|
+
// render demo directly
|
|
34
|
+
return renderArgs[0];
|
|
35
|
+
|
|
36
|
+
case 2:
|
|
37
|
+
// render demo with previewer
|
|
38
|
+
return React.createElement(
|
|
39
|
+
Previewer,
|
|
40
|
+
renderArgs[0],
|
|
41
|
+
renderArgs[1],
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
default:
|
|
45
|
+
return `Demo ${props.match.params.uuid} not found :(`;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
})
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "/_demos/:uuid",
|
|
52
|
+
"redirect": "/~demos/:uuid"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"__dumiRoot": true,
|
|
56
|
+
"layout": false,
|
|
57
|
+
"path": "/",
|
|
58
|
+
"wrappers": [require('../dumi/layout').default, require('/Users/xiaowei/Documents/code/antv/echarts-for-react/node_modules/_dumi-theme-default@1.1.24@dumi-theme-default/es/layout.js').default],
|
|
59
|
+
"routes": [
|
|
60
|
+
{
|
|
61
|
+
"path": "/",
|
|
62
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/index.md').default,
|
|
63
|
+
"exact": true,
|
|
64
|
+
"meta": {
|
|
65
|
+
"filePath": "docs/index.md",
|
|
66
|
+
"updatedTime": 1612940513000,
|
|
67
|
+
"title": "ECharts for React - 全网开发者下载量最高的 ECharts 的 React 组件封装",
|
|
68
|
+
"order": 1,
|
|
69
|
+
"hero": {
|
|
70
|
+
"title": "ECharts for React",
|
|
71
|
+
"desc": "<div class=\"markdown\"><p>全网开发者下载量最高的 ECharts 的 React 组件封装</p></div>",
|
|
72
|
+
"actions": [
|
|
73
|
+
{
|
|
74
|
+
"text": "在线实例",
|
|
75
|
+
"link": "/examples/dynamic"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"text": "开源地址",
|
|
79
|
+
"link": "https://github.com/hustcc/echarts-for-react"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"footer": "<div class=\"markdown\"><p>Open-source MIT Licensed | Copyright © 2021-present</p></div>",
|
|
84
|
+
"slugs": [
|
|
85
|
+
{
|
|
86
|
+
"depth": 2,
|
|
87
|
+
"value": "安装",
|
|
88
|
+
"heading": "安装"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"depth": 2,
|
|
92
|
+
"value": "使用",
|
|
93
|
+
"heading": "使用"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"depth": 2,
|
|
97
|
+
"value": "反馈",
|
|
98
|
+
"heading": "反馈"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"hasPreviewer": true
|
|
102
|
+
},
|
|
103
|
+
"title": "ECharts for React - 全网开发者下载量最高的 ECharts 的 React 组件封装 - \b"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"path": "/examples/api",
|
|
107
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/examples/api.md').default,
|
|
108
|
+
"exact": true,
|
|
109
|
+
"meta": {
|
|
110
|
+
"filePath": "docs/examples/api.md",
|
|
111
|
+
"updatedTime": 1612692239000,
|
|
112
|
+
"title": "ECharts API",
|
|
113
|
+
"order": 2,
|
|
114
|
+
"slugs": [
|
|
115
|
+
{
|
|
116
|
+
"depth": 2,
|
|
117
|
+
"value": "ECharts API",
|
|
118
|
+
"heading": "echarts-api"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"hasPreviewer": true,
|
|
122
|
+
"nav": {
|
|
123
|
+
"path": "/examples",
|
|
124
|
+
"title": "Examples"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"title": "ECharts API - \b"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"path": "/examples/dynamic",
|
|
131
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/examples/dynamic.md').default,
|
|
132
|
+
"exact": true,
|
|
133
|
+
"meta": {
|
|
134
|
+
"filePath": "docs/examples/dynamic.md",
|
|
135
|
+
"updatedTime": 1754666951000,
|
|
136
|
+
"title": "Dynamic",
|
|
137
|
+
"order": 6,
|
|
138
|
+
"slugs": [
|
|
139
|
+
{
|
|
140
|
+
"depth": 2,
|
|
141
|
+
"value": "Dynamic",
|
|
142
|
+
"heading": "dynamic"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"hasPreviewer": true,
|
|
146
|
+
"nav": {
|
|
147
|
+
"path": "/examples",
|
|
148
|
+
"title": "Examples"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"title": "Dynamic - \b"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"path": "/examples/event",
|
|
155
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/examples/event.md').default,
|
|
156
|
+
"exact": true,
|
|
157
|
+
"meta": {
|
|
158
|
+
"filePath": "docs/examples/event.md",
|
|
159
|
+
"updatedTime": 1612692239000,
|
|
160
|
+
"title": "Event",
|
|
161
|
+
"order": 4,
|
|
162
|
+
"slugs": [
|
|
163
|
+
{
|
|
164
|
+
"depth": 2,
|
|
165
|
+
"value": "Event",
|
|
166
|
+
"heading": "event"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"hasPreviewer": true,
|
|
170
|
+
"nav": {
|
|
171
|
+
"path": "/examples",
|
|
172
|
+
"title": "Examples"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"title": "Event - \b"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"path": "/examples/gl",
|
|
179
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/examples/gl.md').default,
|
|
180
|
+
"exact": true,
|
|
181
|
+
"meta": {
|
|
182
|
+
"filePath": "docs/examples/gl.md",
|
|
183
|
+
"updatedTime": 1612692239000,
|
|
184
|
+
"title": "Web GL",
|
|
185
|
+
"order": 7,
|
|
186
|
+
"slugs": [
|
|
187
|
+
{
|
|
188
|
+
"depth": 2,
|
|
189
|
+
"value": "Web GL",
|
|
190
|
+
"heading": "web-gl"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"hasPreviewer": true,
|
|
194
|
+
"nav": {
|
|
195
|
+
"path": "/examples",
|
|
196
|
+
"title": "Examples"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"title": "Web GL - \b"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"path": "/examples/graph",
|
|
203
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/examples/graph.md').default,
|
|
204
|
+
"exact": true,
|
|
205
|
+
"meta": {
|
|
206
|
+
"filePath": "docs/examples/graph.md",
|
|
207
|
+
"updatedTime": 1612692239000,
|
|
208
|
+
"title": "Graph",
|
|
209
|
+
"order": 9,
|
|
210
|
+
"slugs": [
|
|
211
|
+
{
|
|
212
|
+
"depth": 2,
|
|
213
|
+
"value": "Graph",
|
|
214
|
+
"heading": "graph"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"hasPreviewer": true,
|
|
218
|
+
"nav": {
|
|
219
|
+
"path": "/examples",
|
|
220
|
+
"title": "Examples"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"title": "Graph - \b"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"path": "/examples/html-props",
|
|
227
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/examples/html-props.md').default,
|
|
228
|
+
"exact": true,
|
|
229
|
+
"meta": {
|
|
230
|
+
"filePath": "docs/examples/html-props.md",
|
|
231
|
+
"updatedTime": 1762393912000,
|
|
232
|
+
"title": "HTML Properties",
|
|
233
|
+
"order": 10,
|
|
234
|
+
"slugs": [
|
|
235
|
+
{
|
|
236
|
+
"depth": 2,
|
|
237
|
+
"value": "HTML Properties",
|
|
238
|
+
"heading": "html-properties"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"hasPreviewer": true,
|
|
242
|
+
"nav": {
|
|
243
|
+
"path": "/examples",
|
|
244
|
+
"title": "Examples"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"title": "HTML Properties - \b"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"path": "/examples/loading",
|
|
251
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/examples/loading.md').default,
|
|
252
|
+
"exact": true,
|
|
253
|
+
"meta": {
|
|
254
|
+
"filePath": "docs/examples/loading.md",
|
|
255
|
+
"updatedTime": 1612692239000,
|
|
256
|
+
"title": "Loading",
|
|
257
|
+
"order": 5,
|
|
258
|
+
"slugs": [
|
|
259
|
+
{
|
|
260
|
+
"depth": 2,
|
|
261
|
+
"value": "Loading",
|
|
262
|
+
"heading": "loading"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"hasPreviewer": true,
|
|
266
|
+
"nav": {
|
|
267
|
+
"path": "/examples",
|
|
268
|
+
"title": "Examples"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"title": "Loading - \b"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"path": "/examples/locale",
|
|
275
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/examples/locale.md').default,
|
|
276
|
+
"exact": true,
|
|
277
|
+
"meta": {
|
|
278
|
+
"filePath": "docs/examples/locale.md",
|
|
279
|
+
"updatedTime": 1614248129000,
|
|
280
|
+
"title": "Locale",
|
|
281
|
+
"order": 8,
|
|
282
|
+
"slugs": [
|
|
283
|
+
{
|
|
284
|
+
"depth": 2,
|
|
285
|
+
"value": "Locale",
|
|
286
|
+
"heading": "locale"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"hasPreviewer": true,
|
|
290
|
+
"nav": {
|
|
291
|
+
"path": "/examples",
|
|
292
|
+
"title": "Examples"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"title": "Locale - \b"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"path": "/examples/simple",
|
|
299
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/examples/simple.md').default,
|
|
300
|
+
"exact": true,
|
|
301
|
+
"meta": {
|
|
302
|
+
"filePath": "docs/examples/simple.md",
|
|
303
|
+
"updatedTime": 1754666951000,
|
|
304
|
+
"title": "Simple",
|
|
305
|
+
"order": 1,
|
|
306
|
+
"slugs": [
|
|
307
|
+
{
|
|
308
|
+
"depth": 2,
|
|
309
|
+
"value": "简单堆积面积图",
|
|
310
|
+
"heading": "简单堆积面积图"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"hasPreviewer": true,
|
|
314
|
+
"nav": {
|
|
315
|
+
"path": "/examples",
|
|
316
|
+
"title": "Examples"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"title": "Simple - \b"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"path": "/examples/svg",
|
|
323
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/examples/svg.md').default,
|
|
324
|
+
"exact": true,
|
|
325
|
+
"meta": {
|
|
326
|
+
"filePath": "docs/examples/svg.md",
|
|
327
|
+
"updatedTime": 1612692239000,
|
|
328
|
+
"title": "SVG",
|
|
329
|
+
"order": 8,
|
|
330
|
+
"slugs": [
|
|
331
|
+
{
|
|
332
|
+
"depth": 2,
|
|
333
|
+
"value": "SVG",
|
|
334
|
+
"heading": "svg"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"hasPreviewer": true,
|
|
338
|
+
"nav": {
|
|
339
|
+
"path": "/examples",
|
|
340
|
+
"title": "Examples"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"title": "SVG - \b"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"path": "/examples/theme",
|
|
347
|
+
"component": require('/Users/xiaowei/Documents/code/antv/echarts-for-react/docs/examples/theme.md').default,
|
|
348
|
+
"exact": true,
|
|
349
|
+
"meta": {
|
|
350
|
+
"filePath": "docs/examples/theme.md",
|
|
351
|
+
"updatedTime": 1754666951000,
|
|
352
|
+
"title": "Theme",
|
|
353
|
+
"order": 3,
|
|
354
|
+
"slugs": [
|
|
355
|
+
{
|
|
356
|
+
"depth": 2,
|
|
357
|
+
"value": "Theme",
|
|
358
|
+
"heading": "theme"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"hasPreviewer": true,
|
|
362
|
+
"nav": {
|
|
363
|
+
"path": "/examples",
|
|
364
|
+
"title": "Examples"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"title": "Theme - \b"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"path": "/examples",
|
|
371
|
+
"meta": {},
|
|
372
|
+
"exact": true,
|
|
373
|
+
"redirect": "/examples/simple"
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"title": "\b",
|
|
377
|
+
"component": (props) => props.children
|
|
378
|
+
}
|
|
379
|
+
];
|
|
380
|
+
|
|
381
|
+
// allow user to extend routes
|
|
382
|
+
plugin.applyPlugins({
|
|
383
|
+
key: 'patchRoutes',
|
|
384
|
+
type: ApplyPluginsType.event,
|
|
385
|
+
args: { routes },
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
return routes;
|
|
389
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|