chiark / gitweb /
outline
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jun 2020 21:40:32 +0000 (22:40 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jun 2020 21:40:32 +0000 (22:40 +0100)
templates/test.html

index 21c096d84a85bcabd9de185e5d28aeb5ee2d77c3..69938fc96a78c79f3b9a4a89a14fc50d12c2312f 100644 (file)
@@ -12,6 +12,7 @@
       <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" />
+      <use href="#select43" x="50" y="60" />
       <defs>
        <g id="piece42">
          <circle
            />
        </g>
        <g id="piece43">
-         <rect
-           x="-10" y="-10" width="20" height="20"
-           fill="blue"
-           />
+         <g fill="blue">
+           <rect
+             x="-10" y="-10" width="20" height="20"
+             />
+         </g>
+       </g>
+       <g id="select43">
+         <g stroke="black"
+            stroke-dasharray="3 1  1 1  1 1"
+            fill="none"
+          >
+         <g transform="scale(1.1)">
+           <rect
+             x="-10" y="-10" width="20" height="20"
+             />
+         </g>
        </g>
       </defs>
     </svg>