コード例 #1
0
        public string ToSvgPathData(IToolContext context, ICollection <IBaseShape> selected)
        {
            var sb = new StringBuilder();

            foreach (var shape in selected)
            {
                SkiaHelper.ToSvgPathData(context, shape, sb);
            }

            return(sb.ToString());
        }
コード例 #2
0
        public string ToSvgPathData(IToolContext context, ICollection <IBaseShape> selected)
        {
            var sb     = new StringBuilder();
            var shapes = GetShapes(selected);

            if (shapes != null && shapes.Count > 0)
            {
                foreach (var shape in shapes)
                {
                    SkiaHelper.ToSvgPathData(context, shape, sb);
                }
            }
            return(sb.ToString());
        }