AutoPatientInfoRecorder/src/AntdUI/Lib/SVG/Text/SvgGlyph.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// THIS FILE IS PART OF SVG PROJECT
// THE SVG PROJECT IS AN OPENSOURCE LIBRARY LICENSED UNDER THE MS-PL License.
// COPYRIGHT (C) svg-net. ALL RIGHTS RESERVED.
// GITHUB: https://github.com/svg-net/SVG
using AntdUI.Svg.Pathing;
using System.Drawing.Drawing2D;
using System.Linq;
namespace AntdUI.Svg
{
public class SvgGlyph : SvgPathBasedElement
{
public override string ClassName { get => "glyph"; }
private GraphicsPath _path;
/// <summary>
/// Gets or sets a <see cref="SvgPathSegmentList"/> of path data.
/// </summary>
[SvgAttribute("d", true)]
public SvgPathSegmentList PathData
{
get { return Attributes.GetAttribute<SvgPathSegmentList>("d"); }
set { Attributes["d"] = value; }
}
[SvgAttribute("glyph-name", true)]
public virtual string GlyphName
{
get { return Attributes["glyph-name"] as string; }
set { Attributes["glyph-name"] = value; }
}
[SvgAttribute("horiz-adv-x", true)]
public float HorizAdvX
{
get { return (Attributes["horiz-adv-x"] == null ? Parents.OfType<SvgFont>().First().HorizAdvX : (float)Attributes["horiz-adv-x"]); }
set { Attributes["horiz-adv-x"] = value; }
}
[SvgAttribute("unicode", true)]
public string Unicode
{
get { return Attributes["unicode"] as string; }
set { Attributes["unicode"] = value; }
}
[SvgAttribute("vert-adv-y", true)]
public float VertAdvY
{
get { return (Attributes["vert-adv-y"] == null ? Parents.OfType<SvgFont>().First().VertAdvY : (float)Attributes["vert-adv-y"]); }
set { Attributes["vert-adv-y"] = value; }
}
[SvgAttribute("vert-origin-x", true)]
public float VertOriginX
{
get { return (Attributes["vert-origin-x"] == null ? Parents.OfType<SvgFont>().First().VertOriginX : (float)Attributes["vert-origin-x"]); }
set { Attributes["vert-origin-x"] = value; }
}
[SvgAttribute("vert-origin-y", true)]
public float VertOriginY
{
后面还有 34 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。