refactor: 全窗口统一 Avalonia,移除 Flutter/Dart,新增 Java 实现
PR 审核 / 后端编译 (pull_request) Waiting to run
PR 审核 / 前端检查(Flutter) (pull_request) Waiting to run
PR 审核 / 安全扫描 (pull_request) Waiting to run

- 恢复同代 GC Avalonia 主界面(主页/下载/设置/关于)替换 Flutter
- 模型窗口统一 Avalonia;HTML 课件用 WebView.Avalonia 内嵌渲染
- 新增 CoursewareServer(回环 HTTP + Range)与 CoursewareWindow
- 彻底移除 Flutter/Dart 前端及构建脚本相关逻辑
- 新增 ./build.sh run 开发运行命令
- 项目源码整理到 C#/ 子目录,新增 Java/ 实现
- 工作日志随项目迁移
This commit is contained in:
Morris committed 2026-11-27 10:09:30 +08:00
1 parent 3f1f48f54c
commit cf05e886ac
405 files changed
+18226 -19263

No files matched your search

@@ -0,0 +1,36 @@
{
"schemaVersion": 1,
"id": "earth-rotation",
"name": "Earth Rotation",
"nameI18n": {
"zh-CN": "地球自转",
"en": "Earth Rotation"
},
"author": "Morris",
"description": "昼夜交替、晨昏线与太阳直射点",
"descriptionI18n": {
"zh-CN": "观察自转中的地球:昼夜半球、晨昏线与太阳直射点位置。",
"en": "Watch a rotating Earth: day/night hemispheres, terminator and the subsolar point."
},
"tags": [
"astronomy",
"geography",
"rotation"
],
"entry": "scene.json",
"license": "MIT",
"assembly": "EarthRotationModel.dll",
"type": "GC.EarthModels.RotationModelFactory",
"preview": "preview.png",
"apiVersion": 1,
"version": "1.7",
"chrome": {
"titleBar": "#0C1828",
"titleBorder": "#1B2740",
"titleText": "#EAF2FF",
"button": "#9FB4D4",
"frame": "#0A1524"
},
"build": "ecd52665f9",
"updatedAt": "2026-11-21T10:55:36Z"
}
@@ -0,0 +1,121 @@
{
"zh-CN": {
"title": "如何使用 · 地球自转",
"sections": [
{
"h": "开始使用(跟着做)",
"lines": [
"第 1 步:窗口打开后先按「空格」暂停,动画停住才好观察。",
"第 2 步:按住鼠标左键拖动地球,把晨昏线转到正对你。",
"第 3 步:点顶部「经纬网」打开网格,能看清哪一段是夜半球。",
"第 4 步:再按「空格」播放,盯住一个点,看它从黑夜转进白天。",
"第 5 步:按住「←」「→」可以一格一格慢慢看昼夜交界线怎么移动。",
"找不到按钮?所有开关都在窗口顶部那一排;转不动地球就点「复位」重来。"
]
},
{
"h": "一、这个模型讲什么",
"lines": [
"地球绕地轴自西向东自转,周期约 24 小时(一个太阳日)。",
"自转产生三个可观察现象:昼夜交替、地方时差、地转偏向力。",
"晨昏线( terminator )是把地球分成昼半球与夜半球的大圆,它随自转不断西移。",
"太阳直射点是地表太阳高度为 90° 的点,正午太阳高度由它向南北两侧递减。"
]
},
{
"h": "二、基本操作",
"lines": [
"拖动地球:改变观察角度(经度/纬度),可从极地或赤道上空看。",
"滚轮或双指捏合:缩放;右上角「放大」可切到地球特写。",
"「播放 / 暂停」开始或停止自转动画;「速度」调节快慢。",
"「重置」把角度、速度、缩放恢复到初始状态。"
]
},
{
"h": "三、图层开关",
"lines": [
"「经纬网」叠加经线与纬线,便于读出赤道、回归线、极圈。",
"「标注」显示北极、南极、太阳直射点、赤道等关键标签。",
"「轨道」显示自转轴与赤道面;「夸张倾角」把 23.5° 放大便于观察。",
"「教学要点」展开课堂讲解文字,适合投屏授课。"
]
},
{
"h": "四、键盘快捷键",
"lines": [
"空格:播放 / 暂停。",
"← →:逐帧步进(暂停时最有用)。",
"Esc:关闭窗口;F11:全屏 / 退出全屏。"
]
},
{
"h": "五、课堂上怎么用",
"lines": [
"先暂停,把晨昏线转到与经线重合,说明「昼夜平分」只在二分日出现。",
"再播放,让学生观察同一地点如何由夜入昼(晨线)与由昼入夜(昏线)。",
"对比不同经度:东边地点先见到日出,引出「东早西晚」的地方时差。",
"易错提醒:昼夜现象本身由「地球不发光、不透明」造成,自转只造成「交替」。"
]
}
]
},
"en": {
"title": "How to use · Earth Rotation",
"sections": [
{
"h": "Getting started (follow along)",
"lines": [
"Step 1: press Space to pause first — a still globe is easier to read.",
"Step 2: hold the left mouse button and drag until the terminator faces you.",
"Step 3: switch on Graticule in the top bar to see which side is night.",
"Step 4: press Space to play and watch one point rotate from night into day.",
"Step 5: use ← / → to step frame by frame and follow the day/night boundary.",
"Can't find a control? Every toggle is in the top bar; if the globe gets twisted, press Reset."
]
},
{
"h": "1. What this model shows",
"lines": [
"Earth spins west-to-east on its axis in about 24 hours (a solar day).",
"Rotation causes the day/night cycle, local time differences and the Coriolis effect.",
"The terminator is the great circle splitting day and night; it moves west as Earth turns.",
"The subsolar point is where the Sun is overhead; noon altitude decreases away from it."
]
},
{
"h": "2. Basic controls",
"lines": [
"Drag the globe to change the viewing angle (from pole or equator).",
"Scroll or pinch to zoom; the close-up button gives an Earth detail view.",
"Play/Pause starts or stops the spin; Speed changes the rate.",
"Reset restores the initial angle, speed and zoom."
]
},
{
"h": "3. Layer toggles",
"lines": [
"Graticule overlays meridians and parallels (equator, tropics, polar circles).",
"Labels shows poles, subsolar point and the equator.",
"Orbit shows the axis and equatorial plane; Exaggerate tilt magnifies the 23.5° tilt.",
"Teaching notes expands classroom text, useful on a projector."
]
},
{
"h": "4. Keyboard shortcuts",
"lines": [
"Space: play / pause. ← →: step one frame (best while paused).",
"Esc: close window. F11: toggle fullscreen."
]
},
{
"h": "5. In the classroom",
"lines": [
"Pause with the terminator along a meridian to show equal day/night at equinoxes.",
"Play again and watch a site cross the dawn line and the dusk line.",
"Compare longitudes: eastern places see sunrise earlier — local time runs ahead.",
"Common mistake: day/night exists because Earth is opaque; rotation only makes it alternate."
]
}
]
}
}
@@ -0,0 +1,33 @@
{
"title": "Earth Rotation",
"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: 178 KiB

@@ -0,0 +1,138 @@
{
"schemaVersion": 1,
"type": "planet",
"defaultView": "rotation",
"views": [
"rotation"
],
"nameI18n": {
"zh-CN": "地球自转",
"en": "Earth Rotation"
},
"descriptionI18n": {
"zh-CN": "观察自转中的地球:昼夜半球、晨昏线与太阳直射点位置。",
"en": "Watch a rotating Earth: day/night hemispheres, terminator and the subsolar point."
},
"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": true
},
"orbit": {
"semiMajorAxis": 4.0,
"eccentricity": 0.0167,
"show": true,
"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."
}
},
{
"angleDeg": 90,
"key": "season.summerSolstice",
"date": "6/22",
"declinationDeg": 23.5,
"teachingI18n": {
"zh-CN": "太阳直射北回归线 23.5°N,北半球昼最长。",
"en": "The Sun is overhead at 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 and day equals night everywhere."
}
},
{
"angleDeg": 270,
"key": "season.winterSolstice",
"date": "12/22",
"declinationDeg": -23.5,
"teachingI18n": {
"zh-CN": "太阳直射南回归线 23.5°S,北半球昼最短。",
"en": "The Sun is overhead at 23.5°S; the northern hemisphere has its shortest day."
}
}
]
},
"lessons": [
{
"titleI18n": {
"zh-CN": "自西向东的自转",
"en": "Rotation from west to east"
},
"bodyI18n": {
"zh-CN": "从北极上空看,地球逆时针转动;转一圈用 23 小时 56 分 4 秒。",
"en": "Seen from above the north pole the Earth turns counter-clockwise, once every 23 h 56 min."
},
"view": "rotation",
"angleDeg": 0
},
{
"titleI18n": {
"zh-CN": "昼夜交替",
"en": "Day and night"
},
"bodyI18n": {
"zh-CN": "晨昏线(白色虚线)把地球分成昼半球与夜半球,交替周期 24 小时。",
"en": "The terminator (white dashes) splits the lit and dark hemispheres; one cycle takes 24 h."
},
"view": "rotation",
"angleDeg": 60
},
{
"titleI18n": {
"zh-CN": "太阳直射点",
"en": "Subsolar point"
},
"bodyI18n": {
"zh-CN": "黄色圆环标出太阳光垂直照射的位置,它随季节在南北回归线之间往返。",
"en": "The yellow ring marks where sunlight strikes vertically — it drifts between the tropics over a year."
},
"view": "rotation",
"angleDeg": 120
},
{
"titleI18n": {
"zh-CN": "地轴倾斜 23.5°",
"en": "Axial tilt 23.5°"
},
"bodyI18n": {
"zh-CN": "地轴与黄道面法线成 23.5°,倾斜方向不变,这是四季与五带划分的根本原因。",
"en": "The axis is tilted 23.5° from the ecliptic normal and keeps its direction — the root cause of seasons."
},
"view": "rotation",
"angleDeg": 200
}
]
}