体积显示
This commit is contained in:
1 parent
46083c8d2a
commit
cffbd49eff
20 files changed
+1295
-1262
No files matched your search
@@ -21,6 +21,7 @@ export type SystemSettingsState = Pick<SettingsState,
|
||||
| 'tickWidth'
|
||||
| 'showAxisLabels'
|
||||
| 'unsavedChangesPrompt'
|
||||
| 'showProjectSize'
|
||||
| 'axisColor'
|
||||
>
|
||||
|
||||
@@ -50,6 +51,7 @@ export function captureSystemSettings(settings: SettingsState): SystemSettingsSt
|
||||
tickWidth: settings.tickWidth,
|
||||
showAxisLabels: settings.showAxisLabels,
|
||||
unsavedChangesPrompt: settings.unsavedChangesPrompt,
|
||||
showProjectSize: settings.showProjectSize,
|
||||
axisColor: settings.axisColor,
|
||||
}
|
||||
}
|
||||
@@ -74,6 +76,7 @@ function normalizedSystemSettings(value: Partial<SystemSettingsState>, current:
|
||||
tickWidth: clamp(value.tickWidth, 1, 5, current.tickWidth),
|
||||
showAxisLabels: booleanValue('showAxisLabels'),
|
||||
unsavedChangesPrompt: booleanValue('unsavedChangesPrompt'),
|
||||
showProjectSize: booleanValue('showProjectSize'),
|
||||
axisColor,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user