feat(stage-ui): scale settings (#1554)
--------- Co-authored-by-agent: Cursor
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user