Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@meta2d/chart-diagram

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meta2d/chart-diagram - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

2

package.json
{
"name": "@meta2d/chart-diagram",
"version": "1.0.11",
"version": "1.0.12",
"description": "The charting library based on le5le meta2d and echarts/highcharts.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,2 +18,4 @@ import { BindId, Pen } from '@meta2d/core';

geoUrl?: string;
diabled?: boolean;
replaceMerge?: string;
};

@@ -20,0 +22,0 @@ calculative?: {

@@ -62,2 +62,3 @@ import { deepClone, deepSetValue, setElemPosition, getter, formatTime, setter, } from '@meta2d/core';

pen.onRenderPenRaw = onRenderPenRaw;
pen.onScale = scale;
}

@@ -193,2 +194,9 @@ if (!pen.calculative.singleton) {

function resize(pen) {
move(pen);
if (!pen.calculative.singleton?.echart) {
return;
}
pen.calculative.singleton.echart.resize();
}
function scale(pen) {
if (!pen.calculative.singleton.echart) {

@@ -207,3 +215,5 @@ return;

return;
pen.calculative.singleton.echart.setOption(updateOption(pen.echarts.option, pen.calculative.canvas.store.data.scale), true);
if (!pen.echarts.diabled) {
pen.calculative.singleton.echart.setOption(updateOption(pen.echarts.option, pen.calculative.canvas.store.data.scale), true);
}
// pen.beforeScale = pen.calculative.canvas.store.data.scale;

@@ -221,3 +231,10 @@ pen.calculative.singleton.echart.resize();

const option = pen.calculative.partialOption.echarts.option;
pen.calculative.singleton.echart.setOption(deepClone(option));
if (pen.echarts?.replaceMerge) {
pen.calculative.singleton.echart.setOption(deepClone(option), {
replaceMerge: pen.echarts.replaceMerge,
});
}
else {
pen.calculative.singleton.echart.setOption(deepClone(option));
}
}

@@ -224,0 +241,0 @@ else {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc