Category : svg

Help me understand how it might work. https://edco.renoworks.com/pages/project/new Here, on the loaded image, you can draw surfaces, set a perspective to them and load materials into them. I want to repeat it functionality. My problem is that I don’t understand how perspective works. How did they do it, that by setting 4 points, they create ..

Read more

I know how to create SVG element in javascript with document.createElementNS("http://www.w3.org/2000/svg",’svg’); but i don’t know how to initial this SVG with a string that I get from server side. For example i have it: let svgAsString = "<svg height="210" width="400"><path d="M150 0 L75 200 L225 200 Z" /></svg>"; let svg = document.createElementNS("http://www.w3.org/2000/svg",’svg’); Now, i want ..

Read more

I’m trying to convert my map, which is an svg, into a png. I’ve installed save-svg-as-png from https://www.npmjs.com/package/save-svg-as-png, and it seems to be almost working, except that the png that gets downloaded is completely blank. I’m still very much a beginner so it could be a very basic mistake I’m making. Any help would be ..

Read more