I am having a strange issue with a JointJS app I'm trying to build for a client of mine.
Its very simple at the moment all there are are links of a type which I have extended.
and I am loading the links in via JSON.
When the page initially loads I get this error.
TypeError: toElem.getScreenCTM(...) is null
This is code at the error.
/**
* @param {SVGGElement} toElem
* @returns {SVGMatrix}
*/
V.prototype.getTransformToElement = function(toElem) {
toElem = V.toNode(toElem);
return toElem.getScreenCTM().inverse().multiply(this.node.getScreenCTM());
};
The strange bit is if I then refresh there is no error and diagram loads.
If then hold down shift and refresh I again get the error.
Any clues. I have attached the project file which hopefully reproduces the issue for you.
: Ubuntu 14.04
Firefox 52.0.2
JointJS 1.1.0
Hope you can help my work is basically dead in the water at moment.
Salik.