chiark / gitweb /
wip, 2nd obj, etc.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jun 2020 21:14:04 +0000 (22:14 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jun 2020 21:14:04 +0000 (22:14 +0100)
templates/test.html

index 0804edb31890a763301113e4bd23eb4f1ec3d4b9..21c096d84a85bcabd9de185e5d28aeb5ee2d77c3 100644 (file)
@@ -9,8 +9,9 @@
         xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"
         onmousedown="drag_mousedown(event)"
         >
-      <rect fill="green" x="42" y="56" width="100" height="80"/>
+      <rect fill="green" x="20" y="20" width="200" height="100"/>
       <use href="#piece42" data-p="42" x="50" y="80" />
+      <use href="#piece43" data-p="43" x="50" y="60" />
       <defs>
        <g id="piece42">
          <circle
            fill="red" r="10"
            />
        </g>
+       <g id="piece43">
+         <rect
+           x="-10" y="-10" width="20" height="20"
+           fill="blue"
+           />
+       </g>
       </defs>
     </svg>
     <script src="script.js"></script>