AutoPatientInfoRecorder/src/AntdUI/Lib/SVG/Basic Shapes/SvgLine.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 System.Drawing;
using System.Drawing.Drawing2D;
namespace AntdUI.Svg
{
/// <summary>
/// Represents and SVG line element.
/// </summary>
public class SvgLine : SvgMarkerElement
{
public override string ClassName { get => "line"; }
private SvgUnit _startX;
private SvgUnit _startY;
private SvgUnit _endX;
private SvgUnit _endY;
private GraphicsPath _path;
[SvgAttribute("x1")]
public SvgUnit StartX
{
get { return _startX; }
set
{
if (_startX != value)
{
_startX = value;
IsPathDirty = true;
OnAttributeChanged(new AttributeEventArgs { Attribute = "x1", Value = value });
}
}
}
[SvgAttribute("y1")]
public SvgUnit StartY
{
get { return _startY; }
set
{
if (_startY != value)
{
_startY = value;
IsPathDirty = true;
OnAttributeChanged(new AttributeEventArgs { Attribute = "y1", Value = value });
}
}
}
[SvgAttribute("x2")]
public SvgUnit EndX
{
get { return _endX; }
set
{
if (_endX != value)
后面还有 67 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。