Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MauriceConrad committed Apr 13, 2024
1 parent b80eef9 commit 4e31702
Show file tree
Hide file tree
Showing 12 changed files with 374 additions and 20 deletions.
25 changes: 18 additions & 7 deletions playground/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
"preview": "vite preview"
},
"dependencies": {
"@vicons/ionicons5": "^0.12.0",
"naive-ui": "^2.38.1",
"vue": "^3.2.37",
"zoompinch": "^0.0.6"
"zoompinch": "^0.0.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.1.0",
Expand Down
6 changes: 5 additions & 1 deletion playground/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<template>
<div class="root">
<nav-bar />
<playground />
</div>
</template>

<script setup lang="ts">
import NavBar from './components/NavBar.vue';
import Playground from './components/Playground.vue';
</script>

Expand All @@ -13,7 +15,9 @@ import Playground from './components/Playground.vue';
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 20px;
padding: 0px;
display: grid;
grid-template-rows: auto 1fr;
}
</style>

Expand Down
49 changes: 49 additions & 0 deletions playground/src/components/NavBar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<template>
<div class="nav-bar">
<div class="title">
<h1>Zoompinch</h1>
</div>
<div class="actions">
<a href="https://github.com/MauriceConrad/zoompinch" target="_blank">
<n-icon size="medium">
<logo-github />
</n-icon>
<span> GitHub </span>
</a>
</div>
</div>
</template>

<script setup lang="ts">
import { LogoGithub } from '@vicons/ionicons5';
import { NIcon } from 'naive-ui';
</script>

<style scoped lang="scss">
.nav-bar {
border-bottom: 1px solid #ddd;
padding: 10px 20px;
display: grid;
color: #444;
grid-template-columns: auto auto;
.title {
justify-self: center start;
place-self: center start;
h1 {
margin: 0;
font-size: 1.6em;
}
}
.actions {
justify-self: center end;
place-self: center end;
a {
text-decoration: inherit;
color: inherit;
display: flex;
place-items: center;
gap: 5px;
}
}
}
</style>
2 changes: 1 addition & 1 deletion playground/src/components/Playground.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
:mouse="mouseEvents"
:touch="touchEvents"
:wheel="wheelEvents"
:gesture="gestureEvents"
:gesture="false"
>
<template #canvas>
<img
Expand Down
2 changes: 1 addition & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export default defineConfig({
}),
],
optimizeDeps: {
exclude: ['projection-layer'],
exclude: ['zoompinch'],
},
});
4 changes: 4 additions & 0 deletions zoompinch-lit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@
<div slot="matrix">MATRIX</div>
</pan-cake>
</div>

<script>
const panCake = document.querySelector('pan-cake');
</script>
</body>
</html>
Loading

0 comments on commit 4e31702

Please sign in to comment.