给canvas设置
{
width:100%
height:100%
}
画出来的图形会被拉伸,应该使用
const canvas = ref()
const container = ref()
canvas.value.width = container.value.clientWidth
canvas.value.height = container.value.clientHeight
给canvas设置
{
width:100%
height:100%
}
画出来的图形会被拉伸,应该使用
const canvas = ref()
const container = ref()
canvas.value.width = container.value.clientWidth
canvas.value.height = container.value.clientHeight
165
1万+

被折叠的 条评论
为什么被折叠?