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
0e9d66b3
Commit
0e9d66b3
authored
Nov 29, 2013
by
Tebjan Halm
Browse files
Merge remote-tracking branch 'origin/master' into textEvents
parents
e108cbdd
c251882d
Changes
5
Show whitespace changes
Inline
Side-by-side
Nuget/Svg.1.5.2.nupkg
0 → 100644
View file @
0e9d66b3
File added
Source/Basic Shapes/SvgPolyline.cs
View file @
0e9d66b3
...
@@ -13,13 +13,14 @@ namespace Svg
...
@@ -13,13 +13,14 @@ namespace Svg
[
SvgElement
(
"polyline"
)]
[
SvgElement
(
"polyline"
)]
public
class
SvgPolyline
:
SvgPolygon
public
class
SvgPolyline
:
SvgPolygon
{
{
private
GraphicsPath
_Path
;
public
override
GraphicsPath
Path
public
override
GraphicsPath
Path
{
{
get
get
{
{
if
(
Path
==
null
||
this
.
IsPathDirty
)
if
(
_
Path
==
null
||
this
.
IsPathDirty
)
{
{
Path
=
new
GraphicsPath
();
_
Path
=
new
GraphicsPath
();
try
try
{
{
...
@@ -28,13 +29,13 @@ namespace Svg
...
@@ -28,13 +29,13 @@ namespace Svg
PointF
endPoint
=
new
PointF
(
Points
[
i
].
ToDeviceValue
(
this
),
Points
[
i
+
1
].
ToDeviceValue
(
this
));
PointF
endPoint
=
new
PointF
(
Points
[
i
].
ToDeviceValue
(
this
),
Points
[
i
+
1
].
ToDeviceValue
(
this
));
// TODO: Remove unrequired first line
// TODO: Remove unrequired first line
if
(
Path
.
PointCount
==
0
)
if
(
_
Path
.
PointCount
==
0
)
{
{
Path
.
AddLine
(
endPoint
,
endPoint
);
_
Path
.
AddLine
(
endPoint
,
endPoint
);
}
}
else
else
{
{
Path
.
AddLine
(
Path
.
GetLastPoint
(),
endPoint
);
_
Path
.
AddLine
(
_
Path
.
GetLastPoint
(),
endPoint
);
}
}
}
}
}
}
...
@@ -44,7 +45,7 @@ namespace Svg
...
@@ -44,7 +45,7 @@ namespace Svg
}
}
this
.
IsPathDirty
=
false
;
this
.
IsPathDirty
=
false
;
}
}
return
Path
;
return
_
Path
;
}
}
}
}
}
}
...
...
Source/Properties/AssemblyInfo.cs
View file @
0e9d66b3
...
@@ -32,7 +32,7 @@ using System.Runtime.InteropServices;
...
@@ -32,7 +32,7 @@ using System.Runtime.InteropServices;
//
//
// You can specify all the values or you can default the Revision and Build Numbers
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
// by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.5.
1
.*"
)]
[
assembly
:
AssemblyVersion
(
"1.5.
2
.*"
)]
//[assembly: AssemblyFileVersion("1.0.1.*")]
//[assembly: AssemblyFileVersion("1.0.1.*")]
[
assembly
:
CLSCompliant
(
true
)]
[
assembly
:
CLSCompliant
(
true
)]
Source/Svg.csproj
View file @
0e9d66b3
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<OldToolsVersion>
3.5
</OldToolsVersion>
<OldToolsVersion>
3.5
</OldToolsVersion>
<UpgradeBackupLocation>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkVersion>
v
4.0
</TargetFrameworkVersion>
<TargetFrameworkVersion>
v
3.5
</TargetFrameworkVersion>
<IsWebBootstrapper>
false
</IsWebBootstrapper>
<IsWebBootstrapper>
false
</IsWebBootstrapper>
<SccProjectName>
<SccProjectName>
</SccProjectName>
</SccProjectName>
...
...
Source/SvgElement.cs
View file @
0e9d66b3
...
@@ -459,7 +459,7 @@ namespace Svg
...
@@ -459,7 +459,7 @@ namespace Svg
var
evt
=
attr
.
Event
.
GetValue
(
this
);
var
evt
=
attr
.
Event
.
GetValue
(
this
);
//if someone has registered publish the attribute
//if someone has registered publish the attribute
if
(
evt
!=
null
&&
!
string
.
IsNullOr
WhiteSpace
(
this
.
ID
))
if
(
evt
!=
null
&&
!
string
.
IsNullOr
Empty
(
this
.
ID
))
{
{
writer
.
WriteAttributeString
(
attr
.
Attribute
.
Name
,
this
.
ID
+
"/"
+
attr
.
Attribute
.
Name
);
writer
.
WriteAttributeString
(
attr
.
Attribute
.
Name
,
this
.
ID
+
"/"
+
attr
.
Attribute
.
Name
);
}
}
...
@@ -729,7 +729,7 @@ namespace Svg
...
@@ -729,7 +729,7 @@ namespace Svg
/// <param name="caller"></param>
/// <param name="caller"></param>
public
void
RegisterEvents
(
ISvgEventCaller
caller
)
public
void
RegisterEvents
(
ISvgEventCaller
caller
)
{
{
if
(
caller
!=
null
&&
!
string
.
IsNullOr
WhiteSpace
(
this
.
ID
))
if
(
caller
!=
null
&&
!
string
.
IsNullOr
Empty
(
this
.
ID
))
{
{
var
rpcID
=
this
.
ID
+
"/"
;
var
rpcID
=
this
.
ID
+
"/"
;
...
@@ -750,7 +750,7 @@ namespace Svg
...
@@ -750,7 +750,7 @@ namespace Svg
/// <param name="caller"></param>
/// <param name="caller"></param>
public
void
UnregisterEvents
(
ISvgEventCaller
caller
)
public
void
UnregisterEvents
(
ISvgEventCaller
caller
)
{
{
if
(
caller
!=
null
&&
!
string
.
IsNullOr
WhiteSpace
(
this
.
ID
))
if
(
caller
!=
null
&&
!
string
.
IsNullOr
Empty
(
this
.
ID
))
{
{
var
rpcID
=
this
.
ID
+
"/"
;
var
rpcID
=
this
.
ID
+
"/"
;
...
...
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