working on svg

This commit is contained in:
Stephan Richter
2020-09-07 01:00:57 +02:00
parent 3583a62667
commit 6db6623d8e
25 changed files with 134 additions and 170 deletions

View File

@@ -1,21 +1,4 @@
package de.srsoftware.web4rail.tiles;
import de.srsoftware.tools.Tag;
public class StraightH extends StretchableTile{
public String html() {
Tag svg = new Tag("svg")
.id("tile-"+x+"-"+y)
.clazz(classes)
.size(100,100)
.attr("viewbox", "0 0 100 100")
.style("left: "+(30*x)+"px; top: "+(30*y)+"px");
new Tag("rect")
.size(100,30)
.pos(0,35)
.addTo(svg);
return svg.toString();
}
}