Exemplo n.º 1
0
 public PathShape ToPathShape(IToolContext context, string svgPathData)
 {
     if (!string.IsNullOrWhiteSpace(svgPathData))
     {
         using var path = SkiaUtil.ToPath(svgPathData);
         return(SkiaUtil.ToPathShape(context, path, context.DocumentContainer?.StyleLibrary?.CurrentItem, context?.DocumentContainer?.PointTemplate));
     }
     return(null);
 }