@meta2d/chart-diagram
Advanced tools
Comparing version 1.0.12 to 1.0.13
{ | ||
"name": "@meta2d/chart-diagram", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "The charting library based on le5le meta2d and echarts/highcharts.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -214,2 +214,13 @@ import { deepClone, deepSetValue, setElemPosition, getter, formatTime, setter, } from '@meta2d/core'; | ||
if (!pen.echarts.diabled) { | ||
if (pen.echarts.option?.dataZoom) { | ||
//用户调整dataZoom后 | ||
const options = pen.calculative.singleton.echart.getOption(); | ||
const dataZoom = options.dataZoom; | ||
pen.echarts.option.dataZoom?.forEach((item, index) => { | ||
if (dataZoom[index]) { | ||
item.start = dataZoom[index].start; | ||
item.end = dataZoom[index].end; | ||
} | ||
}); | ||
} | ||
pen.calculative.singleton.echart.setOption(updateOption(pen.echarts.option, pen.calculative.canvas.store.data.scale), true); | ||
@@ -229,3 +240,4 @@ } | ||
const option = pen.calculative.partialOption.echarts.option; | ||
if (pen.echarts?.replaceMerge) { | ||
let isReplaceMerge = Array.isArray(pen.echarts?.replaceMerge) ? pen.echarts?.replaceMerge.some((key) => option[key]) : false; | ||
if (isReplaceMerge) { | ||
pen.calculative.singleton.echart.setOption(deepClone(option), { | ||
@@ -232,0 +244,0 @@ replaceMerge: pen.echarts.replaceMerge, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
98841
1332
2