refactor: move border to screen itself, and use withDefaults
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
const props = defineProps({
|
||||
x: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
y: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
const props = withDefaults(defineProps<{ x?: number; y?: number }>(), {
|
||||
x: 0,
|
||||
y: 0,
|
||||
});
|
||||
|
||||
const SAMPLES = 60;
|
||||
|
||||
Reference in New Issue
Block a user