tracespace / gerber-to-svg

gerber-to-svg development moved to tracespace/tracespace
https://github.com/tracespace/tracespace
MIT License
81 stars 17 forks source link

how to change color of svg #45

Closed darkworks closed 6 years ago

darkworks commented 6 years ago

any idea how to change color of svg i tried with

--color "red"

--color "hex color code"

-- color "rgb color code " but none works

also how to pass width and height , tried

--width "100%"  
--width 100%

poor documentation :(

mcous commented 6 years ago

Sorry for the inconvenience! The CLI --color option is currently broken. It will be fixed when this project is moved to the tracespace/tracespace monorepo.

Closing this issue because it is a duplicate of #35

also how to pass width and height

Width and height options are not available via the CLI. If you would like to request that feature, please consider opening another ticket. Otherwise, you could use the JS API to configure color, width, and height via the attributes option as detailed in the API documentation.

mcous commented 6 years ago

@darkworks v4.0.0-next.6 of gerber-to-svg was just released (npm install -g gerber-to-svg@next). You may now specify color, width, height, and any other attribute you want to add:

gerber-to-svg --attr.color=blue --attr.width='100%' --attr.height='100%' -- some_file.gbr
darkworks commented 6 years ago

thanks

darkworks commented 6 years ago

can you paste v4.0.0-next github link

kasbah commented 6 years ago

Everything has moved to a monorepo: https://github.com/tracespace/tracespace. Is that what you were asking for?

darkworks commented 6 years ago

ya thanks