365 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
149
views
C# WPF ViewBox Stretch
I have a small problem with the viewbox in WPF.
When I develop a window in landscape format, it looks fine.
But as soon as I display it in portrait format, it's almost unusable!?
Does anyone have any ...
0
votes
1
answer
80
views
SVG Clip Path Compatibility Issues in Word Application
I'm using a clip path (id: contour1-contourMask) to define the border of Tehran city on a contour SVG created by Plotly.here is the code: https://codepen.io/mojtaba_codepen/pen/abeKJRX
While it ...
0
votes
0
answers
72
views
Perform transform on svg viewbox
I have a need to scale SVG's using javascript. This is part of a workflow so I'll be processing these endlessly in a browser.
The issue is the incoming SVG's viewbox is 0,0,14032.00mm,9922.00mm which ...
0
votes
0
answers
35
views
Max x/y values for viewbox to prevent zooming / panning outside
I am implementing a custom zoom/pan in JS with viewbox. When the x, y, width and height for the new viewbox have been calculated, i want to set them. Before setting them, i want to check them to be ...
0
votes
1
answer
389
views
How to make the viewBox of an SVG Overlay the same size as the image underneath?
I would like to build a small GUI using the Python NiceGUI Library.
For my application I split the interface into two columns using the grid element. This works fine. On the left there are cards with ...
0
votes
0
answers
59
views
SVG viewbox, Safari is positioning (relative / absolute) based on viewbox, so it's fixed to that size regardless on the screensize change
<?xml version="1.0" encoding="UTF-8"?>
<?AdobeSVGViewer save="snapshot"?>
<svg version="1.1"
baseProfile="full"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://...
1
vote
2
answers
64
views
Why does y=0 does not stick the svg-circle to the top when viewBox starts at 0
It basically have a small html-file which contains this html:
<svg viewBox="0 0 400 15">
<circle cx="200" cy="0" r="5" fill="black"/>
&...
Lenn's user avatar
- 1,511
0
votes
1
answer
94
views
Get the effective viewbox of an <svg> element?
An <svg> element is allowed to have a viewBox and a preserveAspectRatio attribute, which together determine the actual viewbox that is displayed on screen.
The viewBox attribute specifies a ...
0
votes
1
answer
149
views
display path into 4 segment using SVG View-box in angular
i am having very big railway track as path in svg path...but i want to divide the track into 4 and display one by one...please suggest me a code in angular
i tried by splitting the values into 4 and ...
0
votes
0
answers
88
views
SVG: Calculate viewbox depending on path to centre
I have many SVG files who needs editing so the only polygon they have is nicely centred and fills the screen but I cannot make up my mind on how to calculate the viewbox.
Given the following viewbox, ...
0
votes
1
answer
153
views
Wrong viewBox inside a sprite
I struggled for a long time to satisfy the customer and found a solution. I use svg sprites and tags inside to insert icons in css. It works great, but changing the resolution obviously breaks the ...
1
vote
0
answers
30
views
Viewbox weirdly stretches (but only in one axis) wpf
I'm creating Snake game, in which I can change amount of rows and columns.
When I set for example 3 cols and 30 rows, everything works fine, game Grid fits in Viewbox (which is a square), overlays ...
-1
votes
1
answer
144
views
update svg viewBox and size but avoid zooming instability
I want to change the attributes on an svg element in an html page.
svgElement.setAttribute("width", `${width_}`); //instruction 1
svgElement.setAttribute("height", `${height_}`); //...
-1
votes
2
answers
87
views
Adapting the SVG of a Phoenician letter for a HTML site
I'm trying to adapt an open-source SVG created in Inkscape so it can be embedded on my experimental website in the same I've done so with other SVGs from the same alphabet.
Phoenician "mem" ...
0
votes
1
answer
38
views
Viewbox is greyed out when the window opens
I had a UniformGrid that I filled with buttons but wanted the content to change size with the window so I added a viewbox.
<Viewbox Grid.ColumnSpan="1" Stretch="Fill" Margin=&...