GithubHelp home page GithubHelp logo

svgpath's Issues

CGPathGetCurrentPoint: no current point warning issued

While parsing any svgpath like the foll:

I am getting a warning like the following:
2019-02-02 12:42:26.829502+0530 XXXX [6689:423465] [Unknown process name] CGPathGetCurrentPoint: no current point.
and my code is:
let fileSVGPaths = SVGBezierPath.pathsFromSVG(at: fileUrl2!)

Is something wrong in my SVG or am I missing something?

Treat further coordinates following moveTo command as lineTo command

As sated here the moveTo command (m/M), when followed by more than one pair of coordinates, assumes the command to be a lineTo (l/L) instead. Currently the library treats it as other moveTo, so it does not draw paths starting with lines. This behaviour is what inkscape does by default, so it is not possible to draw a line from its source directly.

It may be useful to make the code conform to this pattern, as it is the way inkscape saves the elements.

SwiftUI version?

Hello Tim, any chance of a SVG->SwiftUI version?

That would be amazing! : )

SVG Command (a,A)

This library is great and helpful for create path from svg. But it does not support (a,A) command of svg.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.