Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ViZFrame getVizproperties browser compatibility issue

Hi,

With new Chrome Version 48.0.2564.82 m I have the following error when calling VizFrame.getVizProperties():

Uncaught TypeError: this.getTransformToElement is not a function(…)


I tested with previous Chrome version (47....) and it is Ok.

Is there a new version of VizFrame that solves this issue for latest Chrome browser versions?


Thank you,

D.E.

replied

Hi Dimitris,

We faced the same issue.

The reason for the removal in newest version is described here:

SVG Working Group Teleconference -- 24 Aug 2015

JointJS Team posted this polyfill:

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

Place this code into your 'onInit' function of the 'Main' controller.

Cheers,

Pavel

11 View this answer in context
Not what you were looking for? View more on this topic or Ask a question