We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d63497f commit d80efbdCopy full SHA for d80efbd
src/echarts/addons/Gk0Wk/Function/Function.ts
@@ -22,10 +22,11 @@ const addon: IScriptAddon<void> = {
22
[maxX, minX] = [minX, maxX];
23
}
24
// eslint-disable-next-line @typescript-eslint/no-implied-eval, no-new-func
25
- const func = new Function(
+ const func_ = new Function(
26
'x',
27
`return ${addonAttributes.func};` || 'return x;',
28
);
29
+ const func = (x: number) => Math.max(-9e8, Math.min(9e8, func_(x)));
30
31
// 采样
32
const points = [];
src/echarts/plugin.info
@@ -1,5 +1,5 @@
1
{
2
- "version": "0.2.11",
+ "version": "0.2.12",
3
"type": "application/json",
4
"title": "$:/plugins/Gk0Wk/echarts",
5
"plugin-type": "plugin",
0 commit comments