mirror of
https://github.com/anatolykopyl/vue-three-d-mockup.git
synced 2026-03-26 12:55:08 +00:00
Compare commits
3 Commits
9eb59e2796
...
5fb213d148
| Author | SHA1 | Date | |
|---|---|---|---|
| 5fb213d148 | |||
| d2e5b83ad9 | |||
| b5cc7ebec2 |
2
dist/vue-three-d-mockup.mjs
vendored
2
dist/vue-three-d-mockup.mjs
vendored
@@ -16735,7 +16735,7 @@ const dj = (n, M) => {
|
|||||||
};
|
};
|
||||||
return l.startFloat(), t.add(l), C(), E(), l;
|
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)
|
for (let c = 0; c <= n.screen.length - 1; c += 1)
|
||||||
e.push(a(n.screen[c], {
|
e.push(a(n.screen[c], {
|
||||||
position: n.position[c],
|
position: n.position[c],
|
||||||
|
|||||||
2
dist/vue-three-d-mockup.umd.js
vendored
2
dist/vue-three-d-mockup.umd.js
vendored
File diff suppressed because one or more lines are too long
16
index.html
16
index.html
@@ -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>
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vue-three-d-mockup",
|
"name": "vue-three-d-mockup",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "📱 A 3D phone mockup component to showcase your apps",
|
"description": "📱 A 3D phone mockup component to showcase your apps",
|
||||||
"author": "Anatoly Kopyl <akopyl@radner.ru>",
|
"author": "Anatoly Kopyl <akopyl@radner.ru>",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -167,6 +167,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
|
renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
|
||||||
|
renderer.setPixelRatio(window.devicePixelRatio)
|
||||||
renderer.setSize(container.value.clientWidth, container.value.clientHeight);
|
renderer.setSize(container.value.clientWidth, container.value.clientHeight);
|
||||||
|
|
||||||
environmentInit();
|
environmentInit();
|
||||||
|
|||||||
Reference in New Issue
Block a user