From 85a401e9ec8a90406bf893650a5d0afd55aebd1f Mon Sep 17 00:00:00 2001
From: Yeicor <4929005+Yeicor@users.noreply.github.com>
Date: Sat, 10 Feb 2024 18:35:38 +0100
Subject: [PATCH] started working on tools and sharing scene
---
src/App.vue | 27 +++++++++++----
src/Loading.vue | 4 +++
src/ModelViewerOverlay.vue | 19 +++++++++--
src/ModelViewerWrapper.vue | 48 +++++++++++++-------------
src/OrientationGizmo.vue | 70 ++++++++++++++++++++++++++++++++++++++
src/Sidebar.vue | 8 ++++-
src/Tools.vue | 36 ++++++++++++++++++++
src/index.ts | 12 ++-----
src/shims.d.ts | 5 +--
9 files changed, 182 insertions(+), 47 deletions(-)
create mode 100644 src/OrientationGizmo.vue
create mode 100644 src/Tools.vue
diff --git a/src/App.vue b/src/App.vue
index 0abcbe1..511d87f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,8 +1,19 @@
-
+ {
+ console.log('Model-Viewer finished loading:', args)
+ modelViewerInfo = args
+ }"/>
-
+
Models
@@ -37,11 +52,11 @@ let openSidebars = ref(window.innerWidth > 1200);
-
+
Tools
- Camera
+
diff --git a/src/Loading.vue b/src/Loading.vue
index e56db74..bce808b 100644
--- a/src/Loading.vue
+++ b/src/Loading.vue
@@ -1,3 +1,7 @@
+
+
diff --git a/src/ModelViewerOverlay.vue b/src/ModelViewerOverlay.vue
index d2dabba..8d359d4 100644
--- a/src/ModelViewerOverlay.vue
+++ b/src/ModelViewerOverlay.vue
@@ -4,16 +4,29 @@
-
+
+
+
diff --git a/src/ModelViewerWrapper.vue b/src/ModelViewerWrapper.vue
index e5852e1..b1c48fb 100644
--- a/src/ModelViewerWrapper.vue
+++ b/src/ModelViewerWrapper.vue
@@ -1,38 +1,38 @@
-
+
+
\ No newline at end of file
diff --git a/src/index.ts b/src/index.ts
index 589edd4..9f8a499 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -7,19 +7,12 @@ globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = process.env.NODE_ENV === "d
import {createApp} from 'vue'
import App from './App.vue'
-
+import {createVuetify} from 'vuetify';
import 'vuetify/lib/styles/main.sass';
-import { createVuetify } from 'vuetify';
import '@mdi/font/css/materialdesignicons.css'
-
-// TODO: Only import the components and directives that are actually used
-// @ts-ignore
-import * as components from 'vuetify/lib/components';
-// @ts-ignore
import * as directives from 'vuetify/lib/directives';
const vuetify = createVuetify({
- components,
directives,
theme: {
defaultTheme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light',
@@ -28,4 +21,5 @@ const vuetify = createVuetify({
const app = createApp(App)
app.use(vuetify)
-app.mount('body')
\ No newline at end of file
+// noinspection JSUnresolvedReference
+app.mount('body')
diff --git a/src/shims.d.ts b/src/shims.d.ts
index 7153250..f911e13 100644
--- a/src/shims.d.ts
+++ b/src/shims.d.ts
@@ -1,6 +1,3 @@
// Avoids typescript error when importing files
declare module '*.vue'
-declare module 'import.meta' {
- const url: string
- export default url
-}
\ No newline at end of file
+declare module 'three-orientation-gizmo/src/OrientationGizmo'
\ No newline at end of file