5. SVG(Scalable Vector Graphics)
<!DOC TYPE svg PUBLIC "-//W3C //DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
< s v g xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ev="http://www.w3.org/2001/xml-events"
version="1.1" baseProfile="full" version="1.1" baseProfile="full"
width="800mm" height="600mm">
<!-- blahblah -->
</ s v g >
7. VML(Vector Markup Language)
<html x m l n s :v = " u r n :s c h e m a s - m i c r o s o f t - c o m :v m l " >
x
<head>
<style> v :* { b e h a v i o r : u r l ( # d e f a u l t # V M L ) ; } </style>
v
</head>
<body>
<v:line from="10pt,10pt" to="100pt,10pt" strokecolor="red"
strokeweight="3pt" href="http://red"/>
<v:line from="100pt,10pt" to="10pt,100pt" strokecolor="black"
strokeweight="2pt">
<v:stroke dashstyle="dash"/>
</v:line>
</body>
</html></html>
13. path로 대동단결
1. VML/SVG간 지원/미지원 도형 엘리먼트가 조금씩 있음
2. <path> 또는 <v:path>를 이용하면 거의 모든 도형 공통 대응 가능
§ svg
<svg><path d="...."/></svg>
§ vml
<v:shape path="....."/>
<v:path m="....."/>
14. path commands
co m m a n d
move to
line to
curve to (cubic bezier)
curve to (quadratic bezier)
arc to
close path
separator(args)
SV G
M/m
VML
m
L/l
l
C/c
c
Q/q
qb
A/a
at/wa
Z
x/xe
whitespace
comma
17. viewport vs. coordinate
SVG
<svg viewbox="0 0 100000 100000">
element bound에 대응하는 가상의 좌표값
§ VML
<v:path coordsize="100000 100000"/>
§
element size가 총 몇등분되는지