working on svg
This commit is contained in:
@@ -1,20 +1,5 @@
|
||||
package de.srsoftware.web4rail.tiles;
|
||||
|
||||
import de.srsoftware.tools.Tag;
|
||||
|
||||
public class DiagNE extends Tile{
|
||||
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("polygon")
|
||||
.attr("points","35,0 65,0 100,35 100,65")
|
||||
.addTo(svg);
|
||||
|
||||
return svg.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user