@validationcloud/fractal-ui 1.52.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/echarts-renderer/calculate-title-layout.d.ts +8 -0
- package/dist/components/echarts-renderer/calculate-title-layout.test.d.ts +1 -0
- package/dist/components/echarts-renderer/detect-horizontal-bars.d.ts +13 -0
- package/dist/components/echarts-renderer/mavrik-chart.d.ts +19 -0
- package/dist/components/echarts-renderer/mavrik-theme-horizontal.json.d.ts +277 -0
- package/dist/components/echarts-renderer/mavrik-theme.d.ts +242 -0
- package/dist/components/echarts-renderer/mavrik-theme.json.d.ts +6 -2
- package/dist/components/echarts-renderer/sanitize-chart-options.d.ts +6 -0
- package/dist/components/echarts-renderer/use-chart-instance.d.ts +0 -1
- package/dist/components/echarts-renderer/watermark-graphic.d.ts +12 -0
- package/dist/components/select/select.d.ts +23 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +67 -61
- package/dist/lib/render-mavrik-chart-to-image.d.ts +33 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@1_d580df0584800d3ed24dd50bc4bb768c/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_965c21727754e936eeb7d35183788fa0/node_modules/@radix-ui/react-collection/dist/index.js +49 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.6_@types_react-dom@19.2.3_@types_react@19.2.6__@t_c6844451b48448597731ceee2c7ec947/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +128 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.js +18 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_1236dc37c73a65e17034434472fa319b/node_modules/@radix-ui/react-focus-scope/dist/index.js +137 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_875fb0de6110028421a3e7790df757e0/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_5324bcb5f7050b43e9225714ff37edcd/node_modules/@radix-ui/react-portal/dist/index.js +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_87a4386c2964ee4c9c162dadc854f596/node_modules/@radix-ui/react-primitive/dist/index.js +35 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_6ddc7a756051e26689ab8a69ff12c731/node_modules/@radix-ui/react-select/dist/index.js +821 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.0_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js +48 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +32 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.js +8 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_06b3b0029799d875b5a80b38402a9c14/node_modules/@radix-ui/react-visually-hidden/dist/index.js +30 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/server.js +1 -1
- package/dist/src/assets/vc-logo.svg.js +4 -0
- package/dist/src/components/echarts-renderer/calculate-title-layout.js +72 -0
- package/dist/src/components/echarts-renderer/detect-horizontal-bars.js +13 -0
- package/dist/src/components/echarts-renderer/mavrik-chart.js +12 -0
- package/dist/src/components/echarts-renderer/mavrik-theme-horizontal.json.js +33 -0
- package/dist/src/components/echarts-renderer/mavrik-theme.js +23 -0
- package/dist/src/components/echarts-renderer/sanitize-chart-options.js +9 -0
- package/dist/src/components/echarts-renderer/use-chart-instance.js +63 -0
- package/dist/src/components/echarts-renderer/watermark-graphic.js +25 -0
- package/dist/src/components/select/select.js +105 -0
- package/dist/src/lib/render-chart-to-image.js +51 -0
- package/package.json +20 -15
- package/dist/components/echarts-renderer/mavrik-theme.js +0 -11
- package/dist/components/echarts-renderer/use-chart-instance.js +0 -46
- package/dist/lib/render-chart-to-image.js +0 -34
- /package/dist/{assets → src/assets}/animated-loader.svg.js +0 -0
- /package/dist/{assets → src/assets}/default-avatar.svg.js +0 -0
- /package/dist/{assets → src/assets}/not-found.svg.js +0 -0
- /package/dist/{components → src/components}/animated-loader/animated-loader.js +0 -0
- /package/dist/{components → src/components}/badge/badge.js +0 -0
- /package/dist/{components → src/components}/box/box.js +0 -0
- /package/dist/{components → src/components}/button/button.js +0 -0
- /package/dist/{components → src/components}/client-modal/client-modal.js +0 -0
- /package/dist/{components → src/components}/copy-button/copy-button.js +0 -0
- /package/dist/{components → src/components}/decorated-icon/decorated-icon.js +0 -0
- /package/dist/{components → src/components}/dropdown-menu/dropdown-menu.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/echarts-chart-option.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/echarts-renderer.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/echarts-theme-option.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/mavrik-theme.json.js +0 -0
- /package/dist/{components → src/components}/error-boundary/error-boundary.js +0 -0
- /package/dist/{components → src/components}/icon/icon.js +0 -0
- /package/dist/{components → src/components}/icon-button/icon-button.js +0 -0
- /package/dist/{components → src/components}/input-button/input-button.js +0 -0
- /package/dist/{components → src/components}/mount-svg-sprite/mount-svg-sprite.js +0 -0
- /package/dist/{components → src/components}/not-found-component/not-found-component.js +0 -0
- /package/dist/{components → src/components}/page-padding/page-padding.js +0 -0
- /package/dist/{components → src/components}/protocol-logo/protocol-logo.js +0 -0
- /package/dist/{components → src/components}/scroll-area/index.js +0 -0
- /package/dist/{components → src/components}/scroll-area/scroll-area-viewport.js +0 -0
- /package/dist/{components → src/components}/scroll-area/scroll-area.js +0 -0
- /package/dist/{components → src/components}/skeleton/skeleton.js +0 -0
- /package/dist/{components → src/components}/switch/switch.js +0 -0
- /package/dist/{components → src/components}/text-input/text-input.js +0 -0
- /package/dist/{components → src/components}/tooltip/tooltip.js +0 -0
- /package/dist/{components → src/components}/tooltip-provider/tooltip-provider.js +0 -0
- /package/dist/{components → src/components}/touch-target/touch-target.js +0 -0
- /package/dist/{components → src/components}/user-dropdown/user-dropdown.js +0 -0
- /package/dist/{components → src/components}/user-dropdown-mobile/user-dropdown-mobile.js +0 -0
- /package/dist/{hooks → src/hooks}/use-scroll-to-bottom.js +0 -0
- /package/dist/{internal → src/internal}/modal-header.js +0 -0
- /package/dist/{internal → src/internal}/modal.js +0 -0
- /package/dist/{internal → src/internal}/react-portal.js +0 -0
- /package/dist/{internal → src/internal}/round-button.js +0 -0
- /package/dist/{lib → src/lib}/tailwind-merge.js +0 -0
- /package/dist/{utils → src/utils}/disable-password-managers.js +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@validationcloud/fractal-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.54.0",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"url": "https://github.com/validationcloud/fractal-ui/issues"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
+
"prebuild": "pnpm run generate:theme",
|
|
20
21
|
"build": "vite build",
|
|
21
22
|
"lint": "eslint",
|
|
22
23
|
"storybook": "storybook dev -p 6006",
|
|
@@ -25,7 +26,8 @@
|
|
|
25
26
|
"format:check": "prettier --check .",
|
|
26
27
|
"typecheck": "tsc -b --noEmit",
|
|
27
28
|
"test": "vitest run",
|
|
28
|
-
"prepublishOnly": "pnpm build"
|
|
29
|
+
"prepublishOnly": "pnpm build",
|
|
30
|
+
"generate:theme": "node --experimental-transform-types scripts/generate-mavrik-theme.ts"
|
|
29
31
|
},
|
|
30
32
|
"exports": {
|
|
31
33
|
".": {
|
|
@@ -38,11 +40,12 @@
|
|
|
38
40
|
},
|
|
39
41
|
"./tailwind.css": "./dist/styles/tailwind.css"
|
|
40
42
|
},
|
|
41
|
-
"packageManager": "pnpm@10.
|
|
43
|
+
"packageManager": "pnpm@10.25.0",
|
|
42
44
|
"engines": {
|
|
43
45
|
"node": ">=22.14.0"
|
|
44
46
|
},
|
|
45
47
|
"dependencies": {
|
|
48
|
+
"@radix-ui/react-select": "^2.1.7",
|
|
46
49
|
"radix-ui": "^1",
|
|
47
50
|
"react": "^19",
|
|
48
51
|
"react-dom": "^19",
|
|
@@ -51,37 +54,39 @@
|
|
|
51
54
|
"zod": "^4"
|
|
52
55
|
},
|
|
53
56
|
"devDependencies": {
|
|
54
|
-
"@eslint/compat": "^
|
|
57
|
+
"@eslint/compat": "^2.0.0",
|
|
55
58
|
"@eslint/js": "^9.39.1",
|
|
56
|
-
"@storybook/addon-docs": "^10.
|
|
57
|
-
"@storybook/addon-onboarding": "^10.
|
|
58
|
-
"@storybook/react-vite": "^10.
|
|
59
|
+
"@storybook/addon-docs": "^10.1.5",
|
|
60
|
+
"@storybook/addon-onboarding": "^10.1.5",
|
|
61
|
+
"@storybook/react-vite": "^10.1.5",
|
|
59
62
|
"@tailwindcss/postcss": "^4",
|
|
60
63
|
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
|
|
64
|
+
"@types/culori": "^4.0.1",
|
|
61
65
|
"@types/node": "^24",
|
|
62
66
|
"@types/react": "^19",
|
|
63
67
|
"@types/react-dom": "^19",
|
|
64
|
-
"@vitejs/plugin-react": "^5.1.
|
|
68
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
65
69
|
"canvas": "^3.2.0",
|
|
70
|
+
"culori": "^4.0.2",
|
|
66
71
|
"echarts": "^6.0.0",
|
|
67
72
|
"eslint": "^9.39.1",
|
|
68
73
|
"eslint-config-prettier": "^10.1.8",
|
|
69
74
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
70
75
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
71
|
-
"eslint-plugin-storybook": "^10.
|
|
76
|
+
"eslint-plugin-storybook": "^10.1.5",
|
|
72
77
|
"globals": "^16.5.0",
|
|
73
78
|
"postcss": "^8.5.6",
|
|
74
|
-
"prettier": "3.
|
|
75
|
-
"prettier-plugin-tailwindcss": "^0.7.
|
|
79
|
+
"prettier": "3.7.4",
|
|
80
|
+
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
76
81
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
77
82
|
"rollup-plugin-copy": "^3.5.0",
|
|
78
83
|
"rollup-preserve-directives": "^1.1.3",
|
|
79
84
|
"semantic-release": "^25.0.2",
|
|
80
|
-
"storybook": "^10.
|
|
81
|
-
"tailwindcss": "^4.1.
|
|
85
|
+
"storybook": "^10.1.5",
|
|
86
|
+
"tailwindcss": "^4.1.17",
|
|
82
87
|
"typescript": "^5",
|
|
83
|
-
"typescript-eslint": "^8.
|
|
84
|
-
"vite": "^7.
|
|
88
|
+
"typescript-eslint": "^8.49.0",
|
|
89
|
+
"vite": "^7.2.7",
|
|
85
90
|
"vite-plugin-dts": "^4.5.4",
|
|
86
91
|
"vitest": "^4.0.15"
|
|
87
92
|
},
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { isEChartsThemeOption as r } from "./echarts-theme-option.js";
|
|
2
|
-
import o from "./mavrik-theme.json.js";
|
|
3
|
-
if (!r(o))
|
|
4
|
-
throw new Error("Invalid mavrik theme configuration");
|
|
5
|
-
const t = {
|
|
6
|
-
name: "mavrik",
|
|
7
|
-
config: o
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
t as MAVRIK_THEME
|
|
11
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { init as f, registerTheme as h } from "echarts";
|
|
3
|
-
import { useRef as i, useState as w, useEffect as d, useCallback as g } from "react";
|
|
4
|
-
const u = /* @__PURE__ */ new Set();
|
|
5
|
-
function R(e, n) {
|
|
6
|
-
u.has(e) || (h(e, n), u.add(e));
|
|
7
|
-
}
|
|
8
|
-
function b({ options: e, theme: n }) {
|
|
9
|
-
const o = i(null), c = i(null), [s, a] = w(!1);
|
|
10
|
-
d(() => {
|
|
11
|
-
if (!o.current) return;
|
|
12
|
-
n && R(n.name, n.config);
|
|
13
|
-
const r = f(o.current, n?.name, {
|
|
14
|
-
renderer: "svg"
|
|
15
|
-
});
|
|
16
|
-
c.current = r, r.setOption(e), a(!0);
|
|
17
|
-
const t = new ResizeObserver(() => {
|
|
18
|
-
r.resize();
|
|
19
|
-
});
|
|
20
|
-
return t.observe(o.current), () => {
|
|
21
|
-
t.disconnect(), r.dispose(), c.current = null, a(!1);
|
|
22
|
-
};
|
|
23
|
-
}, [e, n]), d(() => {
|
|
24
|
-
!c.current || !s || c.current.setOption(e);
|
|
25
|
-
}, [e, s]);
|
|
26
|
-
const l = g(async () => {
|
|
27
|
-
if (!c.current)
|
|
28
|
-
throw new Error("Chart is not initialized");
|
|
29
|
-
try {
|
|
30
|
-
const r = c.current.getDataURL({
|
|
31
|
-
type: "svg"
|
|
32
|
-
}), t = document.createElement("a");
|
|
33
|
-
t.download = `chart-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.svg`, t.href = r, document.body.appendChild(t), t.click(), document.body.removeChild(t);
|
|
34
|
-
} catch (r) {
|
|
35
|
-
throw console.error("Failed to download chart:", r), new Error("Failed to download chart");
|
|
36
|
-
}
|
|
37
|
-
}, []);
|
|
38
|
-
return {
|
|
39
|
-
containerRef: o,
|
|
40
|
-
isReady: s,
|
|
41
|
-
downloadChart: l
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
b as useChartInstance
|
|
46
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { createCanvas as f } from "canvas";
|
|
2
|
-
import { randomUUID as m } from "node:crypto";
|
|
3
|
-
import { createRequire as u } from "node:module";
|
|
4
|
-
const p = u(import.meta.url), s = p("echarts");
|
|
5
|
-
function l(r) {
|
|
6
|
-
if (!r || typeof r != "object" || Array.isArray(r))
|
|
7
|
-
return { animation: !1 };
|
|
8
|
-
const e = { ...r };
|
|
9
|
-
return "aria" in e && delete e.aria, e.animation = !1, e;
|
|
10
|
-
}
|
|
11
|
-
function h({
|
|
12
|
-
option: r,
|
|
13
|
-
theme: e,
|
|
14
|
-
width: a = 800,
|
|
15
|
-
height: n = 600,
|
|
16
|
-
devicePixelRatio: c = 2
|
|
17
|
-
}) {
|
|
18
|
-
let t;
|
|
19
|
-
e && typeof e == "object" && (t = `theme-${m()}`, s.registerTheme(t, e));
|
|
20
|
-
const i = f(a, n), o = s.init(i, t, {
|
|
21
|
-
renderer: "canvas",
|
|
22
|
-
devicePixelRatio: c,
|
|
23
|
-
width: a,
|
|
24
|
-
height: n
|
|
25
|
-
});
|
|
26
|
-
try {
|
|
27
|
-
return o.setOption(l(r)), i.toBuffer("image/png");
|
|
28
|
-
} finally {
|
|
29
|
-
o.dispose();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
h as renderChartToImage
|
|
34
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|