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
69532c40
Commit
69532c40
authored
Jul 30, 2014
by
Eric Domke
Browse files
Attempting to fix merge conflicts
parents
7a093b52
ba8a9744
Changes
10
Hide whitespace changes
Inline
Side-by-side
Source/Document Structure/SvgDescription.cs
View file @
69532c40
...
...
@@ -15,16 +15,17 @@ namespace Svg
}
public
override
SvgElement
DeepCopy
()
{
return
DeepCopy
<
SvgDescription
>();
}
public
override
SvgElement
DeepCopy
()
{
return
DeepCopy
<
SvgDescription
>();
}
public
override
SvgElement
DeepCopy
<
T
>()
{
var
newObj
=
base
.
DeepCopy
<
T
>()
as
SvgDescription
;
return
newObj
;
}
public
override
SvgElement
DeepCopy
<
T
>()
{
var
newObj
=
base
.
DeepCopy
<
T
>()
as
SvgDescription
;
newObj
.
Text
=
this
.
Text
;
return
newObj
;
}
}
}
\ No newline at end of file
Source/Document Structure/SvgTitle.cs
View file @
69532c40
...
...
@@ -13,16 +13,16 @@ namespace Svg
return
this
.
Content
;
}
public
override
SvgElement
DeepCopy
()
{
public
override
SvgElement
DeepCopy
()
{
return
DeepCopy
<
SvgTitle
>();
}
}
public
override
SvgElement
DeepCopy
<
T
>()
{
public
override
SvgElement
DeepCopy
<
T
>()
{
var
newObj
=
base
.
DeepCopy
<
T
>()
as
SvgTitle
;
return
newObj
;
}
return
newObj
;
}
}
}
\ No newline at end of file
Source/Painting/SvgColourConverter.cs
View file @
69532c40
...
...
@@ -57,9 +57,9 @@ namespace Svg
{
alphastring
=
"0"
+
alphastring
;
}
var
alphaDecimal
=
decimal
.
Parse
(
alphastring
);
if
(
alphaDecimal
<=
1
)
{
alphaValue
=
(
int
)(
alphaDecimal
*
255
);
...
...
Source/Painting/SvgPaintServerFactory.cs
View file @
69532c40
...
...
@@ -116,4 +116,4 @@ namespace Svg
return
base
.
ConvertTo
(
context
,
culture
,
value
,
destinationType
);
}
}
}
}
\ No newline at end of file
Source/Paths/SvgClosePathSegment.cs
View file @
69532c40
...
...
@@ -8,7 +8,7 @@ namespace Svg.Pathing
{
public
override
void
AddToPath
(
System
.
Drawing
.
Drawing2D
.
GraphicsPath
graphicsPath
)
{
// Important for custom line caps. Force the path the close with an explicit line, not just an implicit close of the figure.
if
(
graphicsPath
.
PointCount
>
0
&&
!
graphicsPath
.
PathPoints
[
0
].
Equals
(
graphicsPath
.
PathPoints
[
graphicsPath
.
PathPoints
.
Length
-
1
]))
{
...
...
@@ -26,4 +26,4 @@ namespace Svg.Pathing
}
}
}
}
\ No newline at end of file
Source/Paths/SvgPathBuilder.cs
View file @
69532c40
...
...
@@ -222,9 +222,9 @@ namespace Svg
{
var
lastSegment
=
segments
.
Last
;
// if the last element is a SvgClosePathSegment the position of the previous
move to
should be used because the position of SvgClosePathSegment is 0,0
// if the last element is a SvgClosePathSegment the position of the previous
element
should be used because the position of SvgClosePathSegment is 0,0
if
(
lastSegment
is
SvgClosePathSegment
)
lastSegment
=
segments
.
OfType
<
SvgMoveToSegment
>().
Last
()
;
lastSegment
=
segments
[
segments
.
Count
-
2
]
;
if
(
isRelativeX
)
{
...
...
@@ -290,7 +290,6 @@ namespace Svg
{
if
(
value
is
string
)
{
if
(
string
.
IsNullOrEmpty
((
string
)
value
))
return
new
SvgPathSegmentList
();
return
Parse
((
string
)
value
);
}
...
...
Source/Svg.csproj
View file @
69532c40
...
...
@@ -16,7 +16,7 @@
<OldToolsVersion>
3.5
</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkVersion>
v
3.5
</TargetFrameworkVersion>
<TargetFrameworkVersion>
v
4.0
</TargetFrameworkVersion>
<IsWebBootstrapper>
false
</IsWebBootstrapper>
<SccProjectName>
</SccProjectName>
...
...
@@ -121,6 +121,7 @@
<Compile
Include=
"Extensions.cs"
/>
<Compile
Include=
"Painting\ISvgBoundable.cs"
/>
<Compile
Include=
"Painting\SvgDeferredPaintServer.cs"
/>
<Compile
Include=
"Painting\ISvgBoundable.cs"
/>
<Compile
Include=
"Painting\SvgMarker.cs"
/>
<Compile
Include=
"Document Structure\SvgDefinitionList.cs"
/>
<Compile
Include=
"Document Structure\SvgDescription.cs"
/>
...
...
Source/SvgDocument.cs
View file @
69532c40
...
...
@@ -401,4 +401,4 @@ namespace Svg
}
}
}
}
}
\ No newline at end of file
Source/SvgElement.cs
View file @
69532c40
...
...
@@ -527,7 +527,7 @@ namespace Svg
foreach
(
var
attr
in
_svgEventAttributes
)
{
var
evt
=
attr
.
Event
.
GetValue
(
this
);
//if someone has registered publish the attribute
if
(
evt
!=
null
&&
!
string
.
IsNullOrEmpty
(
this
.
ID
))
{
...
...
@@ -711,7 +711,7 @@ namespace Svg
newObj
.
ID
=
this
.
ID
;
newObj
.
Content
=
this
.
Content
;
newObj
.
ElementName
=
this
.
ElementName
;
// if (this.Parent != null)
// this.Parent.Children.Add(newObj);
...
...
@@ -724,11 +724,11 @@ namespace Svg
{
newObj
.
Children
.
Add
(
child
.
DeepCopy
());
}
foreach
(
var
attr
in
this
.
_svgEventAttributes
)
{
var
evt
=
attr
.
Event
.
GetValue
(
this
);
//if someone has registered also register here
if
(
evt
!=
null
)
{
...
...
@@ -750,7 +750,7 @@ namespace Svg
(
newObj
as
SvgText
).
Change
+=
delegate
{
};
}
}
if
(
this
.
_customAttributes
.
Count
>
0
)
{
foreach
(
var
element
in
_customAttributes
)
...
...
@@ -758,15 +758,15 @@ namespace Svg
newObj
.
CustomAttributes
.
Add
(
element
.
Key
,
element
.
Value
);
}
}
return
newObj
;
}
/// <summary>
/// Fired when an Atrribute of this Element has changed
/// </summary>
public
event
EventHandler
<
AttributeEventArgs
>
AttributeChanged
;
protected
void
OnAttributeChanged
(
AttributeEventArgs
args
)
{
var
handler
=
AttributeChanged
;
...
...
@@ -775,12 +775,12 @@ namespace Svg
handler
(
this
,
args
);
}
}
/// <summary>
/// Fired when an Atrribute of this Element has changed
/// </summary>
public
event
EventHandler
<
ContentEventArgs
>
ContentChanged
;
protected
void
OnContentChanged
(
ContentEventArgs
args
)
{
var
handler
=
ContentChanged
;
...
...
Source/Text/SvgText.cs
View file @
69532c40
...
...
@@ -48,4 +48,4 @@ namespace Svg
return
newObj
;
}
}
}
}
\ No newline at end of file
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