44,316 questions
1
vote
0
answers
39
views
Flutter vector_graphics_compiler transformer causes silent OOM / timeout in GitLab CI during flutter test
I have recently migrated a large Flutter project from flutter_svg to vector_graphics to improve rendering performance.
My project contains hundreds (if not thousands) of .svg files. I am using the ...
3
votes
2
answers
153
views
How can you draw an SVG image on a canvas without losing quality?
When drawing an SVG element onto a canvas, is there a way to replicate the appearance of the SVG as rendered directly in the document?
The SVG has a bunch of smaller triangles, with shape-rendering ...
2
votes
3
answers
233
views
How do I achive a grainy effect using an SVG after inlining it from a file?
I have an SVG as a file
<svg viewBox="0 0 200 200" xmlns='http://www.w3.org/2000/svg'>
<filter id='noiseFilter'>
<feTurbulence
type='fractalNoise'
...
4
votes
2
answers
166
views
SVG circle appears briefly at (0,0) before animating to correct position — how to fix?
I have an SVG with a blinking circle used as a loading animation. The circle is positioned at a fixed coordinate using cx and cy:
<circle cx="316" cy="59.5" r="7" fill=...
1
vote
0
answers
148
views
Qt Svg element with percentage size not correct size
I have a simple SVG file that draws a polygon over a rectangle. The size of the rectangle is given as 100%. This looks good in emacs' viewer, inkscape, firefox.
<svg xmlns="http://www.w3.org/...
Advice
0
votes
3
replies
105
views
Is it possible to overlay SVG text onto an html canvas (or an offscreen canvas)
Since html canvas text can be sometimes be a little weak, for example when displaying vertical text. Is it possible to use, something like SVG text overlayed on an html canvas to improve the ...
1
vote
1
answer
143
views
How do I insert an SVG character in Mathjax for my website? [closed]
I've implemented a wiki that uses Markdown files with MathJax for the formulas. I want to add my own SVG symbols for integrals, summations, etc. I want to be able to have variables around the new ...
1
vote
1
answer
136
views
having trouble getting d3 graph to show bars when using array of data
I have an array of data showing years and percents and I'm trying to draw a bar graph using d3. I can get a single bar drawn if I feed in numbers that I know will work, but when I'm using the x and y ...
2
votes
0
answers
76
views
Exporting Visio diagrams with MathType equation to SVG contains huge empty space, causing weird marigin when included in LaTeX
It's common practice in my workspace to draw diagrams in Visio and insert equations into them using MathType. I encountered a problem when exporting them to SVG.
In Visio these equations seems to ...
1
vote
1
answer
83
views
Missing icons using qt-materials inside a virtual environment
Different behaviour of qt-materials inside virtual environment (venv)
I am currently developing a PySide6 application and using the qt-materials library to set the stylesheet of the application. ...
3
votes
1
answer
107
views
Save Plotly 3D scatter as proper SVG
I have a very simple 3D figure constructed with Plotly as lines and disks. No surfaces. No lighting. No complexity. Just lines and disks. Here's a minimal example of this:
import numpy as np
import ...
1
vote
1
answer
120
views
SVG Divider flex container not matching height of input in React
I am building a Hero Section in React app and creating a search bar with a dropdown, input field and a vertical divider between them.
The search box is a flex container. I want the vertical divider(...
Advice
0
votes
3
replies
136
views
Whats the difference between a SVG file and a md file?
I recently created a GitHub repository for my profile. In it, I used an SVG file to display some information about myself, and then I replicated the same information using a Markdown (MD) file.
What ...
2
votes
1
answer
77
views
Ellipsis text-overflow not working / broken
The SVG spec states that I should be able to "truncate" overflowing text using an ellipsis, and gives a nice example (with an image of it working). See here:-
https://www.w3.org/TR/SVG2/text....
Tooling
0
votes
1
replies
104
views
How to use SVG sprites in Rspack?
I'm migrating from Webpack to Rspack and previously used svg-sprite-loader to generate SVG sprites.
It doesn't work with Rspack because it relies on internal Webpack APIs (NormalModule....