Compare commits

..

3 Commits

Author SHA1 Message Date
5fb213d148 Bump version 2023-02-17 23:51:51 +03:00
d2e5b83ad9 Added build results 2023-02-17 23:49:21 +03:00
b5cc7ebec2 Respect device pixel ratio. Dramatic clarity increase. 2023-02-17 23:48:45 +03:00
5 changed files with 4 additions and 19 deletions

View File

@@ -16735,7 +16735,7 @@ const dj = (n, M) => {
};
return l.startFloat(), t.add(l), C(), E(), l;
};
if (N = new KM({ antialias: !0, alpha: !0 }), N.setSize(M.value.clientWidth, M.value.clientHeight), y(), Array.isArray(n.screen))
if (N = new KM({ antialias: !0, alpha: !0 }), N.setPixelRatio(window.devicePixelRatio), N.setSize(M.value.clientWidth, M.value.clientHeight), y(), Array.isArray(n.screen))
for (let c = 0; c <= n.screen.length - 1; c += 1)
e.push(a(n.screen[c], {
position: n.position[c],

File diff suppressed because one or more lines are too long

View File

@@ -1,16 +0,0 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>vue-three-d-mockup</title>
</head>
<body>
<noscript>
<strong>We're sorry but vue-three-d-mockup doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>

View File

@@ -1,6 +1,6 @@
{
"name": "vue-three-d-mockup",
"version": "1.0.1",
"version": "1.0.2",
"description": "📱 A 3D phone mockup component to showcase your apps",
"author": "Anatoly Kopyl <akopyl@radner.ru>",
"keywords": [

View File

@@ -167,6 +167,7 @@ export default {
};
renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
renderer.setPixelRatio(window.devicePixelRatio)
renderer.setSize(container.value.clientWidth, container.value.clientHeight);
environmentInit();