SYNC: chart improvements

This commit is contained in:
SPRINX0\prochazka
2025-07-01 12:58:53 +02:00
committed by Diflow
parent b480151fc3
commit 92a8a4bfa6
2 changed files with 12 additions and 4 deletions

View File

@@ -203,10 +203,10 @@ module.exports = {
},
exportChart_meta: true,
async exportChart({ filePath, title, config, image }) {
async exportChart({ filePath, title, config, image, plugins }) {
const fileName = path.parse(filePath).base;
const imageFile = fileName.replace('.html', '-preview.png');
const html = getChartExport(title, config, imageFile);
const html = getChartExport(title, config, imageFile, plugins);
await fs.writeFile(filePath, html);
if (image) {
const index = image.indexOf('base64,');