Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
da-in committed Jan 14, 2024
1 parent 2cb6e13 commit cb1cc1a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
</template>
<script setup lang="ts">
import {RouterView} from 'vue-router'
import {onMounted} from "vue";
onMounted(()=>{
window.scrollTo(0, 1)
})
</script>
5 changes: 4 additions & 1 deletion src/pages/play/PlayPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const canvas = ref<HTMLElement>()
const engine = Engine.create({gravity: {x:0, y:1}})
const runner = Runner.create();
// todo canvas 미지원 브라우저에 대하여 matter.js 대응 체크
// todo matter.js 하위 브라우저 대응 없을 시 canvas.getContext 함수 유무로 처리
onMounted(()=>{
const width = widthRef.value = window.innerWidth
const height = heightRef.value = window.innerHeight
Expand All @@ -39,7 +42,7 @@ onMounted(()=>{
engine,
options: {
wireframes: false,
background: 'transparent',
background: '#FF0000',
width,
height,
showAngleIndicator: true
Expand Down
1 change: 1 addition & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ body {
width: 100%;
height: 100%;
overflow-y: hidden;
background-color: aqua;
min-width: 320px;
min-height: 100vh;
}
Expand Down

0 comments on commit cb1cc1a

Please sign in to comment.