Last change
on this file since 14113 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
728 bytes
|
Line | |
---|
1 | using System;
|
---|
2 |
|
---|
3 | namespace SharpVectors.Dom.Svg
|
---|
4 | {
|
---|
5 | /// <summary>
|
---|
6 | /// Summary description for SvgStopElement.
|
---|
7 | /// </summary>
|
---|
8 | public sealed class SvgStopElement : SvgStyleableElement, ISvgStopElement
|
---|
9 | {
|
---|
10 | public SvgStopElement(string prefix, string localname, string ns, SvgDocument doc)
|
---|
11 | : base(prefix, localname, ns, doc)
|
---|
12 | {
|
---|
13 | }
|
---|
14 |
|
---|
15 | public ISvgAnimatedNumber Offset
|
---|
16 | {
|
---|
17 | get
|
---|
18 | {
|
---|
19 | string attr = GetAttribute("offset").Trim();
|
---|
20 | if (attr.EndsWith("%"))
|
---|
21 | {
|
---|
22 | attr = attr.TrimEnd(new char[1]{'%'});
|
---|
23 | }
|
---|
24 | else
|
---|
25 | {
|
---|
26 | double tmp = SvgNumber.ParseNumber(attr) * 100;
|
---|
27 | attr = tmp.ToString(SvgNumber.Format);
|
---|
28 | }
|
---|
29 |
|
---|
30 | return new SvgAnimatedNumber(attr);
|
---|
31 | }
|
---|
32 | }
|
---|
33 | }
|
---|
34 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.