question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello, I have a need to resize the svg to fit whatever container size it is in. I don’t see that option in the config attribute. i see it is hard set in the source code and then it looks like it gets overwritten by getBoundingClientRect() in src/components/background/VBackgroundGrid.vue

am i missing how to use this correctly? any help is appreciated

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dash14commented, May 27, 2022

Hi @Kade-Powell, Thank you for your reply. Perhaps the following import style.css line is missing in main.ts?

import VNetworkGraph from "v-network-graph";
import "v-network-graph/lib/style.css";  // ⭐ 

For more information, please see here.

Best Regards,

0reactions
Kade-Powellcommented, May 27, 2022

Hello i was able to fix my issue by setting the v-canvas class in my containing component.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resize a SVG image
Open the SVG file with your text editor. It should show lines of code as below. ... As you can see, width and...
Read more >
Resizing SVG in html?
Open your .svg file with a text editor (it's just XML), and look for something like this at the top: <svg ... width="50px"...
Read more >
How to Scale SVG
Any height or width you set for the SVG with CSS will override the height and width attributes on the <svg> . So...
Read more >
Free Online Resize SVG Images with High output Quality
How to resize SVG images using Aspose.Imaging Resize · Click inside the file drop area to upload SVG images or drag & drop...
Read more >
Resize many SVG vector images online for free
Resize SVG. Resize SVG by defining new height and width pixels. Resize many SVG images at once online. Upload your file and transform...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found