75 lines
1.3 KiB
JavaScript
75 lines
1.3 KiB
JavaScript
export const SHAPES = [
|
|
"ring_x",
|
|
"ring_cross",
|
|
"circle",
|
|
"square",
|
|
"triangle_up",
|
|
"triangle_down",
|
|
"triangle_left",
|
|
"triangle_right",
|
|
"ring_x",
|
|
"ring_cross",
|
|
"cross",
|
|
"star",
|
|
"heart",
|
|
"diamond",
|
|
"arrow_up",
|
|
"arrow_down",
|
|
"arrow_left",
|
|
"arrow_right",
|
|
"asterisk",
|
|
"double_excl",
|
|
"question_double",
|
|
"question_excl",
|
|
"excl_question",
|
|
"spiral",
|
|
"dots1",
|
|
"dots2",
|
|
"flower",
|
|
"pulsar",
|
|
"mandala1",
|
|
"mandala2",
|
|
"mandala3",
|
|
"mandala4",
|
|
"mandala5"
|
|
];;
|
|
|
|
export function shapeToEmoji(shape) {
|
|
const map = {
|
|
ring_x: "᳁",
|
|
ring_cross: "᪠",
|
|
circle: "●",
|
|
square: "■",
|
|
triangle_up: "▲",
|
|
triangle_down: "▼",
|
|
triangle_left: "◀",
|
|
triangle_right: "▶",
|
|
cross: "✖",
|
|
star: "★",
|
|
heart: "♥",
|
|
diamond: "◆",
|
|
arrow_up: "↑",
|
|
arrow_down: "↓",
|
|
arrow_left: "←",
|
|
arrow_right: "→",
|
|
asterisk: "※",
|
|
double_excl: "‼",
|
|
question_double: "⁇",
|
|
question_excl: "⁈",
|
|
excl_question: "⁉",
|
|
spiral: "꩜",
|
|
dots1: "𐮚",
|
|
dots2: "𐮙",
|
|
flower: "𐫱",
|
|
pulsar: "𐫰",
|
|
mandala1: "𐩕",
|
|
mandala2: "𑁍",
|
|
mandala3: "𑗊",
|
|
mandala4: "𑗌",
|
|
mandala5: "𑗍"
|
|
};
|
|
const emoji = map[shape] || "?";
|
|
return emoji;
|
|
}
|
|
|