mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
This commit is contained in:
parent
acf40dc695
commit
4f68ca55a0
3 changed files with 61 additions and 35 deletions
|
@ -14,7 +14,8 @@ export const chartRender = (element: Element, cdn = Constants.PROTYLE_CDN) => {
|
|||
return;
|
||||
}
|
||||
if (echartsElements.length > 0) {
|
||||
addScript(`${cdn}/js/echarts/echarts.min.js?v=0.0.0`, "protyleEchartsScript").then(() => {
|
||||
addScript(`${cdn}/js/echarts/echarts.min.js?v=5.3.2`, "protyleEchartsScript").then(() => {
|
||||
addScript(`${cdn}/js/echarts/echarts-gl.min.js?v=2.0.9`, "protyleEchartsGLScript").then(() => {
|
||||
let width: number = undefined;
|
||||
if (echartsElements[0].firstElementChild.clientWidth === 0) {
|
||||
const tabElement = hasClosestByClassName(echartsElements[0], "layout-tab-container", true);
|
||||
|
@ -52,5 +53,6 @@ export const chartRender = (element: Element, cdn = Constants.PROTYLE_CDN) => {
|
|||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
1
app/stage/protyle/js/echarts/echarts-gl.min.js
vendored
Normal file
1
app/stage/protyle/js/echarts/echarts-gl.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
25
app/stage/protyle/js/echarts/echarts.min.js
vendored
25
app/stage/protyle/js/echarts/echarts.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue