Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Custom javascript in svg export

0 votes

Hello yEd-Team,

is there a way to edit the javasript code that is exported to each svg-file, so that I donĀ“t have to edit each exported svg-file manually?

I have the same problem as reported here: Tooltip not shown correctly while zooming svg document

The defect could be identified in the GetTrueCoords (evt)-function. When change:

TrueCoords.x = (evt.clientX - translation.x)/newScale;

TrueCoords.y = (evt.clientY - translation.y)/newScale;

to:

TrueCoords.x = (evt.pageX - translation.x)/newScale;

TrueCoords.y = (evt.pageY - translation.y)/newScale;

the problem with the tooltip not shown correctly disappers.

Greets

asked Dec 7, 2018 in Help by anonymous
recategorized Dec 7, 2018 by thomas.behr

1 Answer

0 votes
Unfortunately, it is currently not possible to change the script code that is exported to SVG documents.
answered Dec 7, 2018 by thomas.behr [yWorks] (122,520 points)
Imprint | Privacy Policy