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
79cc4f23
"Source/vscode:/vscode.git/clone" did not exist on "ed8cbf96efeae95897fd991cf7fa6ffcd8e66f48"
Commit
79cc4f23
authored
Feb 20, 2015
by
kataklinger
Browse files
Scaling minx and miny of viewbox
parent
e4cb89ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/DataTypes/SvgViewBox.cs
View file @
79cc4f23
...
...
@@ -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