strange issue wth getscreenCTM in firefox on Ubuntu

277 views
Skip to first unread message

Salik Rafiq

unread,
Jun 19, 2017, 2:03:11 PM6/19/17
to JointJS
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.
Message has been deleted
Message has been deleted
Message has been deleted

Salik Rafiq

unread,
Jun 19, 2017, 2:18:59 PM6/19/17
to JointJS
I could not attach the file. so here it is on my gdrive https://drive.google.com/file/d/0BwpEPnMLoe8ycFhNbWd6UVFtNVU/view?usp=sharing

Vladimír Talaš

unread,
Jun 28, 2017, 2:22:29 AM6/28/17
to joi...@googlegroups.com
Hi, 

I wasn't abble to reproduce the error, let me know if it's still an issue.

Regards, 

Vladimir 

------ Původní zpráva ------
Od: "Salik Rafiq" <salik...@gmail.com>
Komu: "JointJS" <joi...@googlegroups.com>
Odesláno: 19.06.2017 20:18:58
Předmět: Re: strange issue wth getscreenCTM in firefox on Ubuntu

--

---
You received this message because you are subscribed to the Google Groups "JointJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jointjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kyle Davelaar

unread,
Nov 17, 2017, 5:58:56 PM11/17/17
to JointJS
I am having the same problem.  Did you find a solution? 
Reply all
Reply to author
Forward
0 new messages