Comments (4)
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.
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.
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.
@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)
- About Use Three.js load 3d components
- Allow soldermask layer to cover vias in board render HOT 3
- Outline SVG is coming blank for a particular Gerber file and that is distorting the top and bottom view HOT 2
- Does whats-that-gerber parses and identifies whether slots or cutouts exist in a drill file?? HOT 9
- outline layer is not rendered correctly. HOT 2
- drill layer is not rendered correctly disturbed by origin HOT 2
- Incorrectly Rendered Board Outline HOT 1
- clipPath is not rendered correctly and set gap fill limit HOT 1
- Error: File type not recognized in v5 HOT 2
- About Allegro CAD drill's places HOT 2
- Error: NetworkError when attempting to fetch resource. HOT 2
- filled copper area traces are missing HOT 2
- drill layer not rendered correctly in v4 and v5
- gpu accelerated computing
- Maxiumum call stack exceeded when reading some Gerber files HOT 2
- Drill zero suppression parsing issue (?)
- Drill layer rendering problem,the coordinate center is rendered as a drill hole HOT 1
- How to install...
- Plot return empty children when parsing my gerber file
- Layer rendering error of type gerber in version 4.2.8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tracespace.