aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/utils/svgURL.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-08-26 21:44:58 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-08-26 22:01:33 +0200
commita49083f31679c47e1685e0cedbc9a40cc8f48fd8 (patch)
treed0702f26342297f54124900ecfc52e04c3e16d6f /subprojects/frontend/src/utils/svgURL.ts
parentfeat(frontend): automatic fit zoom (diff)
downloadrefinery-a49083f31679c47e1685e0cedbc9a40cc8f48fd8.tar.gz
refinery-a49083f31679c47e1685e0cedbc9a40cc8f48fd8.tar.zst
refinery-a49083f31679c47e1685e0cedbc9a40cc8f48fd8.zip
refactor(frontent): improve graph drawing
Diffstat (limited to 'subprojects/frontend/src/utils/svgURL.ts')
-rw-r--r--subprojects/frontend/src/utils/svgURL.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/subprojects/frontend/src/utils/svgURL.ts b/subprojects/frontend/src/utils/svgURL.ts
new file mode 100644
index 00000000..9b8ecbd5
--- /dev/null
+++ b/subprojects/frontend/src/utils/svgURL.ts
@@ -0,0 +1,9 @@
1/*
2 * SPDX-FileCopyrightText: 2023 The Refinery Authors <https://refinery.tools/>
3 *
4 * SPDX-License-Identifier: EPL-2.0
5 */
6
7export default function svgURL(svg: string): string {
8 return `url('data:image/svg+xml;utf8,${svg}')`;
9}