Skip to content

Commit

Permalink
Merge pull request #18 from nicdford/feature/17
Browse files Browse the repository at this point in the history
Add polypill for chrome support
  • Loading branch information
pglewis committed Apr 22, 2016
2 parents 7c069d1 + 86cbc55 commit 1ebcad5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion includes/js/jointjs-pods.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,10 @@ joint.dia.PodsLink = joint.dia.Link.extend( {
} );
}

} );
} );

// Chrome dropped support https://github.com/cpettitt/dagre-d3/issues/202
// @todo: may need to evaluate if this is the best locaiton for the polyfill to live
SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) {
return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
};

0 comments on commit 1ebcad5

Please sign in to comment.