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
218faebb
"vscode:/vscode.git/clone" did not exist on "6d38adf208009893ae957cabab79df2db89683ea"
Commit
218faebb
authored
Mar 29, 2014
by
tebjan
Browse files
svg line now fires all attribute changed events
parent
d6e261b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Basic Shapes/SvgLine.cs
View file @
218faebb
...
@@ -23,28 +23,60 @@ namespace Svg
...
@@ -23,28 +23,60 @@ namespace Svg
public
SvgUnit
StartX
public
SvgUnit
StartX
{
{
get
{
return
this
.
_startX
;
}
get
{
return
this
.
_startX
;
}
set
{
this
.
_startX
=
value
;
this
.
IsPathDirty
=
true
;
}
set
{
if
(
_startX
!=
value
)
{
this
.
_startX
=
value
;
this
.
IsPathDirty
=
true
;
OnAttributeChanged
(
new
AttributeEventArgs
{
Attribute
=
"x1"
,
Value
=
value
});
}
}
}
}
[
SvgAttribute
(
"y1"
)]
[
SvgAttribute
(
"y1"
)]
public
SvgUnit
StartY
public
SvgUnit
StartY
{
{
get
{
return
this
.
_startY
;
}
get
{
return
this
.
_startY
;
}
set
{
this
.
_startY
=
value
;
this
.
IsPathDirty
=
true
;
}
set
{
if
(
_startY
!=
value
)
{
this
.
_startY
=
value
;
this
.
IsPathDirty
=
true
;
OnAttributeChanged
(
new
AttributeEventArgs
{
Attribute
=
"y1"
,
Value
=
value
});
}
}
}
}
[
SvgAttribute
(
"x2"
)]
[
SvgAttribute
(
"x2"
)]
public
SvgUnit
EndX
public
SvgUnit
EndX
{
{
get
{
return
this
.
_endX
;
}
get
{
return
this
.
_endX
;
}
set
{
this
.
_endX
=
value
;
this
.
IsPathDirty
=
true
;
}
set
{
if
(
_endX
!=
value
)
{
this
.
_endX
=
value
;
this
.
IsPathDirty
=
true
;
OnAttributeChanged
(
new
AttributeEventArgs
{
Attribute
=
"x2"
,
Value
=
value
});
}
}
}
}
[
SvgAttribute
(
"y2"
)]
[
SvgAttribute
(
"y2"
)]
public
SvgUnit
EndY
public
SvgUnit
EndY
{
{
get
{
return
this
.
_endY
;
}
get
{
return
this
.
_endY
;
}
set
{
this
.
_endY
=
value
;
this
.
IsPathDirty
=
true
;
}
set
{
if
(
_endY
!=
value
)
{
this
.
_endY
=
value
;
this
.
IsPathDirty
=
true
;
OnAttributeChanged
(
new
AttributeEventArgs
{
Attribute
=
"y2"
,
Value
=
value
});
}
}
}
}
public
override
SvgPaintServer
Fill
public
override
SvgPaintServer
Fill
...
...
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