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.

Categories

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

in Help by
recategorized by

1 Answer

0 votes
Unfortunately, it is currently not possible to change the script code that is exported to SVG documents.
by [yWorks] (160k points)
Legal Disclosure | Privacy Policy
...