Home>

Ride figure in this format:

<
? php.
Header ('Content-Type: Image /SVG + XML');
Header ('Content-Disposition: FileName= Example.svg');
    Echo "<
? xml version= \ "1.0 \" encoding= \ "UTF-8 \" STANDALONE= \ "NO \"? >
≪
SVG Version= \ "1.1 \"
     BaseProfile= \ "FULL \"
     xmlns= \ "http: //www.w3.org/2000/svg \"
     XMLNS: XLink= \ "http: //www.w3.org/1999/xlink \"
     XMLNS: EV= \ "http: //www.w3.org/2001/xml-events \" >
    ≪
g fil= \ "none \" stroke= \ "black \" >
\ n ";
        $ x1= 20; $ y1= 20;
        $ x2= 100; $ y2= 100;
            Echo "<
Line Stroke-width= \ "1 \" x1= \ "$ x1 \" y1= \ "$ y1 \" x2= \ "$ x2 \" y2= \ "$ y2 \" />
\ n ";
                .......
    Echo "<
/G >
≪
/SVG >
 \ n ";? >

You need to arrange the figures as compactly in a limited framework, allow 200kh300px without changing their scale (sample photo). The size and shape of the figures each time the script is met. Is it possible in principle? And if so, in which direction to think? Is it easier to PHP, on javascript?

Please correct the question so that it reflects the specific problem with a sufficient number of details to be able to give an adequate answer.

Дух сообщества♦2021-09-09 08:25:52

The question does not have connection with PJ, it is a mathematical /geometric task.

Daniel Protopopov2021-09-09 10:12:48