44,366 questions
0
votes
0
answers
40
views
How to scroll down a page containing svg-pan-zoom using swipe
I have a page with a couple of SVG elements employing svg-pan-zoom, as well as text and images in the same page.
I have successfully used hammer.js to implement a pinch-zoom on the SVG elements.
On a ...
-3
votes
1
answer
82
views
Can't make my .svg favicon show up on GitHub pages or locally? [closed]
I feel like I have tried everything.
I am using Safari.
I am trying to make my favicon .svg to show up on my portfolio in GitHub pages.
The code in question is placed in the of my index.html
I have ...
1
vote
1
answer
72
views
How do I clip an element in SVG after rotation?
I have a rotated rectangle (square) that I want to clip by another, not rotated, rectangle:
<svg width="800" height="800">
<defs>
<clipPath id="Clip01&...
0
votes
2
answers
54
views
Removing Transforms manually from SVG
I want to get rid of transforms in my SVG, for more simplicity in dealing with my already complex shapes and code. I manipulate the inline SVG dynamically on my web site in PHP.
Transforms has four ...
Tooling
0
votes
3
replies
38
views
Recommendation of Dynamic Animated SVGs for GitHub Landing Repo Usage (Not common static SVGs)
Question
I am creating a GitHub profile landing repository (the special repository where a README is rendered automatically on the profile page).
Here are some examples of profile landing repositories ...
-6
votes
1
answer
187
views
What is the problem namespaces in XML trying to solve? [closed]
I've spent way too many hours trying to understand XML namespaces and I'm genuinely confused about why they're necessary.
Here's what I understand:
We want to mix bunch of XML dialects
Namespaces ...
1
vote
0
answers
57
views
Unable to get internal image elements rendered with Qt6.9.2 QSvgRenderer to maintain aspect ratio
A little background. I had been using Qt5.15 in conjunction with WebKit to do svg renderering to .png images in the past, and decided to update to Qt6. As part of this decision, I also wanted to get ...
-3
votes
1
answer
109
views
Rescale SVG to a Target size
I have a number of SVGs that have been produce, as an example:
<?xml version="1.0" encoding="UTF-8"?>
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ...
1
vote
0
answers
52
views
SVG animation works in Chrome but not in Firefox: the airplane doesn't move [duplicate]
I'm facing an issue where an SVG animation (airplane moving along a path) works correctly in Google Chrome, but in Mozilla Firefox, the animation doesn't play — the airplane remains static.
<?xml ...
0
votes
0
answers
56
views
Svg with imported external stylesheet doesn't work as a site icon [duplicate]
I've been trying to find a way to use css to dynamically edit the colors of an svg file used for the favicon on this webpage I'm working on. The closest thing I've found to a solution is using @import ...
0
votes
2
answers
87
views
SVG icon gets clipped from the top when used inside a circular container
I am facing an issue where an SVG icon is getting clipped from the top when it is displayed inside a circular container.
I tried centering with flexbox, adjusting margins, and changing overflow ...
1
vote
0
answers
73
views
SVG morphing text into shapes
I have asked several AIs on how to go about this, I've looked up som many searches but I think it would help if I knew what to look up. Anyways, my problem in the code below is that I have a website ...
2
votes
0
answers
72
views
Why is my custom .svg (edited using Inkscape from a SF Symbols template) not being displayed properly in Xcode?
As a preface, I am a beginner to everything. Needless to say, patience for my ignorance will be greatly appreciated.
I am trying build an app where the user can input a list of numbers and get the ...
Advice
0
votes
2
replies
58
views
How do I set the matplotlib co-ordinate system to SVG
A synopsis of my code.
import matplotlib.pyplot as plt
import shapely.plotting
from shapely.geometry import Polygon
facing = 'north'
shape = 'triangle'
polygon = Polygon(((1, 17), (9, 1), (17,...
0
votes
0
answers
96
views
Sync HTML selection box with rotated SVG element (rotation drift & incorrect bounds)
I am building a simple SVG editor (move / resize / rotate with custom pivot).
The SVG element is transformed using SVG transforms, but the selection box is NOT SVG — it is a HTML <div> overlay ...