From e5ab89ef16fa399775685ae901523f91e59285dc Mon Sep 17 00:00:00 2001 From: JFH Date: Sun, 12 Jul 2020 22:16:29 +0200 Subject: [PATCH] adding Clippath in the visElems seems to fix the issue However, a better review of bbox should be done. --- editor/utilities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/utilities.js b/editor/utilities.js index 895c562e..210e9fff 100644 --- a/editor/utilities.js +++ b/editor/utilities.js @@ -28,9 +28,9 @@ const $ = jQueryPluginSVG(jQuery); const KEYSTR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; // Much faster than running getBBox() every time -const visElems = 'a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use'; +const visElems = 'a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use,clipPath'; const visElemsArr = visElems.split(','); -// const hidElems = 'clipPath,defs,desc,feGaussianBlur,filter,linearGradient,marker,mask,metadata,pattern,radialGradient,stop,switch,symbol,title,textPath'; +// const hidElems = 'defs,desc,feGaussianBlur,filter,linearGradient,marker,mask,metadata,pattern,radialGradient,stop,switch,symbol,title,textPath'; let editorContext_ = null; let domdoc_ = null;