aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/graph/postProcessSVG.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2024-02-22 21:09:46 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2024-02-22 21:09:46 +0100
commit76144b74991110e8f655ce6289b2a2a85d1d9019 (patch)
tree4aa3727d17ec007559a96488f233eb0c26c59753 /subprojects/frontend/src/graph/postProcessSVG.ts
parentMerge pull request #53 from kris7t/imports (diff)
downloadrefinery-76144b74991110e8f655ce6289b2a2a85d1d9019.tar.gz
refinery-76144b74991110e8f655ce6289b2a2a85d1d9019.tar.zst
refinery-76144b74991110e8f655ce6289b2a2a85d1d9019.zip
feat(web): SVG export
Diffstat (limited to 'subprojects/frontend/src/graph/postProcessSVG.ts')
-rw-r--r--subprojects/frontend/src/graph/postProcessSVG.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/subprojects/frontend/src/graph/postProcessSVG.ts b/subprojects/frontend/src/graph/postProcessSVG.ts
index a580f5c6..f434f80b 100644
--- a/subprojects/frontend/src/graph/postProcessSVG.ts
+++ b/subprojects/frontend/src/graph/postProcessSVG.ts
@@ -1,13 +1,13 @@
1/* 1/*
2 * SPDX-FileCopyrightText: 2023 The Refinery Authors <https://refinery.tools/> 2 * SPDX-FileCopyrightText: 2023-2024 The Refinery Authors <https://refinery.tools/>
3 * 3 *
4 * SPDX-License-Identifier: EPL-2.0 4 * SPDX-License-Identifier: EPL-2.0
5 */ 5 */
6 6
7import { type BBox, parsePolygonBBox, parsePathBBox } from './parseBBox'; 7import { type BBox, parsePolygonBBox, parsePathBBox } from './parseBBox';
8 8
9const SVG_NS = 'http://www.w3.org/2000/svg'; 9export const SVG_NS = 'http://www.w3.org/2000/svg';
10const XLINK_NS = 'http://www.w3.org/1999/xlink'; 10export const XLINK_NS = 'http://www.w3.org/1999/xlink';
11 11
12function modifyAttribute(element: Element, attribute: string, change: number) { 12function modifyAttribute(element: Element, attribute: string, change: number) {
13 const valueString = element.getAttribute(attribute); 13 const valueString = element.getAttribute(attribute);