diff --git a/src/App.vue b/src/App.vue index 20fb73f..1b6a19f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,4 +3,8 @@ diff --git a/src/pages/play/PlayPage.vue b/src/pages/play/PlayPage.vue index e3c743c..ca318e8 100644 --- a/src/pages/play/PlayPage.vue +++ b/src/pages/play/PlayPage.vue @@ -26,6 +26,9 @@ const canvas = ref() 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 @@ -39,7 +42,7 @@ onMounted(()=>{ engine, options: { wireframes: false, - background: 'transparent', + background: '#FF0000', width, height, showAngleIndicator: true diff --git a/src/style.css b/src/style.css index ab16e9a..e6d4587 100644 --- a/src/style.css +++ b/src/style.css @@ -22,6 +22,7 @@ body { width: 100%; height: 100%; overflow-y: hidden; + background-color: aqua; min-width: 320px; min-height: 100vh; }