Files
gpx.studio/website/src/lib/docs/zh/files-and-stats.mdx
T

110 lines
3.8 KiB
Plaintext
Raw Normal View History

2024-07-23 17:21:34 +02:00
---
2025-01-01 14:41:42 +01:00
title: 文件和统计
2024-07-23 17:21:34 +02:00
---
2025-05-20 00:11:43 +02:00
<script lang="ts">
2025-06-21 21:07:36 +02:00
import { ChartNoAxesColumn } from '@lucide/svelte';
2024-07-23 17:21:34 +02:00
import DocsNote from '$lib/components/docs/DocsNote.svelte';
2025-10-20 20:17:47 +02:00
import ElevationProfile from '$lib/components/elevation-profile/ElevationProfile.svelte';
2025-05-20 00:11:43 +02:00
import GPXStatistics from '$lib/components/GPXStatistics.svelte';
import { exampleGPXFile } from '$lib/assets/example';
import { writable } from 'svelte/store';
let gpxStatistics = writable(exampleGPXFile.getStatistics());
let slicedGPXStatistics = writable(undefined);
2026-04-02 18:43:41 +02:00
let hoveredPoint = writable(null);
2025-05-20 00:11:43 +02:00
let additionalDatasets = writable(['speed', 'atemp']);
2025-10-22 19:05:20 +02:00
let elevationFill = writable(undefined);
2024-07-23 17:21:34 +02:00
</script>
# { title }
2024-09-26 11:49:59 +02:00
## 文件列表
2024-07-23 17:21:34 +02:00
2025-01-09 09:03:18 +01:00
所有 [已打开](./menu/file) 文件将出现在地图底部,并显示为不同标签页。
2025-01-03 14:19:47 +01:00
拖拽标签页可重新排序。
2025-01-09 09:03:18 +01:00
当文件较多时,支持在标签页列表中进行滚动切换。
2024-07-23 17:21:34 +02:00
<DocsNote>
2025-01-09 09:03:18 +01:00
使用鼠标时,须按住 <kbd>Shift</kbd> 以水平滚动。
2024-07-23 17:21:34 +02:00
</DocsNote>
2025-01-01 14:41:42 +01:00
### 文件选择
2024-07-23 17:21:34 +02:00
2025-01-09 09:03:18 +01:00
点击标签页,可在文件之间切换以检查其统计数据,或执行 [编辑](./menu/edit) 和 [工具](./toolbar) 操作。
按住 <kbd>Ctrl/Cmd</kbd> 键可选中/取消选中文件,按住 <kbd>Shift</kbd> 以多选。
大多数 [编辑](./menu/edit) 和 [工具](./toolbar) 操作支持同时应用于多个文件。
2024-07-23 17:21:34 +02:00
<DocsNote>
2025-01-09 09:03:18 +01:00
支持使用键盘上的箭头键浏览文件,并使用 <kbd>Shift</kbd> 多选。
2024-07-23 17:21:34 +02:00
</DocsNote>
2025-01-01 14:41:42 +01:00
### 编辑
2024-07-23 17:21:34 +02:00
2025-01-09 09:03:18 +01:00
右键点击文件标签页,可访问与 [编辑](./menu/edit) 中相同的操作。
2024-07-23 17:21:34 +02:00
2025-01-01 14:41:42 +01:00
### 树形布局
2024-07-23 17:21:34 +02:00
2025-01-09 09:03:18 +01:00
正如 [显示](./menu/view) 中所述,文件列表可切换为树形布局。
2025-01-01 14:41:42 +01:00
此布局非常适合管理大量已打开的文件,文件将被组织成一个纵向列表并显示在地图右侧。
2025-01-09 09:03:18 +01:00
在文件树中,展开可折叠部分可检查其中所包含的 [轨迹、路段和兴趣点](./gpx) 等要素。
2024-07-23 17:21:34 +02:00
2025-01-09 09:03:18 +01:00
[编辑](./menu/edit) 和 [工具](./toolbar) 亦可被用于文件内部要素。
此外,拖拽内部要素可对其重新排序,或将它们移动到其他层级甚至另一个文件中。
2024-07-23 17:21:34 +02:00
<DocsNote>
2025-01-09 09:03:18 +01:00
拖拽地图和文件列表之间的分隔符可以调整后者大小。
2024-07-23 17:21:34 +02:00
</DocsNote>
2025-01-09 09:03:18 +01:00
## 海拔剖面图和统计数据
2024-07-23 17:21:34 +02:00
2025-01-03 14:19:47 +01:00
已选择文件的海拔剖面图和统计数据位于界面底部。
2024-07-23 17:21:34 +02:00
<DocsNote>
2025-01-09 09:03:18 +01:00
拖拽地图和海拔剖面图之间的分隔符可以调整后者大小。
2024-07-23 17:21:34 +02:00
</DocsNote>
2025-01-09 09:03:18 +01:00
### 交互式数据
2024-07-23 17:21:34 +02:00
2025-01-09 09:03:18 +01:00
将鼠标悬停在海拔剖面图上,光标位置将显示相关统计数据。
2024-08-12 18:39:04 +02:00
2025-01-09 09:03:18 +01:00
若想获取特定部分的统计数据,可在图上拖拽以形成一个矩形选区。
点击剖面图将重置选区。
2024-07-23 17:21:34 +02:00
2025-01-09 09:03:18 +01:00
海拔剖面图可通过鼠标滚轮进行缩放,或按住 <kbd>Shift</kbd> 键并用鼠标拖动以左右移动。
2024-08-12 18:39:04 +02:00
2025-05-20 00:11:43 +02:00
<div class="h-48 w-full">
<ElevationProfile
{gpxStatistics}
{slicedGPXStatistics}
2026-04-02 18:43:41 +02:00
{hoveredPoint}
2025-10-22 19:05:20 +02:00
{additionalDatasets}
{elevationFill}
2025-05-20 00:11:43 +02:00
/>
</div>
2026-04-02 18:43:41 +02:00
<div class="flex flex-col items-center w-full">
<GPXStatistics
{gpxStatistics}
{slicedGPXStatistics}
orientation={'horizontal'}
/>
2025-05-20 00:11:43 +02:00
</div>
2025-01-09 09:03:18 +01:00
### 补充数据
2024-07-23 17:21:34 +02:00
2025-01-03 14:19:47 +01:00
使用海拔剖面图右下方的 <kbd><ChartNoAxesColumn size="16" class="inline-block" style="margin-bottom: 2px"/></kbd> 按钮,支持通过以下方式为其着色:
2024-07-23 17:21:34 +02:00
2025-06-07 11:29:19 +02:00
- 根据海拔数据计算得到的 **坡度** 信息
- 或来自 <a href="https://www.openstreetmap.org/" target="_blank">OpenStreetMap</a> 的 <a href="https://wiki.openstreetmap.org/wiki/Key:surface" target="_blank">surface</a> 和 <a href="https://wiki.openstreetmap.org/wiki/Key:highway" target="_blank">highway</a> 标签。
注意,该方法仅适用于通过 **gpx.studio** 创建的文件。
2024-07-23 17:21:34 +02:00
2025-01-09 09:03:18 +01:00
其中亦可展示 **速度**、**心率**、**节奏**、**温度** 和 **功率** 等数据。