preparing blocks

This commit is contained in:
Stephan Richter
2020-09-14 19:39:40 +02:00
parent 9ac2801522
commit 1e1b3f434f
4 changed files with 11 additions and 1 deletions

View File

@@ -40,6 +40,9 @@ svg rect{
svg text{ svg text{
font-size: 50px; font-size: 50px;
} }
svg .block{
fill: #ffffff;
}
.menu{ .menu{
position: fixed; position: fixed;

5
resources/svg/BlockH.svg Normal file
View File

@@ -0,0 +1,5 @@
<svg width="100" height="100" viewbox="0 0 100 100">
<rect x="0" y="35" width="100" height="30" />
<rect class="block" x="10" y="10" width="80" height="80" />
<text x="10" y="65" fill="red">I love SVG!</text>
</svg>

After

Width:  |  Height:  |  Size: 218 B

View File

@@ -1,3 +1,3 @@
<svg width="100" height="100" viewbox="0 0 100 100"> <svg width="100" height="100" viewbox="0 0 100 100">
<rect x="0" y="35" width="100" height="30" /> <rect x="0" y="35" width="100" height="30" />
</svg> </svg>

Before

Width:  |  Height:  |  Size: 107 B

After

Width:  |  Height:  |  Size: 106 B

View File

@@ -17,6 +17,7 @@ import org.slf4j.LoggerFactory;
import de.keawe.tools.translations.Translation; import de.keawe.tools.translations.Translation;
import de.srsoftware.tools.Tag; import de.srsoftware.tools.Tag;
import de.srsoftware.web4rail.tiles.BlockH;
import de.srsoftware.web4rail.tiles.CrossH; import de.srsoftware.web4rail.tiles.CrossH;
import de.srsoftware.web4rail.tiles.CrossV; import de.srsoftware.web4rail.tiles.CrossV;
import de.srsoftware.web4rail.tiles.DiagES; import de.srsoftware.web4rail.tiles.DiagES;
@@ -297,6 +298,7 @@ public class Plan {
tiles.append(new CrossH().tag()); tiles.append(new CrossH().tag());
tiles.append(new CrossV().tag()); tiles.append(new CrossV().tag());
tiles.append(new Eraser().tag()); tiles.append(new Eraser().tag());
tiles.append(new BlockH().tag());
return new Tag("div").clazz("list").content(tiles.toString()).addTo(tileMenu); return new Tag("div").clazz("list").content(tiles.toString()).addTo(tileMenu);
} }
} }