Skip to content

Commit

Permalink
パラメーターパネルを表示するかどうかの設定を開発時のみ機能として追加 [update snapshots]
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprogramming committed Jan 5, 2025
1 parent c219876 commit 4bdab0e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/components/Dialog/SettingDialog/SettingDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,15 @@
)
"
/>
<ToggleCell
v-if="!isProduction"
title="[開発時のみ機能] パラメーターパネルの表示"
description="ONの場合、パラメーターパネルが表示されます。"
:modelValue="experimentalSetting.showParameterPanel"
@update:modelValue="
changeExperimentalSetting('showParameterPanel', $event)
"
/>
</div>
<div class="setting-card">
<h5 class="headline">データ収集</h5>
Expand Down
4 changes: 3 additions & 1 deletion src/components/Sing/ScoreSequencer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,9 @@ const phraseInfosInOtherTracks = computed(() => {
});
const parameterPanelHeight = ref(300);
const isParameterPanelOpen = ref(false);
const isParameterPanelOpen = computed(
() => store.state.experimentalSetting.showParameterPanel,
);
const setParameterPanelHeight = (height: number) => {
if (isParameterPanelOpen.value) {
Expand Down
1 change: 1 addition & 0 deletions src/store/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const settingStoreState: SettingStoreState = {
enableMorphing: false,
enableMultiSelect: false,
shouldKeepTuningOnTextChange: false,
showParameterPanel: false,
},
splitTextWhenPaste: "PERIOD_AND_NEW_LINE",
splitterPosition: {
Expand Down
1 change: 1 addition & 0 deletions src/type/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ export const experimentalSettingSchema = z.object({
enableMorphing: z.boolean().default(false),
enableMultiSelect: z.boolean().default(false),
shouldKeepTuningOnTextChange: z.boolean().default(false),
showParameterPanel: z.boolean().default(false),
});

export type ExperimentalSettingType = z.infer<typeof experimentalSettingSchema>;
Expand Down

0 comments on commit 4bdab0e

Please sign in to comment.