All Questions
546
questions
0
votes
0
answers
13
views
How to get different ids to svg paths in same component in angularjs?
I have a timeout button component in angularjs, it seems to work fine but when I have two buttons in the same page like below, the two timers will "mess" with each other arc paths.
<div ...
0
votes
1
answer
45
views
SVG different display depends on the html tag
im using Angular 15. I noticed weird thing, when i add svg circle by tag it displays properly, but when i put it as just raw svg it displaying weird. See screenshots.
Icon added by img tag:
enter ...
0
votes
1
answer
36
views
Using d3 v7 calculate the y value of translate to place scale at right in container
I am using d3 v7 to build drawing editor in real world coordinates(meters). To set the editor in real world coordinates I added following parameters for view box viewBox="0 0 66780 66780" ...
1
vote
1
answer
807
views
Export svg to png/tiff with foreignObject
Im using https://github.com/jgraph/drawio (mxgraph) for a project. I use AngularJS for frontend and NodeJS/Express for backend. The idea is to do a diagram design and then be able to export it/print ...
0
votes
1
answer
116
views
How to use variables in svg filter's feflood tag?
I have following code
<filter x="-0.1" y="-0.1" width="1.2" height="1.3" id="color_available">
<feFlood flood-color="#306b34&...
0
votes
1
answer
234
views
Angular js Bind a variable into tag <text x =
I am trying to pass a value within my scope into the text tag for the x:
<g transform="translate(150,40)">
<rect ng-style="{'width':info}" height="39" fill=&...
0
votes
0
answers
173
views
Convert dynamic and complex html code with SVG embedded to PDF in AngularJS
I'm getting desperate trying to get my dynamic code, from a database, and frontend-modified, composed of HTML code and a SVG embedded image, into a single PDF to download. I say, the same effect as if ...
1
vote
2
answers
1k
views
How to dynamically replace svg icon with another svg icon in angular JS?
I am using dedicated framework where the only possibility to call the svg icon is by putting the path to the icon i.e.:
<sit-command-bar sit-type="action" sit-layout="vertical"&...
1
vote
1
answer
188
views
SVG does not load on firefox
The svg image loads on all other browsers
Its not loading on Firefox
I cannot find the code on the DOM.
I am serving page from Tomcat 9.0.34
<kendo-grid grid-options="gridOptions">
<img
...
1
vote
1
answer
89
views
Call custom made function from svg element using AngularJs and D3.js
I'm currently using AngularJS I'm trying to implement a graph in D3.js that needs to have some functionalities.
So my first step was to try to launch some custom function when I double clicked on one ...
1
vote
1
answer
156
views
Get the data from a GET request before rendering D3.js graph
I'm trying to make a network graph of some data I've got in a database, I'm working on AngularJS for the front end (C# for the back end).
I found d3.js and it seems perfect, but I'm not an expert on ...
0
votes
1
answer
985
views
How can we validate SVG Image without using magic number in AngularJS
We are currently validating images using magic number. Since SVG doesn't support magic number, what is the good way to validate SVG files in angularJS ?
This is how we are validating other images -
...
0
votes
0
answers
627
views
Chrome doesn't displays SVG image sometimes
I am using the library- https://www.npmjs.com/package/angular-img-http-src to pass the byte array response of my authenitcated api to the http-src directive like this - :
<img class="img-...
2
votes
1
answer
448
views
SVGs with linear gradient not handled by Cordova - iOS
We are implementing icons in our Ionic / Cordova app that uses SVG icons and whenever exported from Adobe XD, and implemented in the iOS version of the app, the gradient part of the icon shows ...
0
votes
1
answer
158
views
How to change fill color SVG object for specific path id via AngularJS
svg:
<path id="svg_1" stroke-width="0.5" stroke="black" fill="none" d="m50.610001,63.470001l12.869999,0m0,0l0,464.709991m0,0l-12.869999,0m0,0l0,-464.709991"/>
<path id="svg_2" stroke-...