Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7423

Flipping an SVG vertically with scale causing a Geometry.scale:y error

$
0
0

@kkohn wrote:

We are reading our svg file to get the path string. Everything works great except the SVG images are upside down. I understand this is typical so that is not the issue. In angularjs service I have created I do the following steps to flip the SVG icon.

var geo = go.Geometry.parse(<iconString>, true);
geo.scale(1, -1);
geo.normalize();

The string I'm using to create the geo is as follows:
M632.571 449.714l-424-424q-10.857-10.857-25.714-10.857t-25.714 10.857l-94.857 94.857q-10.857 10.857-10.857 25.714t10.857 25.714l303.429 303.429-303.429 303.429q-10.857 10.857-10.857 25.714t10.857 25.714l94.857 94.857q10.857 10.857 25.714 10.857t25.714-10.857l424-424q10.857-10.857 10.857-25.714t-10.857-25.714z

What am I missing? Any help would be appreciated.
Thanks!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7423

Trending Articles