echarts-for-react 3.0.5 → 3.0.6

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.
@@ -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,3 @@
1
+ // @ts-nocheck
2
+ export { history } from './history';
3
+ export { plugin } from './plugin';
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,129 @@
1
+ {
2
+ "menus": {
3
+ "en-US": {
4
+ "*": [
5
+ {
6
+ "path": "/",
7
+ "title": "ECharts for React - 全网开发者下载量最高的 ECharts 的 React 组件封装",
8
+ "meta": {
9
+ "order": 1
10
+ }
11
+ }
12
+ ],
13
+ "/examples": [
14
+ {
15
+ "path": "/examples/simple",
16
+ "title": "Simple",
17
+ "meta": {
18
+ "order": 1
19
+ }
20
+ },
21
+ {
22
+ "path": "/examples/api",
23
+ "title": "ECharts API",
24
+ "meta": {
25
+ "order": 2
26
+ }
27
+ },
28
+ {
29
+ "path": "/examples/theme",
30
+ "title": "Theme",
31
+ "meta": {
32
+ "order": 3
33
+ }
34
+ },
35
+ {
36
+ "path": "/examples/event",
37
+ "title": "Event",
38
+ "meta": {
39
+ "order": 4
40
+ }
41
+ },
42
+ {
43
+ "path": "/examples/loading",
44
+ "title": "Loading",
45
+ "meta": {
46
+ "order": 5
47
+ }
48
+ },
49
+ {
50
+ "path": "/examples/dynamic",
51
+ "title": "Dynamic",
52
+ "meta": {
53
+ "order": 6
54
+ }
55
+ },
56
+ {
57
+ "path": "/examples/gl",
58
+ "title": "Web GL",
59
+ "meta": {
60
+ "order": 7
61
+ }
62
+ },
63
+ {
64
+ "path": "/examples/locale",
65
+ "title": "Locale",
66
+ "meta": {
67
+ "order": 8
68
+ }
69
+ },
70
+ {
71
+ "path": "/examples/svg",
72
+ "title": "SVG",
73
+ "meta": {
74
+ "order": 8
75
+ }
76
+ },
77
+ {
78
+ "path": "/examples/graph",
79
+ "title": "Graph",
80
+ "meta": {
81
+ "order": 9
82
+ }
83
+ },
84
+ {
85
+ "path": "/examples/html-props",
86
+ "title": "HTML Properties",
87
+ "meta": {
88
+ "order": 10
89
+ }
90
+ }
91
+ ]
92
+ }
93
+ },
94
+ "locales": [
95
+ {
96
+ "name": "en-US",
97
+ "label": "English"
98
+ }
99
+ ],
100
+ "navs": {
101
+ "en-US": [
102
+ {
103
+ "path": "/examples",
104
+ "title": "Examples"
105
+ },
106
+ {
107
+ "title": "G2",
108
+ "path": "https://github.com/antvis/G2"
109
+ },
110
+ {
111
+ "title": "在线文档",
112
+ "path": "https://github.com/hustcc/echarts-for-react"
113
+ },
114
+ {
115
+ "title": "GitHub",
116
+ "path": "https://github.com/hustcc/echarts-for-react"
117
+ }
118
+ ]
119
+ },
120
+ "title": "\b",
121
+ "logo": "https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/zh/images/logo.png?_v_=20200710_1",
122
+ "mode": "site",
123
+ "repository": {
124
+ "url": "https://github.com/hustcc/echarts-for-react",
125
+ "branch": "master"
126
+ },
127
+ "theme": {},
128
+ "exportStatic": {}
129
+ }