Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path , size , viewbox not working !! #125

Open
lambdaxyzt opened this issue Sep 10, 2024 · 3 comments
Open

path , size , viewbox not working !! #125

lambdaxyzt opened this issue Sep 10, 2024 · 3 comments

Comments

@lambdaxyzt
Copy link

why path , size , viewbox not working in this library ?!

const draw = SVG(document.documentElement)
 const draw = canvas.size(600, 600).viewbox(0, 0, svgWidth, svgHeight)  // Create an SVG canvas of 350x350
draw.path(arcPath).fill(color).stroke({width: 0.5, color: 'black'});
@Fuzzyma
Copy link
Member

Fuzzyma commented Sep 10, 2024

This is the svgdom repo, not svg.js. What exactly do you expect to happen?

@lambdaxyzt
Copy link
Author

wow , somone answer , nice , thank for your product , it is great , oh so I should create with svg js then attach it to svgdom for render ? I thought you should use it like above in nodejs to generate svg string

@Fuzzyma
Copy link
Member

Fuzzyma commented Sep 15, 2024

Yes that is true.
I still don't know what your issue is though.

What do you expect to happen?
What is happening instead?

Give me something to work with!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants