feat(stage-ui): scale settings (#1554)

---------

Co-authored-by-agent: Cursor
This commit is contained in:
Lulu
2026-04-05 02:54:58 +08:00
committed by GitHub
parent 476ef2018f
commit 744503a10e
16 changed files with 63 additions and 1 deletions
@@ -28,6 +28,7 @@ withDefaults(defineProps<{
live2dExpressionEnabled?: boolean
live2dShadowEnabled?: boolean
live2dMaxFps?: number
live2dRenderScale?: number
}>(), {
paused: false,
focusAt: () => ({ x: 0, y: 0 }),
@@ -41,6 +42,7 @@ withDefaults(defineProps<{
live2dExpressionEnabled: true,
live2dShadowEnabled: true,
live2dMaxFps: 0,
live2dRenderScale: 2,
})
const componentState = defineModel<'pending' | 'loading' | 'mounted'>('state', { default: 'pending' })
@@ -73,7 +75,7 @@ defineExpose({
v-model:state="componentStateCanvas"
:width="width"
:height="height"
:resolution="2"
:resolution="live2dRenderScale"
:max-fps="live2dMaxFps"
max-h="100dvh"
>