Skip to content

Commit b3ee42a

Browse files
committed
Add Chevron glyph
1 parent 91e656e commit b3ee42a

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

contact.png

992 Bytes
Loading

contact.svg

Lines changed: 1 addition & 1 deletion
Loading

src/sheets/core.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,17 @@ sheet.glyphs.set("castle-solid", (canvas: SVGContainer) => {
110110
return sym;
111111
});
112112

113+
sheet.glyphs.set("chevron", (canvas: SVGContainer) => {
114+
const sym = canvas.symbol();
115+
// sym.rect(40, 40).move(513.5, 1200).fill("red");
116+
sym.path("M544.345,1213.39 L534.615,1202.6 C534.167,1202.15 533.57,1201.95 532.984,1201.99 C532.398,1201.95 531.802,1202.15 531.354,1202.6 L521.624,1213.39 C520.797,1214.22 520.797,1215.57 521.624,1216.4 C522.452,1217.23 523.793,1217.23 524.621,1216.4 L532.984,1207.13 L541.349,1216.4 C542.176,1217.23 543.518,1217.23 544.345,1216.4 C545.172,1215.57 545.172,1214.22 544.345,1213.39")
117+
.stroke("none")
118+
.fill({color: "#000", rule: "evenodd"})
119+
.attr("data-playerfill", true);
120+
sym.viewbox(513.5, 1200, 40, 40);
121+
return sym;
122+
});
123+
113124
sheet.glyphs.set("circle", (canvas: SVGContainer) => {
114125
const group = canvas.symbol();
115126
const border = 15;

0 commit comments

Comments
 (0)