fix: 清理误提交的构建产物和临时脚本,补充 .gitignore
No files matched your search
@@ -54,3 +54,11 @@ GC-UI/frontend/test/shots/
|
||||
# GC.Tests 离屏渲染输出(dotnet run ... GC.Tests 默认写到仓库根 screenshots/)
|
||||
screenshots/
|
||||
|
||||
# 构建/发布临时文件(禁止入库)
|
||||
decrypt.js
|
||||
script_*.js
|
||||
*.mp4
|
||||
courseware/
|
||||
.GC/UI/frontend/courseware/assets/*.png
|
||||
.workbuddy/
|
||||
|
||||
@@ -1,663 +0,0 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
const STEP_COPY = [
|
||||
{ title: "等高切割", description: "观察水平面与山体在同一海拔相交,形成连续闭合线。" },
|
||||
{ title: "形成交线", description: "每个水平切面都会留下同高交线,多层交线共同描述山体起伏。" },
|
||||
{ title: "投影成图", description: "把各高度交线垂直投影到同一平面,得到完整等高线地形图。" },
|
||||
{ title: "疏密判坡", description: "等高线越密,坡度越陡;等高线越疏,坡度越缓。" }
|
||||
];
|
||||
|
||||
const DEFAULT_VIEW = {
|
||||
title: "实验流程",
|
||||
summary: "点击开始实验,在当前背景中观察等高切割与交线形成,再通过右侧图解理解垂直投影和疏密判坡。",
|
||||
features: ["同一条等高线上海拔相等", "相邻等高线高差保持一致"],
|
||||
hint: "点击“开始实验”,直接在当前画面播放形成交线视频"
|
||||
};
|
||||
|
||||
const LANDFORMS = {
|
||||
peak: {
|
||||
name: "山峰",
|
||||
subtitle: "闭合等高线",
|
||||
image: "assets/peak-3d.png",
|
||||
topImage: "assets/peak-top.png",
|
||||
alt: "山峰立体示意图,蓝色等高线围绕山体逐级闭合",
|
||||
topAlt: "山峰真实俯视图,多层近同心闭合等高线向中心收缩",
|
||||
summary: "山峰四周较低、中心突起;等高线闭合成环,海拔数值由外向内逐渐升高。",
|
||||
features: ["中心海拔高、四周海拔低", "闭合线越向内,数值越大", "若数值向内降低,则应判为洼地"],
|
||||
hint: "山峰:闭合曲线,数值向中心升高"
|
||||
},
|
||||
ridge: {
|
||||
name: "山脊",
|
||||
subtitle: "凸低为脊",
|
||||
image: "assets/ridge-3d.png",
|
||||
topImage: "assets/ridge-top.png",
|
||||
alt: "山脊立体示意图,蓝色等高线沿凸出的脊线向低处弯曲",
|
||||
topAlt: "山脊真实俯视图,等高线沿狭长高地呈舌状延伸",
|
||||
summary: "等高线弯曲部分向海拔低处凸出,脊线常成为两侧水系的分水岭。",
|
||||
features: ["等高线凸向低值方向", "脊线由高处向低处延伸", "雨水沿脊线两侧分流"],
|
||||
hint: "山脊:等高线向低处凸出,凸低为脊"
|
||||
},
|
||||
valley: {
|
||||
name: "山谷",
|
||||
subtitle: "凸高为谷",
|
||||
image: "assets/valley-3d.png",
|
||||
topImage: "assets/valley-top.png",
|
||||
alt: "山谷立体示意图,两座山体之间的谷地有河流穿过",
|
||||
topAlt: "山谷真实俯视图,两侧坡面夹持低槽,等高线形成 V 形凹入",
|
||||
summary: "等高线弯曲部分向海拔高处凸出,谷底低洼并容易汇水形成河流。",
|
||||
features: ["等高线凸向高值方向", "V 形尖端指向上游高处", "谷底常发育河流"],
|
||||
hint: "山谷:等高线向高处凸出,凸高为谷"
|
||||
},
|
||||
saddle: {
|
||||
name: "鞍部",
|
||||
subtitle: "两峰之间",
|
||||
image: "assets/saddle-3d.png",
|
||||
topImage: "assets/saddle-top.png",
|
||||
alt: "鞍部立体示意图,两座山峰之间形成马鞍状低地",
|
||||
topAlt: "鞍部真实俯视图,两组峰顶闭合圈之间的等高线明显收腰",
|
||||
summary: "鞍部位于相邻两座山峰之间,是沿山脊方向相对低洼的过渡地带。",
|
||||
features: ["两组闭合等高线相邻", "中部线条收窄,形似马鞍", "常是翻越山岭的低垭口"],
|
||||
hint: "鞍部:两峰之间相对低洼,俯视轮廓呈收腰形"
|
||||
},
|
||||
cliff: {
|
||||
name: "陡崖",
|
||||
subtitle: "密集或重合",
|
||||
image: "assets/cliff-3d.png",
|
||||
topImage: "assets/cliff-top.png",
|
||||
alt: "陡崖立体示意图,崖壁处蓝色等高线高度密集",
|
||||
topAlt: "陡崖真实俯视图,崖壁处大量等高线极密集并近似重合",
|
||||
summary: "陡崖坡面近直立,不同高程的等高线会高度密集,局部可投影到同一位置而重合。",
|
||||
features: ["密集表示陡坡,重合才是陡崖特征", "单位水平距离内高差很大", "n 条线重合时:(n−1)d ≤ ΔH < (n+1)d"],
|
||||
hint: "陡崖:等高线密集或重合,坡度极陡"
|
||||
}
|
||||
};
|
||||
|
||||
const dom = {
|
||||
app: document.getElementById("app-shell"),
|
||||
experimentVideo: document.getElementById("experiment-video"),
|
||||
densityBackground: document.getElementById("density-background"),
|
||||
landformImage: document.getElementById("landform-image"),
|
||||
landformTopImage: document.getElementById("landform-top-image"),
|
||||
projectionDiagram: document.getElementById("projection-diagram"),
|
||||
densityDiagram: document.getElementById("density-diagram"),
|
||||
mediaLoading: document.getElementById("media-loading"),
|
||||
mediaLabelKicker: document.getElementById("media-label-kicker"),
|
||||
mediaLabelTitle: document.getElementById("media-label-title"),
|
||||
mediaLabelCopy: document.getElementById("media-label-copy"),
|
||||
progress: document.getElementById("video-progress-fill"),
|
||||
playButton: document.getElementById("play-button"),
|
||||
playIcon: document.getElementById("play-icon"),
|
||||
playLabel: document.getElementById("play-label"),
|
||||
resetButton: document.getElementById("reset-button"),
|
||||
fullscreenButton: document.getElementById("fullscreen-button"),
|
||||
fullscreenLabel: document.getElementById("fullscreen-label"),
|
||||
workflowOpen: document.getElementById("workflow-open"),
|
||||
flowSteps: Array.from(document.querySelectorAll(".flow-step[data-step]")),
|
||||
flowCount: document.getElementById("flow-count"),
|
||||
flowLineFill: document.getElementById("flow-line-fill"),
|
||||
taskTitle: document.getElementById("task-title"),
|
||||
taskDescription: document.getElementById("task-description"),
|
||||
terrainTabs: Array.from(document.querySelectorAll(".terrain-tab[data-landform]")),
|
||||
returnExperiment: document.getElementById("return-experiment"),
|
||||
observationHeading: document.getElementById("observation-heading"),
|
||||
observationSummary: document.getElementById("observation-summary"),
|
||||
featureList: document.getElementById("feature-list"),
|
||||
topViewToggle: document.getElementById("top-view-toggle"),
|
||||
topViewToggleLabel: document.getElementById("top-view-toggle-label"),
|
||||
topViewToggleHint: document.getElementById("top-view-toggle-hint"),
|
||||
topViewThumbnail: document.getElementById("top-view-thumbnail"),
|
||||
hintText: document.getElementById("hint-text"),
|
||||
controlPanel: document.querySelector(".control-panel"),
|
||||
panelClose: document.getElementById("panel-close"),
|
||||
panelOpen: document.getElementById("panel-open"),
|
||||
toast: document.getElementById("toast")
|
||||
};
|
||||
|
||||
const state = {
|
||||
selectedLandform: null,
|
||||
pendingLandform: null,
|
||||
viewMode: "perspective",
|
||||
step: 0,
|
||||
imageToken: 0,
|
||||
scanTimer: 0,
|
||||
annotationTimer: 0,
|
||||
toastTimer: 0,
|
||||
pendingStep: null,
|
||||
workflowTimer: 0,
|
||||
workflowRunToken: 0,
|
||||
workflowAutoPlaying: false
|
||||
};
|
||||
|
||||
const ICONS = {
|
||||
play: '<svg viewBox="0 0 24 24"><path d="m9 6 9 6-9 6V6Z"/></svg>',
|
||||
pause: '<svg viewBox="0 0 24 24"><path d="M7 6h4v12H7V6Zm6 0h4v12h-4V6Z"/></svg>'
|
||||
};
|
||||
|
||||
function showToast(message) {
|
||||
window.clearTimeout(state.toastTimer);
|
||||
dom.toast.textContent = message;
|
||||
dom.toast.classList.add("is-visible");
|
||||
state.toastTimer = window.setTimeout(function () {
|
||||
dom.toast.classList.remove("is-visible");
|
||||
}, 2600);
|
||||
}
|
||||
|
||||
function hideLoading() {
|
||||
dom.mediaLoading.classList.add("is-hidden");
|
||||
}
|
||||
|
||||
function cancelWorkflowSequence() {
|
||||
window.clearTimeout(state.workflowTimer);
|
||||
state.workflowTimer = 0;
|
||||
state.workflowRunToken += 1;
|
||||
state.workflowAutoPlaying = false;
|
||||
}
|
||||
|
||||
function setWorkflowDiagram(element, active) {
|
||||
element.toggleAttribute("hidden", !active);
|
||||
element.classList.toggle("is-active", active);
|
||||
}
|
||||
|
||||
function hideWorkflowVisuals() {
|
||||
setWorkflowDiagram(dom.projectionDiagram, false);
|
||||
setWorkflowDiagram(dom.densityDiagram, false);
|
||||
dom.densityBackground.classList.remove("is-visible");
|
||||
dom.app.classList.remove("has-workflow-visual");
|
||||
}
|
||||
|
||||
function syncWorkflowPresentation(index) {
|
||||
const safeIndex = Math.max(0, Math.min(3, Number(index) || 0));
|
||||
const isExperiment = !state.selectedLandform;
|
||||
const showProjection = isExperiment && safeIndex === 2;
|
||||
const showDensity = isExperiment && safeIndex === 3;
|
||||
const densityWasVisible = dom.densityBackground.classList.contains("is-visible");
|
||||
setWorkflowDiagram(dom.projectionDiagram, showProjection);
|
||||
setWorkflowDiagram(dom.densityDiagram, showDensity);
|
||||
dom.densityBackground.classList.toggle("is-visible", showDensity);
|
||||
dom.app.classList.toggle("has-workflow-visual", showProjection || showDensity);
|
||||
if (isExperiment) dom.experimentVideo.classList.toggle("is-visible", !showDensity);
|
||||
if (showDensity && !densityWasVisible) triggerScan(dom.densityBackground);
|
||||
}
|
||||
|
||||
function beginStaticWorkflowSequence() {
|
||||
cancelWorkflowSequence();
|
||||
const token = state.workflowRunToken;
|
||||
state.workflowAutoPlaying = true;
|
||||
renderStep(2);
|
||||
setPlayButton();
|
||||
dom.hintText.textContent = "自动演示:" + STEP_COPY[2].description;
|
||||
state.workflowTimer = window.setTimeout(function () {
|
||||
if (token !== state.workflowRunToken) return;
|
||||
renderStep(3);
|
||||
dom.hintText.textContent = "自动演示:" + STEP_COPY[3].description;
|
||||
state.workflowTimer = window.setTimeout(function () {
|
||||
if (token !== state.workflowRunToken) return;
|
||||
state.workflowTimer = 0;
|
||||
state.workflowAutoPlaying = false;
|
||||
setPlayButton();
|
||||
dom.hintText.textContent = "实验流程播放完成 · 可重新实验或选择典型地貌观察";
|
||||
}, 3600);
|
||||
}, 3200);
|
||||
}
|
||||
|
||||
function renderStep(index) {
|
||||
const safeIndex = Math.max(0, Math.min(3, Number(index) || 0));
|
||||
state.step = safeIndex;
|
||||
const copy = STEP_COPY[safeIndex];
|
||||
dom.flowCount.textContent = (safeIndex + 1) + "/4";
|
||||
dom.flowLineFill.style.width = (safeIndex / 3) * 100 + "%";
|
||||
dom.taskTitle.textContent = copy.title;
|
||||
dom.taskDescription.textContent = copy.description;
|
||||
dom.flowSteps.forEach(function (button, buttonIndex) {
|
||||
button.classList.toggle("is-active", buttonIndex === safeIndex);
|
||||
button.classList.toggle("is-complete", buttonIndex < safeIndex);
|
||||
button.setAttribute("aria-current", buttonIndex === safeIndex ? "step" : "false");
|
||||
});
|
||||
syncWorkflowPresentation(safeIndex);
|
||||
}
|
||||
|
||||
function renderObservation(view) {
|
||||
dom.observationHeading.textContent = view.name || view.title;
|
||||
dom.observationSummary.textContent = view.summary;
|
||||
dom.featureList.replaceChildren();
|
||||
view.features.forEach(function (feature) {
|
||||
const item = document.createElement("li");
|
||||
item.textContent = feature;
|
||||
dom.featureList.appendChild(item);
|
||||
});
|
||||
}
|
||||
|
||||
function setPlayButton() {
|
||||
const duration = dom.experimentVideo.duration;
|
||||
const finished = dom.experimentVideo.ended || (Number.isFinite(duration) && duration > 0 && dom.experimentVideo.currentTime >= duration - 0.08);
|
||||
if (!dom.experimentVideo.paused) {
|
||||
dom.playLabel.textContent = "暂停实验";
|
||||
dom.playIcon.innerHTML = ICONS.pause;
|
||||
return;
|
||||
}
|
||||
dom.playIcon.innerHTML = ICONS.play;
|
||||
if (!state.selectedLandform && state.step >= 2) {
|
||||
dom.playLabel.textContent = "重新实验";
|
||||
return;
|
||||
}
|
||||
if (finished) dom.playLabel.textContent = "重新实验";
|
||||
else if (dom.experimentVideo.currentTime > 0.12) dom.playLabel.textContent = "继续实验";
|
||||
else dom.playLabel.textContent = "开始实验";
|
||||
}
|
||||
|
||||
function updateMediaLabel(view) {
|
||||
if (view) {
|
||||
dom.mediaLabelKicker.textContent = state.viewMode === "top" ? "典型地貌 · 真实俯视图" : "典型地貌 · 立体示意";
|
||||
dom.mediaLabelTitle.textContent = view.name;
|
||||
dom.mediaLabelCopy.textContent = state.viewMode === "top" ? view.subtitle + "|" + view.summary : view.summary;
|
||||
return;
|
||||
}
|
||||
dom.mediaLabelKicker.textContent = "实验流程";
|
||||
dom.mediaLabelTitle.textContent = "形成交线与垂直投影";
|
||||
dom.mediaLabelCopy.textContent = dom.experimentVideo.paused
|
||||
? "点击“开始实验”,直接在当前画面播放形成交线视频"
|
||||
: STEP_COPY[state.step].description;
|
||||
}
|
||||
|
||||
function updateViewToggle() {
|
||||
const view = LANDFORMS[state.selectedLandform];
|
||||
const hasLandform = Boolean(view);
|
||||
const isTopView = hasLandform && state.viewMode === "top";
|
||||
dom.topViewToggle.disabled = !hasLandform;
|
||||
dom.topViewToggle.classList.toggle("is-active", isTopView);
|
||||
dom.topViewToggle.setAttribute("aria-pressed", String(isTopView));
|
||||
dom.topViewToggleLabel.textContent = isTopView ? "立体图" : "俯视图";
|
||||
dom.topViewToggleHint.textContent = hasLandform ? "点击切换" : "选择地貌后切换";
|
||||
dom.topViewToggle.setAttribute(
|
||||
"aria-label",
|
||||
hasLandform ? "切换为" + (isTopView ? "立体图" : "俯视图") : "请先选择一种典型地貌"
|
||||
);
|
||||
|
||||
if (!view) {
|
||||
dom.topViewThumbnail.hidden = true;
|
||||
dom.topViewThumbnail.removeAttribute("src");
|
||||
dom.topViewThumbnail.alt = "";
|
||||
return;
|
||||
}
|
||||
dom.topViewThumbnail.src = isTopView ? view.image : view.topImage;
|
||||
dom.topViewThumbnail.alt = isTopView ? view.name + "立体图预览" : view.name + "真实俯视图预览";
|
||||
dom.topViewThumbnail.hidden = false;
|
||||
}
|
||||
|
||||
function triggerScan(targetImage) {
|
||||
window.clearTimeout(state.scanTimer);
|
||||
dom.app.classList.remove("is-scanning");
|
||||
dom.densityBackground.classList.remove("is-revealing");
|
||||
dom.landformImage.classList.remove("is-revealing");
|
||||
dom.landformTopImage.classList.remove("is-revealing");
|
||||
void dom.app.offsetWidth;
|
||||
dom.app.classList.add("is-scanning");
|
||||
(targetImage || (state.viewMode === "top" ? dom.landformTopImage : dom.landformImage)).classList.add("is-revealing");
|
||||
state.scanTimer = window.setTimeout(function () {
|
||||
dom.app.classList.remove("is-scanning");
|
||||
dom.densityBackground.classList.remove("is-revealing");
|
||||
dom.landformImage.classList.remove("is-revealing");
|
||||
dom.landformTopImage.classList.remove("is-revealing");
|
||||
}, 1220);
|
||||
}
|
||||
|
||||
async function decodeImage(image) {
|
||||
if (typeof image.decode === "function") {
|
||||
await image.decode();
|
||||
return;
|
||||
}
|
||||
if (!image.complete) {
|
||||
await new Promise(function (resolve, reject) {
|
||||
image.addEventListener("load", resolve, { once: true });
|
||||
image.addEventListener("error", reject, { once: true });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function hideTerrainAnnotation() {
|
||||
window.clearTimeout(state.annotationTimer);
|
||||
dom.app.classList.remove("is-landform");
|
||||
if (window.TerrainAnnotation) window.TerrainAnnotation.hide();
|
||||
}
|
||||
|
||||
function clearTerrainAnnotationNow() {
|
||||
window.clearTimeout(state.annotationTimer);
|
||||
state.annotationTimer = 0;
|
||||
if (window.TerrainAnnotation) window.TerrainAnnotation.hide(true);
|
||||
}
|
||||
|
||||
function scheduleTerrainAnnotation(withScan) {
|
||||
window.clearTimeout(state.annotationTimer);
|
||||
dom.app.classList.add("is-landform");
|
||||
state.annotationTimer = window.setTimeout(function () {
|
||||
if (!state.selectedLandform || !window.TerrainAnnotation) return;
|
||||
window.TerrainAnnotation.show(state.selectedLandform, state.viewMode);
|
||||
}, withScan ? 420 : 0);
|
||||
}
|
||||
|
||||
function applyLandformView(view, withScan) {
|
||||
const isTopView = state.viewMode === "top";
|
||||
hideWorkflowVisuals();
|
||||
dom.experimentVideo.classList.remove("is-visible");
|
||||
dom.landformImage.classList.toggle("is-visible", !isTopView);
|
||||
dom.landformTopImage.classList.toggle("is-visible", isTopView);
|
||||
updateMediaLabel(view);
|
||||
updateViewToggle();
|
||||
dom.hintText.textContent = isTopView
|
||||
? view.name + "俯视图:" + view.hint.replace(view.name + ":", "")
|
||||
: view.hint;
|
||||
if (withScan) triggerScan();
|
||||
scheduleTerrainAnnotation(withScan);
|
||||
}
|
||||
|
||||
function collapsePanelForCompactView() {
|
||||
if (!window.matchMedia("(max-width: 680px)").matches) return;
|
||||
dom.controlPanel.classList.add("is-collapsed");
|
||||
dom.panelOpen.hidden = false;
|
||||
}
|
||||
|
||||
async function selectLandform(key) {
|
||||
const view = LANDFORMS[key];
|
||||
if (!view) return;
|
||||
const token = ++state.imageToken;
|
||||
cancelWorkflowSequence();
|
||||
state.pendingLandform = key;
|
||||
clearTerrainAnnotationNow();
|
||||
hideWorkflowVisuals();
|
||||
const nextMode = state.selectedLandform ? state.viewMode : "perspective";
|
||||
dom.experimentVideo.pause();
|
||||
const perspectiveProbe = new Image();
|
||||
const topProbe = new Image();
|
||||
perspectiveProbe.src = view.image;
|
||||
topProbe.src = view.topImage;
|
||||
|
||||
try {
|
||||
await Promise.all([decodeImage(perspectiveProbe), decodeImage(topProbe)]);
|
||||
} catch (error) {
|
||||
if (token === state.imageToken) {
|
||||
state.pendingLandform = null;
|
||||
syncWorkflowPresentation(state.step);
|
||||
showToast("地貌图片加载失败,请检查对应资源文件");
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (token !== state.imageToken) return;
|
||||
|
||||
state.pendingLandform = null;
|
||||
state.selectedLandform = key;
|
||||
state.viewMode = nextMode;
|
||||
dom.landformImage.src = view.image;
|
||||
dom.landformImage.alt = view.alt;
|
||||
dom.landformTopImage.src = view.topImage;
|
||||
dom.landformTopImage.alt = view.topAlt;
|
||||
|
||||
dom.terrainTabs.forEach(function (button) {
|
||||
const active = button.dataset.landform === key;
|
||||
button.classList.toggle("is-active", active);
|
||||
button.setAttribute("aria-pressed", String(active));
|
||||
});
|
||||
dom.returnExperiment.hidden = false;
|
||||
renderObservation(view);
|
||||
applyLandformView(view, true);
|
||||
collapsePanelForCompactView();
|
||||
setPlayButton();
|
||||
}
|
||||
|
||||
async function toggleTopView() {
|
||||
const view = LANDFORMS[state.selectedLandform];
|
||||
if (!view) return;
|
||||
const previousMode = state.viewMode;
|
||||
const token = ++state.imageToken;
|
||||
state.pendingLandform = null;
|
||||
clearTerrainAnnotationNow();
|
||||
state.viewMode = previousMode === "top" ? "perspective" : "top";
|
||||
try {
|
||||
await decodeImage(state.viewMode === "top" ? dom.landformTopImage : dom.landformImage);
|
||||
} catch (error) {
|
||||
state.viewMode = previousMode;
|
||||
showToast("对应视图加载失败,请检查图片资源");
|
||||
return;
|
||||
}
|
||||
if (token !== state.imageToken) return;
|
||||
applyLandformView(view, true);
|
||||
collapsePanelForCompactView();
|
||||
}
|
||||
|
||||
function showExperiment() {
|
||||
cancelWorkflowSequence();
|
||||
state.imageToken += 1;
|
||||
state.pendingLandform = null;
|
||||
state.selectedLandform = null;
|
||||
state.viewMode = "perspective";
|
||||
dom.app.classList.remove("is-scanning");
|
||||
hideWorkflowVisuals();
|
||||
hideTerrainAnnotation();
|
||||
dom.landformImage.classList.remove("is-visible", "is-revealing");
|
||||
dom.landformTopImage.classList.remove("is-visible", "is-revealing");
|
||||
dom.experimentVideo.classList.add("is-visible");
|
||||
dom.terrainTabs.forEach(function (button) {
|
||||
button.classList.remove("is-active");
|
||||
button.setAttribute("aria-pressed", "false");
|
||||
});
|
||||
dom.returnExperiment.hidden = true;
|
||||
renderObservation(DEFAULT_VIEW);
|
||||
updateViewToggle();
|
||||
updateMediaLabel(null);
|
||||
}
|
||||
|
||||
function playVideo() {
|
||||
dom.experimentVideo.play().then(function () {
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
dom.hintText.textContent = "实验播放中:" + STEP_COPY[state.step].description;
|
||||
}).catch(function (error) {
|
||||
if (error && error.name === "AbortError") return;
|
||||
showToast("视频暂时无法播放,请检查浏览器媒体权限");
|
||||
});
|
||||
}
|
||||
|
||||
function toggleExperimentPlayback() {
|
||||
if (state.selectedLandform || state.pendingLandform || state.step >= 2) {
|
||||
showExperiment();
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
} else {
|
||||
state.pendingStep = 0;
|
||||
}
|
||||
renderStep(0);
|
||||
playVideo();
|
||||
return;
|
||||
}
|
||||
if (!dom.experimentVideo.paused) {
|
||||
dom.experimentVideo.pause();
|
||||
return;
|
||||
}
|
||||
const duration = dom.experimentVideo.duration;
|
||||
if (dom.experimentVideo.ended || (Number.isFinite(duration) && dom.experimentVideo.currentTime >= duration - 0.08)) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
renderStep(0);
|
||||
}
|
||||
playVideo();
|
||||
}
|
||||
|
||||
function playFromBeginning() {
|
||||
showExperiment();
|
||||
renderStep(0);
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
} else {
|
||||
state.pendingStep = 0;
|
||||
}
|
||||
playVideo();
|
||||
}
|
||||
|
||||
function playStep(index) {
|
||||
const safeIndex = Math.max(0, Math.min(3, Number(index) || 0));
|
||||
showExperiment();
|
||||
renderStep(safeIndex);
|
||||
if (safeIndex <= 1) {
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = safeIndex === 0 ? 0 : dom.experimentVideo.duration / 2;
|
||||
} else {
|
||||
state.pendingStep = safeIndex;
|
||||
}
|
||||
playVideo();
|
||||
return;
|
||||
}
|
||||
state.pendingStep = null;
|
||||
dom.experimentVideo.pause();
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
dom.hintText.textContent = STEP_COPY[safeIndex].title + ":" + STEP_COPY[safeIndex].description;
|
||||
}
|
||||
|
||||
function resetExperience() {
|
||||
state.pendingStep = null;
|
||||
dom.experimentVideo.pause();
|
||||
showExperiment();
|
||||
renderStep(0);
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
} else {
|
||||
state.pendingStep = 0;
|
||||
}
|
||||
dom.progress.style.width = "0%";
|
||||
dom.hintText.textContent = DEFAULT_VIEW.hint;
|
||||
setPlayButton();
|
||||
showToast("已重置到视频首帧");
|
||||
}
|
||||
|
||||
function toggleFullscreen() {
|
||||
if (!document.fullscreenElement) {
|
||||
if (!dom.app.requestFullscreen) {
|
||||
showToast("当前浏览器不支持全屏");
|
||||
return;
|
||||
}
|
||||
dom.app.requestFullscreen().catch(function () { showToast("当前浏览器未允许进入全屏"); });
|
||||
return;
|
||||
}
|
||||
if (document.exitFullscreen) document.exitFullscreen().catch(function () {});
|
||||
}
|
||||
|
||||
dom.experimentVideo.addEventListener("loadeddata", hideLoading, { once: true });
|
||||
dom.experimentVideo.addEventListener("canplay", hideLoading, { once: true });
|
||||
dom.experimentVideo.addEventListener("loadedmetadata", function () {
|
||||
if (state.pendingStep === null) return;
|
||||
const pending = state.pendingStep;
|
||||
state.pendingStep = null;
|
||||
const duration = dom.experimentVideo.duration;
|
||||
if (Number.isFinite(duration) && duration > 0) {
|
||||
dom.experimentVideo.currentTime = pending === 0 ? 0 : duration / 2;
|
||||
renderStep(pending);
|
||||
}
|
||||
});
|
||||
dom.experimentVideo.addEventListener("error", function () {
|
||||
hideLoading();
|
||||
showToast("形成交线视频加载失败,请确认“contour-formation.mp4”在当前目录");
|
||||
});
|
||||
dom.experimentVideo.addEventListener("play", function () {
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
dom.hintText.textContent = "实验播放中:" + STEP_COPY[state.step].description;
|
||||
});
|
||||
dom.experimentVideo.addEventListener("pause", function () {
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
if (!state.selectedLandform && state.step >= 2) {
|
||||
dom.hintText.textContent = STEP_COPY[state.step].title + ":" + STEP_COPY[state.step].description;
|
||||
return;
|
||||
}
|
||||
if (!dom.experimentVideo.ended && dom.experimentVideo.currentTime > 0.12 && !state.selectedLandform) {
|
||||
dom.hintText.textContent = "实验已暂停 · 点击“继续实验”恢复播放";
|
||||
}
|
||||
});
|
||||
dom.experimentVideo.addEventListener("ended", function () {
|
||||
if (
|
||||
state.selectedLandform ||
|
||||
state.pendingLandform ||
|
||||
state.step > 1 ||
|
||||
!dom.experimentVideo.ended
|
||||
) return;
|
||||
dom.progress.style.width = "100%";
|
||||
beginStaticWorkflowSequence();
|
||||
});
|
||||
dom.experimentVideo.addEventListener("timeupdate", function () {
|
||||
const duration = dom.experimentVideo.duration;
|
||||
const ratio = Number.isFinite(duration) && duration > 0 ? dom.experimentVideo.currentTime / duration : 0;
|
||||
dom.progress.style.width = Math.max(0, Math.min(100, ratio * 100)) + "%";
|
||||
if (!state.selectedLandform && state.step === 0 && ratio >= 0.5) {
|
||||
renderStep(1);
|
||||
dom.hintText.textContent = "实验播放中:" + STEP_COPY[1].description;
|
||||
}
|
||||
if (!dom.experimentVideo.paused) updateMediaLabel(null);
|
||||
});
|
||||
|
||||
dom.playButton.addEventListener("click", toggleExperimentPlayback);
|
||||
dom.workflowOpen.addEventListener("click", playFromBeginning);
|
||||
dom.resetButton.addEventListener("click", resetExperience);
|
||||
dom.returnExperiment.addEventListener("click", resetExperience);
|
||||
dom.topViewToggle.addEventListener("click", toggleTopView);
|
||||
dom.terrainTabs.forEach(function (button) {
|
||||
button.addEventListener("click", function () { selectLandform(button.dataset.landform); });
|
||||
});
|
||||
dom.flowSteps.forEach(function (button) {
|
||||
button.addEventListener("click", function () { playStep(Number(button.dataset.step)); });
|
||||
});
|
||||
|
||||
dom.fullscreenButton.addEventListener("click", toggleFullscreen);
|
||||
document.addEventListener("fullscreenchange", function () {
|
||||
dom.fullscreenLabel.textContent = document.fullscreenElement ? "退出全屏" : "全屏";
|
||||
});
|
||||
dom.panelClose.addEventListener("click", function () {
|
||||
dom.controlPanel.classList.add("is-collapsed");
|
||||
dom.panelOpen.hidden = false;
|
||||
});
|
||||
dom.panelOpen.addEventListener("click", function () {
|
||||
dom.controlPanel.classList.remove("is-collapsed");
|
||||
dom.panelOpen.hidden = true;
|
||||
});
|
||||
|
||||
document.addEventListener("keydown", function (event) {
|
||||
if (event.code === "Space" && !/BUTTON|INPUT|VIDEO/.test(document.activeElement.tagName)) {
|
||||
event.preventDefault();
|
||||
toggleExperimentPlayback();
|
||||
}
|
||||
if (/^[1-5]$/.test(event.key) && !event.metaKey && !event.ctrlKey && !event.altKey) {
|
||||
const keys = ["peak", "ridge", "valley", "saddle", "cliff"];
|
||||
selectLandform(keys[Number(event.key) - 1]);
|
||||
}
|
||||
});
|
||||
|
||||
window.setTimeout(hideLoading, 7000);
|
||||
renderStep(0);
|
||||
renderObservation(DEFAULT_VIEW);
|
||||
updateViewToggle();
|
||||
updateMediaLabel(null);
|
||||
setPlayButton();
|
||||
|
||||
window.__GEO_LAB_TEST__ = {
|
||||
getState: function () {
|
||||
return {
|
||||
selectedLandform: state.selectedLandform,
|
||||
pendingLandform: state.pendingLandform,
|
||||
viewMode: state.viewMode,
|
||||
step: state.step,
|
||||
videoPlaying: !dom.experimentVideo.paused,
|
||||
videoTime: dom.experimentVideo.currentTime,
|
||||
videoSource: dom.experimentVideo.currentSrc || dom.experimentVideo.src,
|
||||
workflowDiagram: !dom.projectionDiagram.hasAttribute("hidden") ? "projection" : !dom.densityDiagram.hasAttribute("hidden") ? "density" : null,
|
||||
workflowAutoPlaying: state.workflowAutoPlaying,
|
||||
densityBackground: dom.densityBackground.classList.contains("is-visible"),
|
||||
scanning: dom.app.classList.contains("is-scanning"),
|
||||
terrainAnnotation: window.TerrainAnnotation ? window.TerrainAnnotation.getState() : null,
|
||||
fullscreen: Boolean(document.fullscreenElement)
|
||||
};
|
||||
},
|
||||
selectLandform: selectLandform,
|
||||
toggleTopView: toggleTopView,
|
||||
showExperiment: showExperiment,
|
||||
playStep: playStep,
|
||||
reset: resetExperience
|
||||
};
|
||||
})();
|
||||
|
Before Width: | Height: | Size: 2.6 MiB |
|
Before Width: | Height: | Size: 3.3 MiB |
|
Before Width: | Height: | Size: 2.4 MiB |
|
Before Width: | Height: | Size: 2.4 MiB |
|
Before Width: | Height: | Size: 3.2 MiB |
|
Before Width: | Height: | Size: 2.5 MiB |
|
Before Width: | Height: | Size: 3.3 MiB |
|
Before Width: | Height: | Size: 2.4 MiB |
|
Before Width: | Height: | Size: 3.3 MiB |
@@ -1,671 +0,0 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
const THREE = window.THREE;
|
||||
const root = document.getElementById("terrain-annotation");
|
||||
const canvas = document.getElementById("terrain-annotation-canvas");
|
||||
const callout = document.getElementById("terrain-callout");
|
||||
const calloutTitle = document.getElementById("terrain-callout-title");
|
||||
const calloutCopy = document.getElementById("terrain-callout-copy");
|
||||
const calloutConnector = document.getElementById("terrain-callout-connector");
|
||||
const calloutConnectorShape = document.getElementById("terrain-callout-connector-shape");
|
||||
const stage = document.querySelector(".media-stage");
|
||||
|
||||
if (!THREE || !root || !canvas || !callout || !calloutTitle || !calloutCopy || !calloutConnector || !calloutConnectorShape || !stage) return;
|
||||
|
||||
const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)");
|
||||
const compactLayout = window.matchMedia("(max-width: 680px)");
|
||||
const SOURCE_ASPECT = 1586 / 992;
|
||||
const GUIDE_COLOR = "#f6b21a";
|
||||
const OUTLINE_COLOR = 0x082742;
|
||||
const TARGET_OUTER_RADIUS = 20;
|
||||
const ROLE_STYLES = {
|
||||
main: { width: 8, outline: 14, opacity: 1, dashed: 0, dashCount: 1, dashRatio: 1, dashSpeed: 0 },
|
||||
branch: { width: 6.5, outline: 11.5, opacity: 1, dashed: 1, dashCount: 4, dashRatio: 0.62, dashSpeed: 0 },
|
||||
ring: { width: 6, outline: 10.5, opacity: 1, dashed: 0, dashCount: 1, dashRatio: 1, dashSpeed: 0 },
|
||||
contour: { width: 4.5, outline: 8.5, opacity: 1, dashed: 0, dashCount: 1, dashRatio: 1, dashSpeed: 0 },
|
||||
bracket: { width: 5.5, outline: 10, opacity: 1, dashed: 1, dashCount: 4, dashRatio: 0.62, dashSpeed: 0 }
|
||||
};
|
||||
|
||||
const ANNOTATIONS = {
|
||||
peak: {
|
||||
title: "山峰 · 最高中心",
|
||||
copy: "闭合等高线由外向内数值升高,中心位置为山峰。",
|
||||
color: GUIDE_COLOR,
|
||||
perspective: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.628, 0.575], [0.650, 0.455], [0.670, 0.280], [0.709, 0.143]] }
|
||||
],
|
||||
target: [0.709, 0.143],
|
||||
placement: { side: "right", dx: 34, dy: 24 }
|
||||
},
|
||||
top: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.575, 0.645], [0.610, 0.555], [0.645, 0.485], [0.668, 0.449]] }
|
||||
],
|
||||
target: [0.668, 0.449],
|
||||
placement: { side: "right", dx: 34, dy: -10 }
|
||||
}
|
||||
},
|
||||
ridge: {
|
||||
title: "山脊 · 分水脊线",
|
||||
copy: "等高线向低处凸出,脊线两侧水流向外分开。",
|
||||
color: GUIDE_COLOR,
|
||||
perspective: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.765, 0.245], [0.720, 0.365], [0.675, 0.500], [0.625, 0.645]] },
|
||||
{ role: "branch", arrow: true, points: [[0.675, 0.500], [0.635, 0.535], [0.595, 0.565]] },
|
||||
{ role: "branch", arrow: true, points: [[0.675, 0.500], [0.715, 0.535], [0.755, 0.570]] }
|
||||
],
|
||||
target: [0.675, 0.500],
|
||||
placement: { side: "left", dx: -34, dy: -85 }
|
||||
},
|
||||
top: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.690, 0.270], [0.655, 0.395], [0.620, 0.520], [0.590, 0.650]] },
|
||||
{ role: "branch", arrow: true, points: [[0.620, 0.520], [0.582, 0.545], [0.548, 0.575]] },
|
||||
{ role: "branch", arrow: true, points: [[0.620, 0.520], [0.658, 0.548], [0.695, 0.580]] }
|
||||
],
|
||||
target: [0.620, 0.520],
|
||||
placement: { side: "left", dx: -34, dy: -85 }
|
||||
}
|
||||
},
|
||||
valley: {
|
||||
title: "山谷 · 汇水谷线",
|
||||
copy: "V形尖端指向上游,水流沿谷底向下游汇集。",
|
||||
color: GUIDE_COLOR,
|
||||
perspective: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.690, 0.410], [0.678, 0.520], [0.676, 0.550], [0.660, 0.650], [0.640, 0.790]] },
|
||||
{ role: "branch", arrow: true, points: [[0.590, 0.560], [0.630, 0.560], [0.676, 0.550]] },
|
||||
{ role: "branch", arrow: true, points: [[0.750, 0.560], [0.710, 0.560], [0.676, 0.550]] }
|
||||
],
|
||||
target: [0.676, 0.550],
|
||||
placement: { side: "right", dx: 34, dy: -80 }
|
||||
},
|
||||
top: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.600, 0.355], [0.565, 0.470], [0.525, 0.585], [0.470, 0.690]] },
|
||||
{ role: "branch", arrow: true, points: [[0.455, 0.520], [0.490, 0.555], [0.525, 0.585]] },
|
||||
{ role: "branch", arrow: true, points: [[0.600, 0.510], [0.565, 0.550], [0.525, 0.585]] }
|
||||
],
|
||||
target: [0.525, 0.585],
|
||||
placement: { side: "right", dx: 34, dy: 70 }
|
||||
}
|
||||
},
|
||||
saddle: {
|
||||
title: "鞍部 · 两峰低口",
|
||||
copy: "两组闭合等高线之间的低口,就是鞍部。",
|
||||
color: GUIDE_COLOR,
|
||||
perspective: {
|
||||
traces: [
|
||||
{ role: "main", points: [[0.625, 0.425], [0.675, 0.465], [0.725, 0.420]] }
|
||||
],
|
||||
target: [0.675, 0.465],
|
||||
placement: { side: "below", dx: 0, dy: 38 }
|
||||
},
|
||||
top: {
|
||||
traces: [
|
||||
{ role: "main", points: [[0.515, 0.475], [0.560, 0.505], [0.610, 0.475]] }
|
||||
],
|
||||
target: [0.560, 0.505],
|
||||
placement: { side: "below", dx: 0, dy: 38 }
|
||||
}
|
||||
},
|
||||
cliff: {
|
||||
title: "陡崖 · 密集重合带",
|
||||
copy: "等高线极密集或重合,表示此处坡度陡峭。",
|
||||
color: GUIDE_COLOR,
|
||||
perspective: {
|
||||
traces: [
|
||||
{ role: "contour", points: [[0.535, 0.345], [0.565, 0.352], [0.590, 0.360]] },
|
||||
{ role: "contour", points: [[0.532, 0.390], [0.562, 0.398], [0.590, 0.405]] },
|
||||
{ role: "contour", points: [[0.530, 0.435], [0.560, 0.443], [0.590, 0.452]] },
|
||||
{ role: "main", arrow: true, points: [[0.595, 0.305], [0.590, 0.405], [0.598, 0.510]] }
|
||||
],
|
||||
target: [0.590, 0.405],
|
||||
placement: { side: "right", dx: 34, dy: 0 }
|
||||
},
|
||||
top: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.535, 0.560], [0.585, 0.520], [0.635, 0.480]] },
|
||||
{ role: "contour", points: [[0.555, 0.455], [0.575, 0.515], [0.595, 0.575]] },
|
||||
{ role: "contour", points: [[0.590, 0.435], [0.610, 0.495], [0.630, 0.555]] }
|
||||
],
|
||||
target: [0.585, 0.520],
|
||||
placement: { side: "below", dx: 0, dy: 70 }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
let renderer;
|
||||
let scene;
|
||||
let camera;
|
||||
let annotationGroup;
|
||||
let aspect = 1;
|
||||
let stageHeight = 1;
|
||||
let animationFrame = 0;
|
||||
let revealStart = 0;
|
||||
let calloutTimer = 0;
|
||||
let hideTimer = 0;
|
||||
let currentKey = null;
|
||||
let currentMode = "perspective";
|
||||
let buildToken = 0;
|
||||
let animatedMaterials = [];
|
||||
let revealGeometries = [];
|
||||
let pulseMeshes = [];
|
||||
let delayedMarkers = [];
|
||||
let runnerDots = [];
|
||||
|
||||
try {
|
||||
renderer = new THREE.WebGLRenderer({ canvas: canvas, alpha: true, antialias: true, powerPreference: "high-performance" });
|
||||
renderer.setClearColor(0x000000, 0);
|
||||
renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 1.75));
|
||||
scene = new THREE.Scene();
|
||||
camera = new THREE.OrthographicCamera(-1, 1, 1, -1, 0.1, 10);
|
||||
camera.position.z = 4;
|
||||
} catch (error) {
|
||||
root.dataset.renderer = "unavailable";
|
||||
return;
|
||||
}
|
||||
|
||||
function sourceToScreen(point) {
|
||||
let renderedWidth = 1;
|
||||
let renderedHeight = 1;
|
||||
let offsetX = 0;
|
||||
let offsetY = 0;
|
||||
if (compactLayout.matches) {
|
||||
if (aspect >= SOURCE_ASPECT) {
|
||||
renderedWidth = SOURCE_ASPECT / aspect;
|
||||
offsetX = (1 - renderedWidth) / 2;
|
||||
} else {
|
||||
renderedHeight = aspect / SOURCE_ASPECT;
|
||||
offsetY = (1 - renderedHeight) / 2;
|
||||
}
|
||||
} else {
|
||||
if (aspect >= SOURCE_ASPECT) {
|
||||
renderedHeight = aspect / SOURCE_ASPECT;
|
||||
offsetY = (1 - renderedHeight) / 2;
|
||||
} else {
|
||||
renderedWidth = SOURCE_ASPECT / aspect;
|
||||
offsetX = (1 - renderedWidth) / 2;
|
||||
}
|
||||
}
|
||||
return [offsetX + point[0] * renderedWidth, offsetY + point[1] * renderedHeight];
|
||||
}
|
||||
|
||||
function toWorld(point) {
|
||||
const screenPoint = sourceToScreen(point);
|
||||
return new THREE.Vector3((screenPoint[0] - 0.5) * 2 * aspect, (0.5 - screenPoint[1]) * 2, 0);
|
||||
}
|
||||
|
||||
function getVisualScale() {
|
||||
return Math.max(0.72, Math.min(1, stage.clientWidth / 1200));
|
||||
}
|
||||
|
||||
function disposeMaterial(material) {
|
||||
if (Array.isArray(material)) material.forEach(disposeMaterial);
|
||||
else if (material && typeof material.dispose === "function") material.dispose();
|
||||
}
|
||||
|
||||
function clearAnnotation() {
|
||||
if (!annotationGroup) return;
|
||||
annotationGroup.traverse(function (object) {
|
||||
if (object.geometry) object.geometry.dispose();
|
||||
if (object.material) disposeMaterial(object.material);
|
||||
});
|
||||
scene.remove(annotationGroup);
|
||||
annotationGroup = null;
|
||||
animatedMaterials = [];
|
||||
revealGeometries = [];
|
||||
pulseMeshes = [];
|
||||
delayedMarkers = [];
|
||||
runnerDots = [];
|
||||
}
|
||||
|
||||
function createRibbonGeometry(samples, widthInPixels) {
|
||||
const positions = [];
|
||||
const uvs = [];
|
||||
const indices = [];
|
||||
const halfWidth = widthInPixels / Math.max(1, stageHeight);
|
||||
samples.forEach(function (point, index) {
|
||||
const previous = samples[Math.max(0, index - 1)];
|
||||
const next = samples[Math.min(samples.length - 1, index + 1)];
|
||||
const tangentX = next.x - previous.x;
|
||||
const tangentY = next.y - previous.y;
|
||||
const length = Math.hypot(tangentX, tangentY) || 1;
|
||||
const normalX = -tangentY / length;
|
||||
const normalY = tangentX / length;
|
||||
const progress = index / Math.max(1, samples.length - 1);
|
||||
positions.push(point.x + normalX * halfWidth, point.y + normalY * halfWidth, point.z);
|
||||
positions.push(point.x - normalX * halfWidth, point.y - normalY * halfWidth, point.z);
|
||||
uvs.push(progress, 0, progress, 1);
|
||||
if (index < samples.length - 1) {
|
||||
const base = index * 2;
|
||||
indices.push(base, base + 1, base + 2, base + 1, base + 3, base + 2);
|
||||
}
|
||||
});
|
||||
const geometry = new THREE.BufferGeometry();
|
||||
geometry.setAttribute("position", new THREE.Float32BufferAttribute(positions, 3));
|
||||
geometry.setAttribute("uv", new THREE.Float32BufferAttribute(uvs, 2));
|
||||
geometry.setIndex(indices);
|
||||
geometry.computeBoundingSphere();
|
||||
return geometry;
|
||||
}
|
||||
|
||||
function makeLineMaterial(color, style) {
|
||||
return new THREE.ShaderMaterial({
|
||||
uniforms: {
|
||||
uTime: { value: 0 },
|
||||
uColor: { value: new THREE.Color(color) },
|
||||
uOpacity: { value: style.opacity },
|
||||
uMotion: { value: reducedMotion.matches ? 0 : 1 },
|
||||
uDashed: { value: style.dashed },
|
||||
uDashCount: { value: style.dashCount },
|
||||
uDashRatio: { value: style.dashRatio },
|
||||
uDashSpeed: { value: style.dashSpeed }
|
||||
},
|
||||
vertexShader: [
|
||||
"varying vec2 vUv;",
|
||||
"void main() {",
|
||||
" vUv = uv;",
|
||||
" gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);",
|
||||
"}"
|
||||
].join("\n"),
|
||||
fragmentShader: [
|
||||
"uniform float uTime;",
|
||||
"uniform vec3 uColor;",
|
||||
"uniform float uOpacity;",
|
||||
"uniform float uMotion;",
|
||||
"uniform float uDashed;",
|
||||
"uniform float uDashCount;",
|
||||
"uniform float uDashRatio;",
|
||||
"uniform float uDashSpeed;",
|
||||
"varying vec2 vUv;",
|
||||
"void main() {",
|
||||
" float edge = 1.0 - smoothstep(0.43, 0.50, abs(vUv.y - 0.5));",
|
||||
" float dashPhase = fract(vUv.x * uDashCount - uTime * uDashSpeed * uMotion);",
|
||||
" float dash = 1.0 - smoothstep(uDashRatio - 0.04, uDashRatio + 0.04, dashPhase);",
|
||||
" float pattern = mix(1.0, dash, uDashed);",
|
||||
" float alpha = uOpacity * edge * pattern;",
|
||||
" gl_FragColor = vec4(uColor, alpha);",
|
||||
"}"
|
||||
].join("\n"),
|
||||
transparent: true,
|
||||
depthTest: false,
|
||||
depthWrite: false,
|
||||
blending: THREE.NormalBlending
|
||||
});
|
||||
}
|
||||
|
||||
function createArrow(points, color, sizeInPixels, delay, stopBeforePixels) {
|
||||
const end = toWorld(points[points.length - 1]);
|
||||
const before = toWorld(points[points.length - 2]);
|
||||
const direction = end.clone().sub(before).normalize();
|
||||
const angle = Math.atan2(direction.y, direction.x);
|
||||
const unit = 2 / Math.max(1, stageHeight);
|
||||
const visualScale = getVisualScale();
|
||||
const scaledSize = sizeInPixels * visualScale;
|
||||
const arrowPosition = end.clone().addScaledVector(direction, -(stopBeforePixels || 0) * visualScale * unit);
|
||||
function createArrowGeometry(pixelSize) {
|
||||
const size = pixelSize * unit;
|
||||
const geometry = new THREE.BufferGeometry();
|
||||
geometry.setAttribute("position", new THREE.Float32BufferAttribute([
|
||||
0, 0, 0,
|
||||
-size * 1.90, size * 0.88, 0,
|
||||
-size * 1.90, -size * 0.88, 0
|
||||
], 3));
|
||||
return geometry;
|
||||
}
|
||||
const outlineMaterial = new THREE.MeshBasicMaterial({ color: OUTLINE_COLOR, transparent: true, opacity: 1, depthTest: false, depthWrite: false });
|
||||
const material = new THREE.MeshBasicMaterial({ color: color, transparent: true, opacity: 1, depthTest: false, depthWrite: false });
|
||||
const outline = new THREE.Mesh(createArrowGeometry(scaledSize + 2.5 * visualScale), outlineMaterial);
|
||||
const arrow = new THREE.Mesh(createArrowGeometry(scaledSize), material);
|
||||
outline.position.copy(arrowPosition).addScaledVector(direction, 1.25 * visualScale * unit);
|
||||
arrow.position.copy(arrowPosition);
|
||||
outline.rotation.z = angle;
|
||||
arrow.rotation.z = angle;
|
||||
outline.renderOrder = 40;
|
||||
arrow.renderOrder = 41;
|
||||
annotationGroup.add(outline, arrow);
|
||||
delayedMarkers.push({ mesh: outline, delay: delay + 0.46 });
|
||||
delayedMarkers.push({ mesh: arrow, delay: delay + 0.46 });
|
||||
}
|
||||
|
||||
function createRunnerDots(curve, delay, count) {
|
||||
const pixelUnit = 2 / Math.max(1, stageHeight);
|
||||
const visualScale = getVisualScale();
|
||||
const phases = count === 1 ? [0.18] : count === 2 ? [0.18, 0.70] : [0.12, 0.45, 0.78];
|
||||
phases.forEach(function (phase, index) {
|
||||
const glowMaterial = new THREE.MeshBasicMaterial({
|
||||
color: 0xffffff,
|
||||
transparent: true,
|
||||
opacity: 0.28,
|
||||
depthTest: false,
|
||||
depthWrite: false,
|
||||
blending: THREE.AdditiveBlending
|
||||
});
|
||||
const dotMaterial = new THREE.MeshBasicMaterial({ color: 0xffffff, transparent: true, opacity: 1, depthTest: false, depthWrite: false });
|
||||
const glow = new THREE.Mesh(new THREE.CircleGeometry(11 * visualScale * pixelUnit, 40), glowMaterial);
|
||||
const dot = new THREE.Mesh(new THREE.CircleGeometry(7.5 * visualScale * pixelUnit, 40), dotMaterial);
|
||||
const position = curve.getPointAt(phase);
|
||||
glow.position.copy(position);
|
||||
dot.position.copy(position);
|
||||
glow.renderOrder = 44;
|
||||
dot.renderOrder = 45;
|
||||
glow.visible = false;
|
||||
dot.visible = false;
|
||||
annotationGroup.add(glow, dot);
|
||||
runnerDots.push({ glow: glow, dot: dot, curve: curve, phase: phase, delay: delay + 0.18, pulseOffset: index * 1.8 });
|
||||
});
|
||||
}
|
||||
|
||||
function createTrace(trace, color, index, target) {
|
||||
const style = ROLE_STYLES[trace.role] || ROLE_STYLES.main;
|
||||
const worldPoints = trace.points.map(toWorld);
|
||||
const curve = new THREE.CatmullRomCurve3(worldPoints, Boolean(trace.closed), "centripetal", 0.5);
|
||||
const pathLengthPixels = curve.getLength() * stageHeight / 2;
|
||||
const samples = curve.getSpacedPoints(Math.max(36, trace.points.length * 12));
|
||||
const visualScale = getVisualScale();
|
||||
const outlineGeometry = createRibbonGeometry(samples, style.outline * visualScale);
|
||||
const lineGeometry = createRibbonGeometry(samples, style.width * visualScale);
|
||||
const outlineMaterial = makeLineMaterial(OUTLINE_COLOR, style);
|
||||
const lineMaterial = makeLineMaterial(color, style);
|
||||
const outline = new THREE.Mesh(outlineGeometry, outlineMaterial);
|
||||
const line = new THREE.Mesh(lineGeometry, lineMaterial);
|
||||
const isMain = trace.role === "main";
|
||||
outline.renderOrder = isMain ? 30 : 20;
|
||||
line.renderOrder = isMain ? 31 : 21;
|
||||
annotationGroup.add(outline, line);
|
||||
animatedMaterials.push(outlineMaterial, lineMaterial);
|
||||
const delay = index * 0.075;
|
||||
if (trace.role === "main") createRunnerDots(curve, delay, pathLengthPixels < 180 ? 1 : pathLengthPixels < 320 ? 2 : 3);
|
||||
revealGeometries.push({ geometry: outlineGeometry, count: outlineGeometry.index.count, delay: delay });
|
||||
revealGeometries.push({ geometry: lineGeometry, count: lineGeometry.index.count, delay: delay });
|
||||
if (trace.arrow && !trace.closed) {
|
||||
const endPoint = trace.points[trace.points.length - 1];
|
||||
const endsAtTarget = target && Math.hypot(endPoint[0] - target[0], endPoint[1] - target[1]) < 0.002;
|
||||
const arrowScale = Math.max(0.82, Math.min(1, pathLengthPixels / 240));
|
||||
createArrow(trace.points, color, (trace.role === "branch" ? 14 : 15) * arrowScale, delay, endsAtTarget ? TARGET_OUTER_RADIUS + 4 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
function createTarget(point, color) {
|
||||
const position = toWorld(point);
|
||||
const pixelUnit = 2 / Math.max(1, stageHeight);
|
||||
const visualScale = getVisualScale();
|
||||
const halo = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(25 * visualScale * pixelUnit, 64),
|
||||
new THREE.MeshBasicMaterial({ color: color, transparent: true, opacity: 0.20, depthTest: false, depthWrite: false, blending: THREE.AdditiveBlending })
|
||||
);
|
||||
const outer = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(TARGET_OUTER_RADIUS * visualScale * pixelUnit, 64),
|
||||
new THREE.MeshBasicMaterial({ color: OUTLINE_COLOR, transparent: true, opacity: 1, depthTest: false, depthWrite: false })
|
||||
);
|
||||
const gold = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(17.5 * visualScale * pixelUnit, 64),
|
||||
new THREE.MeshBasicMaterial({ color: color, transparent: true, opacity: 1, depthTest: false, depthWrite: false })
|
||||
);
|
||||
const white = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(13.5 * visualScale * pixelUnit, 64),
|
||||
new THREE.MeshBasicMaterial({ color: 0xffffff, transparent: true, opacity: 1, depthTest: false, depthWrite: false })
|
||||
);
|
||||
const inner = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(10 * visualScale * pixelUnit, 56),
|
||||
new THREE.MeshBasicMaterial({ color: OUTLINE_COLOR, transparent: true, opacity: 1, depthTest: false, depthWrite: false })
|
||||
);
|
||||
const core = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(7.5 * visualScale * pixelUnit, 56),
|
||||
new THREE.MeshBasicMaterial({ color: color, transparent: true, opacity: 1, depthTest: false, depthWrite: false })
|
||||
);
|
||||
[halo, outer, gold, white, inner, core].forEach(function (mesh, index) {
|
||||
mesh.position.copy(position);
|
||||
mesh.renderOrder = 49 + index;
|
||||
annotationGroup.add(mesh);
|
||||
});
|
||||
pulseMeshes.push(halo);
|
||||
}
|
||||
|
||||
function updateCallout(definition, view) {
|
||||
const targetScreen = sourceToScreen(view.target);
|
||||
const placement = view.placement;
|
||||
calloutTitle.textContent = definition.title + (currentMode === "top" ? " · 俯视判读" : "");
|
||||
calloutCopy.textContent = definition.copy;
|
||||
const width = stage.clientWidth;
|
||||
const height = stage.clientHeight;
|
||||
const targetX = targetScreen[0] * width;
|
||||
const targetY = targetScreen[1] * height;
|
||||
const cardWidth = callout.offsetWidth || Math.min(width <= 680 ? 210 : width <= 920 ? 250 : 280, width - 28);
|
||||
const cardHeight = callout.offsetHeight || 88;
|
||||
let side = placement.side;
|
||||
let x = targetX + placement.dx;
|
||||
let y = targetY + placement.dy;
|
||||
const targetGap = TARGET_OUTER_RADIUS * getVisualScale() + 18;
|
||||
const horizontalGap = Math.max(Math.abs(placement.dx), targetGap);
|
||||
const verticalGap = Math.max(Math.abs(placement.dy), targetGap);
|
||||
|
||||
if (side === "right") x = targetX + horizontalGap;
|
||||
else if (side === "left") x = targetX - horizontalGap;
|
||||
else if (side === "below") y = targetY + verticalGap;
|
||||
else if (side === "above") y = targetY - verticalGap;
|
||||
|
||||
if (side === "right" && x + cardWidth > width - 14) {
|
||||
side = "left";
|
||||
x = targetX - horizontalGap;
|
||||
} else if (side === "left" && x - cardWidth < 14) {
|
||||
side = "right";
|
||||
x = targetX + horizontalGap;
|
||||
} else if (side === "below" && y + cardHeight > height - 14) {
|
||||
side = "above";
|
||||
y = targetY - verticalGap;
|
||||
} else if (side === "above" && y - cardHeight < 14) {
|
||||
side = "below";
|
||||
y = targetY + verticalGap;
|
||||
}
|
||||
|
||||
if (side === "right" || side === "left") {
|
||||
const horizontalMargin = compactLayout.matches ? 0 : 14;
|
||||
if (side === "right") x = Math.max(horizontalMargin, Math.min(width - cardWidth - horizontalMargin, x));
|
||||
else x = Math.max(cardWidth + horizontalMargin, Math.min(width - horizontalMargin, x));
|
||||
y = Math.max(cardHeight / 2 + 14, Math.min(height - cardHeight / 2 - 14, y));
|
||||
} else {
|
||||
x = Math.max(cardWidth / 2 + 14, Math.min(width - cardWidth / 2 - 14, x));
|
||||
}
|
||||
|
||||
const connectorBaseHalf = 28 * getVisualScale();
|
||||
let anchorX = x;
|
||||
let anchorY = y;
|
||||
let baseOne;
|
||||
let baseTwo;
|
||||
if (side === "right" || side === "left") {
|
||||
const verticalLimit = Math.max(0, cardHeight / 2 - connectorBaseHalf - 4);
|
||||
anchorY = y + Math.max(-verticalLimit, Math.min(verticalLimit, targetY - y));
|
||||
baseOne = [anchorX, anchorY - connectorBaseHalf];
|
||||
baseTwo = [anchorX, anchorY + connectorBaseHalf];
|
||||
} else {
|
||||
const horizontalLimit = Math.max(0, cardWidth / 2 - connectorBaseHalf - 4);
|
||||
anchorX = x + Math.max(-horizontalLimit, Math.min(horizontalLimit, targetX - x));
|
||||
baseOne = [anchorX - connectorBaseHalf, anchorY];
|
||||
baseTwo = [anchorX + connectorBaseHalf, anchorY];
|
||||
}
|
||||
const connectorX = anchorX - targetX;
|
||||
const connectorY = anchorY - targetY;
|
||||
const connectorLength = Math.hypot(connectorX, connectorY) || 1;
|
||||
const tipRadius = TARGET_OUTER_RADIUS * getVisualScale() * 0.72;
|
||||
const tipX = targetX + connectorX / connectorLength * tipRadius;
|
||||
const tipY = targetY + connectorY / connectorLength * tipRadius;
|
||||
calloutConnector.setAttribute("viewBox", "0 0 " + width + " " + height);
|
||||
calloutConnectorShape.setAttribute(
|
||||
"points",
|
||||
tipX.toFixed(1) + "," + tipY.toFixed(1) + " " +
|
||||
baseOne[0].toFixed(1) + "," + baseOne[1].toFixed(1) + " " +
|
||||
baseTwo[0].toFixed(1) + "," + baseTwo[1].toFixed(1)
|
||||
);
|
||||
|
||||
const pointerInset = 32;
|
||||
const pointerOffsetX = Math.max(-cardWidth / 2 + pointerInset, Math.min(cardWidth / 2 - pointerInset, targetX - x));
|
||||
const pointerOffsetY = Math.max(-cardHeight / 2 + pointerInset, Math.min(cardHeight / 2 - pointerInset, targetY - y));
|
||||
root.style.setProperty("--callout-x", x + "px");
|
||||
root.style.setProperty("--callout-y", y + "px");
|
||||
root.style.setProperty("--pointer-offset-x", pointerOffsetX + "px");
|
||||
root.style.setProperty("--pointer-offset-y", pointerOffsetY + "px");
|
||||
root.dataset.side = side;
|
||||
root.dataset.tone = currentKey === "cliff" ? "warning" : "default";
|
||||
}
|
||||
|
||||
function buildAnnotation(key, mode, animate) {
|
||||
const definition = ANNOTATIONS[key];
|
||||
if (!definition) return;
|
||||
const view = definition[mode === "top" ? "top" : "perspective"];
|
||||
clearAnnotation();
|
||||
annotationGroup = new THREE.Group();
|
||||
scene.add(annotationGroup);
|
||||
view.traces.forEach(function (trace, index) { createTrace(trace, definition.color, index, view.target); });
|
||||
createTarget(view.target, definition.color);
|
||||
updateCallout(definition, view);
|
||||
revealGeometries.forEach(function (item) {
|
||||
item.geometry.setDrawRange(0, animate && !reducedMotion.matches ? 0 : item.count);
|
||||
});
|
||||
delayedMarkers.forEach(function (item) { item.mesh.visible = !animate || reducedMotion.matches; });
|
||||
runnerDots.forEach(function (item) {
|
||||
const position = item.curve.getPointAt(item.phase);
|
||||
item.glow.position.copy(position);
|
||||
item.dot.position.copy(position);
|
||||
item.glow.visible = !animate || reducedMotion.matches;
|
||||
item.dot.visible = !animate || reducedMotion.matches;
|
||||
});
|
||||
revealStart = performance.now() - (animate && !reducedMotion.matches ? 0 : 760);
|
||||
}
|
||||
|
||||
function resize() {
|
||||
const width = Math.max(1, stage.clientWidth);
|
||||
const height = Math.max(1, stage.clientHeight);
|
||||
const nextAspect = width / height;
|
||||
const sizeChanged = Math.abs(nextAspect - aspect) > 0.001 || Math.abs(height - stageHeight) > 1;
|
||||
aspect = nextAspect;
|
||||
stageHeight = height;
|
||||
renderer.setSize(width, height, false);
|
||||
camera.left = -nextAspect;
|
||||
camera.right = nextAspect;
|
||||
camera.top = 1;
|
||||
camera.bottom = -1;
|
||||
camera.updateProjectionMatrix();
|
||||
if (sizeChanged && currentKey && !root.hidden) buildAnnotation(currentKey, currentMode, false);
|
||||
renderer.render(scene, camera);
|
||||
}
|
||||
|
||||
function renderFrame(now) {
|
||||
if (!currentKey || root.hidden || document.hidden) {
|
||||
animationFrame = 0;
|
||||
return;
|
||||
}
|
||||
const seconds = now * 0.001;
|
||||
const elapsed = (now - revealStart) / 760;
|
||||
animatedMaterials.forEach(function (material) {
|
||||
material.uniforms.uTime.value = seconds;
|
||||
material.uniforms.uMotion.value = reducedMotion.matches ? 0 : 1;
|
||||
});
|
||||
if (!reducedMotion.matches) {
|
||||
revealGeometries.forEach(function (item) {
|
||||
const progress = Math.max(0, Math.min(1, (elapsed - item.delay) / 0.62));
|
||||
const eased = 1 - Math.pow(1 - progress, 3);
|
||||
const count = Math.floor(item.count * eased / 6) * 6;
|
||||
item.geometry.setDrawRange(0, Math.max(0, count));
|
||||
});
|
||||
delayedMarkers.forEach(function (item) { item.mesh.visible = elapsed >= item.delay; });
|
||||
const motionSeconds = Math.max(0, (now - revealStart) * 0.001);
|
||||
runnerDots.forEach(function (item) {
|
||||
const visible = elapsed >= item.delay;
|
||||
item.glow.visible = visible;
|
||||
item.dot.visible = visible;
|
||||
if (!visible) return;
|
||||
const position = item.curve.getPointAt((item.phase + motionSeconds * 0.065) % 1);
|
||||
item.glow.position.copy(position);
|
||||
item.dot.position.copy(position);
|
||||
item.glow.scale.setScalar(1 + Math.sin(seconds * 3.6 + item.pulseOffset) * 0.14);
|
||||
});
|
||||
const pulse = 1 + Math.sin(seconds * 3.2) * 0.10;
|
||||
pulseMeshes.forEach(function (mesh) { mesh.scale.setScalar(pulse); });
|
||||
}
|
||||
renderer.render(scene, camera);
|
||||
if (reducedMotion.matches) {
|
||||
animationFrame = 0;
|
||||
return;
|
||||
}
|
||||
animationFrame = window.requestAnimationFrame(renderFrame);
|
||||
}
|
||||
|
||||
function startRendering() {
|
||||
if (!animationFrame) animationFrame = window.requestAnimationFrame(renderFrame);
|
||||
}
|
||||
|
||||
function show(key, mode) {
|
||||
if (!ANNOTATIONS[key]) return;
|
||||
window.clearTimeout(calloutTimer);
|
||||
window.clearTimeout(hideTimer);
|
||||
buildToken += 1;
|
||||
currentKey = key;
|
||||
currentMode = mode === "top" ? "top" : "perspective";
|
||||
root.hidden = false;
|
||||
root.classList.remove("is-visible", "is-callout-visible");
|
||||
resize();
|
||||
buildAnnotation(currentKey, currentMode, true);
|
||||
const token = buildToken;
|
||||
window.requestAnimationFrame(function () {
|
||||
if (token === buildToken) root.classList.add("is-visible");
|
||||
});
|
||||
calloutTimer = window.setTimeout(function () {
|
||||
if (token === buildToken) root.classList.add("is-callout-visible");
|
||||
}, reducedMotion.matches ? 0 : 430);
|
||||
startRendering();
|
||||
}
|
||||
|
||||
function hide(immediate) {
|
||||
buildToken += 1;
|
||||
currentKey = null;
|
||||
window.clearTimeout(calloutTimer);
|
||||
window.clearTimeout(hideTimer);
|
||||
root.classList.remove("is-visible", "is-callout-visible");
|
||||
if (immediate) {
|
||||
root.hidden = true;
|
||||
clearAnnotation();
|
||||
if (animationFrame) {
|
||||
window.cancelAnimationFrame(animationFrame);
|
||||
animationFrame = 0;
|
||||
}
|
||||
return;
|
||||
}
|
||||
hideTimer = window.setTimeout(function () {
|
||||
if (!currentKey) {
|
||||
root.hidden = true;
|
||||
clearAnnotation();
|
||||
}
|
||||
}, 220);
|
||||
}
|
||||
|
||||
if (typeof ResizeObserver === "function") {
|
||||
const observer = new ResizeObserver(resize);
|
||||
observer.observe(stage);
|
||||
} else {
|
||||
window.addEventListener("resize", resize, { passive: true });
|
||||
}
|
||||
const handleMotionPreference = function () {
|
||||
if (currentKey) {
|
||||
buildAnnotation(currentKey, currentMode, false);
|
||||
startRendering();
|
||||
}
|
||||
};
|
||||
if (typeof reducedMotion.addEventListener === "function") reducedMotion.addEventListener("change", handleMotionPreference);
|
||||
else if (typeof reducedMotion.addListener === "function") reducedMotion.addListener(handleMotionPreference);
|
||||
document.addEventListener("visibilitychange", function () {
|
||||
if (!document.hidden && currentKey) startRendering();
|
||||
});
|
||||
|
||||
window.TerrainAnnotation = {
|
||||
show: show,
|
||||
hide: hide,
|
||||
getState: function () {
|
||||
return { key: currentKey, mode: currentMode, renderer: "three-r" + THREE.REVISION, side: root.dataset.side || null };
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
Before Width: | Height: | Size: 2.6 MiB |
|
Before Width: | Height: | Size: 3.5 MiB |
@@ -1,333 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head><meta http-equiv="Content-Security-Policy" content="default-src 'self' file: data: blob:; connect-src 'self' file: data: blob:; img-src 'self' file: data: blob:; media-src 'self' file: data: blob:; font-src 'self' data:; style-src 'unsafe-inline' 'self' file: data:; script-src 'unsafe-inline' 'self' file: data: blob:; base-uri 'none'; form-action 'none'; frame-src 'none'; object-src 'none'; worker-src 'none'">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<meta name="theme-color" content="#d7ecff">
|
||||
<title>等高线地形——五大典型地貌判读</title>
|
||||
<link rel="stylesheet" href="assets/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<main class="app-shell" id="app-shell">
|
||||
<section class="media-stage" aria-label="等高线实验观察区">
|
||||
<video
|
||||
class="stage-media stage-video is-visible"
|
||||
id="experiment-video"
|
||||
src="assets/contour-formation.mp4"
|
||||
preload="auto"
|
||||
playsinline
|
||||
aria-label="等高线形成交线实验视频"
|
||||
></video>
|
||||
<img
|
||||
class="stage-media stage-image workflow-step-background"
|
||||
id="density-background"
|
||||
src="assets/density-background.png"
|
||||
alt="山体两侧以疏密不同的等高线对比坡度"
|
||||
decoding="async"
|
||||
>
|
||||
<img class="stage-media stage-image" id="landform-image" alt="" decoding="async">
|
||||
<img class="stage-media stage-image stage-top-image" id="landform-top-image" alt="" decoding="async">
|
||||
<div class="media-shade" aria-hidden="true"></div>
|
||||
<div class="scan-effect" id="scan-effect" aria-hidden="true">
|
||||
<span class="scan-grid"></span>
|
||||
<span class="scan-beam"></span>
|
||||
</div>
|
||||
<svg
|
||||
class="workflow-diagram workflow-diagram--projection"
|
||||
id="projection-diagram"
|
||||
viewBox="0 0 300 455"
|
||||
role="img"
|
||||
aria-labelledby="projection-diagram-title projection-diagram-description"
|
||||
hidden
|
||||
>
|
||||
<title id="projection-diagram-title">垂直投影</title>
|
||||
<desc id="projection-diagram-description">立体山体上的多层等高交线沿垂线投影到同一平面,形成平面等高线。</desc>
|
||||
<defs>
|
||||
<linearGradient id="projection-card-fill" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#ffffff" stop-opacity=".94"/>
|
||||
<stop offset="1" stop-color="#edf7ff" stop-opacity=".88"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="projection-beam" gradientUnits="userSpaceOnUse" x1="0" y1="60" x2="0" y2="340">
|
||||
<stop offset="0" stop-color="#26c7ff" stop-opacity=".18"/>
|
||||
<stop offset=".42" stop-color="#1089ff" stop-opacity=".72"/>
|
||||
<stop offset="1" stop-color="#126fff" stop-opacity=".96"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="projection-layer-stroke" x1="0" y1="0" x2="1" y2="0">
|
||||
<stop offset="0" stop-color="#3a7fff"/>
|
||||
<stop offset=".5" stop-color="#31d8ff"/>
|
||||
<stop offset="1" stop-color="#3a7fff"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="projection-plane-fill" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#eaf7ff" stop-opacity=".64"/>
|
||||
<stop offset="1" stop-color="#b9ddff" stop-opacity=".20"/>
|
||||
</linearGradient>
|
||||
<filter id="projection-card-shadow" x="-30%" y="-20%" width="160%" height="160%">
|
||||
<feDropShadow dx="0" dy="14" stdDeviation="14" flood-color="#052b50" flood-opacity=".20"/>
|
||||
</filter>
|
||||
<filter id="projection-glow" x="-80%" y="-80%" width="260%" height="260%">
|
||||
<feGaussianBlur stdDeviation="2.6" result="blur"/>
|
||||
<feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
|
||||
</filter>
|
||||
<marker id="projection-arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="6" markerHeight="6" orient="auto">
|
||||
<path d="M1 1 7 4 1 7" fill="none" stroke="#147dff" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect class="diagram-card" x="3" y="3" width="294" height="449" rx="17" fill="url(#projection-card-fill)" filter="url(#projection-card-shadow)"/>
|
||||
<text class="diagram-heading" x="20" y="38">垂直投影</text>
|
||||
<g class="projection-stack" filter="url(#projection-glow)">
|
||||
<ellipse class="projection-layer" style="--i:0" cx="150" cy="64" rx="43" ry="10"/>
|
||||
<ellipse class="projection-layer" style="--i:1" cx="150" cy="84" rx="58" ry="12"/>
|
||||
<ellipse class="projection-layer" style="--i:2" cx="150" cy="105" rx="75" ry="13"/>
|
||||
<ellipse class="projection-layer" style="--i:3" cx="150" cy="126" rx="94" ry="15"/>
|
||||
<ellipse class="projection-layer" style="--i:4" cx="150" cy="148" rx="111" ry="16"/>
|
||||
<ellipse class="projection-layer" style="--i:5" cx="150" cy="170" rx="126" ry="18"/>
|
||||
</g>
|
||||
<g class="projection-columns">
|
||||
<line class="projection-column" x1="49" y1="166" x2="49" y2="347" marker-end="url(#projection-arrow)"/>
|
||||
<line class="projection-column" x1="65" y1="154" x2="65" y2="331" marker-end="url(#projection-arrow)"/>
|
||||
<line class="projection-column" x1="83" y1="139" x2="83" y2="323" marker-end="url(#projection-arrow)"/>
|
||||
<line class="projection-column" x1="103" y1="121" x2="103" y2="331" marker-end="url(#projection-arrow)"/>
|
||||
<line class="projection-column" x1="125" y1="101" x2="125" y2="338" marker-end="url(#projection-arrow)"/>
|
||||
<line class="projection-column" x1="150" y1="73" x2="150" y2="347" marker-end="url(#projection-arrow)"/>
|
||||
<line class="projection-column" x1="175" y1="101" x2="175" y2="338" marker-end="url(#projection-arrow)"/>
|
||||
<line class="projection-column" x1="197" y1="121" x2="197" y2="331" marker-end="url(#projection-arrow)"/>
|
||||
<line class="projection-column" x1="217" y1="139" x2="217" y2="323" marker-end="url(#projection-arrow)"/>
|
||||
<line class="projection-column" x1="235" y1="154" x2="235" y2="331" marker-end="url(#projection-arrow)"/>
|
||||
<line class="projection-column" x1="251" y1="166" x2="251" y2="347" marker-end="url(#projection-arrow)"/>
|
||||
<g class="projection-crossings" filter="url(#projection-glow)">
|
||||
<circle cx="65" cy="154" r="2.4"/><circle cx="83" cy="139" r="2.4"/><circle cx="103" cy="121" r="2.4"/>
|
||||
<circle cx="125" cy="101" r="2.4"/><circle cx="150" cy="73" r="2.4"/><circle cx="175" cy="101" r="2.4"/>
|
||||
<circle cx="197" cy="121" r="2.4"/><circle cx="217" cy="139" r="2.4"/><circle cx="235" cy="154" r="2.4"/>
|
||||
</g>
|
||||
</g>
|
||||
<g class="projection-plane">
|
||||
<polygon points="34,300 266,300 285,395 15,395" fill="url(#projection-plane-fill)" stroke="#7fa6d4" stroke-width="1.1"/>
|
||||
<path class="projection-grid" d="M30 318h240M26 340h248M22 365h256M19 383h262M63 300 48 395M91 300l-8 95M121 300l-3 95M150 300v95M179 300l3 95M209 300l8 95M237 300l15 95"/>
|
||||
<ellipse class="projection-contour" style="--i:0" cx="150" cy="347" rx="101" ry="43"/>
|
||||
<ellipse class="projection-contour" style="--i:1" cx="150" cy="347" rx="79" ry="34"/>
|
||||
<ellipse class="projection-contour" style="--i:2" cx="150" cy="347" rx="59" ry="27"/>
|
||||
<ellipse class="projection-contour" style="--i:3" cx="150" cy="347" rx="42" ry="20"/>
|
||||
<ellipse class="projection-contour" style="--i:4" cx="150" cy="347" rx="24" ry="12"/>
|
||||
<ellipse class="projection-contour" style="--i:5" cx="150" cy="347" rx="11" ry="6"/>
|
||||
<g class="projection-landings" filter="url(#projection-glow)">
|
||||
<circle cx="49" cy="347" r="2.8"/><circle cx="65" cy="331" r="2.8"/><circle cx="83" cy="323" r="2.8"/>
|
||||
<circle cx="103" cy="331" r="2.8"/><circle cx="125" cy="338" r="2.8"/><circle cx="150" cy="347" r="2.8"/>
|
||||
<circle cx="175" cy="338" r="2.8"/><circle cx="197" cy="331" r="2.8"/><circle cx="217" cy="323" r="2.8"/>
|
||||
<circle cx="235" cy="331" r="2.8"/><circle cx="251" cy="347" r="2.8"/>
|
||||
</g>
|
||||
</g>
|
||||
<text class="diagram-footer" x="150" y="431" text-anchor="middle">立体交线 → 平面等高线</text>
|
||||
</svg>
|
||||
|
||||
<svg
|
||||
class="workflow-diagram workflow-diagram--density"
|
||||
id="density-diagram"
|
||||
viewBox="0 0 368 283"
|
||||
role="img"
|
||||
aria-labelledby="density-diagram-title density-diagram-description"
|
||||
hidden
|
||||
>
|
||||
<title id="density-diagram-title">疏密判坡</title>
|
||||
<desc id="density-diagram-description">等高线稀疏的一侧坡缓,等高线密集的一侧坡陡。</desc>
|
||||
<defs>
|
||||
<linearGradient id="density-card-fill" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#ffffff" stop-opacity=".94"/>
|
||||
<stop offset="1" stop-color="#edf7ff" stop-opacity=".88"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="density-contour-stroke" gradientUnits="userSpaceOnUse" x1="95" y1="0" x2="320" y2="0">
|
||||
<stop offset="0" stop-color="#1587ff"/>
|
||||
<stop offset=".50" stop-color="#3e95ff"/>
|
||||
<stop offset=".64" stop-color="#f0a43d"/>
|
||||
<stop offset="1" stop-color="#ff8517"/>
|
||||
</linearGradient>
|
||||
<filter id="density-card-shadow" x="-30%" y="-35%" width="160%" height="180%">
|
||||
<feDropShadow dx="0" dy="14" stdDeviation="14" flood-color="#052b50" flood-opacity=".20"/>
|
||||
</filter>
|
||||
<filter id="density-dot-glow" x="-120%" y="-120%" width="340%" height="340%">
|
||||
<feGaussianBlur stdDeviation="3" result="blur"/>
|
||||
<feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
|
||||
</filter>
|
||||
<path id="density-contour-shape" d="M342 164C342 111 309 75 258 65c-32-6-49-3-80-12-27-7-45 8-67 13-27 6-47 4-64 18-21 17-29 41-24 67 5 23 25 33 53 33 29 1 42 24 67 42 25 19 59 29 107 27 55-2 90-35 92-89Z"/>
|
||||
</defs>
|
||||
<rect class="diagram-card" x="3" y="3" width="362" height="277" rx="17" fill="url(#density-card-fill)" filter="url(#density-card-shadow)"/>
|
||||
<text class="diagram-heading" x="20" y="38">疏密判坡</text>
|
||||
<g class="density-contours">
|
||||
<use class="density-contour" style="--i:0" href="#density-contour-shape"/>
|
||||
<use class="density-contour" style="--i:1" href="#density-contour-shape" transform="translate(273 164) scale(.84) translate(-273 -164)"/>
|
||||
<use class="density-contour" style="--i:2" href="#density-contour-shape" transform="translate(273 164) scale(.70) translate(-273 -164)"/>
|
||||
<use class="density-contour" style="--i:3" href="#density-contour-shape" transform="translate(273 164) scale(.58) translate(-273 -164)"/>
|
||||
<use class="density-contour" style="--i:4" href="#density-contour-shape" transform="translate(273 164) scale(.47) translate(-273 -164)"/>
|
||||
<use class="density-contour" style="--i:5" href="#density-contour-shape" transform="translate(273 164) scale(.37) translate(-273 -164)"/>
|
||||
<use class="density-contour" style="--i:6" href="#density-contour-shape" transform="translate(273 164) scale(.29) translate(-273 -164)"/>
|
||||
<use class="density-contour" style="--i:7" href="#density-contour-shape" transform="translate(273 164) scale(.22) translate(-273 -164)"/>
|
||||
<use class="density-contour" style="--i:8" href="#density-contour-shape" transform="translate(273 164) scale(.15) translate(-273 -164)"/>
|
||||
</g>
|
||||
<g class="density-callout density-callout--gentle">
|
||||
<rect x="14" y="211" width="116" height="37" rx="8"/>
|
||||
<path d="M60 190 52 207"/>
|
||||
<circle cx="60" cy="190" r="7"/>
|
||||
<text x="22" y="236">线疏 · 坡缓</text>
|
||||
</g>
|
||||
<g class="density-callout density-callout--steep">
|
||||
<rect x="257" y="50" width="100" height="37" rx="8"/>
|
||||
<path d="M293 125 307 88"/>
|
||||
<circle cx="293" cy="125" r="7"/>
|
||||
<text x="266" y="75">线密 · 坡陡</text>
|
||||
</g>
|
||||
</svg>
|
||||
<div class="terrain-annotation" id="terrain-annotation" hidden>
|
||||
<canvas id="terrain-annotation-canvas" aria-hidden="true"></canvas>
|
||||
<svg class="terrain-callout-connector" id="terrain-callout-connector" aria-hidden="true" preserveAspectRatio="none">
|
||||
<polygon id="terrain-callout-connector-shape"></polygon>
|
||||
</svg>
|
||||
<div class="terrain-callout" id="terrain-callout" role="status" aria-live="polite">
|
||||
<span class="terrain-callout-kicker">动态判读</span>
|
||||
<strong id="terrain-callout-title"></strong>
|
||||
<p id="terrain-callout-copy"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="media-loading" id="media-loading" role="status">
|
||||
<span class="loading-ring"></span>
|
||||
<span>实验影像加载中</span>
|
||||
</div>
|
||||
<div class="media-label" id="media-label" aria-live="polite">
|
||||
<span class="media-label-kicker" id="media-label-kicker">实验流程</span>
|
||||
<strong id="media-label-title">形成交线与垂直投影</strong>
|
||||
<small id="media-label-copy">点击“开始实验”,直接在当前画面播放形成交线视频</small>
|
||||
</div>
|
||||
<div class="video-progress" aria-hidden="true"><span id="video-progress-fill"></span></div>
|
||||
</section>
|
||||
|
||||
<header class="topbar">
|
||||
<div class="heading-group">
|
||||
<span class="subject-chip">高中地理</span>
|
||||
<div class="heading-copy">
|
||||
<h1>等高线地形——五大典型地貌判读</h1>
|
||||
<p>观察水平切割、垂直投影与等高线地貌特征</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-actions">
|
||||
<button class="glass-button" id="workflow-open" type="button">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5.5A3.5 3.5 0 0 1 7.5 2H11v17H7.5A3.5 3.5 0 0 0 4 22V5.5Zm16 0A3.5 3.5 0 0 0 16.5 2H13v17h3.5a3.5 3.5 0 0 1 3.5 3V5.5Z"/></svg>
|
||||
<span>实验流程</span>
|
||||
</button>
|
||||
<button class="glass-button" id="fullscreen-button" type="button">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M8 3H3v5M16 3h5v5M21 16v5h-5M8 21H3v-5"/></svg>
|
||||
<span id="fullscreen-label">全屏</span>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<aside class="control-panel" aria-labelledby="panel-title">
|
||||
<div class="panel-scroll">
|
||||
<section class="flow-section">
|
||||
<div class="section-heading">
|
||||
<h2 id="panel-title">实验流程 · <span id="flow-count">1/4</span></h2>
|
||||
<button class="panel-close" id="panel-close" type="button" aria-label="收起观察面板">×</button>
|
||||
</div>
|
||||
<div class="flow-track" id="flow-track">
|
||||
<span class="flow-line" aria-hidden="true"><i id="flow-line-fill"></i></span>
|
||||
<button class="flow-step is-active" type="button" data-step="0" aria-label="查看步骤一:等高切割">
|
||||
<span class="step-dot">1</span><span class="step-name">等高切割</span>
|
||||
</button>
|
||||
<button class="flow-step" type="button" data-step="1" aria-label="查看步骤二:形成交线">
|
||||
<span class="step-dot">2</span><span class="step-name">形成交线</span>
|
||||
</button>
|
||||
<button class="flow-step" type="button" data-step="2" aria-label="查看步骤三:投影成图">
|
||||
<span class="step-dot">3</span><span class="step-name">投影成图</span>
|
||||
</button>
|
||||
<button class="flow-step" type="button" data-step="3" aria-label="查看步骤四:疏密判坡">
|
||||
<span class="step-dot">4</span><span class="step-name">疏密判坡</span>
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="glass-card task-card" aria-labelledby="task-title">
|
||||
<span class="card-eyebrow">当前步骤</span>
|
||||
<h3 id="task-title">等高切割</h3>
|
||||
<p id="task-description">观察水平面与山体在同一海拔相交,形成连续闭合线。</p>
|
||||
<div class="fixed-condition" aria-label="实验固定条件">
|
||||
<span><i></i>水平切面</span>
|
||||
<strong>等高距 d = 10 m</strong>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="glass-card terrain-card" aria-labelledby="terrain-title">
|
||||
<div class="card-title-row">
|
||||
<span class="card-eyebrow" id="terrain-title">典型地貌</span>
|
||||
<button class="text-action" id="return-experiment" type="button" hidden>返回实验</button>
|
||||
</div>
|
||||
<div class="terrain-tabs" id="terrain-tabs" role="list" aria-label="五大典型地貌">
|
||||
<button class="terrain-tab" type="button" data-landform="peak" aria-pressed="false">
|
||||
<svg viewBox="0 0 42 34" aria-hidden="true"><path d="M4 29 16 9l5 8 5-12 12 24H4Z"/><path d="m20 19 4 6h-8l4-6Z" class="solid"/></svg>
|
||||
<span>山峰</span>
|
||||
</button>
|
||||
<button class="terrain-tab" type="button" data-landform="ridge" aria-pressed="false">
|
||||
<svg viewBox="0 0 42 34" aria-hidden="true"><path d="M3 29 12 9l7 5 7-10 13 25"/><path d="M10 28c5-7 9-10 14-11"/></svg>
|
||||
<span>山脊</span>
|
||||
</button>
|
||||
<button class="terrain-tab" type="button" data-landform="valley" aria-pressed="false">
|
||||
<svg viewBox="0 0 42 34" aria-hidden="true"><path d="M4 6c8 4 12 12 17 24C26 18 30 10 38 6"/><path d="M21 11v19" class="accent"/></svg>
|
||||
<span>山谷</span>
|
||||
</button>
|
||||
<button class="terrain-tab" type="button" data-landform="saddle" aria-pressed="false">
|
||||
<svg viewBox="0 0 42 34" aria-hidden="true"><path d="M4 25V8h10l7 8 7-8h10v17"/><path d="M14 9c0 6 2 9 7 9s7-3 7-9"/></svg>
|
||||
<span>鞍部</span>
|
||||
</button>
|
||||
<button class="terrain-tab" type="button" data-landform="cliff" aria-pressed="false">
|
||||
<svg viewBox="0 0 42 34" aria-hidden="true"><path d="M7 29V5h17l10 8v16"/><path d="M11 11h18M11 16h21M11 21h22"/></svg>
|
||||
<span>陡崖</span>
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="glass-card observation-card" aria-labelledby="observation-heading">
|
||||
<div class="observation-copy">
|
||||
<span class="card-eyebrow">当前观察</span>
|
||||
<h3 id="observation-heading">实验演示</h3>
|
||||
<p id="observation-summary">点击开始实验,在当前背景中观察等高切割、交线形成与垂直投影。</p>
|
||||
<ul class="feature-list" id="feature-list">
|
||||
<li>同一条等高线上海拔相等</li>
|
||||
<li>相邻等高线高差保持一致</li>
|
||||
</ul>
|
||||
</div>
|
||||
<button class="top-view-card" id="top-view-toggle" type="button" disabled aria-pressed="false">
|
||||
<span id="top-view-toggle-label">俯视图</span>
|
||||
<small id="top-view-toggle-hint">选择地貌后切换</small>
|
||||
<img id="top-view-thumbnail" alt="" decoding="async" hidden>
|
||||
</button>
|
||||
</section>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<button class="panel-open" id="panel-open" type="button" aria-label="展开观察面板" hidden>
|
||||
<span></span><span></span><span></span>
|
||||
</button>
|
||||
|
||||
<div class="experiment-actions">
|
||||
<button class="primary-button" id="play-button" type="button">
|
||||
<span class="round-icon" id="play-icon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24"><path d="m9 6 9 6-9 6V6Z"/></svg>
|
||||
</span>
|
||||
<span id="play-label">开始实验</span>
|
||||
</button>
|
||||
<button class="glass-button reset-button" id="reset-button" type="button">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 4v6h6M5.4 15.5A8 8 0 1 0 6 7"/></svg>
|
||||
<span>重置</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="hint-bar" id="hint-bar">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 10v6M12 7h.01"/></svg>
|
||||
<span id="hint-text">点击“开始实验”,观看形成交线视频</span>
|
||||
</div>
|
||||
|
||||
<div class="toast" id="toast" role="status" aria-live="polite"></div>
|
||||
</main>
|
||||
<script src="assets/three.min.js"></script>
|
||||
<script src="assets/terrain-annotation.js"></script>
|
||||
<script src="assets/app.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,22 +0,0 @@
|
||||
const fs=require('fs'), crypto=require('crypto'), zlib=require('zlib');
|
||||
const src=fs.readFileSync('/Users/lixi/Downloads/等高线及地形部位演示.html','utf8');
|
||||
const s=[149,41,67,16,174,26,113,114,74,243,246,109,144,165,184,62,44,90,160,205,187,41,94,251,154,141,140,41,190,9,150,47];
|
||||
const m=[25,52,111,200,213,124,16,129,135,96,58,137,246,127,113,78,155,253,179,217,3,229,100,139,222,29,144,127,131,67,46,226];
|
||||
const k=Buffer.from(s.map((v,i)=>v^m[i]));
|
||||
const v=Buffer.from([103,22,141,67,136,169,180,253,245,91,7,193]);
|
||||
const a=Buffer.from('QLAB|contour-landform-reading|__QLAB_LICENSE_ID__|offline-v1','utf8');
|
||||
// extract base64 payload from atob("....")
|
||||
const mm=src.match(/atob\("([A-Za-z0-9+/=]+)"\)/);
|
||||
if(!mm){console.error('no payload');process.exit(1);}
|
||||
const b=Buffer.from(mm[1],'base64');
|
||||
console.error('key',k.length,'iv',v.length,'aad',a.length,'cipher',b.length);
|
||||
const tag=b.subarray(b.length-16), ct=b.subarray(0,b.length-16);
|
||||
const d=crypto.createDecipheriv('aes-256-gcm',k,v);
|
||||
d.setAAD(a);
|
||||
d.setAuthTag(tag);
|
||||
let plain=Buffer.concat([d.update(ct),d.final()]);
|
||||
console.error('decrypted gzip bytes',plain.length);
|
||||
const html=zlib.gunzipSync(plain);
|
||||
console.error('decompressed html bytes',html.length);
|
||||
fs.writeFileSync('/Users/lixi/Downloads/GC#/课件_解密.html',html);
|
||||
console.error('written to 课件_解密.html');
|
||||
@@ -1,671 +0,0 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
const THREE = window.THREE;
|
||||
const root = document.getElementById("terrain-annotation");
|
||||
const canvas = document.getElementById("terrain-annotation-canvas");
|
||||
const callout = document.getElementById("terrain-callout");
|
||||
const calloutTitle = document.getElementById("terrain-callout-title");
|
||||
const calloutCopy = document.getElementById("terrain-callout-copy");
|
||||
const calloutConnector = document.getElementById("terrain-callout-connector");
|
||||
const calloutConnectorShape = document.getElementById("terrain-callout-connector-shape");
|
||||
const stage = document.querySelector(".media-stage");
|
||||
|
||||
if (!THREE || !root || !canvas || !callout || !calloutTitle || !calloutCopy || !calloutConnector || !calloutConnectorShape || !stage) return;
|
||||
|
||||
const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)");
|
||||
const compactLayout = window.matchMedia("(max-width: 680px)");
|
||||
const SOURCE_ASPECT = 1586 / 992;
|
||||
const GUIDE_COLOR = "#f6b21a";
|
||||
const OUTLINE_COLOR = 0x082742;
|
||||
const TARGET_OUTER_RADIUS = 20;
|
||||
const ROLE_STYLES = {
|
||||
main: { width: 8, outline: 14, opacity: 1, dashed: 0, dashCount: 1, dashRatio: 1, dashSpeed: 0 },
|
||||
branch: { width: 6.5, outline: 11.5, opacity: 1, dashed: 1, dashCount: 4, dashRatio: 0.62, dashSpeed: 0 },
|
||||
ring: { width: 6, outline: 10.5, opacity: 1, dashed: 0, dashCount: 1, dashRatio: 1, dashSpeed: 0 },
|
||||
contour: { width: 4.5, outline: 8.5, opacity: 1, dashed: 0, dashCount: 1, dashRatio: 1, dashSpeed: 0 },
|
||||
bracket: { width: 5.5, outline: 10, opacity: 1, dashed: 1, dashCount: 4, dashRatio: 0.62, dashSpeed: 0 }
|
||||
};
|
||||
|
||||
const ANNOTATIONS = {
|
||||
peak: {
|
||||
title: "山峰 · 最高中心",
|
||||
copy: "闭合等高线由外向内数值升高,中心位置为山峰。",
|
||||
color: GUIDE_COLOR,
|
||||
perspective: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.628, 0.575], [0.650, 0.455], [0.670, 0.280], [0.709, 0.143]] }
|
||||
],
|
||||
target: [0.709, 0.143],
|
||||
placement: { side: "right", dx: 34, dy: 24 }
|
||||
},
|
||||
top: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.575, 0.645], [0.610, 0.555], [0.645, 0.485], [0.668, 0.449]] }
|
||||
],
|
||||
target: [0.668, 0.449],
|
||||
placement: { side: "right", dx: 34, dy: -10 }
|
||||
}
|
||||
},
|
||||
ridge: {
|
||||
title: "山脊 · 分水脊线",
|
||||
copy: "等高线向低处凸出,脊线两侧水流向外分开。",
|
||||
color: GUIDE_COLOR,
|
||||
perspective: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.765, 0.245], [0.720, 0.365], [0.675, 0.500], [0.625, 0.645]] },
|
||||
{ role: "branch", arrow: true, points: [[0.675, 0.500], [0.635, 0.535], [0.595, 0.565]] },
|
||||
{ role: "branch", arrow: true, points: [[0.675, 0.500], [0.715, 0.535], [0.755, 0.570]] }
|
||||
],
|
||||
target: [0.675, 0.500],
|
||||
placement: { side: "left", dx: -34, dy: -85 }
|
||||
},
|
||||
top: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.690, 0.270], [0.655, 0.395], [0.620, 0.520], [0.590, 0.650]] },
|
||||
{ role: "branch", arrow: true, points: [[0.620, 0.520], [0.582, 0.545], [0.548, 0.575]] },
|
||||
{ role: "branch", arrow: true, points: [[0.620, 0.520], [0.658, 0.548], [0.695, 0.580]] }
|
||||
],
|
||||
target: [0.620, 0.520],
|
||||
placement: { side: "left", dx: -34, dy: -85 }
|
||||
}
|
||||
},
|
||||
valley: {
|
||||
title: "山谷 · 汇水谷线",
|
||||
copy: "V形尖端指向上游,水流沿谷底向下游汇集。",
|
||||
color: GUIDE_COLOR,
|
||||
perspective: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.690, 0.410], [0.678, 0.520], [0.676, 0.550], [0.660, 0.650], [0.640, 0.790]] },
|
||||
{ role: "branch", arrow: true, points: [[0.590, 0.560], [0.630, 0.560], [0.676, 0.550]] },
|
||||
{ role: "branch", arrow: true, points: [[0.750, 0.560], [0.710, 0.560], [0.676, 0.550]] }
|
||||
],
|
||||
target: [0.676, 0.550],
|
||||
placement: { side: "right", dx: 34, dy: -80 }
|
||||
},
|
||||
top: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.600, 0.355], [0.565, 0.470], [0.525, 0.585], [0.470, 0.690]] },
|
||||
{ role: "branch", arrow: true, points: [[0.455, 0.520], [0.490, 0.555], [0.525, 0.585]] },
|
||||
{ role: "branch", arrow: true, points: [[0.600, 0.510], [0.565, 0.550], [0.525, 0.585]] }
|
||||
],
|
||||
target: [0.525, 0.585],
|
||||
placement: { side: "right", dx: 34, dy: 70 }
|
||||
}
|
||||
},
|
||||
saddle: {
|
||||
title: "鞍部 · 两峰低口",
|
||||
copy: "两组闭合等高线之间的低口,就是鞍部。",
|
||||
color: GUIDE_COLOR,
|
||||
perspective: {
|
||||
traces: [
|
||||
{ role: "main", points: [[0.625, 0.425], [0.675, 0.465], [0.725, 0.420]] }
|
||||
],
|
||||
target: [0.675, 0.465],
|
||||
placement: { side: "below", dx: 0, dy: 38 }
|
||||
},
|
||||
top: {
|
||||
traces: [
|
||||
{ role: "main", points: [[0.515, 0.475], [0.560, 0.505], [0.610, 0.475]] }
|
||||
],
|
||||
target: [0.560, 0.505],
|
||||
placement: { side: "below", dx: 0, dy: 38 }
|
||||
}
|
||||
},
|
||||
cliff: {
|
||||
title: "陡崖 · 密集重合带",
|
||||
copy: "等高线极密集或重合,表示此处坡度陡峭。",
|
||||
color: GUIDE_COLOR,
|
||||
perspective: {
|
||||
traces: [
|
||||
{ role: "contour", points: [[0.535, 0.345], [0.565, 0.352], [0.590, 0.360]] },
|
||||
{ role: "contour", points: [[0.532, 0.390], [0.562, 0.398], [0.590, 0.405]] },
|
||||
{ role: "contour", points: [[0.530, 0.435], [0.560, 0.443], [0.590, 0.452]] },
|
||||
{ role: "main", arrow: true, points: [[0.595, 0.305], [0.590, 0.405], [0.598, 0.510]] }
|
||||
],
|
||||
target: [0.590, 0.405],
|
||||
placement: { side: "right", dx: 34, dy: 0 }
|
||||
},
|
||||
top: {
|
||||
traces: [
|
||||
{ role: "main", arrow: true, points: [[0.535, 0.560], [0.585, 0.520], [0.635, 0.480]] },
|
||||
{ role: "contour", points: [[0.555, 0.455], [0.575, 0.515], [0.595, 0.575]] },
|
||||
{ role: "contour", points: [[0.590, 0.435], [0.610, 0.495], [0.630, 0.555]] }
|
||||
],
|
||||
target: [0.585, 0.520],
|
||||
placement: { side: "below", dx: 0, dy: 70 }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
let renderer;
|
||||
let scene;
|
||||
let camera;
|
||||
let annotationGroup;
|
||||
let aspect = 1;
|
||||
let stageHeight = 1;
|
||||
let animationFrame = 0;
|
||||
let revealStart = 0;
|
||||
let calloutTimer = 0;
|
||||
let hideTimer = 0;
|
||||
let currentKey = null;
|
||||
let currentMode = "perspective";
|
||||
let buildToken = 0;
|
||||
let animatedMaterials = [];
|
||||
let revealGeometries = [];
|
||||
let pulseMeshes = [];
|
||||
let delayedMarkers = [];
|
||||
let runnerDots = [];
|
||||
|
||||
try {
|
||||
renderer = new THREE.WebGLRenderer({ canvas: canvas, alpha: true, antialias: true, powerPreference: "high-performance" });
|
||||
renderer.setClearColor(0x000000, 0);
|
||||
renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 1.75));
|
||||
scene = new THREE.Scene();
|
||||
camera = new THREE.OrthographicCamera(-1, 1, 1, -1, 0.1, 10);
|
||||
camera.position.z = 4;
|
||||
} catch (error) {
|
||||
root.dataset.renderer = "unavailable";
|
||||
return;
|
||||
}
|
||||
|
||||
function sourceToScreen(point) {
|
||||
let renderedWidth = 1;
|
||||
let renderedHeight = 1;
|
||||
let offsetX = 0;
|
||||
let offsetY = 0;
|
||||
if (compactLayout.matches) {
|
||||
if (aspect >= SOURCE_ASPECT) {
|
||||
renderedWidth = SOURCE_ASPECT / aspect;
|
||||
offsetX = (1 - renderedWidth) / 2;
|
||||
} else {
|
||||
renderedHeight = aspect / SOURCE_ASPECT;
|
||||
offsetY = (1 - renderedHeight) / 2;
|
||||
}
|
||||
} else {
|
||||
if (aspect >= SOURCE_ASPECT) {
|
||||
renderedHeight = aspect / SOURCE_ASPECT;
|
||||
offsetY = (1 - renderedHeight) / 2;
|
||||
} else {
|
||||
renderedWidth = SOURCE_ASPECT / aspect;
|
||||
offsetX = (1 - renderedWidth) / 2;
|
||||
}
|
||||
}
|
||||
return [offsetX + point[0] * renderedWidth, offsetY + point[1] * renderedHeight];
|
||||
}
|
||||
|
||||
function toWorld(point) {
|
||||
const screenPoint = sourceToScreen(point);
|
||||
return new THREE.Vector3((screenPoint[0] - 0.5) * 2 * aspect, (0.5 - screenPoint[1]) * 2, 0);
|
||||
}
|
||||
|
||||
function getVisualScale() {
|
||||
return Math.max(0.72, Math.min(1, stage.clientWidth / 1200));
|
||||
}
|
||||
|
||||
function disposeMaterial(material) {
|
||||
if (Array.isArray(material)) material.forEach(disposeMaterial);
|
||||
else if (material && typeof material.dispose === "function") material.dispose();
|
||||
}
|
||||
|
||||
function clearAnnotation() {
|
||||
if (!annotationGroup) return;
|
||||
annotationGroup.traverse(function (object) {
|
||||
if (object.geometry) object.geometry.dispose();
|
||||
if (object.material) disposeMaterial(object.material);
|
||||
});
|
||||
scene.remove(annotationGroup);
|
||||
annotationGroup = null;
|
||||
animatedMaterials = [];
|
||||
revealGeometries = [];
|
||||
pulseMeshes = [];
|
||||
delayedMarkers = [];
|
||||
runnerDots = [];
|
||||
}
|
||||
|
||||
function createRibbonGeometry(samples, widthInPixels) {
|
||||
const positions = [];
|
||||
const uvs = [];
|
||||
const indices = [];
|
||||
const halfWidth = widthInPixels / Math.max(1, stageHeight);
|
||||
samples.forEach(function (point, index) {
|
||||
const previous = samples[Math.max(0, index - 1)];
|
||||
const next = samples[Math.min(samples.length - 1, index + 1)];
|
||||
const tangentX = next.x - previous.x;
|
||||
const tangentY = next.y - previous.y;
|
||||
const length = Math.hypot(tangentX, tangentY) || 1;
|
||||
const normalX = -tangentY / length;
|
||||
const normalY = tangentX / length;
|
||||
const progress = index / Math.max(1, samples.length - 1);
|
||||
positions.push(point.x + normalX * halfWidth, point.y + normalY * halfWidth, point.z);
|
||||
positions.push(point.x - normalX * halfWidth, point.y - normalY * halfWidth, point.z);
|
||||
uvs.push(progress, 0, progress, 1);
|
||||
if (index < samples.length - 1) {
|
||||
const base = index * 2;
|
||||
indices.push(base, base + 1, base + 2, base + 1, base + 3, base + 2);
|
||||
}
|
||||
});
|
||||
const geometry = new THREE.BufferGeometry();
|
||||
geometry.setAttribute("position", new THREE.Float32BufferAttribute(positions, 3));
|
||||
geometry.setAttribute("uv", new THREE.Float32BufferAttribute(uvs, 2));
|
||||
geometry.setIndex(indices);
|
||||
geometry.computeBoundingSphere();
|
||||
return geometry;
|
||||
}
|
||||
|
||||
function makeLineMaterial(color, style) {
|
||||
return new THREE.ShaderMaterial({
|
||||
uniforms: {
|
||||
uTime: { value: 0 },
|
||||
uColor: { value: new THREE.Color(color) },
|
||||
uOpacity: { value: style.opacity },
|
||||
uMotion: { value: reducedMotion.matches ? 0 : 1 },
|
||||
uDashed: { value: style.dashed },
|
||||
uDashCount: { value: style.dashCount },
|
||||
uDashRatio: { value: style.dashRatio },
|
||||
uDashSpeed: { value: style.dashSpeed }
|
||||
},
|
||||
vertexShader: [
|
||||
"varying vec2 vUv;",
|
||||
"void main() {",
|
||||
" vUv = uv;",
|
||||
" gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);",
|
||||
"}"
|
||||
].join("\n"),
|
||||
fragmentShader: [
|
||||
"uniform float uTime;",
|
||||
"uniform vec3 uColor;",
|
||||
"uniform float uOpacity;",
|
||||
"uniform float uMotion;",
|
||||
"uniform float uDashed;",
|
||||
"uniform float uDashCount;",
|
||||
"uniform float uDashRatio;",
|
||||
"uniform float uDashSpeed;",
|
||||
"varying vec2 vUv;",
|
||||
"void main() {",
|
||||
" float edge = 1.0 - smoothstep(0.43, 0.50, abs(vUv.y - 0.5));",
|
||||
" float dashPhase = fract(vUv.x * uDashCount - uTime * uDashSpeed * uMotion);",
|
||||
" float dash = 1.0 - smoothstep(uDashRatio - 0.04, uDashRatio + 0.04, dashPhase);",
|
||||
" float pattern = mix(1.0, dash, uDashed);",
|
||||
" float alpha = uOpacity * edge * pattern;",
|
||||
" gl_FragColor = vec4(uColor, alpha);",
|
||||
"}"
|
||||
].join("\n"),
|
||||
transparent: true,
|
||||
depthTest: false,
|
||||
depthWrite: false,
|
||||
blending: THREE.NormalBlending
|
||||
});
|
||||
}
|
||||
|
||||
function createArrow(points, color, sizeInPixels, delay, stopBeforePixels) {
|
||||
const end = toWorld(points[points.length - 1]);
|
||||
const before = toWorld(points[points.length - 2]);
|
||||
const direction = end.clone().sub(before).normalize();
|
||||
const angle = Math.atan2(direction.y, direction.x);
|
||||
const unit = 2 / Math.max(1, stageHeight);
|
||||
const visualScale = getVisualScale();
|
||||
const scaledSize = sizeInPixels * visualScale;
|
||||
const arrowPosition = end.clone().addScaledVector(direction, -(stopBeforePixels || 0) * visualScale * unit);
|
||||
function createArrowGeometry(pixelSize) {
|
||||
const size = pixelSize * unit;
|
||||
const geometry = new THREE.BufferGeometry();
|
||||
geometry.setAttribute("position", new THREE.Float32BufferAttribute([
|
||||
0, 0, 0,
|
||||
-size * 1.90, size * 0.88, 0,
|
||||
-size * 1.90, -size * 0.88, 0
|
||||
], 3));
|
||||
return geometry;
|
||||
}
|
||||
const outlineMaterial = new THREE.MeshBasicMaterial({ color: OUTLINE_COLOR, transparent: true, opacity: 1, depthTest: false, depthWrite: false });
|
||||
const material = new THREE.MeshBasicMaterial({ color: color, transparent: true, opacity: 1, depthTest: false, depthWrite: false });
|
||||
const outline = new THREE.Mesh(createArrowGeometry(scaledSize + 2.5 * visualScale), outlineMaterial);
|
||||
const arrow = new THREE.Mesh(createArrowGeometry(scaledSize), material);
|
||||
outline.position.copy(arrowPosition).addScaledVector(direction, 1.25 * visualScale * unit);
|
||||
arrow.position.copy(arrowPosition);
|
||||
outline.rotation.z = angle;
|
||||
arrow.rotation.z = angle;
|
||||
outline.renderOrder = 40;
|
||||
arrow.renderOrder = 41;
|
||||
annotationGroup.add(outline, arrow);
|
||||
delayedMarkers.push({ mesh: outline, delay: delay + 0.46 });
|
||||
delayedMarkers.push({ mesh: arrow, delay: delay + 0.46 });
|
||||
}
|
||||
|
||||
function createRunnerDots(curve, delay, count) {
|
||||
const pixelUnit = 2 / Math.max(1, stageHeight);
|
||||
const visualScale = getVisualScale();
|
||||
const phases = count === 1 ? [0.18] : count === 2 ? [0.18, 0.70] : [0.12, 0.45, 0.78];
|
||||
phases.forEach(function (phase, index) {
|
||||
const glowMaterial = new THREE.MeshBasicMaterial({
|
||||
color: 0xffffff,
|
||||
transparent: true,
|
||||
opacity: 0.28,
|
||||
depthTest: false,
|
||||
depthWrite: false,
|
||||
blending: THREE.AdditiveBlending
|
||||
});
|
||||
const dotMaterial = new THREE.MeshBasicMaterial({ color: 0xffffff, transparent: true, opacity: 1, depthTest: false, depthWrite: false });
|
||||
const glow = new THREE.Mesh(new THREE.CircleGeometry(11 * visualScale * pixelUnit, 40), glowMaterial);
|
||||
const dot = new THREE.Mesh(new THREE.CircleGeometry(7.5 * visualScale * pixelUnit, 40), dotMaterial);
|
||||
const position = curve.getPointAt(phase);
|
||||
glow.position.copy(position);
|
||||
dot.position.copy(position);
|
||||
glow.renderOrder = 44;
|
||||
dot.renderOrder = 45;
|
||||
glow.visible = false;
|
||||
dot.visible = false;
|
||||
annotationGroup.add(glow, dot);
|
||||
runnerDots.push({ glow: glow, dot: dot, curve: curve, phase: phase, delay: delay + 0.18, pulseOffset: index * 1.8 });
|
||||
});
|
||||
}
|
||||
|
||||
function createTrace(trace, color, index, target) {
|
||||
const style = ROLE_STYLES[trace.role] || ROLE_STYLES.main;
|
||||
const worldPoints = trace.points.map(toWorld);
|
||||
const curve = new THREE.CatmullRomCurve3(worldPoints, Boolean(trace.closed), "centripetal", 0.5);
|
||||
const pathLengthPixels = curve.getLength() * stageHeight / 2;
|
||||
const samples = curve.getSpacedPoints(Math.max(36, trace.points.length * 12));
|
||||
const visualScale = getVisualScale();
|
||||
const outlineGeometry = createRibbonGeometry(samples, style.outline * visualScale);
|
||||
const lineGeometry = createRibbonGeometry(samples, style.width * visualScale);
|
||||
const outlineMaterial = makeLineMaterial(OUTLINE_COLOR, style);
|
||||
const lineMaterial = makeLineMaterial(color, style);
|
||||
const outline = new THREE.Mesh(outlineGeometry, outlineMaterial);
|
||||
const line = new THREE.Mesh(lineGeometry, lineMaterial);
|
||||
const isMain = trace.role === "main";
|
||||
outline.renderOrder = isMain ? 30 : 20;
|
||||
line.renderOrder = isMain ? 31 : 21;
|
||||
annotationGroup.add(outline, line);
|
||||
animatedMaterials.push(outlineMaterial, lineMaterial);
|
||||
const delay = index * 0.075;
|
||||
if (trace.role === "main") createRunnerDots(curve, delay, pathLengthPixels < 180 ? 1 : pathLengthPixels < 320 ? 2 : 3);
|
||||
revealGeometries.push({ geometry: outlineGeometry, count: outlineGeometry.index.count, delay: delay });
|
||||
revealGeometries.push({ geometry: lineGeometry, count: lineGeometry.index.count, delay: delay });
|
||||
if (trace.arrow && !trace.closed) {
|
||||
const endPoint = trace.points[trace.points.length - 1];
|
||||
const endsAtTarget = target && Math.hypot(endPoint[0] - target[0], endPoint[1] - target[1]) < 0.002;
|
||||
const arrowScale = Math.max(0.82, Math.min(1, pathLengthPixels / 240));
|
||||
createArrow(trace.points, color, (trace.role === "branch" ? 14 : 15) * arrowScale, delay, endsAtTarget ? TARGET_OUTER_RADIUS + 4 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
function createTarget(point, color) {
|
||||
const position = toWorld(point);
|
||||
const pixelUnit = 2 / Math.max(1, stageHeight);
|
||||
const visualScale = getVisualScale();
|
||||
const halo = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(25 * visualScale * pixelUnit, 64),
|
||||
new THREE.MeshBasicMaterial({ color: color, transparent: true, opacity: 0.20, depthTest: false, depthWrite: false, blending: THREE.AdditiveBlending })
|
||||
);
|
||||
const outer = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(TARGET_OUTER_RADIUS * visualScale * pixelUnit, 64),
|
||||
new THREE.MeshBasicMaterial({ color: OUTLINE_COLOR, transparent: true, opacity: 1, depthTest: false, depthWrite: false })
|
||||
);
|
||||
const gold = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(17.5 * visualScale * pixelUnit, 64),
|
||||
new THREE.MeshBasicMaterial({ color: color, transparent: true, opacity: 1, depthTest: false, depthWrite: false })
|
||||
);
|
||||
const white = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(13.5 * visualScale * pixelUnit, 64),
|
||||
new THREE.MeshBasicMaterial({ color: 0xffffff, transparent: true, opacity: 1, depthTest: false, depthWrite: false })
|
||||
);
|
||||
const inner = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(10 * visualScale * pixelUnit, 56),
|
||||
new THREE.MeshBasicMaterial({ color: OUTLINE_COLOR, transparent: true, opacity: 1, depthTest: false, depthWrite: false })
|
||||
);
|
||||
const core = new THREE.Mesh(
|
||||
new THREE.CircleGeometry(7.5 * visualScale * pixelUnit, 56),
|
||||
new THREE.MeshBasicMaterial({ color: color, transparent: true, opacity: 1, depthTest: false, depthWrite: false })
|
||||
);
|
||||
[halo, outer, gold, white, inner, core].forEach(function (mesh, index) {
|
||||
mesh.position.copy(position);
|
||||
mesh.renderOrder = 49 + index;
|
||||
annotationGroup.add(mesh);
|
||||
});
|
||||
pulseMeshes.push(halo);
|
||||
}
|
||||
|
||||
function updateCallout(definition, view) {
|
||||
const targetScreen = sourceToScreen(view.target);
|
||||
const placement = view.placement;
|
||||
calloutTitle.textContent = definition.title + (currentMode === "top" ? " · 俯视判读" : "");
|
||||
calloutCopy.textContent = definition.copy;
|
||||
const width = stage.clientWidth;
|
||||
const height = stage.clientHeight;
|
||||
const targetX = targetScreen[0] * width;
|
||||
const targetY = targetScreen[1] * height;
|
||||
const cardWidth = callout.offsetWidth || Math.min(width <= 680 ? 210 : width <= 920 ? 250 : 280, width - 28);
|
||||
const cardHeight = callout.offsetHeight || 88;
|
||||
let side = placement.side;
|
||||
let x = targetX + placement.dx;
|
||||
let y = targetY + placement.dy;
|
||||
const targetGap = TARGET_OUTER_RADIUS * getVisualScale() + 18;
|
||||
const horizontalGap = Math.max(Math.abs(placement.dx), targetGap);
|
||||
const verticalGap = Math.max(Math.abs(placement.dy), targetGap);
|
||||
|
||||
if (side === "right") x = targetX + horizontalGap;
|
||||
else if (side === "left") x = targetX - horizontalGap;
|
||||
else if (side === "below") y = targetY + verticalGap;
|
||||
else if (side === "above") y = targetY - verticalGap;
|
||||
|
||||
if (side === "right" && x + cardWidth > width - 14) {
|
||||
side = "left";
|
||||
x = targetX - horizontalGap;
|
||||
} else if (side === "left" && x - cardWidth < 14) {
|
||||
side = "right";
|
||||
x = targetX + horizontalGap;
|
||||
} else if (side === "below" && y + cardHeight > height - 14) {
|
||||
side = "above";
|
||||
y = targetY - verticalGap;
|
||||
} else if (side === "above" && y - cardHeight < 14) {
|
||||
side = "below";
|
||||
y = targetY + verticalGap;
|
||||
}
|
||||
|
||||
if (side === "right" || side === "left") {
|
||||
const horizontalMargin = compactLayout.matches ? 0 : 14;
|
||||
if (side === "right") x = Math.max(horizontalMargin, Math.min(width - cardWidth - horizontalMargin, x));
|
||||
else x = Math.max(cardWidth + horizontalMargin, Math.min(width - horizontalMargin, x));
|
||||
y = Math.max(cardHeight / 2 + 14, Math.min(height - cardHeight / 2 - 14, y));
|
||||
} else {
|
||||
x = Math.max(cardWidth / 2 + 14, Math.min(width - cardWidth / 2 - 14, x));
|
||||
}
|
||||
|
||||
const connectorBaseHalf = 28 * getVisualScale();
|
||||
let anchorX = x;
|
||||
let anchorY = y;
|
||||
let baseOne;
|
||||
let baseTwo;
|
||||
if (side === "right" || side === "left") {
|
||||
const verticalLimit = Math.max(0, cardHeight / 2 - connectorBaseHalf - 4);
|
||||
anchorY = y + Math.max(-verticalLimit, Math.min(verticalLimit, targetY - y));
|
||||
baseOne = [anchorX, anchorY - connectorBaseHalf];
|
||||
baseTwo = [anchorX, anchorY + connectorBaseHalf];
|
||||
} else {
|
||||
const horizontalLimit = Math.max(0, cardWidth / 2 - connectorBaseHalf - 4);
|
||||
anchorX = x + Math.max(-horizontalLimit, Math.min(horizontalLimit, targetX - x));
|
||||
baseOne = [anchorX - connectorBaseHalf, anchorY];
|
||||
baseTwo = [anchorX + connectorBaseHalf, anchorY];
|
||||
}
|
||||
const connectorX = anchorX - targetX;
|
||||
const connectorY = anchorY - targetY;
|
||||
const connectorLength = Math.hypot(connectorX, connectorY) || 1;
|
||||
const tipRadius = TARGET_OUTER_RADIUS * getVisualScale() * 0.72;
|
||||
const tipX = targetX + connectorX / connectorLength * tipRadius;
|
||||
const tipY = targetY + connectorY / connectorLength * tipRadius;
|
||||
calloutConnector.setAttribute("viewBox", "0 0 " + width + " " + height);
|
||||
calloutConnectorShape.setAttribute(
|
||||
"points",
|
||||
tipX.toFixed(1) + "," + tipY.toFixed(1) + " " +
|
||||
baseOne[0].toFixed(1) + "," + baseOne[1].toFixed(1) + " " +
|
||||
baseTwo[0].toFixed(1) + "," + baseTwo[1].toFixed(1)
|
||||
);
|
||||
|
||||
const pointerInset = 32;
|
||||
const pointerOffsetX = Math.max(-cardWidth / 2 + pointerInset, Math.min(cardWidth / 2 - pointerInset, targetX - x));
|
||||
const pointerOffsetY = Math.max(-cardHeight / 2 + pointerInset, Math.min(cardHeight / 2 - pointerInset, targetY - y));
|
||||
root.style.setProperty("--callout-x", x + "px");
|
||||
root.style.setProperty("--callout-y", y + "px");
|
||||
root.style.setProperty("--pointer-offset-x", pointerOffsetX + "px");
|
||||
root.style.setProperty("--pointer-offset-y", pointerOffsetY + "px");
|
||||
root.dataset.side = side;
|
||||
root.dataset.tone = currentKey === "cliff" ? "warning" : "default";
|
||||
}
|
||||
|
||||
function buildAnnotation(key, mode, animate) {
|
||||
const definition = ANNOTATIONS[key];
|
||||
if (!definition) return;
|
||||
const view = definition[mode === "top" ? "top" : "perspective"];
|
||||
clearAnnotation();
|
||||
annotationGroup = new THREE.Group();
|
||||
scene.add(annotationGroup);
|
||||
view.traces.forEach(function (trace, index) { createTrace(trace, definition.color, index, view.target); });
|
||||
createTarget(view.target, definition.color);
|
||||
updateCallout(definition, view);
|
||||
revealGeometries.forEach(function (item) {
|
||||
item.geometry.setDrawRange(0, animate && !reducedMotion.matches ? 0 : item.count);
|
||||
});
|
||||
delayedMarkers.forEach(function (item) { item.mesh.visible = !animate || reducedMotion.matches; });
|
||||
runnerDots.forEach(function (item) {
|
||||
const position = item.curve.getPointAt(item.phase);
|
||||
item.glow.position.copy(position);
|
||||
item.dot.position.copy(position);
|
||||
item.glow.visible = !animate || reducedMotion.matches;
|
||||
item.dot.visible = !animate || reducedMotion.matches;
|
||||
});
|
||||
revealStart = performance.now() - (animate && !reducedMotion.matches ? 0 : 760);
|
||||
}
|
||||
|
||||
function resize() {
|
||||
const width = Math.max(1, stage.clientWidth);
|
||||
const height = Math.max(1, stage.clientHeight);
|
||||
const nextAspect = width / height;
|
||||
const sizeChanged = Math.abs(nextAspect - aspect) > 0.001 || Math.abs(height - stageHeight) > 1;
|
||||
aspect = nextAspect;
|
||||
stageHeight = height;
|
||||
renderer.setSize(width, height, false);
|
||||
camera.left = -nextAspect;
|
||||
camera.right = nextAspect;
|
||||
camera.top = 1;
|
||||
camera.bottom = -1;
|
||||
camera.updateProjectionMatrix();
|
||||
if (sizeChanged && currentKey && !root.hidden) buildAnnotation(currentKey, currentMode, false);
|
||||
renderer.render(scene, camera);
|
||||
}
|
||||
|
||||
function renderFrame(now) {
|
||||
if (!currentKey || root.hidden || document.hidden) {
|
||||
animationFrame = 0;
|
||||
return;
|
||||
}
|
||||
const seconds = now * 0.001;
|
||||
const elapsed = (now - revealStart) / 760;
|
||||
animatedMaterials.forEach(function (material) {
|
||||
material.uniforms.uTime.value = seconds;
|
||||
material.uniforms.uMotion.value = reducedMotion.matches ? 0 : 1;
|
||||
});
|
||||
if (!reducedMotion.matches) {
|
||||
revealGeometries.forEach(function (item) {
|
||||
const progress = Math.max(0, Math.min(1, (elapsed - item.delay) / 0.62));
|
||||
const eased = 1 - Math.pow(1 - progress, 3);
|
||||
const count = Math.floor(item.count * eased / 6) * 6;
|
||||
item.geometry.setDrawRange(0, Math.max(0, count));
|
||||
});
|
||||
delayedMarkers.forEach(function (item) { item.mesh.visible = elapsed >= item.delay; });
|
||||
const motionSeconds = Math.max(0, (now - revealStart) * 0.001);
|
||||
runnerDots.forEach(function (item) {
|
||||
const visible = elapsed >= item.delay;
|
||||
item.glow.visible = visible;
|
||||
item.dot.visible = visible;
|
||||
if (!visible) return;
|
||||
const position = item.curve.getPointAt((item.phase + motionSeconds * 0.065) % 1);
|
||||
item.glow.position.copy(position);
|
||||
item.dot.position.copy(position);
|
||||
item.glow.scale.setScalar(1 + Math.sin(seconds * 3.6 + item.pulseOffset) * 0.14);
|
||||
});
|
||||
const pulse = 1 + Math.sin(seconds * 3.2) * 0.10;
|
||||
pulseMeshes.forEach(function (mesh) { mesh.scale.setScalar(pulse); });
|
||||
}
|
||||
renderer.render(scene, camera);
|
||||
if (reducedMotion.matches) {
|
||||
animationFrame = 0;
|
||||
return;
|
||||
}
|
||||
animationFrame = window.requestAnimationFrame(renderFrame);
|
||||
}
|
||||
|
||||
function startRendering() {
|
||||
if (!animationFrame) animationFrame = window.requestAnimationFrame(renderFrame);
|
||||
}
|
||||
|
||||
function show(key, mode) {
|
||||
if (!ANNOTATIONS[key]) return;
|
||||
window.clearTimeout(calloutTimer);
|
||||
window.clearTimeout(hideTimer);
|
||||
buildToken += 1;
|
||||
currentKey = key;
|
||||
currentMode = mode === "top" ? "top" : "perspective";
|
||||
root.hidden = false;
|
||||
root.classList.remove("is-visible", "is-callout-visible");
|
||||
resize();
|
||||
buildAnnotation(currentKey, currentMode, true);
|
||||
const token = buildToken;
|
||||
window.requestAnimationFrame(function () {
|
||||
if (token === buildToken) root.classList.add("is-visible");
|
||||
});
|
||||
calloutTimer = window.setTimeout(function () {
|
||||
if (token === buildToken) root.classList.add("is-callout-visible");
|
||||
}, reducedMotion.matches ? 0 : 430);
|
||||
startRendering();
|
||||
}
|
||||
|
||||
function hide(immediate) {
|
||||
buildToken += 1;
|
||||
currentKey = null;
|
||||
window.clearTimeout(calloutTimer);
|
||||
window.clearTimeout(hideTimer);
|
||||
root.classList.remove("is-visible", "is-callout-visible");
|
||||
if (immediate) {
|
||||
root.hidden = true;
|
||||
clearAnnotation();
|
||||
if (animationFrame) {
|
||||
window.cancelAnimationFrame(animationFrame);
|
||||
animationFrame = 0;
|
||||
}
|
||||
return;
|
||||
}
|
||||
hideTimer = window.setTimeout(function () {
|
||||
if (!currentKey) {
|
||||
root.hidden = true;
|
||||
clearAnnotation();
|
||||
}
|
||||
}, 220);
|
||||
}
|
||||
|
||||
if (typeof ResizeObserver === "function") {
|
||||
const observer = new ResizeObserver(resize);
|
||||
observer.observe(stage);
|
||||
} else {
|
||||
window.addEventListener("resize", resize, { passive: true });
|
||||
}
|
||||
const handleMotionPreference = function () {
|
||||
if (currentKey) {
|
||||
buildAnnotation(currentKey, currentMode, false);
|
||||
startRendering();
|
||||
}
|
||||
};
|
||||
if (typeof reducedMotion.addEventListener === "function") reducedMotion.addEventListener("change", handleMotionPreference);
|
||||
else if (typeof reducedMotion.addListener === "function") reducedMotion.addListener(handleMotionPreference);
|
||||
document.addEventListener("visibilitychange", function () {
|
||||
if (!document.hidden && currentKey) startRendering();
|
||||
});
|
||||
|
||||
window.TerrainAnnotation = {
|
||||
show: show,
|
||||
hide: hide,
|
||||
getState: function () {
|
||||
return { key: currentKey, mode: currentMode, renderer: "three-r" + THREE.REVISION, side: root.dataset.side || null };
|
||||
}
|
||||
};
|
||||
})();
|
||||
@@ -1,663 +0,0 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
const STEP_COPY = [
|
||||
{ title: "等高切割", description: "观察水平面与山体在同一海拔相交,形成连续闭合线。" },
|
||||
{ title: "形成交线", description: "每个水平切面都会留下同高交线,多层交线共同描述山体起伏。" },
|
||||
{ title: "投影成图", description: "把各高度交线垂直投影到同一平面,得到完整等高线地形图。" },
|
||||
{ title: "疏密判坡", description: "等高线越密,坡度越陡;等高线越疏,坡度越缓。" }
|
||||
];
|
||||
|
||||
const DEFAULT_VIEW = {
|
||||
title: "实验流程",
|
||||
summary: "点击开始实验,在当前背景中观察等高切割与交线形成,再通过右侧图解理解垂直投影和疏密判坡。",
|
||||
features: ["同一条等高线上海拔相等", "相邻等高线高差保持一致"],
|
||||
hint: "点击“开始实验”,直接在当前画面播放形成交线视频"
|
||||
};
|
||||
|
||||
const LANDFORMS = {
|
||||
peak: {
|
||||
name: "山峰",
|
||||
subtitle: "闭合等高线",
|
||||
image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABjIAAAPgCAIAAAAX9nIcAABcLWNhQlgAAFwtanVtYgAAAB5qdW1kYzJwYQARABCAAACqADibcQNjMnBhAAAAXAdqdW1iAAAAR2p1bWRjMm1hABEAEIAAAKoAOJtxA3VybjpjMnBhOmQ4MTIzMzliLTgxNTItNDc0Yy1hYjJhLTRjNmIxMjBiZjI0YwAAAAxDanVtYgAAAClqdW1kYzJhcwARABCAAACqADibcQNjMnBhLmFzc2VydGlvbnMAAAAJ0Wp1bWIAAAA7anVtZEDLDDK7ikidpwsq1vR/Q2kTYzJwYS5pY29uAAAAABhjMnNoCkx6BmiFgZC8d9u0ysUK5gAAABdiZmRiAGltYWdlL3N2Zyt4bWwAAAAJd2JpZGI8c3ZnIHdpZHRoPSI3MTYiIGhlaWdodD0iNzE2IiB2aWV3Qm94PSIwIDAgNzE2IDcxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUwOC43NDkgMzE3LjM5OUM1MTYuNzc3IDI4Ny4zMTQgNTA4Ljk5MSAyNTMuODg0IDQ4NS4zODkgMjMwLjI4MkM0NjEuNzg4IDIwNi42ODEgNDI4LjM2IDE5OC44OTUgMzk4LjI3MyAyMDYuOTIzQzM3Ni4yMzEgMTg0LjkyOCAzNDMuMzkgMTc0Ljk1NiAzMTEuMTQ4IDE4My41OTZDMjc4LjkwNiAxOTIuMjM0IDI1NS40NSAyMTcuMjk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p1bWIAAABAanVtZGNib3IAEQAQgAAAqgA4m3ETYzJwYS5oYXNoLmRhdGEAAAAAGGMyc2hQxaRAn+H3lmoBrjJjlp/0AAAAe2Nib3KlamV4Y2x1c2lvbnOBomVzdGFydBghZmxlbmd0aBlVTGRuYW1lbmp1bWJmIG1hbmlmZXN0Y2FsZ2ZzaGEyNTZkaGFzaFggViOQF6kv3nl7IQzJNDGMXCaMcnJQFFon5JIoVSwRqbxjcGFkSAAAAAAAAAAAAAACump1bWIAAAAnanVtZGMyY2wAEQAQgAAAqgA4m3EDYzJwYS5jbGFpbS52MgAAAAKLY2JvcqZqaW5zdGFuY2VJRHgseG1wOmlpZDowODI0YWI3My0zNzk5LTRlOGYtOTQxYS0yMmM0ZDIyNTVmNDV0Y2xhaW1fZ2VuZXJhdG9yX2luZm+kZG5hbWV4GE9wZW5BSSBNZWRpYSBTZXJ2aWNlIEFQSWRpY29uomN1cmx4JHNlbGYjanVtYmY9YzJwYS5hc3NlcnRpb25zL2MycGEuaWNvbmRoYXNoWCAOyV1mZ7LSEYnk5t+E+raHsenMz89q0oGyPFhifujp82tzcGVjVmVyc2lvbmUyLjIuMHdvcmcuY29udGVudGF1dGguYzJwYV9yc2YwLjc5LjJpc2lnbmF0dXJleE1zZWxmI2p1bWJmPS9jMnBhL3VybjpjMnBhOmQ2NjU2MGNlLWM2OGItNDFjYS05NjIyLTUzZjM1M2E0MzZkOS9jMnBhLnNpZ25hdHVyZXJjcmVhdGVkX2Fzc2VydGlvbnODomN1cmx4JHNlbGYjLine truncated
|
||||
alt: "山峰立体示意图,蓝色等高线围绕山体逐级闭合",
|
||||
topAlt: "山峰真实俯视图,多层近同心闭合等高线向中心收缩",
|
||||
summary: "山峰四周较低、中心突起;等高线闭合成环,海拔数值由外向内逐渐升高。",
|
||||
features: ["中心海拔高、四周海拔低", "闭合线越向内,数值越大", "若数值向内降低,则应判为洼地"],
|
||||
hint: "山峰:闭合曲线,数值向中心升高"
|
||||
},
|
||||
ridge: {
|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93TANI6XCtKyEmgrrrFhvhRjcGFkSAAAAAAAAAAAAAACump1bWIAAAAnanVtZGMyY2wAEQAQgAAAqgA4m3EDYzJwYS5jbGFpbS52MgAAAAKLY2JvcqZqaW5zdGFuY2VJRHgseG1wOmlpZDpiZWNhMzM0Mi0xNGEzLTQ2MDQtOTZkMi0xZGMyOGU4MWM1Y2N0Y2xhaW1fZ2VuZXJhdG9yX2luZm+kZG5hbWV4GE9wZW5BSSBNZWRpYSBTZXJ2aWNlIEFQSWRpY29uomN1cmx4JHNlbGYjanVtYmY9YzJwYS5hc3NlcnRpb25zL2MycGEuaWNvbmRoYXNoWCANaqS/CFKt8lp/WmYfHjTmaMNUCqivinRf+zJLRrpS9HdvcmcuY29udGVudGF1dGguYzJwYV9yc2YwLjc5LjJrc3BlY1ZlcnNpb25lMi4yLjBpc2lnbmF0dXJleE1zZWxmI2p1bWJmPS9jMnBhL3VybjpjMnBhOjNmZGNlZTA2LWM2ZmEtNDVlNi05M2I3LWU4ZWFkMjFlYzBjMi9jMnBhLnNpZ25hdHVyZXJjcmVhdGVkX2Fzc2VydGlvbnODomN1cmx4JHNlbGYjLine truncated
|
||||
alt: "山脊立体示意图,蓝色等高线沿凸出的脊线向低处弯曲",
|
||||
topAlt: "山脊真实俯视图,等高线沿狭长高地呈舌状延伸",
|
||||
summary: "等高线弯曲部分向海拔低处凸出,脊线常成为两侧水系的分水岭。",
|
||||
features: ["等高线凸向低值方向", "脊线由高处向低处延伸", "雨水沿脊线两侧分流"],
|
||||
hint: "山脊:等高线向低处凸出,凸低为脊"
|
||||
},
|
||||
valley: {
|
||||
name: "山谷",
|
||||
subtitle: "凸高为谷",
|
||||
image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABjIAAAPgCAIAAAAX9nIcAABVQGNhQlgAAFVAanVtYgAAAB5qdW1kYzJwYQARABCAAACqADibcQNjMnBhAAAAVRpqdW1iAAAAR2p1bWRjMm1hABEAEIAAAKoAOJtxA3VybjpjMnBhOmU1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1fZ2VuZXJhdG9yX2luZm+kZG5hbWV4GE9wZW5BSSBNZWRpYSBTZXJ2aWNlIEFQSWRpY29uomN1cmx4JHNlbGYjanVtYmY9YzJwYS5hc3NlcnRpb25zL2MycGEuaWNvbmRoYXNoWCArKK6S9xsQeScSvI2y0H3Q/hlzbjQb79OEj7rBeRqvzXdvcmcuY29udGVudGF1dGguYzJwYV9yc2YwLjc5LjJrc3BlY1ZlcnNpb25lMi4yLjBpc2lnbmF0dXJleE1zZWxmI2p1bWJmPS9jMnBhL3VybjpjMnBhOjY4ZDU4YjNiLTc4YjgtNGU3YS05YjI0LWRmMTZiZjMyN2ExYS9jMnBhLnNpZ25hdHVyZXJjcmVhdGVkX2Fzc2VydGlvbnODomN1cmx4JHNlbGYjLine truncated
|
||||
alt: "山谷立体示意图,两座山体之间的谷地有河流穿过",
|
||||
topAlt: "山谷真实俯视图,两侧坡面夹持低槽,等高线形成 V 形凹入",
|
||||
summary: "等高线弯曲部分向海拔高处凸出,谷底低洼并容易汇水形成河流。",
|
||||
features: ["等高线凸向高值方向", "V 形尖端指向上游高处", "谷底常发育河流"],
|
||||
hint: "山谷:等高线向高处凸出,凸高为谷"
|
||||
},
|
||||
saddle: {
|
||||
name: "鞍部",
|
||||
subtitle: "两峰之间",
|
||||
image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABjIAAAPgCAIAAAAX9nIcAABcLWNhQlgAAFwtanVtYgAAAB5qdW1kYzJwYQARABCAAACqADibcQNjMnBhAAAAXAdqdW1iAAAAR2p1bWRjMm1hABEAEIAAAKoAOJtxA3VybjpjMnBhOjJkNWI0YjRmLTRhMjAtNDllNi1iY2VjLWRiNmFhNWU4ZjBmZAAAAAxDanVtYgAAAClqdW1kYzJhcwARABCAAACqADibcQNjMnBhLmFzc2VydGlvbnMAAAAJ0Wp1bWIAAAA7anVtZEDLDDK7ikidpwsq1vR/Q2kTYzJwYS5pY29uAAAAABhjMnNoGm4c/dO7eQn/P6IIwSSXSAAAABdiZ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Y29udGVudGF1dGguYzJwYV9yc2YwLjc5LjJpc2lnbmF0dXJleE1zZWxmI2p1bWJmPS9jMnBhL3VybjpjMnBhOjY4NTE4NzMxLTcxMTktNGYyMC05ZDY2LTQ0M2ZkMDk0ODFkZi9jMnBhLnNpZ25hdHVyZXJjcmVhdGVkX2Fzc2VydGlvbnODomN1cmx4JHNlbGYjLine truncated
|
||||
alt: "鞍部立体示意图,两座山峰之间形成马鞍状低地",
|
||||
topAlt: "鞍部真实俯视图,两组峰顶闭合圈之间的等高线明显收腰",
|
||||
summary: "鞍部位于相邻两座山峰之间,是沿山脊方向相对低洼的过渡地带。",
|
||||
features: ["两组闭合等高线相邻", "中部线条收窄,形似马鞍", "常是翻越山岭的低垭口"],
|
||||
hint: "鞍部:两峰之间相对低洼,俯视轮廓呈收腰形"
|
||||
},
|
||||
cliff: {
|
||||
name: "陡崖",
|
||||
subtitle: "密集或重合",
|
||||
image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABjIAAAPgCAIAAAAX9nIcAABVQGNhQlgAAFVAanVtYgAAAB5qdW1kYzJwYQARABCAAACqADibcQNjMnBhAAAAVRpqdW1iAAAAR2p1bWRjMm1hABEAEIAAAKoAOJtxA3VybjpjMnBhOjdkYzYyMjRmLTg3MjQtNGJlZi1hM2E3LTkxZjY0ZGZhMjk3NwAAAAxDanVtYgAAAClqdW1kYzJhcwARABCAAACqADibcQNjMnBhLmFzc2VydGlvbnMAAAAJ0Wp1bWIAAAA7anVtZEDLDDK7ikidpwsq1vR/Q2kTYzJwYS5pY29uAAAAABhjMnNo2nwmq4HIrigYDUiOaSJb+wAAABdiZmRiAGltYWdlL3N2Zyt4bWwAAAAJd2JpZGI8c3ZnIHdpZHRoPSI3MTYiIGhlaWdodD0iNzE2IiB2aWV3Qm94PSIwIDAgNzE2IDcxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUwOC43ND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
Line truncated
|
||||
alt: "陡崖立体示意图,崖壁处蓝色等高线高度密集",
|
||||
topAlt: "陡崖真实俯视图,崖壁处大量等高线极密集并近似重合",
|
||||
summary: "陡崖坡面近直立,不同高程的等高线会高度密集,局部可投影到同一位置而重合。",
|
||||
features: ["密集表示陡坡,重合才是陡崖特征", "单位水平距离内高差很大", "n 条线重合时:(n−1)d ≤ ΔH < (n+1)d"],
|
||||
hint: "陡崖:等高线密集或重合,坡度极陡"
|
||||
}
|
||||
};
|
||||
|
||||
const dom = {
|
||||
app: document.getElementById("app-shell"),
|
||||
experimentVideo: document.getElementById("experiment-video"),
|
||||
densityBackground: document.getElementById("density-background"),
|
||||
landformImage: document.getElementById("landform-image"),
|
||||
landformTopImage: document.getElementById("landform-top-image"),
|
||||
projectionDiagram: document.getElementById("projection-diagram"),
|
||||
densityDiagram: document.getElementById("density-diagram"),
|
||||
mediaLoading: document.getElementById("media-loading"),
|
||||
mediaLabelKicker: document.getElementById("media-label-kicker"),
|
||||
mediaLabelTitle: document.getElementById("media-label-title"),
|
||||
mediaLabelCopy: document.getElementById("media-label-copy"),
|
||||
progress: document.getElementById("video-progress-fill"),
|
||||
playButton: document.getElementById("play-button"),
|
||||
playIcon: document.getElementById("play-icon"),
|
||||
playLabel: document.getElementById("play-label"),
|
||||
resetButton: document.getElementById("reset-button"),
|
||||
fullscreenButton: document.getElementById("fullscreen-button"),
|
||||
fullscreenLabel: document.getElementById("fullscreen-label"),
|
||||
workflowOpen: document.getElementById("workflow-open"),
|
||||
flowSteps: Array.from(document.querySelectorAll(".flow-step[data-step]")),
|
||||
flowCount: document.getElementById("flow-count"),
|
||||
flowLineFill: document.getElementById("flow-line-fill"),
|
||||
taskTitle: document.getElementById("task-title"),
|
||||
taskDescription: document.getElementById("task-description"),
|
||||
terrainTabs: Array.from(document.querySelectorAll(".terrain-tab[data-landform]")),
|
||||
returnExperiment: document.getElementById("return-experiment"),
|
||||
observationHeading: document.getElementById("observation-heading"),
|
||||
observationSummary: document.getElementById("observation-summary"),
|
||||
featureList: document.getElementById("feature-list"),
|
||||
topViewToggle: document.getElementById("top-view-toggle"),
|
||||
topViewToggleLabel: document.getElementById("top-view-toggle-label"),
|
||||
topViewToggleHint: document.getElementById("top-view-toggle-hint"),
|
||||
topViewThumbnail: document.getElementById("top-view-thumbnail"),
|
||||
hintText: document.getElementById("hint-text"),
|
||||
controlPanel: document.querySelector(".control-panel"),
|
||||
panelClose: document.getElementById("panel-close"),
|
||||
panelOpen: document.getElementById("panel-open"),
|
||||
toast: document.getElementById("toast")
|
||||
};
|
||||
|
||||
const state = {
|
||||
selectedLandform: null,
|
||||
pendingLandform: null,
|
||||
viewMode: "perspective",
|
||||
step: 0,
|
||||
imageToken: 0,
|
||||
scanTimer: 0,
|
||||
annotationTimer: 0,
|
||||
toastTimer: 0,
|
||||
pendingStep: null,
|
||||
workflowTimer: 0,
|
||||
workflowRunToken: 0,
|
||||
workflowAutoPlaying: false
|
||||
};
|
||||
|
||||
const ICONS = {
|
||||
play: '<svg viewBox="0 0 24 24"><path d="m9 6 9 6-9 6V6Z"/></svg>',
|
||||
pause: '<svg viewBox="0 0 24 24"><path d="M7 6h4v12H7V6Zm6 0h4v12h-4V6Z"/></svg>'
|
||||
};
|
||||
|
||||
function showToast(message) {
|
||||
window.clearTimeout(state.toastTimer);
|
||||
dom.toast.textContent = message;
|
||||
dom.toast.classList.add("is-visible");
|
||||
state.toastTimer = window.setTimeout(function () {
|
||||
dom.toast.classList.remove("is-visible");
|
||||
}, 2600);
|
||||
}
|
||||
|
||||
function hideLoading() {
|
||||
dom.mediaLoading.classList.add("is-hidden");
|
||||
}
|
||||
|
||||
function cancelWorkflowSequence() {
|
||||
window.clearTimeout(state.workflowTimer);
|
||||
state.workflowTimer = 0;
|
||||
state.workflowRunToken += 1;
|
||||
state.workflowAutoPlaying = false;
|
||||
}
|
||||
|
||||
function setWorkflowDiagram(element, active) {
|
||||
element.toggleAttribute("hidden", !active);
|
||||
element.classList.toggle("is-active", active);
|
||||
}
|
||||
|
||||
function hideWorkflowVisuals() {
|
||||
setWorkflowDiagram(dom.projectionDiagram, false);
|
||||
setWorkflowDiagram(dom.densityDiagram, false);
|
||||
dom.densityBackground.classList.remove("is-visible");
|
||||
dom.app.classList.remove("has-workflow-visual");
|
||||
}
|
||||
|
||||
function syncWorkflowPresentation(index) {
|
||||
const safeIndex = Math.max(0, Math.min(3, Number(index) || 0));
|
||||
const isExperiment = !state.selectedLandform;
|
||||
const showProjection = isExperiment && safeIndex === 2;
|
||||
const showDensity = isExperiment && safeIndex === 3;
|
||||
const densityWasVisible = dom.densityBackground.classList.contains("is-visible");
|
||||
setWorkflowDiagram(dom.projectionDiagram, showProjection);
|
||||
setWorkflowDiagram(dom.densityDiagram, showDensity);
|
||||
dom.densityBackground.classList.toggle("is-visible", showDensity);
|
||||
dom.app.classList.toggle("has-workflow-visual", showProjection || showDensity);
|
||||
if (isExperiment) dom.experimentVideo.classList.toggle("is-visible", !showDensity);
|
||||
if (showDensity && !densityWasVisible) triggerScan(dom.densityBackground);
|
||||
}
|
||||
|
||||
function beginStaticWorkflowSequence() {
|
||||
cancelWorkflowSequence();
|
||||
const token = state.workflowRunToken;
|
||||
state.workflowAutoPlaying = true;
|
||||
renderStep(2);
|
||||
setPlayButton();
|
||||
dom.hintText.textContent = "自动演示:" + STEP_COPY[2].description;
|
||||
state.workflowTimer = window.setTimeout(function () {
|
||||
if (token !== state.workflowRunToken) return;
|
||||
renderStep(3);
|
||||
dom.hintText.textContent = "自动演示:" + STEP_COPY[3].description;
|
||||
state.workflowTimer = window.setTimeout(function () {
|
||||
if (token !== state.workflowRunToken) return;
|
||||
state.workflowTimer = 0;
|
||||
state.workflowAutoPlaying = false;
|
||||
setPlayButton();
|
||||
dom.hintText.textContent = "实验流程播放完成 · 可重新实验或选择典型地貌观察";
|
||||
}, 3600);
|
||||
}, 3200);
|
||||
}
|
||||
|
||||
function renderStep(index) {
|
||||
const safeIndex = Math.max(0, Math.min(3, Number(index) || 0));
|
||||
state.step = safeIndex;
|
||||
const copy = STEP_COPY[safeIndex];
|
||||
dom.flowCount.textContent = (safeIndex + 1) + "/4";
|
||||
dom.flowLineFill.style.width = (safeIndex / 3) * 100 + "%";
|
||||
dom.taskTitle.textContent = copy.title;
|
||||
dom.taskDescription.textContent = copy.description;
|
||||
dom.flowSteps.forEach(function (button, buttonIndex) {
|
||||
button.classList.toggle("is-active", buttonIndex === safeIndex);
|
||||
button.classList.toggle("is-complete", buttonIndex < safeIndex);
|
||||
button.setAttribute("aria-current", buttonIndex === safeIndex ? "step" : "false");
|
||||
});
|
||||
syncWorkflowPresentation(safeIndex);
|
||||
}
|
||||
|
||||
function renderObservation(view) {
|
||||
dom.observationHeading.textContent = view.name || view.title;
|
||||
dom.observationSummary.textContent = view.summary;
|
||||
dom.featureList.replaceChildren();
|
||||
view.features.forEach(function (feature) {
|
||||
const item = document.createElement("li");
|
||||
item.textContent = feature;
|
||||
dom.featureList.appendChild(item);
|
||||
});
|
||||
}
|
||||
|
||||
function setPlayButton() {
|
||||
const duration = dom.experimentVideo.duration;
|
||||
const finished = dom.experimentVideo.ended || (Number.isFinite(duration) && duration > 0 && dom.experimentVideo.currentTime >= duration - 0.08);
|
||||
if (!dom.experimentVideo.paused) {
|
||||
dom.playLabel.textContent = "暂停实验";
|
||||
dom.playIcon.innerHTML = ICONS.pause;
|
||||
return;
|
||||
}
|
||||
dom.playIcon.innerHTML = ICONS.play;
|
||||
if (!state.selectedLandform && state.step >= 2) {
|
||||
dom.playLabel.textContent = "重新实验";
|
||||
return;
|
||||
}
|
||||
if (finished) dom.playLabel.textContent = "重新实验";
|
||||
else if (dom.experimentVideo.currentTime > 0.12) dom.playLabel.textContent = "继续实验";
|
||||
else dom.playLabel.textContent = "开始实验";
|
||||
}
|
||||
|
||||
function updateMediaLabel(view) {
|
||||
if (view) {
|
||||
dom.mediaLabelKicker.textContent = state.viewMode === "top" ? "典型地貌 · 真实俯视图" : "典型地貌 · 立体示意";
|
||||
dom.mediaLabelTitle.textContent = view.name;
|
||||
dom.mediaLabelCopy.textContent = state.viewMode === "top" ? view.subtitle + "|" + view.summary : view.summary;
|
||||
return;
|
||||
}
|
||||
dom.mediaLabelKicker.textContent = "实验流程";
|
||||
dom.mediaLabelTitle.textContent = "形成交线与垂直投影";
|
||||
dom.mediaLabelCopy.textContent = dom.experimentVideo.paused
|
||||
? "点击“开始实验”,直接在当前画面播放形成交线视频"
|
||||
: STEP_COPY[state.step].description;
|
||||
}
|
||||
|
||||
function updateViewToggle() {
|
||||
const view = LANDFORMS[state.selectedLandform];
|
||||
const hasLandform = Boolean(view);
|
||||
const isTopView = hasLandform && state.viewMode === "top";
|
||||
dom.topViewToggle.disabled = !hasLandform;
|
||||
dom.topViewToggle.classList.toggle("is-active", isTopView);
|
||||
dom.topViewToggle.setAttribute("aria-pressed", String(isTopView));
|
||||
dom.topViewToggleLabel.textContent = isTopView ? "立体图" : "俯视图";
|
||||
dom.topViewToggleHint.textContent = hasLandform ? "点击切换" : "选择地貌后切换";
|
||||
dom.topViewToggle.setAttribute(
|
||||
"aria-label",
|
||||
hasLandform ? "切换为" + (isTopView ? "立体图" : "俯视图") : "请先选择一种典型地貌"
|
||||
);
|
||||
|
||||
if (!view) {
|
||||
dom.topViewThumbnail.hidden = true;
|
||||
dom.topViewThumbnail.removeAttribute("src");
|
||||
dom.topViewThumbnail.alt = "";
|
||||
return;
|
||||
}
|
||||
dom.topViewThumbnail.src = isTopView ? view.image : view.topImage;
|
||||
dom.topViewThumbnail.alt = isTopView ? view.name + "立体图预览" : view.name + "真实俯视图预览";
|
||||
dom.topViewThumbnail.hidden = false;
|
||||
}
|
||||
|
||||
function triggerScan(targetImage) {
|
||||
window.clearTimeout(state.scanTimer);
|
||||
dom.app.classList.remove("is-scanning");
|
||||
dom.densityBackground.classList.remove("is-revealing");
|
||||
dom.landformImage.classList.remove("is-revealing");
|
||||
dom.landformTopImage.classList.remove("is-revealing");
|
||||
void dom.app.offsetWidth;
|
||||
dom.app.classList.add("is-scanning");
|
||||
(targetImage || (state.viewMode === "top" ? dom.landformTopImage : dom.landformImage)).classList.add("is-revealing");
|
||||
state.scanTimer = window.setTimeout(function () {
|
||||
dom.app.classList.remove("is-scanning");
|
||||
dom.densityBackground.classList.remove("is-revealing");
|
||||
dom.landformImage.classList.remove("is-revealing");
|
||||
dom.landformTopImage.classList.remove("is-revealing");
|
||||
}, 1220);
|
||||
}
|
||||
|
||||
async function decodeImage(image) {
|
||||
if (typeof image.decode === "function") {
|
||||
await image.decode();
|
||||
return;
|
||||
}
|
||||
if (!image.complete) {
|
||||
await new Promise(function (resolve, reject) {
|
||||
image.addEventListener("load", resolve, { once: true });
|
||||
image.addEventListener("error", reject, { once: true });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function hideTerrainAnnotation() {
|
||||
window.clearTimeout(state.annotationTimer);
|
||||
dom.app.classList.remove("is-landform");
|
||||
if (window.TerrainAnnotation) window.TerrainAnnotation.hide();
|
||||
}
|
||||
|
||||
function clearTerrainAnnotationNow() {
|
||||
window.clearTimeout(state.annotationTimer);
|
||||
state.annotationTimer = 0;
|
||||
if (window.TerrainAnnotation) window.TerrainAnnotation.hide(true);
|
||||
}
|
||||
|
||||
function scheduleTerrainAnnotation(withScan) {
|
||||
window.clearTimeout(state.annotationTimer);
|
||||
dom.app.classList.add("is-landform");
|
||||
state.annotationTimer = window.setTimeout(function () {
|
||||
if (!state.selectedLandform || !window.TerrainAnnotation) return;
|
||||
window.TerrainAnnotation.show(state.selectedLandform, state.viewMode);
|
||||
}, withScan ? 420 : 0);
|
||||
}
|
||||
|
||||
function applyLandformView(view, withScan) {
|
||||
const isTopView = state.viewMode === "top";
|
||||
hideWorkflowVisuals();
|
||||
dom.experimentVideo.classList.remove("is-visible");
|
||||
dom.landformImage.classList.toggle("is-visible", !isTopView);
|
||||
dom.landformTopImage.classList.toggle("is-visible", isTopView);
|
||||
updateMediaLabel(view);
|
||||
updateViewToggle();
|
||||
dom.hintText.textContent = isTopView
|
||||
? view.name + "俯视图:" + view.hint.replace(view.name + ":", "")
|
||||
: view.hint;
|
||||
if (withScan) triggerScan();
|
||||
scheduleTerrainAnnotation(withScan);
|
||||
}
|
||||
|
||||
function collapsePanelForCompactView() {
|
||||
if (!window.matchMedia("(max-width: 680px)").matches) return;
|
||||
dom.controlPanel.classList.add("is-collapsed");
|
||||
dom.panelOpen.hidden = false;
|
||||
}
|
||||
|
||||
async function selectLandform(key) {
|
||||
const view = LANDFORMS[key];
|
||||
if (!view) return;
|
||||
const token = ++state.imageToken;
|
||||
cancelWorkflowSequence();
|
||||
state.pendingLandform = key;
|
||||
clearTerrainAnnotationNow();
|
||||
hideWorkflowVisuals();
|
||||
const nextMode = state.selectedLandform ? state.viewMode : "perspective";
|
||||
dom.experimentVideo.pause();
|
||||
const perspectiveProbe = new Image();
|
||||
const topProbe = new Image();
|
||||
perspectiveProbe.src = view.image;
|
||||
topProbe.src = view.topImage;
|
||||
|
||||
try {
|
||||
await Promise.all([decodeImage(perspectiveProbe), decodeImage(topProbe)]);
|
||||
} catch (error) {
|
||||
if (token === state.imageToken) {
|
||||
state.pendingLandform = null;
|
||||
syncWorkflowPresentation(state.step);
|
||||
showToast("地貌图片加载失败,请检查对应资源文件");
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (token !== state.imageToken) return;
|
||||
|
||||
state.pendingLandform = null;
|
||||
state.selectedLandform = key;
|
||||
state.viewMode = nextMode;
|
||||
dom.landformImage.src = view.image;
|
||||
dom.landformImage.alt = view.alt;
|
||||
dom.landformTopImage.src = view.topImage;
|
||||
dom.landformTopImage.alt = view.topAlt;
|
||||
|
||||
dom.terrainTabs.forEach(function (button) {
|
||||
const active = button.dataset.landform === key;
|
||||
button.classList.toggle("is-active", active);
|
||||
button.setAttribute("aria-pressed", String(active));
|
||||
});
|
||||
dom.returnExperiment.hidden = false;
|
||||
renderObservation(view);
|
||||
applyLandformView(view, true);
|
||||
collapsePanelForCompactView();
|
||||
setPlayButton();
|
||||
}
|
||||
|
||||
async function toggleTopView() {
|
||||
const view = LANDFORMS[state.selectedLandform];
|
||||
if (!view) return;
|
||||
const previousMode = state.viewMode;
|
||||
const token = ++state.imageToken;
|
||||
state.pendingLandform = null;
|
||||
clearTerrainAnnotationNow();
|
||||
state.viewMode = previousMode === "top" ? "perspective" : "top";
|
||||
try {
|
||||
await decodeImage(state.viewMode === "top" ? dom.landformTopImage : dom.landformImage);
|
||||
} catch (error) {
|
||||
state.viewMode = previousMode;
|
||||
showToast("对应视图加载失败,请检查图片资源");
|
||||
return;
|
||||
}
|
||||
if (token !== state.imageToken) return;
|
||||
applyLandformView(view, true);
|
||||
collapsePanelForCompactView();
|
||||
}
|
||||
|
||||
function showExperiment() {
|
||||
cancelWorkflowSequence();
|
||||
state.imageToken += 1;
|
||||
state.pendingLandform = null;
|
||||
state.selectedLandform = null;
|
||||
state.viewMode = "perspective";
|
||||
dom.app.classList.remove("is-scanning");
|
||||
hideWorkflowVisuals();
|
||||
hideTerrainAnnotation();
|
||||
dom.landformImage.classList.remove("is-visible", "is-revealing");
|
||||
dom.landformTopImage.classList.remove("is-visible", "is-revealing");
|
||||
dom.experimentVideo.classList.add("is-visible");
|
||||
dom.terrainTabs.forEach(function (button) {
|
||||
button.classList.remove("is-active");
|
||||
button.setAttribute("aria-pressed", "false");
|
||||
});
|
||||
dom.returnExperiment.hidden = true;
|
||||
renderObservation(DEFAULT_VIEW);
|
||||
updateViewToggle();
|
||||
updateMediaLabel(null);
|
||||
}
|
||||
|
||||
function playVideo() {
|
||||
dom.experimentVideo.play().then(function () {
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
dom.hintText.textContent = "实验播放中:" + STEP_COPY[state.step].description;
|
||||
}).catch(function (error) {
|
||||
if (error && error.name === "AbortError") return;
|
||||
showToast("视频暂时无法播放,请检查浏览器媒体权限");
|
||||
});
|
||||
}
|
||||
|
||||
function toggleExperimentPlayback() {
|
||||
if (state.selectedLandform || state.pendingLandform || state.step >= 2) {
|
||||
showExperiment();
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
} else {
|
||||
state.pendingStep = 0;
|
||||
}
|
||||
renderStep(0);
|
||||
playVideo();
|
||||
return;
|
||||
}
|
||||
if (!dom.experimentVideo.paused) {
|
||||
dom.experimentVideo.pause();
|
||||
return;
|
||||
}
|
||||
const duration = dom.experimentVideo.duration;
|
||||
if (dom.experimentVideo.ended || (Number.isFinite(duration) && dom.experimentVideo.currentTime >= duration - 0.08)) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
renderStep(0);
|
||||
}
|
||||
playVideo();
|
||||
}
|
||||
|
||||
function playFromBeginning() {
|
||||
showExperiment();
|
||||
renderStep(0);
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
} else {
|
||||
state.pendingStep = 0;
|
||||
}
|
||||
playVideo();
|
||||
}
|
||||
|
||||
function playStep(index) {
|
||||
const safeIndex = Math.max(0, Math.min(3, Number(index) || 0));
|
||||
showExperiment();
|
||||
renderStep(safeIndex);
|
||||
if (safeIndex <= 1) {
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = safeIndex === 0 ? 0 : dom.experimentVideo.duration / 2;
|
||||
} else {
|
||||
state.pendingStep = safeIndex;
|
||||
}
|
||||
playVideo();
|
||||
return;
|
||||
}
|
||||
state.pendingStep = null;
|
||||
dom.experimentVideo.pause();
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
dom.hintText.textContent = STEP_COPY[safeIndex].title + ":" + STEP_COPY[safeIndex].description;
|
||||
}
|
||||
|
||||
function resetExperience() {
|
||||
state.pendingStep = null;
|
||||
dom.experimentVideo.pause();
|
||||
showExperiment();
|
||||
renderStep(0);
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
} else {
|
||||
state.pendingStep = 0;
|
||||
}
|
||||
dom.progress.style.width = "0%";
|
||||
dom.hintText.textContent = DEFAULT_VIEW.hint;
|
||||
setPlayButton();
|
||||
showToast("已重置到视频首帧");
|
||||
}
|
||||
|
||||
function toggleFullscreen() {
|
||||
if (!document.fullscreenElement) {
|
||||
if (!dom.app.requestFullscreen) {
|
||||
showToast("当前浏览器不支持全屏");
|
||||
return;
|
||||
}
|
||||
dom.app.requestFullscreen().catch(function () { showToast("当前浏览器未允许进入全屏"); });
|
||||
return;
|
||||
}
|
||||
if (document.exitFullscreen) document.exitFullscreen().catch(function () {});
|
||||
}
|
||||
|
||||
dom.experimentVideo.addEventListener("loadeddata", hideLoading, { once: true });
|
||||
dom.experimentVideo.addEventListener("canplay", hideLoading, { once: true });
|
||||
dom.experimentVideo.addEventListener("loadedmetadata", function () {
|
||||
if (state.pendingStep === null) return;
|
||||
const pending = state.pendingStep;
|
||||
state.pendingStep = null;
|
||||
const duration = dom.experimentVideo.duration;
|
||||
if (Number.isFinite(duration) && duration > 0) {
|
||||
dom.experimentVideo.currentTime = pending === 0 ? 0 : duration / 2;
|
||||
renderStep(pending);
|
||||
}
|
||||
});
|
||||
dom.experimentVideo.addEventListener("error", function () {
|
||||
hideLoading();
|
||||
showToast("形成交线视频加载失败,请确认“contour-formation.mp4”在当前目录");
|
||||
});
|
||||
dom.experimentVideo.addEventListener("play", function () {
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
dom.hintText.textContent = "实验播放中:" + STEP_COPY[state.step].description;
|
||||
});
|
||||
dom.experimentVideo.addEventListener("pause", function () {
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
if (!state.selectedLandform && state.step >= 2) {
|
||||
dom.hintText.textContent = STEP_COPY[state.step].title + ":" + STEP_COPY[state.step].description;
|
||||
return;
|
||||
}
|
||||
if (!dom.experimentVideo.ended && dom.experimentVideo.currentTime > 0.12 && !state.selectedLandform) {
|
||||
dom.hintText.textContent = "实验已暂停 · 点击“继续实验”恢复播放";
|
||||
}
|
||||
});
|
||||
dom.experimentVideo.addEventListener("ended", function () {
|
||||
if (
|
||||
state.selectedLandform ||
|
||||
state.pendingLandform ||
|
||||
state.step > 1 ||
|
||||
!dom.experimentVideo.ended
|
||||
) return;
|
||||
dom.progress.style.width = "100%";
|
||||
beginStaticWorkflowSequence();
|
||||
});
|
||||
dom.experimentVideo.addEventListener("timeupdate", function () {
|
||||
const duration = dom.experimentVideo.duration;
|
||||
const ratio = Number.isFinite(duration) && duration > 0 ? dom.experimentVideo.currentTime / duration : 0;
|
||||
dom.progress.style.width = Math.max(0, Math.min(100, ratio * 100)) + "%";
|
||||
if (!state.selectedLandform && state.step === 0 && ratio >= 0.5) {
|
||||
renderStep(1);
|
||||
dom.hintText.textContent = "实验播放中:" + STEP_COPY[1].description;
|
||||
}
|
||||
if (!dom.experimentVideo.paused) updateMediaLabel(null);
|
||||
});
|
||||
|
||||
dom.playButton.addEventListener("click", toggleExperimentPlayback);
|
||||
dom.workflowOpen.addEventListener("click", playFromBeginning);
|
||||
dom.resetButton.addEventListener("click", resetExperience);
|
||||
dom.returnExperiment.addEventListener("click", resetExperience);
|
||||
dom.topViewToggle.addEventListener("click", toggleTopView);
|
||||
dom.terrainTabs.forEach(function (button) {
|
||||
button.addEventListener("click", function () { selectLandform(button.dataset.landform); });
|
||||
});
|
||||
dom.flowSteps.forEach(function (button) {
|
||||
button.addEventListener("click", function () { playStep(Number(button.dataset.step)); });
|
||||
});
|
||||
|
||||
dom.fullscreenButton.addEventListener("click", toggleFullscreen);
|
||||
document.addEventListener("fullscreenchange", function () {
|
||||
dom.fullscreenLabel.textContent = document.fullscreenElement ? "退出全屏" : "全屏";
|
||||
});
|
||||
dom.panelClose.addEventListener("click", function () {
|
||||
dom.controlPanel.classList.add("is-collapsed");
|
||||
dom.panelOpen.hidden = false;
|
||||
});
|
||||
dom.panelOpen.addEventListener("click", function () {
|
||||
dom.controlPanel.classList.remove("is-collapsed");
|
||||
dom.panelOpen.hidden = true;
|
||||
});
|
||||
|
||||
document.addEventListener("keydown", function (event) {
|
||||
if (event.code === "Space" && !/BUTTON|INPUT|VIDEO/.test(document.activeElement.tagName)) {
|
||||
event.preventDefault();
|
||||
toggleExperimentPlayback();
|
||||
}
|
||||
if (/^[1-5]$/.test(event.key) && !event.metaKey && !event.ctrlKey && !event.altKey) {
|
||||
const keys = ["peak", "ridge", "valley", "saddle", "cliff"];
|
||||
selectLandform(keys[Number(event.key) - 1]);
|
||||
}
|
||||
});
|
||||
|
||||
window.setTimeout(hideLoading, 7000);
|
||||
renderStep(0);
|
||||
renderObservation(DEFAULT_VIEW);
|
||||
updateViewToggle();
|
||||
updateMediaLabel(null);
|
||||
setPlayButton();
|
||||
|
||||
window.__GEO_LAB_TEST__ = {
|
||||
getState: function () {
|
||||
return {
|
||||
selectedLandform: state.selectedLandform,
|
||||
pendingLandform: state.pendingLandform,
|
||||
viewMode: state.viewMode,
|
||||
step: state.step,
|
||||
videoPlaying: !dom.experimentVideo.paused,
|
||||
videoTime: dom.experimentVideo.currentTime,
|
||||
videoSource: dom.experimentVideo.currentSrc || dom.experimentVideo.src,
|
||||
workflowDiagram: !dom.projectionDiagram.hasAttribute("hidden") ? "projection" : !dom.densityDiagram.hasAttribute("hidden") ? "density" : null,
|
||||
workflowAutoPlaying: state.workflowAutoPlaying,
|
||||
densityBackground: dom.densityBackground.classList.contains("is-visible"),
|
||||
scanning: dom.app.classList.contains("is-scanning"),
|
||||
terrainAnnotation: window.TerrainAnnotation ? window.TerrainAnnotation.getState() : null,
|
||||
fullscreen: Boolean(document.fullscreenElement)
|
||||
};
|
||||
},
|
||||
selectLandform: selectLandform,
|
||||
toggleTopView: toggleTopView,
|
||||
showExperiment: showExperiment,
|
||||
playStep: playStep,
|
||||
reset: resetExperience
|
||||
};
|
||||
})();
|
||||
@@ -1,663 +0,0 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
const STEP_COPY = [
|
||||
{ title: "等高切割", description: "观察水平面与山体在同一海拔相交,形成连续闭合线。" },
|
||||
{ title: "形成交线", description: "每个水平切面都会留下同高交线,多层交线共同描述山体起伏。" },
|
||||
{ title: "投影成图", description: "把各高度交线垂直投影到同一平面,得到完整等高线地形图。" },
|
||||
{ title: "疏密判坡", description: "等高线越密,坡度越陡;等高线越疏,坡度越缓。" }
|
||||
];
|
||||
|
||||
const DEFAULT_VIEW = {
|
||||
title: "实验流程",
|
||||
summary: "点击开始实验,在当前背景中观察等高切割与交线形成,再通过右侧图解理解垂直投影和疏密判坡。",
|
||||
features: ["同一条等高线上海拔相等", "相邻等高线高差保持一致"],
|
||||
hint: "点击“开始实验”,直接在当前画面播放形成交线视频"
|
||||
};
|
||||
|
||||
const LANDFORMS = {
|
||||
peak: {
|
||||
name: "山峰",
|
||||
subtitle: "闭合等高线",
|
||||
image: ""<<IMG:png>>"",
|
||||
topImage: ""<<IMG:png>>"",
|
||||
alt: "山峰立体示意图,蓝色等高线围绕山体逐级闭合",
|
||||
topAlt: "山峰真实俯视图,多层近同心闭合等高线向中心收缩",
|
||||
summary: "山峰四周较低、中心突起;等高线闭合成环,海拔数值由外向内逐渐升高。",
|
||||
features: ["中心海拔高、四周海拔低", "闭合线越向内,数值越大", "若数值向内降低,则应判为洼地"],
|
||||
hint: "山峰:闭合曲线,数值向中心升高"
|
||||
},
|
||||
ridge: {
|
||||
name: "山脊",
|
||||
subtitle: "凸低为脊",
|
||||
image: ""<<IMG:png>>"",
|
||||
topImage: ""<<IMG:png>>"",
|
||||
alt: "山脊立体示意图,蓝色等高线沿凸出的脊线向低处弯曲",
|
||||
topAlt: "山脊真实俯视图,等高线沿狭长高地呈舌状延伸",
|
||||
summary: "等高线弯曲部分向海拔低处凸出,脊线常成为两侧水系的分水岭。",
|
||||
features: ["等高线凸向低值方向", "脊线由高处向低处延伸", "雨水沿脊线两侧分流"],
|
||||
hint: "山脊:等高线向低处凸出,凸低为脊"
|
||||
},
|
||||
valley: {
|
||||
name: "山谷",
|
||||
subtitle: "凸高为谷",
|
||||
image: ""<<IMG:png>>"",
|
||||
topImage: ""<<IMG:png>>"",
|
||||
alt: "山谷立体示意图,两座山体之间的谷地有河流穿过",
|
||||
topAlt: "山谷真实俯视图,两侧坡面夹持低槽,等高线形成 V 形凹入",
|
||||
summary: "等高线弯曲部分向海拔高处凸出,谷底低洼并容易汇水形成河流。",
|
||||
features: ["等高线凸向高值方向", "V 形尖端指向上游高处", "谷底常发育河流"],
|
||||
hint: "山谷:等高线向高处凸出,凸高为谷"
|
||||
},
|
||||
saddle: {
|
||||
name: "鞍部",
|
||||
subtitle: "两峰之间",
|
||||
image: ""<<IMG:png>>"",
|
||||
topImage: ""<<IMG:png>>"",
|
||||
alt: "鞍部立体示意图,两座山峰之间形成马鞍状低地",
|
||||
topAlt: "鞍部真实俯视图,两组峰顶闭合圈之间的等高线明显收腰",
|
||||
summary: "鞍部位于相邻两座山峰之间,是沿山脊方向相对低洼的过渡地带。",
|
||||
features: ["两组闭合等高线相邻", "中部线条收窄,形似马鞍", "常是翻越山岭的低垭口"],
|
||||
hint: "鞍部:两峰之间相对低洼,俯视轮廓呈收腰形"
|
||||
},
|
||||
cliff: {
|
||||
name: "陡崖",
|
||||
subtitle: "密集或重合",
|
||||
image: ""<<IMG:png>>"",
|
||||
topImage: ""<<IMG:png>>"",
|
||||
alt: "陡崖立体示意图,崖壁处蓝色等高线高度密集",
|
||||
topAlt: "陡崖真实俯视图,崖壁处大量等高线极密集并近似重合",
|
||||
summary: "陡崖坡面近直立,不同高程的等高线会高度密集,局部可投影到同一位置而重合。",
|
||||
features: ["密集表示陡坡,重合才是陡崖特征", "单位水平距离内高差很大", "n 条线重合时:(n−1)d ≤ ΔH < (n+1)d"],
|
||||
hint: "陡崖:等高线密集或重合,坡度极陡"
|
||||
}
|
||||
};
|
||||
|
||||
const dom = {
|
||||
app: document.getElementById("app-shell"),
|
||||
experimentVideo: document.getElementById("experiment-video"),
|
||||
densityBackground: document.getElementById("density-background"),
|
||||
landformImage: document.getElementById("landform-image"),
|
||||
landformTopImage: document.getElementById("landform-top-image"),
|
||||
projectionDiagram: document.getElementById("projection-diagram"),
|
||||
densityDiagram: document.getElementById("density-diagram"),
|
||||
mediaLoading: document.getElementById("media-loading"),
|
||||
mediaLabelKicker: document.getElementById("media-label-kicker"),
|
||||
mediaLabelTitle: document.getElementById("media-label-title"),
|
||||
mediaLabelCopy: document.getElementById("media-label-copy"),
|
||||
progress: document.getElementById("video-progress-fill"),
|
||||
playButton: document.getElementById("play-button"),
|
||||
playIcon: document.getElementById("play-icon"),
|
||||
playLabel: document.getElementById("play-label"),
|
||||
resetButton: document.getElementById("reset-button"),
|
||||
fullscreenButton: document.getElementById("fullscreen-button"),
|
||||
fullscreenLabel: document.getElementById("fullscreen-label"),
|
||||
workflowOpen: document.getElementById("workflow-open"),
|
||||
flowSteps: Array.from(document.querySelectorAll(".flow-step[data-step]")),
|
||||
flowCount: document.getElementById("flow-count"),
|
||||
flowLineFill: document.getElementById("flow-line-fill"),
|
||||
taskTitle: document.getElementById("task-title"),
|
||||
taskDescription: document.getElementById("task-description"),
|
||||
terrainTabs: Array.from(document.querySelectorAll(".terrain-tab[data-landform]")),
|
||||
returnExperiment: document.getElementById("return-experiment"),
|
||||
observationHeading: document.getElementById("observation-heading"),
|
||||
observationSummary: document.getElementById("observation-summary"),
|
||||
featureList: document.getElementById("feature-list"),
|
||||
topViewToggle: document.getElementById("top-view-toggle"),
|
||||
topViewToggleLabel: document.getElementById("top-view-toggle-label"),
|
||||
topViewToggleHint: document.getElementById("top-view-toggle-hint"),
|
||||
topViewThumbnail: document.getElementById("top-view-thumbnail"),
|
||||
hintText: document.getElementById("hint-text"),
|
||||
controlPanel: document.querySelector(".control-panel"),
|
||||
panelClose: document.getElementById("panel-close"),
|
||||
panelOpen: document.getElementById("panel-open"),
|
||||
toast: document.getElementById("toast")
|
||||
};
|
||||
|
||||
const state = {
|
||||
selectedLandform: null,
|
||||
pendingLandform: null,
|
||||
viewMode: "perspective",
|
||||
step: 0,
|
||||
imageToken: 0,
|
||||
scanTimer: 0,
|
||||
annotationTimer: 0,
|
||||
toastTimer: 0,
|
||||
pendingStep: null,
|
||||
workflowTimer: 0,
|
||||
workflowRunToken: 0,
|
||||
workflowAutoPlaying: false
|
||||
};
|
||||
|
||||
const ICONS = {
|
||||
play: '<svg viewBox="0 0 24 24"><path d="m9 6 9 6-9 6V6Z"/></svg>',
|
||||
pause: '<svg viewBox="0 0 24 24"><path d="M7 6h4v12H7V6Zm6 0h4v12h-4V6Z"/></svg>'
|
||||
};
|
||||
|
||||
function showToast(message) {
|
||||
window.clearTimeout(state.toastTimer);
|
||||
dom.toast.textContent = message;
|
||||
dom.toast.classList.add("is-visible");
|
||||
state.toastTimer = window.setTimeout(function () {
|
||||
dom.toast.classList.remove("is-visible");
|
||||
}, 2600);
|
||||
}
|
||||
|
||||
function hideLoading() {
|
||||
dom.mediaLoading.classList.add("is-hidden");
|
||||
}
|
||||
|
||||
function cancelWorkflowSequence() {
|
||||
window.clearTimeout(state.workflowTimer);
|
||||
state.workflowTimer = 0;
|
||||
state.workflowRunToken += 1;
|
||||
state.workflowAutoPlaying = false;
|
||||
}
|
||||
|
||||
function setWorkflowDiagram(element, active) {
|
||||
element.toggleAttribute("hidden", !active);
|
||||
element.classList.toggle("is-active", active);
|
||||
}
|
||||
|
||||
function hideWorkflowVisuals() {
|
||||
setWorkflowDiagram(dom.projectionDiagram, false);
|
||||
setWorkflowDiagram(dom.densityDiagram, false);
|
||||
dom.densityBackground.classList.remove("is-visible");
|
||||
dom.app.classList.remove("has-workflow-visual");
|
||||
}
|
||||
|
||||
function syncWorkflowPresentation(index) {
|
||||
const safeIndex = Math.max(0, Math.min(3, Number(index) || 0));
|
||||
const isExperiment = !state.selectedLandform;
|
||||
const showProjection = isExperiment && safeIndex === 2;
|
||||
const showDensity = isExperiment && safeIndex === 3;
|
||||
const densityWasVisible = dom.densityBackground.classList.contains("is-visible");
|
||||
setWorkflowDiagram(dom.projectionDiagram, showProjection);
|
||||
setWorkflowDiagram(dom.densityDiagram, showDensity);
|
||||
dom.densityBackground.classList.toggle("is-visible", showDensity);
|
||||
dom.app.classList.toggle("has-workflow-visual", showProjection || showDensity);
|
||||
if (isExperiment) dom.experimentVideo.classList.toggle("is-visible", !showDensity);
|
||||
if (showDensity && !densityWasVisible) triggerScan(dom.densityBackground);
|
||||
}
|
||||
|
||||
function beginStaticWorkflowSequence() {
|
||||
cancelWorkflowSequence();
|
||||
const token = state.workflowRunToken;
|
||||
state.workflowAutoPlaying = true;
|
||||
renderStep(2);
|
||||
setPlayButton();
|
||||
dom.hintText.textContent = "自动演示:" + STEP_COPY[2].description;
|
||||
state.workflowTimer = window.setTimeout(function () {
|
||||
if (token !== state.workflowRunToken) return;
|
||||
renderStep(3);
|
||||
dom.hintText.textContent = "自动演示:" + STEP_COPY[3].description;
|
||||
state.workflowTimer = window.setTimeout(function () {
|
||||
if (token !== state.workflowRunToken) return;
|
||||
state.workflowTimer = 0;
|
||||
state.workflowAutoPlaying = false;
|
||||
setPlayButton();
|
||||
dom.hintText.textContent = "实验流程播放完成 · 可重新实验或选择典型地貌观察";
|
||||
}, 3600);
|
||||
}, 3200);
|
||||
}
|
||||
|
||||
function renderStep(index) {
|
||||
const safeIndex = Math.max(0, Math.min(3, Number(index) || 0));
|
||||
state.step = safeIndex;
|
||||
const copy = STEP_COPY[safeIndex];
|
||||
dom.flowCount.textContent = (safeIndex + 1) + "/4";
|
||||
dom.flowLineFill.style.width = (safeIndex / 3) * 100 + "%";
|
||||
dom.taskTitle.textContent = copy.title;
|
||||
dom.taskDescription.textContent = copy.description;
|
||||
dom.flowSteps.forEach(function (button, buttonIndex) {
|
||||
button.classList.toggle("is-active", buttonIndex === safeIndex);
|
||||
button.classList.toggle("is-complete", buttonIndex < safeIndex);
|
||||
button.setAttribute("aria-current", buttonIndex === safeIndex ? "step" : "false");
|
||||
});
|
||||
syncWorkflowPresentation(safeIndex);
|
||||
}
|
||||
|
||||
function renderObservation(view) {
|
||||
dom.observationHeading.textContent = view.name || view.title;
|
||||
dom.observationSummary.textContent = view.summary;
|
||||
dom.featureList.replaceChildren();
|
||||
view.features.forEach(function (feature) {
|
||||
const item = document.createElement("li");
|
||||
item.textContent = feature;
|
||||
dom.featureList.appendChild(item);
|
||||
});
|
||||
}
|
||||
|
||||
function setPlayButton() {
|
||||
const duration = dom.experimentVideo.duration;
|
||||
const finished = dom.experimentVideo.ended || (Number.isFinite(duration) && duration > 0 && dom.experimentVideo.currentTime >= duration - 0.08);
|
||||
if (!dom.experimentVideo.paused) {
|
||||
dom.playLabel.textContent = "暂停实验";
|
||||
dom.playIcon.innerHTML = ICONS.pause;
|
||||
return;
|
||||
}
|
||||
dom.playIcon.innerHTML = ICONS.play;
|
||||
if (!state.selectedLandform && state.step >= 2) {
|
||||
dom.playLabel.textContent = "重新实验";
|
||||
return;
|
||||
}
|
||||
if (finished) dom.playLabel.textContent = "重新实验";
|
||||
else if (dom.experimentVideo.currentTime > 0.12) dom.playLabel.textContent = "继续实验";
|
||||
else dom.playLabel.textContent = "开始实验";
|
||||
}
|
||||
|
||||
function updateMediaLabel(view) {
|
||||
if (view) {
|
||||
dom.mediaLabelKicker.textContent = state.viewMode === "top" ? "典型地貌 · 真实俯视图" : "典型地貌 · 立体示意";
|
||||
dom.mediaLabelTitle.textContent = view.name;
|
||||
dom.mediaLabelCopy.textContent = state.viewMode === "top" ? view.subtitle + "|" + view.summary : view.summary;
|
||||
return;
|
||||
}
|
||||
dom.mediaLabelKicker.textContent = "实验流程";
|
||||
dom.mediaLabelTitle.textContent = "形成交线与垂直投影";
|
||||
dom.mediaLabelCopy.textContent = dom.experimentVideo.paused
|
||||
? "点击“开始实验”,直接在当前画面播放形成交线视频"
|
||||
: STEP_COPY[state.step].description;
|
||||
}
|
||||
|
||||
function updateViewToggle() {
|
||||
const view = LANDFORMS[state.selectedLandform];
|
||||
const hasLandform = Boolean(view);
|
||||
const isTopView = hasLandform && state.viewMode === "top";
|
||||
dom.topViewToggle.disabled = !hasLandform;
|
||||
dom.topViewToggle.classList.toggle("is-active", isTopView);
|
||||
dom.topViewToggle.setAttribute("aria-pressed", String(isTopView));
|
||||
dom.topViewToggleLabel.textContent = isTopView ? "立体图" : "俯视图";
|
||||
dom.topViewToggleHint.textContent = hasLandform ? "点击切换" : "选择地貌后切换";
|
||||
dom.topViewToggle.setAttribute(
|
||||
"aria-label",
|
||||
hasLandform ? "切换为" + (isTopView ? "立体图" : "俯视图") : "请先选择一种典型地貌"
|
||||
);
|
||||
|
||||
if (!view) {
|
||||
dom.topViewThumbnail.hidden = true;
|
||||
dom.topViewThumbnail.removeAttribute("src");
|
||||
dom.topViewThumbnail.alt = "";
|
||||
return;
|
||||
}
|
||||
dom.topViewThumbnail.src = isTopView ? view.image : view.topImage;
|
||||
dom.topViewThumbnail.alt = isTopView ? view.name + "立体图预览" : view.name + "真实俯视图预览";
|
||||
dom.topViewThumbnail.hidden = false;
|
||||
}
|
||||
|
||||
function triggerScan(targetImage) {
|
||||
window.clearTimeout(state.scanTimer);
|
||||
dom.app.classList.remove("is-scanning");
|
||||
dom.densityBackground.classList.remove("is-revealing");
|
||||
dom.landformImage.classList.remove("is-revealing");
|
||||
dom.landformTopImage.classList.remove("is-revealing");
|
||||
void dom.app.offsetWidth;
|
||||
dom.app.classList.add("is-scanning");
|
||||
(targetImage || (state.viewMode === "top" ? dom.landformTopImage : dom.landformImage)).classList.add("is-revealing");
|
||||
state.scanTimer = window.setTimeout(function () {
|
||||
dom.app.classList.remove("is-scanning");
|
||||
dom.densityBackground.classList.remove("is-revealing");
|
||||
dom.landformImage.classList.remove("is-revealing");
|
||||
dom.landformTopImage.classList.remove("is-revealing");
|
||||
}, 1220);
|
||||
}
|
||||
|
||||
async function decodeImage(image) {
|
||||
if (typeof image.decode === "function") {
|
||||
await image.decode();
|
||||
return;
|
||||
}
|
||||
if (!image.complete) {
|
||||
await new Promise(function (resolve, reject) {
|
||||
image.addEventListener("load", resolve, { once: true });
|
||||
image.addEventListener("error", reject, { once: true });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function hideTerrainAnnotation() {
|
||||
window.clearTimeout(state.annotationTimer);
|
||||
dom.app.classList.remove("is-landform");
|
||||
if (window.TerrainAnnotation) window.TerrainAnnotation.hide();
|
||||
}
|
||||
|
||||
function clearTerrainAnnotationNow() {
|
||||
window.clearTimeout(state.annotationTimer);
|
||||
state.annotationTimer = 0;
|
||||
if (window.TerrainAnnotation) window.TerrainAnnotation.hide(true);
|
||||
}
|
||||
|
||||
function scheduleTerrainAnnotation(withScan) {
|
||||
window.clearTimeout(state.annotationTimer);
|
||||
dom.app.classList.add("is-landform");
|
||||
state.annotationTimer = window.setTimeout(function () {
|
||||
if (!state.selectedLandform || !window.TerrainAnnotation) return;
|
||||
window.TerrainAnnotation.show(state.selectedLandform, state.viewMode);
|
||||
}, withScan ? 420 : 0);
|
||||
}
|
||||
|
||||
function applyLandformView(view, withScan) {
|
||||
const isTopView = state.viewMode === "top";
|
||||
hideWorkflowVisuals();
|
||||
dom.experimentVideo.classList.remove("is-visible");
|
||||
dom.landformImage.classList.toggle("is-visible", !isTopView);
|
||||
dom.landformTopImage.classList.toggle("is-visible", isTopView);
|
||||
updateMediaLabel(view);
|
||||
updateViewToggle();
|
||||
dom.hintText.textContent = isTopView
|
||||
? view.name + "俯视图:" + view.hint.replace(view.name + ":", "")
|
||||
: view.hint;
|
||||
if (withScan) triggerScan();
|
||||
scheduleTerrainAnnotation(withScan);
|
||||
}
|
||||
|
||||
function collapsePanelForCompactView() {
|
||||
if (!window.matchMedia("(max-width: 680px)").matches) return;
|
||||
dom.controlPanel.classList.add("is-collapsed");
|
||||
dom.panelOpen.hidden = false;
|
||||
}
|
||||
|
||||
async function selectLandform(key) {
|
||||
const view = LANDFORMS[key];
|
||||
if (!view) return;
|
||||
const token = ++state.imageToken;
|
||||
cancelWorkflowSequence();
|
||||
state.pendingLandform = key;
|
||||
clearTerrainAnnotationNow();
|
||||
hideWorkflowVisuals();
|
||||
const nextMode = state.selectedLandform ? state.viewMode : "perspective";
|
||||
dom.experimentVideo.pause();
|
||||
const perspectiveProbe = new Image();
|
||||
const topProbe = new Image();
|
||||
perspectiveProbe.src = view.image;
|
||||
topProbe.src = view.topImage;
|
||||
|
||||
try {
|
||||
await Promise.all([decodeImage(perspectiveProbe), decodeImage(topProbe)]);
|
||||
} catch (error) {
|
||||
if (token === state.imageToken) {
|
||||
state.pendingLandform = null;
|
||||
syncWorkflowPresentation(state.step);
|
||||
showToast("地貌图片加载失败,请检查对应资源文件");
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (token !== state.imageToken) return;
|
||||
|
||||
state.pendingLandform = null;
|
||||
state.selectedLandform = key;
|
||||
state.viewMode = nextMode;
|
||||
dom.landformImage.src = view.image;
|
||||
dom.landformImage.alt = view.alt;
|
||||
dom.landformTopImage.src = view.topImage;
|
||||
dom.landformTopImage.alt = view.topAlt;
|
||||
|
||||
dom.terrainTabs.forEach(function (button) {
|
||||
const active = button.dataset.landform === key;
|
||||
button.classList.toggle("is-active", active);
|
||||
button.setAttribute("aria-pressed", String(active));
|
||||
});
|
||||
dom.returnExperiment.hidden = false;
|
||||
renderObservation(view);
|
||||
applyLandformView(view, true);
|
||||
collapsePanelForCompactView();
|
||||
setPlayButton();
|
||||
}
|
||||
|
||||
async function toggleTopView() {
|
||||
const view = LANDFORMS[state.selectedLandform];
|
||||
if (!view) return;
|
||||
const previousMode = state.viewMode;
|
||||
const token = ++state.imageToken;
|
||||
state.pendingLandform = null;
|
||||
clearTerrainAnnotationNow();
|
||||
state.viewMode = previousMode === "top" ? "perspective" : "top";
|
||||
try {
|
||||
await decodeImage(state.viewMode === "top" ? dom.landformTopImage : dom.landformImage);
|
||||
} catch (error) {
|
||||
state.viewMode = previousMode;
|
||||
showToast("对应视图加载失败,请检查图片资源");
|
||||
return;
|
||||
}
|
||||
if (token !== state.imageToken) return;
|
||||
applyLandformView(view, true);
|
||||
collapsePanelForCompactView();
|
||||
}
|
||||
|
||||
function showExperiment() {
|
||||
cancelWorkflowSequence();
|
||||
state.imageToken += 1;
|
||||
state.pendingLandform = null;
|
||||
state.selectedLandform = null;
|
||||
state.viewMode = "perspective";
|
||||
dom.app.classList.remove("is-scanning");
|
||||
hideWorkflowVisuals();
|
||||
hideTerrainAnnotation();
|
||||
dom.landformImage.classList.remove("is-visible", "is-revealing");
|
||||
dom.landformTopImage.classList.remove("is-visible", "is-revealing");
|
||||
dom.experimentVideo.classList.add("is-visible");
|
||||
dom.terrainTabs.forEach(function (button) {
|
||||
button.classList.remove("is-active");
|
||||
button.setAttribute("aria-pressed", "false");
|
||||
});
|
||||
dom.returnExperiment.hidden = true;
|
||||
renderObservation(DEFAULT_VIEW);
|
||||
updateViewToggle();
|
||||
updateMediaLabel(null);
|
||||
}
|
||||
|
||||
function playVideo() {
|
||||
dom.experimentVideo.play().then(function () {
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
dom.hintText.textContent = "实验播放中:" + STEP_COPY[state.step].description;
|
||||
}).catch(function (error) {
|
||||
if (error && error.name === "AbortError") return;
|
||||
showToast("视频暂时无法播放,请检查浏览器媒体权限");
|
||||
});
|
||||
}
|
||||
|
||||
function toggleExperimentPlayback() {
|
||||
if (state.selectedLandform || state.pendingLandform || state.step >= 2) {
|
||||
showExperiment();
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
} else {
|
||||
state.pendingStep = 0;
|
||||
}
|
||||
renderStep(0);
|
||||
playVideo();
|
||||
return;
|
||||
}
|
||||
if (!dom.experimentVideo.paused) {
|
||||
dom.experimentVideo.pause();
|
||||
return;
|
||||
}
|
||||
const duration = dom.experimentVideo.duration;
|
||||
if (dom.experimentVideo.ended || (Number.isFinite(duration) && dom.experimentVideo.currentTime >= duration - 0.08)) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
renderStep(0);
|
||||
}
|
||||
playVideo();
|
||||
}
|
||||
|
||||
function playFromBeginning() {
|
||||
showExperiment();
|
||||
renderStep(0);
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
} else {
|
||||
state.pendingStep = 0;
|
||||
}
|
||||
playVideo();
|
||||
}
|
||||
|
||||
function playStep(index) {
|
||||
const safeIndex = Math.max(0, Math.min(3, Number(index) || 0));
|
||||
showExperiment();
|
||||
renderStep(safeIndex);
|
||||
if (safeIndex <= 1) {
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = safeIndex === 0 ? 0 : dom.experimentVideo.duration / 2;
|
||||
} else {
|
||||
state.pendingStep = safeIndex;
|
||||
}
|
||||
playVideo();
|
||||
return;
|
||||
}
|
||||
state.pendingStep = null;
|
||||
dom.experimentVideo.pause();
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
dom.hintText.textContent = STEP_COPY[safeIndex].title + ":" + STEP_COPY[safeIndex].description;
|
||||
}
|
||||
|
||||
function resetExperience() {
|
||||
state.pendingStep = null;
|
||||
dom.experimentVideo.pause();
|
||||
showExperiment();
|
||||
renderStep(0);
|
||||
if (Number.isFinite(dom.experimentVideo.duration) && dom.experimentVideo.duration > 0) {
|
||||
dom.experimentVideo.currentTime = 0;
|
||||
} else {
|
||||
state.pendingStep = 0;
|
||||
}
|
||||
dom.progress.style.width = "0%";
|
||||
dom.hintText.textContent = DEFAULT_VIEW.hint;
|
||||
setPlayButton();
|
||||
showToast("已重置到视频首帧");
|
||||
}
|
||||
|
||||
function toggleFullscreen() {
|
||||
if (!document.fullscreenElement) {
|
||||
if (!dom.app.requestFullscreen) {
|
||||
showToast("当前浏览器不支持全屏");
|
||||
return;
|
||||
}
|
||||
dom.app.requestFullscreen().catch(function () { showToast("当前浏览器未允许进入全屏"); });
|
||||
return;
|
||||
}
|
||||
if (document.exitFullscreen) document.exitFullscreen().catch(function () {});
|
||||
}
|
||||
|
||||
dom.experimentVideo.addEventListener("loadeddata", hideLoading, { once: true });
|
||||
dom.experimentVideo.addEventListener("canplay", hideLoading, { once: true });
|
||||
dom.experimentVideo.addEventListener("loadedmetadata", function () {
|
||||
if (state.pendingStep === null) return;
|
||||
const pending = state.pendingStep;
|
||||
state.pendingStep = null;
|
||||
const duration = dom.experimentVideo.duration;
|
||||
if (Number.isFinite(duration) && duration > 0) {
|
||||
dom.experimentVideo.currentTime = pending === 0 ? 0 : duration / 2;
|
||||
renderStep(pending);
|
||||
}
|
||||
});
|
||||
dom.experimentVideo.addEventListener("error", function () {
|
||||
hideLoading();
|
||||
showToast("形成交线视频加载失败,请确认“contour-formation.mp4”在当前目录");
|
||||
});
|
||||
dom.experimentVideo.addEventListener("play", function () {
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
dom.hintText.textContent = "实验播放中:" + STEP_COPY[state.step].description;
|
||||
});
|
||||
dom.experimentVideo.addEventListener("pause", function () {
|
||||
setPlayButton();
|
||||
updateMediaLabel(null);
|
||||
if (!state.selectedLandform && state.step >= 2) {
|
||||
dom.hintText.textContent = STEP_COPY[state.step].title + ":" + STEP_COPY[state.step].description;
|
||||
return;
|
||||
}
|
||||
if (!dom.experimentVideo.ended && dom.experimentVideo.currentTime > 0.12 && !state.selectedLandform) {
|
||||
dom.hintText.textContent = "实验已暂停 · 点击“继续实验”恢复播放";
|
||||
}
|
||||
});
|
||||
dom.experimentVideo.addEventListener("ended", function () {
|
||||
if (
|
||||
state.selectedLandform ||
|
||||
state.pendingLandform ||
|
||||
state.step > 1 ||
|
||||
!dom.experimentVideo.ended
|
||||
) return;
|
||||
dom.progress.style.width = "100%";
|
||||
beginStaticWorkflowSequence();
|
||||
});
|
||||
dom.experimentVideo.addEventListener("timeupdate", function () {
|
||||
const duration = dom.experimentVideo.duration;
|
||||
const ratio = Number.isFinite(duration) && duration > 0 ? dom.experimentVideo.currentTime / duration : 0;
|
||||
dom.progress.style.width = Math.max(0, Math.min(100, ratio * 100)) + "%";
|
||||
if (!state.selectedLandform && state.step === 0 && ratio >= 0.5) {
|
||||
renderStep(1);
|
||||
dom.hintText.textContent = "实验播放中:" + STEP_COPY[1].description;
|
||||
}
|
||||
if (!dom.experimentVideo.paused) updateMediaLabel(null);
|
||||
});
|
||||
|
||||
dom.playButton.addEventListener("click", toggleExperimentPlayback);
|
||||
dom.workflowOpen.addEventListener("click", playFromBeginning);
|
||||
dom.resetButton.addEventListener("click", resetExperience);
|
||||
dom.returnExperiment.addEventListener("click", resetExperience);
|
||||
dom.topViewToggle.addEventListener("click", toggleTopView);
|
||||
dom.terrainTabs.forEach(function (button) {
|
||||
button.addEventListener("click", function () { selectLandform(button.dataset.landform); });
|
||||
});
|
||||
dom.flowSteps.forEach(function (button) {
|
||||
button.addEventListener("click", function () { playStep(Number(button.dataset.step)); });
|
||||
});
|
||||
|
||||
dom.fullscreenButton.addEventListener("click", toggleFullscreen);
|
||||
document.addEventListener("fullscreenchange", function () {
|
||||
dom.fullscreenLabel.textContent = document.fullscreenElement ? "退出全屏" : "全屏";
|
||||
});
|
||||
dom.panelClose.addEventListener("click", function () {
|
||||
dom.controlPanel.classList.add("is-collapsed");
|
||||
dom.panelOpen.hidden = false;
|
||||
});
|
||||
dom.panelOpen.addEventListener("click", function () {
|
||||
dom.controlPanel.classList.remove("is-collapsed");
|
||||
dom.panelOpen.hidden = true;
|
||||
});
|
||||
|
||||
document.addEventListener("keydown", function (event) {
|
||||
if (event.code === "Space" && !/BUTTON|INPUT|VIDEO/.test(document.activeElement.tagName)) {
|
||||
event.preventDefault();
|
||||
toggleExperimentPlayback();
|
||||
}
|
||||
if (/^[1-5]$/.test(event.key) && !event.metaKey && !event.ctrlKey && !event.altKey) {
|
||||
const keys = ["peak", "ridge", "valley", "saddle", "cliff"];
|
||||
selectLandform(keys[Number(event.key) - 1]);
|
||||
}
|
||||
});
|
||||
|
||||
window.setTimeout(hideLoading, 7000);
|
||||
renderStep(0);
|
||||
renderObservation(DEFAULT_VIEW);
|
||||
updateViewToggle();
|
||||
updateMediaLabel(null);
|
||||
setPlayButton();
|
||||
|
||||
window.__GEO_LAB_TEST__ = {
|
||||
getState: function () {
|
||||
return {
|
||||
selectedLandform: state.selectedLandform,
|
||||
pendingLandform: state.pendingLandform,
|
||||
viewMode: state.viewMode,
|
||||
step: state.step,
|
||||
videoPlaying: !dom.experimentVideo.paused,
|
||||
videoTime: dom.experimentVideo.currentTime,
|
||||
videoSource: dom.experimentVideo.currentSrc || dom.experimentVideo.src,
|
||||
workflowDiagram: !dom.projectionDiagram.hasAttribute("hidden") ? "projection" : !dom.densityDiagram.hasAttribute("hidden") ? "density" : null,
|
||||
workflowAutoPlaying: state.workflowAutoPlaying,
|
||||
densityBackground: dom.densityBackground.classList.contains("is-visible"),
|
||||
scanning: dom.app.classList.contains("is-scanning"),
|
||||
terrainAnnotation: window.TerrainAnnotation ? window.TerrainAnnotation.getState() : null,
|
||||
fullscreen: Boolean(document.fullscreenElement)
|
||||
};
|
||||
},
|
||||
selectLandform: selectLandform,
|
||||
toggleTopView: toggleTopView,
|
||||
showExperiment: showExperiment,
|
||||
playStep: playStep,
|
||||
reset: resetExperience
|
||||
};
|
||||
})();
|
||||