Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Diagram.rebuildParts() prints a lot of "Change not within a transaction" messages

$
0
0

@jude wrote:

The font on our app occasionally loads after GoJS draws the diagram. To combat this, I did the following:

$(document).on("TypeKitReady", function() {
    // myDiagram.startTransaction("refresh_font");
    myDiagram.rebuildParts();
    // myDiagram.commitTransaction("refresh_font");
});

With the code above, the entire diagram is redrawn with the right font. However, it prints a lot of "Change not within a transaction..." messages in the console.

When I wrap the call to rebuildParts() in a transaction, nothing happens (the old font remains in the diagram because the diagram didn't actually re-draw itself).

Is this a bug?

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles