@jjlmoya/utils-science 1.42.0 → 1.44.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/package.json +1 -1
- package/src/category/index.ts +4 -1
- package/src/entries.ts +7 -1
- package/src/index.ts +3 -0
- package/src/tests/diacritics_density.test.ts +140 -0
- package/src/tests/inverted_punctuation.test.ts +84 -0
- package/src/tests/locale_completeness.test.ts +2 -2
- package/src/tests/script_density.test.ts +94 -0
- package/src/tests/tool_validation.test.ts +2 -3
- package/src/tool/black-hole-event-horizon-simulator/bibliography.astro +14 -0
- package/src/tool/black-hole-event-horizon-simulator/bibliography.ts +16 -0
- package/src/tool/black-hole-event-horizon-simulator/black-hole-event-horizon-simulator.css +366 -0
- package/src/tool/black-hole-event-horizon-simulator/component.astro +302 -0
- package/src/tool/black-hole-event-horizon-simulator/entry.ts +29 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/de.ts +179 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/en.ts +259 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/es.ts +259 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/fr.ts +179 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/id.ts +259 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/it.ts +179 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/ja.ts +179 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/ko.ts +259 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/nl.ts +179 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/pl.ts +259 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/pt.ts +179 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/ru.ts +259 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/sv.ts +179 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/tr.ts +179 -0
- package/src/tool/black-hole-event-horizon-simulator/i18n/zh.ts +179 -0
- package/src/tool/black-hole-event-horizon-simulator/index.ts +11 -0
- package/src/tool/black-hole-event-horizon-simulator/logic.ts +68 -0
- package/src/tool/black-hole-event-horizon-simulator/seo.astro +15 -0
- package/src/tool/conway-life-rule-lab/i18n/de.ts +62 -5
- package/src/tool/conway-life-rule-lab/i18n/es.ts +62 -5
- package/src/tool/conway-life-rule-lab/i18n/fr.ts +62 -5
- package/src/tool/conway-life-rule-lab/i18n/id.ts +102 -45
- package/src/tool/conway-life-rule-lab/i18n/it.ts +62 -5
- package/src/tool/conway-life-rule-lab/i18n/ja.ts +62 -5
- package/src/tool/conway-life-rule-lab/i18n/ko.ts +62 -5
- package/src/tool/conway-life-rule-lab/i18n/nl.ts +102 -45
- package/src/tool/conway-life-rule-lab/i18n/pl.ts +62 -5
- package/src/tool/conway-life-rule-lab/i18n/pt.ts +62 -5
- package/src/tool/conway-life-rule-lab/i18n/ru.ts +62 -5
- package/src/tool/conway-life-rule-lab/i18n/sv.ts +62 -5
- package/src/tool/conway-life-rule-lab/i18n/tr.ts +62 -5
- package/src/tool/conway-life-rule-lab/i18n/zh.ts +62 -5
- package/src/tool/cosmic-inflation/i18n/es.ts +5 -5
- package/src/tool/cosmic-inflation/i18n/it.ts +51 -51
- package/src/tool/cosmic-inflation/i18n/ru.ts +42 -150
- package/src/tool/double-slit-decoherence/i18n/fr.ts +42 -86
- package/src/tool/double-slit-decoherence/i18n/it.ts +28 -72
- package/src/tool/double-slit-decoherence/i18n/pt.ts +35 -79
- package/src/tool/double-slit-decoherence/i18n/ru.ts +59 -59
- package/src/tool/double-slit-decoherence/i18n/sv.ts +33 -81
- package/src/tool/double-slit-decoherence/i18n/tr.ts +55 -55
- package/src/tool/dyson-sphere-energy-capture/i18n/de.ts +42 -123
- package/src/tool/dyson-sphere-energy-capture/i18n/es.ts +6 -6
- package/src/tool/dyson-sphere-energy-capture/i18n/fr.ts +63 -131
- package/src/tool/dyson-sphere-energy-capture/i18n/it.ts +36 -113
- package/src/tool/dyson-sphere-energy-capture/i18n/ja.ts +66 -42
- package/src/tool/dyson-sphere-energy-capture/i18n/ko.ts +66 -42
- package/src/tool/dyson-sphere-energy-capture/i18n/pl.ts +50 -133
- package/src/tool/dyson-sphere-energy-capture/i18n/pt.ts +51 -132
- package/src/tool/dyson-sphere-energy-capture/i18n/ru.ts +61 -98
- package/src/tool/dyson-sphere-energy-capture/i18n/sv.ts +56 -137
- package/src/tool/dyson-sphere-energy-capture/i18n/tr.ts +61 -142
- package/src/tool/dyson-sphere-energy-capture/i18n/zh.ts +67 -43
- package/src/tool/epidemic-sir-simulator/bibliography.astro +15 -0
- package/src/tool/epidemic-sir-simulator/bibliography.ts +37 -0
- package/src/tool/epidemic-sir-simulator/component.astro +384 -0
- package/src/tool/epidemic-sir-simulator/entry.ts +30 -0
- package/src/tool/epidemic-sir-simulator/epidemic-sir-simulator.css +624 -0
- package/src/tool/epidemic-sir-simulator/i18n/de.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/en.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/es.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/fr.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/id.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/it.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/ja.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/ko.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/nl.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/pl.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/pt.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/ru.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/sv.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/tr.ts +347 -0
- package/src/tool/epidemic-sir-simulator/i18n/zh.ts +347 -0
- package/src/tool/epidemic-sir-simulator/index.ts +12 -0
- package/src/tool/epidemic-sir-simulator/logic.ts +163 -0
- package/src/tool/epidemic-sir-simulator/seo.astro +16 -0
- package/src/tool/fermi-paradox-filter-lab/bibliography.astro +14 -0
- package/src/tool/fermi-paradox-filter-lab/bibliography.ts +24 -0
- package/src/tool/fermi-paradox-filter-lab/component.astro +257 -0
- package/src/tool/fermi-paradox-filter-lab/entry.ts +26 -0
- package/src/tool/fermi-paradox-filter-lab/fermi-paradox-filter-lab.css +228 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/de.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/en.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/es.ts +193 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/fr.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/id.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/it.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/ja.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/ko.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/nl.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/pl.ts +193 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/pt.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/ru.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/sv.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/tr.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/i18n/zh.ts +192 -0
- package/src/tool/fermi-paradox-filter-lab/index.ts +11 -0
- package/src/tool/fermi-paradox-filter-lab/logic.ts +125 -0
- package/src/tool/fermi-paradox-filter-lab/seo.astro +15 -0
- package/src/tool/global-albedo-snowball-simulator/i18n/ru.ts +50 -63
- package/src/tool/lorenz-attractor/i18n/de.ts +52 -78
- package/src/tool/lorenz-attractor/i18n/es.ts +5 -5
- package/src/tool/lorenz-attractor/i18n/fr.ts +51 -77
- package/src/tool/lorenz-attractor/i18n/it.ts +36 -36
- package/src/tool/lorenz-attractor/i18n/pt.ts +51 -75
- package/src/tool/mandelbrot-fractal/i18n/de.ts +31 -58
- package/src/tool/mandelbrot-fractal/i18n/es.ts +5 -5
- package/src/tool/mandelbrot-fractal/i18n/fr.ts +39 -57
- package/src/tool/mandelbrot-fractal/i18n/it.ts +30 -48
- package/src/tool/mandelbrot-fractal/i18n/pl.ts +34 -52
- package/src/tool/mandelbrot-fractal/i18n/pt.ts +30 -30
- package/src/tool/mandelbrot-fractal/i18n/ru.ts +42 -60
- package/src/tool/mandelbrot-fractal/i18n/sv.ts +38 -65
- package/src/tool/natural-selection-drift/i18n/it.ts +18 -95
- package/src/tool/natural-selection-drift/i18n/pt.ts +76 -19
- package/src/tool/natural-selection-drift/i18n/ru.ts +27 -24
- package/src/tool/natural-selection-drift/i18n/sv.ts +9 -6
- package/src/tool/phase-diagram-critical-points/i18n/de.ts +30 -68
- package/src/tool/phase-diagram-critical-points/i18n/es.ts +4 -4
- package/src/tool/phase-diagram-critical-points/i18n/fr.ts +37 -75
- package/src/tool/phase-diagram-critical-points/i18n/it.ts +8 -8
- package/src/tool/planet-atmosphere-survival/i18n/ru.ts +49 -192
- package/src/tool/radioactive-decay/i18n/de.ts +16 -32
- package/src/tool/radioactive-decay/i18n/es.ts +5 -5
- package/src/tool/radioactive-decay/i18n/fr.ts +24 -40
- package/src/tool/radioactive-decay/i18n/it.ts +18 -35
- package/src/tool/radioactive-decay/i18n/pt.ts +34 -34
- package/src/tool/roche-limit-satellite-disruption/i18n/pl.ts +52 -128
- package/src/tool/temperature-timeline/i18n/de.ts +46 -174
- package/src/tool/temperature-timeline/i18n/es.ts +5 -5
- package/src/tool/temperature-timeline/i18n/fr.ts +69 -144
- package/src/tool/temperature-timeline/i18n/it.ts +34 -133
- package/src/tool/temperature-timeline/i18n/pt.ts +35 -174
- package/src/tool/temperature-timeline/i18n/ru.ts +48 -174
- package/src/tool/twin-paradox-visualizer/i18n/es.ts +5 -5
- package/src/tool/twin-paradox-visualizer/i18n/fr.ts +34 -34
- package/src/tool/twin-paradox-visualizer/i18n/pt.ts +31 -71
- package/src/tools.ts +6 -0
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
.bh-lab {
|
|
2
|
+
--bh-ink: #f6f2e8;
|
|
3
|
+
--bh-muted: #a8b2c3;
|
|
4
|
+
--bh-panel: rgba(12, 15, 24, 0.72);
|
|
5
|
+
--bh-line: rgba(255, 255, 255, 0.16);
|
|
6
|
+
--bh-blue: #4dd7ff;
|
|
7
|
+
--bh-gold: #ffe27a;
|
|
8
|
+
--bh-red: #ff4d6d;
|
|
9
|
+
--bh-warp: 0.58;
|
|
10
|
+
|
|
11
|
+
gap: 18px;
|
|
12
|
+
width: min(100%, 1180px);
|
|
13
|
+
margin-inline: auto;
|
|
14
|
+
color: var(--bh-ink);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.bh-card {
|
|
18
|
+
display: grid;
|
|
19
|
+
gap: 0;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
border-radius: 8px;
|
|
22
|
+
background:
|
|
23
|
+
radial-gradient(circle at 50% 42%, rgba(255, 226, 122, calc(0.05 + var(--bh-warp) * 0.11)), transparent 19rem),
|
|
24
|
+
linear-gradient(145deg, #080a11 0%, #121a27 52%, #080910 100%);
|
|
25
|
+
box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.bh-stage {
|
|
29
|
+
position: relative;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.bh-visual {
|
|
34
|
+
position: relative;
|
|
35
|
+
min-height: 390px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.bh-svg {
|
|
39
|
+
display: block;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: auto;
|
|
42
|
+
min-height: 390px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.bh-space {
|
|
46
|
+
fill: transparent;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.bh-stars circle {
|
|
50
|
+
fill: rgba(255, 255, 255, 0.8);
|
|
51
|
+
opacity: calc(0.16 + var(--bh-warp) * 0.58);
|
|
52
|
+
transform-origin: 380px 310px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.bh-disk {
|
|
56
|
+
fill: none;
|
|
57
|
+
stroke: url("#bh-disk");
|
|
58
|
+
stroke-linecap: round;
|
|
59
|
+
transform-origin: 380px 314px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.bh-disk-back {
|
|
63
|
+
opacity: 0.5;
|
|
64
|
+
stroke-width: 17;
|
|
65
|
+
filter: url("#bh-blur");
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.bh-disk-front {
|
|
69
|
+
opacity: 0.88;
|
|
70
|
+
stroke-width: 8;
|
|
71
|
+
stroke-dasharray: 520 160;
|
|
72
|
+
animation: bh-flow 6s linear infinite;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.bh-horizon {
|
|
76
|
+
fill: url("#bh-core-glow");
|
|
77
|
+
stroke: rgba(255, 255, 255, 0.08);
|
|
78
|
+
stroke-width: 2;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.bh-horizon-glow {
|
|
82
|
+
fill: rgba(0, 0, 0, 0.2);
|
|
83
|
+
stroke: rgba(255, 210, 102, 0.24);
|
|
84
|
+
stroke-width: 16;
|
|
85
|
+
filter: url("#bh-blur");
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.bh-photon,
|
|
89
|
+
.bh-isco {
|
|
90
|
+
fill: none;
|
|
91
|
+
stroke-width: 2;
|
|
92
|
+
transform-origin: 380px 310px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.bh-photon {
|
|
96
|
+
stroke: rgba(77, 215, 255, 0.52);
|
|
97
|
+
stroke-dasharray: 5 9;
|
|
98
|
+
animation: bh-spin 12s linear infinite;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.bh-isco {
|
|
102
|
+
stroke: rgba(255, 255, 255, 0.22);
|
|
103
|
+
stroke-dasharray: 2 14;
|
|
104
|
+
animation: bh-spin 20s linear infinite reverse;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.bh-probe circle {
|
|
108
|
+
fill: #fff;
|
|
109
|
+
filter: drop-shadow(0 0 14px rgba(77, 215, 255, 0.9));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.bh-probe path {
|
|
113
|
+
fill: var(--bh-blue);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.bh-label {
|
|
117
|
+
color: #dbe7ff;
|
|
118
|
+
font-size: 0.78rem;
|
|
119
|
+
font-weight: 800;
|
|
120
|
+
letter-spacing: 0.04em;
|
|
121
|
+
text-transform: uppercase;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.bh-label line {
|
|
125
|
+
stroke: rgba(255, 255, 255, 0.28);
|
|
126
|
+
stroke-width: 1;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.bh-label text {
|
|
130
|
+
fill: currentcolor;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.bh-readout {
|
|
134
|
+
display: grid;
|
|
135
|
+
gap: 7px;
|
|
136
|
+
padding: 0 18px 20px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.bh-readout span {
|
|
140
|
+
color: var(--bh-blue);
|
|
141
|
+
font-size: 0.74rem;
|
|
142
|
+
font-weight: 900;
|
|
143
|
+
letter-spacing: 0.1em;
|
|
144
|
+
text-transform: uppercase;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.bh-readout strong {
|
|
148
|
+
font-size: clamp(2.3rem, 10vw, 4.8rem);
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
line-height: 0.95;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.bh-readout p {
|
|
154
|
+
max-width: 62ch;
|
|
155
|
+
margin: 0;
|
|
156
|
+
color: var(--bh-muted);
|
|
157
|
+
font-size: 1rem;
|
|
158
|
+
line-height: 1.55;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.bh-controls {
|
|
162
|
+
display: grid;
|
|
163
|
+
gap: 20px;
|
|
164
|
+
min-width: 0;
|
|
165
|
+
padding: 0 18px 18px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.bh-kpis,
|
|
169
|
+
.bh-orbit-panel {
|
|
170
|
+
display: grid;
|
|
171
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
172
|
+
gap: 10px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.bh-kpis div,
|
|
176
|
+
.bh-orbit-panel div {
|
|
177
|
+
min-height: 96px;
|
|
178
|
+
border: 1px solid var(--bh-line);
|
|
179
|
+
border-radius: 8px;
|
|
180
|
+
padding: 13px;
|
|
181
|
+
background: var(--bh-panel);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.bh-kpis span,
|
|
185
|
+
.bh-orbit-panel span,
|
|
186
|
+
.bh-slider span {
|
|
187
|
+
display: block;
|
|
188
|
+
color: var(--bh-muted);
|
|
189
|
+
font-size: 0.82rem;
|
|
190
|
+
font-weight: 800;
|
|
191
|
+
line-height: 1.24;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.bh-kpis strong,
|
|
195
|
+
.bh-orbit-panel strong {
|
|
196
|
+
display: block;
|
|
197
|
+
margin-top: 10px;
|
|
198
|
+
color: #fff;
|
|
199
|
+
font-size: clamp(1.42rem, 7vw, 2.45rem);
|
|
200
|
+
font-weight: 700;
|
|
201
|
+
font-variant-numeric: lining-nums tabular-nums;
|
|
202
|
+
line-height: 1;
|
|
203
|
+
overflow-wrap: anywhere;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.bh-sliders {
|
|
207
|
+
display: grid;
|
|
208
|
+
gap: 22px;
|
|
209
|
+
padding: 8px 0 2px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.bh-slider {
|
|
213
|
+
position: relative;
|
|
214
|
+
display: grid;
|
|
215
|
+
gap: 11px;
|
|
216
|
+
padding-bottom: 20px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.bh-slider output {
|
|
220
|
+
position: absolute;
|
|
221
|
+
left: var(--value-x, 50%);
|
|
222
|
+
bottom: 0;
|
|
223
|
+
color: var(--bh-gold);
|
|
224
|
+
font-size: 0.82rem;
|
|
225
|
+
font-weight: 900;
|
|
226
|
+
font-variant-numeric: tabular-nums;
|
|
227
|
+
opacity: 0;
|
|
228
|
+
transform: translateX(-50%) translateY(3px);
|
|
229
|
+
transition: opacity 150ms ease, transform 150ms ease;
|
|
230
|
+
white-space: nowrap;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.bh-slider:hover output,
|
|
234
|
+
.bh-slider:focus-within output {
|
|
235
|
+
opacity: 1;
|
|
236
|
+
transform: translateX(-50%) translateY(0);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.bh-slider input {
|
|
240
|
+
width: 100%;
|
|
241
|
+
height: 32px;
|
|
242
|
+
appearance: none;
|
|
243
|
+
background: transparent;
|
|
244
|
+
cursor: pointer;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.bh-slider input::-webkit-slider-runnable-track {
|
|
248
|
+
height: 3px;
|
|
249
|
+
border-radius: 999px;
|
|
250
|
+
background: linear-gradient(90deg, var(--bh-blue), var(--bh-gold), var(--bh-red));
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.bh-slider input::-moz-range-track {
|
|
254
|
+
height: 3px;
|
|
255
|
+
border-radius: 999px;
|
|
256
|
+
background: linear-gradient(90deg, var(--bh-blue), var(--bh-gold), var(--bh-red));
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.bh-slider input::-webkit-slider-thumb {
|
|
260
|
+
width: 16px;
|
|
261
|
+
height: 16px;
|
|
262
|
+
margin-top: -6.5px;
|
|
263
|
+
border: 2px solid #10131d;
|
|
264
|
+
border-radius: 999px;
|
|
265
|
+
appearance: none;
|
|
266
|
+
background: #fff;
|
|
267
|
+
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.12), 0 0 18px rgba(255, 226, 122, 0.58);
|
|
268
|
+
transition: box-shadow 140ms ease, transform 140ms ease;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.bh-slider input::-moz-range-thumb {
|
|
272
|
+
width: 16px;
|
|
273
|
+
height: 16px;
|
|
274
|
+
border: 2px solid #10131d;
|
|
275
|
+
border-radius: 999px;
|
|
276
|
+
background: #fff;
|
|
277
|
+
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.12), 0 0 18px rgba(255, 226, 122, 0.58);
|
|
278
|
+
transition: box-shadow 140ms ease, transform 140ms ease;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.bh-slider input:hover::-webkit-slider-thumb,
|
|
282
|
+
.bh-slider input:focus-visible::-webkit-slider-thumb {
|
|
283
|
+
box-shadow: 0 0 0 9px rgba(255, 226, 122, 0.16), 0 0 24px rgba(255, 226, 122, 0.78);
|
|
284
|
+
transform: scale(1.25);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.bh-slider input:hover::-moz-range-thumb,
|
|
288
|
+
.bh-slider input:focus-visible::-moz-range-thumb {
|
|
289
|
+
box-shadow: 0 0 0 9px rgba(255, 226, 122, 0.16), 0 0 24px rgba(255, 226, 122, 0.78);
|
|
290
|
+
transform: scale(1.25);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
@keyframes bh-flow {
|
|
294
|
+
to {
|
|
295
|
+
stroke-dashoffset: -680;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
@keyframes bh-spin {
|
|
300
|
+
to {
|
|
301
|
+
transform: rotate(360deg);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
@media (min-width: 820px) {
|
|
306
|
+
.bh-card {
|
|
307
|
+
grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
|
|
308
|
+
align-items: stretch;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.bh-stage,
|
|
312
|
+
.bh-controls {
|
|
313
|
+
min-height: 650px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.bh-readout {
|
|
317
|
+
position: absolute;
|
|
318
|
+
inset: auto 30px 28px;
|
|
319
|
+
padding: 0;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.bh-controls {
|
|
323
|
+
align-content: center;
|
|
324
|
+
padding: 24px;
|
|
325
|
+
border-left: 1px solid rgba(255, 255, 255, 0.08);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.bh-kpis {
|
|
329
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.theme-light .bh-lab {
|
|
334
|
+
--bh-ink: #131721;
|
|
335
|
+
--bh-muted: #596475;
|
|
336
|
+
--bh-panel: rgba(255, 255, 255, 0.78);
|
|
337
|
+
--bh-line: rgba(19, 23, 33, 0.13);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.theme-light .bh-card {
|
|
341
|
+
background:
|
|
342
|
+
radial-gradient(circle at 50% 42%, rgba(255, 167, 61, calc(0.08 + var(--bh-warp) * 0.12)), transparent 19rem),
|
|
343
|
+
linear-gradient(145deg, #f7fbff 0%, #edf3f7 52%, #fff 100%);
|
|
344
|
+
box-shadow: 0 26px 76px rgba(28, 40, 58, 0.14);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.theme-light .bh-controls {
|
|
348
|
+
border-left-color: rgba(19, 23, 33, 0.1);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.theme-light .bh-stars circle {
|
|
352
|
+
fill: rgba(20, 31, 48, 0.46);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.theme-light .bh-label {
|
|
356
|
+
color: #334055;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.theme-light .bh-label line {
|
|
360
|
+
stroke: rgba(19, 23, 33, 0.24);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.theme-light .bh-kpis strong,
|
|
364
|
+
.theme-light .bh-orbit-panel strong {
|
|
365
|
+
color: #111827;
|
|
366
|
+
}
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
---
|
|
2
|
+
import './black-hole-event-horizon-simulator.css';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
ui: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const { ui } = Astro.props;
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<div
|
|
12
|
+
class="bh-lab"
|
|
13
|
+
id="bh-lab"
|
|
14
|
+
data-rs-label={ui.rsLabel}
|
|
15
|
+
data-diameter-label={ui.diameterLabel}
|
|
16
|
+
data-time-label={ui.timeLabel}
|
|
17
|
+
data-redshift-label={ui.redshiftLabel}
|
|
18
|
+
data-status-safe={ui.statusSafe}
|
|
19
|
+
data-status-photon={ui.statusPhoton}
|
|
20
|
+
data-status-inside={ui.statusInside}
|
|
21
|
+
data-km-unit={ui.kilometerUnit}
|
|
22
|
+
data-ms-unit={ui.millisecondUnit}
|
|
23
|
+
data-second-unit={ui.secondUnit}
|
|
24
|
+
data-light-speed-unit={ui.lightSpeedUnit}
|
|
25
|
+
data-tidal-unit={ui.tidalUnit}
|
|
26
|
+
data-solar-masses-unit={ui.solarMassesUnit}
|
|
27
|
+
data-rs-unit={ui.rsUnit}
|
|
28
|
+
>
|
|
29
|
+
<div class="bh-card">
|
|
30
|
+
<section class="bh-stage" aria-label={ui.visualTitle}>
|
|
31
|
+
<div class="bh-visual">
|
|
32
|
+
<svg class="bh-svg" viewBox="0 0 760 620" role="img" aria-label={ui.visualTitle}>
|
|
33
|
+
<defs>
|
|
34
|
+
<radialGradient id="bh-core-glow" cx="50%" cy="50%" r="50%">
|
|
35
|
+
<stop offset="0%" stop-color="#000000" />
|
|
36
|
+
<stop offset="54%" stop-color="#020204" />
|
|
37
|
+
<stop offset="100%" stop-color="#19161f" />
|
|
38
|
+
</radialGradient>
|
|
39
|
+
<linearGradient id="bh-disk" x1="0" x2="1" y1="0" y2="0">
|
|
40
|
+
<stop offset="0%" stop-color="#4dd7ff" />
|
|
41
|
+
<stop offset="42%" stop-color="#ffe27a" />
|
|
42
|
+
<stop offset="72%" stop-color="#ff7a3d" />
|
|
43
|
+
<stop offset="100%" stop-color="#fb2d5f" />
|
|
44
|
+
</linearGradient>
|
|
45
|
+
<filter id="bh-blur">
|
|
46
|
+
<feGaussianBlur stdDeviation="9" />
|
|
47
|
+
</filter>
|
|
48
|
+
</defs>
|
|
49
|
+
<rect class="bh-space" width="760" height="620"></rect>
|
|
50
|
+
<g class="bh-stars" id="bh-stars"></g>
|
|
51
|
+
<ellipse class="bh-disk bh-disk-back" cx="380" cy="314" rx="268" ry="68"></ellipse>
|
|
52
|
+
<circle class="bh-photon" id="bh-photon" cx="380" cy="310" r="152"></circle>
|
|
53
|
+
<circle class="bh-isco" id="bh-isco" cx="380" cy="310" r="216"></circle>
|
|
54
|
+
<circle class="bh-horizon-glow" id="bh-horizon-glow" cx="380" cy="310" r="102"></circle>
|
|
55
|
+
<circle class="bh-horizon" id="bh-horizon" cx="380" cy="310" r="96"></circle>
|
|
56
|
+
<ellipse class="bh-disk bh-disk-front" cx="380" cy="314" rx="268" ry="68"></ellipse>
|
|
57
|
+
<g class="bh-probe" id="bh-probe">
|
|
58
|
+
<circle r="9"></circle>
|
|
59
|
+
<path d="M-18 0 L-4 -5 L-4 5 Z"></path>
|
|
60
|
+
</g>
|
|
61
|
+
<g class="bh-label bh-label-rs">
|
|
62
|
+
<line x1="380" x2="476" y1="310" y2="310"></line>
|
|
63
|
+
<text x="394" y="298">{ui.eventHorizon}</text>
|
|
64
|
+
</g>
|
|
65
|
+
<g class="bh-label bh-label-photon">
|
|
66
|
+
<line x1="532" x2="594" y1="310" y2="254"></line>
|
|
67
|
+
<text x="596" y="250">{ui.photonSphere}</text>
|
|
68
|
+
</g>
|
|
69
|
+
<g class="bh-label bh-label-isco">
|
|
70
|
+
<line x1="596" x2="662" y1="310" y2="368"></line>
|
|
71
|
+
<text x="548" y="390">{ui.isco}</text>
|
|
72
|
+
</g>
|
|
73
|
+
</svg>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="bh-readout">
|
|
76
|
+
<span id="bh-status">{ui.statusSafe}</span>
|
|
77
|
+
<strong id="bh-rs">{ui.zeroKilometers}</strong>
|
|
78
|
+
<p>{ui.visualCaption}</p>
|
|
79
|
+
</div>
|
|
80
|
+
</section>
|
|
81
|
+
|
|
82
|
+
<section class="bh-controls" aria-label={ui.controlsTitle}>
|
|
83
|
+
<div class="bh-kpis">
|
|
84
|
+
<div>
|
|
85
|
+
<span>{ui.diameter}</span>
|
|
86
|
+
<strong id="bh-diameter">{ui.zeroKilometers}</strong>
|
|
87
|
+
</div>
|
|
88
|
+
<div>
|
|
89
|
+
<span>{ui.lightCrossing}</span>
|
|
90
|
+
<strong id="bh-crossing">{ui.zeroMilliseconds}</strong>
|
|
91
|
+
</div>
|
|
92
|
+
<div>
|
|
93
|
+
<span>{ui.timeDilation}</span>
|
|
94
|
+
<strong id="bh-time">{ui.zeroMultiplier}</strong>
|
|
95
|
+
</div>
|
|
96
|
+
<div>
|
|
97
|
+
<span>{ui.redshift}</span>
|
|
98
|
+
<strong id="bh-redshift">0</strong>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<div class="bh-sliders">
|
|
103
|
+
<label class="bh-slider" for="bh-mass">
|
|
104
|
+
<span>{ui.mass}</span>
|
|
105
|
+
<output id="bh-mass-output">{ui.initialMassOutput}</output>
|
|
106
|
+
<input id="bh-mass" type="range" min="0.477" max="10" step="0.01" value="1" />
|
|
107
|
+
</label>
|
|
108
|
+
<label class="bh-slider" for="bh-distance">
|
|
109
|
+
<span>{ui.distance}</span>
|
|
110
|
+
<output id="bh-distance-output">{ui.initialDistanceOutput}</output>
|
|
111
|
+
<input id="bh-distance" type="range" min="1.02" max="12" step="0.01" value="3" />
|
|
112
|
+
</label>
|
|
113
|
+
<label class="bh-slider" for="bh-speed">
|
|
114
|
+
<span>{ui.speed}</span>
|
|
115
|
+
<output id="bh-speed-output">{ui.initialSpeedOutput}</output>
|
|
116
|
+
<input id="bh-speed" type="range" min="5" max="99" step="1" value="32" />
|
|
117
|
+
</label>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<div class="bh-orbit-panel">
|
|
121
|
+
<div>
|
|
122
|
+
<span>{ui.escapeVelocity}</span>
|
|
123
|
+
<strong id="bh-escape">{ui.zeroLightSpeed}</strong>
|
|
124
|
+
</div>
|
|
125
|
+
<div>
|
|
126
|
+
<span>{ui.orbitalPeriod}</span>
|
|
127
|
+
<strong id="bh-period">{ui.zeroMilliseconds}</strong>
|
|
128
|
+
</div>
|
|
129
|
+
<div>
|
|
130
|
+
<span>{ui.tidalGradient}</span>
|
|
131
|
+
<strong id="bh-tide">{ui.zeroTidal}</strong>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</section>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
<script>
|
|
139
|
+
import { simulateEventHorizon } from './logic';
|
|
140
|
+
|
|
141
|
+
const root = document.getElementById('bh-lab');
|
|
142
|
+
const massInput = document.getElementById('bh-mass') as HTMLInputElement | null;
|
|
143
|
+
const distanceInput = document.getElementById('bh-distance') as HTMLInputElement | null;
|
|
144
|
+
const speedInput = document.getElementById('bh-speed') as HTMLInputElement | null;
|
|
145
|
+
const probe = document.getElementById('bh-probe');
|
|
146
|
+
const horizon = document.getElementById('bh-horizon');
|
|
147
|
+
const glow = document.getElementById('bh-horizon-glow');
|
|
148
|
+
const photon = document.getElementById('bh-photon');
|
|
149
|
+
const isco = document.getElementById('bh-isco');
|
|
150
|
+
const stars = document.getElementById('bh-stars');
|
|
151
|
+
const numberFormat = new Intl.NumberFormat('en', { maximumFractionDigits: 2 });
|
|
152
|
+
const compactFormat = new Intl.NumberFormat('en', { maximumFractionDigits: 1, notation: 'compact' });
|
|
153
|
+
const storageKey = 'black-hole-event-horizon-simulator:last-state';
|
|
154
|
+
const labels = {
|
|
155
|
+
km: root?.dataset.kmUnit ?? '',
|
|
156
|
+
ms: root?.dataset.msUnit ?? '',
|
|
157
|
+
seconds: root?.dataset.secondUnit ?? '',
|
|
158
|
+
lightSpeed: root?.dataset.lightSpeedUnit ?? '',
|
|
159
|
+
tidal: root?.dataset.tidalUnit ?? '',
|
|
160
|
+
solarMasses: root?.dataset.solarMassesUnit ?? '',
|
|
161
|
+
rs: root?.dataset.rsUnit ?? '',
|
|
162
|
+
};
|
|
163
|
+
const statusLabels = {
|
|
164
|
+
'inside-horizon': root?.dataset.statusInside ?? '',
|
|
165
|
+
'photon-sphere': root?.dataset.statusPhoton ?? '',
|
|
166
|
+
'stable-orbit': root?.dataset.statusSafe ?? '',
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
function text(id: string, value: string) {
|
|
170
|
+
const node = document.getElementById(id);
|
|
171
|
+
if (node) node.textContent = value;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function inputValue(input: HTMLInputElement | null, fallback: number) {
|
|
175
|
+
return input ? Number(input.value) : fallback;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function massFromSlider() {
|
|
179
|
+
return 10 ** inputValue(massInput, 1);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function km(value: number) {
|
|
183
|
+
return `${compactFormat.format(value)} ${labels.km}`;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function milliseconds(value: number) {
|
|
187
|
+
if (value >= 1000) return `${numberFormat.format(value / 1000)} ${labels.seconds}`;
|
|
188
|
+
return `${numberFormat.format(value)} ${labels.ms}`;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
function setSliderOutput(input: HTMLInputElement | null, outputId: string, value: string) {
|
|
192
|
+
const output = document.getElementById(outputId);
|
|
193
|
+
if (!input || !output) return;
|
|
194
|
+
const min = Number(input.min);
|
|
195
|
+
const max = Number(input.max);
|
|
196
|
+
const progress = (Number(input.value) - min) / (max - min);
|
|
197
|
+
output.style.setProperty('--value-x', `${progress * 100}%`);
|
|
198
|
+
output.textContent = value;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function saveState() {
|
|
202
|
+
if (!massInput || !distanceInput || !speedInput) return;
|
|
203
|
+
window.localStorage.setItem(storageKey, JSON.stringify({
|
|
204
|
+
mass: massInput.value,
|
|
205
|
+
distance: distanceInput.value,
|
|
206
|
+
speed: speedInput.value,
|
|
207
|
+
}));
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
function restoreState() {
|
|
211
|
+
try {
|
|
212
|
+
const raw = window.localStorage.getItem(storageKey);
|
|
213
|
+
if (!raw) return;
|
|
214
|
+
const state = JSON.parse(raw) as Record<string, string>;
|
|
215
|
+
restoreInputValue(massInput, state.mass);
|
|
216
|
+
restoreInputValue(distanceInput, state.distance);
|
|
217
|
+
restoreInputValue(speedInput, state.speed);
|
|
218
|
+
} catch {
|
|
219
|
+
window.localStorage.removeItem(storageKey);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function restoreInputValue(input: HTMLInputElement | null, value: string | undefined) {
|
|
224
|
+
if (!input || !value) return;
|
|
225
|
+
input.value = value;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
function drawStars() {
|
|
229
|
+
if (!stars || stars.childElementCount > 0) return;
|
|
230
|
+
const ns = 'http://www.w3.org/2000/svg';
|
|
231
|
+
for (let index = 0; index < 90; index += 1) {
|
|
232
|
+
const star = document.createElementNS(ns, 'circle');
|
|
233
|
+
const angle = index * 2.399963;
|
|
234
|
+
const radius = 35 + index * 3.1;
|
|
235
|
+
const x = 380 + Math.cos(angle) * radius * 1.3;
|
|
236
|
+
const y = 310 + Math.sin(angle) * radius * 0.78;
|
|
237
|
+
star.setAttribute('cx', x.toFixed(1));
|
|
238
|
+
star.setAttribute('cy', y.toFixed(1));
|
|
239
|
+
star.setAttribute('r', (index % 5 === 0 ? 1.7 : 0.9).toString());
|
|
240
|
+
stars.append(star);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
function statusLabel(status: ReturnType<typeof simulateEventHorizon>['status']) {
|
|
245
|
+
return statusLabels[status];
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
function updateGeometry(massSolar: number, distance: number, speed: number, result: ReturnType<typeof simulateEventHorizon>) {
|
|
249
|
+
const horizonRadius = Math.max(58, Math.min(126, 48 + Math.log10(massSolar) * 13));
|
|
250
|
+
const probeRadius = horizonRadius * Math.min(3.4, distance);
|
|
251
|
+
const angle = performance.now() / 1300 * speed + distance;
|
|
252
|
+
const probeX = 380 + Math.cos(angle) * probeRadius;
|
|
253
|
+
const probeY = 310 + Math.sin(angle) * probeRadius * 0.33;
|
|
254
|
+
|
|
255
|
+
horizon?.setAttribute('r', horizonRadius.toFixed(1));
|
|
256
|
+
glow?.setAttribute('r', (horizonRadius + 18).toFixed(1));
|
|
257
|
+
photon?.setAttribute('r', (horizonRadius * 1.5).toFixed(1));
|
|
258
|
+
isco?.setAttribute('r', (horizonRadius * 3).toFixed(1));
|
|
259
|
+
probe?.setAttribute('transform', `translate(${probeX.toFixed(2)} ${probeY.toFixed(2)}) rotate(${angle * 57.2958 + 90})`);
|
|
260
|
+
root?.style.setProperty('--bh-warp', Math.min(1, result.escapeVelocityFraction).toFixed(3));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function updateReadouts(result: ReturnType<typeof simulateEventHorizon>) {
|
|
264
|
+
text('bh-status', statusLabel(result.status));
|
|
265
|
+
text('bh-rs', `${root?.dataset.rsLabel}: ${km(result.schwarzschildRadiusKm)}`);
|
|
266
|
+
text('bh-diameter', km(result.diameterKm));
|
|
267
|
+
text('bh-crossing', milliseconds(result.lightCrossingMs));
|
|
268
|
+
text('bh-time', `${numberFormat.format(result.timeDilationFactor)}x`);
|
|
269
|
+
text('bh-redshift', numberFormat.format(result.gravitationalRedshift));
|
|
270
|
+
text('bh-escape', `${numberFormat.format(result.escapeVelocityFraction * 100)}${labels.lightSpeed}`);
|
|
271
|
+
text('bh-period', milliseconds(result.orbitalPeriodMs));
|
|
272
|
+
text('bh-tide', `${numberFormat.format(result.tidalGradientEarthGPerMeter)} ${labels.tidal}`);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
function updateSliderOutputs(massSolar: number, distance: number, speed: number) {
|
|
276
|
+
setSliderOutput(massInput, 'bh-mass-output', `${compactFormat.format(massSolar)} ${labels.solarMasses}`);
|
|
277
|
+
setSliderOutput(distanceInput, 'bh-distance-output', `${numberFormat.format(distance)} ${labels.rs}`);
|
|
278
|
+
setSliderOutput(speedInput, 'bh-speed-output', `${Math.round(speed * 100)}${labels.lightSpeed}`);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
function update(shouldSave = true) {
|
|
282
|
+
if (shouldSave) saveState();
|
|
283
|
+
const massSolar = massFromSlider();
|
|
284
|
+
const distance = inputValue(distanceInput, 3);
|
|
285
|
+
const speed = inputValue(speedInput, 32) / 100;
|
|
286
|
+
const result = simulateEventHorizon({ massSolar, distanceMultiplier: distance, orbitalSpeedFraction: speed });
|
|
287
|
+
|
|
288
|
+
updateGeometry(massSolar, distance, speed, result);
|
|
289
|
+
updateReadouts(result);
|
|
290
|
+
updateSliderOutputs(massSolar, distance, speed);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
function animate() {
|
|
294
|
+
update(false);
|
|
295
|
+
window.requestAnimationFrame(animate);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
drawStars();
|
|
299
|
+
restoreState();
|
|
300
|
+
[massInput, distanceInput, speedInput].forEach((input) => input?.addEventListener('input', update));
|
|
301
|
+
animate();
|
|
302
|
+
</script>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ScienceToolEntry, ToolLocaleContent } from '../../types';
|
|
2
|
+
|
|
3
|
+
export interface BlackHoleEventHorizonSimulatorUI {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type BlackHoleEventHorizonSimulatorLocaleContent = ToolLocaleContent<BlackHoleEventHorizonSimulatorUI>;
|
|
8
|
+
|
|
9
|
+
export const blackHoleEventHorizonSimulator: ScienceToolEntry<BlackHoleEventHorizonSimulatorUI> = {
|
|
10
|
+
id: 'black-hole-event-horizon-simulator',
|
|
11
|
+
icons: { bg: 'mdi:circle-opacity', fg: 'mdi:orbit' },
|
|
12
|
+
i18n: {
|
|
13
|
+
de: () => import('./i18n/de').then((m) => m.content),
|
|
14
|
+
en: () => import('./i18n/en').then((m) => m.content),
|
|
15
|
+
es: () => import('./i18n/es').then((m) => m.content),
|
|
16
|
+
fr: () => import('./i18n/fr').then((m) => m.content),
|
|
17
|
+
id: () => import('./i18n/id').then((m) => m.content),
|
|
18
|
+
it: () => import('./i18n/it').then((m) => m.content),
|
|
19
|
+
ja: () => import('./i18n/ja').then((m) => m.content),
|
|
20
|
+
ko: () => import('./i18n/ko').then((m) => m.content),
|
|
21
|
+
nl: () => import('./i18n/nl').then((m) => m.content),
|
|
22
|
+
pl: () => import('./i18n/pl').then((m) => m.content),
|
|
23
|
+
pt: () => import('./i18n/pt').then((m) => m.content),
|
|
24
|
+
ru: () => import('./i18n/ru').then((m) => m.content),
|
|
25
|
+
sv: () => import('./i18n/sv').then((m) => m.content),
|
|
26
|
+
tr: () => import('./i18n/tr').then((m) => m.content),
|
|
27
|
+
zh: () => import('./i18n/zh').then((m) => m.content),
|
|
28
|
+
},
|
|
29
|
+
};
|