<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shiroyuki2020</author_name>
  <author_url>https://blog.hatena.ne.jp/shiroyuki2020/</author_url>
  <blog_title>プログラミングとウェブデザインの勉強メモ</blog_title>
  <blog_url>https://shiroyuki2020.hatenablog.com/</blog_url>
  <categories>
    <anon>SVG</anon>
  </categories>
  <description>SVGで図形をまとめて扱いたい場合がでてくると思います。そのようなときは、要素をグループにまとめます。関連する要素は、g要素、symbol要素、use要素、defs要素の4つです。これらについて見ていきます。 g要素 symbol要素 use要素 defs要素 参考サイト g要素 要素をグループにまとめます。色や線の幅などの属性が共通する場合、まとめて指定できます。 &lt;g style=&quot;fill:orange&quot;&gt; &lt;circle cx=&quot;100&quot; cy=&quot;100&quot; r=&quot;50&quot;/&gt; &lt;circle cx=&quot;125&quot; cy=&quot;125&quot; r=&quot;50&quot; stroke-width=&quot;4&quot; stroke…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshiroyuki2020.hatenablog.com%2Fentry%2Fintroduction_to_svg_26&quot; title=&quot;SVG|グループにまとめる:g要素,symbol要素,use要素,defs要素 - プログラミングとウェブデザインの勉強メモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/shiroyuki2020/20220620/20220620154030.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-11 19:00:00</published>
  <title>SVG|グループにまとめる:g要素,symbol要素,use要素,defs要素</title>
  <type>rich</type>
  <url>https://shiroyuki2020.hatenablog.com/entry/introduction_to_svg_26</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
