question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome 48 removes SVGGraphicsElement.getTransformToElement()

See original GitHub issue

Unfortunately the most recent beta version of chrome (48.0.2564.23) removes SVGElement.prototype.getTransformToElement which is used when creating edges.

The motivation behind removing this feature can be found here with the actual Google Chrome issue tracking this here

Therefore using dagre-d3 in this latest beta version of Chrome throws errors like:

TypeError: elem.getTransformToElement is not a function(…)

As suggested by the JointJS team this function can be poly-filled where it is required. We are working around this locally with a polyfil for now, but it clearly would be better for dagre-d3 to centralise a fix (polyfil or otherwise) so that everyone using Chrome 48 can benefit.

Any thoughts on how best to fix this in dagre-d3?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
ojha-ravicommented, Jan 21, 2016

yes @robhobbes, we are using the same polyfill as JointJs Team posted…

SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(elem) {
    return elem.getScreenCTM().inverse().multiply(this.getScreenCTM());
};

1reaction
jrgleasoncommented, Feb 1, 2016

Wow so the justification for removing this from Chrome was it is too difficult to fix the issues? That sounds like a crappy reason what am I missing?

Read more comments on GitHub >

github_iconTop Results From Across the Web

upgrade to Chrome 48 removes SVGGraphicsElement ...
I am getting js error : TypeError: elem.getTransformToElement is not a function(…) How can i fix this one ? jquery · html ·...
Read more >
getTransformToElement removed in Chrome 48 - GreenSock
FYI: The SVGGraphicsElement.getTransformToElement method was removed in Chrome 48. I just found out about this breaking change and have been ...
Read more >
Deprecate/Remove SVGGraphicsElement ...
Remove the support of SVGGraphicsElement.getTransformToElement. Specification. Specification link. Status: Specification being incubated in ...
Read more >
Announcing: getTransformToElement() polyfill – JointJS blog
Unluckily, a new version of Chrome (48) removes a feature that is core to ... Announcement: getTransformToElement() polyfill. David Durman.
Read more >
Intent to Deprecate and Remove: SVGPathSeg interfaces
This interface was difficult to use and has been removed from the SVG spec ... getPathData() and SVGPathElement.prototype. ... SVGGraphicsElement.prototype.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found