diff options
author | 2024-02-22 21:09:46 +0100 | |
---|---|---|
committer | 2024-02-22 21:09:46 +0100 | |
commit | 76144b74991110e8f655ce6289b2a2a85d1d9019 (patch) | |
tree | 4aa3727d17ec007559a96488f233eb0c26c59753 /subprojects/frontend/src/graph/postProcessSVG.ts | |
parent | Merge pull request #53 from kris7t/imports (diff) | |
download | refinery-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.ts | 6 |
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 | ||
7 | import { type BBox, parsePolygonBBox, parsePathBBox } from './parseBBox'; | 7 | import { type BBox, parsePolygonBBox, parsePathBBox } from './parseBBox'; |
8 | 8 | ||
9 | const SVG_NS = 'http://www.w3.org/2000/svg'; | 9 | export const SVG_NS = 'http://www.w3.org/2000/svg'; |
10 | const XLINK_NS = 'http://www.w3.org/1999/xlink'; | 10 | export const XLINK_NS = 'http://www.w3.org/1999/xlink'; |
11 | 11 | ||
12 | function modifyAttribute(element: Element, attribute: string, change: number) { | 12 | function modifyAttribute(element: Element, attribute: string, change: number) { |
13 | const valueString = element.getAttribute(attribute); | 13 | const valueString = element.getAttribute(attribute); |