mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-23 07:54:26 +01:00
add working initial bounding box implementation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<!--suppress SillyAssignmentJS -->
|
||||
<script setup lang="ts">
|
||||
import {defineAsyncComponent, ref, Ref, shallowRef} from "vue";
|
||||
import {defineAsyncComponent, ref, Ref, shallowRef, provide} from "vue";
|
||||
import Sidebar from "./misc/Sidebar.vue";
|
||||
import Loading from "./misc/Loading.vue";
|
||||
import Tools from "./tools/Tools.vue";
|
||||
@@ -27,6 +27,7 @@ let sceneUrl = ref("")
|
||||
let viewer: Ref<InstanceType<typeof ModelViewerWrapperT> | null> = ref(null);
|
||||
let document = shallowRef(new Document());
|
||||
let models: Ref<InstanceType<typeof Models> | null> = ref(null)
|
||||
provide('document', document);
|
||||
|
||||
async function onModelLoadRequest(model: NetworkUpdateEvent) {
|
||||
await SceneMgr.loadModel(sceneUrl, document, model.name, model.url);
|
||||
|
||||
Reference in New Issue
Block a user