makeSvg() issues with 1.6.9

In our mobile app I’m using makeSvg() to display an image of our diagram. This was working just fine 1.6.1 and with 1.6.9 I’m seeing these issues. The only options given to makeSvg() is scale: 1.0.

  1. The SVG looks to be a scale of 2 instead of 1.
  2. The TextBlock’s text is longer than the size and it doesn’t clip it. It has a grey background but you scan see the text overflows outside the size.

Now if I change the code from makeSvg() to makeImage() keeping scale: 1.0 is works just fine.

The problem with makeSvg() happens on Chrome desktop, iPhone, and iPad and I haven’t tried any other browsers. Has anything with the API changed from 1.6.1 to 1.6.9 that I need to make in my code for makeSvg()?

I see what you mean. I’ll investigate.

This is a bug introduced in 1.6.8. For now, stick with using 1.6.7. Sorry about the trouble. A fix will be out in the next release.

In the meantime you can get older (specific) versions via:

1 is fine in 1.6.7 but 2 is still a problem.

Here is the text node template if that helps.

    template = make('Node', 'Auto', {
            resizable: true,
            cursor: 'move'
        new go.Binding('location', 'location').makeTwoWay(),
        new go.Binding('width', 'width').makeTwoWay(),
        new go.Binding('height', 'height').makeTwoWay(),
        make('Shape', {
            figure: 'Rectangle',
            fill: '#CCC',
            stroke: null
        make('TextBlock', {
                margin: 3,
                stroke: '#111',
                stretch: go.GraphObject.Fill,
                font: me.textNodeFont,
                editable: false
            new go.Binding('text', 'text')

I’m not seeing a problem (using 1.6.7), for instance:

What’s different ?

Simon - I’ve done everything to your PEN to match our diagram settings and can’t reproduce. I’ll try locally introducing some of our code and the Ext JS framework and see if I can make it happen. Canvas and PNG work just fine - it’s only SVG that has that problem.