refactor: 全窗口统一 Avalonia,移除 Flutter/Dart,新增 Java 实现
- 恢复同代 GC Avalonia 主界面(主页/下载/设置/关于)替换 Flutter - 模型窗口统一 Avalonia;HTML 课件用 WebView.Avalonia 内嵌渲染 - 新增 CoursewareServer(回环 HTTP + Range)与 CoursewareWindow - 彻底移除 Flutter/Dart 前端及构建脚本相关逻辑 - 新增 ./build.sh run 开发运行命令 - 项目源码整理到 C#/ 子目录,新增 Java/ 实现 - 工作日志随项目迁移
This commit is contained in:
1 parent
3f1f48f54c
commit
cf05e886ac
405 files changed
+18226
-19263
No files matched your search
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"zh-CN": {
|
||||
"title": "如何使用 · 地球公转",
|
||||
"sections": [
|
||||
{
|
||||
"h": "开始使用(跟着做)",
|
||||
"lines": [
|
||||
"第 1 步:先按「1」定格到春分,看读数区「太阳直射」是多少度。",
|
||||
"第 2 步:再按「2」,直射纬度变成 23.5°N —— 这就是北半球夏至。",
|
||||
"第 3 步:依次按「3」「4」,对比四个节气的直射点位置。",
|
||||
"第 4 步:按「空格」播放,看地球绕太阳走完一圈要多久(有速度调节)。",
|
||||
"第 5 步:拖动鼠标换到「俯视」,能看到轨道是个椭圆,地轴始终指向同一方向。",
|
||||
"看不到变化?确认顶部「节气定位」已打开,且没有停在暂停状态。"
|
||||
]
|
||||
},
|
||||
{
|
||||
"h": "一、这个模型讲什么",
|
||||
"lines": [
|
||||
"地球绕太阳公转,周期约 365.25 天,轨道近似椭圆,地轴始终指向北极星附近。",
|
||||
"地轴与公转轨道面成 66.5° 夹角(赤道面与轨道面夹角 23.5°,即黄赤交角)。",
|
||||
"由于地轴倾斜方向不变,太阳直射点在南北回归线之间往返,形成四季更替。",
|
||||
"二分二至:春分 3/21、夏至 6/22、秋分 9/23、冬至 12/22(教材值)。"
|
||||
]
|
||||
},
|
||||
{
|
||||
"h": "二、基本操作",
|
||||
"lines": [
|
||||
"「播放 / 暂停」控制公转动画;「速度」调节一年走完的快慢。",
|
||||
"「步进」让地球沿轨道前进一小格,便于逐段观察。",
|
||||
"拖动或滚轮改变观察角度与缩放;「俯视 / 侧视」切换视角。",
|
||||
"「重置」回到春分起点。"
|
||||
]
|
||||
},
|
||||
{
|
||||
"h": "三、节气定位(重点)",
|
||||
"lines": [
|
||||
"按 1–4 直接定格到春分、夏至、秋分、冬至。",
|
||||
"春分 / 秋分:太阳直射赤道(0°),全球昼夜平分。",
|
||||
"夏至:直射北回归线 23.5°N,北半球昼最长、北极圈内极昼。",
|
||||
"冬至:直射南回归线 23.5°S,北半球昼最短、北极圈内极夜。",
|
||||
"定格后读数区显示:公转角度、太阳直射纬度、教材日期、节气名称。"
|
||||
]
|
||||
},
|
||||
{
|
||||
"h": "四、读数与课堂卡",
|
||||
"lines": [
|
||||
"「太阳直射」读数来自模型数据里的 declinationDeg,不是近似公式。",
|
||||
"「节气定位」面板列出四个节气的日期与现象说明(中英双语)。",
|
||||
"「教学要点」解释:直射点移动 → 正午太阳高度与昼长变化 → 四季。"
|
||||
]
|
||||
},
|
||||
{
|
||||
"h": "五、易错点",
|
||||
"lines": [
|
||||
"四季成因是「地轴倾斜且方向不变」,不是「地球离太阳忽远忽近」。",
|
||||
"近日点在 1 月初(北半球冬天),远日点在 7 月初(北半球夏天)。",
|
||||
"南北半球季节相反:北半球夏至时南半球是冬至。",
|
||||
"Esc 关闭窗口,F11 全屏。"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"en": {
|
||||
"title": "How to use · Earth Revolution",
|
||||
"sections": [
|
||||
{
|
||||
"h": "Getting started (follow along)",
|
||||
"lines": [
|
||||
"Step 1: press 1 to freeze at the spring equinox and read the subsolar latitude.",
|
||||
"Step 2: press 2 — the subsolar point jumps to 23.5°N, the June solstice.",
|
||||
"Step 3: press 3 and 4 to compare all four key positions.",
|
||||
"Step 4: press Space to animate one full orbit; adjust Speed as needed.",
|
||||
"Step 5: drag to Top view to see the elliptical orbit and the fixed axis direction.",
|
||||
"Nothing changing? Make sure Seasons is on in the top bar and the model isn't paused."
|
||||
]
|
||||
},
|
||||
{
|
||||
"h": "1. What this model shows",
|
||||
"lines": [
|
||||
"Earth orbits the Sun in ~365.25 days; the axis keeps pointing near Polaris.",
|
||||
"The axis is tilted 66.5° to the orbital plane (obliquity 23.5°).",
|
||||
"Because the tilt direction is fixed, the subsolar point migrates between the tropics, making seasons.",
|
||||
"Key dates: spring equinox 3/21, summer solstice 6/22, autumn equinox 9/23, winter solstice 12/22."
|
||||
]
|
||||
},
|
||||
{
|
||||
"h": "2. Basic controls",
|
||||
"lines": [
|
||||
"Play/Pause runs the orbit; Speed sets how fast a year passes.",
|
||||
"Step advances one increment for close observation.",
|
||||
"Drag or scroll to change view/zoom; Top view / Side view switch perspective.",
|
||||
"Reset returns to the spring equinox."
|
||||
]
|
||||
},
|
||||
{
|
||||
"h": "3. Solstices & equinoxes",
|
||||
"lines": [
|
||||
"Keys 1–4 freeze at spring equinox, summer solstice, autumn equinox, winter solstice.",
|
||||
"Equinoxes: subsolar at the equator (0°), equal day and night worldwide.",
|
||||
"June solstice: subsolar at 23.5°N; longest day in the north, polar day inside the Arctic Circle.",
|
||||
"December solstice: subsolar at 23.5°S; shortest day in the north, polar night.",
|
||||
"The readout shows orbit angle, subsolar latitude, textbook date and season name."
|
||||
]
|
||||
},
|
||||
{
|
||||
"h": "4. Readouts & classroom cards",
|
||||
"lines": [
|
||||
"Subsolar latitude comes from declinationDeg in the model data, not an approximation.",
|
||||
"The seasons panel lists dates and phenomena for all four (bilingual).",
|
||||
"Teaching notes: migrating subsolar point → changing noon altitude and day length → seasons."
|
||||
]
|
||||
},
|
||||
{
|
||||
"h": "5. Common mistakes",
|
||||
"lines": [
|
||||
"Seasons come from the fixed axial tilt, NOT from Earth being closer/farther to the Sun.",
|
||||
"Perihelion is early January (northern winter); aphelion is early July (northern summer).",
|
||||
"Seasons are opposite in the two hemispheres.",
|
||||
"Esc closes, F11 toggles fullscreen."
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"title": "Earth Revolution",
|
||||
"view.rotation": "Rotation",
|
||||
"view.revolution": "Revolution",
|
||||
"play": "Play",
|
||||
"pause": "Pause",
|
||||
"speed": "Speed",
|
||||
"reset": "Reset",
|
||||
"labels": "Labels",
|
||||
"orbit": "Orbit",
|
||||
"grid": "Graticule",
|
||||
"tilt": "Exaggerate tilt",
|
||||
"lessons": "Teaching notes",
|
||||
"seasons": "Solstices & equinoxes",
|
||||
"close": "Close window",
|
||||
"loading": "Preparing scene…",
|
||||
"subsolar": "Subsolar point",
|
||||
"north": "North pole",
|
||||
"south": "South pole",
|
||||
"northShort": "N",
|
||||
"southShort": "S",
|
||||
"sun": "Sun",
|
||||
"earth": "Earth",
|
||||
"spinInfo": "Rotation {0}° · period {1} h",
|
||||
"orbitInfo": "Orbit {0}°",
|
||||
"declinationInfo": "Subsolar {0}",
|
||||
"dateInfo": "Date {0}",
|
||||
"season.springEquinox": "Spring equinox",
|
||||
"season.summerSolstice": "Summer solstice",
|
||||
"season.autumnEquinox": "Autumn equinox",
|
||||
"season.winterSolstice": "Winter solstice",
|
||||
"hint": "Pinch or scroll to zoom · drag to turn the Earth"
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"title": "地球自转",
|
||||
"view.rotation": "自转",
|
||||
"view.revolution": "公转",
|
||||
"play": "播放",
|
||||
"pause": "暂停",
|
||||
"speed": "速度",
|
||||
"reset": "重置",
|
||||
"labels": "标注",
|
||||
"orbit": "轨道",
|
||||
"grid": "经纬网",
|
||||
"tilt": "夸张倾角",
|
||||
"lessons": "教学要点",
|
||||
"seasons": "节气定位",
|
||||
"close": "关闭窗口",
|
||||
"loading": "正在准备场景…",
|
||||
"subsolar": "太阳直射点",
|
||||
"north": "北极",
|
||||
"south": "南极",
|
||||
"northShort": "N",
|
||||
"southShort": "S",
|
||||
"sun": "太阳",
|
||||
"earth": "地球",
|
||||
"spinInfo": "自转 {0}° · 周期 {1} 小时",
|
||||
"orbitInfo": "公转 {0}°",
|
||||
"declinationInfo": "太阳直射 {0}",
|
||||
"dateInfo": "日期 {0}",
|
||||
"season.springEquinox": "春分",
|
||||
"season.summerSolstice": "夏至",
|
||||
"season.autumnEquinox": "秋分",
|
||||
"season.winterSolstice": "冬至",
|
||||
"hint": "双指捏合或滚轮缩放 · 拖动可转动地球"
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"note": "简化大陆轮廓(经度,纬度),用于教学演示,非测绘精度",
|
||||
"polygons": [
|
||||
{
|
||||
"name": "north-america",
|
||||
"points": [[-168,66],[-164,70],[-155,71],[-145,70],[-133,69],[-120,69],[-110,68],[-100,69],[-92,68],[-85,70],[-80,73],[-72,71],[-64,66],[-60,60],[-56,52],[-60,47],[-66,45],[-70,42],[-74,40],[-76,35],[-81,31],[-80,25],[-83,29],[-88,30],[-94,29],[-97,26],[-97,21],[-92,19],[-87,21],[-88,16],[-83,9],[-78,9],[-84,14],[-90,14],[-96,16],[-105,20],[-112,25],[-117,32],[-122,37],[-124,42],[-125,48],[-131,54],[-140,59],[-150,59],[-158,56],[-165,60],[-166,64]]
|
||||
},
|
||||
{
|
||||
"name": "greenland",
|
||||
"points": [[-45,60],[-52,64],[-55,68],[-60,72],[-63,76],[-56,80],[-42,82],[-28,80],[-21,74],[-23,70],[-31,66],[-38,62]]
|
||||
},
|
||||
{
|
||||
"name": "south-america",
|
||||
"points": [[-78,8],[-72,11],[-64,10],[-60,8],[-52,5],[-50,0],[-44,-2],[-38,-5],[-35,-8],[-39,-13],[-41,-22],[-48,-25],[-53,-34],[-57,-38],[-62,-40],[-65,-45],[-68,-50],[-70,-55],[-75,-52],[-74,-45],[-73,-37],[-71,-30],[-70,-23],[-70,-18],[-76,-14],[-81,-6],[-80,-2],[-79,2],[-77,6]]
|
||||
},
|
||||
{
|
||||
"name": "africa",
|
||||
"points": [[-17,15],[-16,20],[-13,28],[-9,32],[-5,36],[10,37],[20,32],[32,31],[35,28],[39,15],[43,11],[51,12],[48,2],[41,-2],[40,-10],[35,-18],[32,-25],[27,-33],[20,-35],[15,-28],[12,-17],[9,-1],[5,4],[-4,5],[-8,4],[-13,8],[-16,12]]
|
||||
},
|
||||
{
|
||||
"name": "europe",
|
||||
"points": [[-9,38],[-9,43],[-2,44],[0,48],[2,51],[5,53],[8,54],[9,57],[12,56],[13,54],[20,54],[21,57],[24,58],[28,60],[30,60],[29,64],[25,66],[22,69],[30,70],[40,68],[46,66],[55,68],[60,70],[68,68],[62,62],[58,56],[52,50],[48,46],[40,45],[36,44],[30,45],[28,41],[24,40],[23,37],[19,40],[16,41],[12,44],[7,44],[3,42],[-2,37]]
|
||||
},
|
||||
{
|
||||
"name": "asia",
|
||||
"points": [[60,70],[75,73],[90,75],[105,77],[115,74],[130,73],[145,72],[160,70],[170,68],[180,65],[172,62],[163,58],[155,52],[143,54],[137,50],[130,43],[126,40],[122,40],[120,36],[122,31],[118,25],[110,21],[105,10],[100,13],[98,8],[95,17],[90,22],[88,21],[80,16],[77,8],[73,18],[68,23],[62,25],[57,24],[52,28],[48,30],[44,13],[43,17],[39,21],[35,28],[34,31],[36,36],[30,41],[28,41],[30,45],[34,45],[40,45],[48,46],[52,50],[58,56],[62,62],[68,68]]
|
||||
},
|
||||
{
|
||||
"name": "australia",
|
||||
"points": [[113,-22],[114,-27],[116,-35],[129,-32],[138,-35],[146,-39],[150,-37],[153,-28],[146,-19],[142,-11],[132,-11],[126,-14],[122,-18]]
|
||||
},
|
||||
{
|
||||
"name": "antarctica",
|
||||
"points": [[-180,-72],[-150,-76],[-120,-74],[-90,-73],[-60,-64],[-30,-70],[0,-70],[30,-69],[60,-67],[90,-66],[120,-66],[150,-70],[180,-72],[180,-90],[-180,-90]]
|
||||
},
|
||||
{
|
||||
"name": "madagascar",
|
||||
"points": [[43,-12],[50,-15],[50,-25],[45,-25],[43,-20]]
|
||||
},
|
||||
{
|
||||
"name": "japan",
|
||||
"points": [[130,32],[136,35],[141,40],[145,44],[142,39],[137,34],[133,33]]
|
||||
},
|
||||
{
|
||||
"name": "britain",
|
||||
"points": [[-6,50],[-2,53],[-2,58],[-5,58],[-6,54]]
|
||||
},
|
||||
{
|
||||
"name": "ireland",
|
||||
"points": [[-10,52],[-6,53],[-6,55],[-10,55]]
|
||||
},
|
||||
{
|
||||
"name": "iceland",
|
||||
"points": [[-24,65],[-14,66],[-14,64],[-22,63]]
|
||||
},
|
||||
{
|
||||
"name": "new-zealand",
|
||||
"points": [[166,-46],[170,-44],[174,-41],[177,-38],[174,-35],[170,-38],[167,-42]]
|
||||
},
|
||||
{
|
||||
"name": "sumatra",
|
||||
"points": [[95,5],[100,1],[105,-6],[100,-4],[96,2]]
|
||||
},
|
||||
{
|
||||
"name": "java",
|
||||
"points": [[105,-6],[114,-8],[114,-9],[106,-7]]
|
||||
},
|
||||
{
|
||||
"name": "borneo",
|
||||
"points": [[109,2],[117,4],[119,-2],[115,-4],[110,-2]]
|
||||
},
|
||||
{
|
||||
"name": "sulawesi",
|
||||
"points": [[119,1],[125,1],[123,-5],[120,-3]]
|
||||
},
|
||||
{
|
||||
"name": "new-guinea",
|
||||
"points": [[131,-1],[141,-3],[150,-6],[147,-9],[140,-9],[134,-5]]
|
||||
},
|
||||
{
|
||||
"name": "sri-lanka",
|
||||
"points": [[80,9],[82,7],[81,6],[79,7]]
|
||||
},
|
||||
{
|
||||
"name": "philippines",
|
||||
"points": [[120,18],[124,13],[126,8],[122,6],[120,12]]
|
||||
},
|
||||
{
|
||||
"name": "cuba",
|
||||
"points": [[-85,22],[-77,20],[-74,20],[-80,23]]
|
||||
},
|
||||
{
|
||||
"name": "taiwan",
|
||||
"points": [[120,25],[122,24],[121,22],[120,23]]
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 67 KiB |
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"type": "planet",
|
||||
"defaultView": "revolution",
|
||||
"views": [
|
||||
"revolution"
|
||||
],
|
||||
"nameI18n": {
|
||||
"zh-CN": "地球公转",
|
||||
"en": "Earth Revolution"
|
||||
},
|
||||
"descriptionI18n": {
|
||||
"zh-CN": "地球绕太阳公转一年:地轴指向不变,太阳直射点南北往返,形成四季。",
|
||||
"en": "One year around the Sun: the fixed axial direction moves the subsolar point and creates the seasons."
|
||||
},
|
||||
"star": {
|
||||
"name": "Sun",
|
||||
"nameI18n": {
|
||||
"zh-CN": "太阳",
|
||||
"en": "Sun"
|
||||
},
|
||||
"color": "#FFC24B",
|
||||
"radiusScale": 0.5
|
||||
},
|
||||
"planet": {
|
||||
"name": "Earth",
|
||||
"nameI18n": {
|
||||
"zh-CN": "地球",
|
||||
"en": "Earth"
|
||||
},
|
||||
"axialTiltDeg": 23.5,
|
||||
"tropicDeg": 23.5,
|
||||
"rotationHours": 23.93,
|
||||
"orbitDays": 365.26,
|
||||
"oceanColor": "#1C5FA8",
|
||||
"landColor": "#4E8C4C",
|
||||
"iceColor": "#E9EFF6",
|
||||
"landFile": "land.json",
|
||||
"showGraticule": false
|
||||
},
|
||||
"orbit": {
|
||||
"semiMajorAxis": 4.0,
|
||||
"eccentricity": 0.0167,
|
||||
"show": true,
|
||||
"seasonLayout": "springTopSummerLeft",
|
||||
"seasons": [
|
||||
{
|
||||
"angleDeg": 0,
|
||||
"key": "season.springEquinox",
|
||||
"date": "3/21",
|
||||
"declinationDeg": 0,
|
||||
"teachingI18n": {
|
||||
"zh-CN": "太阳直射赤道,全球昼夜平分。此后直射点由赤道向北移动。",
|
||||
"en": "The Sun is overhead at the equator and day equals night everywhere. The subsolar point now moves north."
|
||||
}
|
||||
},
|
||||
{
|
||||
"angleDeg": 90,
|
||||
"key": "season.summerSolstice",
|
||||
"date": "6/22",
|
||||
"declinationDeg": 23.5,
|
||||
"teachingI18n": {
|
||||
"zh-CN": "太阳直射北回归线 23.5°N。北半球昼最长、夜最短,北极圈内出现极昼。",
|
||||
"en": "The Sun is overhead at the Tropic of Cancer (23.5°N). The northern hemisphere has its longest day."
|
||||
}
|
||||
},
|
||||
{
|
||||
"angleDeg": 180,
|
||||
"key": "season.autumnEquinox",
|
||||
"date": "9/23",
|
||||
"declinationDeg": 0,
|
||||
"teachingI18n": {
|
||||
"zh-CN": "太阳再次直射赤道,全球昼夜平分。此后直射点向南移动。",
|
||||
"en": "The Sun is overhead at the equator again. The subsolar point now moves south."
|
||||
}
|
||||
},
|
||||
{
|
||||
"angleDeg": 270,
|
||||
"key": "season.winterSolstice",
|
||||
"date": "12/22",
|
||||
"declinationDeg": -23.5,
|
||||
"teachingI18n": {
|
||||
"zh-CN": "太阳直射南回归线 23.5°S。北半球昼最短、夜最长,北极圈内出现极夜。",
|
||||
"en": "The Sun is overhead at the Tropic of Capricorn (23.5°S). The northern hemisphere has its shortest day."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"lessons": [
|
||||
{
|
||||
"titleI18n": {
|
||||
"zh-CN": "一年绕太阳一圈",
|
||||
"en": "One lap per year"
|
||||
},
|
||||
"bodyI18n": {
|
||||
"zh-CN": "公转方向与自转相同,周期约 365.26 天;轨道接近圆形。",
|
||||
"en": "The orbit takes about 365.26 days and runs the same direction as the spin."
|
||||
},
|
||||
"view": "revolution",
|
||||
"angleDeg": 0
|
||||
},
|
||||
{
|
||||
"titleI18n": {
|
||||
"zh-CN": "地轴指向不变",
|
||||
"en": "The axis keeps its direction"
|
||||
},
|
||||
"bodyI18n": {
|
||||
"zh-CN": "公转过程中地轴始终指向北极星附近,黄赤交角 23.5° 保持不变。",
|
||||
"en": "During the whole orbit the axis keeps pointing near Polaris, so the 23.5° tilt stays fixed in space."
|
||||
},
|
||||
"view": "revolution",
|
||||
"angleDeg": 90
|
||||
},
|
||||
{
|
||||
"titleI18n": {
|
||||
"zh-CN": "夏至与冬至",
|
||||
"en": "Solstices"
|
||||
},
|
||||
"bodyI18n": {
|
||||
"zh-CN": "夏至太阳直射北回归线 23.5°N,北半球昼最长;冬至直射南回归线 23.5°S。",
|
||||
"en": "At the June solstice the Sun is overhead at 23.5°N; at the December solstice at 23.5°S."
|
||||
},
|
||||
"view": "revolution",
|
||||
"angleDeg": 90
|
||||
},
|
||||
{
|
||||
"titleI18n": {
|
||||
"zh-CN": "春分与秋分",
|
||||
"en": "Equinoxes"
|
||||
},
|
||||
"bodyI18n": {
|
||||
"zh-CN": "春分、秋分太阳直射赤道,全球昼夜平分,是四季的转折点。",
|
||||
"en": "At the equinoxes the Sun is overhead at the equator and day equals night everywhere."
|
||||
},
|
||||
"view": "revolution",
|
||||
"angleDeg": 180
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user