AutoPatientInfoRecorder/src/AntdUI/Lib/SVG/Document Structure/SvgSymbol.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;
namespace AntdUI.Svg.Document_Structure
{
/// <summary>
/// An element used to group SVG shapes.
/// </summary>
public class SvgSymbol : SvgVisualElement
{
public override string ClassName { get => "symbol"; }
/// <summary>
/// Gets or sets the viewport of the element.
/// </summary>
/// <value></value>
[SvgAttribute("viewBox")]
public SvgViewBox ViewBox
{
get { return Attributes.GetAttribute<SvgViewBox>("viewBox"); }
set { Attributes["viewBox"] = value; }
}
/// <summary>
/// Gets or sets the aspect of the viewport.
/// </summary>
/// <value></value>
[SvgAttribute("preserveAspectRatio")]
public SvgAspectRatio AspectRatio
{
get { return Attributes.GetAttribute<SvgAspectRatio>("preserveAspectRatio"); }
set { Attributes["preserveAspectRatio"] = value; }
}
/// <summary>
/// Gets the <see cref="System.Drawing.Drawing2D.GraphicsPath"/> for this element.
/// </summary>
/// <value></value>
public override System.Drawing.Drawing2D.GraphicsPath Path(ISvgRenderer renderer)
{
return GetPaths(this, renderer);
}
/// <summary>
/// Gets the bounds of the element.
/// </summary>
/// <value>The bounds.</value>
public override RectangleF Bounds
{
get
{
var r = new RectangleF();
foreach (var c in Children)
{
if (c is SvgVisualElement)
后面还有 42 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。