Giter VIP home page Giter VIP logo

Comments (4)

mcous avatar mcous commented on June 13, 2024

Hi @darkworks, mirroring is possible by adding either the transform SVG attribute on the main <g> node (I don't think we expose any hooks to do this, so it might be a little tricky) or by applying a CSS transform. Can you tell me a little bit more about the mirroring you're trying to accomplish? Also, are you using gerber-to-svg in JS via its API or are you using the @tracespace/cli tool?

from tracespace.

darkworks avatar darkworks commented on June 13, 2024

am using old version

bin\g2svg\node_modules.bin\gerber2svg.cmd --out '.$destination_file.' '.$source_path;

soon will update it to the new version ,
well am trying to mirror silk bottom svg , so i think it will be good if have mirror flag in it , so that we can mirror bottom silk layers , so this mean for now i have to parse svg via php xml class and have to it transform to it

from tracespace.

mcous avatar mcous commented on June 13, 2024

I do not think we'll add a mirror option because it would be another thing to maintain. If you upgrade to the new utility:

npm install @tracespace/cli@next

You can flip in X using CSS with:

tracespace --noBoard --gerber.attributes.style="transform:scale(-1,1)" ...

(Not sure what your input/output requirements are so omitted them from the example above)

from tracespace.

mcous avatar mcous commented on June 13, 2024

@darkworks the example above seems to work for me, so I'm going to close this issue. Please let me know if it doesn't work for you for whatever reason and we can reopen this ticket or file a new one as necessary

from tracespace.

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.