Every line of 'createsvgpoint' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
76 function createPoint(): SVGPoint { 77 return getSVG().createSVGPoint(); 78 }
59 function getSvgPoint(svg, index) { 60 return getPoint(svg, 'x', 'y', index); 61 }
13 export default function renderPoint(a) { 14 let outerSVG = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); 15 let innerSVG = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); 16 let rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect'); 17 let path = document.createElementNS('http://www.w3.org/2000/svg', 'path'); 18 19 setAttributes(outerSVG, { 20 width: SIZE, 21 height: SIZE, 22 x: a.x, 23 y: a.y 24 }); 25 26 setAttributes(innerSVG, { 27 width: SIZE, 28 height: SIZE, 29 x: 0, 30 y: (SIZE * 0.05) * -1, 31 viewBox: '0 0 1000 1000' 32 }); 33 34 setAttributes(rect, { 35 width: SIZE, 36 height: SIZE, 37 stroke: '#000', 38 fill: '#ff0' 39 }); 40 41 setAttributes(path, { 42 d: D, 43 strokeWidth: 50, 44 stroke: '#000', 45 fill: '#fff' 46 }); 47 48 innerSVG.appendChild(path); 49 outerSVG.appendChild(rect); 50 outerSVG.appendChild(innerSVG); 51 52 return outerSVG; 53 }
18 static create(x: number, y: number){ 19 return new Point(x, y); 20 }
11 static create(x, y) 12 { 13 var point = new Point(); 14 15 if (x) 16 { 17 point.x = x; 18 } 19 20 if (y) 21 { 22 point.y = y; 23 } 24 25 return point; 26 }
334 function rlineto(x, y) { 335 path_def() 336 if (x == 0) 337 path += "\tv" + (-y).toFixed(2) + "\n" 338 else if (y == 0) 339 path += "\th" + x.toFixed(2) + "\n" 340 else 341 path += "\tl" + x.toFixed(2) + " " + 342 (-y).toFixed(2) + "\n"; 343 gcur.cx += x; 344 gcur.cy += y 345 }
55 function createPath(x, y) { 56 var path = document.createElementNS('http://www.w3.org/2000/svg', 'path'); 57 path.setAttribute('fill', 'none'); 58 path.setAttribute('stroke', 'red'); 59 path.setAttribute('stroke-width', '0.5'); 60 path.setAttribute('stroke-linejoin', 'round'); 61 path.setAttribute('stroke-linecap', 'round'); 62 path.setAttribute('d', 'M' + x + ' ' + y); 63 return path; 64 }
288 function createSVGElement(type) { 289 return document.createElementNS(SVG, type); 290 };