{"id":157965,"date":"2012-11-09T04:30:02","date_gmt":"2012-11-09T00:30:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=157965"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=157965","title":{"rendered":"<span class=\"post_title\">\u0421\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f SVG-\u0433\u0440\u0430\u0444\u0438\u043a\u0438<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<a href=\"http:\/\/habrahabr.ru\/post\/157087\/\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0438\u0437\u0443\u0447\u0430\u0442\u044c SVG-\u0433\u0440\u0430\u0444\u0438\u043a\u0443<\/a>, \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043a\u043e\u0441\u043d\u0435\u043c\u0441\u044f \u0441\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/f17\/067\/d06\/f17067d0606019042fd33aa5c8158043.png\"\/><\/p>\n<p>  <a href=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/svg2\/\">\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432<\/a> \/ <a href=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/svg2\/svg2.zip\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438<\/a><\/p>\n<p>  \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 SVG-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e HTML, \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044f\u043c\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u043e\u043d \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c <strong>fill<\/strong>, \u0430 \u043d\u0435 background-color, \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u00a0\u2014 <strong>stroke<\/strong> \u0432\u043c\u0435\u0441\u0442\u043e border. \u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441 Adobe Illustrator, \u043f\u043e\u0434\u043e\u0431\u043d\u0430\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u043a\u043e\u043c\u0430.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  <img decoding=\"async\" title=\"svg-editor\" src=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/svg-editor.jpg\"\/><\/p>\n<p>  \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e <a href=\"http:\/\/www.w3.org\/TR\/SVG\/propidx.html\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 SVG<\/a>\u00a0\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u0442\u0435\u0433\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <strong>fill<\/strong> \u0438 <strong>stroke<\/strong> \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 rect:<\/p>\n<pre><code class=\"html\">&lt;svg&gt;   &lt;rect width=&quot;200&quot; height=&quot;200&quot; fill=&quot;slategrey&quot; stroke=&quot;black&quot; stroke-width=&quot;3&quot;\/&gt;   &lt;\/svg&gt; <\/code><\/pre>\n<p>  <img decoding=\"async\" title=\"rect-1\" src=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/rect-1.jpg\"\/><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u043a \u0441\u0442\u0438\u043b\u044c. \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043a <strong>fill<\/strong> \u0438 <strong>stroke<\/strong> \u043f\u0440\u0438\u0431\u0430\u0432\u0438\u043b\u043e\u0441\u044c CSS3 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>transform<\/strong>:<\/p>\n<pre><code class=\"html\">&lt;svg&gt;   &lt;rect x=&quot;203&quot; width=&quot;200&quot; height=&quot;200&quot; style=&quot;fill:slategrey; stroke:black; stroke-width:3; -webkit-transform: rotate(45deg);&quot;\/&gt;   &lt;\/svg&gt;  <\/code><\/pre>\n<p>  <img decoding=\"async\" title=\"rect-2\" src=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/rect-2.jpg\"\/><\/p>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a SVG\u00a0\u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 XML-\u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0435, \u0442\u043e \u0441\u0442\u0438\u043b\u044c \u0432 .svg-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432 CDATA, \u0438\u043d\u0430\u0447\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432\u0430\u0442\u044c \u0441 XML-\u043f\u0430\u0440\u0441\u0435\u0440\u0430\u043c\u0438. \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d hover-\u044d\u0444\u0444\u0435\u043a\u0442:<\/p>\n<pre><code class=\"html\">&lt;style type=&quot;text\/css&quot; media=&quot;screen&quot;&gt;       &lt;![CDATA[       #internal rect {           fill: slategrey;           stroke: black;           stroke-width: 3;           -webkit-transition: all 350ms;       }       #internal rect:hover {           fill: green;       }       ]]&gt;   &lt;\/style&gt;  <\/code><\/pre>\n<p>  <img decoding=\"async\" title=\"rect-3\" src=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/rect-3.jpg\"\/><\/p>\n<p>  \u0412 .svg-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443:<\/p>\n<pre><code class=\"xml\">&lt;?xml-stylesheet type=&quot;text\/css&quot; href=&quot;style.css&quot;?&gt;    <\/code><\/pre>\n<p>  SVG-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u0433\u0430 g, \u0442\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043e\u0431\u0449\u0438\u0435 \u0441\u0442\u0438\u043b\u0438:<\/p>\n<pre><code class=\"html\">&lt;g style=&quot;fill:slategrey; stroke:black; stroke-width:3; fill-opacity: 0.5;&quot;&gt; \t&lt;rect x=&quot;203&quot; width=&quot;200&quot; height=&quot;200&quot;\/&gt; \t&lt;circle cx=&quot;120&quot; cy=&quot;106&quot; r=&quot;100&quot;\/&gt; &lt;\/g&gt; <\/code><\/pre>\n<p>  <img decoding=\"async\" title=\"rect-4\" src=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/rect-4.jpg\"\/><\/p>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0441\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 SVG. \u0411\u043e\u043d\u0443\u0441\u043e\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0447\u0442\u0438\u0432\u0430:  <\/p>\n<ul>\n<li><a href=\"http:\/\/www.w3.org\/TR\/SVG\/styling.html\">\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u0441\u0442\u0438\u043b\u044f\u043c<\/a> \u043d\u0430 w3.org<\/li>\n<li><a href=\"http:\/\/alignedleft.com\/tutorials\/d3\/an-svg-primer\/\">\u0425\u043e\u0440\u043e\u0448\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b<\/a> \u0432 \u0431\u043b\u043e\u0433\u0435 alignedleft.com<\/li>\n<li><a href=\"http:\/\/demo.hongkiat.com\/scalable-vector-graphic-css-styling\/index.html\">\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432<\/a> \u043d\u0430 hongkiat.com<\/li>\n<\/ul>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/157965\/\"> http:\/\/habrahabr.ru\/post\/157965\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<a href=\"http:\/\/habrahabr.ru\/post\/157087\/\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0438\u0437\u0443\u0447\u0430\u0442\u044c SVG-\u0433\u0440\u0430\u0444\u0438\u043a\u0443<\/a>, \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043a\u043e\u0441\u043d\u0435\u043c\u0441\u044f \u0441\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/f17\/067\/d06\/f17067d0606019042fd33aa5c8158043.png\"\/><\/p>\n<p>  <a href=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/svg2\/\">\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432<\/a> \/ <a href=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/svg2\/svg2.zip\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438<\/a><\/p>\n<p>  \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 SVG-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e HTML, \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044f\u043c\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u043e\u043d \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c <strong>fill<\/strong>, \u0430 \u043d\u0435 background-color, \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u00a0\u2014 <strong>stroke<\/strong> \u0432\u043c\u0435\u0441\u0442\u043e border. \u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441 Adobe Illustrator, \u043f\u043e\u0434\u043e\u0431\u043d\u0430\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u043a\u043e\u043c\u0430.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-157965","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=157965"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157965\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=157965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=157965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=157965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}