<embed src="....svg" width="°¡·ÎÆø" height="¼¼·Î³ôÀÌ"> : ºäÆ÷Æ® Àç ¼³Á¤
<svg width="300px"
height="100px"> <g fill="none" stroke="black" stroke-width="3"> <line x1="0" y1="1.5" x2="300" y2="1.5" /> <line x1="1.5" y1="0" x2="1.5" y2="100" /> </g> <g fill="red" stroke="none" > <rect x="0" y="0" width="3" height="3" /> <rect x="297" y="0" width="3" height="3" /> <rect x="0" y="97" width="3" height="3" /> </g> <g font-size="14" font-family="Verdana" > <text x="10" y="20">(0,0)</text> <text ...>(300,0)</text><text ...>(0,100)</text> </g> <g><text ...>ABC (orig coord system) ...</g> </svg> |
<embed src="..." width="300"
height="100">
|
<embed src="..." width="150"
height="100"> |
<svg width="300px" height="150px"> <g fill="none" stroke="black" stroke-width="3"> <line x1="0" y1="1.5" x2="300" y2="1.5" /> <line x1="1.5" y1="0" x2="1.5" y2="150" /> </g> <g> <text x="30" y="30" font-size="18" ... > ABC (orig coord system) </text> </g> </svg> |
|
<svg width="300px" height="150px"> <g ... > <line ... /> <line ... /> </g> <g> <text ...>ABC (orig coord system)... </g> <g transform="translate(50,50)"> <g fill="none" stroke="red" stroke-width="3"> <line x1="0" y1="0" x2="50" y2="0" /> <line x1="0" y1="0" x2="0" y2="50" /> </g> <text x="30" y="30" font-size="18" ... > ABC (translated coord system) </text> </g> </svg> |
|
<svg width="200px"
height="220px"> <g fill="none" stroke="black" ...> <line ...> <line ...> </g> <g transform="translate(50,30)"> <g transform="rotate(30)"> <g fill="none" stroke="red" stroke-width="3" > <line x1="0" y1="0" x2="50" y2="0" /> <line x1="0" y1="0" x2="0" y2="50" /> </g> <text x="0" y="0" ... fill="blue" >ABC (rotate)</text> </g> </g> <g transform="translate(200,40)"> <g transform="scale(0.75)"> <g fill="none" stroke="red" stroke-width="3" > <line x1="0" y1="0" x2="50" y2="0" /> <line x1="0" y1="0" x2="0" y2="50" /> </g> <text x="0" y="0" ... fill="blue" >ABC (scale)</text> </g> </g> </svg> |
|
<svg width="200px" height="220px"> <g fill="none" stroke="black" ... > <line ...> <line ...> </g> <g transform="translate(30,30)"> <g transform="skewX(30)"> <g stroke="red" ...> <line x1="0" ...> <line x1="0" ...> </g> <text x="0" y="0" ... fill="blue" >ABC (skewX)</text> </g> </g> <g transform="translate(30,140)"> <g transform="skewY(30)"> <g stroke="red" ...> <line x1="0" ...> <line x1="0" ...> </g> <text x="0" y="0" ... fill="blue" >ABC (skewY)</text> </g> </g> </svg> |
|
<svg width="200px" height="250px"> |
|
<svg
width="300px" height="200px" viewBox="0 0 1500 1000" preserveAspectRatio="none"> <rect x="0" y="0" width="1500" height="1000" fill="yellow" stroke="blue" stroke-width="12" /> <path fill="red" d="M 750,100 L 250,900 L 1250,900 z"/> <text x="100" y="600" font-size="200" ... > Stretch to fit </text> </svg> preserveAspectRatio="none" 1) width="150" height="100" 2) width="80" height="100" preserveAspectRatio ¾øÀ½ (xMidYMid meet) 3) width="150" height="80" 4) width="80" height="80" preserveAspectRatio="xMaxYMax slice" 5) width="150" height="80" 6) width="80" height="80" |
|
|
|
|
|
|
|
<svg width="250"
height="150"> <rect x="2" y="2" width="248" height="148" fill="none" stroke="red" stroke-width="2"/> <text x="10" y="30" fill="black" stroke="black" font-size="20">* Original Viewport *</text> <!-- a new viewport --> <svg x="50" y="40" width="150" height="80"> <rect x="2" y="2" width="248" height="148" fill="yellow" stroke="blue" stroke-width="4"/> <text x="10" y="30" fill="blue" stroke="blue" font-size="20">* New Viewport *</text> </svg> </svg> |
|
<svg width="200px" height="600px"
viewBox="0 0 2000 6000"> <rect x="20" y="20" width="1980" height="3980" fill="none" stroke="blue" stroke-width="20"/> <g fill="blue" stroke="red" font-family="Verdana" font-size="200"> <g transform="translate(400,0)"> <text x="-50" y="300" fill="black" stroke="none">User unit:</text> <rect x="0" y="400" width="768" height="384" stroke-width="76.8"/> </g> <g transform="translate(400,1000)"> <text x="-50" y="300" fill="black" stroke="none">Abs. unit:</text> <rect x="0" y="400" width="8in" height="4in" stroke-width=".8in"/> </g> <g transform="translate(400,2000)"> <text x="-50" y="300" fill="black" stroke="none">Rel. unit:</text> <rect x="0" y="400" width="4em" height="2em" stroke-...=".4em"/> </g> <g transform="translate(400,3000)"> <text x="-50" y="300" fill="black" stroke="none">Percentage:</text> <rect x="0" y="400" width="40%" height="10%" stroke-width="3%"/> </g> </g> </svg> |