AutoPatientInfoRecorder/src/AntdUI/Lib/SVG/SvgDocument.cs
(开头部分) 17KB这里只显示每个文件的开头 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.Exceptions;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Xml;
namespace AntdUI.Svg
{
/// <summary>
/// The class used to create and load SVG documents.
/// </summary>
public class SvgDocument : SvgFragment, ITypeDescriptorContext
{
private SvgElementIdManager _idManager;
private Dictionary<string, IEnumerable<SvgFontFace>> _fontDefns = null;
internal Dictionary<string, IEnumerable<SvgFontFace>> FontDefns()
{
if (_fontDefns == null)
{
_fontDefns = (from f in Descendants().OfType<SvgFontFace>()
group f by f.FontFamily into family
select family).ToDictionary(f => f.Key, f => (IEnumerable<SvgFontFace>)f);
}
return _fontDefns;
}
public Uri BaseUri { get; set; }
/// <summary>
/// Gets an <see cref="SvgElementIdManager"/> for this document.
/// </summary>
protected internal virtual SvgElementIdManager IdManager
{
get
{
if (_idManager == null)
{
_idManager = new SvgElementIdManager(this);
}
return _idManager;
}
}
/// <summary>
/// Overwrites the current IdManager with a custom implementation.
/// Be careful with this: If elements have been inserted into the document before,
/// you have to take care that the new IdManager also knows of them.
/// </summary>
/// <param name="manager"></param>
后面还有 395 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。