From d94f469a9000b709e3d0ffe153b890bebaccb08e Mon Sep 17 00:00:00 2001 From: angelnar87 Date: Fri, 7 Jun 2024 17:32:37 +0000 Subject: [PATCH] Allow SVG to set links --- packages/render/src/primitives/renderSvg.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/render/src/primitives/renderSvg.js b/packages/render/src/primitives/renderSvg.js index 4f169410f..bdc94cb6e 100644 --- a/packages/render/src/primitives/renderSvg.js +++ b/packages/render/src/primitives/renderSvg.js @@ -13,6 +13,7 @@ import renderPolyline from './renderPolyline'; import renderSvgImage from './renderSvgImage'; import clipNode from '../operations/clipNode'; import transform from '../operations/transform'; +import setLink from '../operations/setLink'; import getBoundingBox from '../svg/getBoundingBox'; const setStrokeWidth = (ctx, node) => { @@ -167,6 +168,7 @@ const renderFns = { [P.Ellipse]: renderEllipse, [P.Polygon]: renderPolygon, [P.Polyline]: renderPolyline, + [P.Link]: setLink }; const renderNode = (ctx, node) => {