|
@@ -39,9 +39,11 @@ const targetWrapperStyle = computed(() => ({
|
|
|
|
|
|
|
|
const targetAreaStyle = computed(() => {
|
|
const targetAreaStyle = computed(() => {
|
|
|
return {
|
|
return {
|
|
|
- '--kb-scale': scale.value,
|
|
|
|
|
- width: `${DESIGN_WIDTH * scale.value}px`,
|
|
|
|
|
- height: `${DESIGN_HEIGHT * scale.value}px`
|
|
|
|
|
|
|
+ '--kb-scale': 1,
|
|
|
|
|
+ width: `${DESIGN_WIDTH}px`,
|
|
|
|
|
+ height: `${DESIGN_HEIGHT}px`,
|
|
|
|
|
+ transform: `scale(${scale.value})`,
|
|
|
|
|
+ transformOrigin: 'top left'
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|