mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 14:19:30 -07:00
The SVG is now given a black rectangle as a background, and its top level element now has the proper xmlns attribute. Double-clicking the SVG renderer downloads the SVG as a file called "matrix.svg".
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
const makePassSVG = () => document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
||||
const svgNS = "http://www.w3.org/2000/svg";
|
||||
const makePassSVG = () => {
|
||||
const svg = document.createElementNS(svgNS, "svg");
|
||||
svg.setAttribute("xmlns", svgNS);
|
||||
return svg;
|
||||
}
|
||||
|
||||
const loadImage = (url) => {
|
||||
const image = new Image();
|
||||
|
||||
Reference in New Issue
Block a user