Git Product home page Git Product logo

Comments (5)

jinjilynn avatar jinjilynn commented on July 30, 2024

it doesn't throw any errors

from svgpath.

puzrin avatar puzrin commented on July 30, 2024

No idea. Could you provide full code sample and browser/os info?

from svgpath.

jinjilynn avatar jinjilynn commented on July 30, 2024

d = "M786.0224 469.4016a49.7664 49.7664 0 0 1 0 85.1968L289.1776 852.5824a49.5616 49.5616 0 0 1-75.1616-42.5984v-595.968a49.5616 49.5616 0 0 1 75.1616-42.5984l496.8448 297.984z"

This is a triangular svg path

const d = svgpath.rotate(-90).scale(0.04).rel().toString()

when i console d , i get the following results,
M18.776064-31.440896a1.990656 1.990656 0 0 1 3.407872 2.0867197683519443e-16l11.91936 19.873791999999998a1.982464 1.982464 0 0 1-1.7039360000000001 3.0064640000000002l-23.83872-1.4597006071884995e-15a1.982464 1.982464 0 0 1-1.7039359999999997-3.0064640000000002l11.919360000000001-19.873792z

Browser crash is my problem, but I found that there was no separator between 18.776064 and -31.440896.

from svgpath.

puzrin avatar puzrin commented on July 30, 2024

Separators are not needed when end of sequence can be understood (when next character makes previous content invalid => effect the same as with space)

from svgpath.

jinjilynn avatar jinjilynn commented on July 30, 2024

All right, thank you.

from svgpath.

Related Issues (20)

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.