@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