Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
ed525d27
Commit
ed525d27
authored
Mar 23, 2015
by
Tebjan Halm
Browse files
Merge pull request #133 from kataklinger/master
Scaling minx and miny of viewbox
parents
e4cb89ac
79cc4f23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/DataTypes/SvgViewBox.cs
View file @
ed525d27
...
...
@@ -140,8 +140,8 @@ namespace Svg
var
fScaleX
=
width
/
this
.
Width
;
var
fScaleY
=
height
/
this
.
Height
;
//(this.MinY < 0 ? -1 : 1) *
var
fMinX
=
-
this
.
MinX
;
var
fMinY
=
-
this
.
MinY
;
var
fMinX
=
-
this
.
MinX
*
fScaleX
;
var
fMinY
=
-
this
.
MinY
*
fScaleY
;
if
(
aspectRatio
==
null
)
aspectRatio
=
new
SvgAspectRatio
(
SvgPreserveAspectRatio
.
xMidYMid
,
false
);
if
(
aspectRatio
.
Align
!=
SvgPreserveAspectRatio
.
none
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment