Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome 48 removes SVGGraphicsElement.getTransformToElement() #57

Closed
gnome74699 opened this issue Feb 3, 2016 · 6 comments
Closed

Chrome 48 removes SVGGraphicsElement.getTransformToElement() #57

gnome74699 opened this issue Feb 3, 2016 · 6 comments

Comments

@gnome74699
Copy link

The most recent version of chrome (48.0.2564.97) removes zpdElement.node.getTransformToElement which is used when creating edges.

Therefore using snap.svg.zpd in this latest beta version of Chrome throws errors like:
TypeError: zpdElement.node.getTransformToElement is not a function(…)

How best to fix this in snap.svg.zpd?

@hueitan
Copy link
Owner

hueitan commented Feb 3, 2016

@tikiatua

@tikiatua
Copy link
Collaborator

tikiatua commented Feb 3, 2016

Hmm..

Apparently the getTransformToElement should be back in the latest version. There does however seem to be a fix

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

More details here dagrejs/dagre-d3#202

@gnome74699
Copy link
Author

Ok thanks guy, I'll try it.

@avishaan
Copy link

avishaan commented Feb 8, 2016

@tikiatua, just as a heads up, latest chrome mac Version 48.0.2564.103 (64-bit) doesn't have getTransformToElement

@dotchen
Copy link

dotchen commented Feb 12, 2016

The latest 48.0.2564.109 (64-bit) version still does not fix this issue.

@tikiatua
Copy link
Collaborator

Hi there,

should be fixed in the latest version (v0.0.11)

avishaan added a commit to avishaan/PBMv2-issues that referenced this issue Feb 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants