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
cecce654
"vscode:/vscode.git/clone" did not exist on "220d837076233c6ef2c5dd900b7fd7aa981d565c"
Commit
cecce654
authored
Mar 20, 2014
by
tebjan
Browse files
ellipse also fires changed events for its position and radius
parent
59051383
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Basic Shapes/SvgEllipse.cs
View file @
cecce654
...
...
@@ -26,34 +26,58 @@ namespace Svg
get
{
return
this
.
_centerX
;
}
set
{
this
.
_centerX
=
value
;
this
.
IsPathDirty
=
true
;
if
(
_centerX
!=
value
)
{
this
.
_centerX
=
value
;
this
.
IsPathDirty
=
true
;
OnAttributeChanged
(
new
AttributeEventArgs
{
Attribute
=
"cx"
,
Value
=
value
});
}
}
}
[
SvgAttribute
(
"cy"
)]
public
virtual
SvgUnit
CenterY
{
get
{
return
this
.
_centerY
;
}
set
{
this
.
_centerY
=
value
;
this
.
IsPathDirty
=
true
;
}
get
{
return
this
.
_centerY
;
}
set
{
if
(
_centerY
!=
value
)
{
this
.
_centerY
=
value
;
this
.
IsPathDirty
=
true
;
OnAttributeChanged
(
new
AttributeEventArgs
{
Attribute
=
"cy"
,
Value
=
value
});
}
}
}
[
SvgAttribute
(
"rx"
)]
public
virtual
SvgUnit
RadiusX
{
get
{
return
this
.
_radiusX
;
}
set
{
this
.
_radiusX
=
value
;
this
.
IsPathDirty
=
true
;
}
get
{
return
this
.
_radiusX
;
}
set
{
if
(
_radiusX
!=
value
)
{
this
.
_radiusX
=
value
;
this
.
IsPathDirty
=
true
;
OnAttributeChanged
(
new
AttributeEventArgs
{
Attribute
=
"rx"
,
Value
=
value
});
}
}
}
[
SvgAttribute
(
"ry"
)]
public
virtual
SvgUnit
RadiusY
{
get
{
return
this
.
_radiusY
;
}
set
{
this
.
_radiusY
=
value
;
this
.
IsPathDirty
=
true
;
}
get
{
return
this
.
_radiusY
;
}
set
{
if
(
_radiusY
!=
value
)
{
this
.
_radiusY
=
value
;
this
.
IsPathDirty
=
true
;
OnAttributeChanged
(
new
AttributeEventArgs
{
Attribute
=
"ry"
,
Value
=
value
});
}
}
}
/// <summary>
...
...
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