mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-27 00:14:12 +02:00
note
This commit is contained in:
@@ -69,7 +69,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
>
|
>
|
||||||
<template #label>wallpaper</template>
|
<template #label>wallpaper</template>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる -->
|
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる。ワーカーとの間でラグがあるため、少し前の値がまたmodelValueとしてフィードバックされてしまうためだと思われる -->
|
||||||
<MkInput :modelValue="getHex(options.ceiling.color)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ ceiling: { ...options.ceiling, color: c } }); }">
|
<MkInput :modelValue="getHex(options.ceiling.color)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ ceiling: { ...options.ceiling, color: c } }); }">
|
||||||
<template #label>color</template>
|
<template #label>color</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
@@ -86,7 +86,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
>
|
>
|
||||||
<template #label>material</template>
|
<template #label>material</template>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる -->
|
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる。ワーカーとの間でラグがあるため、少し前の値がまたmodelValueとしてフィードバックされてしまうためだと思われる -->
|
||||||
<MkInput :modelValue="getHex(options.flooring.color)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ flooring: { ...options.flooring, color: c } }); }">
|
<MkInput :modelValue="getHex(options.flooring.color)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ flooring: { ...options.flooring, color: c } }); }">
|
||||||
<template #label>color</template>
|
<template #label>color</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
>
|
>
|
||||||
<template #label>wallpaper</template>
|
<template #label>wallpaper</template>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる -->
|
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる。ワーカーとの間でラグがあるため、少し前の値がまたmodelValueとしてフィードバックされてしまうためだと思われる -->
|
||||||
<MkInput :modelValue="getHex(options.color)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ color: c }); }">
|
<MkInput :modelValue="getHex(options.color)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ color: c }); }">
|
||||||
<template #label>color</template>
|
<template #label>color</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
>
|
>
|
||||||
<template #label>wallpaper</template>
|
<template #label>wallpaper</template>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる -->
|
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる。ワーカーとの間でラグがあるため、少し前の値がまたmodelValueとしてフィードバックされてしまうためだと思われる -->
|
||||||
<MkInput :modelValue="getHex(options.color)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ color: c }); }">
|
<MkInput :modelValue="getHex(options.color)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ color: c }); }">
|
||||||
<template #label>color</template>
|
<template #label>color</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
@@ -32,7 +32,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
>
|
>
|
||||||
<template #label>beam material</template>
|
<template #label>beam material</template>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる -->
|
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる。ワーカーとの間でラグがあるため、少し前の値がまたmodelValueとしてフィードバックされてしまうためだと思われる -->
|
||||||
<MkInput :modelValue="getHex(options.beamColor)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ beamColor: c }); }">
|
<MkInput :modelValue="getHex(options.beamColor)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ beamColor: c }); }">
|
||||||
<template #label>beam color</template>
|
<template #label>beam color</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
<template #label>Heya type</template>
|
<template #label>Heya type</template>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
|
|
||||||
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる -->
|
<!-- debounceしないとカラーピッカー上で高速でなぞったときになぜか無限ループになる。ワーカーとの間でラグがあるため、少し前の値がまたmodelValueとしてフィードバックされてしまうためだと思われる -->
|
||||||
<MkInput :modelValue="getHex(controller.roomState.value.roomLightColor)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) controller.updateRoomLightColor(c); }">
|
<MkInput :modelValue="getHex(controller.roomState.value.roomLightColor)" type="color" debounce @update:modelValue="v => { const c = getRgb(v); if (c != null) controller.updateRoomLightColor(c); }">
|
||||||
<template #label>light color</template>
|
<template #label>light color</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
|||||||
Reference in New Issue
Block a user