This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-examples.git
The following commit(s) were added to refs/heads/next by this push:
new 47f202a fix loading of some GL examples
47f202a is described below
commit 47f202a8be97545c5199c68c6473b20df2b368df
Author: pissang <[email protected]>
AuthorDate: Fri Jan 8 17:25:15 2021 +0800
fix loading of some GL examples
---
src/data/chart-list-data-gl.js | 8 ++++++--
src/editor/Preview.vue | 3 ++-
src/explore/ExampleCard.vue | 2 +-
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/data/chart-list-data-gl.js b/src/data/chart-list-data-gl.js
index 1f58210..f13e65e 100644
--- a/src/data/chart-list-data-gl.js
+++ b/src/data/chart-list-data-gl.js
@@ -126,7 +126,9 @@ export default [
"flowGL"
],
"id": "global-wind-visualization",
- "tags": [],
+ "tags": [
+ "bmap"
+ ],
"title": "Global wind visualization",
"difficulty": 10
},
@@ -135,7 +137,9 @@ export default [
"flowGL"
],
"id": "global-wind-visualization-2",
- "tags": [],
+ "tags": [
+ "bmap"
+ ],
"title": "Global Wind Visualization 2",
"difficulty": 10
},
diff --git a/src/editor/Preview.vue b/src/editor/Preview.vue
index 10b8d74..eb79c2c 100644
--- a/src/editor/Preview.vue
+++ b/src/editor/Preview.vue
@@ -67,9 +67,10 @@ import {createSandbox} from './sandbox';
import debounce from 'lodash/debounce';
import { addListener, removeListener } from 'resize-detector';
import CHART_LIST from '../data/chart-list-data';
+import CHART_LIST_GL from '../data/chart-list-data-gl';
import {download} from './downloadExample';
-const example = CHART_LIST.find(item => URL_PARAMS.c === item.id);
+const example = CHART_LIST.concat(CHART_LIST_GL).find(item => URL_PARAMS.c ===
item.id);
function addDecalIfNecessary(option) {
if (store.enableDecal) {
diff --git a/src/explore/ExampleCard.vue b/src/explore/ExampleCard.vue
index c6f5bdd..9fa40ea 100644
--- a/src/explore/ExampleCard.vue
+++ b/src/explore/ExampleCard.vue
@@ -39,7 +39,7 @@ export default {
exampleLink() {
const example = this.example;
const hash = ['c=' + example.id];
- const exampleTheme = this.exampleTheme;
+ const exampleTheme = example.theme || this.exampleTheme;
if (example.isGL) {
hash.push('gl=1');
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]