@42-central/ui-react 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-DJAXXLN6.js → chunk-F2FSHVO5.js} +3 -3
- package/dist/{chunk-DJAXXLN6.js.map → chunk-F2FSHVO5.js.map} +1 -1
- package/dist/components/ambient-background/ambient-background.d.ts +14 -3
- package/dist/components/ambient-background/ambient-background.d.ts.map +1 -1
- package/dist/components/ambient-background/index.js +222 -1
- package/dist/components/ambient-background/index.js.map +1 -1
- package/dist/components/ambient-background/starfield.d.ts +13 -0
- package/dist/components/ambient-background/starfield.d.ts.map +1 -0
- package/dist/components/camera/index.js +2 -2
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/geodesic/a11y.d.ts +15 -0
- package/dist/components/geodesic/a11y.d.ts.map +1 -0
- package/dist/components/geodesic/activity-badge.d.ts +5 -0
- package/dist/components/geodesic/activity-badge.d.ts.map +1 -0
- package/dist/components/geodesic/badge-frame.d.ts +60 -0
- package/dist/components/geodesic/badge-frame.d.ts.map +1 -0
- package/dist/components/geodesic/exam-badge.d.ts +5 -0
- package/dist/components/geodesic/exam-badge.d.ts.map +1 -0
- package/dist/components/geodesic/geometry.d.ts +1089 -0
- package/dist/components/geodesic/geometry.d.ts.map +1 -0
- package/dist/components/geodesic/gift-box-badge.d.ts +5 -0
- package/dist/components/geodesic/gift-box-badge.d.ts.map +1 -0
- package/dist/components/geodesic/gift-token.d.ts +23 -0
- package/dist/components/geodesic/gift-token.d.ts.map +1 -0
- package/dist/components/geodesic/glyph-slot.d.ts +8 -0
- package/dist/components/geodesic/glyph-slot.d.ts.map +1 -0
- package/dist/components/geodesic/index.d.ts +12 -0
- package/dist/components/geodesic/index.d.ts.map +1 -0
- package/dist/components/geodesic/index.js +917 -0
- package/dist/components/geodesic/index.js.map +1 -0
- package/dist/components/geodesic/module-badge.d.ts +5 -0
- package/dist/components/geodesic/module-badge.d.ts.map +1 -0
- package/dist/components/geodesic/planet.d.ts +30 -0
- package/dist/components/geodesic/planet.d.ts.map +1 -0
- package/dist/components/geodesic/project-badge.d.ts +5 -0
- package/dist/components/geodesic/project-badge.d.ts.map +1 -0
- package/dist/components/geodesic/skill-badge.d.ts +5 -0
- package/dist/components/geodesic/skill-badge.d.ts.map +1 -0
- package/dist/components/geodesic/social-badge.d.ts +8 -0
- package/dist/components/geodesic/social-badge.d.ts.map +1 -0
- package/dist/components/geodesic/status.d.ts +80 -0
- package/dist/components/geodesic/status.d.ts.map +1 -0
- package/dist/components/geodesic/styles.css +146 -0
- package/dist/components/photo-capture/index.js +2 -2
- package/dist/theme.css +75 -0
- package/package.json +2 -1
- package/src/as-child.contract.test.tsx +2 -0
- package/src/components/ambient-background/ambient-background.test.tsx +59 -0
- package/src/components/ambient-background/ambient-background.tsx +15 -2
- package/src/components/ambient-background/starfield.tsx +331 -0
- package/src/components/geodesic/a11y.ts +10 -0
- package/src/components/geodesic/activity-badge.tsx +17 -0
- package/src/components/geodesic/badge-frame.tsx +324 -0
- package/src/components/geodesic/exam-badge.tsx +17 -0
- package/src/components/geodesic/geometry.test.ts +60 -0
- package/src/components/geodesic/geometry.ts +367 -0
- package/src/components/geodesic/gift-box-badge.tsx +17 -0
- package/src/components/geodesic/gift-token.tsx +104 -0
- package/src/components/geodesic/glyph-slot.tsx +28 -0
- package/src/components/geodesic/index.ts +13 -0
- package/src/components/geodesic/module-badge.tsx +17 -0
- package/src/components/geodesic/planet.tsx +131 -0
- package/src/components/geodesic/project-badge.tsx +17 -0
- package/src/components/geodesic/skill-badge.tsx +17 -0
- package/src/components/geodesic/social-badge.tsx +21 -0
- package/src/components/geodesic/status.test.ts +66 -0
- package/src/components/geodesic/status.ts +176 -0
- package/src/components/geodesic/styles.css +146 -0
- package/src/icon-stroke.test.tsx +7 -0
- package/src/theme.css +75 -0
- package/src/theme.test.ts +10 -2
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
// Generated by scripts/generate-geometry.ts — do not edit by hand.
|
|
2
|
+
// Run `pnpm --filter @42/ui-react generate:geodesic` to rebuild it.
|
|
3
|
+
|
|
4
|
+
export const GEOMETRY = {
|
|
5
|
+
module: {
|
|
6
|
+
facets: [
|
|
7
|
+
{ points: "21.49,49.86 17.83,46.03 29.07,52.27", tone: 0, rank: 1 },
|
|
8
|
+
{ points: "17.83,46.03 27.26,45.3 29.07,52.27", tone: 1, rank: 3 },
|
|
9
|
+
{ points: "29.07,52.27 27.26,45.3 37.53,48.62", tone: 1, rank: 2 },
|
|
10
|
+
{ points: "17.83,46.03 18.41,38.01 27.26,45.3", tone: 2, rank: 8 },
|
|
11
|
+
{ points: "29.07,52.27 37.53,48.62 41.43,50.76", tone: 0, rank: 0 },
|
|
12
|
+
{ points: "13.81,41.4 12,34.43 17.83,46.03", tone: 2, rank: 9 },
|
|
13
|
+
{ points: "17.83,46.03 12,34.43 18.41,38.01", tone: 2, rank: 11 },
|
|
14
|
+
{ points: "41.43,50.76 47.25,42.87 50.19,42.09", tone: 0, rank: 5 },
|
|
15
|
+
{ points: "50.19,42.09 47.25,42.87 52.43,33.87", tone: 0, rank: 10 },
|
|
16
|
+
{ points: "41.43,50.76 37.53,48.62 47.25,42.87", tone: 0, rank: 4 },
|
|
17
|
+
{ points: "37.53,48.62 27.26,45.3 38.5,39.49", tone: 1, rank: 6 },
|
|
18
|
+
{ points: "27.26,45.3 27.26,33.25 38.5,39.49", tone: 2, rank: 12 },
|
|
19
|
+
{ points: "38.5,39.49 27.26,33.25 37.53,28.12", tone: 2, rank: 16 },
|
|
20
|
+
{ points: "27.26,45.3 18.41,38.01 27.26,33.25", tone: 2, rank: 13 },
|
|
21
|
+
{ points: "18.41,38.01 12,34.43 17.83,26.54", tone: 3, rank: 17 },
|
|
22
|
+
{ points: "12,34.43 13.81,21.91 17.83,26.54", tone: 3, rank: 23 },
|
|
23
|
+
{ points: "17.83,26.54 13.81,21.91 21.49,16.7", tone: 3, rank: 29 },
|
|
24
|
+
{ points: "12,34.43 11.57,30.13 13.81,21.91", tone: 3, rank: 21 },
|
|
25
|
+
{ points: "42.51,14.14 50.19,22.6 41.43,19.22", tone: 2, rank: 31 },
|
|
26
|
+
{ points: "50.19,22.6 47.25,30.82 41.43,19.22", tone: 2, rank: 27 },
|
|
27
|
+
{ points: "41.43,19.22 47.25,30.82 37.53,28.12", tone: 2, rank: 26 },
|
|
28
|
+
{ points: "50.19,22.6 52.43,33.87 47.25,30.82", tone: 1, rank: 20 },
|
|
29
|
+
{ points: "42.51,14.14 41.43,19.22 32,12.51", tone: 3, rank: 36 },
|
|
30
|
+
{ points: "41.43,19.22 29.07,20.73 32,12.51", tone: 3, rank: 33 },
|
|
31
|
+
{ points: "32,12.51 29.07,20.73 21.49,16.7", tone: 3, rank: 35 },
|
|
32
|
+
{ points: "41.43,19.22 37.53,28.12 29.07,20.73", tone: 3, rank: 28 },
|
|
33
|
+
{ points: "42.51,14.14 32,12.51 34.93,11.73", tone: 3, rank: 38 },
|
|
34
|
+
{ points: "32,12.51 22.57,13.24 34.93,11.73", tone: 3, rank: 39 },
|
|
35
|
+
{ points: "32,12.51 21.49,16.7 22.57,13.24", tone: 3, rank: 37 },
|
|
36
|
+
{ points: "42.51,14.14 46.17,17.97 50.19,22.6", tone: 2, rank: 32 },
|
|
37
|
+
{ points: "50.19,22.6 52,29.57 52.43,33.87", tone: 1, rank: 22 },
|
|
38
|
+
{ points: "37.53,28.12 47.25,30.82 38.5,39.49", tone: 2, rank: 18 },
|
|
39
|
+
{ points: "47.25,30.82 47.25,42.87 38.5,39.49", tone: 1, rank: 14 },
|
|
40
|
+
{ points: "38.5,39.49 47.25,42.87 37.53,48.62", tone: 1, rank: 7 },
|
|
41
|
+
{ points: "47.25,30.82 52.43,33.87 47.25,42.87", tone: 1, rank: 15 },
|
|
42
|
+
{ points: "21.49,16.7 29.07,20.73 17.83,26.54", tone: 3, rank: 30 },
|
|
43
|
+
{ points: "29.07,20.73 27.26,33.25 17.83,26.54", tone: 3, rank: 25 },
|
|
44
|
+
{ points: "17.83,26.54 27.26,33.25 18.41,38.01", tone: 3, rank: 19 },
|
|
45
|
+
{ points: "29.07,20.73 37.53,28.12 27.26,33.25", tone: 3, rank: 24 },
|
|
46
|
+
{ points: "22.57,13.24 21.49,16.7 13.81,21.91", tone: 3, rank: 34 },
|
|
47
|
+
],
|
|
48
|
+
edges:
|
|
49
|
+
"M17.83 46.03L21.49 49.86M29.07 52.27L17.83 46.03M21.49 49.86L29.07 52.27M27.26 45.3L17.83 46.03M29.07 52.27L27.26 45.3M37.53 48.62L27.26 45.3M29.07 52.27L37.53 48.62M18.41 38.01L17.83 46.03M27.26 45.3L18.41 38.01M41.43 50.76L29.07 52.27M41.43 50.76L37.53 48.62M17.83 46.03L13.81 41.4M12 34.43L13.81 41.4M17.83 46.03L12 34.43M18.41 38.01L12 34.43M12 34.43L11.57 30.13M50.19 42.09L41.43 50.76M47.25 42.87L41.43 50.76M50.19 42.09L47.25 42.87M52.43 33.87L47.25 42.87M50.19 42.09L52.43 33.87M47.25 42.87L37.53 48.62M38.5 39.49L27.26 45.3M37.53 48.62L38.5 39.49M27.26 33.25L27.26 45.3M38.5 39.49L27.26 33.25M37.53 28.12L27.26 33.25M38.5 39.49L37.53 28.12M27.26 33.25L18.41 38.01M17.83 26.54L12 34.43M18.41 38.01L17.83 26.54M13.81 21.91L12 34.43M17.83 26.54L13.81 21.91M21.49 16.7L13.81 21.91M17.83 26.54L21.49 16.7M13.81 21.91L11.57 30.13M50.19 22.6L42.51 14.14M41.43 19.22L50.19 22.6M42.51 14.14L41.43 19.22M47.25 30.82L50.19 22.6M41.43 19.22L47.25 30.82M37.53 28.12L47.25 30.82M41.43 19.22L37.53 28.12M52.43 33.87L50.19 22.6M47.25 30.82L52.43 33.87M32 12.51L41.43 19.22M42.51 14.14L32 12.51M29.07 20.73L41.43 19.22M32 12.51L29.07 20.73M21.49 16.7L29.07 20.73M32 12.51L21.49 16.7M29.07 20.73L37.53 28.12M34.93 11.73L32 12.51M42.51 14.14L34.93 11.73M22.57 13.24L32 12.51M34.93 11.73L22.57 13.24M22.57 13.24L21.49 16.7M42.51 14.14L46.17 17.97M50.19 22.6L46.17 17.97M50.19 22.6L52 29.57M52.43 33.87L52 29.57M38.5 39.49L47.25 30.82M47.25 42.87L47.25 30.82M38.5 39.49L47.25 42.87M17.83 26.54L29.07 20.73M27.26 33.25L29.07 20.73M17.83 26.54L27.26 33.25M13.81 21.91L22.57 13.24",
|
|
50
|
+
hidden:
|
|
51
|
+
"M32 51.49L29.07 52.27M21.49 49.86L32 51.49M32 51.49L41.43 50.76M42.51 47.3L41.43 50.76M32 51.49L42.51 47.3M22.57 44.78L32 51.49M21.49 49.86L22.57 44.78M34.93 43.27L32 51.49M22.57 44.78L34.93 43.27M26.47 35.88L34.93 43.27M22.57 44.78L26.47 35.88M34.93 43.27L42.51 47.3M13.81 41.4L22.57 44.78M21.49 49.86L13.81 41.4M16.75 33.18L22.57 44.78M13.81 41.4L16.75 33.18M11.57 30.13L16.75 33.18M13.81 41.4L11.57 30.13M16.75 33.18L26.47 35.88M42.51 47.3L50.19 42.09M16.75 21.13L16.75 33.18M11.57 30.13L16.75 21.13M25.5 24.51L16.75 33.18M16.75 21.13L25.5 24.51M26.47 15.38L25.5 24.51M16.75 21.13L26.47 15.38M25.5 24.51L26.47 35.88M36.74 30.75L34.93 43.27M26.47 35.88L36.74 30.75M46.17 37.46L34.93 43.27M36.74 30.75L46.17 37.46M45.59 25.99L46.17 37.46M36.74 30.75L45.59 25.99M46.17 37.46L42.51 47.3M26.47 15.38L22.57 13.24M34.93 11.73L26.47 15.38M46.17 17.97L34.93 11.73M36.74 18.7L34.93 11.73M46.17 17.97L36.74 18.7M45.59 25.99L36.74 18.7M46.17 17.97L45.59 25.99M36.74 18.7L26.47 15.38M52 29.57L46.17 17.97M52 29.57L45.59 25.99M16.75 21.13L22.57 13.24M16.75 21.13L13.81 21.91M36.74 30.75L36.74 18.7M25.5 24.51L36.74 18.7M36.74 30.75L25.5 24.51M50.19 42.09L52 29.57M46.17 37.46L52 29.57M50.19 42.09L46.17 37.46",
|
|
52
|
+
hull: "11.57,30.13 13.81,21.91 22.57,13.24 34.93,11.73 42.51,14.14 46.17,17.97 50.19,22.6 52,29.57 52.43,33.87 50.19,42.09 41.43,50.76 29.07,52.27 21.49,49.86 17.83,46.03 13.81,41.4 12,34.43",
|
|
53
|
+
details: "",
|
|
54
|
+
},
|
|
55
|
+
project: {
|
|
56
|
+
facets: [
|
|
57
|
+
{ points: "20.74,25.5 32,32 32,45 20.74,38.5", tone: 2, rank: 1 },
|
|
58
|
+
{ points: "20.74,25.5 32,19 43.26,25.5 32,32", tone: 3, rank: 2 },
|
|
59
|
+
{ points: "32,32 43.26,25.5 43.26,38.5 32,45", tone: 0, rank: 0 },
|
|
60
|
+
],
|
|
61
|
+
edges:
|
|
62
|
+
"M32 32L20.74 25.5M32 45L32 32M20.74 38.5L32 45M20.74 25.5L20.74 38.5M43.26 25.5L43.26 38.5M32 19L43.26 25.5M32 19L20.74 25.5M32 32L43.26 25.5M43.26 38.5L32 45",
|
|
63
|
+
hidden: "M32 32L32 19M43.26 38.5L32 32M20.74 38.5L32 32",
|
|
64
|
+
hull: "20.74,25.5 32,19 43.26,25.5 43.26,38.5 32,45 20.74,38.5",
|
|
65
|
+
details: "",
|
|
66
|
+
},
|
|
67
|
+
exam: {
|
|
68
|
+
facets: [
|
|
69
|
+
{ points: "32,39.31 20.3,41.73 32,21.55", tone: 3, rank: 2 },
|
|
70
|
+
{ points: "43.7,41.73 32,39.31 32,21.55", tone: 2, rank: 1 },
|
|
71
|
+
{ points: "32,39.31 43.7,41.73 20.3,41.73", tone: 0, rank: 0 },
|
|
72
|
+
],
|
|
73
|
+
edges:
|
|
74
|
+
"M20.3 41.73L32 21.55M43.7 41.73L20.3 41.73M32 21.55L43.7 41.73M20.3 41.73L32 39.31M32 39.31L32 21.55M32 39.31L43.7 41.73",
|
|
75
|
+
hidden: "",
|
|
76
|
+
hull: "20.3,41.73 32,21.55 43.7,41.73",
|
|
77
|
+
details: "",
|
|
78
|
+
},
|
|
79
|
+
activity: {
|
|
80
|
+
facets: [
|
|
81
|
+
{ points: "45.81,29.25 32,46.5 39.34,37.17", tone: 0, rank: 1 },
|
|
82
|
+
{ points: "39.34,37.17 32,17.5 45.81,29.25", tone: 2, rank: 3 },
|
|
83
|
+
{ points: "39.34,37.17 32,46.5 18.19,34.75", tone: 1, rank: 0 },
|
|
84
|
+
{ points: "18.19,34.75 32,17.5 39.34,37.17", tone: 3, rank: 2 },
|
|
85
|
+
],
|
|
86
|
+
edges:
|
|
87
|
+
"M32 46.5L45.81 29.25M39.34 37.17L32 46.5M45.81 29.25L39.34 37.17M32 17.5L39.34 37.17M45.81 29.25L32 17.5M18.19 34.75L32 46.5M39.34 37.17L18.19 34.75M32 17.5L18.19 34.75",
|
|
88
|
+
hidden:
|
|
89
|
+
"M32 46.5L24.66 26.83M24.66 26.83L45.81 29.25M24.66 26.83L32 17.5M18.19 34.75L24.66 26.83",
|
|
90
|
+
hull: "18.19,34.75 32,17.5 45.81,29.25 32,46.5",
|
|
91
|
+
details: "",
|
|
92
|
+
},
|
|
93
|
+
skill: {
|
|
94
|
+
facets: [
|
|
95
|
+
{ points: "39.26,39.61 37.92,41.45 37.92,24.95 39.26,23.11", tone: 0, rank: 4 },
|
|
96
|
+
{ points: "39.26,23.11 37.92,24.95 32,17", tone: 2, rank: 7 },
|
|
97
|
+
{ points: "37.92,41.45 30.66,42.09 30.66,25.59 37.92,24.95", tone: 1, rank: 2 },
|
|
98
|
+
{ points: "37.92,24.95 30.66,25.59 32,17", tone: 3, rank: 5 },
|
|
99
|
+
{ points: "30.66,42.09 37.92,41.45 32,47", tone: 0, rank: 0 },
|
|
100
|
+
{ points: "30.66,42.09 24.74,40.89 24.74,24.39 30.66,25.59", tone: 2, rank: 3 },
|
|
101
|
+
{ points: "30.66,25.59 24.74,24.39 32,17", tone: 3, rank: 6 },
|
|
102
|
+
{ points: "24.74,40.89 30.66,42.09 32,47", tone: 0, rank: 1 },
|
|
103
|
+
{ points: "24.74,24.39 26.08,22.55 32,17", tone: 3, rank: 8 },
|
|
104
|
+
],
|
|
105
|
+
edges:
|
|
106
|
+
"M37.92 41.45L39.26 39.61M37.92 24.95L37.92 41.45M39.26 23.11L37.92 24.95M39.26 39.61L39.26 23.11M32 17L37.92 24.95M39.26 23.11L32 17M37.92 41.45L32 47M30.66 42.09L37.92 41.45M30.66 25.59L30.66 42.09M37.92 24.95L30.66 25.59M32 17L30.66 25.59M30.66 42.09L32 47M24.74 40.89L30.66 42.09M24.74 24.39L24.74 40.89M30.66 25.59L24.74 24.39M32 17L24.74 24.39M24.74 40.89L32 47M24.74 24.39L26.08 22.55M32 17L26.08 22.55",
|
|
107
|
+
hidden:
|
|
108
|
+
"M32 47L39.26 39.61M26.08 39.05L24.74 40.89M26.08 22.55L26.08 39.05M26.08 39.05L32 47M33.34 38.41L26.08 39.05M33.34 21.91L33.34 38.41M26.08 22.55L33.34 21.91M32 17L33.34 21.91M33.34 38.41L32 47M39.26 39.61L33.34 38.41M33.34 21.91L39.26 23.11",
|
|
109
|
+
hull: "24.74,24.39 26.08,22.55 32,17 39.26,23.11 39.26,39.61 37.92,41.45 32,47 24.74,40.89",
|
|
110
|
+
details: "",
|
|
111
|
+
},
|
|
112
|
+
gift: {
|
|
113
|
+
facets: [
|
|
114
|
+
{ points: "20.36,25.23 30.98,31.17 30.98,45.76 20.36,39.82", tone: 2, rank: 1 },
|
|
115
|
+
{ points: "20.36,25.23 33.02,20.24 43.64,26.18 30.98,31.17", tone: 3, rank: 2 },
|
|
116
|
+
{ points: "30.98,31.17 43.64,26.18 43.64,40.77 30.98,45.76", tone: 0, rank: 0 },
|
|
117
|
+
],
|
|
118
|
+
edges:
|
|
119
|
+
"M30.98 31.17L20.36 25.23M30.98 45.76L30.98 31.17M20.36 39.82L30.98 45.76M20.36 25.23L20.36 39.82M43.64 26.18L43.64 40.77M33.02 20.24L43.64 26.18M33.02 20.24L20.36 25.23M30.98 31.17L43.64 26.18M43.64 40.77L30.98 45.76",
|
|
120
|
+
hidden: "M33.02 34.83L33.02 20.24M43.64 40.77L33.02 34.83M20.36 39.82L33.02 34.83",
|
|
121
|
+
hull: "20.36,25.23 33.02,20.24 43.64,26.18 43.64,40.77 30.98,45.76 20.36,39.82",
|
|
122
|
+
details:
|
|
123
|
+
"M43.64 30.19L30.98 35.18M30.98 35.18L20.36 29.24M26.69 22.73L37.31 28.68M37.31 28.68L37.31 43.27M25.67 28.2L38.33 23.21M32 25.7L31.82 26.06M31.82 26.06L31.3 26.24M31.3 26.24L30.51 26.22M30.51 26.22L29.59 25.99M29.59 25.99L28.67 25.6M28.67 25.6L27.89 25.11M27.89 25.11L27.37 24.58M27.37 24.58L27.19 24.1M27.19 24.1L27.37 23.74M27.37 23.74L27.89 23.56M27.89 23.56L28.67 23.58M28.67 23.58L29.59 23.81M29.59 23.81L30.51 24.2M30.51 24.2L31.3 24.69M31.3 24.69L31.82 25.22M31.82 25.22L32 25.7M32 25.7L32.18 25.08M32.18 25.08L32.7 24.14M32.7 24.14L33.49 23.03M33.49 23.03L34.41 21.91M34.41 21.91L35.33 20.96M35.33 20.96L36.11 20.32M36.11 20.32L36.63 20.09M36.63 20.09L36.81 20.31M36.81 20.31L36.63 20.93M36.63 20.93L36.11 21.87M36.11 21.87L35.33 22.98M35.33 22.98L34.41 24.1M34.41 24.1L33.49 25.05M33.49 25.05L32.7 25.69M32.7 25.69L32.18 25.92M32.18 25.92L32 25.7",
|
|
124
|
+
},
|
|
125
|
+
social: [
|
|
126
|
+
{
|
|
127
|
+
facets: [
|
|
128
|
+
{ points: "28.39,27 27.06,22.56 33.46,26.34", tone: 1, rank: 1 },
|
|
129
|
+
{ points: "28.39,27 33.46,26.34 35.61,26.44", tone: 0, rank: 0 },
|
|
130
|
+
{ points: "28.39,27 25.26,20.33 27.06,22.56", tone: 2, rank: 3 },
|
|
131
|
+
{ points: "35.61,26.44 33.46,26.34 38.74,21.67", tone: 0, rank: 2 },
|
|
132
|
+
{ points: "33.46,26.34 27.06,22.56 33.46,19.27", tone: 2, rank: 4 },
|
|
133
|
+
{ points: "27.06,22.56 25.26,20.33 28.39,15.56", tone: 3, rank: 6 },
|
|
134
|
+
{ points: "35.61,15 38.74,21.67 33.46,19.27", tone: 2, rank: 8 },
|
|
135
|
+
{ points: "35.61,15 33.46,19.27 28.39,15.56", tone: 3, rank: 9 },
|
|
136
|
+
{ points: "33.46,19.27 38.74,21.67 33.46,26.34", tone: 1, rank: 5 },
|
|
137
|
+
{ points: "28.39,15.56 33.46,19.27 27.06,22.56", tone: 3, rank: 7 },
|
|
138
|
+
],
|
|
139
|
+
edges:
|
|
140
|
+
"M27.06 22.56L28.39 27M33.46 26.34L27.06 22.56M28.39 27L33.46 26.34M35.61 26.44L33.46 26.34M28.39 27L35.61 26.44M28.39 27L25.26 20.33M27.06 22.56L25.26 20.33M38.74 21.67L33.46 26.34M35.61 26.44L38.74 21.67M33.46 19.27L27.06 22.56M33.46 26.34L33.46 19.27M28.39 15.56L25.26 20.33M27.06 22.56L28.39 15.56M38.74 21.67L35.61 15M33.46 19.27L38.74 21.67M35.61 15L33.46 19.27M28.39 15.56L33.46 19.27M35.61 15L28.39 15.56",
|
|
141
|
+
hidden:
|
|
142
|
+
"M30.54 22.73L35.61 26.44M28.39 27L30.54 22.73M25.26 20.33L30.54 22.73M30.54 15.66L30.54 22.73M25.26 20.33L30.54 15.66M36.94 19.44L35.61 26.44M30.54 22.73L36.94 19.44M30.54 15.66L28.39 15.56M35.61 15L30.54 15.66M36.94 19.44L30.54 15.66M35.61 15L36.94 19.44M38.74 21.67L36.94 19.44",
|
|
143
|
+
hull: "25.26,20.33 28.39,15.56 35.61,15 38.74,21.67 35.61,26.44 28.39,27",
|
|
144
|
+
details: "",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
facets: [
|
|
148
|
+
{ points: "17.89,45 16.56,40.56 22.96,44.34", tone: 1, rank: 1 },
|
|
149
|
+
{ points: "17.89,45 22.96,44.34 25.11,44.44", tone: 0, rank: 0 },
|
|
150
|
+
{ points: "17.89,45 14.76,38.33 16.56,40.56", tone: 2, rank: 3 },
|
|
151
|
+
{ points: "25.11,44.44 22.96,44.34 28.24,39.67", tone: 0, rank: 2 },
|
|
152
|
+
{ points: "22.96,44.34 16.56,40.56 22.96,37.27", tone: 2, rank: 4 },
|
|
153
|
+
{ points: "16.56,40.56 14.76,38.33 17.89,33.56", tone: 3, rank: 6 },
|
|
154
|
+
{ points: "25.11,33 28.24,39.67 22.96,37.27", tone: 2, rank: 8 },
|
|
155
|
+
{ points: "25.11,33 22.96,37.27 17.89,33.56", tone: 3, rank: 9 },
|
|
156
|
+
{ points: "22.96,37.27 28.24,39.67 22.96,44.34", tone: 1, rank: 5 },
|
|
157
|
+
{ points: "17.89,33.56 22.96,37.27 16.56,40.56", tone: 3, rank: 7 },
|
|
158
|
+
],
|
|
159
|
+
edges:
|
|
160
|
+
"M16.56 40.56L17.89 45M22.96 44.34L16.56 40.56M17.89 45L22.96 44.34M25.11 44.44L22.96 44.34M17.89 45L25.11 44.44M17.89 45L14.76 38.33M16.56 40.56L14.76 38.33M28.24 39.67L22.96 44.34M25.11 44.44L28.24 39.67M22.96 37.27L16.56 40.56M22.96 44.34L22.96 37.27M17.89 33.56L14.76 38.33M16.56 40.56L17.89 33.56M28.24 39.67L25.11 33M22.96 37.27L28.24 39.67M25.11 33L22.96 37.27M17.89 33.56L22.96 37.27M25.11 33L17.89 33.56",
|
|
161
|
+
hidden:
|
|
162
|
+
"M20.04 40.73L25.11 44.44M17.89 45L20.04 40.73M14.76 38.33L20.04 40.73M20.04 33.66L20.04 40.73M14.76 38.33L20.04 33.66M26.44 37.44L25.11 44.44M20.04 40.73L26.44 37.44M20.04 33.66L17.89 33.56M25.11 33L20.04 33.66M26.44 37.44L20.04 33.66M25.11 33L26.44 37.44M28.24 39.67L26.44 37.44",
|
|
163
|
+
hull: "14.76,38.33 17.89,33.56 25.11,33 28.24,39.67 25.11,44.44 17.89,45",
|
|
164
|
+
details: "",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
facets: [
|
|
168
|
+
{ points: "38.89,45 37.56,40.56 43.96,44.34", tone: 1, rank: 1 },
|
|
169
|
+
{ points: "38.89,45 43.96,44.34 46.11,44.44", tone: 0, rank: 0 },
|
|
170
|
+
{ points: "38.89,45 35.76,38.33 37.56,40.56", tone: 2, rank: 3 },
|
|
171
|
+
{ points: "46.11,44.44 43.96,44.34 49.24,39.67", tone: 0, rank: 2 },
|
|
172
|
+
{ points: "43.96,44.34 37.56,40.56 43.96,37.27", tone: 2, rank: 4 },
|
|
173
|
+
{ points: "37.56,40.56 35.76,38.33 38.89,33.56", tone: 3, rank: 6 },
|
|
174
|
+
{ points: "46.11,33 49.24,39.67 43.96,37.27", tone: 2, rank: 8 },
|
|
175
|
+
{ points: "46.11,33 43.96,37.27 38.89,33.56", tone: 3, rank: 9 },
|
|
176
|
+
{ points: "43.96,37.27 49.24,39.67 43.96,44.34", tone: 1, rank: 5 },
|
|
177
|
+
{ points: "38.89,33.56 43.96,37.27 37.56,40.56", tone: 3, rank: 7 },
|
|
178
|
+
],
|
|
179
|
+
edges:
|
|
180
|
+
"M37.56 40.56L38.89 45M43.96 44.34L37.56 40.56M38.89 45L43.96 44.34M46.11 44.44L43.96 44.34M38.89 45L46.11 44.44M38.89 45L35.76 38.33M37.56 40.56L35.76 38.33M49.24 39.67L43.96 44.34M46.11 44.44L49.24 39.67M43.96 37.27L37.56 40.56M43.96 44.34L43.96 37.27M38.89 33.56L35.76 38.33M37.56 40.56L38.89 33.56M49.24 39.67L46.11 33M43.96 37.27L49.24 39.67M46.11 33L43.96 37.27M38.89 33.56L43.96 37.27M46.11 33L38.89 33.56",
|
|
181
|
+
hidden:
|
|
182
|
+
"M41.04 40.73L46.11 44.44M38.89 45L41.04 40.73M35.76 38.33L41.04 40.73M41.04 33.66L41.04 40.73M35.76 38.33L41.04 33.66M47.44 37.44L46.11 44.44M41.04 40.73L47.44 37.44M41.04 33.66L38.89 33.56M46.11 33L41.04 33.66M47.44 37.44L41.04 33.66M46.11 33L47.44 37.44M49.24 39.67L47.44 37.44",
|
|
183
|
+
hull: "35.76,38.33 38.89,33.56 46.11,33 49.24,39.67 46.11,44.44 38.89,45",
|
|
184
|
+
details: "",
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
planet: {
|
|
188
|
+
facets: [
|
|
189
|
+
{ points: "16.57,57.44 12.92,55.03 20.49,59.62", tone: 0, rank: 10 },
|
|
190
|
+
{ points: "12.92,55.03 17.4,56.3 20.49,59.62", tone: 1, rank: 13 },
|
|
191
|
+
{ points: "20.49,59.62 17.4,56.3 26.05,59.91", tone: 1, rank: 7 },
|
|
192
|
+
{ points: "17.4,56.3 23.81,55.25 26.05,59.91", tone: 1, rank: 11 },
|
|
193
|
+
{ points: "26.05,59.91 23.81,55.25 32.14,57.71", tone: 1, rank: 9 },
|
|
194
|
+
{ points: "23.81,55.25 30.38,52.17 32.14,57.71", tone: 1, rank: 17 },
|
|
195
|
+
{ points: "32.14,57.71 30.38,52.17 37.31,54.04", tone: 1, rank: 18 },
|
|
196
|
+
{ points: "12.92,55.03 10.19,50.31 17.4,56.3", tone: 1, rank: 22 },
|
|
197
|
+
{ points: "10.19,50.31 15.47,50.2 17.4,56.3", tone: 1, rank: 23 },
|
|
198
|
+
{ points: "17.4,56.3 15.47,50.2 23.81,55.25", tone: 1, rank: 21 },
|
|
199
|
+
{ points: "15.47,50.2 22.37,48.32 23.81,55.25", tone: 1, rank: 28 },
|
|
200
|
+
{ points: "23.81,55.25 22.37,48.32 30.38,52.17", tone: 1, rank: 25 },
|
|
201
|
+
{ points: "10.19,50.31 9.4,43.96 15.47,50.2", tone: 2, rank: 35 },
|
|
202
|
+
{ points: "9.4,43.96 15.22,43 15.47,50.2", tone: 2, rank: 40 },
|
|
203
|
+
{ points: "15.47,50.2 15.22,43 22.37,48.32", tone: 2, rank: 38 },
|
|
204
|
+
{ points: "9.4,43.96 10.32,37.72 15.22,43", tone: 2, rank: 53 },
|
|
205
|
+
{ points: "20.49,59.62 26.05,59.91 28.87,61.83", tone: 0, rank: 2 },
|
|
206
|
+
{ points: "26.05,59.91 35.28,60.78 28.87,61.83", tone: 0, rank: 1 },
|
|
207
|
+
{ points: "28.87,61.83 35.28,60.78 38.41,61.27", tone: 0, rank: 0 },
|
|
208
|
+
{ points: "35.28,60.78 44.19,58.84 38.41,61.27", tone: 0, rank: 3 },
|
|
209
|
+
{ points: "38.41,61.27 44.19,58.84 46.49,58.09", tone: 0, rank: 5 },
|
|
210
|
+
{ points: "26.05,59.91 32.14,57.71 35.28,60.78", tone: 0, rank: 4 },
|
|
211
|
+
{ points: "32.14,57.71 40.8,57.2 35.28,60.78", tone: 0, rank: 8 },
|
|
212
|
+
{ points: "35.28,60.78 40.8,57.2 44.19,58.84", tone: 0, rank: 6 },
|
|
213
|
+
{ points: "32.14,57.71 37.31,54.04 40.8,57.2", tone: 0, rank: 15 },
|
|
214
|
+
{ points: "12.92,55.03 7.04,48.62 10.19,50.31", tone: 1, rank: 27 },
|
|
215
|
+
{ points: "7.04,48.62 5.1,42.53 10.19,50.31", tone: 2, rank: 39 },
|
|
216
|
+
{ points: "10.19,50.31 5.1,42.53 9.4,43.96", tone: 2, rank: 41 },
|
|
217
|
+
{ points: "5.1,42.53 5.8,36.03 9.4,43.96", tone: 2, rank: 54 },
|
|
218
|
+
{ points: "9.4,43.96 5.8,36.03 10.32,37.72", tone: 2, rank: 58 },
|
|
219
|
+
{ points: "7.04,48.62 3.08,39.9 5.1,42.53", tone: 2, rank: 48 },
|
|
220
|
+
{ points: "3.08,39.9 2.65,33.72 5.1,42.53", tone: 2, rank: 62 },
|
|
221
|
+
{ points: "5.1,42.53 2.65,33.72 5.8,36.03", tone: 2, rank: 65 },
|
|
222
|
+
{ points: "3.08,39.9 2.12,31.25 2.65,33.72", tone: 2, rank: 72 },
|
|
223
|
+
{ points: "51.9,54.28 55.86,47.84 57.67,47.53", tone: 0, rank: 31 },
|
|
224
|
+
{ points: "57.67,47.53 55.86,47.84 60.12,40.98", tone: 0, rank: 42 },
|
|
225
|
+
{ points: "55.86,47.84 57.28,40.54 60.12,40.98", tone: 0, rank: 49 },
|
|
226
|
+
{ points: "60.12,40.98 57.28,40.54 60.24,34.79", tone: 0, rank: 61 },
|
|
227
|
+
{ points: "46.49,58.09 44.19,58.84 51.9,54.28", tone: 0, rank: 12 },
|
|
228
|
+
{ points: "44.19,58.84 48.77,53.79 51.9,54.28", tone: 0, rank: 16 },
|
|
229
|
+
{ points: "51.9,54.28 48.77,53.79 55.86,47.84", tone: 0, rank: 24 },
|
|
230
|
+
{ points: "48.77,53.79 51.72,46.6 55.86,47.84", tone: 0, rank: 32 },
|
|
231
|
+
{ points: "55.86,47.84 51.72,46.6 57.28,40.54", tone: 0, rank: 43 },
|
|
232
|
+
{ points: "44.19,58.84 40.8,57.2 48.77,53.79", tone: 0, rank: 14 },
|
|
233
|
+
{ points: "40.8,57.2 44.4,51.35 48.77,53.79", tone: 0, rank: 20 },
|
|
234
|
+
{ points: "48.77,53.79 44.4,51.35 51.72,46.6", tone: 0, rank: 30 },
|
|
235
|
+
{ points: "40.8,57.2 37.31,54.04 44.4,51.35", tone: 0, rank: 19 },
|
|
236
|
+
{ points: "37.31,54.04 30.38,52.17 37.96,48.24", tone: 1, rank: 26 },
|
|
237
|
+
{ points: "30.38,52.17 30.22,44.83 37.96,48.24", tone: 1, rank: 34 },
|
|
238
|
+
{ points: "37.96,48.24 30.22,44.83 38.24,40.09", tone: 2, rank: 44 },
|
|
239
|
+
{ points: "30.22,44.83 30.22,35.46 38.24,40.09", tone: 2, rank: 55 },
|
|
240
|
+
{ points: "38.24,40.09 30.22,35.46 37.96,31.21", tone: 2, rank: 69 },
|
|
241
|
+
{ points: "30.22,35.46 30.38,26.63 37.96,31.21", tone: 3, rank: 82 },
|
|
242
|
+
{ points: "37.96,31.21 30.38,26.63 37.31,23.72", tone: 3, rank: 93 },
|
|
243
|
+
{ points: "30.38,52.17 22.37,48.32 30.22,44.83", tone: 2, rank: 33 },
|
|
244
|
+
{ points: "22.37,48.32 21.88,39.78 30.22,44.83", tone: 2, rank: 45 },
|
|
245
|
+
{ points: "30.22,44.83 21.88,39.78 30.22,35.46", tone: 2, rank: 56 },
|
|
246
|
+
{ points: "21.88,39.78 22.37,30.49 30.22,35.46", tone: 2, rank: 71 },
|
|
247
|
+
{ points: "30.22,35.46 22.37,30.49 30.38,26.63", tone: 3, rank: 83 },
|
|
248
|
+
{ points: "22.37,48.32 15.22,43 21.88,39.78", tone: 2, rank: 47 },
|
|
249
|
+
{ points: "15.22,43 15.22,34.49 21.88,39.78", tone: 2, rank: 59 },
|
|
250
|
+
{ points: "21.88,39.78 15.22,34.49 22.37,30.49", tone: 3, rank: 73 },
|
|
251
|
+
{ points: "15.22,43 10.32,37.72 15.22,34.49", tone: 2, rank: 63 },
|
|
252
|
+
{ points: "10.32,37.72 5.8,36.03 9.4,30.18", tone: 3, rank: 74 },
|
|
253
|
+
{ points: "5.8,36.03 5.1,27.37 9.4,30.18", tone: 3, rank: 81 },
|
|
254
|
+
{ points: "9.4,30.18 5.1,27.37 10.19,21.47", tone: 3, rank: 95 },
|
|
255
|
+
{ points: "5.1,27.37 7.04,18.3 10.19,21.47", tone: 3, rank: 106 },
|
|
256
|
+
{ points: "10.19,21.47 7.04,18.3 12.92,13.7", tone: 3, rank: 116 },
|
|
257
|
+
{ points: "7.04,18.3 11.07,11.31 12.92,13.7", tone: 3, rank: 127 },
|
|
258
|
+
{ points: "12.92,13.7 11.07,11.31 16.57,8.37", tone: 3, rank: 135 },
|
|
259
|
+
{ points: "5.8,36.03 2.65,33.72 5.1,27.37", tone: 3, rank: 78 },
|
|
260
|
+
{ points: "2.65,33.72 3.08,24.74 5.1,27.37", tone: 3, rank: 89 },
|
|
261
|
+
{ points: "5.1,27.37 3.08,24.74 7.04,18.3", tone: 3, rank: 101 },
|
|
262
|
+
{ points: "3.08,24.74 6.33,16.47 7.04,18.3", tone: 3, rank: 112 },
|
|
263
|
+
{ points: "7.04,18.3 6.33,16.47 11.07,11.31", tone: 3, rank: 123 },
|
|
264
|
+
{ points: "2.65,33.72 2.12,31.25 3.08,24.74", tone: 2, rank: 87 },
|
|
265
|
+
{ points: "47.43,6.56 52.93,11.36 46.49,8.25", tone: 2, rank: 143 },
|
|
266
|
+
{ points: "52.93,11.36 51.9,14.58 46.49,8.25", tone: 2, rank: 134 },
|
|
267
|
+
{ points: "46.49,8.25 51.9,14.58 44.19,12.18", tone: 2, rank: 133 },
|
|
268
|
+
{ points: "51.9,14.58 48.77,19.88 44.19,12.18", tone: 2, rank: 122 },
|
|
269
|
+
{ points: "44.19,12.18 48.77,19.88 40.8,17.88", tone: 3, rank: 120 },
|
|
270
|
+
{ points: "48.77,19.88 44.4,25.81 40.8,17.88", tone: 2, rank: 110 },
|
|
271
|
+
{ points: "40.8,17.88 44.4,25.81 37.31,23.72", tone: 3, rank: 105 },
|
|
272
|
+
{ points: "52.93,11.36 57.67,18.69 51.9,14.58", tone: 2, rank: 125 },
|
|
273
|
+
{ points: "57.67,18.69 55.86,23.31 51.9,14.58", tone: 2, rank: 115 },
|
|
274
|
+
{ points: "51.9,14.58 55.86,23.31 48.77,19.88", tone: 2, rank: 114 },
|
|
275
|
+
{ points: "55.86,23.31 51.72,28.77 48.77,19.88", tone: 2, rank: 100 },
|
|
276
|
+
{ points: "48.77,19.88 51.72,28.77 44.4,25.81", tone: 2, rank: 99 },
|
|
277
|
+
{ points: "57.67,18.69 60.12,27.21 55.86,23.31", tone: 1, rank: 103 },
|
|
278
|
+
{ points: "60.12,27.21 57.28,32.03 55.86,23.31", tone: 1, rank: 92 },
|
|
279
|
+
{ points: "55.86,23.31 57.28,32.03 51.72,28.77", tone: 2, rank: 90 },
|
|
280
|
+
{ points: "60.12,27.21 60.24,34.79 57.28,32.03", tone: 1, rank: 80 },
|
|
281
|
+
{ points: "47.43,6.56 46.49,8.25 40.66,3.94", tone: 3, rank: 149 },
|
|
282
|
+
{ points: "46.49,8.25 38.41,6.42 40.66,3.94", tone: 3, rank: 150 },
|
|
283
|
+
{ points: "40.66,3.94 38.41,6.42 32,3.16", tone: 3, rank: 155 },
|
|
284
|
+
{ points: "38.41,6.42 28.87,6.98 32,3.16", tone: 3, rank: 151 },
|
|
285
|
+
{ points: "32,3.16 28.87,6.98 23.34,4.95", tone: 3, rank: 152 },
|
|
286
|
+
{ points: "28.87,6.98 20.49,9.77 23.34,4.95", tone: 3, rank: 147 },
|
|
287
|
+
{ points: "23.34,4.95 20.49,9.77 16.57,8.37", tone: 3, rank: 146 },
|
|
288
|
+
{ points: "46.49,8.25 44.19,12.18 38.41,6.42", tone: 3, rank: 142 },
|
|
289
|
+
{ points: "44.19,12.18 35.28,11.72 38.41,6.42", tone: 3, rank: 138 },
|
|
290
|
+
{ points: "38.41,6.42 35.28,11.72 28.87,6.98", tone: 3, rank: 145 },
|
|
291
|
+
{ points: "35.28,11.72 26.05,13.24 28.87,6.98", tone: 3, rank: 136 },
|
|
292
|
+
{ points: "28.87,6.98 26.05,13.24 20.49,9.77", tone: 3, rank: 139 },
|
|
293
|
+
{ points: "44.19,12.18 40.8,17.88 35.28,11.72", tone: 3, rank: 128 },
|
|
294
|
+
{ points: "40.8,17.88 32.14,18.39 35.28,11.72", tone: 3, rank: 121 },
|
|
295
|
+
{ points: "35.28,11.72 32.14,18.39 26.05,13.24", tone: 3, rank: 126 },
|
|
296
|
+
{ points: "40.8,17.88 37.31,23.72 32.14,18.39", tone: 3, rank: 111 },
|
|
297
|
+
{ points: "47.43,6.56 40.66,3.94 43.51,4.38", tone: 3, rank: 153 },
|
|
298
|
+
{ points: "40.66,3.94 35.13,2.17 43.51,4.38", tone: 3, rank: 157 },
|
|
299
|
+
{ points: "40.66,3.94 32,3.16 35.13,2.17", tone: 3, rank: 158 },
|
|
300
|
+
{ points: "32,3.16 25.59,2.73 35.13,2.17", tone: 3, rank: 159 },
|
|
301
|
+
{ points: "32,3.16 23.34,4.95 25.59,2.73", tone: 3, rank: 156 },
|
|
302
|
+
{ points: "23.34,4.95 17.51,5.91 25.59,2.73", tone: 3, rank: 154 },
|
|
303
|
+
{ points: "23.34,4.95 16.57,8.37 17.51,5.91", tone: 3, rank: 148 },
|
|
304
|
+
{ points: "47.43,6.56 51.08,8.97 52.93,11.36", tone: 2, rank: 141 },
|
|
305
|
+
{ points: "51.08,8.97 56.96,15.38 52.93,11.36", tone: 2, rank: 132 },
|
|
306
|
+
{ points: "52.93,11.36 56.96,15.38 57.67,18.69", tone: 2, rank: 124 },
|
|
307
|
+
{ points: "56.96,15.38 60.92,24.1 57.67,18.69", tone: 1, rank: 113 },
|
|
308
|
+
{ points: "57.67,18.69 60.92,24.1 60.12,27.21", tone: 1, rank: 102 },
|
|
309
|
+
{ points: "60.92,24.1 61.88,32.75 60.12,27.21", tone: 1, rank: 91 },
|
|
310
|
+
{ points: "60.12,27.21 61.88,32.75 60.24,34.79", tone: 1, rank: 79 },
|
|
311
|
+
{ points: "37.31,23.72 44.4,25.81 37.96,31.21", tone: 2, rank: 94 },
|
|
312
|
+
{ points: "44.4,25.81 45.65,34.56 37.96,31.21", tone: 2, rank: 84 },
|
|
313
|
+
{ points: "37.96,31.21 45.65,34.56 38.24,40.09", tone: 2, rank: 70 },
|
|
314
|
+
{ points: "45.65,34.56 45.65,43.93 38.24,40.09", tone: 2, rank: 57 },
|
|
315
|
+
{ points: "38.24,40.09 45.65,43.93 37.96,48.24", tone: 1, rank: 46 },
|
|
316
|
+
{ points: "45.65,43.93 44.4,51.35 37.96,48.24", tone: 1, rank: 36 },
|
|
317
|
+
{ points: "37.96,48.24 44.4,51.35 37.31,54.04", tone: 1, rank: 29 },
|
|
318
|
+
{ points: "44.4,25.81 51.72,28.77 45.65,34.56", tone: 2, rank: 88 },
|
|
319
|
+
{ points: "51.72,28.77 52.73,37.98 45.65,34.56", tone: 2, rank: 76 },
|
|
320
|
+
{ points: "45.65,34.56 52.73,37.98 45.65,43.93", tone: 1, rank: 60 },
|
|
321
|
+
{ points: "52.73,37.98 51.72,46.6 45.65,43.93", tone: 1, rank: 50 },
|
|
322
|
+
{ points: "45.65,43.93 51.72,46.6 44.4,51.35", tone: 1, rank: 37 },
|
|
323
|
+
{ points: "51.72,28.77 57.28,32.03 52.73,37.98", tone: 1, rank: 77 },
|
|
324
|
+
{ points: "57.28,32.03 57.28,40.54 52.73,37.98", tone: 1, rank: 66 },
|
|
325
|
+
{ points: "52.73,37.98 57.28,40.54 51.72,46.6", tone: 1, rank: 52 },
|
|
326
|
+
{ points: "57.28,32.03 60.24,34.79 57.28,40.54", tone: 1, rank: 68 },
|
|
327
|
+
{ points: "16.57,8.37 20.49,9.77 12.92,13.7", tone: 3, rank: 137 },
|
|
328
|
+
{ points: "20.49,9.77 17.4,16.6 12.92,13.7", tone: 3, rank: 129 },
|
|
329
|
+
{ points: "12.92,13.7 17.4,16.6 10.19,21.47", tone: 3, rank: 118 },
|
|
330
|
+
{ points: "17.4,16.6 15.47,25.67 10.19,21.47", tone: 3, rank: 108 },
|
|
331
|
+
{ points: "10.19,21.47 15.47,25.67 9.4,30.18", tone: 3, rank: 98 },
|
|
332
|
+
{ points: "15.47,25.67 15.22,34.49 9.4,30.18", tone: 3, rank: 86 },
|
|
333
|
+
{ points: "9.4,30.18 15.22,34.49 10.32,37.72", tone: 3, rank: 75 },
|
|
334
|
+
{ points: "20.49,9.77 26.05,13.24 17.4,16.6", tone: 3, rank: 130 },
|
|
335
|
+
{ points: "26.05,13.24 23.81,21.35 17.4,16.6", tone: 3, rank: 119 },
|
|
336
|
+
{ points: "17.4,16.6 23.81,21.35 15.47,25.67", tone: 3, rank: 109 },
|
|
337
|
+
{ points: "23.81,21.35 22.37,30.49 15.47,25.67", tone: 3, rank: 97 },
|
|
338
|
+
{ points: "15.47,25.67 22.37,30.49 15.22,34.49", tone: 3, rank: 85 },
|
|
339
|
+
{ points: "26.05,13.24 32.14,18.39 23.81,21.35", tone: 3, rank: 117 },
|
|
340
|
+
{ points: "32.14,18.39 30.38,26.63 23.81,21.35", tone: 3, rank: 107 },
|
|
341
|
+
{ points: "23.81,21.35 30.38,26.63 22.37,30.49", tone: 3, rank: 96 },
|
|
342
|
+
{ points: "32.14,18.39 37.31,23.72 30.38,26.63", tone: 3, rank: 104 },
|
|
343
|
+
{ points: "17.51,5.91 11.07,11.31 12.1,9.72", tone: 3, rank: 140 },
|
|
344
|
+
{ points: "12.1,9.72 11.07,11.31 6.33,16.47", tone: 3, rank: 131 },
|
|
345
|
+
{ points: "17.51,5.91 16.57,8.37 11.07,11.31", tone: 3, rank: 144 },
|
|
346
|
+
{ points: "60.24,34.79 61.88,32.75 60.12,40.98", tone: 0, rank: 67 },
|
|
347
|
+
{ points: "61.88,32.75 60.92,39.26 60.12,40.98", tone: 0, rank: 64 },
|
|
348
|
+
{ points: "60.12,40.98 60.92,39.26 57.67,47.53", tone: 0, rank: 51 },
|
|
349
|
+
],
|
|
350
|
+
edges:
|
|
351
|
+
"M12.92 55.03L16.57 57.44M20.49 59.62L12.92 55.03M16.57 57.44L20.49 59.62M17.4 56.3L12.92 55.03M20.49 59.62L17.4 56.3M26.05 59.91L17.4 56.3M20.49 59.62L26.05 59.91M23.81 55.25L17.4 56.3M26.05 59.91L23.81 55.25M32.14 57.71L23.81 55.25M26.05 59.91L32.14 57.71M30.38 52.17L23.81 55.25M32.14 57.71L30.38 52.17M37.31 54.04L30.38 52.17M32.14 57.71L37.31 54.04M10.19 50.31L12.92 55.03M17.4 56.3L10.19 50.31M15.47 50.2L10.19 50.31M17.4 56.3L15.47 50.2M23.81 55.25L15.47 50.2M22.37 48.32L15.47 50.2M23.81 55.25L22.37 48.32M30.38 52.17L22.37 48.32M9.4 43.96L10.19 50.31M15.47 50.2L9.4 43.96M15.22 43L9.4 43.96M15.47 50.2L15.22 43M22.37 48.32L15.22 43M10.32 37.72L9.4 43.96M15.22 43L10.32 37.72M28.87 61.83L20.49 59.62M38.41 61.27L28.87 61.83M46.49 58.09L38.41 61.27M28.87 61.83L26.05 59.91M35.28 60.78L26.05 59.91M28.87 61.83L35.28 60.78M38.41 61.27L35.28 60.78M44.19 58.84L35.28 60.78M38.41 61.27L44.19 58.84M46.49 58.09L44.19 58.84M35.28 60.78L32.14 57.71M40.8 57.2L32.14 57.71M35.28 60.78L40.8 57.2M44.19 58.84L40.8 57.2M40.8 57.2L37.31 54.04M12.92 55.03L7.04 48.62M10.19 50.31L7.04 48.62M5.1 42.53L7.04 48.62M10.19 50.31L5.1 42.53M9.4 43.96L5.1 42.53M5.8 36.03L5.1 42.53M9.4 43.96L5.8 36.03M10.32 37.72L5.8 36.03M7.04 48.62L3.08 39.9M5.1 42.53L3.08 39.9M2.65 33.72L3.08 39.9M5.1 42.53L2.65 33.72M5.8 36.03L2.65 33.72M3.08 39.9L2.12 31.25M2.65 33.72L2.12 31.25M51.9 54.28L46.49 58.09M57.67 47.53L51.9 54.28M55.86 47.84L51.9 54.28M57.67 47.53L55.86 47.84M60.12 40.98L55.86 47.84M57.67 47.53L60.12 40.98M57.28 40.54L55.86 47.84M60.12 40.98L57.28 40.54M60.24 34.79L57.28 40.54M60.12 40.98L60.24 34.79M51.9 54.28L44.19 58.84M48.77 53.79L44.19 58.84M51.9 54.28L48.77 53.79M55.86 47.84L48.77 53.79M51.72 46.6L48.77 53.79M55.86 47.84L51.72 46.6M57.28 40.54L51.72 46.6M48.77 53.79L40.8 57.2M44.4 51.35L40.8 57.2M48.77 53.79L44.4 51.35M51.72 46.6L44.4 51.35M44.4 51.35L37.31 54.04M37.96 48.24L30.38 52.17M37.31 54.04L37.96 48.24M30.22 44.83L30.38 52.17M37.96 48.24L30.22 44.83M38.24 40.09L30.22 44.83M37.96 48.24L38.24 40.09M30.22 35.46L30.22 44.83M38.24 40.09L30.22 35.46M37.96 31.21L30.22 35.46M38.24 40.09L37.96 31.21M30.38 26.63L30.22 35.46M37.96 31.21L30.38 26.63M37.31 23.72L30.38 26.63M37.96 31.21L37.31 23.72M30.22 44.83L22.37 48.32M21.88 39.78L22.37 48.32M30.22 44.83L21.88 39.78M30.22 35.46L21.88 39.78M22.37 30.49L21.88 39.78M30.22 35.46L22.37 30.49M30.38 26.63L22.37 30.49M21.88 39.78L15.22 43M15.22 34.49L15.22 43M21.88 39.78L15.22 34.49M22.37 30.49L15.22 34.49M15.22 34.49L10.32 37.72M9.4 30.18L5.8 36.03M10.32 37.72L9.4 30.18M5.1 27.37L5.8 36.03M9.4 30.18L5.1 27.37M10.19 21.47L5.1 27.37M9.4 30.18L10.19 21.47M7.04 18.3L5.1 27.37M10.19 21.47L7.04 18.3M12.92 13.7L7.04 18.3M10.19 21.47L12.92 13.7M11.07 11.31L7.04 18.3M12.92 13.7L11.07 11.31M16.57 8.37L11.07 11.31M12.92 13.7L16.57 8.37M5.1 27.37L2.65 33.72M3.08 24.74L2.65 33.72M5.1 27.37L3.08 24.74M7.04 18.3L3.08 24.74M6.33 16.47L3.08 24.74M7.04 18.3L6.33 16.47M11.07 11.31L6.33 16.47M3.08 24.74L2.12 31.25M52.93 11.36L47.43 6.56M46.49 8.25L52.93 11.36M47.43 6.56L46.49 8.25M51.9 14.58L52.93 11.36M46.49 8.25L51.9 14.58M44.19 12.18L51.9 14.58M46.49 8.25L44.19 12.18M48.77 19.88L51.9 14.58M44.19 12.18L48.77 19.88M40.8 17.88L48.77 19.88M44.19 12.18L40.8 17.88M44.4 25.81L48.77 19.88M40.8 17.88L44.4 25.81M37.31 23.72L44.4 25.81M40.8 17.88L37.31 23.72M57.67 18.69L52.93 11.36M51.9 14.58L57.67 18.69M55.86 23.31L57.67 18.69M51.9 14.58L55.86 23.31M48.77 19.88L55.86 23.31M51.72 28.77L55.86 23.31M48.77 19.88L51.72 28.77M44.4 25.81L51.72 28.77M60.12 27.21L57.67 18.69M55.86 23.31L60.12 27.21M57.28 32.03L60.12 27.21M55.86 23.31L57.28 32.03M51.72 28.77L57.28 32.03M60.24 34.79L60.12 27.21M57.28 32.03L60.24 34.79M40.66 3.94L46.49 8.25M47.43 6.56L40.66 3.94M38.41 6.42L46.49 8.25M40.66 3.94L38.41 6.42M32 3.16L38.41 6.42M40.66 3.94L32 3.16M28.87 6.98L38.41 6.42M32 3.16L28.87 6.98M23.34 4.95L28.87 6.98M32 3.16L23.34 4.95M20.49 9.77L28.87 6.98M23.34 4.95L20.49 9.77M16.57 8.37L20.49 9.77M23.34 4.95L16.57 8.37M38.41 6.42L44.19 12.18M35.28 11.72L44.19 12.18M38.41 6.42L35.28 11.72M28.87 6.98L35.28 11.72M26.05 13.24L35.28 11.72M28.87 6.98L26.05 13.24M20.49 9.77L26.05 13.24M35.28 11.72L40.8 17.88M32.14 18.39L40.8 17.88M35.28 11.72L32.14 18.39M26.05 13.24L32.14 18.39M32.14 18.39L37.31 23.72M43.51 4.38L40.66 3.94M47.43 6.56L43.51 4.38M35.13 2.17L40.66 3.94M43.51 4.38L35.13 2.17M35.13 2.17L32 3.16M25.59 2.73L32 3.16M35.13 2.17L25.59 2.73M25.59 2.73L23.34 4.95M17.51 5.91L23.34 4.95M25.59 2.73L17.51 5.91M17.51 5.91L16.57 8.37M47.43 6.56L51.08 8.97M52.93 11.36L51.08 8.97M56.96 15.38L51.08 8.97M52.93 11.36L56.96 15.38M57.67 18.69L56.96 15.38M60.92 24.1L56.96 15.38M57.67 18.69L60.92 24.1M60.12 27.21L60.92 24.1M61.88 32.75L60.92 24.1M60.12 27.21L61.88 32.75M60.24 34.79L61.88 32.75M37.96 31.21L44.4 25.81M45.65 34.56L44.4 25.81M37.96 31.21L45.65 34.56M38.24 40.09L45.65 34.56M45.65 43.93L45.65 34.56M38.24 40.09L45.65 43.93M37.96 48.24L45.65 43.93M44.4 51.35L45.65 43.93M37.96 48.24L44.4 51.35M45.65 34.56L51.72 28.77M52.73 37.98L51.72 28.77M45.65 34.56L52.73 37.98M45.65 43.93L52.73 37.98M51.72 46.6L52.73 37.98M45.65 43.93L51.72 46.6M52.73 37.98L57.28 32.03M57.28 40.54L57.28 32.03M52.73 37.98L57.28 40.54M12.92 13.7L20.49 9.77M17.4 16.6L20.49 9.77M12.92 13.7L17.4 16.6M10.19 21.47L17.4 16.6M15.47 25.67L17.4 16.6M10.19 21.47L15.47 25.67M9.4 30.18L15.47 25.67M15.22 34.49L15.47 25.67M9.4 30.18L15.22 34.49M17.4 16.6L26.05 13.24M23.81 21.35L26.05 13.24M17.4 16.6L23.81 21.35M15.47 25.67L23.81 21.35M22.37 30.49L23.81 21.35M15.47 25.67L22.37 30.49M23.81 21.35L32.14 18.39M30.38 26.63L32.14 18.39M23.81 21.35L30.38 26.63M6.33 16.47L12.1 9.72M12.1 9.72L17.51 5.91M11.07 11.31L17.51 5.91M12.1 9.72L11.07 11.31M60.12 40.98L61.88 32.75M60.92 39.26L61.88 32.75M60.12 40.98L60.92 39.26M57.67 47.53L60.92 39.26",
|
|
352
|
+
hidden:
|
|
353
|
+
"M23.34 60.06L20.49 59.62M16.57 57.44L23.34 60.06M23.34 60.06L28.87 61.83M32 60.84L28.87 61.83M23.34 60.06L32 60.84M32 60.84L38.41 61.27M40.66 59.05L38.41 61.27M32 60.84L40.66 59.05M40.66 59.05L46.49 58.09M47.43 55.63L46.49 58.09M40.66 59.05L47.43 55.63M17.51 55.75L23.34 60.06M16.57 57.44L17.51 55.75M25.59 57.58L23.34 60.06M17.51 55.75L25.59 57.58M19.81 51.82L25.59 57.58M17.51 55.75L19.81 51.82M28.72 52.28L25.59 57.58M19.81 51.82L28.72 52.28M23.2 46.12L28.72 52.28M19.81 51.82L23.2 46.12M31.86 45.61L28.72 52.28M23.2 46.12L31.86 45.61M26.69 40.28L31.86 45.61M23.2 46.12L26.69 40.28M25.59 57.58L32 60.84M35.13 57.02L32 60.84M25.59 57.58L35.13 57.02M28.72 52.28L35.13 57.02M37.95 50.76L35.13 57.02M28.72 52.28L37.95 50.76M31.86 45.61L37.95 50.76M35.13 57.02L40.66 59.05M43.51 54.23L40.66 59.05M35.13 57.02L43.51 54.23M37.95 50.76L43.51 54.23M43.51 54.23L47.43 55.63M11.07 52.64L17.51 55.75M16.57 57.44L11.07 52.64M12.1 49.42L17.51 55.75M11.07 52.64L12.1 49.42M6.33 45.31L12.1 49.42M11.07 52.64L6.33 45.31M8.14 40.69L12.1 49.42M6.33 45.31L8.14 40.69M3.88 36.79L8.14 40.69M6.33 45.31L3.88 36.79M6.72 31.97L8.14 40.69M3.88 36.79L6.72 31.97M3.76 29.21L6.72 31.97M3.88 36.79L3.76 29.21M12.1 49.42L19.81 51.82M15.23 44.12L19.81 51.82M12.1 49.42L15.23 44.12M8.14 40.69L15.23 44.12M12.28 35.23L15.23 44.12M8.14 40.69L12.28 35.23M6.72 31.97L12.28 35.23M15.23 44.12L23.2 46.12M19.6 38.19L23.2 46.12M15.23 44.12L19.6 38.19M12.28 35.23L19.6 38.19M19.6 38.19L26.69 40.28M12.92 55.03L11.07 52.64M7.04 48.62L11.07 52.64M7.04 48.62L6.33 45.31M3.08 39.9L6.33 45.31M3.08 39.9L3.88 36.79M2.12 31.25L3.88 36.79M2.12 31.25L3.76 29.21M52.93 52.69L46.49 58.09M47.43 55.63L52.93 52.69M52.93 52.69L51.9 54.28M52.93 52.69L57.67 47.53M3.88 23.02L2.12 31.25M3.08 24.74L3.88 23.02M6.33 16.47L3.88 23.02M3.88 23.02L3.76 29.21M6.72 23.46L6.72 31.97M3.76 29.21L6.72 23.46M11.27 26.02L6.72 31.97M6.72 23.46L11.27 26.02M12.28 17.4L11.27 26.02M6.72 23.46L12.28 17.4M18.35 20.07L11.27 26.02M12.28 17.4L18.35 20.07M19.6 12.65L18.35 20.07M12.28 17.4L19.6 12.65M26.04 15.76L18.35 20.07M19.6 12.65L26.04 15.76M26.69 9.96L26.04 15.76M19.6 12.65L26.69 9.96M11.27 26.02L12.28 35.23M18.35 29.44L12.28 35.23M11.27 26.02L18.35 29.44M18.35 20.07L18.35 29.44M25.76 23.91L18.35 29.44M18.35 20.07L25.76 23.91M26.04 15.76L25.76 23.91M18.35 29.44L19.6 38.19M26.04 32.79L19.6 38.19M18.35 29.44L26.04 32.79M25.76 23.91L26.04 32.79M26.04 32.79L26.69 40.28M33.62 37.37L31.86 45.61M26.69 40.28L33.62 37.37M40.19 42.65L31.86 45.61M33.62 37.37L40.19 42.65M41.63 33.51L40.19 42.65M33.62 37.37L41.63 33.51M48.53 38.33L40.19 42.65M41.63 33.51L48.53 38.33M48.78 29.51L48.53 38.33M41.63 33.51L48.78 29.51M54.6 33.82L48.53 38.33M48.78 29.51L54.6 33.82M53.68 26.28L54.6 33.82M48.78 29.51L53.68 26.28M40.19 42.65L37.95 50.76M46.6 47.4L37.95 50.76M40.19 42.65L46.6 47.4M48.53 38.33L46.6 47.4M53.81 42.53L46.6 47.4M48.53 38.33L53.81 42.53M54.6 33.82L53.81 42.53M46.6 47.4L43.51 54.23M51.08 50.3L43.51 54.23M46.6 47.4L51.08 50.3M53.81 42.53L51.08 50.3M51.08 50.3L47.43 55.63M37.95 4.09L35.13 2.17M43.51 4.38L37.95 4.09M28.72 3.22L35.13 2.17M37.95 4.09L28.72 3.22M31.86 6.29L28.72 3.22M37.95 4.09L31.86 6.29M23.2 6.8L28.72 3.22M31.86 6.29L23.2 6.8M26.69 9.96L23.2 6.8M31.86 6.29L26.69 9.96M28.72 3.22L25.59 2.73M19.81 5.16L25.59 2.73M28.72 3.22L19.81 5.16M23.2 6.8L19.81 5.16M19.81 5.16L17.51 5.91M51.08 8.97L43.51 4.38M46.6 7.7L43.51 4.38M51.08 8.97L46.6 7.7M53.81 13.69L46.6 7.7M51.08 8.97L53.81 13.69M48.53 13.8L46.6 7.7M53.81 13.69L48.53 13.8M54.6 20.04L48.53 13.8M53.81 13.69L54.6 20.04M48.78 21L48.53 13.8M54.6 20.04L48.78 21M53.68 26.28L48.78 21M54.6 20.04L53.68 26.28M46.6 7.7L37.95 4.09M40.19 8.75L37.95 4.09M46.6 7.7L40.19 8.75M48.53 13.8L40.19 8.75M41.63 15.68L40.19 8.75M48.53 13.8L41.63 15.68M48.78 21L41.63 15.68M40.19 8.75L31.86 6.29M33.62 11.83L31.86 6.29M40.19 8.75L33.62 11.83M41.63 15.68L33.62 11.83M33.62 11.83L26.69 9.96M56.96 15.38L53.81 13.69M58.9 21.47L53.81 13.69M56.96 15.38L58.9 21.47M60.92 24.1L58.9 21.47M61.35 30.28L58.9 21.47M60.92 24.1L61.35 30.28M61.88 32.75L61.35 30.28M58.9 21.47L54.6 20.04M58.2 27.97L54.6 20.04M58.9 21.47L58.2 27.97M61.35 30.28L58.2 27.97M58.2 27.97L53.68 26.28M19.6 12.65L23.2 6.8M15.23 10.21L23.2 6.8M19.6 12.65L15.23 10.21M12.28 17.4L15.23 10.21M8.14 16.16L15.23 10.21M12.28 17.4L8.14 16.16M6.72 23.46L8.14 16.16M3.88 23.02L8.14 16.16M6.72 23.46L3.88 23.02M15.23 10.21L19.81 5.16M12.1 9.72L19.81 5.16M15.23 10.21L12.1 9.72M8.14 16.16L12.1 9.72M8.14 16.16L6.33 16.47M48.78 29.51L48.78 21M42.12 24.22L48.78 21M48.78 29.51L42.12 24.22M41.63 33.51L42.12 24.22M33.78 28.54L42.12 24.22M41.63 33.51L33.78 28.54M33.62 37.37L33.78 28.54M26.04 32.79L33.78 28.54M33.62 37.37L26.04 32.79M42.12 24.22L41.63 15.68M33.78 19.17L41.63 15.68M42.12 24.22L33.78 19.17M33.78 28.54L33.78 19.17M25.76 23.91L33.78 19.17M33.78 28.54L25.76 23.91M33.78 19.17L33.62 11.83M26.04 15.76L33.62 11.83M33.78 19.17L26.04 15.76M56.96 45.7L60.92 39.26M57.67 47.53L56.96 45.7M52.93 52.69L56.96 45.7M51.08 50.3L56.96 45.7M52.93 52.69L51.08 50.3M60.92 39.26L61.35 30.28M58.9 36.63L61.35 30.28M60.92 39.26L58.9 36.63M56.96 45.7L58.9 36.63M53.81 42.53L58.9 36.63M56.96 45.7L53.81 42.53M58.9 36.63L58.2 27.97M54.6 33.82L58.2 27.97M58.9 36.63L54.6 33.82",
|
|
354
|
+
hull: "2.12,31.25 3.08,24.74 6.33,16.47 12.1,9.72 17.51,5.91 25.59,2.73 35.13,2.17 43.51,4.38 47.43,6.56 51.08,8.97 56.96,15.38 60.92,24.1 61.88,32.75 60.92,39.26 57.67,47.53 51.9,54.28 46.49,58.09 38.41,61.27 28.87,61.83 20.49,59.62 16.57,57.44 12.92,55.03 7.04,48.62 3.08,39.9",
|
|
355
|
+
details: "",
|
|
356
|
+
},
|
|
357
|
+
socialLinks: "M32 21L21.5 39M21.5 39L42.5 39M42.5 39L32 21",
|
|
358
|
+
tiles: {
|
|
359
|
+
hexagon: "32,4 56.25,18 56.25,46 32,60 7.75,46 7.75,18",
|
|
360
|
+
triangle: "32,5 59.71,53 4.29,53",
|
|
361
|
+
diamond: "32,2 62,32 32,62 2,32",
|
|
362
|
+
heptagon: "32,3 54.67,13.92 60.27,38.45 44.58,58.13 19.42,58.13 3.73,38.45 9.33,13.92",
|
|
363
|
+
pentagon: "32,4.5 59.58,24.54 49.05,56.96 14.95,56.96 4.42,24.54",
|
|
364
|
+
octagon: "43.1,5.21 58.79,20.9 58.79,43.1 43.1,58.79 20.9,58.79 5.21,43.1 5.21,20.9 20.9,5.21",
|
|
365
|
+
giftToken: "32,18 44.12,25 44.12,39 32,46 19.88,39 19.88,25",
|
|
366
|
+
},
|
|
367
|
+
} as const
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type BadgeBaseProps, BadgeFrame } from "./badge-frame"
|
|
2
|
+
import { GEOMETRY } from "./geometry"
|
|
3
|
+
|
|
4
|
+
export type GiftBoxBadgeProps = BadgeBaseProps
|
|
5
|
+
|
|
6
|
+
/** A gift offered by a peer: the box, lid and ribbon, in a 5-sided tile. Received, it turns orange. */
|
|
7
|
+
export function GiftBoxBadge(props: GiftBoxBadgeProps) {
|
|
8
|
+
return (
|
|
9
|
+
<BadgeFrame
|
|
10
|
+
{...props}
|
|
11
|
+
tile={{ kind: "polygon", points: GEOMETRY.tiles.pentagon }}
|
|
12
|
+
solids={[GEOMETRY.gift]}
|
|
13
|
+
doneHue="orange"
|
|
14
|
+
locked="silhouette"
|
|
15
|
+
/>
|
|
16
|
+
)
|
|
17
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from "react"
|
|
2
|
+
import { cn } from "../../lib/cn"
|
|
3
|
+
import { props as attrs } from "../../lib/props"
|
|
4
|
+
import type { WithTestId } from "../../lib/test-id"
|
|
5
|
+
import { imageProps } from "./a11y"
|
|
6
|
+
import { GEOMETRY } from "./geometry"
|
|
7
|
+
import { GlyphSlot } from "./glyph-slot"
|
|
8
|
+
import { color, type Hue, paint, tint } from "./status"
|
|
9
|
+
|
|
10
|
+
export type GiftTokenProps = WithTestId & {
|
|
11
|
+
/** The gift's own warm colour: gifts are not a status. */
|
|
12
|
+
hue: Hue
|
|
13
|
+
/** The gift's glyph, e.g. a lucide `Flower2`, `Coffee`, `Sparkles`, `Rocket`. */
|
|
14
|
+
icon: ReactNode
|
|
15
|
+
size?: number
|
|
16
|
+
/**
|
|
17
|
+
* How much of the gift's time is left, 0–1: the orbit drains clockwise
|
|
18
|
+
* from the top and the satellite rides its end. Without it the orbit is
|
|
19
|
+
* whole and the satellite sits up and to the right.
|
|
20
|
+
*/
|
|
21
|
+
remaining?: number
|
|
22
|
+
/** Accessible name. Without one the token is decorative and hidden from assistive tech. */
|
|
23
|
+
label?: string
|
|
24
|
+
className?: string
|
|
25
|
+
style?: CSSProperties
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// The satellite sits up and to the right on the orbit.
|
|
29
|
+
const SATELLITE_ANGLE = (-50 * Math.PI) / 180
|
|
30
|
+
const ORBIT = 26
|
|
31
|
+
|
|
32
|
+
/** A received gift: a lit hexagon in a dashed orbit, with its satellite. */
|
|
33
|
+
export function GiftToken({
|
|
34
|
+
hue,
|
|
35
|
+
icon,
|
|
36
|
+
size = 64,
|
|
37
|
+
remaining,
|
|
38
|
+
label,
|
|
39
|
+
className,
|
|
40
|
+
style,
|
|
41
|
+
testId,
|
|
42
|
+
}: GiftTokenProps) {
|
|
43
|
+
const left = remaining === undefined ? undefined : Math.min(1, Math.max(0, remaining))
|
|
44
|
+
// Clockwise from the top, so the satellite marks how far the orbit runs.
|
|
45
|
+
const angle = left === undefined ? SATELLITE_ANGLE : -Math.PI / 2 + left * 2 * Math.PI
|
|
46
|
+
return (
|
|
47
|
+
<span
|
|
48
|
+
className={cn("geodesic-badge", className)}
|
|
49
|
+
{...imageProps(label)}
|
|
50
|
+
{...attrs({ "data-testid": testId })}
|
|
51
|
+
style={{ display: "inline-grid", width: size, height: size, flex: "none", ...style }}
|
|
52
|
+
>
|
|
53
|
+
<svg
|
|
54
|
+
aria-hidden="true"
|
|
55
|
+
viewBox="0 0 64 64"
|
|
56
|
+
width={size}
|
|
57
|
+
height={size}
|
|
58
|
+
style={{ gridArea: "1 / 1", display: "block" }}
|
|
59
|
+
>
|
|
60
|
+
<circle
|
|
61
|
+
cx={32}
|
|
62
|
+
cy={32}
|
|
63
|
+
r={ORBIT}
|
|
64
|
+
fill="none"
|
|
65
|
+
stroke={paint(hue, [300, 300], left === undefined ? 55 : 25)}
|
|
66
|
+
strokeWidth={0.7}
|
|
67
|
+
strokeDasharray="1.6 1.6"
|
|
68
|
+
/>
|
|
69
|
+
{left !== undefined && (
|
|
70
|
+
// What is left of the orbit, drawn over the faint dashes.
|
|
71
|
+
<circle
|
|
72
|
+
cx={32}
|
|
73
|
+
cy={32}
|
|
74
|
+
r={ORBIT}
|
|
75
|
+
fill="none"
|
|
76
|
+
stroke={paint(hue, [300, 300], 80)}
|
|
77
|
+
strokeWidth={0.9}
|
|
78
|
+
strokeLinecap="round"
|
|
79
|
+
pathLength={100}
|
|
80
|
+
strokeDasharray={`${left * 100} 100`}
|
|
81
|
+
transform="rotate(-90 32 32)"
|
|
82
|
+
/>
|
|
83
|
+
)}
|
|
84
|
+
<circle
|
|
85
|
+
cx={32 + Math.cos(angle) * ORBIT}
|
|
86
|
+
cy={32 + Math.sin(angle) * ORBIT}
|
|
87
|
+
r={2}
|
|
88
|
+
fill={paint("purple", [300, 300])}
|
|
89
|
+
/>
|
|
90
|
+
<polygon
|
|
91
|
+
points={GEOMETRY.tiles.giftToken}
|
|
92
|
+
fill={color(hue, 400)}
|
|
93
|
+
stroke={paint(hue, [300, 300])}
|
|
94
|
+
strokeWidth={0.8}
|
|
95
|
+
strokeLinejoin="round"
|
|
96
|
+
style={{ filter: `drop-shadow(0 0 3px ${tint(hue, 500, 70)})` }}
|
|
97
|
+
/>
|
|
98
|
+
</svg>
|
|
99
|
+
<GlyphSlot size="22%" style={{ color: color(hue, 950) }}>
|
|
100
|
+
{icon}
|
|
101
|
+
</GlyphSlot>
|
|
102
|
+
</span>
|
|
103
|
+
)
|
|
104
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from "react"
|
|
2
|
+
|
|
3
|
+
/** Centres a caller's glyph over a badge's SVG, sized as a share of the badge. */
|
|
4
|
+
export function GlyphSlot({
|
|
5
|
+
size,
|
|
6
|
+
style,
|
|
7
|
+
children,
|
|
8
|
+
}: {
|
|
9
|
+
size: string
|
|
10
|
+
style?: CSSProperties
|
|
11
|
+
children: ReactNode
|
|
12
|
+
}) {
|
|
13
|
+
return (
|
|
14
|
+
<span
|
|
15
|
+
className="geodesic-glyph-slot"
|
|
16
|
+
style={{
|
|
17
|
+
gridArea: "1 / 1",
|
|
18
|
+
placeSelf: "center",
|
|
19
|
+
display: "grid",
|
|
20
|
+
width: size,
|
|
21
|
+
height: size,
|
|
22
|
+
...style,
|
|
23
|
+
}}
|
|
24
|
+
>
|
|
25
|
+
{children}
|
|
26
|
+
</span>
|
|
27
|
+
)
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
export { ActivityBadge, type ActivityBadgeProps } from "./activity-badge"
|
|
4
|
+
export type { BadgeBaseProps } from "./badge-frame"
|
|
5
|
+
export { ExamBadge, type ExamBadgeProps } from "./exam-badge"
|
|
6
|
+
export { GiftBoxBadge, type GiftBoxBadgeProps } from "./gift-box-badge"
|
|
7
|
+
export { GiftToken, type GiftTokenProps } from "./gift-token"
|
|
8
|
+
export { ModuleBadge, type ModuleBadgeProps } from "./module-badge"
|
|
9
|
+
export { Planet, type PlanetProps, planetLevelOffset } from "./planet"
|
|
10
|
+
export { ProjectBadge, type ProjectBadgeProps } from "./project-badge"
|
|
11
|
+
export { SkillBadge, type SkillBadgeProps } from "./skill-badge"
|
|
12
|
+
export { SocialBadge, type SocialBadgeProps } from "./social-badge"
|
|
13
|
+
export type { BadgeStatus, Hue } from "./status"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type BadgeBaseProps, BadgeFrame } from "./badge-frame"
|
|
2
|
+
import { GEOMETRY } from "./geometry"
|
|
3
|
+
|
|
4
|
+
export type ModuleBadgeProps = BadgeBaseProps
|
|
5
|
+
|
|
6
|
+
/** A module: the geodesic sphere. Green once validated. */
|
|
7
|
+
export function ModuleBadge(props: ModuleBadgeProps) {
|
|
8
|
+
return (
|
|
9
|
+
<BadgeFrame
|
|
10
|
+
{...props}
|
|
11
|
+
tile={{ kind: "circle" }}
|
|
12
|
+
solids={[GEOMETRY.module]}
|
|
13
|
+
doneHue="green"
|
|
14
|
+
locked="wire"
|
|
15
|
+
/>
|
|
16
|
+
)
|
|
17
|
+
}
|