Skip to content

Commit 74c1da7

Browse files
committed
🚸 完善自定义设置项
1 parent d6639c2 commit 74c1da7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

app/src/locales/zh_CN.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ settings:
301301
开启后,W S A D按键的移动视角方向会相反
302302
原本的移动逻辑是移动悬浮在画面上的摄像机,但如果看成是移动画布,这样就反了
303303
于是就有了这个选项
304+
cameraResetViewPaddingRate:
305+
title: 视野重置时,边缘留白系数
306+
description: |
307+
值为1 表示边缘完全不留白。
308+
值为2 表示留白内容恰好为自身内容的一倍
304309
allowAddCycleEdge:
305310
title: 允许在节点之间添加自环
306311
description: |

app/src/pages/settings/control.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ export default function Control() {
5858

5959
<FieldGroup title="Camera 摄像机/视野/相关" icon={<Fullscreen />}>
6060
<SettingField icon={<ScanEye />} settingKey="scaleExponent" type="slider" min={0} max={1} step={0.01} />
61+
<SettingField
62+
icon={<Fullscreen />}
63+
settingKey="cameraResetViewPaddingRate"
64+
type="slider"
65+
min={1}
66+
max={2}
67+
step={0.05}
68+
/>
6169
<SettingField
6270
icon={<ScanEye />}
6371
settingKey="cameraKeyboardScaleRate"

0 commit comments

Comments
 (0)